Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 19 additions & 6 deletions sdk/communication/communication-job-router-rest/api-extractor.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,31 @@
{
"$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json",
"mainEntryPointFilePath": "./types/src/index.d.ts",
"docModel": { "enabled": true },
"apiReport": { "enabled": true, "reportFolder": "./review" },
"docModel": {
"enabled": true
},
"apiReport": {
"enabled": true,
"reportFolder": "./review"
},
"dtsRollup": {
"enabled": true,
"untrimmedFilePath": "",
"publicTrimmedFilePath": "./types/communication-job-router.d.ts"
},
"messages": {
"tsdocMessageReporting": { "default": { "logLevel": "none" } },
"tsdocMessageReporting": {
"default": {
"logLevel": "none"
}
},
"extractorMessageReporting": {
"ae-missing-release-tag": { "logLevel": "none" },
"ae-unresolved-link": { "logLevel": "none" }
"ae-missing-release-tag": {
"logLevel": "none"
},
"ae-unresolved-link": {
"logLevel": "none"
}
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -123,4 +123,4 @@
"azure-communication-services"
]
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,13 @@ import { Client } from '@azure-rest/core-client';
import { ClientOptions } from '@azure-rest/core-client';
import { ErrorResponse } from '@azure-rest/core-client';
import { HttpResponse } from '@azure-rest/core-client';
import { KeyCredential } from '@azure/core-auth';
import { Paged } from '@azure/core-paging';
import { PagedAsyncIterableIterator } from '@azure/core-paging';
import { PathUncheckedResponse } from '@azure-rest/core-client';
import { RawHttpHeaders } from '@azure/core-rest-pipeline';
import { RawHttpHeadersInput } from '@azure/core-rest-pipeline';
import { RequestParameters } from '@azure-rest/core-client';
import { StreamableMethod } from '@azure-rest/core-client';
import { TokenCredential } from '@azure/core-auth';

// @public (undocumented)
export interface Accept {
Expand Down Expand Up @@ -63,14 +61,14 @@ export type AzureCommunicationRoutingServiceClient = Client & {

// @public
export interface BestWorkerMode extends DistributionModeParent {
kind: "best-worker";
kind: "bestWorker";
scoringRule?: RouterRule;
scoringRuleOptions?: ScoringRuleOptions;
}

// @public
export interface BestWorkerModeOutput extends DistributionModeOutputParent {
kind: "best-worker";
kind: "bestWorker";
scoringRule?: RouterRuleOutput;
scoringRuleOptions?: ScoringRuleOptionsOutput;
}
Expand Down Expand Up @@ -279,10 +277,7 @@ export interface ConditionalWorkerSelectorAttachmentOutput extends WorkerSelecto
}

// @public
function createClient(connectionStringOrUrl: string, options: ClientOptions): AzureCommunicationRoutingServiceClient;

// @public
function createClient(endpoint: string, credentialOrOptions?: KeyCredential | TokenCredential, options?: ClientOptions): AzureCommunicationRoutingServiceClient;
function createClient(endpoint: string, options?: ClientOptions): AzureCommunicationRoutingServiceClient;
export default createClient;

// @public (undocumented)
Expand Down Expand Up @@ -476,12 +471,12 @@ export type DeleteWorkerParameters = RequestParameters;

// @public
export interface DirectMapRouterRule extends RouterRuleParent {
kind: "direct-map-rule";
kind: "directMap";
}

// @public
export interface DirectMapRouterRuleOutput extends RouterRuleOutputParent {
kind: "direct-map-rule";
kind: "directMap";
}

// @public
Expand Down Expand Up @@ -599,22 +594,22 @@ export interface ExceptionTriggerParent {
// @public
export interface ExpressionRouterRule extends RouterRuleParent {
expression: string;
kind: "expression-rule";
kind: "expression";
language?: string;
}

// @public
export interface ExpressionRouterRuleOutput extends RouterRuleOutputParent {
expression: string;
kind: "expression-rule";
kind: "expression";
language?: string;
}

// @public
export interface FunctionRouterRule extends RouterRuleParent {
credential?: FunctionRouterRuleCredential;
functionUri: string;
kind: "azure-function-rule";
kind: "function";
}

// @public
Expand All @@ -635,7 +630,7 @@ export interface FunctionRouterRuleCredentialOutput {
export interface FunctionRouterRuleOutput extends RouterRuleOutputParent {
credential?: FunctionRouterRuleCredentialOutput;
functionUri: string;
kind: "azure-function-rule";
kind: "function";
}

// @public
Expand Down Expand Up @@ -1294,25 +1289,25 @@ export interface ListWorkersQueryParamProperties {

// @public
export interface LongestIdleMode extends DistributionModeParent {
kind: "longest-idle";
kind: "longestIdle";
}

// @public
export interface LongestIdleModeOutput extends DistributionModeOutputParent {
kind: "longest-idle";
kind: "longestIdle";
}

// @public
export interface ManualReclassifyExceptionAction extends ExceptionActionParent {
kind: "manual-reclassify";
kind: "manualReclassify";
priority?: number;
queueId?: string;
workerSelectors?: Array<RouterWorkerSelector>;
}

// @public
export interface ManualReclassifyExceptionActionOutput extends ExceptionActionOutputParent {
kind: "manual-reclassify";
kind: "manualReclassify";
priority?: number;
queueId?: string;
workerSelectors?: Array<RouterWorkerSelectorOutput>;
Expand Down Expand Up @@ -1366,52 +1361,52 @@ export interface PagingOptions<TResponse> {
// @public
export interface PassThroughQueueSelectorAttachment extends QueueSelectorAttachmentParent {
key: string;
kind: "pass-through";
kind: "passThrough";
labelOperator: string;
}

// @public
export interface PassThroughQueueSelectorAttachmentOutput extends QueueSelectorAttachmentOutputParent {
key: string;
kind: "pass-through";
kind: "passThrough";
labelOperator: string;
}

// @public
export interface PassThroughWorkerSelectorAttachment extends WorkerSelectorAttachmentParent {
expiresAfterSeconds?: number;
key: string;
kind: "pass-through";
kind: "passThrough";
labelOperator: string;
}

// @public
export interface PassThroughWorkerSelectorAttachmentOutput extends WorkerSelectorAttachmentOutputParent {
expiresAfterSeconds?: number;
key: string;
kind: "pass-through";
kind: "passThrough";
labelOperator: string;
}

// @public
export interface QueueAndMatchMode extends JobMatchingModeParent {
kind: "queue-and-match";
kind: "queueAndMatch";
}

// @public
export interface QueueAndMatchModeOutput extends JobMatchingModeOutputParent {
kind: "queue-and-match";
kind: "queueAndMatch";
}

// @public
export interface QueueLengthExceptionTrigger extends ExceptionTriggerParent {
kind: "queue-length";
kind: "queueLength";
threshold: number;
}

// @public
export interface QueueLengthExceptionTriggerOutput extends ExceptionTriggerOutputParent {
kind: "queue-length";
kind: "queueLength";
threshold: number;
}

Expand Down Expand Up @@ -1505,12 +1500,12 @@ export type ReclassifyParameters = ReclassifyBodyParam & RequestParameters;

// @public
export interface RoundRobinMode extends DistributionModeParent {
kind: "round-robin";
kind: "roundRobin";
}

// @public
export interface RoundRobinModeOutput extends DistributionModeOutputParent {
kind: "round-robin";
kind: "roundRobin";
}

// @public
Expand Down Expand Up @@ -1779,37 +1774,37 @@ export interface Routes {

// @public
export interface RuleEngineQueueSelectorAttachment extends QueueSelectorAttachmentParent {
kind: "rule-engine";
kind: "ruleEngine";
rule: RouterRule;
}

// @public
export interface RuleEngineQueueSelectorAttachmentOutput extends QueueSelectorAttachmentOutputParent {
kind: "rule-engine";
kind: "ruleEngine";
rule: RouterRuleOutput;
}

// @public
export interface RuleEngineWorkerSelectorAttachment extends WorkerSelectorAttachmentParent {
kind: "rule-engine";
kind: "ruleEngine";
rule: RouterRule;
}

// @public
export interface RuleEngineWorkerSelectorAttachmentOutput extends WorkerSelectorAttachmentOutputParent {
kind: "rule-engine";
kind: "ruleEngine";
rule: RouterRuleOutput;
}

// @public
export interface ScheduleAndSuspendMode extends JobMatchingModeParent {
kind: "schedule-and-suspend";
kind: "scheduleAndSuspend";
scheduleAt: Date | string;
}

// @public
export interface ScheduleAndSuspendModeOutput extends JobMatchingModeOutputParent {
kind: "schedule-and-suspend";
kind: "scheduleAndSuspend";
scheduleAt: string;
}

Expand Down Expand Up @@ -1843,13 +1838,13 @@ export interface StaticQueueSelectorAttachmentOutput extends QueueSelectorAttach

// @public
export interface StaticRouterRule extends RouterRuleParent {
kind: "static-rule";
kind: "static";
value?: unknown;
}

// @public
export interface StaticRouterRuleOutput extends RouterRuleOutputParent {
kind: "static-rule";
kind: "static";
value?: any;
}

Expand Down Expand Up @@ -2398,54 +2393,54 @@ export type UpsertWorkerParameters = UpsertWorkerHeaderParam & UpsertWorkerMedia

// @public
export interface WaitTimeExceptionTrigger extends ExceptionTriggerParent {
kind: "wait-time";
kind: "waitTime";
thresholdSeconds: number;
}

// @public
export interface WaitTimeExceptionTriggerOutput extends ExceptionTriggerOutputParent {
kind: "wait-time";
kind: "waitTime";
thresholdSeconds: number;
}

// @public
export interface WebhookRouterRule extends RouterRuleParent {
authorizationServerUri?: string;
clientCredential?: OAuth2WebhookClientCredential;
kind: "webhook-rule";
kind: "webhook";
webhookUri?: string;
}

// @public
export interface WebhookRouterRuleOutput extends RouterRuleOutputParent {
authorizationServerUri?: string;
clientCredential?: OAuth2WebhookClientCredentialOutput;
kind: "webhook-rule";
kind: "webhook";
webhookUri?: string;
}

// @public
export interface WeightedAllocationQueueSelectorAttachment extends QueueSelectorAttachmentParent {
allocations: Array<QueueWeightedAllocation>;
kind: "weighted-allocation-queue-selector";
kind: "weightedAllocation";
}

// @public
export interface WeightedAllocationQueueSelectorAttachmentOutput extends QueueSelectorAttachmentOutputParent {
allocations: Array<QueueWeightedAllocationOutput>;
kind: "weighted-allocation-queue-selector";
kind: "weightedAllocation";
}

// @public
export interface WeightedAllocationWorkerSelectorAttachment extends WorkerSelectorAttachmentParent {
allocations: Array<WorkerWeightedAllocation>;
kind: "weighted-allocation-worker-selector";
kind: "weightedAllocation";
}

// @public
export interface WeightedAllocationWorkerSelectorAttachmentOutput extends WorkerSelectorAttachmentOutputParent {
allocations: Array<WorkerWeightedAllocationOutput>;
kind: "weighted-allocation-worker-selector";
kind: "weightedAllocation";
}

// @public
Expand Down
Loading