@azure-tools/communication-toll-free-verification 1.0.0-alpha.20250620.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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tollFreeVerification.js","sourceRoot":"","sources":["../../../../../src/generated/src/operations/tollFreeVerification.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAE9C,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAkCtD,4CAA4C;AAC5C,wDAAwD;AACxD,MAAM,OAAO,wBAAwB;IAGnC;;;OAGG;IACH,YAAY,MAAkC;QAC5C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;OAIG;IACI,kCAAkC,CACvC,WAAmB,EACnB,OAA6E;QAE7E,MAAM,IAAI,GAAG,IAAI,CAAC,0CAA0C,CAC1D,WAAW,EACX,OAAO,CACR,CAAC;QACF,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,WAAW,EAAE,CAAC;oBAC1B,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;gBACrE,CAAC;gBACD,OAAO,IAAI,CAAC,2CAA2C,CACrD,WAAW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AU;CACX,CAAC","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 { tracingClient } from \"../tracing.js\";\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { TollFreeVerification } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { TollFreeVerificationClient } from \"../tollFreeVerificationClient.js\";\nimport {\n CampaignBrief,\n TollFreeVerificationGetAllCampaignBriefsByCountryCodeNextOptionalParams,\n TollFreeVerificationGetAllCampaignBriefsByCountryCodeOptionalParams,\n TollFreeVerificationGetAllCampaignBriefsByCountryCodeResponse,\n CampaignBriefSummary,\n TollFreeVerificationGetAllCampaignBriefSummariesNextOptionalParams,\n TollFreeVerificationGetAllCampaignBriefSummariesOptionalParams,\n TollFreeVerificationGetAllCampaignBriefSummariesResponse,\n CampaignBriefAttachment,\n TollFreeVerificationGetCampaignBriefAttachmentsNextOptionalParams,\n TollFreeVerificationGetCampaignBriefAttachmentsOptionalParams,\n TollFreeVerificationGetCampaignBriefAttachmentsResponse,\n TollFreeVerificationUpsertCampaignBriefOptionalParams,\n TollFreeVerificationUpsertCampaignBriefResponse,\n TollFreeVerificationDeleteCampaignBriefOptionalParams,\n TollFreeVerificationGetCampaignBriefOptionalParams,\n TollFreeVerificationGetCampaignBriefResponse,\n TollFreeVerificationSubmitCampaignBriefOptionalParams,\n TollFreeVerificationSubmitCampaignBriefResponse,\n AttachmentType,\n FileType,\n TollFreeVerificationCreateOrReplaceCampaignBriefAttachmentOptionalParams,\n TollFreeVerificationCreateOrReplaceCampaignBriefAttachmentResponse,\n TollFreeVerificationDeleteCampaignBriefAttachmentOptionalParams,\n TollFreeVerificationGetCampaignBriefAttachmentOptionalParams,\n TollFreeVerificationGetCampaignBriefAttachmentResponse,\n TollFreeVerificationGetAllCampaignBriefsByCountryCodeNextResponse,\n TollFreeVerificationGetAllCampaignBriefSummariesNextResponse,\n TollFreeVerificationGetCampaignBriefAttachmentsNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing TollFreeVerification operations. */\nexport class TollFreeVerificationImpl implements TollFreeVerification {\n private readonly client: TollFreeVerificationClient;\n\n /**\n * Initialize a new instance of the class TollFreeVerification class.\n * @param client Reference to the service client\n */\n constructor(client: TollFreeVerificationClient) {\n this.client = client;\n }\n\n /**\n * Get a list of campaign briefs by country code for the current resource.\n * @param countryCode\n * @param options The options parameters.\n */\n public listAllCampaignBriefsByCountryCode(\n countryCode: string,\n options?: TollFreeVerificationGetAllCampaignBriefsByCountryCodeOptionalParams,\n ): PagedAsyncIterableIterator<CampaignBrief> {\n const iter = this.getAllCampaignBriefsByCountryCodePagingAll(\n countryCode,\n options,\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.getAllCampaignBriefsByCountryCodePagingPage(\n countryCode,\n options,\n settings,\n );\n },\n };\n }\n\n private async *getAllCampaignBriefsByCountryCodePagingPage(\n countryCode: string,\n options?: TollFreeVerificationGetAllCampaignBriefsByCountryCodeOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<CampaignBrief[]> {\n let result: TollFreeVerificationGetAllCampaignBriefsByCountryCodeResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._getAllCampaignBriefsByCountryCode(\n countryCode,\n options,\n );\n let page = result.campaignBriefs || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._getAllCampaignBriefsByCountryCodeNext(\n countryCode,\n continuationToken,\n options,\n );\n continuationToken = result.nextLink;\n let page = result.campaignBriefs || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *getAllCampaignBriefsByCountryCodePagingAll(\n countryCode: string,\n options?: TollFreeVerificationGetAllCampaignBriefsByCountryCodeOptionalParams,\n ): AsyncIterableIterator<CampaignBrief> {\n for await (const page of this.getAllCampaignBriefsByCountryCodePagingPage(\n countryCode,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Get a list of Campaign Brief Summaries for the current resource.\n * @param options The options parameters.\n */\n public listAllCampaignBriefSummaries(\n options?: TollFreeVerificationGetAllCampaignBriefSummariesOptionalParams,\n ): PagedAsyncIterableIterator<CampaignBriefSummary> {\n const iter = this.getAllCampaignBriefSummariesPagingAll(options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.getAllCampaignBriefSummariesPagingPage(options, settings);\n },\n };\n }\n\n private async *getAllCampaignBriefSummariesPagingPage(\n options?: TollFreeVerificationGetAllCampaignBriefSummariesOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<CampaignBriefSummary[]> {\n let result: TollFreeVerificationGetAllCampaignBriefSummariesResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._getAllCampaignBriefSummaries(options);\n let page = result.campaignBriefSummaries || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._getAllCampaignBriefSummariesNext(\n continuationToken,\n options,\n );\n continuationToken = result.nextLink;\n let page = result.campaignBriefSummaries || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *getAllCampaignBriefSummariesPagingAll(\n options?: TollFreeVerificationGetAllCampaignBriefSummariesOptionalParams,\n ): AsyncIterableIterator<CampaignBriefSummary> {\n for await (const page of this.getAllCampaignBriefSummariesPagingPage(\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Gets a list of attachments from a Campaign Brief.\n * @param countryCode\n * @param campaignBriefId\n * @param options The options parameters.\n */\n public listCampaignBriefAttachments(\n countryCode: string,\n campaignBriefId: string,\n options?: TollFreeVerificationGetCampaignBriefAttachmentsOptionalParams,\n ): PagedAsyncIterableIterator<CampaignBriefAttachment> {\n const iter = this.getCampaignBriefAttachmentsPagingAll(\n countryCode,\n campaignBriefId,\n options,\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.getCampaignBriefAttachmentsPagingPage(\n countryCode,\n campaignBriefId,\n options,\n settings,\n );\n },\n };\n }\n\n private async *getCampaignBriefAttachmentsPagingPage(\n countryCode: string,\n campaignBriefId: string,\n options?: TollFreeVerificationGetCampaignBriefAttachmentsOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<CampaignBriefAttachment[]> {\n let result: TollFreeVerificationGetCampaignBriefAttachmentsResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._getCampaignBriefAttachments(\n countryCode,\n campaignBriefId,\n options,\n );\n let page = result.attachments || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._getCampaignBriefAttachmentsNext(\n countryCode,\n campaignBriefId,\n continuationToken,\n options,\n );\n continuationToken = result.nextLink;\n let page = result.attachments || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *getCampaignBriefAttachmentsPagingAll(\n countryCode: string,\n campaignBriefId: string,\n options?: TollFreeVerificationGetCampaignBriefAttachmentsOptionalParams,\n ): AsyncIterableIterator<CampaignBriefAttachment> {\n for await (const page of this.getCampaignBriefAttachmentsPagingPage(\n countryCode,\n campaignBriefId,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Creates or updates a Campaign Brief.\n * @param countryCode Country Code Id. Must be a valid country code\n * @param campaignBriefId Campaign Brief Id. Must be a valid GUID\n * @param options The options parameters.\n */\n async upsertCampaignBrief(\n countryCode: string,\n campaignBriefId: string,\n options?: TollFreeVerificationUpsertCampaignBriefOptionalParams,\n ): Promise<TollFreeVerificationUpsertCampaignBriefResponse> {\n return tracingClient.withSpan(\n \"TollFreeVerificationClient.upsertCampaignBrief\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { countryCode, campaignBriefId, options },\n upsertCampaignBriefOperationSpec,\n ) as Promise<TollFreeVerificationUpsertCampaignBriefResponse>;\n },\n );\n }\n\n /**\n * Deletes a Campaign Brief.\n * @param countryCode Country Code Id. Must be a valid country code\n * @param campaignBriefId Campaign Brief Id of brief to be deleted. Must be a valid GUID\n * @param options The options parameters.\n */\n async deleteCampaignBrief(\n countryCode: string,\n campaignBriefId: string,\n options?: TollFreeVerificationDeleteCampaignBriefOptionalParams,\n ): Promise<void> {\n return tracingClient.withSpan(\n \"TollFreeVerificationClient.deleteCampaignBrief\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { countryCode, campaignBriefId, options },\n deleteCampaignBriefOperationSpec,\n ) as Promise<void>;\n },\n );\n }\n\n /**\n * Get a Campaign Brief by id.\n * @param countryCode Country Code Id. Must be a valid country code\n * @param campaignBriefId Campaign Brief Id. Must be a valid GUID\n * @param options The options parameters.\n */\n async getCampaignBrief(\n countryCode: string,\n campaignBriefId: string,\n options?: TollFreeVerificationGetCampaignBriefOptionalParams,\n ): Promise<TollFreeVerificationGetCampaignBriefResponse> {\n return tracingClient.withSpan(\n \"TollFreeVerificationClient.getCampaignBrief\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { countryCode, campaignBriefId, options },\n getCampaignBriefOperationSpec,\n ) as Promise<TollFreeVerificationGetCampaignBriefResponse>;\n },\n );\n }\n\n /**\n * Submits a Campaign Brief.\n * @param countryCode Country Code Id. Must be a valid country code\n * @param campaignBriefId Campaign Brief Id of brief to be submitted. Must be a valid GUID\n * @param options The options parameters.\n */\n async submitCampaignBrief(\n countryCode: string,\n campaignBriefId: string,\n options?: TollFreeVerificationSubmitCampaignBriefOptionalParams,\n ): Promise<TollFreeVerificationSubmitCampaignBriefResponse> {\n return tracingClient.withSpan(\n \"TollFreeVerificationClient.submitCampaignBrief\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { countryCode, campaignBriefId, options },\n submitCampaignBriefOperationSpec,\n ) as Promise<TollFreeVerificationSubmitCampaignBriefResponse>;\n },\n );\n }\n\n /**\n * Get a list of campaign briefs by country code for the current resource.\n * @param countryCode\n * @param options The options parameters.\n */\n private async _getAllCampaignBriefsByCountryCode(\n countryCode: string,\n options?: TollFreeVerificationGetAllCampaignBriefsByCountryCodeOptionalParams,\n ): Promise<TollFreeVerificationGetAllCampaignBriefsByCountryCodeResponse> {\n return tracingClient.withSpan(\n \"TollFreeVerificationClient._getAllCampaignBriefsByCountryCode\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { countryCode, options },\n getAllCampaignBriefsByCountryCodeOperationSpec,\n ) as Promise<TollFreeVerificationGetAllCampaignBriefsByCountryCodeResponse>;\n },\n );\n }\n\n /**\n * Get a list of Campaign Brief Summaries for the current resource.\n * @param options The options parameters.\n */\n private async _getAllCampaignBriefSummaries(\n options?: TollFreeVerificationGetAllCampaignBriefSummariesOptionalParams,\n ): Promise<TollFreeVerificationGetAllCampaignBriefSummariesResponse> {\n return tracingClient.withSpan(\n \"TollFreeVerificationClient._getAllCampaignBriefSummaries\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { options },\n getAllCampaignBriefSummariesOperationSpec,\n ) as Promise<TollFreeVerificationGetAllCampaignBriefSummariesResponse>;\n },\n );\n }\n\n /**\n * Creates or updates an attachment on a Campaign Brief.\n * @param countryCode Country Code Id. Must be a valid country code\n * @param campaignBriefId Campaign Brief Id. Must be a valid GUID\n * @param attachmentId Attachment Id. Must be a valid GUID\n * @param id Campaign Brief Attachment Id.\n * @param typeParam Attachment type describing the purpose of the attachment\n * e.g. 'callToAction', 'termsOfService'\n * @param fileName The name of the file being attached\n * e.g. 'myFile01'\n * @param fileType The type of file being attached\n * e.g. 'pdf', 'jpg', 'png'\n * @param fileContentBase64 File content as base 64 encoded string\n * @param options The options parameters.\n */\n async createOrReplaceCampaignBriefAttachment(\n countryCode: string,\n campaignBriefId: string,\n attachmentId: string,\n id: string,\n typeParam: AttachmentType,\n fileName: string,\n fileType: FileType,\n fileContentBase64: string,\n options?: TollFreeVerificationCreateOrReplaceCampaignBriefAttachmentOptionalParams,\n ): Promise<TollFreeVerificationCreateOrReplaceCampaignBriefAttachmentResponse> {\n return tracingClient.withSpan(\n \"TollFreeVerificationClient.createOrReplaceCampaignBriefAttachment\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n {\n countryCode,\n campaignBriefId,\n attachmentId,\n id,\n typeParam,\n fileName,\n fileType,\n fileContentBase64,\n options,\n },\n createOrReplaceCampaignBriefAttachmentOperationSpec,\n ) as Promise<TollFreeVerificationCreateOrReplaceCampaignBriefAttachmentResponse>;\n },\n );\n }\n\n /**\n * Deletes a specific attachment from a Campaign Brief.\n * @param countryCode\n * @param campaignBriefId Campaign Brief Id. Must be a valid GUID\n * @param attachmentId Attachment Id. Must be a valid GUID\n * @param options The options parameters.\n */\n async deleteCampaignBriefAttachment(\n countryCode: string,\n campaignBriefId: string,\n attachmentId: string,\n options?: TollFreeVerificationDeleteCampaignBriefAttachmentOptionalParams,\n ): Promise<void> {\n return tracingClient.withSpan(\n \"TollFreeVerificationClient.deleteCampaignBriefAttachment\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { countryCode, campaignBriefId, attachmentId, options },\n deleteCampaignBriefAttachmentOperationSpec,\n ) as Promise<void>;\n },\n );\n }\n\n /**\n * Gets a specific attachment from a Campaign Brief.\n * @param countryCode\n * @param campaignBriefId Campaign Brief Id. Must be a valid GUID\n * @param attachmentId Attachment Id. Must be a valid GUID\n * @param options The options parameters.\n */\n async getCampaignBriefAttachment(\n countryCode: string,\n campaignBriefId: string,\n attachmentId: string,\n options?: TollFreeVerificationGetCampaignBriefAttachmentOptionalParams,\n ): Promise<TollFreeVerificationGetCampaignBriefAttachmentResponse> {\n return tracingClient.withSpan(\n \"TollFreeVerificationClient.getCampaignBriefAttachment\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { countryCode, campaignBriefId, attachmentId, options },\n getCampaignBriefAttachmentOperationSpec,\n ) as Promise<TollFreeVerificationGetCampaignBriefAttachmentResponse>;\n },\n );\n }\n\n /**\n * Gets a list of attachments from a Campaign Brief.\n * @param countryCode\n * @param campaignBriefId\n * @param options The options parameters.\n */\n private async _getCampaignBriefAttachments(\n countryCode: string,\n campaignBriefId: string,\n options?: TollFreeVerificationGetCampaignBriefAttachmentsOptionalParams,\n ): Promise<TollFreeVerificationGetCampaignBriefAttachmentsResponse> {\n return tracingClient.withSpan(\n \"TollFreeVerificationClient._getCampaignBriefAttachments\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { countryCode, campaignBriefId, options },\n getCampaignBriefAttachmentsOperationSpec,\n ) as Promise<TollFreeVerificationGetCampaignBriefAttachmentsResponse>;\n },\n );\n }\n\n /**\n * GetAllCampaignBriefsByCountryCodeNext\n * @param countryCode\n * @param nextLink The nextLink from the previous successful call to the\n * GetAllCampaignBriefsByCountryCode method.\n * @param options The options parameters.\n */\n private async _getAllCampaignBriefsByCountryCodeNext(\n countryCode: string,\n nextLink: string,\n options?: TollFreeVerificationGetAllCampaignBriefsByCountryCodeNextOptionalParams,\n ): Promise<TollFreeVerificationGetAllCampaignBriefsByCountryCodeNextResponse> {\n return tracingClient.withSpan(\n \"TollFreeVerificationClient._getAllCampaignBriefsByCountryCodeNext\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { countryCode, nextLink, options },\n getAllCampaignBriefsByCountryCodeNextOperationSpec,\n ) as Promise<TollFreeVerificationGetAllCampaignBriefsByCountryCodeNextResponse>;\n },\n );\n }\n\n /**\n * GetAllCampaignBriefSummariesNext\n * @param nextLink The nextLink from the previous successful call to the GetAllCampaignBriefSummaries\n * method.\n * @param options The options parameters.\n */\n private async _getAllCampaignBriefSummariesNext(\n nextLink: string,\n options?: TollFreeVerificationGetAllCampaignBriefSummariesNextOptionalParams,\n ): Promise<TollFreeVerificationGetAllCampaignBriefSummariesNextResponse> {\n return tracingClient.withSpan(\n \"TollFreeVerificationClient._getAllCampaignBriefSummariesNext\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { nextLink, options },\n getAllCampaignBriefSummariesNextOperationSpec,\n ) as Promise<TollFreeVerificationGetAllCampaignBriefSummariesNextResponse>;\n },\n );\n }\n\n /**\n * GetCampaignBriefAttachmentsNext\n * @param countryCode\n * @param campaignBriefId\n * @param nextLink The nextLink from the previous successful call to the GetCampaignBriefAttachments\n * method.\n * @param options The options parameters.\n */\n private async _getCampaignBriefAttachmentsNext(\n countryCode: string,\n campaignBriefId: string,\n nextLink: string,\n options?: TollFreeVerificationGetCampaignBriefAttachmentsNextOptionalParams,\n ): Promise<TollFreeVerificationGetCampaignBriefAttachmentsNextResponse> {\n return tracingClient.withSpan(\n \"TollFreeVerificationClient._getCampaignBriefAttachmentsNext\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { countryCode, campaignBriefId, nextLink, options },\n getCampaignBriefAttachmentsNextOperationSpec,\n ) as Promise<TollFreeVerificationGetCampaignBriefAttachmentsNextResponse>;\n },\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst upsertCampaignBriefOperationSpec: coreClient.OperationSpec = {\n path: \"/tollfreeVerification/countries/{countryCode}/campaignBriefs/{campaignBriefId}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.CampaignBrief,\n },\n 201: {\n bodyMapper: Mappers.CampaignBrief,\n },\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n },\n },\n requestBody: Parameters.body,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.endpoint,\n Parameters.countryCode,\n Parameters.campaignBriefId,\n ],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer,\n};\nconst deleteCampaignBriefOperationSpec: coreClient.OperationSpec = {\n path: \"/tollfreeVerification/countries/{countryCode}/campaignBriefs/{campaignBriefId}\",\n httpMethod: \"DELETE\",\n responses: {\n 204: {},\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.endpoint,\n Parameters.countryCode,\n Parameters.campaignBriefId,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getCampaignBriefOperationSpec: coreClient.OperationSpec = {\n path: \"/tollfreeVerification/countries/{countryCode}/campaignBriefs/{campaignBriefId}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.CampaignBrief,\n },\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.endpoint,\n Parameters.countryCode,\n Parameters.campaignBriefId,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst submitCampaignBriefOperationSpec: coreClient.OperationSpec = {\n path: \"/tollfreeVerification/countries/{countryCode}/campaignBriefs/{campaignBriefId}/:submit\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.CampaignBrief,\n },\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.endpoint,\n Parameters.countryCode,\n Parameters.campaignBriefId,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getAllCampaignBriefsByCountryCodeOperationSpec: coreClient.OperationSpec =\n {\n path: \"/tollfreeVerification/countries/{countryCode}/campaignBriefs\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.CampaignBriefs,\n },\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion, Parameters.skip, Parameters.top],\n urlParameters: [Parameters.endpoint, Parameters.countryCode],\n headerParameters: [Parameters.accept],\n serializer,\n };\nconst getAllCampaignBriefSummariesOperationSpec: coreClient.OperationSpec = {\n path: \"/tollfreeVerification/campaignBriefs\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.CampaignBriefSummaries,\n },\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion, Parameters.skip, Parameters.top],\n urlParameters: [Parameters.endpoint],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOrReplaceCampaignBriefAttachmentOperationSpec: coreClient.OperationSpec =\n {\n path: \"/tollfreeVerification/countries/{countryCode}/campaignBriefs/{campaignBriefId}/attachments/{attachmentId}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.CampaignBriefAttachment,\n },\n 201: {\n bodyMapper: Mappers.CampaignBriefAttachment,\n },\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n },\n },\n requestBody: {\n parameterPath: {\n id: [\"id\"],\n typeParam: [\"typeParam\"],\n fileName: [\"fileName\"],\n fileSizeInBytes: [\"options\", \"fileSizeInBytes\"],\n fileType: [\"fileType\"],\n fileContentBase64: [\"fileContentBase64\"],\n },\n mapper: { ...Mappers.CampaignBriefAttachment, required: true },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.endpoint,\n Parameters.countryCode,\n Parameters.campaignBriefId,\n Parameters.attachmentId,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType1],\n mediaType: \"json\",\n serializer,\n };\nconst deleteCampaignBriefAttachmentOperationSpec: coreClient.OperationSpec = {\n path: \"/tollfreeVerification/countries/{countryCode}/campaignBriefs/{campaignBriefId}/attachments/{attachmentId}\",\n httpMethod: \"DELETE\",\n responses: {\n 204: {},\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.endpoint,\n Parameters.countryCode,\n Parameters.campaignBriefId,\n Parameters.attachmentId,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getCampaignBriefAttachmentOperationSpec: coreClient.OperationSpec = {\n path: \"/tollfreeVerification/countries/{countryCode}/campaignBriefs/{campaignBriefId}/attachments/{attachmentId}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.CampaignBriefAttachment,\n },\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.endpoint,\n Parameters.countryCode,\n Parameters.campaignBriefId,\n Parameters.attachmentId,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getCampaignBriefAttachmentsOperationSpec: coreClient.OperationSpec = {\n path: \"/tollfreeVerification/countries/{countryCode}/campaignBriefs/{campaignBriefId}/attachments\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.CampaignBriefAttachments,\n },\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion, Parameters.skip, Parameters.top],\n urlParameters: [\n Parameters.endpoint,\n Parameters.countryCode,\n Parameters.campaignBriefId,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getAllCampaignBriefsByCountryCodeNextOperationSpec: coreClient.OperationSpec =\n {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.CampaignBriefs,\n },\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n },\n },\n urlParameters: [\n Parameters.endpoint,\n Parameters.countryCode,\n Parameters.nextLink,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n };\nconst getAllCampaignBriefSummariesNextOperationSpec: coreClient.OperationSpec =\n {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.CampaignBriefSummaries,\n },\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n },\n },\n urlParameters: [Parameters.endpoint, Parameters.nextLink],\n headerParameters: [Parameters.accept],\n serializer,\n };\nconst getCampaignBriefAttachmentsNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.CampaignBriefAttachments,\n },\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n },\n },\n urlParameters: [\n Parameters.endpoint,\n Parameters.countryCode,\n Parameters.campaignBriefId,\n Parameters.nextLink,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
|
|
1
|
+
{"version":3,"file":"tollFreeVerification.js","sourceRoot":"","sources":["../../../../../src/generated/src/operations/tollFreeVerification.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAE9C,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAkCtD,4CAA4C;AAC5C,wDAAwD;AACxD,MAAM,OAAO,wBAAwB;IAClB,MAAM,CAA6B;IAEpD;;;OAGG;IACH,YAAY,MAAkC;QAC5C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;OAIG;IACI,kCAAkC,CACvC,WAAmB,EACnB,OAA6E;QAE7E,MAAM,IAAI,GAAG,IAAI,CAAC,0CAA0C,CAC1D,WAAW,EACX,OAAO,CACR,CAAC;QACF,OAAO;YACL,IAAI;gBACF,OAAO,I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jB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,sBAAsB;SAC3C;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,0BAA0B;SAC/C;KACF;IACD,aAAa,EAAE,CAAC,UAAU,CAAC,QAAQ,EAAE,UAAU,CAAC,QAAQ,CAAC;IACzD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACJ,MAAM,4CAA4C,GAA6B;IAC7E,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,wBAAwB;SAC7C;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,0BAA0B;SAC/C;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,eAAe;QAC1B,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","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 { tracingClient } from \"../tracing.js\";\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { TollFreeVerification } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { TollFreeVerificationClient } from \"../tollFreeVerificationClient.js\";\nimport {\n CampaignBrief,\n TollFreeVerificationGetAllCampaignBriefsByCountryCodeNextOptionalParams,\n TollFreeVerificationGetAllCampaignBriefsByCountryCodeOptionalParams,\n TollFreeVerificationGetAllCampaignBriefsByCountryCodeResponse,\n CampaignBriefSummary,\n TollFreeVerificationGetAllCampaignBriefSummariesNextOptionalParams,\n TollFreeVerificationGetAllCampaignBriefSummariesOptionalParams,\n TollFreeVerificationGetAllCampaignBriefSummariesResponse,\n CampaignBriefAttachment,\n TollFreeVerificationGetCampaignBriefAttachmentsNextOptionalParams,\n TollFreeVerificationGetCampaignBriefAttachmentsOptionalParams,\n TollFreeVerificationGetCampaignBriefAttachmentsResponse,\n TollFreeVerificationUpsertCampaignBriefOptionalParams,\n TollFreeVerificationUpsertCampaignBriefResponse,\n TollFreeVerificationDeleteCampaignBriefOptionalParams,\n TollFreeVerificationGetCampaignBriefOptionalParams,\n TollFreeVerificationGetCampaignBriefResponse,\n TollFreeVerificationSubmitCampaignBriefOptionalParams,\n TollFreeVerificationSubmitCampaignBriefResponse,\n AttachmentType,\n FileType,\n TollFreeVerificationCreateOrReplaceCampaignBriefAttachmentOptionalParams,\n TollFreeVerificationCreateOrReplaceCampaignBriefAttachmentResponse,\n TollFreeVerificationDeleteCampaignBriefAttachmentOptionalParams,\n TollFreeVerificationGetCampaignBriefAttachmentOptionalParams,\n TollFreeVerificationGetCampaignBriefAttachmentResponse,\n TollFreeVerificationGetAllCampaignBriefsByCountryCodeNextResponse,\n TollFreeVerificationGetAllCampaignBriefSummariesNextResponse,\n TollFreeVerificationGetCampaignBriefAttachmentsNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing TollFreeVerification operations. */\nexport class TollFreeVerificationImpl implements TollFreeVerification {\n private readonly client: TollFreeVerificationClient;\n\n /**\n * Initialize a new instance of the class TollFreeVerification class.\n * @param client Reference to the service client\n */\n constructor(client: TollFreeVerificationClient) {\n this.client = client;\n }\n\n /**\n * Get a list of campaign briefs by country code for the current resource.\n * @param countryCode\n * @param options The options parameters.\n */\n public listAllCampaignBriefsByCountryCode(\n countryCode: string,\n options?: TollFreeVerificationGetAllCampaignBriefsByCountryCodeOptionalParams,\n ): PagedAsyncIterableIterator<CampaignBrief> {\n const iter = this.getAllCampaignBriefsByCountryCodePagingAll(\n countryCode,\n options,\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.getAllCampaignBriefsByCountryCodePagingPage(\n countryCode,\n options,\n settings,\n );\n },\n };\n }\n\n private async *getAllCampaignBriefsByCountryCodePagingPage(\n countryCode: string,\n options?: TollFreeVerificationGetAllCampaignBriefsByCountryCodeOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<CampaignBrief[]> {\n let result: TollFreeVerificationGetAllCampaignBriefsByCountryCodeResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._getAllCampaignBriefsByCountryCode(\n countryCode,\n options,\n );\n let page = result.campaignBriefs || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._getAllCampaignBriefsByCountryCodeNext(\n countryCode,\n continuationToken,\n options,\n );\n continuationToken = result.nextLink;\n let page = result.campaignBriefs || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *getAllCampaignBriefsByCountryCodePagingAll(\n countryCode: string,\n options?: TollFreeVerificationGetAllCampaignBriefsByCountryCodeOptionalParams,\n ): AsyncIterableIterator<CampaignBrief> {\n for await (const page of this.getAllCampaignBriefsByCountryCodePagingPage(\n countryCode,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Get a list of Campaign Brief Summaries for the current resource.\n * @param options The options parameters.\n */\n public listAllCampaignBriefSummaries(\n options?: TollFreeVerificationGetAllCampaignBriefSummariesOptionalParams,\n ): PagedAsyncIterableIterator<CampaignBriefSummary> {\n const iter = this.getAllCampaignBriefSummariesPagingAll(options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.getAllCampaignBriefSummariesPagingPage(options, settings);\n },\n };\n }\n\n private async *getAllCampaignBriefSummariesPagingPage(\n options?: TollFreeVerificationGetAllCampaignBriefSummariesOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<CampaignBriefSummary[]> {\n let result: TollFreeVerificationGetAllCampaignBriefSummariesResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._getAllCampaignBriefSummaries(options);\n let page = result.campaignBriefSummaries || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._getAllCampaignBriefSummariesNext(\n continuationToken,\n options,\n );\n continuationToken = result.nextLink;\n let page = result.campaignBriefSummaries || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *getAllCampaignBriefSummariesPagingAll(\n options?: TollFreeVerificationGetAllCampaignBriefSummariesOptionalParams,\n ): AsyncIterableIterator<CampaignBriefSummary> {\n for await (const page of this.getAllCampaignBriefSummariesPagingPage(\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Gets a list of attachments from a Campaign Brief.\n * @param countryCode\n * @param campaignBriefId\n * @param options The options parameters.\n */\n public listCampaignBriefAttachments(\n countryCode: string,\n campaignBriefId: string,\n options?: TollFreeVerificationGetCampaignBriefAttachmentsOptionalParams,\n ): PagedAsyncIterableIterator<CampaignBriefAttachment> {\n const iter = this.getCampaignBriefAttachmentsPagingAll(\n countryCode,\n campaignBriefId,\n options,\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.getCampaignBriefAttachmentsPagingPage(\n countryCode,\n campaignBriefId,\n options,\n settings,\n );\n },\n };\n }\n\n private async *getCampaignBriefAttachmentsPagingPage(\n countryCode: string,\n campaignBriefId: string,\n options?: TollFreeVerificationGetCampaignBriefAttachmentsOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<CampaignBriefAttachment[]> {\n let result: TollFreeVerificationGetCampaignBriefAttachmentsResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._getCampaignBriefAttachments(\n countryCode,\n campaignBriefId,\n options,\n );\n let page = result.attachments || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._getCampaignBriefAttachmentsNext(\n countryCode,\n campaignBriefId,\n continuationToken,\n options,\n );\n continuationToken = result.nextLink;\n let page = result.attachments || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *getCampaignBriefAttachmentsPagingAll(\n countryCode: string,\n campaignBriefId: string,\n options?: TollFreeVerificationGetCampaignBriefAttachmentsOptionalParams,\n ): AsyncIterableIterator<CampaignBriefAttachment> {\n for await (const page of this.getCampaignBriefAttachmentsPagingPage(\n countryCode,\n campaignBriefId,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Creates or updates a Campaign Brief.\n * @param countryCode Country Code Id. Must be a valid country code\n * @param campaignBriefId Campaign Brief Id. Must be a valid GUID\n * @param options The options parameters.\n */\n async upsertCampaignBrief(\n countryCode: string,\n campaignBriefId: string,\n options?: TollFreeVerificationUpsertCampaignBriefOptionalParams,\n ): Promise<TollFreeVerificationUpsertCampaignBriefResponse> {\n return tracingClient.withSpan(\n \"TollFreeVerificationClient.upsertCampaignBrief\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { countryCode, campaignBriefId, options },\n upsertCampaignBriefOperationSpec,\n ) as Promise<TollFreeVerificationUpsertCampaignBriefResponse>;\n },\n );\n }\n\n /**\n * Deletes a Campaign Brief.\n * @param countryCode Country Code Id. Must be a valid country code\n * @param campaignBriefId Campaign Brief Id of brief to be deleted. Must be a valid GUID\n * @param options The options parameters.\n */\n async deleteCampaignBrief(\n countryCode: string,\n campaignBriefId: string,\n options?: TollFreeVerificationDeleteCampaignBriefOptionalParams,\n ): Promise<void> {\n return tracingClient.withSpan(\n \"TollFreeVerificationClient.deleteCampaignBrief\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { countryCode, campaignBriefId, options },\n deleteCampaignBriefOperationSpec,\n ) as Promise<void>;\n },\n );\n }\n\n /**\n * Get a Campaign Brief by id.\n * @param countryCode Country Code Id. Must be a valid country code\n * @param campaignBriefId Campaign Brief Id. Must be a valid GUID\n * @param options The options parameters.\n */\n async getCampaignBrief(\n countryCode: string,\n campaignBriefId: string,\n options?: TollFreeVerificationGetCampaignBriefOptionalParams,\n ): Promise<TollFreeVerificationGetCampaignBriefResponse> {\n return tracingClient.withSpan(\n \"TollFreeVerificationClient.getCampaignBrief\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { countryCode, campaignBriefId, options },\n getCampaignBriefOperationSpec,\n ) as Promise<TollFreeVerificationGetCampaignBriefResponse>;\n },\n );\n }\n\n /**\n * Submits a Campaign Brief.\n * @param countryCode Country Code Id. Must be a valid country code\n * @param campaignBriefId Campaign Brief Id of brief to be submitted. Must be a valid GUID\n * @param options The options parameters.\n */\n async submitCampaignBrief(\n countryCode: string,\n campaignBriefId: string,\n options?: TollFreeVerificationSubmitCampaignBriefOptionalParams,\n ): Promise<TollFreeVerificationSubmitCampaignBriefResponse> {\n return tracingClient.withSpan(\n \"TollFreeVerificationClient.submitCampaignBrief\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { countryCode, campaignBriefId, options },\n submitCampaignBriefOperationSpec,\n ) as Promise<TollFreeVerificationSubmitCampaignBriefResponse>;\n },\n );\n }\n\n /**\n * Get a list of campaign briefs by country code for the current resource.\n * @param countryCode\n * @param options The options parameters.\n */\n private async _getAllCampaignBriefsByCountryCode(\n countryCode: string,\n options?: TollFreeVerificationGetAllCampaignBriefsByCountryCodeOptionalParams,\n ): Promise<TollFreeVerificationGetAllCampaignBriefsByCountryCodeResponse> {\n return tracingClient.withSpan(\n \"TollFreeVerificationClient._getAllCampaignBriefsByCountryCode\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { countryCode, options },\n getAllCampaignBriefsByCountryCodeOperationSpec,\n ) as Promise<TollFreeVerificationGetAllCampaignBriefsByCountryCodeResponse>;\n },\n );\n }\n\n /**\n * Get a list of Campaign Brief Summaries for the current resource.\n * @param options The options parameters.\n */\n private async _getAllCampaignBriefSummaries(\n options?: TollFreeVerificationGetAllCampaignBriefSummariesOptionalParams,\n ): Promise<TollFreeVerificationGetAllCampaignBriefSummariesResponse> {\n return tracingClient.withSpan(\n \"TollFreeVerificationClient._getAllCampaignBriefSummaries\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { options },\n getAllCampaignBriefSummariesOperationSpec,\n ) as Promise<TollFreeVerificationGetAllCampaignBriefSummariesResponse>;\n },\n );\n }\n\n /**\n * Creates or updates an attachment on a Campaign Brief.\n * @param countryCode Country Code Id. Must be a valid country code\n * @param campaignBriefId Campaign Brief Id. Must be a valid GUID\n * @param attachmentId Attachment Id. Must be a valid GUID\n * @param id Campaign Brief Attachment Id.\n * @param typeParam Attachment type describing the purpose of the attachment\n * e.g. 'callToAction', 'termsOfService'\n * @param fileName The name of the file being attached\n * e.g. 'myFile01'\n * @param fileType The type of file being attached\n * e.g. 'pdf', 'jpg', 'png'\n * @param fileContentBase64 File content as base 64 encoded string\n * @param options The options parameters.\n */\n async createOrReplaceCampaignBriefAttachment(\n countryCode: string,\n campaignBriefId: string,\n attachmentId: string,\n id: string,\n typeParam: AttachmentType,\n fileName: string,\n fileType: FileType,\n fileContentBase64: string,\n options?: TollFreeVerificationCreateOrReplaceCampaignBriefAttachmentOptionalParams,\n ): Promise<TollFreeVerificationCreateOrReplaceCampaignBriefAttachmentResponse> {\n return tracingClient.withSpan(\n \"TollFreeVerificationClient.createOrReplaceCampaignBriefAttachment\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n {\n countryCode,\n campaignBriefId,\n attachmentId,\n id,\n typeParam,\n fileName,\n fileType,\n fileContentBase64,\n options,\n },\n createOrReplaceCampaignBriefAttachmentOperationSpec,\n ) as Promise<TollFreeVerificationCreateOrReplaceCampaignBriefAttachmentResponse>;\n },\n );\n }\n\n /**\n * Deletes a specific attachment from a Campaign Brief.\n * @param countryCode\n * @param campaignBriefId Campaign Brief Id. Must be a valid GUID\n * @param attachmentId Attachment Id. Must be a valid GUID\n * @param options The options parameters.\n */\n async deleteCampaignBriefAttachment(\n countryCode: string,\n campaignBriefId: string,\n attachmentId: string,\n options?: TollFreeVerificationDeleteCampaignBriefAttachmentOptionalParams,\n ): Promise<void> {\n return tracingClient.withSpan(\n \"TollFreeVerificationClient.deleteCampaignBriefAttachment\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { countryCode, campaignBriefId, attachmentId, options },\n deleteCampaignBriefAttachmentOperationSpec,\n ) as Promise<void>;\n },\n );\n }\n\n /**\n * Gets a specific attachment from a Campaign Brief.\n * @param countryCode\n * @param campaignBriefId Campaign Brief Id. Must be a valid GUID\n * @param attachmentId Attachment Id. Must be a valid GUID\n * @param options The options parameters.\n */\n async getCampaignBriefAttachment(\n countryCode: string,\n campaignBriefId: string,\n attachmentId: string,\n options?: TollFreeVerificationGetCampaignBriefAttachmentOptionalParams,\n ): Promise<TollFreeVerificationGetCampaignBriefAttachmentResponse> {\n return tracingClient.withSpan(\n \"TollFreeVerificationClient.getCampaignBriefAttachment\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { countryCode, campaignBriefId, attachmentId, options },\n getCampaignBriefAttachmentOperationSpec,\n ) as Promise<TollFreeVerificationGetCampaignBriefAttachmentResponse>;\n },\n );\n }\n\n /**\n * Gets a list of attachments from a Campaign Brief.\n * @param countryCode\n * @param campaignBriefId\n * @param options The options parameters.\n */\n private async _getCampaignBriefAttachments(\n countryCode: string,\n campaignBriefId: string,\n options?: TollFreeVerificationGetCampaignBriefAttachmentsOptionalParams,\n ): Promise<TollFreeVerificationGetCampaignBriefAttachmentsResponse> {\n return tracingClient.withSpan(\n \"TollFreeVerificationClient._getCampaignBriefAttachments\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { countryCode, campaignBriefId, options },\n getCampaignBriefAttachmentsOperationSpec,\n ) as Promise<TollFreeVerificationGetCampaignBriefAttachmentsResponse>;\n },\n );\n }\n\n /**\n * GetAllCampaignBriefsByCountryCodeNext\n * @param countryCode\n * @param nextLink The nextLink from the previous successful call to the\n * GetAllCampaignBriefsByCountryCode method.\n * @param options The options parameters.\n */\n private async _getAllCampaignBriefsByCountryCodeNext(\n countryCode: string,\n nextLink: string,\n options?: TollFreeVerificationGetAllCampaignBriefsByCountryCodeNextOptionalParams,\n ): Promise<TollFreeVerificationGetAllCampaignBriefsByCountryCodeNextResponse> {\n return tracingClient.withSpan(\n \"TollFreeVerificationClient._getAllCampaignBriefsByCountryCodeNext\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { countryCode, nextLink, options },\n getAllCampaignBriefsByCountryCodeNextOperationSpec,\n ) as Promise<TollFreeVerificationGetAllCampaignBriefsByCountryCodeNextResponse>;\n },\n );\n }\n\n /**\n * GetAllCampaignBriefSummariesNext\n * @param nextLink The nextLink from the previous successful call to the GetAllCampaignBriefSummaries\n * method.\n * @param options The options parameters.\n */\n private async _getAllCampaignBriefSummariesNext(\n nextLink: string,\n options?: TollFreeVerificationGetAllCampaignBriefSummariesNextOptionalParams,\n ): Promise<TollFreeVerificationGetAllCampaignBriefSummariesNextResponse> {\n return tracingClient.withSpan(\n \"TollFreeVerificationClient._getAllCampaignBriefSummariesNext\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { nextLink, options },\n getAllCampaignBriefSummariesNextOperationSpec,\n ) as Promise<TollFreeVerificationGetAllCampaignBriefSummariesNextResponse>;\n },\n );\n }\n\n /**\n * GetCampaignBriefAttachmentsNext\n * @param countryCode\n * @param campaignBriefId\n * @param nextLink The nextLink from the previous successful call to the GetCampaignBriefAttachments\n * method.\n * @param options The options parameters.\n */\n private async _getCampaignBriefAttachmentsNext(\n countryCode: string,\n campaignBriefId: string,\n nextLink: string,\n options?: TollFreeVerificationGetCampaignBriefAttachmentsNextOptionalParams,\n ): Promise<TollFreeVerificationGetCampaignBriefAttachmentsNextResponse> {\n return tracingClient.withSpan(\n \"TollFreeVerificationClient._getCampaignBriefAttachmentsNext\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { countryCode, campaignBriefId, nextLink, options },\n getCampaignBriefAttachmentsNextOperationSpec,\n ) as Promise<TollFreeVerificationGetCampaignBriefAttachmentsNextResponse>;\n },\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst upsertCampaignBriefOperationSpec: coreClient.OperationSpec = {\n path: \"/tollfreeVerification/countries/{countryCode}/campaignBriefs/{campaignBriefId}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.CampaignBrief,\n },\n 201: {\n bodyMapper: Mappers.CampaignBrief,\n },\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n },\n },\n requestBody: Parameters.body,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.endpoint,\n Parameters.countryCode,\n Parameters.campaignBriefId,\n ],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer,\n};\nconst deleteCampaignBriefOperationSpec: coreClient.OperationSpec = {\n path: \"/tollfreeVerification/countries/{countryCode}/campaignBriefs/{campaignBriefId}\",\n httpMethod: \"DELETE\",\n responses: {\n 204: {},\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.endpoint,\n Parameters.countryCode,\n Parameters.campaignBriefId,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getCampaignBriefOperationSpec: coreClient.OperationSpec = {\n path: \"/tollfreeVerification/countries/{countryCode}/campaignBriefs/{campaignBriefId}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.CampaignBrief,\n },\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.endpoint,\n Parameters.countryCode,\n Parameters.campaignBriefId,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst submitCampaignBriefOperationSpec: coreClient.OperationSpec = {\n path: \"/tollfreeVerification/countries/{countryCode}/campaignBriefs/{campaignBriefId}/:submit\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.CampaignBrief,\n },\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.endpoint,\n Parameters.countryCode,\n Parameters.campaignBriefId,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getAllCampaignBriefsByCountryCodeOperationSpec: coreClient.OperationSpec =\n {\n path: \"/tollfreeVerification/countries/{countryCode}/campaignBriefs\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.CampaignBriefs,\n },\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion, Parameters.skip, Parameters.top],\n urlParameters: [Parameters.endpoint, Parameters.countryCode],\n headerParameters: [Parameters.accept],\n serializer,\n };\nconst getAllCampaignBriefSummariesOperationSpec: coreClient.OperationSpec = {\n path: \"/tollfreeVerification/campaignBriefs\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.CampaignBriefSummaries,\n },\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion, Parameters.skip, Parameters.top],\n urlParameters: [Parameters.endpoint],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOrReplaceCampaignBriefAttachmentOperationSpec: coreClient.OperationSpec =\n {\n path: \"/tollfreeVerification/countries/{countryCode}/campaignBriefs/{campaignBriefId}/attachments/{attachmentId}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.CampaignBriefAttachment,\n },\n 201: {\n bodyMapper: Mappers.CampaignBriefAttachment,\n },\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n },\n },\n requestBody: {\n parameterPath: {\n id: [\"id\"],\n typeParam: [\"typeParam\"],\n fileName: [\"fileName\"],\n fileSizeInBytes: [\"options\", \"fileSizeInBytes\"],\n fileType: [\"fileType\"],\n fileContentBase64: [\"fileContentBase64\"],\n },\n mapper: { ...Mappers.CampaignBriefAttachment, required: true },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.endpoint,\n Parameters.countryCode,\n Parameters.campaignBriefId,\n Parameters.attachmentId,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType1],\n mediaType: \"json\",\n serializer,\n };\nconst deleteCampaignBriefAttachmentOperationSpec: coreClient.OperationSpec = {\n path: \"/tollfreeVerification/countries/{countryCode}/campaignBriefs/{campaignBriefId}/attachments/{attachmentId}\",\n httpMethod: \"DELETE\",\n responses: {\n 204: {},\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.endpoint,\n Parameters.countryCode,\n Parameters.campaignBriefId,\n Parameters.attachmentId,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getCampaignBriefAttachmentOperationSpec: coreClient.OperationSpec = {\n path: \"/tollfreeVerification/countries/{countryCode}/campaignBriefs/{campaignBriefId}/attachments/{attachmentId}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.CampaignBriefAttachment,\n },\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.endpoint,\n Parameters.countryCode,\n Parameters.campaignBriefId,\n Parameters.attachmentId,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getCampaignBriefAttachmentsOperationSpec: coreClient.OperationSpec = {\n path: \"/tollfreeVerification/countries/{countryCode}/campaignBriefs/{campaignBriefId}/attachments\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.CampaignBriefAttachments,\n },\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion, Parameters.skip, Parameters.top],\n urlParameters: [\n Parameters.endpoint,\n Parameters.countryCode,\n Parameters.campaignBriefId,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getAllCampaignBriefsByCountryCodeNextOperationSpec: coreClient.OperationSpec =\n {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.CampaignBriefs,\n },\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n },\n },\n urlParameters: [\n Parameters.endpoint,\n Parameters.countryCode,\n Parameters.nextLink,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n };\nconst getAllCampaignBriefSummariesNextOperationSpec: coreClient.OperationSpec =\n {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.CampaignBriefSummaries,\n },\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n },\n },\n urlParameters: [Parameters.endpoint, Parameters.nextLink],\n headerParameters: [Parameters.accept],\n serializer,\n };\nconst getCampaignBriefAttachmentsNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.CampaignBriefAttachments,\n },\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n },\n },\n urlParameters: [\n Parameters.endpoint,\n Parameters.countryCode,\n Parameters.campaignBriefId,\n Parameters.nextLink,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
|
|
@@ -14,18 +14,16 @@ const pageMap = new WeakMap();
|
|
|
14
14
|
* @returns The continuation token that can be passed into byPage() during future calls.
|
|
15
15
|
*/
|
|
16
16
|
export function getContinuationToken(page) {
|
|
17
|
-
var _a;
|
|
18
17
|
if (typeof page !== "object" || page === null) {
|
|
19
18
|
return undefined;
|
|
20
19
|
}
|
|
21
|
-
return
|
|
20
|
+
return pageMap.get(page)?.continuationToken;
|
|
22
21
|
}
|
|
23
22
|
export function setContinuationToken(page, continuationToken) {
|
|
24
|
-
var _a;
|
|
25
23
|
if (typeof page !== "object" || page === null || !continuationToken) {
|
|
26
24
|
return;
|
|
27
25
|
}
|
|
28
|
-
const pageInfo =
|
|
26
|
+
const pageInfo = pageMap.get(page) ?? {};
|
|
29
27
|
pageInfo.continuationToken = continuationToken;
|
|
30
28
|
pageMap.set(page, pageInfo);
|
|
31
29
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pagingHelper.js","sourceRoot":"","sources":["../../../../src/generated/src/pagingHelper.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAMH,MAAM,OAAO,GAAG,IAAI,OAAO,EAAoB,CAAC;AAEhD;;;;;;GAMG;AACH,MAAM,UAAU,oBAAoB,CAAC,IAAa
|
|
1
|
+
{"version":3,"file":"pagingHelper.js","sourceRoot":"","sources":["../../../../src/generated/src/pagingHelper.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAMH,MAAM,OAAO,GAAG,IAAI,OAAO,EAAoB,CAAC;AAEhD;;;;;;GAMG;AACH,MAAM,UAAU,oBAAoB,CAAC,IAAa;IAChD,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,KAAK,IAAI,EAAE,CAAC;QAC9C,OAAO,SAAS,CAAC;IACnB,CAAC;IACD,OAAO,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,iBAAiB,CAAC;AAC9C,CAAC;AAED,MAAM,UAAU,oBAAoB,CAClC,IAAa,EACb,iBAAqC;IAErC,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,KAAK,IAAI,IAAI,CAAC,iBAAiB,EAAE,CAAC;QACpE,OAAO;IACT,CAAC;IACD,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC;IACzC,QAAQ,CAAC,iBAAiB,GAAG,iBAAiB,CAAC;IAC/C,OAAO,CAAC,GAAG,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;AAC9B,CAAC","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\nexport interface PageInfo {\n continuationToken?: string;\n}\n\nconst pageMap = new WeakMap<object, PageInfo>();\n\n/**\n * Given the last `.value` produced by the `byPage` iterator,\n * returns a continuation token that can be used to begin paging from\n * that point later.\n * @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator.\n * @returns The continuation token that can be passed into byPage() during future calls.\n */\nexport function getContinuationToken(page: unknown): string | undefined {\n if (typeof page !== \"object\" || page === null) {\n return undefined;\n }\n return pageMap.get(page)?.continuationToken;\n}\n\nexport function setContinuationToken(\n page: unknown,\n continuationToken: string | undefined,\n): void {\n if (typeof page !== \"object\" || page === null || !continuationToken) {\n return;\n }\n const pageInfo = pageMap.get(page) ?? {};\n pageInfo.continuationToken = continuationToken;\n pageMap.set(page, pageInfo);\n}\n"]}
|
|
@@ -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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IAAI,CAAC,CAAC;QAC/D,IAAI,CAAC,yBAAyB,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC;IACrD,CAAC;IAED,8GAA8G;IACtG,yBAAyB,CAAC,UAAmB;QACnD,IAAI,CAAC,UAAU,EAAE,CAAC;YAChB,OAAO;QACT,CAAC;QACD,MAAM,gBAAgB,GAAG;YACvB,IAAI,EAAE,wBAAwB;YAC9B,KAAK,CAAC,WAAW,CACf,OAAwB,EACxB,IAAiB;gBAEjB,MAAM,KAAK,GAAG,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;gBACrC,IAAI,KAAK,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;oBACrB,MAAM,SAAS,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;wBACjD,IAAI,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC;4BACrC,OAAO,cAAc,GAAG,UAAU,CAAC;wBACrC,CAAC;6BAAM,CAAC;4BACN,OAAO,IAAI,CAAC;wBACd,CAAC;oBACH,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,6BAA6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ACf,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,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;IACrC;;OAEG;IACc,MAAM,CAAsC;IAgB7D,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;Y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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"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@azure-tools/communication-toll-free-verification",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.20250723.1",
|
|
4
4
|
"description": "SDK for Azure Communication Services which facilitates Toll Free Verification.",
|
|
5
5
|
"sdk-type": "client",
|
|
6
6
|
"main": "./dist/commonjs/index.js",
|
|
@@ -116,7 +116,7 @@
|
|
|
116
116
|
"react-native"
|
|
117
117
|
],
|
|
118
118
|
"selfLink": false,
|
|
119
|
-
"project": "
|
|
119
|
+
"project": "../../../tsconfig.src.build.json"
|
|
120
120
|
},
|
|
121
121
|
"browser": "./dist/browser/index.js",
|
|
122
122
|
"exports": {
|