@azure-tools/communication-toll-free-verification 1.0.0-alpha.20250618.1 → 1.0.0-alpha.20250723.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/generated/src/operations/tollFreeVerification.js +81 -132
- package/dist/browser/generated/src/operations/tollFreeVerification.js.map +1 -1
- package/dist/browser/generated/src/pagingHelper.js +2 -4
- package/dist/browser/generated/src/pagingHelper.js.map +1 -1
- package/dist/browser/generated/src/tollFreeVerificationClient.js +10 -3
- package/dist/browser/generated/src/tollFreeVerificationClient.js.map +1 -1
- package/dist/browser/tollFreeVerificationClient.js +11 -4
- package/dist/browser/tollFreeVerificationClient.js.map +1 -1
- package/dist/commonjs/generated/src/operations/tollFreeVerification.js +81 -131
- package/dist/commonjs/generated/src/operations/tollFreeVerification.js.map +1 -1
- package/dist/commonjs/generated/src/pagingHelper.js +2 -4
- package/dist/commonjs/generated/src/pagingHelper.js.map +1 -1
- package/dist/commonjs/generated/src/tollFreeVerificationClient.js +10 -3
- package/dist/commonjs/generated/src/tollFreeVerificationClient.js.map +1 -1
- package/dist/commonjs/tollFreeVerificationClient.js +11 -4
- package/dist/commonjs/tollFreeVerificationClient.js.map +1 -1
- package/dist/commonjs/tsdoc-metadata.json +11 -11
- package/dist/esm/generated/src/operations/tollFreeVerification.js +81 -132
- package/dist/esm/generated/src/operations/tollFreeVerification.js.map +1 -1
- package/dist/esm/generated/src/pagingHelper.js +2 -4
- package/dist/esm/generated/src/pagingHelper.js.map +1 -1
- package/dist/esm/generated/src/tollFreeVerificationClient.js +10 -3
- package/dist/esm/generated/src/tollFreeVerificationClient.js.map +1 -1
- package/dist/esm/tollFreeVerificationClient.js +11 -4
- package/dist/esm/tollFreeVerificationClient.js.map +1 -1
- package/dist/react-native/generated/src/operations/tollFreeVerification.js +81 -132
- package/dist/react-native/generated/src/operations/tollFreeVerification.js.map +1 -1
- package/dist/react-native/generated/src/pagingHelper.js +2 -4
- package/dist/react-native/generated/src/pagingHelper.js.map +1 -1
- package/dist/react-native/generated/src/tollFreeVerificationClient.js +10 -3
- package/dist/react-native/generated/src/tollFreeVerificationClient.js.map +1 -1
- package/dist/react-native/tollFreeVerificationClient.js +11 -4
- package/dist/react-native/tollFreeVerificationClient.js.map +1 -1
- package/package.json +2 -2
|
@@ -8,13 +8,14 @@
|
|
|
8
8
|
import * as coreClient from "@azure/core-client";
|
|
9
9
|
import { TollFreeVerificationImpl } from "./operations/index.js";
|
|
10
10
|
export class TollFreeVerificationClient extends coreClient.ServiceClient {
|
|
11
|
+
endpoint;
|
|
12
|
+
apiVersion;
|
|
11
13
|
/**
|
|
12
14
|
* Initializes a new instance of the TollFreeVerificationClient class.
|
|
13
15
|
* @param endpoint The communication resource, for example https://resourcename.communication.azure.com
|
|
14
16
|
* @param options The parameter options
|
|
15
17
|
*/
|
|
16
18
|
constructor(endpoint, options) {
|
|
17
|
-
var _a, _b;
|
|
18
19
|
if (endpoint === undefined) {
|
|
19
20
|
throw new Error("'endpoint' cannot be null");
|
|
20
21
|
}
|
|
@@ -29,9 +30,14 @@ export class TollFreeVerificationClient extends coreClient.ServiceClient {
|
|
|
29
30
|
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
30
31
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
31
32
|
: `${packageDetails}`;
|
|
32
|
-
const optionsWithDefaults =
|
|
33
|
+
const optionsWithDefaults = {
|
|
34
|
+
...defaults,
|
|
35
|
+
...options,
|
|
36
|
+
userAgentOptions: {
|
|
33
37
|
userAgentPrefix,
|
|
34
|
-
},
|
|
38
|
+
},
|
|
39
|
+
endpoint: options.endpoint ?? options.baseUri ?? "{endpoint}",
|
|
40
|
+
};
|
|
35
41
|
super(optionsWithDefaults);
|
|
36
42
|
// Parameter assignments
|
|
37
43
|
this.endpoint = endpoint;
|
|
@@ -65,5 +71,6 @@ export class TollFreeVerificationClient extends coreClient.ServiceClient {
|
|
|
65
71
|
};
|
|
66
72
|
this.pipeline.addPolicy(apiVersionPolicy);
|
|
67
73
|
}
|
|
74
|
+
tollFreeVerification;
|
|
68
75
|
}
|
|
69
76
|
//# sourceMappingURL=tollFreeVerificationClient.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tollFreeVerificationClient.js","sourceRoot":"","sources":["../../../../src/generated/src/tollFreeVerificationClient.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AAMjD,OAAO,EAAE,wBAAwB,EAAE,MAAM,uBAAuB,CAAC;AAIjE,MAAM,OAAO,0BAA2B,SAAQ,UAAU,CAAC,aAAa;
|
|
1
|
+
{"version":3,"file":"tollFreeVerificationClient.js","sourceRoot":"","sources":["../../../../src/generated/src/tollFreeVerificationClient.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AAMjD,OAAO,EAAE,wBAAwB,EAAE,MAAM,uBAAuB,CAAC;AAIjE,MAAM,OAAO,0BAA2B,SAAQ,UAAU,CAAC,aAAa;IACtE,QAAQ,CAAS;IACjB,UAAU,CAAS;IAEnB;;;;OAIG;IACH,YACE,QAAgB,EAChB,OAAkD;QAElD,IAAI,QAAQ,KAAK,SAAS,EAAE,CAAC;YAC3B,MAAM,IAAI,KAAK,CAAC,2BAA2B,CAAC,CAAC;QAC/C,CAAC;QAED,0CAA0C;QAC1C,IAAI,CAAC,OAAO,EAAE,CAAC;YACb,OAAO,GAAG,EAAE,CAAC;QACf,CAAC;QACD,MAAM,QAAQ,GAA6C;YACzD,kBAAkB,EAAE,iCAAiC;SACtD,CAAC;QAEF,MAAM,cAAc,GAAG,4DAA4D,CAAC;QACpF,MAAM,eAAe,GACnB,OAAO,CAAC,gBAAgB,IAAI,OAAO,CAAC,gBAAgB,CAAC,eAAe;YAClE,CAAC,CAAC,GAAG,OAAO,CAAC,gBAAgB,C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BACH,CAAC,CAAC,CAAC;oBACH,OAAO,CAAC,GAAG,GAAG,KAAK,CAAC,CAAC,CAAC,GAAG,GAAG,GAAG,SAAS,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;gBACrD,CAAC;gBACD,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC;YACvB,CAAC;SACF,CAAC;QACF,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAC;IAC5C,CAAC;IAED,oBAAoB,CAAuB;CAC5C","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreClient from \"@azure/core-client\";\nimport {\n PipelineRequest,\n PipelineResponse,\n SendRequest,\n} from \"@azure/core-rest-pipeline\";\nimport { TollFreeVerificationImpl } from \"./operations/index.js\";\nimport { TollFreeVerification } from \"./operationsInterfaces/index.js\";\nimport { TollFreeVerificationClientOptionalParams } from \"./models/index.js\";\n\nexport class TollFreeVerificationClient extends coreClient.ServiceClient {\n endpoint: string;\n apiVersion: string;\n\n /**\n * Initializes a new instance of the TollFreeVerificationClient class.\n * @param endpoint The communication resource, for example https://resourcename.communication.azure.com\n * @param options The parameter options\n */\n constructor(\n endpoint: string,\n options?: TollFreeVerificationClientOptionalParams,\n ) {\n if (endpoint === undefined) {\n throw new Error(\"'endpoint' cannot be null\");\n }\n\n // Initializing default values for options\n if (!options) {\n options = {};\n }\n const defaults: TollFreeVerificationClientOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n };\n\n const packageDetails = `azsdk-js-communication-toll-free-verification/1.0.0-beta.1`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`\n : `${packageDetails}`;\n\n const optionsWithDefaults = {\n ...defaults,\n ...options,\n userAgentOptions: {\n userAgentPrefix,\n },\n endpoint: options.endpoint ?? options.baseUri ?? \"{endpoint}\",\n };\n super(optionsWithDefaults);\n // Parameter assignments\n this.endpoint = endpoint;\n\n // Assigning values to Constant parameters\n this.apiVersion = options.apiVersion || \"2023-01-10-preview1\";\n this.tollFreeVerification = new TollFreeVerificationImpl(this);\n this.addCustomApiVersionPolicy(options.apiVersion);\n }\n\n /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */\n private addCustomApiVersionPolicy(apiVersion?: string) {\n if (!apiVersion) {\n return;\n }\n const apiVersionPolicy = {\n name: \"CustomApiVersionPolicy\",\n async sendRequest(\n request: PipelineRequest,\n next: SendRequest,\n ): Promise<PipelineResponse> {\n const param = request.url.split(\"?\");\n if (param.length > 1) {\n const newParams = param[1].split(\"&\").map((item) => {\n if (item.indexOf(\"api-version\") > -1) {\n return \"api-version=\" + apiVersion;\n } else {\n return item;\n }\n });\n request.url = param[0] + \"?\" + newParams.join(\"&\");\n }\n return next(request);\n },\n };\n this.pipeline.addPolicy(apiVersionPolicy);\n }\n\n tollFreeVerification: TollFreeVerification;\n}\n"]}
|
|
@@ -6,16 +6,23 @@ import { logger } from "./utils/index.js";
|
|
|
6
6
|
import { tracingClient } from "./generated/src/tracing.js";
|
|
7
7
|
const isTollFreeVerificationClientOptions = (options) => options && !isKeyCredential(options) && !isTokenCredential(options);
|
|
8
8
|
export class TollFreeVerificationClient {
|
|
9
|
+
/**
|
|
10
|
+
* A reference to the auto-generated Toll Free Verification HTTP client.
|
|
11
|
+
*/
|
|
12
|
+
client;
|
|
9
13
|
constructor(connectionStringOrUrl, credentialOrOptions, maybeOptions = {}) {
|
|
10
14
|
const { url, credential } = parseClientArguments(connectionStringOrUrl, credentialOrOptions);
|
|
11
15
|
const options = isTollFreeVerificationClientOptions(credentialOrOptions)
|
|
12
16
|
? credentialOrOptions
|
|
13
17
|
: maybeOptions;
|
|
14
|
-
const internalPipelineOptions =
|
|
15
|
-
|
|
16
|
-
|
|
18
|
+
const internalPipelineOptions = {
|
|
19
|
+
...options,
|
|
20
|
+
...{
|
|
21
|
+
loggingOptions: {
|
|
22
|
+
logger: logger.info,
|
|
23
|
+
},
|
|
17
24
|
},
|
|
18
|
-
}
|
|
25
|
+
};
|
|
19
26
|
this.client = new TollFreeVerificationGeneratedClient(url, internalPipelineOptions);
|
|
20
27
|
const authPolicy = createCommunicationAuthPolicy(credential);
|
|
21
28
|
this.client.pipeline.addPolicy(authPolicy);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tollFreeVerificationClient.js","sourceRoot":"","sources":["../../src/tollFreeVerificationClient.ts"],"names":[],"mappings":"AAqBA,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AACrD,OAAO,EAAE,eAAe,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AAGpF,OAAO,EAAE,0BAA0B,IAAI,mCAAmC,EAAE,MAAM,0BAA0B,CAAC;AAC7G,OAAO,EAAE,6BAA6B,EAAE,MAAM,6BAA6B,CAAC;AAC5E,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAC1C,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAM3D,MAAM,mCAAmC,GAAG,CAC1C,OAAY,EACkC,EAAE,CAChD,OAAO,IAAI,CAAC,eAAe,CAAC,OAAO,CAAC,IAAI,CAAC,iBAAiB,CAAC,OAAO,CAAC,CAAC;AAEtE,MAAM,OAAO,0BAA0B;IAoBrC,YACE,qBAA6B,EAC7B,mBAAyF,EACzF,eAAkD,EAAE;QAEpD,MAAM,EAAE,GAAG,EAAE,UAAU,EAAE,GAAG,oBAAoB,CAAC,qBAAqB,EAAE,mBAAmB,CAAC,CAAC;QAC7F,MAAM,OAAO,GAAG,mCAAmC,CAAC,mBAAmB,CAAC;YACtE,CAAC,CAAC,mBAAmB;YACrB,CAAC,CAAC,YAAY,CAAC;QAEjB,MAAM,uBAAuB,mCACxB,OAAO,GACP;YACD,cAAc,EAAE;gBAC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,aAAa,CAAC,QAAQ,CAC3B,0DAA0D,EAC1D,OAAO,EACP,KAAK,EACH,cAA2F,EAC3F,EAAE;YACF,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CAAC,6BAA6B,CACnE,WAAW,EACX,eAAe,EACf,YAAY,EACZ,cAAc,CACf,CAAC;QACJ,CAAC,CACF,CAAC;IACJ,CAAC;IAEM,4BAA4B,CACjC,WAAmB,EACnB,eAAuB,EACvB,UAAyE,EAAE;QAE3E,MAAM,EAAE,IAAI,EAAE,cAAc,EAAE,GAAG,aAAa,CAAC,SAAS,CACtD,yDAAyD,EACzD,OAAO,CACR,CAAC;QACF,IAAI,CAAC;YACH,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CAAC,4BAA4B,CAClE,WAAW,EACX,eAAe,EACf,cAAc,CACf,CAAC;QACJ,CAAC;QAAC,OAAO,CAAM,EAAE,CAAC;YAChB,IAAI,CAAC,SAAS,CAAC;gBACb,MAAM,EAAE,OAAO;gBACf,KAAK,EAAE,CAAC;aACT,CAAC,CAAC;YACH,MAAM,CAAC,CAAC;QACV,CAAC;gBAAS,CAAC;YACT,IAAI,CAAC,GAAG,EAAE,CAAC;QACb,CAAC;IACH,CAAC;IAEM,0BAA0B,CAC/B,WAAmB,EACnB,eAAuB,EACvB,YAAoB,EACpB,UAAwE,EAAE;QAE1E,OAAO,aAAa,CAAC,QAAQ,CAC3B,uDAAuD,EACvD,OAAO,EACP,KAAK,EACH,cAAwF,EACxF,EAAE;YACF,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CAAC,0BAA0B,CAChE,WAAW,EACX,eAAe,EACf,YAAY,EACZ,cAAc,CACf,CAAC;QACJ,CAAC,CACF,CAAC;IACJ,CAAC;CACF","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n/// <reference lib=\"esnext.asynciterable\" />\nimport type {\n AttachmentType,\n CampaignBrief,\n CampaignBriefAttachment,\n FileType,\n TollFreeVerificationCreateOrReplaceCampaignBriefAttachmentOptionalParams,\n TollFreeVerificationDeleteCampaignBriefAttachmentOptionalParams,\n TollFreeVerificationDeleteCampaignBriefOptionalParams,\n TollFreeVerificationGetCampaignBriefAttachmentOptionalParams,\n TollFreeVerificationGetCampaignBriefAttachmentsOptionalParams,\n TollFreeVerificationGetCampaignBriefOptionalParams,\n TollFreeVerificationGetAllCampaignBriefSummariesOptionalParams,\n TollFreeVerificationSubmitCampaignBriefOptionalParams,\n TollFreeVerificationSubmitCampaignBriefResponse,\n TollFreeVerificationUpsertCampaignBriefOptionalParams,\n} from \"./models.js\";\nimport type { CommonClientOptions, InternalClientPipelineOptions } from \"@azure/core-client\";\nimport type { KeyCredential, TokenCredential } from \"@azure/core-auth\";\nimport { isTokenCredential } from \"@azure/core-auth\";\nimport { isKeyCredential, parseClientArguments } from \"@azure/communication-common\";\nimport type { PagedAsyncIterableIterator } from \"@azure/core-paging\";\nimport type { CampaignBriefSummary } from \"./generated/src/index.js\";\nimport { TollFreeVerificationClient as TollFreeVerificationGeneratedClient } from \"./generated/src/index.js\";\nimport { createCommunicationAuthPolicy } from \"@azure/communication-common\";\nimport { logger } from \"./utils/index.js\";\nimport { tracingClient } from \"./generated/src/tracing.js\";\n/**\n * Client options used to configure the TollFreeVerificationClient API requests.\n */\nexport interface TollFreeVerificationClientOptions extends CommonClientOptions {}\n\nconst isTollFreeVerificationClientOptions = (\n options: any,\n): options is TollFreeVerificationClientOptions =>\n options && !isKeyCredential(options) && !isTokenCredential(options);\n\nexport class TollFreeVerificationClient {\n /**\n * A reference to the auto-generated Toll Free Verification HTTP client.\n */\n private readonly client: TollFreeVerificationGeneratedClient;\n\n public constructor(connectionString: string, options?: TollFreeVerificationClientOptions);\n\n public constructor(\n endpoint: string,\n credential: KeyCredential,\n options?: TollFreeVerificationClientOptions,\n );\n\n public constructor(\n endpoint: string,\n credential: TokenCredential,\n options?: TollFreeVerificationClientOptions,\n );\n\n public constructor(\n connectionStringOrUrl: string,\n credentialOrOptions?: KeyCredential | TokenCredential | TollFreeVerificationClientOptions,\n maybeOptions: TollFreeVerificationClientOptions = {},\n ) {\n const { url, credential } = parseClientArguments(connectionStringOrUrl, credentialOrOptions);\n const options = isTollFreeVerificationClientOptions(credentialOrOptions)\n ? credentialOrOptions\n : maybeOptions;\n\n const internalPipelineOptions: InternalClientPipelineOptions = {\n ...options,\n ...{\n loggingOptions: {\n logger: logger.info,\n },\n },\n };\n\n this.client = new TollFreeVerificationGeneratedClient(url, internalPipelineOptions);\n const authPolicy = createCommunicationAuthPolicy(credential);\n this.client.pipeline.addPolicy(authPolicy);\n }\n\n public getCampaignBrief(\n campaignBriefId: string,\n countryCode: string,\n options: TollFreeVerificationGetCampaignBriefOptionalParams = {},\n ): Promise<CampaignBrief> {\n return tracingClient.withSpan(\n \"TollFreeVerificationClient-getCampaignBrief\",\n options,\n async (updatedOptions: TollFreeVerificationGetCampaignBriefOptionalParams | undefined) => {\n return this.client.tollFreeVerification.getCampaignBrief(\n countryCode,\n campaignBriefId,\n updatedOptions,\n );\n },\n );\n }\n\n public listCampaignBriefs(\n options: TollFreeVerificationGetAllCampaignBriefSummariesOptionalParams = {},\n ): PagedAsyncIterableIterator<CampaignBriefSummary> {\n const { span, updatedOptions } = tracingClient.startSpan(\n \"TollFreeVerificationClient-listCampaignBriefs\",\n options,\n );\n try {\n return this.client.tollFreeVerification.listAllCampaignBriefSummaries(updatedOptions);\n } catch (e: any) {\n span.setStatus({\n status: \"error\",\n error: e,\n });\n throw e;\n } finally {\n span.end();\n }\n }\n\n public upsertCampaignBrief(\n campaignBriefId: string,\n countryCode: string,\n options: TollFreeVerificationUpsertCampaignBriefOptionalParams = {},\n ): Promise<CampaignBrief> {\n return tracingClient.withSpan(\n \"TollFreeVerificationClient-upsertCampaignBrief\",\n options,\n async (updatedOptions: TollFreeVerificationUpsertCampaignBriefOptionalParams | undefined) => {\n return this.client.tollFreeVerification.upsertCampaignBrief(\n countryCode,\n campaignBriefId,\n updatedOptions,\n );\n },\n );\n }\n\n public deleteCampaignBrief(\n campaignBriefId: string,\n countryCode: string,\n options: TollFreeVerificationDeleteCampaignBriefOptionalParams = {},\n ): Promise<void> {\n return tracingClient.withSpan(\n \"TollFreeVerificationClient-deleteCampaignBrief\",\n options,\n async (updatedOptions: TollFreeVerificationDeleteCampaignBriefOptionalParams | undefined) => {\n return this.client.tollFreeVerification.deleteCampaignBrief(\n countryCode,\n campaignBriefId,\n updatedOptions,\n );\n },\n );\n }\n\n public submitCampaignBrief(\n campaignBriefId: string,\n countryCode: string,\n options: TollFreeVerificationSubmitCampaignBriefOptionalParams = {},\n ): Promise<TollFreeVerificationSubmitCampaignBriefResponse> {\n return tracingClient.withSpan(\n \"TollFreeVerificationClient-upsertCampaignBrief\",\n options,\n async (updatedOptions: TollFreeVerificationSubmitCampaignBriefOptionalParams | undefined) => {\n return this.client.tollFreeVerification.submitCampaignBrief(\n countryCode,\n campaignBriefId,\n updatedOptions,\n );\n },\n );\n }\n\n public upsertCampaignBriefAttachment(\n countryCode: string,\n campaignBriefId: string,\n attachmentId: string,\n attachmentType: AttachmentType,\n fileName: string,\n fileType: FileType,\n fileContentBase64: string,\n options: TollFreeVerificationCreateOrReplaceCampaignBriefAttachmentOptionalParams = {},\n ): Promise<CampaignBriefAttachment> {\n return tracingClient.withSpan(\n \"TollFreeVerificationClient-upsertCampaignBriefAttachment\",\n options,\n async (\n updatedOptions:\n | TollFreeVerificationCreateOrReplaceCampaignBriefAttachmentOptionalParams\n | undefined,\n ) => {\n return this.client.tollFreeVerification.createOrReplaceCampaignBriefAttachment(\n countryCode,\n campaignBriefId,\n attachmentId,\n attachmentId,\n attachmentType,\n fileName,\n fileType,\n fileContentBase64,\n updatedOptions,\n );\n },\n );\n }\n\n public deleteCampaignBriefAttachment(\n campaignBriefId: string,\n attachmentId: string,\n countryCode: string,\n options: TollFreeVerificationDeleteCampaignBriefAttachmentOptionalParams = {},\n ): Promise<void> {\n return tracingClient.withSpan(\n \"TollFreeVerificationClient-deleteCampaignBriefAttachment\",\n options,\n async (\n updatedOptions: TollFreeVerificationDeleteCampaignBriefAttachmentOptionalParams | undefined,\n ) => {\n return this.client.tollFreeVerification.deleteCampaignBriefAttachment(\n countryCode,\n campaignBriefId,\n attachmentId,\n updatedOptions,\n );\n },\n );\n }\n\n public listCampaignBriefAttachments(\n countryCode: string,\n campaignBriefId: string,\n options: TollFreeVerificationGetCampaignBriefAttachmentsOptionalParams = {},\n ): PagedAsyncIterableIterator<CampaignBrief> {\n const { span, updatedOptions } = tracingClient.startSpan(\n \"TollFreeVerificationClient-listCampaignBriefAttachments\",\n options,\n );\n try {\n return this.client.tollFreeVerification.listCampaignBriefAttachments(\n countryCode,\n campaignBriefId,\n updatedOptions,\n );\n } catch (e: any) {\n span.setStatus({\n status: \"error\",\n error: e,\n });\n throw e;\n } finally {\n span.end();\n }\n }\n\n public getCampaignBriefAttachment(\n countryCode: string,\n campaignBriefId: string,\n attachmentId: string,\n options: TollFreeVerificationGetCampaignBriefAttachmentOptionalParams = {},\n ): Promise<CampaignBrief> {\n return tracingClient.withSpan(\n \"TollFreeVerificationClient-getCampaignBriefAttachment\",\n options,\n async (\n updatedOptions: TollFreeVerificationGetCampaignBriefAttachmentOptionalParams | undefined,\n ) => {\n return this.client.tollFreeVerification.getCampaignBriefAttachment(\n countryCode,\n campaignBriefId,\n attachmentId,\n updatedOptions,\n );\n },\n );\n }\n}\n"]}
|
|
1
|
+
{"version":3,"file":"tollFreeVerificationClient.js","sourceRoot":"","sources":["../../src/tollFreeVerificationClient.ts"],"names":[],"mappings":"AAqBA,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AACrD,OAAO,EAAE,eAAe,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AAGpF,OAAO,EAAE,0BAA0B,IAAI,mCAAmC,EAAE,MAAM,0BAA0B,CAAC;AAC7G,OAAO,EAAE,6BAA6B,EAAE,MAAM,6BAA6B,CAAC;AAC5E,OAAO,EAAE,M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MAAM,EAAE,OAAO;gBACf,KAAK,EAAE,CAAC;aACT,CAAC,CAAC;YACH,MAAM,CAAC,CAAC;QACV,CAAC;gBAAS,CAAC;YACT,IAAI,CAAC,GAAG,EAAE,CAAC;QACb,CAAC;IACH,CAAC;IAEM,0BAA0B,CAC/B,WAAmB,EACnB,eAAuB,EACvB,YAAoB,EACpB,UAAwE,EAAE;QAE1E,OAAO,aAAa,CAAC,QAAQ,CAC3B,uDAAuD,EACvD,OAAO,EACP,KAAK,EACH,cAAwF,EACxF,EAAE;YACF,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CAAC,0BAA0B,CAChE,WAAW,EACX,eAAe,EACf,YAAY,EACZ,cAAc,CACf,CAAC;QACJ,CAAC,CACF,CAAC;IACJ,CAAC;CACF","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n/// <reference lib=\"esnext.asynciterable\" />\nimport type {\n AttachmentType,\n CampaignBrief,\n CampaignBriefAttachment,\n FileType,\n TollFreeVerificationCreateOrReplaceCampaignBriefAttachmentOptionalParams,\n TollFreeVerificationDeleteCampaignBriefAttachmentOptionalParams,\n TollFreeVerificationDeleteCampaignBriefOptionalParams,\n TollFreeVerificationGetCampaignBriefAttachmentOptionalParams,\n TollFreeVerificationGetCampaignBriefAttachmentsOptionalParams,\n TollFreeVerificationGetCampaignBriefOptionalParams,\n TollFreeVerificationGetAllCampaignBriefSummariesOptionalParams,\n TollFreeVerificationSubmitCampaignBriefOptionalParams,\n TollFreeVerificationSubmitCampaignBriefResponse,\n TollFreeVerificationUpsertCampaignBriefOptionalParams,\n} from \"./models.js\";\nimport type { CommonClientOptions, InternalClientPipelineOptions } from \"@azure/core-client\";\nimport type { KeyCredential, TokenCredential } from \"@azure/core-auth\";\nimport { isTokenCredential } from \"@azure/core-auth\";\nimport { isKeyCredential, parseClientArguments } from \"@azure/communication-common\";\nimport type { PagedAsyncIterableIterator } from \"@azure/core-paging\";\nimport type { CampaignBriefSummary } from \"./generated/src/index.js\";\nimport { TollFreeVerificationClient as TollFreeVerificationGeneratedClient } from \"./generated/src/index.js\";\nimport { createCommunicationAuthPolicy } from \"@azure/communication-common\";\nimport { logger } from \"./utils/index.js\";\nimport { tracingClient } from \"./generated/src/tracing.js\";\n/**\n * Client options used to configure the TollFreeVerificationClient API requests.\n */\nexport interface TollFreeVerificationClientOptions extends CommonClientOptions {}\n\nconst isTollFreeVerificationClientOptions = (\n options: any,\n): options is TollFreeVerificationClientOptions =>\n options && !isKeyCredential(options) && !isTokenCredential(options);\n\nexport class TollFreeVerificationClient {\n /**\n * A reference to the auto-generated Toll Free Verification HTTP client.\n */\n private readonly client: TollFreeVerificationGeneratedClient;\n\n public constructor(connectionString: string, options?: TollFreeVerificationClientOptions);\n\n public constructor(\n endpoint: string,\n credential: KeyCredential,\n options?: TollFreeVerificationClientOptions,\n );\n\n public constructor(\n endpoint: string,\n credential: TokenCredential,\n options?: TollFreeVerificationClientOptions,\n );\n\n public constructor(\n connectionStringOrUrl: string,\n credentialOrOptions?: KeyCredential | TokenCredential | TollFreeVerificationClientOptions,\n maybeOptions: TollFreeVerificationClientOptions = {},\n ) {\n const { url, credential } = parseClientArguments(connectionStringOrUrl, credentialOrOptions);\n const options = isTollFreeVerificationClientOptions(credentialOrOptions)\n ? credentialOrOptions\n : maybeOptions;\n\n const internalPipelineOptions: InternalClientPipelineOptions = {\n ...options,\n ...{\n loggingOptions: {\n logger: logger.info,\n },\n },\n };\n\n this.client = new TollFreeVerificationGeneratedClient(url, internalPipelineOptions);\n const authPolicy = createCommunicationAuthPolicy(credential);\n this.client.pipeline.addPolicy(authPolicy);\n }\n\n public getCampaignBrief(\n campaignBriefId: string,\n countryCode: string,\n options: TollFreeVerificationGetCampaignBriefOptionalParams = {},\n ): Promise<CampaignBrief> {\n return tracingClient.withSpan(\n \"TollFreeVerificationClient-getCampaignBrief\",\n options,\n async (updatedOptions: TollFreeVerificationGetCampaignBriefOptionalParams | undefined) => {\n return this.client.tollFreeVerification.getCampaignBrief(\n countryCode,\n campaignBriefId,\n updatedOptions,\n );\n },\n );\n }\n\n public listCampaignBriefs(\n options: TollFreeVerificationGetAllCampaignBriefSummariesOptionalParams = {},\n ): PagedAsyncIterableIterator<CampaignBriefSummary> {\n const { span, updatedOptions } = tracingClient.startSpan(\n \"TollFreeVerificationClient-listCampaignBriefs\",\n options,\n );\n try {\n return this.client.tollFreeVerification.listAllCampaignBriefSummaries(updatedOptions);\n } catch (e: any) {\n span.setStatus({\n status: \"error\",\n error: e,\n });\n throw e;\n } finally {\n span.end();\n }\n }\n\n public upsertCampaignBrief(\n campaignBriefId: string,\n countryCode: string,\n options: TollFreeVerificationUpsertCampaignBriefOptionalParams = {},\n ): Promise<CampaignBrief> {\n return tracingClient.withSpan(\n \"TollFreeVerificationClient-upsertCampaignBrief\",\n options,\n async (updatedOptions: TollFreeVerificationUpsertCampaignBriefOptionalParams | undefined) => {\n return this.client.tollFreeVerification.upsertCampaignBrief(\n countryCode,\n campaignBriefId,\n updatedOptions,\n );\n },\n );\n }\n\n public deleteCampaignBrief(\n campaignBriefId: string,\n countryCode: string,\n options: TollFreeVerificationDeleteCampaignBriefOptionalParams = {},\n ): Promise<void> {\n return tracingClient.withSpan(\n \"TollFreeVerificationClient-deleteCampaignBrief\",\n options,\n async (updatedOptions: TollFreeVerificationDeleteCampaignBriefOptionalParams | undefined) => {\n return this.client.tollFreeVerification.deleteCampaignBrief(\n countryCode,\n campaignBriefId,\n updatedOptions,\n );\n },\n );\n }\n\n public submitCampaignBrief(\n campaignBriefId: string,\n countryCode: string,\n options: TollFreeVerificationSubmitCampaignBriefOptionalParams = {},\n ): Promise<TollFreeVerificationSubmitCampaignBriefResponse> {\n return tracingClient.withSpan(\n \"TollFreeVerificationClient-upsertCampaignBrief\",\n options,\n async (updatedOptions: TollFreeVerificationSubmitCampaignBriefOptionalParams | undefined) => {\n return this.client.tollFreeVerification.submitCampaignBrief(\n countryCode,\n campaignBriefId,\n updatedOptions,\n );\n },\n );\n }\n\n public upsertCampaignBriefAttachment(\n countryCode: string,\n campaignBriefId: string,\n attachmentId: string,\n attachmentType: AttachmentType,\n fileName: string,\n fileType: FileType,\n fileContentBase64: string,\n options: TollFreeVerificationCreateOrReplaceCampaignBriefAttachmentOptionalParams = {},\n ): Promise<CampaignBriefAttachment> {\n return tracingClient.withSpan(\n \"TollFreeVerificationClient-upsertCampaignBriefAttachment\",\n options,\n async (\n updatedOptions:\n | TollFreeVerificationCreateOrReplaceCampaignBriefAttachmentOptionalParams\n | undefined,\n ) => {\n return this.client.tollFreeVerification.createOrReplaceCampaignBriefAttachment(\n countryCode,\n campaignBriefId,\n attachmentId,\n attachmentId,\n attachmentType,\n fileName,\n fileType,\n fileContentBase64,\n updatedOptions,\n );\n },\n );\n }\n\n public deleteCampaignBriefAttachment(\n campaignBriefId: string,\n attachmentId: string,\n countryCode: string,\n options: TollFreeVerificationDeleteCampaignBriefAttachmentOptionalParams = {},\n ): Promise<void> {\n return tracingClient.withSpan(\n \"TollFreeVerificationClient-deleteCampaignBriefAttachment\",\n options,\n async (\n updatedOptions: TollFreeVerificationDeleteCampaignBriefAttachmentOptionalParams | undefined,\n ) => {\n return this.client.tollFreeVerification.deleteCampaignBriefAttachment(\n countryCode,\n campaignBriefId,\n attachmentId,\n updatedOptions,\n );\n },\n );\n }\n\n public listCampaignBriefAttachments(\n countryCode: string,\n campaignBriefId: string,\n options: TollFreeVerificationGetCampaignBriefAttachmentsOptionalParams = {},\n ): PagedAsyncIterableIterator<CampaignBrief> {\n const { span, updatedOptions } = tracingClient.startSpan(\n \"TollFreeVerificationClient-listCampaignBriefAttachments\",\n options,\n );\n try {\n return this.client.tollFreeVerification.listCampaignBriefAttachments(\n countryCode,\n campaignBriefId,\n updatedOptions,\n );\n } catch (e: any) {\n span.setStatus({\n status: \"error\",\n error: e,\n });\n throw e;\n } finally {\n span.end();\n }\n }\n\n public getCampaignBriefAttachment(\n countryCode: string,\n campaignBriefId: string,\n attachmentId: string,\n options: TollFreeVerificationGetCampaignBriefAttachmentOptionalParams = {},\n ): Promise<CampaignBrief> {\n return tracingClient.withSpan(\n \"TollFreeVerificationClient-getCampaignBriefAttachment\",\n options,\n async (\n updatedOptions: TollFreeVerificationGetCampaignBriefAttachmentOptionalParams | undefined,\n ) => {\n return this.client.tollFreeVerification.getCampaignBriefAttachment(\n countryCode,\n campaignBriefId,\n attachmentId,\n updatedOptions,\n );\n },\n );\n }\n}\n"]}
|
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
|
-
import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
|
|
9
8
|
import { tracingClient } from "../tracing.js";
|
|
10
9
|
import { setContinuationToken } from "../pagingHelper.js";
|
|
11
10
|
import * as coreClient from "@azure/core-client";
|
|
@@ -14,6 +13,7 @@ import * as Parameters from "../models/parameters.js";
|
|
|
14
13
|
/// <reference lib="esnext.asynciterable" />
|
|
15
14
|
/** Class containing TollFreeVerification operations. */
|
|
16
15
|
export class TollFreeVerificationImpl {
|
|
16
|
+
client;
|
|
17
17
|
/**
|
|
18
18
|
* Initialize a new instance of the class TollFreeVerification class.
|
|
19
19
|
* @param client Reference to the service client
|
|
@@ -36,52 +36,35 @@ export class TollFreeVerificationImpl {
|
|
|
36
36
|
return this;
|
|
37
37
|
},
|
|
38
38
|
byPage: (settings) => {
|
|
39
|
-
if (settings
|
|
39
|
+
if (settings?.maxPageSize) {
|
|
40
40
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
41
41
|
}
|
|
42
42
|
return this.getAllCampaignBriefsByCountryCodePagingPage(countryCode, options, settings);
|
|
43
43
|
},
|
|
44
44
|
};
|
|
45
45
|
}
|
|
46
|
-
getAllCampaignBriefsByCountryCodePagingPage(countryCode, options, settings) {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
}
|
|
64
|
-
});
|
|
46
|
+
async *getAllCampaignBriefsByCountryCodePagingPage(countryCode, options, settings) {
|
|
47
|
+
let result;
|
|
48
|
+
let continuationToken = settings?.continuationToken;
|
|
49
|
+
if (!continuationToken) {
|
|
50
|
+
result = await this._getAllCampaignBriefsByCountryCode(countryCode, options);
|
|
51
|
+
let page = result.campaignBriefs || [];
|
|
52
|
+
continuationToken = result.nextLink;
|
|
53
|
+
setContinuationToken(page, continuationToken);
|
|
54
|
+
yield page;
|
|
55
|
+
}
|
|
56
|
+
while (continuationToken) {
|
|
57
|
+
result = await this._getAllCampaignBriefsByCountryCodeNext(countryCode, continuationToken, options);
|
|
58
|
+
continuationToken = result.nextLink;
|
|
59
|
+
let page = result.campaignBriefs || [];
|
|
60
|
+
setContinuationToken(page, continuationToken);
|
|
61
|
+
yield page;
|
|
62
|
+
}
|
|
65
63
|
}
|
|
66
|
-
getAllCampaignBriefsByCountryCodePagingAll(countryCode, options) {
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
for (var _d = true, _e = __asyncValues(this.getAllCampaignBriefsByCountryCodePagingPage(countryCode, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
71
|
-
_c = _f.value;
|
|
72
|
-
_d = false;
|
|
73
|
-
const page = _c;
|
|
74
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
78
|
-
finally {
|
|
79
|
-
try {
|
|
80
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
81
|
-
}
|
|
82
|
-
finally { if (e_1) throw e_1.error; }
|
|
83
|
-
}
|
|
84
|
-
});
|
|
64
|
+
async *getAllCampaignBriefsByCountryCodePagingAll(countryCode, options) {
|
|
65
|
+
for await (const page of this.getAllCampaignBriefsByCountryCodePagingPage(countryCode, options)) {
|
|
66
|
+
yield* page;
|
|
67
|
+
}
|
|
85
68
|
}
|
|
86
69
|
/**
|
|
87
70
|
* Get a list of Campaign Brief Summaries for the current resource.
|
|
@@ -97,52 +80,35 @@ export class TollFreeVerificationImpl {
|
|
|
97
80
|
return this;
|
|
98
81
|
},
|
|
99
82
|
byPage: (settings) => {
|
|
100
|
-
if (settings
|
|
83
|
+
if (settings?.maxPageSize) {
|
|
101
84
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
102
85
|
}
|
|
103
86
|
return this.getAllCampaignBriefSummariesPagingPage(options, settings);
|
|
104
87
|
},
|
|
105
88
|
};
|
|
106
89
|
}
|
|
107
|
-
getAllCampaignBriefSummariesPagingPage(options, settings) {
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
}
|
|
125
|
-
});
|
|
90
|
+
async *getAllCampaignBriefSummariesPagingPage(options, settings) {
|
|
91
|
+
let result;
|
|
92
|
+
let continuationToken = settings?.continuationToken;
|
|
93
|
+
if (!continuationToken) {
|
|
94
|
+
result = await this._getAllCampaignBriefSummaries(options);
|
|
95
|
+
let page = result.campaignBriefSummaries || [];
|
|
96
|
+
continuationToken = result.nextLink;
|
|
97
|
+
setContinuationToken(page, continuationToken);
|
|
98
|
+
yield page;
|
|
99
|
+
}
|
|
100
|
+
while (continuationToken) {
|
|
101
|
+
result = await this._getAllCampaignBriefSummariesNext(continuationToken, options);
|
|
102
|
+
continuationToken = result.nextLink;
|
|
103
|
+
let page = result.campaignBriefSummaries || [];
|
|
104
|
+
setContinuationToken(page, continuationToken);
|
|
105
|
+
yield page;
|
|
106
|
+
}
|
|
126
107
|
}
|
|
127
|
-
getAllCampaignBriefSummariesPagingAll(options) {
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
for (var _d = true, _e = __asyncValues(this.getAllCampaignBriefSummariesPagingPage(options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
132
|
-
_c = _f.value;
|
|
133
|
-
_d = false;
|
|
134
|
-
const page = _c;
|
|
135
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
139
|
-
finally {
|
|
140
|
-
try {
|
|
141
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
142
|
-
}
|
|
143
|
-
finally { if (e_2) throw e_2.error; }
|
|
144
|
-
}
|
|
145
|
-
});
|
|
108
|
+
async *getAllCampaignBriefSummariesPagingAll(options) {
|
|
109
|
+
for await (const page of this.getAllCampaignBriefSummariesPagingPage(options)) {
|
|
110
|
+
yield* page;
|
|
111
|
+
}
|
|
146
112
|
}
|
|
147
113
|
/**
|
|
148
114
|
* Gets a list of attachments from a Campaign Brief.
|
|
@@ -160,52 +126,35 @@ export class TollFreeVerificationImpl {
|
|
|
160
126
|
return this;
|
|
161
127
|
},
|
|
162
128
|
byPage: (settings) => {
|
|
163
|
-
if (settings
|
|
129
|
+
if (settings?.maxPageSize) {
|
|
164
130
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
165
131
|
}
|
|
166
132
|
return this.getCampaignBriefAttachmentsPagingPage(countryCode, campaignBriefId, options, settings);
|
|
167
133
|
},
|
|
168
134
|
};
|
|
169
135
|
}
|
|
170
|
-
getCampaignBriefAttachmentsPagingPage(countryCode, campaignBriefId, options, settings) {
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
}
|
|
188
|
-
});
|
|
136
|
+
async *getCampaignBriefAttachmentsPagingPage(countryCode, campaignBriefId, options, settings) {
|
|
137
|
+
let result;
|
|
138
|
+
let continuationToken = settings?.continuationToken;
|
|
139
|
+
if (!continuationToken) {
|
|
140
|
+
result = await this._getCampaignBriefAttachments(countryCode, campaignBriefId, options);
|
|
141
|
+
let page = result.attachments || [];
|
|
142
|
+
continuationToken = result.nextLink;
|
|
143
|
+
setContinuationToken(page, continuationToken);
|
|
144
|
+
yield page;
|
|
145
|
+
}
|
|
146
|
+
while (continuationToken) {
|
|
147
|
+
result = await this._getCampaignBriefAttachmentsNext(countryCode, campaignBriefId, continuationToken, options);
|
|
148
|
+
continuationToken = result.nextLink;
|
|
149
|
+
let page = result.attachments || [];
|
|
150
|
+
setContinuationToken(page, continuationToken);
|
|
151
|
+
yield page;
|
|
152
|
+
}
|
|
189
153
|
}
|
|
190
|
-
getCampaignBriefAttachmentsPagingAll(countryCode, campaignBriefId, options) {
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
for (var _d = true, _e = __asyncValues(this.getCampaignBriefAttachmentsPagingPage(countryCode, campaignBriefId, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
195
|
-
_c = _f.value;
|
|
196
|
-
_d = false;
|
|
197
|
-
const page = _c;
|
|
198
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
199
|
-
}
|
|
200
|
-
}
|
|
201
|
-
catch (e_3_1) { e_3 = { error: e_3_1 }; }
|
|
202
|
-
finally {
|
|
203
|
-
try {
|
|
204
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
205
|
-
}
|
|
206
|
-
finally { if (e_3) throw e_3.error; }
|
|
207
|
-
}
|
|
208
|
-
});
|
|
154
|
+
async *getCampaignBriefAttachmentsPagingAll(countryCode, campaignBriefId, options) {
|
|
155
|
+
for await (const page of this.getCampaignBriefAttachmentsPagingPage(countryCode, campaignBriefId, options)) {
|
|
156
|
+
yield* page;
|
|
157
|
+
}
|
|
209
158
|
}
|
|
210
159
|
/**
|
|
211
160
|
* Creates or updates a Campaign Brief.
|
|
@@ -214,7 +163,7 @@ export class TollFreeVerificationImpl {
|
|
|
214
163
|
* @param options The options parameters.
|
|
215
164
|
*/
|
|
216
165
|
async upsertCampaignBrief(countryCode, campaignBriefId, options) {
|
|
217
|
-
return tracingClient.withSpan("TollFreeVerificationClient.upsertCampaignBrief", options
|
|
166
|
+
return tracingClient.withSpan("TollFreeVerificationClient.upsertCampaignBrief", options ?? {}, async (options) => {
|
|
218
167
|
return this.client.sendOperationRequest({ countryCode, campaignBriefId, options }, upsertCampaignBriefOperationSpec);
|
|
219
168
|
});
|
|
220
169
|
}
|
|
@@ -225,7 +174,7 @@ export class TollFreeVerificationImpl {
|
|
|
225
174
|
* @param options The options parameters.
|
|
226
175
|
*/
|
|
227
176
|
async deleteCampaignBrief(countryCode, campaignBriefId, options) {
|
|
228
|
-
return tracingClient.withSpan("TollFreeVerificationClient.deleteCampaignBrief", options
|
|
177
|
+
return tracingClient.withSpan("TollFreeVerificationClient.deleteCampaignBrief", options ?? {}, async (options) => {
|
|
229
178
|
return this.client.sendOperationRequest({ countryCode, campaignBriefId, options }, deleteCampaignBriefOperationSpec);
|
|
230
179
|
});
|
|
231
180
|
}
|
|
@@ -236,7 +185,7 @@ export class TollFreeVerificationImpl {
|
|
|
236
185
|
* @param options The options parameters.
|
|
237
186
|
*/
|
|
238
187
|
async getCampaignBrief(countryCode, campaignBriefId, options) {
|
|
239
|
-
return tracingClient.withSpan("TollFreeVerificationClient.getCampaignBrief", options
|
|
188
|
+
return tracingClient.withSpan("TollFreeVerificationClient.getCampaignBrief", options ?? {}, async (options) => {
|
|
240
189
|
return this.client.sendOperationRequest({ countryCode, campaignBriefId, options }, getCampaignBriefOperationSpec);
|
|
241
190
|
});
|
|
242
191
|
}
|
|
@@ -247,7 +196,7 @@ export class TollFreeVerificationImpl {
|
|
|
247
196
|
* @param options The options parameters.
|
|
248
197
|
*/
|
|
249
198
|
async submitCampaignBrief(countryCode, campaignBriefId, options) {
|
|
250
|
-
return tracingClient.withSpan("TollFreeVerificationClient.submitCampaignBrief", options
|
|
199
|
+
return tracingClient.withSpan("TollFreeVerificationClient.submitCampaignBrief", options ?? {}, async (options) => {
|
|
251
200
|
return this.client.sendOperationRequest({ countryCode, campaignBriefId, options }, submitCampaignBriefOperationSpec);
|
|
252
201
|
});
|
|
253
202
|
}
|
|
@@ -257,7 +206,7 @@ export class TollFreeVerificationImpl {
|
|
|
257
206
|
* @param options The options parameters.
|
|
258
207
|
*/
|
|
259
208
|
async _getAllCampaignBriefsByCountryCode(countryCode, options) {
|
|
260
|
-
return tracingClient.withSpan("TollFreeVerificationClient._getAllCampaignBriefsByCountryCode", options
|
|
209
|
+
return tracingClient.withSpan("TollFreeVerificationClient._getAllCampaignBriefsByCountryCode", options ?? {}, async (options) => {
|
|
261
210
|
return this.client.sendOperationRequest({ countryCode, options }, getAllCampaignBriefsByCountryCodeOperationSpec);
|
|
262
211
|
});
|
|
263
212
|
}
|
|
@@ -266,7 +215,7 @@ export class TollFreeVerificationImpl {
|
|
|
266
215
|
* @param options The options parameters.
|
|
267
216
|
*/
|
|
268
217
|
async _getAllCampaignBriefSummaries(options) {
|
|
269
|
-
return tracingClient.withSpan("TollFreeVerificationClient._getAllCampaignBriefSummaries", options
|
|
218
|
+
return tracingClient.withSpan("TollFreeVerificationClient._getAllCampaignBriefSummaries", options ?? {}, async (options) => {
|
|
270
219
|
return this.client.sendOperationRequest({ options }, getAllCampaignBriefSummariesOperationSpec);
|
|
271
220
|
});
|
|
272
221
|
}
|
|
@@ -286,7 +235,7 @@ export class TollFreeVerificationImpl {
|
|
|
286
235
|
* @param options The options parameters.
|
|
287
236
|
*/
|
|
288
237
|
async createOrReplaceCampaignBriefAttachment(countryCode, campaignBriefId, attachmentId, id, typeParam, fileName, fileType, fileContentBase64, options) {
|
|
289
|
-
return tracingClient.withSpan("TollFreeVerificationClient.createOrReplaceCampaignBriefAttachment", options
|
|
238
|
+
return tracingClient.withSpan("TollFreeVerificationClient.createOrReplaceCampaignBriefAttachment", options ?? {}, async (options) => {
|
|
290
239
|
return this.client.sendOperationRequest({
|
|
291
240
|
countryCode,
|
|
292
241
|
campaignBriefId,
|
|
@@ -308,7 +257,7 @@ export class TollFreeVerificationImpl {
|
|
|
308
257
|
* @param options The options parameters.
|
|
309
258
|
*/
|
|
310
259
|
async deleteCampaignBriefAttachment(countryCode, campaignBriefId, attachmentId, options) {
|
|
311
|
-
return tracingClient.withSpan("TollFreeVerificationClient.deleteCampaignBriefAttachment", options
|
|
260
|
+
return tracingClient.withSpan("TollFreeVerificationClient.deleteCampaignBriefAttachment", options ?? {}, async (options) => {
|
|
312
261
|
return this.client.sendOperationRequest({ countryCode, campaignBriefId, attachmentId, options }, deleteCampaignBriefAttachmentOperationSpec);
|
|
313
262
|
});
|
|
314
263
|
}
|
|
@@ -320,7 +269,7 @@ export class TollFreeVerificationImpl {
|
|
|
320
269
|
* @param options The options parameters.
|
|
321
270
|
*/
|
|
322
271
|
async getCampaignBriefAttachment(countryCode, campaignBriefId, attachmentId, options) {
|
|
323
|
-
return tracingClient.withSpan("TollFreeVerificationClient.getCampaignBriefAttachment", options
|
|
272
|
+
return tracingClient.withSpan("TollFreeVerificationClient.getCampaignBriefAttachment", options ?? {}, async (options) => {
|
|
324
273
|
return this.client.sendOperationRequest({ countryCode, campaignBriefId, attachmentId, options }, getCampaignBriefAttachmentOperationSpec);
|
|
325
274
|
});
|
|
326
275
|
}
|
|
@@ -331,7 +280,7 @@ export class TollFreeVerificationImpl {
|
|
|
331
280
|
* @param options The options parameters.
|
|
332
281
|
*/
|
|
333
282
|
async _getCampaignBriefAttachments(countryCode, campaignBriefId, options) {
|
|
334
|
-
return tracingClient.withSpan("TollFreeVerificationClient._getCampaignBriefAttachments", options
|
|
283
|
+
return tracingClient.withSpan("TollFreeVerificationClient._getCampaignBriefAttachments", options ?? {}, async (options) => {
|
|
335
284
|
return this.client.sendOperationRequest({ countryCode, campaignBriefId, options }, getCampaignBriefAttachmentsOperationSpec);
|
|
336
285
|
});
|
|
337
286
|
}
|
|
@@ -343,7 +292,7 @@ export class TollFreeVerificationImpl {
|
|
|
343
292
|
* @param options The options parameters.
|
|
344
293
|
*/
|
|
345
294
|
async _getAllCampaignBriefsByCountryCodeNext(countryCode, nextLink, options) {
|
|
346
|
-
return tracingClient.withSpan("TollFreeVerificationClient._getAllCampaignBriefsByCountryCodeNext", options
|
|
295
|
+
return tracingClient.withSpan("TollFreeVerificationClient._getAllCampaignBriefsByCountryCodeNext", options ?? {}, async (options) => {
|
|
347
296
|
return this.client.sendOperationRequest({ countryCode, nextLink, options }, getAllCampaignBriefsByCountryCodeNextOperationSpec);
|
|
348
297
|
});
|
|
349
298
|
}
|
|
@@ -354,7 +303,7 @@ export class TollFreeVerificationImpl {
|
|
|
354
303
|
* @param options The options parameters.
|
|
355
304
|
*/
|
|
356
305
|
async _getAllCampaignBriefSummariesNext(nextLink, options) {
|
|
357
|
-
return tracingClient.withSpan("TollFreeVerificationClient._getAllCampaignBriefSummariesNext", options
|
|
306
|
+
return tracingClient.withSpan("TollFreeVerificationClient._getAllCampaignBriefSummariesNext", options ?? {}, async (options) => {
|
|
358
307
|
return this.client.sendOperationRequest({ nextLink, options }, getAllCampaignBriefSummariesNextOperationSpec);
|
|
359
308
|
});
|
|
360
309
|
}
|
|
@@ -367,7 +316,7 @@ export class TollFreeVerificationImpl {
|
|
|
367
316
|
* @param options The options parameters.
|
|
368
317
|
*/
|
|
369
318
|
async _getCampaignBriefAttachmentsNext(countryCode, campaignBriefId, nextLink, options) {
|
|
370
|
-
return tracingClient.withSpan("TollFreeVerificationClient._getCampaignBriefAttachmentsNext", options
|
|
319
|
+
return tracingClient.withSpan("TollFreeVerificationClient._getCampaignBriefAttachmentsNext", options ?? {}, async (options) => {
|
|
371
320
|
return this.client.sendOperationRequest({ countryCode, campaignBriefId, nextLink, options }, getCampaignBriefAttachmentsNextOperationSpec);
|
|
372
321
|
});
|
|
373
322
|
}
|
|
@@ -512,7 +461,7 @@ const createOrReplaceCampaignBriefAttachmentOperationSpec = {
|
|
|
512
461
|
fileType: ["fileType"],
|
|
513
462
|
fileContentBase64: ["fileContentBase64"],
|
|
514
463
|
},
|
|
515
|
-
mapper:
|
|
464
|
+
mapper: { ...Mappers.CampaignBriefAttachment, required: true },
|
|
516
465
|
},
|
|
517
466
|
queryParameters: [Parameters.apiVersion],
|
|
518
467
|
urlParameters: [
|