@azure/communication-phone-numbers 1.3.0-beta.1 → 1.3.0-beta.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -1 +1 @@
1
- {"version":3,"file":"phoneNumbers.js","sourceRoot":"","sources":["../../../../../src/generated/src/operations/phoneNumbers.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAE3C,OAAO,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AAEvD,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,mBAAmB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,sBAAsB,CAAC;AAEnD,OAAO,EAAkC,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5E,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAiD3C,4CAA4C;AAC5C,gDAAgD;AAChD,MAAM,OAAO,gBAAgB;IAG3B;;;OAGG;IACH,YAAY,MAA0B;QACpC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACI,aAAa,CAClB,WAAmB,EACnB,eAAgC,EAChC,OAAiD;QAEjD,MAAM,IAAI,GAAG,IAAI,CAAC,sBAAsB,CACtC,WAAW,EACX,eAAe,EACf,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;oBACzB,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;iBACpE;gBACD,OAAO,IAAI,CAAC,uBAAuB,CACjC,WAAW,EACX,eAAe,EACf,OAAO,EACP,QAAQ,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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\";\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper\";\nimport { PhoneNumbers } from \"../operationsInterfaces\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers\";\nimport * as Parameters from \"../models/parameters\";\nimport { PhoneNumbersClient } from \"../phoneNumbersClient\";\nimport { PollerLike, PollOperationState, LroEngine } from \"@azure/core-lro\";\nimport { createLroSpec } from \"../lroImpl\";\nimport {\n PhoneNumberAreaCode,\n PhoneNumbersListAreaCodesNextOptionalParams,\n PhoneNumberType,\n PhoneNumbersListAreaCodesOptionalParams,\n PhoneNumbersListAreaCodesResponse,\n PhoneNumberCountry,\n PhoneNumbersListAvailableCountriesNextOptionalParams,\n PhoneNumbersListAvailableCountriesOptionalParams,\n PhoneNumbersListAvailableCountriesResponse,\n PhoneNumberLocality,\n PhoneNumbersListAvailableLocalitiesNextOptionalParams,\n PhoneNumbersListAvailableLocalitiesOptionalParams,\n PhoneNumbersListAvailableLocalitiesResponse,\n PhoneNumberOffering,\n PhoneNumbersListOfferingsNextOptionalParams,\n PhoneNumbersListOfferingsOptionalParams,\n PhoneNumbersListOfferingsResponse,\n PurchasedPhoneNumber,\n PhoneNumbersListPhoneNumbersNextOptionalParams,\n PhoneNumbersListPhoneNumbersOptionalParams,\n PhoneNumbersListPhoneNumbersResponse,\n PhoneNumberAssignmentType,\n PhoneNumberCapabilities,\n PhoneNumbersSearchAvailablePhoneNumbersOptionalParams,\n PhoneNumbersSearchAvailablePhoneNumbersResponse,\n PhoneNumbersGetSearchResultOptionalParams,\n PhoneNumbersGetSearchResultResponse,\n PhoneNumbersPurchasePhoneNumbersOptionalParams,\n PhoneNumbersPurchasePhoneNumbersResponse,\n PhoneNumbersGetOperationOptionalParams,\n PhoneNumbersGetOperationResponse,\n PhoneNumbersCancelOperationOptionalParams,\n PhoneNumbersUpdateCapabilitiesOptionalParams,\n PhoneNumbersUpdateCapabilitiesResponse,\n PhoneNumbersGetByNumberOptionalParams,\n PhoneNumbersGetByNumberResponse,\n PhoneNumbersReleasePhoneNumberOptionalParams,\n PhoneNumbersReleasePhoneNumberResponse,\n PhoneNumbersOperatorInformationSearchOptionalParams,\n PhoneNumbersOperatorInformationSearchResponse,\n PhoneNumbersListAreaCodesNextResponse,\n PhoneNumbersListAvailableCountriesNextResponse,\n PhoneNumbersListAvailableLocalitiesNextResponse,\n PhoneNumbersListOfferingsNextResponse,\n PhoneNumbersListPhoneNumbersNextResponse\n} from \"../models\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing PhoneNumbers operations. */\nexport class PhoneNumbersImpl implements PhoneNumbers {\n private readonly client: PhoneNumbersClient;\n\n /**\n * Initialize a new instance of the class PhoneNumbers class.\n * @param client Reference to the service client\n */\n constructor(client: PhoneNumbersClient) {\n this.client = client;\n }\n\n /**\n * Gets the list of available area codes.\n * @param countryCode The ISO 3166-2 country code, e.g. US.\n * @param phoneNumberType Filter by numberType, e.g. Geographic, TollFree.\n * @param options The options parameters.\n */\n public listAreaCodes(\n countryCode: string,\n phoneNumberType: PhoneNumberType,\n options?: PhoneNumbersListAreaCodesOptionalParams\n ): PagedAsyncIterableIterator<PhoneNumberAreaCode> {\n const iter = this.listAreaCodesPagingAll(\n countryCode,\n phoneNumberType,\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.listAreaCodesPagingPage(\n countryCode,\n phoneNumberType,\n options,\n settings\n );\n }\n };\n }\n\n private async *listAreaCodesPagingPage(\n countryCode: string,\n phoneNumberType: PhoneNumberType,\n options?: PhoneNumbersListAreaCodesOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<PhoneNumberAreaCode[]> {\n let result: PhoneNumbersListAreaCodesResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listAreaCodes(countryCode, phoneNumberType, options);\n let page = result.areaCodes || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listAreaCodesNext(\n countryCode,\n continuationToken,\n options\n );\n continuationToken = result.nextLink;\n let page = result.areaCodes || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listAreaCodesPagingAll(\n countryCode: string,\n phoneNumberType: PhoneNumberType,\n options?: PhoneNumbersListAreaCodesOptionalParams\n ): AsyncIterableIterator<PhoneNumberAreaCode> {\n for await (const page of this.listAreaCodesPagingPage(\n countryCode,\n phoneNumberType,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Gets the list of supported countries.\n * @param options The options parameters.\n */\n public listAvailableCountries(\n options?: PhoneNumbersListAvailableCountriesOptionalParams\n ): PagedAsyncIterableIterator<PhoneNumberCountry> {\n const iter = this.listAvailableCountriesPagingAll(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.listAvailableCountriesPagingPage(options, settings);\n }\n };\n }\n\n private async *listAvailableCountriesPagingPage(\n options?: PhoneNumbersListAvailableCountriesOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<PhoneNumberCountry[]> {\n let result: PhoneNumbersListAvailableCountriesResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listAvailableCountries(options);\n let page = result.countries || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listAvailableCountriesNext(\n continuationToken,\n options\n );\n continuationToken = result.nextLink;\n let page = result.countries || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listAvailableCountriesPagingAll(\n options?: PhoneNumbersListAvailableCountriesOptionalParams\n ): AsyncIterableIterator<PhoneNumberCountry> {\n for await (const page of this.listAvailableCountriesPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Gets the list of cities or towns with available phone numbers.\n * @param countryCode The ISO 3166-2 country code, e.g. US.\n * @param options The options parameters.\n */\n public listAvailableLocalities(\n countryCode: string,\n options?: PhoneNumbersListAvailableLocalitiesOptionalParams\n ): PagedAsyncIterableIterator<PhoneNumberLocality> {\n const iter = this.listAvailableLocalitiesPagingAll(countryCode, 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.listAvailableLocalitiesPagingPage(\n countryCode,\n options,\n settings\n );\n }\n };\n }\n\n private async *listAvailableLocalitiesPagingPage(\n countryCode: string,\n options?: PhoneNumbersListAvailableLocalitiesOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<PhoneNumberLocality[]> {\n let result: PhoneNumbersListAvailableLocalitiesResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listAvailableLocalities(countryCode, options);\n let page = result.phoneNumberLocalities || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listAvailableLocalitiesNext(\n countryCode,\n continuationToken,\n options\n );\n continuationToken = result.nextLink;\n let page = result.phoneNumberLocalities || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listAvailableLocalitiesPagingAll(\n countryCode: string,\n options?: PhoneNumbersListAvailableLocalitiesOptionalParams\n ): AsyncIterableIterator<PhoneNumberLocality> {\n for await (const page of this.listAvailableLocalitiesPagingPage(\n countryCode,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * List available offerings of capabilities with rates for the given country.\n * @param countryCode The ISO 3166-2 country code, e.g. US.\n * @param options The options parameters.\n */\n public listOfferings(\n countryCode: string,\n options?: PhoneNumbersListOfferingsOptionalParams\n ): PagedAsyncIterableIterator<PhoneNumberOffering> {\n const iter = this.listOfferingsPagingAll(countryCode, 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.listOfferingsPagingPage(countryCode, options, settings);\n }\n };\n }\n\n private async *listOfferingsPagingPage(\n countryCode: string,\n options?: PhoneNumbersListOfferingsOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<PhoneNumberOffering[]> {\n let result: PhoneNumbersListOfferingsResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listOfferings(countryCode, options);\n let page = result.phoneNumberOfferings || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listOfferingsNext(\n countryCode,\n continuationToken,\n options\n );\n continuationToken = result.nextLink;\n let page = result.phoneNumberOfferings || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listOfferingsPagingAll(\n countryCode: string,\n options?: PhoneNumbersListOfferingsOptionalParams\n ): AsyncIterableIterator<PhoneNumberOffering> {\n for await (const page of this.listOfferingsPagingPage(\n countryCode,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Gets the list of all purchased phone numbers.\n * @param options The options parameters.\n */\n public listPhoneNumbers(\n options?: PhoneNumbersListPhoneNumbersOptionalParams\n ): PagedAsyncIterableIterator<PurchasedPhoneNumber> {\n const iter = this.listPhoneNumbersPagingAll(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.listPhoneNumbersPagingPage(options, settings);\n }\n };\n }\n\n private async *listPhoneNumbersPagingPage(\n options?: PhoneNumbersListPhoneNumbersOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<PurchasedPhoneNumber[]> {\n let result: PhoneNumbersListPhoneNumbersResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listPhoneNumbers(options);\n let page = result.phoneNumbers || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listPhoneNumbersNext(continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.phoneNumbers || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPhoneNumbersPagingAll(\n options?: PhoneNumbersListPhoneNumbersOptionalParams\n ): AsyncIterableIterator<PurchasedPhoneNumber> {\n for await (const page of this.listPhoneNumbersPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Gets the list of available area codes.\n * @param countryCode The ISO 3166-2 country code, e.g. US.\n * @param phoneNumberType Filter by numberType, e.g. Geographic, TollFree.\n * @param options The options parameters.\n */\n private async _listAreaCodes(\n countryCode: string,\n phoneNumberType: PhoneNumberType,\n options?: PhoneNumbersListAreaCodesOptionalParams\n ): Promise<PhoneNumbersListAreaCodesResponse> {\n return tracingClient.withSpan(\n \"PhoneNumbersClient._listAreaCodes\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { countryCode, phoneNumberType, options },\n listAreaCodesOperationSpec\n ) as Promise<PhoneNumbersListAreaCodesResponse>;\n }\n );\n }\n\n /**\n * Gets the list of supported countries.\n * @param options The options parameters.\n */\n private async _listAvailableCountries(\n options?: PhoneNumbersListAvailableCountriesOptionalParams\n ): Promise<PhoneNumbersListAvailableCountriesResponse> {\n return tracingClient.withSpan(\n \"PhoneNumbersClient._listAvailableCountries\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { options },\n listAvailableCountriesOperationSpec\n ) as Promise<PhoneNumbersListAvailableCountriesResponse>;\n }\n );\n }\n\n /**\n * Gets the list of cities or towns with available phone numbers.\n * @param countryCode The ISO 3166-2 country code, e.g. US.\n * @param options The options parameters.\n */\n private async _listAvailableLocalities(\n countryCode: string,\n options?: PhoneNumbersListAvailableLocalitiesOptionalParams\n ): Promise<PhoneNumbersListAvailableLocalitiesResponse> {\n return tracingClient.withSpan(\n \"PhoneNumbersClient._listAvailableLocalities\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { countryCode, options },\n listAvailableLocalitiesOperationSpec\n ) as Promise<PhoneNumbersListAvailableLocalitiesResponse>;\n }\n );\n }\n\n /**\n * List available offerings of capabilities with rates for the given country.\n * @param countryCode The ISO 3166-2 country code, e.g. US.\n * @param options The options parameters.\n */\n private async _listOfferings(\n countryCode: string,\n options?: PhoneNumbersListOfferingsOptionalParams\n ): Promise<PhoneNumbersListOfferingsResponse> {\n return tracingClient.withSpan(\n \"PhoneNumbersClient._listOfferings\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { countryCode, options },\n listOfferingsOperationSpec\n ) as Promise<PhoneNumbersListOfferingsResponse>;\n }\n );\n }\n\n /**\n * Search for available phone numbers to purchase.\n * @param countryCode The ISO 3166-2 country code, e.g. US.\n * @param phoneNumberType The type of phone numbers to search for, e.g. geographic, or tollFree.\n * @param assignmentType The assignment type of the phone numbers to search for. A phone number can be\n * assigned to a person, or to an application.\n * @param capabilities Capabilities of a phone number.\n * @param options The options parameters.\n */\n async beginSearchAvailablePhoneNumbers(\n countryCode: string,\n phoneNumberType: PhoneNumberType,\n assignmentType: PhoneNumberAssignmentType,\n capabilities: PhoneNumberCapabilities,\n options?: PhoneNumbersSearchAvailablePhoneNumbersOptionalParams\n ): Promise<\n PollerLike<\n PollOperationState<PhoneNumbersSearchAvailablePhoneNumbersResponse>,\n PhoneNumbersSearchAvailablePhoneNumbersResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<PhoneNumbersSearchAvailablePhoneNumbersResponse> => {\n return tracingClient.withSpan(\n \"PhoneNumbersClient.beginSearchAvailablePhoneNumbers\",\n options ?? {},\n async () => {\n return this.client.sendOperationRequest(args, spec) as Promise<\n PhoneNumbersSearchAvailablePhoneNumbersResponse\n >;\n }\n );\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ) => {\n let currentRawResponse:\n | coreClient.FullOperationResponse\n | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback\n }\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON()\n }\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: {\n countryCode,\n phoneNumberType,\n assignmentType,\n capabilities,\n options\n },\n spec: searchAvailablePhoneNumbersOperationSpec\n });\n const poller = new LroEngine(lro, {\n resumeFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n lroResourceLocationConfig: \"location\"\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Search for available phone numbers to purchase.\n * @param countryCode The ISO 3166-2 country code, e.g. US.\n * @param phoneNumberType The type of phone numbers to search for, e.g. geographic, or tollFree.\n * @param assignmentType The assignment type of the phone numbers to search for. A phone number can be\n * assigned to a person, or to an application.\n * @param capabilities Capabilities of a phone number.\n * @param options The options parameters.\n */\n async beginSearchAvailablePhoneNumbersAndWait(\n countryCode: string,\n phoneNumberType: PhoneNumberType,\n assignmentType: PhoneNumberAssignmentType,\n capabilities: PhoneNumberCapabilities,\n options?: PhoneNumbersSearchAvailablePhoneNumbersOptionalParams\n ): Promise<PhoneNumbersSearchAvailablePhoneNumbersResponse> {\n const poller = await this.beginSearchAvailablePhoneNumbers(\n countryCode,\n phoneNumberType,\n assignmentType,\n capabilities,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Gets a phone number search result by search id.\n * @param searchId The search Id.\n * @param options The options parameters.\n */\n async getSearchResult(\n searchId: string,\n options?: PhoneNumbersGetSearchResultOptionalParams\n ): Promise<PhoneNumbersGetSearchResultResponse> {\n return tracingClient.withSpan(\n \"PhoneNumbersClient.getSearchResult\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { searchId, options },\n getSearchResultOperationSpec\n ) as Promise<PhoneNumbersGetSearchResultResponse>;\n }\n );\n }\n\n /**\n * Purchases phone numbers.\n * @param options The options parameters.\n */\n async beginPurchasePhoneNumbers(\n options?: PhoneNumbersPurchasePhoneNumbersOptionalParams\n ): Promise<\n PollerLike<\n PollOperationState<PhoneNumbersPurchasePhoneNumbersResponse>,\n PhoneNumbersPurchasePhoneNumbersResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<PhoneNumbersPurchasePhoneNumbersResponse> => {\n return tracingClient.withSpan(\n \"PhoneNumbersClient.beginPurchasePhoneNumbers\",\n options ?? {},\n async () => {\n return this.client.sendOperationRequest(args, spec) as Promise<\n PhoneNumbersPurchasePhoneNumbersResponse\n >;\n }\n );\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ) => {\n let currentRawResponse:\n | coreClient.FullOperationResponse\n | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback\n }\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON()\n }\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { options },\n spec: purchasePhoneNumbersOperationSpec\n });\n const poller = new LroEngine(lro, {\n resumeFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Purchases phone numbers.\n * @param options The options parameters.\n */\n async beginPurchasePhoneNumbersAndWait(\n options?: PhoneNumbersPurchasePhoneNumbersOptionalParams\n ): Promise<PhoneNumbersPurchasePhoneNumbersResponse> {\n const poller = await this.beginPurchasePhoneNumbers(options);\n return poller.pollUntilDone();\n }\n\n /**\n * Gets an operation by its id.\n * @param operationId The id of the operation\n * @param options The options parameters.\n */\n async getOperation(\n operationId: string,\n options?: PhoneNumbersGetOperationOptionalParams\n ): Promise<PhoneNumbersGetOperationResponse> {\n return tracingClient.withSpan(\n \"PhoneNumbersClient.getOperation\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { operationId, options },\n getOperationOperationSpec\n ) as Promise<PhoneNumbersGetOperationResponse>;\n }\n );\n }\n\n /**\n * Cancels an operation by its id.\n * @param operationId The id of the operation\n * @param options The options parameters.\n */\n async cancelOperation(\n operationId: string,\n options?: PhoneNumbersCancelOperationOptionalParams\n ): Promise<void> {\n return tracingClient.withSpan(\n \"PhoneNumbersClient.cancelOperation\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { operationId, options },\n cancelOperationOperationSpec\n ) as Promise<void>;\n }\n );\n }\n\n /**\n * Updates the capabilities of a phone number.\n * @param phoneNumber The phone number id in E.164 format. The leading plus can be either + or encoded\n * as %2B, e.g. +11234567890.\n * @param options The options parameters.\n */\n async beginUpdateCapabilities(\n phoneNumber: string,\n options?: PhoneNumbersUpdateCapabilitiesOptionalParams\n ): Promise<\n PollerLike<\n PollOperationState<PhoneNumbersUpdateCapabilitiesResponse>,\n PhoneNumbersUpdateCapabilitiesResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<PhoneNumbersUpdateCapabilitiesResponse> => {\n return tracingClient.withSpan(\n \"PhoneNumbersClient.beginUpdateCapabilities\",\n options ?? {},\n async () => {\n return this.client.sendOperationRequest(args, spec) as Promise<\n PhoneNumbersUpdateCapabilitiesResponse\n >;\n }\n );\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ) => {\n let currentRawResponse:\n | coreClient.FullOperationResponse\n | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback\n }\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON()\n }\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { phoneNumber, options },\n spec: updateCapabilitiesOperationSpec\n });\n const poller = new LroEngine(lro, {\n resumeFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n lroResourceLocationConfig: \"location\"\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Updates the capabilities of a phone number.\n * @param phoneNumber The phone number id in E.164 format. The leading plus can be either + or encoded\n * as %2B, e.g. +11234567890.\n * @param options The options parameters.\n */\n async beginUpdateCapabilitiesAndWait(\n phoneNumber: string,\n options?: PhoneNumbersUpdateCapabilitiesOptionalParams\n ): Promise<PhoneNumbersUpdateCapabilitiesResponse> {\n const poller = await this.beginUpdateCapabilities(phoneNumber, options);\n return poller.pollUntilDone();\n }\n\n /**\n * Gets the details of the given purchased phone number.\n * @param phoneNumber The purchased phone number whose details are to be fetched in E.164 format, e.g.\n * +11234567890.\n * @param options The options parameters.\n */\n async getByNumber(\n phoneNumber: string,\n options?: PhoneNumbersGetByNumberOptionalParams\n ): Promise<PhoneNumbersGetByNumberResponse> {\n return tracingClient.withSpan(\n \"PhoneNumbersClient.getByNumber\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { phoneNumber, options },\n getByNumberOperationSpec\n ) as Promise<PhoneNumbersGetByNumberResponse>;\n }\n );\n }\n\n /**\n * Releases a purchased phone number.\n * @param phoneNumber Phone number to be released, e.g. +11234567890.\n * @param options The options parameters.\n */\n async beginReleasePhoneNumber(\n phoneNumber: string,\n options?: PhoneNumbersReleasePhoneNumberOptionalParams\n ): Promise<\n PollerLike<\n PollOperationState<PhoneNumbersReleasePhoneNumberResponse>,\n PhoneNumbersReleasePhoneNumberResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<PhoneNumbersReleasePhoneNumberResponse> => {\n return tracingClient.withSpan(\n \"PhoneNumbersClient.beginReleasePhoneNumber\",\n options ?? {},\n async () => {\n return this.client.sendOperationRequest(args, spec) as Promise<\n PhoneNumbersReleasePhoneNumberResponse\n >;\n }\n );\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ) => {\n let currentRawResponse:\n | coreClient.FullOperationResponse\n | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback\n }\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON()\n }\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { phoneNumber, options },\n spec: releasePhoneNumberOperationSpec\n });\n const poller = new LroEngine(lro, {\n resumeFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Releases a purchased phone number.\n * @param phoneNumber Phone number to be released, e.g. +11234567890.\n * @param options The options parameters.\n */\n async beginReleasePhoneNumberAndWait(\n phoneNumber: string,\n options?: PhoneNumbersReleasePhoneNumberOptionalParams\n ): Promise<PhoneNumbersReleasePhoneNumberResponse> {\n const poller = await this.beginReleasePhoneNumber(phoneNumber, options);\n return poller.pollUntilDone();\n }\n\n /**\n * Gets the list of all purchased phone numbers.\n * @param options The options parameters.\n */\n private async _listPhoneNumbers(\n options?: PhoneNumbersListPhoneNumbersOptionalParams\n ): Promise<PhoneNumbersListPhoneNumbersResponse> {\n return tracingClient.withSpan(\n \"PhoneNumbersClient._listPhoneNumbers\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { options },\n listPhoneNumbersOperationSpec\n ) as Promise<PhoneNumbersListPhoneNumbersResponse>;\n }\n );\n }\n\n /**\n * Searches for operator information for a given list of phone numbers.\n * @param options The options parameters.\n */\n async operatorInformationSearch(\n options?: PhoneNumbersOperatorInformationSearchOptionalParams\n ): Promise<PhoneNumbersOperatorInformationSearchResponse> {\n return tracingClient.withSpan(\n \"PhoneNumbersClient.operatorInformationSearch\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { options },\n operatorInformationSearchOperationSpec\n ) as Promise<PhoneNumbersOperatorInformationSearchResponse>;\n }\n );\n }\n\n /**\n * ListAreaCodesNext\n * @param countryCode The ISO 3166-2 country code, e.g. US.\n * @param nextLink The nextLink from the previous successful call to the ListAreaCodes method.\n * @param options The options parameters.\n */\n private async _listAreaCodesNext(\n countryCode: string,\n nextLink: string,\n options?: PhoneNumbersListAreaCodesNextOptionalParams\n ): Promise<PhoneNumbersListAreaCodesNextResponse> {\n return tracingClient.withSpan(\n \"PhoneNumbersClient._listAreaCodesNext\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { countryCode, nextLink, options },\n listAreaCodesNextOperationSpec\n ) as Promise<PhoneNumbersListAreaCodesNextResponse>;\n }\n );\n }\n\n /**\n * ListAvailableCountriesNext\n * @param nextLink The nextLink from the previous successful call to the ListAvailableCountries method.\n * @param options The options parameters.\n */\n private async _listAvailableCountriesNext(\n nextLink: string,\n options?: PhoneNumbersListAvailableCountriesNextOptionalParams\n ): Promise<PhoneNumbersListAvailableCountriesNextResponse> {\n return tracingClient.withSpan(\n \"PhoneNumbersClient._listAvailableCountriesNext\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { nextLink, options },\n listAvailableCountriesNextOperationSpec\n ) as Promise<PhoneNumbersListAvailableCountriesNextResponse>;\n }\n );\n }\n\n /**\n * ListAvailableLocalitiesNext\n * @param countryCode The ISO 3166-2 country code, e.g. US.\n * @param nextLink The nextLink from the previous successful call to the ListAvailableLocalities\n * method.\n * @param options The options parameters.\n */\n private async _listAvailableLocalitiesNext(\n countryCode: string,\n nextLink: string,\n options?: PhoneNumbersListAvailableLocalitiesNextOptionalParams\n ): Promise<PhoneNumbersListAvailableLocalitiesNextResponse> {\n return tracingClient.withSpan(\n \"PhoneNumbersClient._listAvailableLocalitiesNext\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { countryCode, nextLink, options },\n listAvailableLocalitiesNextOperationSpec\n ) as Promise<PhoneNumbersListAvailableLocalitiesNextResponse>;\n }\n );\n }\n\n /**\n * ListOfferingsNext\n * @param countryCode The ISO 3166-2 country code, e.g. US.\n * @param nextLink The nextLink from the previous successful call to the ListOfferings method.\n * @param options The options parameters.\n */\n private async _listOfferingsNext(\n countryCode: string,\n nextLink: string,\n options?: PhoneNumbersListOfferingsNextOptionalParams\n ): Promise<PhoneNumbersListOfferingsNextResponse> {\n return tracingClient.withSpan(\n \"PhoneNumbersClient._listOfferingsNext\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { countryCode, nextLink, options },\n listOfferingsNextOperationSpec\n ) as Promise<PhoneNumbersListOfferingsNextResponse>;\n }\n );\n }\n\n /**\n * ListPhoneNumbersNext\n * @param nextLink The nextLink from the previous successful call to the ListPhoneNumbers method.\n * @param options The options parameters.\n */\n private async _listPhoneNumbersNext(\n nextLink: string,\n options?: PhoneNumbersListPhoneNumbersNextOptionalParams\n ): Promise<PhoneNumbersListPhoneNumbersNextResponse> {\n return tracingClient.withSpan(\n \"PhoneNumbersClient._listPhoneNumbersNext\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { nextLink, options },\n listPhoneNumbersNextOperationSpec\n ) as Promise<PhoneNumbersListPhoneNumbersNextResponse>;\n }\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listAreaCodesOperationSpec: coreClient.OperationSpec = {\n path: \"/availablePhoneNumbers/countries/{countryCode}/areaCodes\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.PhoneNumberAreaCodes\n },\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse\n }\n },\n queryParameters: [\n Parameters.phoneNumberType,\n Parameters.skip,\n Parameters.maxPageSize,\n Parameters.assignmentType,\n Parameters.locality,\n Parameters.administrativeDivision,\n Parameters.apiVersion\n ],\n urlParameters: [Parameters.endpoint, Parameters.countryCode],\n headerParameters: [Parameters.accept, Parameters.acceptLanguage],\n serializer\n};\nconst listAvailableCountriesOperationSpec: coreClient.OperationSpec = {\n path: \"/availablePhoneNumbers/countries\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.PhoneNumberCountries\n },\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse\n }\n },\n queryParameters: [\n Parameters.skip,\n Parameters.maxPageSize,\n Parameters.apiVersion\n ],\n urlParameters: [Parameters.endpoint],\n headerParameters: [Parameters.accept, Parameters.acceptLanguage],\n serializer\n};\nconst listAvailableLocalitiesOperationSpec: coreClient.OperationSpec = {\n path: \"/availablePhoneNumbers/countries/{countryCode}/localities\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.PhoneNumberLocalities\n },\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse\n }\n },\n queryParameters: [\n Parameters.skip,\n Parameters.maxPageSize,\n Parameters.administrativeDivision,\n Parameters.apiVersion\n ],\n urlParameters: [Parameters.endpoint, Parameters.countryCode],\n headerParameters: [Parameters.accept, Parameters.acceptLanguage],\n serializer\n};\nconst listOfferingsOperationSpec: coreClient.OperationSpec = {\n path: \"/availablePhoneNumbers/countries/{countryCode}/offerings\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.OfferingsResponse\n },\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse\n }\n },\n queryParameters: [\n Parameters.skip,\n Parameters.maxPageSize,\n Parameters.assignmentType,\n Parameters.apiVersion,\n Parameters.phoneNumberType1\n ],\n urlParameters: [Parameters.endpoint, Parameters.countryCode],\n headerParameters: [Parameters.accept, Parameters.acceptLanguage],\n serializer\n};\nconst searchAvailablePhoneNumbersOperationSpec: coreClient.OperationSpec = {\n path: \"/availablePhoneNumbers/countries/{countryCode}/:search\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.PhoneNumberSearchResult,\n headersMapper: Mappers.PhoneNumbersSearchAvailablePhoneNumbersHeaders\n },\n 201: {\n bodyMapper: Mappers.PhoneNumberSearchResult,\n headersMapper: Mappers.PhoneNumbersSearchAvailablePhoneNumbersHeaders\n },\n 202: {\n bodyMapper: Mappers.PhoneNumberSearchResult,\n headersMapper: Mappers.PhoneNumbersSearchAvailablePhoneNumbersHeaders\n },\n 204: {\n bodyMapper: Mappers.PhoneNumberSearchResult,\n headersMapper: Mappers.PhoneNumbersSearchAvailablePhoneNumbersHeaders\n },\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse\n }\n },\n requestBody: {\n parameterPath: {\n phoneNumberType: [\"phoneNumberType\"],\n assignmentType: [\"assignmentType\"],\n capabilities: [\"capabilities\"],\n areaCode: [\"options\", \"areaCode\"],\n quantity: [\"options\", \"quantity\"]\n },\n mapper: { ...Mappers.PhoneNumberSearchRequest, required: true }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.countryCode],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst getSearchResultOperationSpec: coreClient.OperationSpec = {\n path: \"/availablePhoneNumbers/searchResults/{searchId}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.PhoneNumberSearchResult\n },\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.searchId],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst purchasePhoneNumbersOperationSpec: coreClient.OperationSpec = {\n path: \"/availablePhoneNumbers/:purchase\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n headersMapper: Mappers.PhoneNumbersPurchasePhoneNumbersHeaders\n },\n 201: {\n headersMapper: Mappers.PhoneNumbersPurchasePhoneNumbersHeaders\n },\n 202: {\n headersMapper: Mappers.PhoneNumbersPurchasePhoneNumbersHeaders\n },\n 204: {\n headersMapper: Mappers.PhoneNumbersPurchasePhoneNumbersHeaders\n },\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse\n }\n },\n requestBody: {\n parameterPath: { searchId: [\"options\", \"searchId\"] },\n mapper: { ...Mappers.PhoneNumberPurchaseRequest, required: true }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst getOperationOperationSpec: coreClient.OperationSpec = {\n path: \"/phoneNumbers/operations/{operationId}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.PhoneNumberOperation,\n headersMapper: Mappers.PhoneNumbersGetOperationHeaders\n },\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.operationId],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst cancelOperationOperationSpec: coreClient.OperationSpec = {\n path: \"/phoneNumbers/operations/{operationId}\",\n httpMethod: \"DELETE\",\n responses: {\n 204: {},\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.operationId],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst updateCapabilitiesOperationSpec: coreClient.OperationSpec = {\n path: \"/phoneNumbers/{phoneNumber}/capabilities\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.PurchasedPhoneNumber,\n headersMapper: Mappers.PhoneNumbersUpdateCapabilitiesHeaders\n },\n 201: {\n bodyMapper: Mappers.PurchasedPhoneNumber,\n headersMapper: Mappers.PhoneNumbersUpdateCapabilitiesHeaders\n },\n 202: {\n bodyMapper: Mappers.PurchasedPhoneNumber,\n headersMapper: Mappers.PhoneNumbersUpdateCapabilitiesHeaders\n },\n 204: {\n bodyMapper: Mappers.PurchasedPhoneNumber,\n headersMapper: Mappers.PhoneNumbersUpdateCapabilitiesHeaders\n },\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse\n }\n },\n requestBody: {\n parameterPath: { calling: [\"options\", \"calling\"], sms: [\"options\", \"sms\"] },\n mapper: Mappers.PhoneNumberCapabilitiesRequest\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.phoneNumber],\n headerParameters: [Parameters.accept, Parameters.contentType1],\n mediaType: \"json\",\n serializer\n};\nconst getByNumberOperationSpec: coreClient.OperationSpec = {\n path: \"/phoneNumbers/{phoneNumber}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.PurchasedPhoneNumber\n },\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.phoneNumber],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst releasePhoneNumberOperationSpec: coreClient.OperationSpec = {\n path: \"/phoneNumbers/{phoneNumber}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {\n headersMapper: Mappers.PhoneNumbersReleasePhoneNumberHeaders\n },\n 201: {\n headersMapper: Mappers.PhoneNumbersReleasePhoneNumberHeaders\n },\n 202: {\n headersMapper: Mappers.PhoneNumbersReleasePhoneNumberHeaders\n },\n 204: {\n headersMapper: Mappers.PhoneNumbersReleasePhoneNumberHeaders\n },\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.phoneNumber],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listPhoneNumbersOperationSpec: coreClient.OperationSpec = {\n path: \"/phoneNumbers\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.PurchasedPhoneNumbers\n },\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse\n }\n },\n queryParameters: [Parameters.skip, Parameters.apiVersion, Parameters.top],\n urlParameters: [Parameters.endpoint],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst operatorInformationSearchOperationSpec: coreClient.OperationSpec = {\n path: \"/operatorInformation/:search\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.OperatorInformationResult\n },\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse\n }\n },\n requestBody: {\n parameterPath: { phoneNumbers: [\"options\", \"phoneNumbers\"] },\n mapper: { ...Mappers.OperatorInformationRequest, required: true }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst listAreaCodesNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.PhoneNumberAreaCodes\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, Parameters.acceptLanguage],\n serializer\n};\nconst listAvailableCountriesNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.PhoneNumberCountries\n },\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse\n }\n },\n urlParameters: [Parameters.endpoint, Parameters.nextLink],\n headerParameters: [Parameters.accept, Parameters.acceptLanguage],\n serializer\n};\nconst listAvailableLocalitiesNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.PhoneNumberLocalities\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, Parameters.acceptLanguage],\n serializer\n};\nconst listOfferingsNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.OfferingsResponse\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, Parameters.acceptLanguage],\n serializer\n};\nconst listPhoneNumbersNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.PurchasedPhoneNumbers\n },\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse\n }\n },\n urlParameters: [Parameters.endpoint, Parameters.nextLink],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
1
+ {"version":3,"file":"phoneNumbers.js","sourceRoot":"","sources":["../../../../../src/generated/src/operations/phoneNumbers.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAE3C,OAAO,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AAEvD,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,mBAAmB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,sBAAsB,CAAC;AAEnD,OAAO,EAAkC,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5E,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAiD3C,4CAA4C;AAC5C,gDAAgD;AAChD,MAAM,OAAO,gBAAgB;IAG3B;;;OAGG;IACH,YAAY,MAA0B;QACpC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACI,aAAa,CAClB,WAAmB,EACnB,eAAgC,EAChC,OAAiD;QAEjD,MAAM,IAAI,GAAG,IAAI,CAAC,sBAAsB,CACtC,WAAW,EACX,eAAe,EACf,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;oBACzB,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;iBACpE;gBACD,OAAO,IAAI,CAAC,uBAAuB,CACjC,WAAW,EACX,eAAe,EACf,OAAO,EACP,QAAQ,CACT,CAAC;YACJ,CAAC;SACF,CAAC;I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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\";\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper\";\nimport { PhoneNumbers } from \"../operationsInterfaces\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers\";\nimport * as Parameters from \"../models/parameters\";\nimport { PhoneNumbersClient } from \"../phoneNumbersClient\";\nimport { PollerLike, PollOperationState, LroEngine } from \"@azure/core-lro\";\nimport { createLroSpec } from \"../lroImpl\";\nimport {\n PhoneNumberAreaCode,\n PhoneNumbersListAreaCodesNextOptionalParams,\n PhoneNumberType,\n PhoneNumbersListAreaCodesOptionalParams,\n PhoneNumbersListAreaCodesResponse,\n PhoneNumberCountry,\n PhoneNumbersListAvailableCountriesNextOptionalParams,\n PhoneNumbersListAvailableCountriesOptionalParams,\n PhoneNumbersListAvailableCountriesResponse,\n PhoneNumberLocality,\n PhoneNumbersListAvailableLocalitiesNextOptionalParams,\n PhoneNumbersListAvailableLocalitiesOptionalParams,\n PhoneNumbersListAvailableLocalitiesResponse,\n PhoneNumberOffering,\n PhoneNumbersListOfferingsNextOptionalParams,\n PhoneNumbersListOfferingsOptionalParams,\n PhoneNumbersListOfferingsResponse,\n PurchasedPhoneNumber,\n PhoneNumbersListPhoneNumbersNextOptionalParams,\n PhoneNumbersListPhoneNumbersOptionalParams,\n PhoneNumbersListPhoneNumbersResponse,\n PhoneNumberAssignmentType,\n PhoneNumberCapabilities,\n PhoneNumbersSearchAvailablePhoneNumbersOptionalParams,\n PhoneNumbersSearchAvailablePhoneNumbersResponse,\n PhoneNumbersGetSearchResultOptionalParams,\n PhoneNumbersGetSearchResultResponse,\n PhoneNumbersPurchasePhoneNumbersOptionalParams,\n PhoneNumbersPurchasePhoneNumbersResponse,\n PhoneNumbersGetOperationOptionalParams,\n PhoneNumbersGetOperationResponse,\n PhoneNumbersCancelOperationOptionalParams,\n PhoneNumbersUpdateCapabilitiesOptionalParams,\n PhoneNumbersUpdateCapabilitiesResponse,\n PhoneNumbersGetByNumberOptionalParams,\n PhoneNumbersGetByNumberResponse,\n PhoneNumbersReleasePhoneNumberOptionalParams,\n PhoneNumbersReleasePhoneNumberResponse,\n PhoneNumbersOperatorInformationSearchOptionalParams,\n PhoneNumbersOperatorInformationSearchResponse,\n PhoneNumbersListAreaCodesNextResponse,\n PhoneNumbersListAvailableCountriesNextResponse,\n PhoneNumbersListAvailableLocalitiesNextResponse,\n PhoneNumbersListOfferingsNextResponse,\n PhoneNumbersListPhoneNumbersNextResponse\n} from \"../models\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing PhoneNumbers operations. */\nexport class PhoneNumbersImpl implements PhoneNumbers {\n private readonly client: PhoneNumbersClient;\n\n /**\n * Initialize a new instance of the class PhoneNumbers class.\n * @param client Reference to the service client\n */\n constructor(client: PhoneNumbersClient) {\n this.client = client;\n }\n\n /**\n * Gets the list of available area codes.\n * @param countryCode The ISO 3166-2 country code, e.g. US.\n * @param phoneNumberType Filter by numberType, e.g. Geographic, TollFree.\n * @param options The options parameters.\n */\n public listAreaCodes(\n countryCode: string,\n phoneNumberType: PhoneNumberType,\n options?: PhoneNumbersListAreaCodesOptionalParams\n ): PagedAsyncIterableIterator<PhoneNumberAreaCode> {\n const iter = this.listAreaCodesPagingAll(\n countryCode,\n phoneNumberType,\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.listAreaCodesPagingPage(\n countryCode,\n phoneNumberType,\n options,\n settings\n );\n }\n };\n }\n\n private async *listAreaCodesPagingPage(\n countryCode: string,\n phoneNumberType: PhoneNumberType,\n options?: PhoneNumbersListAreaCodesOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<PhoneNumberAreaCode[]> {\n let result: PhoneNumbersListAreaCodesResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listAreaCodes(countryCode, phoneNumberType, options);\n let page = result.areaCodes || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listAreaCodesNext(\n countryCode,\n continuationToken,\n options\n );\n continuationToken = result.nextLink;\n let page = result.areaCodes || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listAreaCodesPagingAll(\n countryCode: string,\n phoneNumberType: PhoneNumberType,\n options?: PhoneNumbersListAreaCodesOptionalParams\n ): AsyncIterableIterator<PhoneNumberAreaCode> {\n for await (const page of this.listAreaCodesPagingPage(\n countryCode,\n phoneNumberType,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Gets the list of supported countries.\n * @param options The options parameters.\n */\n public listAvailableCountries(\n options?: PhoneNumbersListAvailableCountriesOptionalParams\n ): PagedAsyncIterableIterator<PhoneNumberCountry> {\n const iter = this.listAvailableCountriesPagingAll(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.listAvailableCountriesPagingPage(options, settings);\n }\n };\n }\n\n private async *listAvailableCountriesPagingPage(\n options?: PhoneNumbersListAvailableCountriesOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<PhoneNumberCountry[]> {\n let result: PhoneNumbersListAvailableCountriesResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listAvailableCountries(options);\n let page = result.countries || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listAvailableCountriesNext(\n continuationToken,\n options\n );\n continuationToken = result.nextLink;\n let page = result.countries || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listAvailableCountriesPagingAll(\n options?: PhoneNumbersListAvailableCountriesOptionalParams\n ): AsyncIterableIterator<PhoneNumberCountry> {\n for await (const page of this.listAvailableCountriesPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Gets the list of cities or towns with available phone numbers.\n * @param countryCode The ISO 3166-2 country code, e.g. US.\n * @param options The options parameters.\n */\n public listAvailableLocalities(\n countryCode: string,\n options?: PhoneNumbersListAvailableLocalitiesOptionalParams\n ): PagedAsyncIterableIterator<PhoneNumberLocality> {\n const iter = this.listAvailableLocalitiesPagingAll(countryCode, 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.listAvailableLocalitiesPagingPage(\n countryCode,\n options,\n settings\n );\n }\n };\n }\n\n private async *listAvailableLocalitiesPagingPage(\n countryCode: string,\n options?: PhoneNumbersListAvailableLocalitiesOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<PhoneNumberLocality[]> {\n let result: PhoneNumbersListAvailableLocalitiesResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listAvailableLocalities(countryCode, options);\n let page = result.phoneNumberLocalities || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listAvailableLocalitiesNext(\n countryCode,\n continuationToken,\n options\n );\n continuationToken = result.nextLink;\n let page = result.phoneNumberLocalities || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listAvailableLocalitiesPagingAll(\n countryCode: string,\n options?: PhoneNumbersListAvailableLocalitiesOptionalParams\n ): AsyncIterableIterator<PhoneNumberLocality> {\n for await (const page of this.listAvailableLocalitiesPagingPage(\n countryCode,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * List available offerings of capabilities with rates for the given country.\n * @param countryCode The ISO 3166-2 country code, e.g. US.\n * @param options The options parameters.\n */\n public listOfferings(\n countryCode: string,\n options?: PhoneNumbersListOfferingsOptionalParams\n ): PagedAsyncIterableIterator<PhoneNumberOffering> {\n const iter = this.listOfferingsPagingAll(countryCode, 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.listOfferingsPagingPage(countryCode, options, settings);\n }\n };\n }\n\n private async *listOfferingsPagingPage(\n countryCode: string,\n options?: PhoneNumbersListOfferingsOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<PhoneNumberOffering[]> {\n let result: PhoneNumbersListOfferingsResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listOfferings(countryCode, options);\n let page = result.phoneNumberOfferings || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listOfferingsNext(\n countryCode,\n continuationToken,\n options\n );\n continuationToken = result.nextLink;\n let page = result.phoneNumberOfferings || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listOfferingsPagingAll(\n countryCode: string,\n options?: PhoneNumbersListOfferingsOptionalParams\n ): AsyncIterableIterator<PhoneNumberOffering> {\n for await (const page of this.listOfferingsPagingPage(\n countryCode,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Gets the list of all purchased phone numbers.\n * @param options The options parameters.\n */\n public listPhoneNumbers(\n options?: PhoneNumbersListPhoneNumbersOptionalParams\n ): PagedAsyncIterableIterator<PurchasedPhoneNumber> {\n const iter = this.listPhoneNumbersPagingAll(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.listPhoneNumbersPagingPage(options, settings);\n }\n };\n }\n\n private async *listPhoneNumbersPagingPage(\n options?: PhoneNumbersListPhoneNumbersOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<PurchasedPhoneNumber[]> {\n let result: PhoneNumbersListPhoneNumbersResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listPhoneNumbers(options);\n let page = result.phoneNumbers || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listPhoneNumbersNext(continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.phoneNumbers || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPhoneNumbersPagingAll(\n options?: PhoneNumbersListPhoneNumbersOptionalParams\n ): AsyncIterableIterator<PurchasedPhoneNumber> {\n for await (const page of this.listPhoneNumbersPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Gets the list of available area codes.\n * @param countryCode The ISO 3166-2 country code, e.g. US.\n * @param phoneNumberType Filter by numberType, e.g. Geographic, TollFree.\n * @param options The options parameters.\n */\n private async _listAreaCodes(\n countryCode: string,\n phoneNumberType: PhoneNumberType,\n options?: PhoneNumbersListAreaCodesOptionalParams\n ): Promise<PhoneNumbersListAreaCodesResponse> {\n return tracingClient.withSpan(\n \"PhoneNumbersClient._listAreaCodes\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { countryCode, phoneNumberType, options },\n listAreaCodesOperationSpec\n ) as Promise<PhoneNumbersListAreaCodesResponse>;\n }\n );\n }\n\n /**\n * Gets the list of supported countries.\n * @param options The options parameters.\n */\n private async _listAvailableCountries(\n options?: PhoneNumbersListAvailableCountriesOptionalParams\n ): Promise<PhoneNumbersListAvailableCountriesResponse> {\n return tracingClient.withSpan(\n \"PhoneNumbersClient._listAvailableCountries\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { options },\n listAvailableCountriesOperationSpec\n ) as Promise<PhoneNumbersListAvailableCountriesResponse>;\n }\n );\n }\n\n /**\n * Gets the list of cities or towns with available phone numbers.\n * @param countryCode The ISO 3166-2 country code, e.g. US.\n * @param options The options parameters.\n */\n private async _listAvailableLocalities(\n countryCode: string,\n options?: PhoneNumbersListAvailableLocalitiesOptionalParams\n ): Promise<PhoneNumbersListAvailableLocalitiesResponse> {\n return tracingClient.withSpan(\n \"PhoneNumbersClient._listAvailableLocalities\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { countryCode, options },\n listAvailableLocalitiesOperationSpec\n ) as Promise<PhoneNumbersListAvailableLocalitiesResponse>;\n }\n );\n }\n\n /**\n * List available offerings of capabilities with rates for the given country.\n * @param countryCode The ISO 3166-2 country code, e.g. US.\n * @param options The options parameters.\n */\n private async _listOfferings(\n countryCode: string,\n options?: PhoneNumbersListOfferingsOptionalParams\n ): Promise<PhoneNumbersListOfferingsResponse> {\n return tracingClient.withSpan(\n \"PhoneNumbersClient._listOfferings\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { countryCode, options },\n listOfferingsOperationSpec\n ) as Promise<PhoneNumbersListOfferingsResponse>;\n }\n );\n }\n\n /**\n * Search for available phone numbers to purchase.\n * @param countryCode The ISO 3166-2 country code, e.g. US.\n * @param phoneNumberType The type of phone numbers to search for, e.g. geographic, or tollFree.\n * @param assignmentType The assignment type of the phone numbers to search for. A phone number can be\n * assigned to a person, or to an application.\n * @param capabilities Capabilities of a phone number.\n * @param options The options parameters.\n */\n async beginSearchAvailablePhoneNumbers(\n countryCode: string,\n phoneNumberType: PhoneNumberType,\n assignmentType: PhoneNumberAssignmentType,\n capabilities: PhoneNumberCapabilities,\n options?: PhoneNumbersSearchAvailablePhoneNumbersOptionalParams\n ): Promise<\n PollerLike<\n PollOperationState<PhoneNumbersSearchAvailablePhoneNumbersResponse>,\n PhoneNumbersSearchAvailablePhoneNumbersResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<PhoneNumbersSearchAvailablePhoneNumbersResponse> => {\n return tracingClient.withSpan(\n \"PhoneNumbersClient.beginSearchAvailablePhoneNumbers\",\n options ?? {},\n async () => {\n return this.client.sendOperationRequest(args, spec) as Promise<\n PhoneNumbersSearchAvailablePhoneNumbersResponse\n >;\n }\n );\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ) => {\n let currentRawResponse:\n | coreClient.FullOperationResponse\n | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback\n }\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON()\n }\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: {\n countryCode,\n phoneNumberType,\n assignmentType,\n capabilities,\n options\n },\n spec: searchAvailablePhoneNumbersOperationSpec\n });\n const poller = new LroEngine(lro, {\n resumeFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n lroResourceLocationConfig: \"location\"\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Search for available phone numbers to purchase.\n * @param countryCode The ISO 3166-2 country code, e.g. US.\n * @param phoneNumberType The type of phone numbers to search for, e.g. geographic, or tollFree.\n * @param assignmentType The assignment type of the phone numbers to search for. A phone number can be\n * assigned to a person, or to an application.\n * @param capabilities Capabilities of a phone number.\n * @param options The options parameters.\n */\n async beginSearchAvailablePhoneNumbersAndWait(\n countryCode: string,\n phoneNumberType: PhoneNumberType,\n assignmentType: PhoneNumberAssignmentType,\n capabilities: PhoneNumberCapabilities,\n options?: PhoneNumbersSearchAvailablePhoneNumbersOptionalParams\n ): Promise<PhoneNumbersSearchAvailablePhoneNumbersResponse> {\n const poller = await this.beginSearchAvailablePhoneNumbers(\n countryCode,\n phoneNumberType,\n assignmentType,\n capabilities,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Gets a phone number search result by search id.\n * @param searchId The search Id.\n * @param options The options parameters.\n */\n async getSearchResult(\n searchId: string,\n options?: PhoneNumbersGetSearchResultOptionalParams\n ): Promise<PhoneNumbersGetSearchResultResponse> {\n return tracingClient.withSpan(\n \"PhoneNumbersClient.getSearchResult\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { searchId, options },\n getSearchResultOperationSpec\n ) as Promise<PhoneNumbersGetSearchResultResponse>;\n }\n );\n }\n\n /**\n * Purchases phone numbers.\n * @param options The options parameters.\n */\n async beginPurchasePhoneNumbers(\n options?: PhoneNumbersPurchasePhoneNumbersOptionalParams\n ): Promise<\n PollerLike<\n PollOperationState<PhoneNumbersPurchasePhoneNumbersResponse>,\n PhoneNumbersPurchasePhoneNumbersResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<PhoneNumbersPurchasePhoneNumbersResponse> => {\n return tracingClient.withSpan(\n \"PhoneNumbersClient.beginPurchasePhoneNumbers\",\n options ?? {},\n async () => {\n return this.client.sendOperationRequest(args, spec) as Promise<\n PhoneNumbersPurchasePhoneNumbersResponse\n >;\n }\n );\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ) => {\n let currentRawResponse:\n | coreClient.FullOperationResponse\n | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback\n }\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON()\n }\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { options },\n spec: purchasePhoneNumbersOperationSpec\n });\n const poller = new LroEngine(lro, {\n resumeFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Purchases phone numbers.\n * @param options The options parameters.\n */\n async beginPurchasePhoneNumbersAndWait(\n options?: PhoneNumbersPurchasePhoneNumbersOptionalParams\n ): Promise<PhoneNumbersPurchasePhoneNumbersResponse> {\n const poller = await this.beginPurchasePhoneNumbers(options);\n return poller.pollUntilDone();\n }\n\n /**\n * Gets an operation by its id.\n * @param operationId The id of the operation\n * @param options The options parameters.\n */\n async getOperation(\n operationId: string,\n options?: PhoneNumbersGetOperationOptionalParams\n ): Promise<PhoneNumbersGetOperationResponse> {\n return tracingClient.withSpan(\n \"PhoneNumbersClient.getOperation\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { operationId, options },\n getOperationOperationSpec\n ) as Promise<PhoneNumbersGetOperationResponse>;\n }\n );\n }\n\n /**\n * Cancels an operation by its id.\n * @param operationId The id of the operation\n * @param options The options parameters.\n */\n async cancelOperation(\n operationId: string,\n options?: PhoneNumbersCancelOperationOptionalParams\n ): Promise<void> {\n return tracingClient.withSpan(\n \"PhoneNumbersClient.cancelOperation\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { operationId, options },\n cancelOperationOperationSpec\n ) as Promise<void>;\n }\n );\n }\n\n /**\n * Updates the capabilities of a phone number.\n * @param phoneNumber The phone number id in E.164 format. The leading plus can be either + or encoded\n * as %2B, e.g. +11234567890.\n * @param options The options parameters.\n */\n async beginUpdateCapabilities(\n phoneNumber: string,\n options?: PhoneNumbersUpdateCapabilitiesOptionalParams\n ): Promise<\n PollerLike<\n PollOperationState<PhoneNumbersUpdateCapabilitiesResponse>,\n PhoneNumbersUpdateCapabilitiesResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<PhoneNumbersUpdateCapabilitiesResponse> => {\n return tracingClient.withSpan(\n \"PhoneNumbersClient.beginUpdateCapabilities\",\n options ?? {},\n async () => {\n return this.client.sendOperationRequest(args, spec) as Promise<\n PhoneNumbersUpdateCapabilitiesResponse\n >;\n }\n );\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ) => {\n let currentRawResponse:\n | coreClient.FullOperationResponse\n | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback\n }\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON()\n }\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { phoneNumber, options },\n spec: updateCapabilitiesOperationSpec\n });\n const poller = new LroEngine(lro, {\n resumeFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n lroResourceLocationConfig: \"location\"\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Updates the capabilities of a phone number.\n * @param phoneNumber The phone number id in E.164 format. The leading plus can be either + or encoded\n * as %2B, e.g. +11234567890.\n * @param options The options parameters.\n */\n async beginUpdateCapabilitiesAndWait(\n phoneNumber: string,\n options?: PhoneNumbersUpdateCapabilitiesOptionalParams\n ): Promise<PhoneNumbersUpdateCapabilitiesResponse> {\n const poller = await this.beginUpdateCapabilities(phoneNumber, options);\n return poller.pollUntilDone();\n }\n\n /**\n * Gets the details of the given purchased phone number.\n * @param phoneNumber The purchased phone number whose details are to be fetched in E.164 format, e.g.\n * +11234567890.\n * @param options The options parameters.\n */\n async getByNumber(\n phoneNumber: string,\n options?: PhoneNumbersGetByNumberOptionalParams\n ): Promise<PhoneNumbersGetByNumberResponse> {\n return tracingClient.withSpan(\n \"PhoneNumbersClient.getByNumber\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { phoneNumber, options },\n getByNumberOperationSpec\n ) as Promise<PhoneNumbersGetByNumberResponse>;\n }\n );\n }\n\n /**\n * Releases a purchased phone number.\n * @param phoneNumber Phone number to be released, e.g. +11234567890.\n * @param options The options parameters.\n */\n async beginReleasePhoneNumber(\n phoneNumber: string,\n options?: PhoneNumbersReleasePhoneNumberOptionalParams\n ): Promise<\n PollerLike<\n PollOperationState<PhoneNumbersReleasePhoneNumberResponse>,\n PhoneNumbersReleasePhoneNumberResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<PhoneNumbersReleasePhoneNumberResponse> => {\n return tracingClient.withSpan(\n \"PhoneNumbersClient.beginReleasePhoneNumber\",\n options ?? {},\n async () => {\n return this.client.sendOperationRequest(args, spec) as Promise<\n PhoneNumbersReleasePhoneNumberResponse\n >;\n }\n );\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ) => {\n let currentRawResponse:\n | coreClient.FullOperationResponse\n | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback\n }\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON()\n }\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { phoneNumber, options },\n spec: releasePhoneNumberOperationSpec\n });\n const poller = new LroEngine(lro, {\n resumeFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Releases a purchased phone number.\n * @param phoneNumber Phone number to be released, e.g. +11234567890.\n * @param options The options parameters.\n */\n async beginReleasePhoneNumberAndWait(\n phoneNumber: string,\n options?: PhoneNumbersReleasePhoneNumberOptionalParams\n ): Promise<PhoneNumbersReleasePhoneNumberResponse> {\n const poller = await this.beginReleasePhoneNumber(phoneNumber, options);\n return poller.pollUntilDone();\n }\n\n /**\n * Gets the list of all purchased phone numbers.\n * @param options The options parameters.\n */\n private async _listPhoneNumbers(\n options?: PhoneNumbersListPhoneNumbersOptionalParams\n ): Promise<PhoneNumbersListPhoneNumbersResponse> {\n return tracingClient.withSpan(\n \"PhoneNumbersClient._listPhoneNumbers\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { options },\n listPhoneNumbersOperationSpec\n ) as Promise<PhoneNumbersListPhoneNumbersResponse>;\n }\n );\n }\n\n /**\n * Searches for number format and operator information for a given list of phone numbers.\n * @param options The options parameters.\n */\n async operatorInformationSearch(\n options?: PhoneNumbersOperatorInformationSearchOptionalParams\n ): Promise<PhoneNumbersOperatorInformationSearchResponse> {\n return tracingClient.withSpan(\n \"PhoneNumbersClient.operatorInformationSearch\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { options },\n operatorInformationSearchOperationSpec\n ) as Promise<PhoneNumbersOperatorInformationSearchResponse>;\n }\n );\n }\n\n /**\n * ListAreaCodesNext\n * @param countryCode The ISO 3166-2 country code, e.g. US.\n * @param nextLink The nextLink from the previous successful call to the ListAreaCodes method.\n * @param options The options parameters.\n */\n private async _listAreaCodesNext(\n countryCode: string,\n nextLink: string,\n options?: PhoneNumbersListAreaCodesNextOptionalParams\n ): Promise<PhoneNumbersListAreaCodesNextResponse> {\n return tracingClient.withSpan(\n \"PhoneNumbersClient._listAreaCodesNext\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { countryCode, nextLink, options },\n listAreaCodesNextOperationSpec\n ) as Promise<PhoneNumbersListAreaCodesNextResponse>;\n }\n );\n }\n\n /**\n * ListAvailableCountriesNext\n * @param nextLink The nextLink from the previous successful call to the ListAvailableCountries method.\n * @param options The options parameters.\n */\n private async _listAvailableCountriesNext(\n nextLink: string,\n options?: PhoneNumbersListAvailableCountriesNextOptionalParams\n ): Promise<PhoneNumbersListAvailableCountriesNextResponse> {\n return tracingClient.withSpan(\n \"PhoneNumbersClient._listAvailableCountriesNext\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { nextLink, options },\n listAvailableCountriesNextOperationSpec\n ) as Promise<PhoneNumbersListAvailableCountriesNextResponse>;\n }\n );\n }\n\n /**\n * ListAvailableLocalitiesNext\n * @param countryCode The ISO 3166-2 country code, e.g. US.\n * @param nextLink The nextLink from the previous successful call to the ListAvailableLocalities\n * method.\n * @param options The options parameters.\n */\n private async _listAvailableLocalitiesNext(\n countryCode: string,\n nextLink: string,\n options?: PhoneNumbersListAvailableLocalitiesNextOptionalParams\n ): Promise<PhoneNumbersListAvailableLocalitiesNextResponse> {\n return tracingClient.withSpan(\n \"PhoneNumbersClient._listAvailableLocalitiesNext\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { countryCode, nextLink, options },\n listAvailableLocalitiesNextOperationSpec\n ) as Promise<PhoneNumbersListAvailableLocalitiesNextResponse>;\n }\n );\n }\n\n /**\n * ListOfferingsNext\n * @param countryCode The ISO 3166-2 country code, e.g. US.\n * @param nextLink The nextLink from the previous successful call to the ListOfferings method.\n * @param options The options parameters.\n */\n private async _listOfferingsNext(\n countryCode: string,\n nextLink: string,\n options?: PhoneNumbersListOfferingsNextOptionalParams\n ): Promise<PhoneNumbersListOfferingsNextResponse> {\n return tracingClient.withSpan(\n \"PhoneNumbersClient._listOfferingsNext\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { countryCode, nextLink, options },\n listOfferingsNextOperationSpec\n ) as Promise<PhoneNumbersListOfferingsNextResponse>;\n }\n );\n }\n\n /**\n * ListPhoneNumbersNext\n * @param nextLink The nextLink from the previous successful call to the ListPhoneNumbers method.\n * @param options The options parameters.\n */\n private async _listPhoneNumbersNext(\n nextLink: string,\n options?: PhoneNumbersListPhoneNumbersNextOptionalParams\n ): Promise<PhoneNumbersListPhoneNumbersNextResponse> {\n return tracingClient.withSpan(\n \"PhoneNumbersClient._listPhoneNumbersNext\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { nextLink, options },\n listPhoneNumbersNextOperationSpec\n ) as Promise<PhoneNumbersListPhoneNumbersNextResponse>;\n }\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listAreaCodesOperationSpec: coreClient.OperationSpec = {\n path: \"/availablePhoneNumbers/countries/{countryCode}/areaCodes\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.PhoneNumberAreaCodes\n },\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse\n }\n },\n queryParameters: [\n Parameters.phoneNumberType,\n Parameters.skip,\n Parameters.maxPageSize,\n Parameters.assignmentType,\n Parameters.locality,\n Parameters.administrativeDivision,\n Parameters.apiVersion\n ],\n urlParameters: [Parameters.endpoint, Parameters.countryCode],\n headerParameters: [Parameters.accept, Parameters.acceptLanguage],\n serializer\n};\nconst listAvailableCountriesOperationSpec: coreClient.OperationSpec = {\n path: \"/availablePhoneNumbers/countries\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.PhoneNumberCountries\n },\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse\n }\n },\n queryParameters: [\n Parameters.skip,\n Parameters.maxPageSize,\n Parameters.apiVersion\n ],\n urlParameters: [Parameters.endpoint],\n headerParameters: [Parameters.accept, Parameters.acceptLanguage],\n serializer\n};\nconst listAvailableLocalitiesOperationSpec: coreClient.OperationSpec = {\n path: \"/availablePhoneNumbers/countries/{countryCode}/localities\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.PhoneNumberLocalities\n },\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse\n }\n },\n queryParameters: [\n Parameters.skip,\n Parameters.maxPageSize,\n Parameters.administrativeDivision,\n Parameters.apiVersion\n ],\n urlParameters: [Parameters.endpoint, Parameters.countryCode],\n headerParameters: [Parameters.accept, Parameters.acceptLanguage],\n serializer\n};\nconst listOfferingsOperationSpec: coreClient.OperationSpec = {\n path: \"/availablePhoneNumbers/countries/{countryCode}/offerings\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.OfferingsResponse\n },\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse\n }\n },\n queryParameters: [\n Parameters.skip,\n Parameters.maxPageSize,\n Parameters.assignmentType,\n Parameters.apiVersion,\n Parameters.phoneNumberType1\n ],\n urlParameters: [Parameters.endpoint, Parameters.countryCode],\n headerParameters: [Parameters.accept, Parameters.acceptLanguage],\n serializer\n};\nconst searchAvailablePhoneNumbersOperationSpec: coreClient.OperationSpec = {\n path: \"/availablePhoneNumbers/countries/{countryCode}/:search\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.PhoneNumberSearchResult,\n headersMapper: Mappers.PhoneNumbersSearchAvailablePhoneNumbersHeaders\n },\n 201: {\n bodyMapper: Mappers.PhoneNumberSearchResult,\n headersMapper: Mappers.PhoneNumbersSearchAvailablePhoneNumbersHeaders\n },\n 202: {\n bodyMapper: Mappers.PhoneNumberSearchResult,\n headersMapper: Mappers.PhoneNumbersSearchAvailablePhoneNumbersHeaders\n },\n 204: {\n bodyMapper: Mappers.PhoneNumberSearchResult,\n headersMapper: Mappers.PhoneNumbersSearchAvailablePhoneNumbersHeaders\n },\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse\n }\n },\n requestBody: {\n parameterPath: {\n phoneNumberType: [\"phoneNumberType\"],\n assignmentType: [\"assignmentType\"],\n capabilities: [\"capabilities\"],\n areaCode: [\"options\", \"areaCode\"],\n quantity: [\"options\", \"quantity\"]\n },\n mapper: { ...Mappers.PhoneNumberSearchRequest, required: true }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.countryCode],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst getSearchResultOperationSpec: coreClient.OperationSpec = {\n path: \"/availablePhoneNumbers/searchResults/{searchId}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.PhoneNumberSearchResult\n },\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.searchId],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst purchasePhoneNumbersOperationSpec: coreClient.OperationSpec = {\n path: \"/availablePhoneNumbers/:purchase\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n headersMapper: Mappers.PhoneNumbersPurchasePhoneNumbersHeaders\n },\n 201: {\n headersMapper: Mappers.PhoneNumbersPurchasePhoneNumbersHeaders\n },\n 202: {\n headersMapper: Mappers.PhoneNumbersPurchasePhoneNumbersHeaders\n },\n 204: {\n headersMapper: Mappers.PhoneNumbersPurchasePhoneNumbersHeaders\n },\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse\n }\n },\n requestBody: {\n parameterPath: { searchId: [\"options\", \"searchId\"] },\n mapper: { ...Mappers.PhoneNumberPurchaseRequest, required: true }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst getOperationOperationSpec: coreClient.OperationSpec = {\n path: \"/phoneNumbers/operations/{operationId}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.PhoneNumberOperation,\n headersMapper: Mappers.PhoneNumbersGetOperationHeaders\n },\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.operationId],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst cancelOperationOperationSpec: coreClient.OperationSpec = {\n path: \"/phoneNumbers/operations/{operationId}\",\n httpMethod: \"DELETE\",\n responses: {\n 204: {},\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.operationId],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst updateCapabilitiesOperationSpec: coreClient.OperationSpec = {\n path: \"/phoneNumbers/{phoneNumber}/capabilities\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.PurchasedPhoneNumber,\n headersMapper: Mappers.PhoneNumbersUpdateCapabilitiesHeaders\n },\n 201: {\n bodyMapper: Mappers.PurchasedPhoneNumber,\n headersMapper: Mappers.PhoneNumbersUpdateCapabilitiesHeaders\n },\n 202: {\n bodyMapper: Mappers.PurchasedPhoneNumber,\n headersMapper: Mappers.PhoneNumbersUpdateCapabilitiesHeaders\n },\n 204: {\n bodyMapper: Mappers.PurchasedPhoneNumber,\n headersMapper: Mappers.PhoneNumbersUpdateCapabilitiesHeaders\n },\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse\n }\n },\n requestBody: {\n parameterPath: { calling: [\"options\", \"calling\"], sms: [\"options\", \"sms\"] },\n mapper: Mappers.PhoneNumberCapabilitiesRequest\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.phoneNumber],\n headerParameters: [Parameters.accept, Parameters.contentType1],\n mediaType: \"json\",\n serializer\n};\nconst getByNumberOperationSpec: coreClient.OperationSpec = {\n path: \"/phoneNumbers/{phoneNumber}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.PurchasedPhoneNumber\n },\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.phoneNumber],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst releasePhoneNumberOperationSpec: coreClient.OperationSpec = {\n path: \"/phoneNumbers/{phoneNumber}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {\n headersMapper: Mappers.PhoneNumbersReleasePhoneNumberHeaders\n },\n 201: {\n headersMapper: Mappers.PhoneNumbersReleasePhoneNumberHeaders\n },\n 202: {\n headersMapper: Mappers.PhoneNumbersReleasePhoneNumberHeaders\n },\n 204: {\n headersMapper: Mappers.PhoneNumbersReleasePhoneNumberHeaders\n },\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.phoneNumber],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listPhoneNumbersOperationSpec: coreClient.OperationSpec = {\n path: \"/phoneNumbers\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.PurchasedPhoneNumbers\n },\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse\n }\n },\n queryParameters: [Parameters.skip, Parameters.apiVersion, Parameters.top],\n urlParameters: [Parameters.endpoint],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst operatorInformationSearchOperationSpec: coreClient.OperationSpec = {\n path: \"/operatorInformation/:search\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.OperatorInformationResult\n },\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse\n }\n },\n requestBody: {\n parameterPath: { phoneNumbers: [\"options\", \"phoneNumbers\"] },\n mapper: { ...Mappers.OperatorInformationRequest, required: true }\n },\n queryParameters: [Parameters.apiVersion, Parameters.options],\n urlParameters: [Parameters.endpoint],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst listAreaCodesNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.PhoneNumberAreaCodes\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, Parameters.acceptLanguage],\n serializer\n};\nconst listAvailableCountriesNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.PhoneNumberCountries\n },\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse\n }\n },\n urlParameters: [Parameters.endpoint, Parameters.nextLink],\n headerParameters: [Parameters.accept, Parameters.acceptLanguage],\n serializer\n};\nconst listAvailableLocalitiesNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.PhoneNumberLocalities\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, Parameters.acceptLanguage],\n serializer\n};\nconst listOfferingsNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.OfferingsResponse\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, Parameters.acceptLanguage],\n serializer\n};\nconst listPhoneNumbersNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.PurchasedPhoneNumbers\n },\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse\n }\n },\n urlParameters: [Parameters.endpoint, Parameters.nextLink],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"phoneNumbers.js","sourceRoot":"","sources":["../../../../../src/generated/src/operationsInterfaces/phoneNumbers.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG","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 { PagedAsyncIterableIterator } from \"@azure/core-paging\";\nimport { PollerLike, PollOperationState } from \"@azure/core-lro\";\nimport {\n PhoneNumberAreaCode,\n PhoneNumberType,\n PhoneNumbersListAreaCodesOptionalParams,\n PhoneNumberCountry,\n PhoneNumbersListAvailableCountriesOptionalParams,\n PhoneNumberLocality,\n PhoneNumbersListAvailableLocalitiesOptionalParams,\n PhoneNumberOffering,\n PhoneNumbersListOfferingsOptionalParams,\n PurchasedPhoneNumber,\n PhoneNumbersListPhoneNumbersOptionalParams,\n PhoneNumberAssignmentType,\n PhoneNumberCapabilities,\n PhoneNumbersSearchAvailablePhoneNumbersOptionalParams,\n PhoneNumbersSearchAvailablePhoneNumbersResponse,\n PhoneNumbersGetSearchResultOptionalParams,\n PhoneNumbersGetSearchResultResponse,\n PhoneNumbersPurchasePhoneNumbersOptionalParams,\n PhoneNumbersPurchasePhoneNumbersResponse,\n PhoneNumbersGetOperationOptionalParams,\n PhoneNumbersGetOperationResponse,\n PhoneNumbersCancelOperationOptionalParams,\n PhoneNumbersUpdateCapabilitiesOptionalParams,\n PhoneNumbersUpdateCapabilitiesResponse,\n PhoneNumbersGetByNumberOptionalParams,\n PhoneNumbersGetByNumberResponse,\n PhoneNumbersReleasePhoneNumberOptionalParams,\n PhoneNumbersReleasePhoneNumberResponse,\n PhoneNumbersOperatorInformationSearchOptionalParams,\n PhoneNumbersOperatorInformationSearchResponse\n} from \"../models\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Interface representing a PhoneNumbers. */\nexport interface PhoneNumbers {\n /**\n * Gets the list of available area codes.\n * @param countryCode The ISO 3166-2 country code, e.g. US.\n * @param phoneNumberType Filter by numberType, e.g. Geographic, TollFree.\n * @param options The options parameters.\n */\n listAreaCodes(\n countryCode: string,\n phoneNumberType: PhoneNumberType,\n options?: PhoneNumbersListAreaCodesOptionalParams\n ): PagedAsyncIterableIterator<PhoneNumberAreaCode>;\n /**\n * Gets the list of supported countries.\n * @param options The options parameters.\n */\n listAvailableCountries(\n options?: PhoneNumbersListAvailableCountriesOptionalParams\n ): PagedAsyncIterableIterator<PhoneNumberCountry>;\n /**\n * Gets the list of cities or towns with available phone numbers.\n * @param countryCode The ISO 3166-2 country code, e.g. US.\n * @param options The options parameters.\n */\n listAvailableLocalities(\n countryCode: string,\n options?: PhoneNumbersListAvailableLocalitiesOptionalParams\n ): PagedAsyncIterableIterator<PhoneNumberLocality>;\n /**\n * List available offerings of capabilities with rates for the given country.\n * @param countryCode The ISO 3166-2 country code, e.g. US.\n * @param options The options parameters.\n */\n listOfferings(\n countryCode: string,\n options?: PhoneNumbersListOfferingsOptionalParams\n ): PagedAsyncIterableIterator<PhoneNumberOffering>;\n /**\n * Gets the list of all purchased phone numbers.\n * @param options The options parameters.\n */\n listPhoneNumbers(\n options?: PhoneNumbersListPhoneNumbersOptionalParams\n ): PagedAsyncIterableIterator<PurchasedPhoneNumber>;\n /**\n * Search for available phone numbers to purchase.\n * @param countryCode The ISO 3166-2 country code, e.g. US.\n * @param phoneNumberType The type of phone numbers to search for, e.g. geographic, or tollFree.\n * @param assignmentType The assignment type of the phone numbers to search for. A phone number can be\n * assigned to a person, or to an application.\n * @param capabilities Capabilities of a phone number.\n * @param options The options parameters.\n */\n beginSearchAvailablePhoneNumbers(\n countryCode: string,\n phoneNumberType: PhoneNumberType,\n assignmentType: PhoneNumberAssignmentType,\n capabilities: PhoneNumberCapabilities,\n options?: PhoneNumbersSearchAvailablePhoneNumbersOptionalParams\n ): Promise<\n PollerLike<\n PollOperationState<PhoneNumbersSearchAvailablePhoneNumbersResponse>,\n PhoneNumbersSearchAvailablePhoneNumbersResponse\n >\n >;\n /**\n * Search for available phone numbers to purchase.\n * @param countryCode The ISO 3166-2 country code, e.g. US.\n * @param phoneNumberType The type of phone numbers to search for, e.g. geographic, or tollFree.\n * @param assignmentType The assignment type of the phone numbers to search for. A phone number can be\n * assigned to a person, or to an application.\n * @param capabilities Capabilities of a phone number.\n * @param options The options parameters.\n */\n beginSearchAvailablePhoneNumbersAndWait(\n countryCode: string,\n phoneNumberType: PhoneNumberType,\n assignmentType: PhoneNumberAssignmentType,\n capabilities: PhoneNumberCapabilities,\n options?: PhoneNumbersSearchAvailablePhoneNumbersOptionalParams\n ): Promise<PhoneNumbersSearchAvailablePhoneNumbersResponse>;\n /**\n * Gets a phone number search result by search id.\n * @param searchId The search Id.\n * @param options The options parameters.\n */\n getSearchResult(\n searchId: string,\n options?: PhoneNumbersGetSearchResultOptionalParams\n ): Promise<PhoneNumbersGetSearchResultResponse>;\n /**\n * Purchases phone numbers.\n * @param options The options parameters.\n */\n beginPurchasePhoneNumbers(\n options?: PhoneNumbersPurchasePhoneNumbersOptionalParams\n ): Promise<\n PollerLike<\n PollOperationState<PhoneNumbersPurchasePhoneNumbersResponse>,\n PhoneNumbersPurchasePhoneNumbersResponse\n >\n >;\n /**\n * Purchases phone numbers.\n * @param options The options parameters.\n */\n beginPurchasePhoneNumbersAndWait(\n options?: PhoneNumbersPurchasePhoneNumbersOptionalParams\n ): Promise<PhoneNumbersPurchasePhoneNumbersResponse>;\n /**\n * Gets an operation by its id.\n * @param operationId The id of the operation\n * @param options The options parameters.\n */\n getOperation(\n operationId: string,\n options?: PhoneNumbersGetOperationOptionalParams\n ): Promise<PhoneNumbersGetOperationResponse>;\n /**\n * Cancels an operation by its id.\n * @param operationId The id of the operation\n * @param options The options parameters.\n */\n cancelOperation(\n operationId: string,\n options?: PhoneNumbersCancelOperationOptionalParams\n ): Promise<void>;\n /**\n * Updates the capabilities of a phone number.\n * @param phoneNumber The phone number id in E.164 format. The leading plus can be either + or encoded\n * as %2B, e.g. +11234567890.\n * @param options The options parameters.\n */\n beginUpdateCapabilities(\n phoneNumber: string,\n options?: PhoneNumbersUpdateCapabilitiesOptionalParams\n ): Promise<\n PollerLike<\n PollOperationState<PhoneNumbersUpdateCapabilitiesResponse>,\n PhoneNumbersUpdateCapabilitiesResponse\n >\n >;\n /**\n * Updates the capabilities of a phone number.\n * @param phoneNumber The phone number id in E.164 format. The leading plus can be either + or encoded\n * as %2B, e.g. +11234567890.\n * @param options The options parameters.\n */\n beginUpdateCapabilitiesAndWait(\n phoneNumber: string,\n options?: PhoneNumbersUpdateCapabilitiesOptionalParams\n ): Promise<PhoneNumbersUpdateCapabilitiesResponse>;\n /**\n * Gets the details of the given purchased phone number.\n * @param phoneNumber The purchased phone number whose details are to be fetched in E.164 format, e.g.\n * +11234567890.\n * @param options The options parameters.\n */\n getByNumber(\n phoneNumber: string,\n options?: PhoneNumbersGetByNumberOptionalParams\n ): Promise<PhoneNumbersGetByNumberResponse>;\n /**\n * Releases a purchased phone number.\n * @param phoneNumber Phone number to be released, e.g. +11234567890.\n * @param options The options parameters.\n */\n beginReleasePhoneNumber(\n phoneNumber: string,\n options?: PhoneNumbersReleasePhoneNumberOptionalParams\n ): Promise<\n PollerLike<\n PollOperationState<PhoneNumbersReleasePhoneNumberResponse>,\n PhoneNumbersReleasePhoneNumberResponse\n >\n >;\n /**\n * Releases a purchased phone number.\n * @param phoneNumber Phone number to be released, e.g. +11234567890.\n * @param options The options parameters.\n */\n beginReleasePhoneNumberAndWait(\n phoneNumber: string,\n options?: PhoneNumbersReleasePhoneNumberOptionalParams\n ): Promise<PhoneNumbersReleasePhoneNumberResponse>;\n /**\n * Searches for operator information for a given list of phone numbers.\n * @param options The options parameters.\n */\n operatorInformationSearch(\n options?: PhoneNumbersOperatorInformationSearchOptionalParams\n ): Promise<PhoneNumbersOperatorInformationSearchResponse>;\n}\n"]}
1
+ {"version":3,"file":"phoneNumbers.js","sourceRoot":"","sources":["../../../../../src/generated/src/operationsInterfaces/phoneNumbers.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG","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 { PagedAsyncIterableIterator } from \"@azure/core-paging\";\nimport { PollerLike, PollOperationState } from \"@azure/core-lro\";\nimport {\n PhoneNumberAreaCode,\n PhoneNumberType,\n PhoneNumbersListAreaCodesOptionalParams,\n PhoneNumberCountry,\n PhoneNumbersListAvailableCountriesOptionalParams,\n PhoneNumberLocality,\n PhoneNumbersListAvailableLocalitiesOptionalParams,\n PhoneNumberOffering,\n PhoneNumbersListOfferingsOptionalParams,\n PurchasedPhoneNumber,\n PhoneNumbersListPhoneNumbersOptionalParams,\n PhoneNumberAssignmentType,\n PhoneNumberCapabilities,\n PhoneNumbersSearchAvailablePhoneNumbersOptionalParams,\n PhoneNumbersSearchAvailablePhoneNumbersResponse,\n PhoneNumbersGetSearchResultOptionalParams,\n PhoneNumbersGetSearchResultResponse,\n PhoneNumbersPurchasePhoneNumbersOptionalParams,\n PhoneNumbersPurchasePhoneNumbersResponse,\n PhoneNumbersGetOperationOptionalParams,\n PhoneNumbersGetOperationResponse,\n PhoneNumbersCancelOperationOptionalParams,\n PhoneNumbersUpdateCapabilitiesOptionalParams,\n PhoneNumbersUpdateCapabilitiesResponse,\n PhoneNumbersGetByNumberOptionalParams,\n PhoneNumbersGetByNumberResponse,\n PhoneNumbersReleasePhoneNumberOptionalParams,\n PhoneNumbersReleasePhoneNumberResponse,\n PhoneNumbersOperatorInformationSearchOptionalParams,\n PhoneNumbersOperatorInformationSearchResponse\n} from \"../models\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Interface representing a PhoneNumbers. */\nexport interface PhoneNumbers {\n /**\n * Gets the list of available area codes.\n * @param countryCode The ISO 3166-2 country code, e.g. US.\n * @param phoneNumberType Filter by numberType, e.g. Geographic, TollFree.\n * @param options The options parameters.\n */\n listAreaCodes(\n countryCode: string,\n phoneNumberType: PhoneNumberType,\n options?: PhoneNumbersListAreaCodesOptionalParams\n ): PagedAsyncIterableIterator<PhoneNumberAreaCode>;\n /**\n * Gets the list of supported countries.\n * @param options The options parameters.\n */\n listAvailableCountries(\n options?: PhoneNumbersListAvailableCountriesOptionalParams\n ): PagedAsyncIterableIterator<PhoneNumberCountry>;\n /**\n * Gets the list of cities or towns with available phone numbers.\n * @param countryCode The ISO 3166-2 country code, e.g. US.\n * @param options The options parameters.\n */\n listAvailableLocalities(\n countryCode: string,\n options?: PhoneNumbersListAvailableLocalitiesOptionalParams\n ): PagedAsyncIterableIterator<PhoneNumberLocality>;\n /**\n * List available offerings of capabilities with rates for the given country.\n * @param countryCode The ISO 3166-2 country code, e.g. US.\n * @param options The options parameters.\n */\n listOfferings(\n countryCode: string,\n options?: PhoneNumbersListOfferingsOptionalParams\n ): PagedAsyncIterableIterator<PhoneNumberOffering>;\n /**\n * Gets the list of all purchased phone numbers.\n * @param options The options parameters.\n */\n listPhoneNumbers(\n options?: PhoneNumbersListPhoneNumbersOptionalParams\n ): PagedAsyncIterableIterator<PurchasedPhoneNumber>;\n /**\n * Search for available phone numbers to purchase.\n * @param countryCode The ISO 3166-2 country code, e.g. US.\n * @param phoneNumberType The type of phone numbers to search for, e.g. geographic, or tollFree.\n * @param assignmentType The assignment type of the phone numbers to search for. A phone number can be\n * assigned to a person, or to an application.\n * @param capabilities Capabilities of a phone number.\n * @param options The options parameters.\n */\n beginSearchAvailablePhoneNumbers(\n countryCode: string,\n phoneNumberType: PhoneNumberType,\n assignmentType: PhoneNumberAssignmentType,\n capabilities: PhoneNumberCapabilities,\n options?: PhoneNumbersSearchAvailablePhoneNumbersOptionalParams\n ): Promise<\n PollerLike<\n PollOperationState<PhoneNumbersSearchAvailablePhoneNumbersResponse>,\n PhoneNumbersSearchAvailablePhoneNumbersResponse\n >\n >;\n /**\n * Search for available phone numbers to purchase.\n * @param countryCode The ISO 3166-2 country code, e.g. US.\n * @param phoneNumberType The type of phone numbers to search for, e.g. geographic, or tollFree.\n * @param assignmentType The assignment type of the phone numbers to search for. A phone number can be\n * assigned to a person, or to an application.\n * @param capabilities Capabilities of a phone number.\n * @param options The options parameters.\n */\n beginSearchAvailablePhoneNumbersAndWait(\n countryCode: string,\n phoneNumberType: PhoneNumberType,\n assignmentType: PhoneNumberAssignmentType,\n capabilities: PhoneNumberCapabilities,\n options?: PhoneNumbersSearchAvailablePhoneNumbersOptionalParams\n ): Promise<PhoneNumbersSearchAvailablePhoneNumbersResponse>;\n /**\n * Gets a phone number search result by search id.\n * @param searchId The search Id.\n * @param options The options parameters.\n */\n getSearchResult(\n searchId: string,\n options?: PhoneNumbersGetSearchResultOptionalParams\n ): Promise<PhoneNumbersGetSearchResultResponse>;\n /**\n * Purchases phone numbers.\n * @param options The options parameters.\n */\n beginPurchasePhoneNumbers(\n options?: PhoneNumbersPurchasePhoneNumbersOptionalParams\n ): Promise<\n PollerLike<\n PollOperationState<PhoneNumbersPurchasePhoneNumbersResponse>,\n PhoneNumbersPurchasePhoneNumbersResponse\n >\n >;\n /**\n * Purchases phone numbers.\n * @param options The options parameters.\n */\n beginPurchasePhoneNumbersAndWait(\n options?: PhoneNumbersPurchasePhoneNumbersOptionalParams\n ): Promise<PhoneNumbersPurchasePhoneNumbersResponse>;\n /**\n * Gets an operation by its id.\n * @param operationId The id of the operation\n * @param options The options parameters.\n */\n getOperation(\n operationId: string,\n options?: PhoneNumbersGetOperationOptionalParams\n ): Promise<PhoneNumbersGetOperationResponse>;\n /**\n * Cancels an operation by its id.\n * @param operationId The id of the operation\n * @param options The options parameters.\n */\n cancelOperation(\n operationId: string,\n options?: PhoneNumbersCancelOperationOptionalParams\n ): Promise<void>;\n /**\n * Updates the capabilities of a phone number.\n * @param phoneNumber The phone number id in E.164 format. The leading plus can be either + or encoded\n * as %2B, e.g. +11234567890.\n * @param options The options parameters.\n */\n beginUpdateCapabilities(\n phoneNumber: string,\n options?: PhoneNumbersUpdateCapabilitiesOptionalParams\n ): Promise<\n PollerLike<\n PollOperationState<PhoneNumbersUpdateCapabilitiesResponse>,\n PhoneNumbersUpdateCapabilitiesResponse\n >\n >;\n /**\n * Updates the capabilities of a phone number.\n * @param phoneNumber The phone number id in E.164 format. The leading plus can be either + or encoded\n * as %2B, e.g. +11234567890.\n * @param options The options parameters.\n */\n beginUpdateCapabilitiesAndWait(\n phoneNumber: string,\n options?: PhoneNumbersUpdateCapabilitiesOptionalParams\n ): Promise<PhoneNumbersUpdateCapabilitiesResponse>;\n /**\n * Gets the details of the given purchased phone number.\n * @param phoneNumber The purchased phone number whose details are to be fetched in E.164 format, e.g.\n * +11234567890.\n * @param options The options parameters.\n */\n getByNumber(\n phoneNumber: string,\n options?: PhoneNumbersGetByNumberOptionalParams\n ): Promise<PhoneNumbersGetByNumberResponse>;\n /**\n * Releases a purchased phone number.\n * @param phoneNumber Phone number to be released, e.g. +11234567890.\n * @param options The options parameters.\n */\n beginReleasePhoneNumber(\n phoneNumber: string,\n options?: PhoneNumbersReleasePhoneNumberOptionalParams\n ): Promise<\n PollerLike<\n PollOperationState<PhoneNumbersReleasePhoneNumberResponse>,\n PhoneNumbersReleasePhoneNumberResponse\n >\n >;\n /**\n * Releases a purchased phone number.\n * @param phoneNumber Phone number to be released, e.g. +11234567890.\n * @param options The options parameters.\n */\n beginReleasePhoneNumberAndWait(\n phoneNumber: string,\n options?: PhoneNumbersReleasePhoneNumberOptionalParams\n ): Promise<PhoneNumbersReleasePhoneNumberResponse>;\n /**\n * Searches for number format and operator information for a given list of phone numbers.\n * @param options The options parameters.\n */\n operatorInformationSearch(\n options?: PhoneNumbersOperatorInformationSearchOptionalParams\n ): Promise<PhoneNumbersOperatorInformationSearchResponse>;\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"models.js","sourceRoot":"","sources":["../../src/models.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport { OperationOptions } from \"@azure/core-client\";\nimport {\n PhoneNumberAssignmentType,\n PhoneNumberSearchRequest,\n PhoneNumbersListAreaCodesOptionalParams,\n PhoneNumberType,\n} from \"./generated/src/models/\";\n\n/**\n * The result of the phone numbers purchase operation.\n */\nexport interface PurchasePhoneNumbersResult {}\n\n/**\n * The result of the phone number release operation.\n */\nexport interface ReleasePhoneNumberResult {}\n\n/**\n * Additional options for the get phone number request.\n */\nexport type GetPurchasedPhoneNumberOptions = OperationOptions;\n\n/**\n * Additional options that can be passed to the list phone numbers request.\n */\nexport interface ListPurchasedPhoneNumbersOptions extends OperationOptions {}\n\n/**\n * Represents a phone number search request to find phone numbers.\n * Found phone numbers are temporarily held for a following purchase.\n */\nexport interface SearchAvailablePhoneNumbersRequest extends PhoneNumberSearchRequest {\n /**\n * The ISO 3166-2 country code, e.g. US, representing the location of the search.\n */\n countryCode: string;\n}\n\n/**\n * Additional options that can be passed to the available countries request.\n */\nexport interface ListAvailableCountriesOptions extends OperationOptions {}\n\n/**\n * Additional options that can be passed to the Toll-Free area codes request.\n */\nexport interface ListTollFreeAreaCodesOptions\n extends Omit<\n PhoneNumbersListAreaCodesOptionalParams,\n \"assignmentType\" | \"locality\" | \"administrativeDivision\"\n > {}\n\n/**\n * Additional options that can be passed to the Geographic area codes request.\n */\nexport interface ListGeographicAreaCodesOptions extends PhoneNumbersListAreaCodesOptionalParams {}\n\n/**\n * Additional options that can be passed to the available localities request.\n */\nexport interface ListLocalitiesOptions extends OperationOptions {\n administrativeDivision?: string;\n}\n\n/**\n * Additional options for the search operator information request.\n */\nexport interface SearchOperatorInformationOptions extends OperationOptions {}\n\n/**\n * Additional options that can be passed to list SIP routes.\n */\nexport interface ListSipRoutesOptions extends OperationOptions {}\n\n/**\n * Additional options that can be passed to list SIP trunks.\n */\nexport interface ListSipTrunksOptions extends OperationOptions {}\n\n/**\n * Additional options that can be passed to the available offerings request.\n */\nexport interface ListOfferingsOptions extends OperationOptions {\n phoneNumberType?: PhoneNumberType;\n assignmentType?: PhoneNumberAssignmentType;\n}\n\nexport {\n PhoneNumberAdministrativeDivision,\n PhoneNumberAssignmentType,\n PhoneNumberAreaCode,\n PhoneNumberCapabilities,\n PhoneNumberCapabilitiesRequest,\n PhoneNumberCapabilityType,\n PhoneNumberCost,\n PhoneNumberCountry,\n PhoneNumbersListAreaCodesOptionalParams,\n PhoneNumberLocality,\n PhoneNumberOffering,\n PhoneNumberSearchRequest,\n PhoneNumberSearchResult,\n PhoneNumberSearchResultError,\n PhoneNumberType,\n PurchasedPhoneNumber,\n OperatorDetails,\n OperatorInformation,\n OperatorInformationResult,\n OperatorNumberType,\n} from \"./generated/src/models/\";\n\nexport { SipRoutingError, SipTrunkRoute } from \"./generated/src/siprouting/models\";\n\n/**\n * Represents a SIP trunk for routing calls. See RFC 4904.\n */\nexport interface SipTrunk {\n /**\n * Gets or sets FQDN of the trunk.\n */\n fqdn: string;\n /**\n * Gets or sets SIP signaling port of the trunk.\n */\n sipSignalingPort: number;\n}\n"]}
1
+ {"version":3,"file":"models.js","sourceRoot":"","sources":["../../src/models.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport { OperationOptions } from \"@azure/core-client\";\nimport {\n PhoneNumberAssignmentType,\n PhoneNumberSearchRequest,\n PhoneNumbersListAreaCodesOptionalParams,\n PhoneNumberType,\n} from \"./generated/src/models/\";\n\n/**\n * The result of the phone numbers purchase operation.\n */\nexport interface PurchasePhoneNumbersResult {}\n\n/**\n * The result of the phone number release operation.\n */\nexport interface ReleasePhoneNumberResult {}\n\n/**\n * Additional options for the get phone number request.\n */\nexport type GetPurchasedPhoneNumberOptions = OperationOptions;\n\n/**\n * Additional options that can be passed to the list phone numbers request.\n */\nexport interface ListPurchasedPhoneNumbersOptions extends OperationOptions {}\n\n/**\n * Represents a phone number search request to find phone numbers.\n * Found phone numbers are temporarily held for a following purchase.\n */\nexport interface SearchAvailablePhoneNumbersRequest extends PhoneNumberSearchRequest {\n /**\n * The ISO 3166-2 country code, e.g. US, representing the location of the search.\n */\n countryCode: string;\n}\n\n/**\n * Additional options that can be passed to the available countries request.\n */\nexport interface ListAvailableCountriesOptions extends OperationOptions {}\n\n/**\n * Additional options that can be passed to the Toll-Free area codes request.\n */\nexport interface ListTollFreeAreaCodesOptions\n extends Omit<\n PhoneNumbersListAreaCodesOptionalParams,\n \"assignmentType\" | \"locality\" | \"administrativeDivision\"\n > {}\n\n/**\n * Additional options that can be passed to the Geographic area codes request.\n */\nexport interface ListGeographicAreaCodesOptions extends PhoneNumbersListAreaCodesOptionalParams {}\n\n/**\n * Additional options that can be passed to the available localities request.\n */\nexport interface ListLocalitiesOptions extends OperationOptions {\n administrativeDivision?: string;\n}\n\n/**\n * Additional options for the search operator information request.\n */\nexport interface SearchOperatorInformationOptions extends OperationOptions {\n formatOnly: boolean;\n}\n\n/**\n * Additional options that can be passed to list SIP routes.\n */\nexport interface ListSipRoutesOptions extends OperationOptions {}\n\n/**\n * Additional options that can be passed to list SIP trunks.\n */\nexport interface ListSipTrunksOptions extends OperationOptions {}\n\n/**\n * Additional options that can be passed to the available offerings request.\n */\nexport interface ListOfferingsOptions extends OperationOptions {\n phoneNumberType?: PhoneNumberType;\n assignmentType?: PhoneNumberAssignmentType;\n}\n\nexport {\n PhoneNumberAdministrativeDivision,\n PhoneNumberAssignmentType,\n PhoneNumberAreaCode,\n PhoneNumberCapabilities,\n PhoneNumberCapabilitiesRequest,\n PhoneNumberCapabilityType,\n PhoneNumberCost,\n PhoneNumberCountry,\n PhoneNumbersListAreaCodesOptionalParams,\n PhoneNumberLocality,\n PhoneNumberOffering,\n PhoneNumberSearchRequest,\n PhoneNumberSearchResult,\n PhoneNumberSearchResultError,\n PhoneNumberType,\n PurchasedPhoneNumber,\n OperatorDetails,\n OperatorInformation,\n OperatorInformationResult,\n OperatorNumberType,\n} from \"./generated/src/models/\";\n\nexport { SipRoutingError, SipTrunkRoute } from \"./generated/src/siprouting/models\";\n\n/**\n * Represents a SIP trunk for routing calls. See RFC 4904.\n */\nexport interface SipTrunk {\n /**\n * Gets or sets FQDN of the trunk.\n */\n fqdn: string;\n /**\n * Gets or sets SIP signaling port of the trunk.\n */\n sipSignalingPort: number;\n}\n"]}
@@ -336,10 +336,13 @@ export class PhoneNumbersClient {
336
336
  * @param phoneNumbers - The phone numbers to search.
337
337
  * @param options - Additional request options.
338
338
  */
339
- searchOperatorInformation(phoneNumbers, options = {}) {
339
+ searchOperatorInformation(phoneNumbers, options = { formatOnly: false }) {
340
340
  return tracingClient.withSpan("PhoneNumbersClient-searchOperatorInformation", options, (updatedOptions) => {
341
341
  const params = updatedOptions;
342
342
  params.phoneNumbers = phoneNumbers;
343
+ if (options.formatOnly) {
344
+ params.options = "FormatOnly";
345
+ }
343
346
  return this.client.phoneNumbers.operatorInformationSearch(params);
344
347
  });
345
348
  }
@@ -1 +1 @@
1
- {"version":3,"file":"phoneNumbersClient.js","sourceRoot":"","sources":["../../src/phoneNumbersClient.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAClC,4CAA4C;;AAE5C,OAAO,EACL,6BAA6B,EAC7B,eAAe,EACf,oBAAoB,GACrB,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAkC,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAIrF,OAAO,EAAE,kBAAkB,IAAI,2BAA2B,EAAE,MAAM,iBAAiB,CAAC;AA+BpF,OAAO,EAAE,8BAA8B,EAAE,MAAM,gCAAgC,CAAC;AAEhF,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AACjC,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAYxD,MAAM,2BAA2B,GAAG,CAAC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under the MIT license.\n/// <reference lib=\"esnext.asynciterable\" />\n\nimport {\n createCommunicationAuthPolicy,\n isKeyCredential,\n parseClientArguments,\n} from \"@azure/communication-common\";\nimport { KeyCredential, TokenCredential, isTokenCredential } from \"@azure/core-auth\";\nimport { InternalPipelineOptions } from \"@azure/core-rest-pipeline\";\nimport { PollOperationState, PollerLike } from \"@azure/core-lro\";\nimport { PagedAsyncIterableIterator } from \"@azure/core-paging\";\nimport { PhoneNumbersClient as PhoneNumbersGeneratedClient } from \"./generated/src\";\nimport {\n OperatorInformationResult,\n PhoneNumberAreaCode,\n PhoneNumberCapabilitiesRequest,\n PhoneNumberCountry,\n PhoneNumberLocality,\n PhoneNumberOffering,\n PhoneNumberSearchResult,\n PhoneNumbersOperatorInformationSearchOptionalParams,\n PurchasedPhoneNumber,\n} from \"./generated/src/models/\";\nimport {\n GetPurchasedPhoneNumberOptions,\n ListAvailableCountriesOptions,\n ListGeographicAreaCodesOptions,\n ListLocalitiesOptions,\n ListOfferingsOptions,\n ListPurchasedPhoneNumbersOptions,\n ListTollFreeAreaCodesOptions,\n PurchasePhoneNumbersResult,\n ReleasePhoneNumberResult,\n SearchAvailablePhoneNumbersRequest,\n SearchOperatorInformationOptions,\n} from \"./models\";\nimport {\n BeginPurchasePhoneNumbersOptions,\n BeginReleasePhoneNumberOptions,\n BeginSearchAvailablePhoneNumbersOptions,\n BeginUpdatePhoneNumberCapabilitiesOptions,\n} from \"./lroModels\";\nimport { createPhoneNumbersPagingPolicy } from \"./utils/customPipelinePolicies\";\nimport { CommonClientOptions } from \"@azure/core-client\";\nimport { logger } from \"./utils\";\nimport { tracingClient } from \"./generated/src/tracing\";\n\n/**\n * Client options used to configure the PhoneNumbersClient API requests.\n */\nexport interface PhoneNumbersClientOptions extends CommonClientOptions {\n /**\n * The accept language parameter to be used in the request header's \"accept-language\" property.\n */\n acceptLanguage?: string;\n}\n\nconst isPhoneNumbersClientOptions = (options: any): options is PhoneNumbersClientOptions =>\n options && !isKeyCredential(options) && !isTokenCredential(options);\n\n/**\n * Client class for interacting with Azure Communication Services Phone Number Administration.\n */\nexport class PhoneNumbersClient {\n /**\n * A reference to the auto-generated PhoneNumber HTTP client.\n */\n private readonly client: PhoneNumbersGeneratedClient;\n\n /**\n * The accept language parameter to be used in the request header's \"accept-language\" property.\n */\n private acceptLanguage: string | undefined;\n\n /**\n * Initializes a new instance of the PhoneNumberAdministrationClient class using a connection string.\n *\n * @param connectionString - Connection string to connect to an Azure Communication Service resource. (eg: endpoint=https://contoso.eastus.communications.azure.net/;accesskey=secret)\n * @param options - Optional. Options to configure the HTTP pipeline.\n */\n public constructor(connectionString: string, options?: PhoneNumbersClientOptions);\n\n /**\n * Initializes a new instance of the PhoneNumberAdministrationClient class using an Azure KeyCredential.\n *\n * @param url - The endpoint of the service (eg: https://contoso.eastus.communications.azure.net)\n * @param credential - An object that is used to authenticate requests to the service. Use the Azure KeyCredential or `@azure/identity` to create a credential.\n * @param options - Optional. Options to configure the HTTP pipeline.\n */\n public constructor(url: string, credential: KeyCredential, options?: PhoneNumbersClientOptions);\n\n /**\n * Initializes a new instance of the PhoneNumberAdministrationClient class using a TokenCredential.\n * @param url - The endpoint of the service (ex: https://contoso.eastus.communications.azure.net).\n * @param credential - TokenCredential that is used to authenticate requests to the service.\n * @param options - Optional. Options to configure the HTTP pipeline.\n */\n public constructor(url: string, credential: TokenCredential, options?: PhoneNumbersClientOptions);\n\n public constructor(\n connectionStringOrUrl: string,\n credentialOrOptions?: KeyCredential | TokenCredential | PhoneNumbersClientOptions,\n maybeOptions: PhoneNumbersClientOptions = {}\n ) {\n const { url, credential } = parseClientArguments(connectionStringOrUrl, credentialOrOptions);\n const options = isPhoneNumbersClientOptions(credentialOrOptions)\n ? credentialOrOptions\n : maybeOptions;\n\n const internalPipelineOptions: InternalPipelineOptions = {\n ...options,\n ...{\n loggingOptions: {\n logger: logger.info,\n },\n },\n };\n\n this.client = new PhoneNumbersGeneratedClient(url, {\n endpoint: url,\n ...internalPipelineOptions,\n });\n const authPolicy = createCommunicationAuthPolicy(credential);\n this.client.pipeline.addPolicy(authPolicy);\n\n // This policy is temporary workarounds to address compatibility issues with Azure Core V2.\n const phoneNumbersPagingPolicy = createPhoneNumbersPagingPolicy(url);\n this.client.pipeline.addPolicy(phoneNumbersPagingPolicy);\n this.acceptLanguage = maybeOptions.acceptLanguage;\n }\n\n /**\n * Gets the details of a purchased phone number. Includes phone number, cost, country code, etc.\n *\n * @param phoneNumber - The E.164 formatted phone number being fetched. The leading plus can be either + or encoded as %2B.\n * @param options - Additional request options.\n */\n public getPurchasedPhoneNumber(\n phoneNumber: string,\n options: GetPurchasedPhoneNumberOptions = {}\n ): Promise<PurchasedPhoneNumber> {\n return tracingClient.withSpan(\n \"PhoneNumbersClient-getPurchasedPhoneNumber\",\n options,\n (updatedOptions) => {\n return this.client.phoneNumbers.getByNumber(phoneNumber, {\n ...updatedOptions,\n });\n }\n );\n }\n\n /**\n * Iterates the purchased phone numbers.\n *\n * Example usage:\n * ```ts\n * let client = new PhoneNumbersClient(credentials);\n * for await (const purchased of client.listPhoneNumbers()) {\n * console.log(\"phone number: \", purchased.phoneNumber);\n * }\n * ```\n * List all purchased phone numbers.\n * @param options - The optional parameters.\n */\n public listPurchasedPhoneNumbers(\n options: ListPurchasedPhoneNumbersOptions = {}\n ): PagedAsyncIterableIterator<PurchasedPhoneNumber> {\n const { span, updatedOptions } = tracingClient.startSpan(\n \"PhoneNumbersClient-listPurchasedPhoneNumbers\",\n options\n );\n\n try {\n return this.client.phoneNumbers.listPhoneNumbers({\n ...updatedOptions,\n });\n } catch (e: any) {\n span.setStatus({\n status: \"error\",\n error: e,\n });\n\n throw e;\n } finally {\n span.end();\n }\n }\n\n /**\n * Starts the release of a purchased phone number.\n *\n * This function returns a Long Running Operation poller that allows you to wait indefinitely until the operation is complete.\n *\n * Example usage:\n * ```ts\n * const client = new PhoneNumbersClient(CONNECTION_STRING);\n * const releasePoller = await client.beginReleasePhoneNumber(\"+14125550100\");\n *\n * // Serializing the poller\n * const serialized = releasePoller.toString();\n *\n * // Waiting until it's done\n * const results = await releasePoller.pollUntilDone();\n * console.log(results);\n * ```\n * @param phoneNumber - The E.164 formatted phone number being released. The leading plus can be either + or encoded as %2B.\n * @param options - Additional request options.\n */\n public beginReleasePhoneNumber(\n phoneNumber: string,\n options: BeginReleasePhoneNumberOptions = {}\n ): Promise<PollerLike<PollOperationState<ReleasePhoneNumberResult>, ReleasePhoneNumberResult>> {\n return tracingClient.withSpan(\n \"PhoneNumbersClient-beginReleasePhoneNumber\",\n options,\n (updatedOptions) => {\n return this.client.phoneNumbers.beginReleasePhoneNumber(phoneNumber, updatedOptions);\n }\n );\n }\n\n /**\n * Starts a search for phone numbers given some constraints such as name or area code.\n * The phone numbers that are found are reserved until you cancel, purchase or the reservation expires.\n *\n * This function returns a Long Running Operation poller that allows you to wait indefinitely until the operation is complete.\n *\n * Example usage:\n * ```ts\n * const client = new PhoneNumberAdministrationClient(CONNECTION_STRING);\n * const searchPoller = await client.beginSearchAvailablePhoneNumbers(SEARCH_REQUEST);\n *\n * // Serializing the poller\n * const serialized = searchPoller.toString();\n *\n * // Waiting until it's done\n * const results = await searchPoller.pollUntilDone();\n * console.log(results);\n * ```\n *\n * @param search - Request properties to constraint the search scope.\n * @param options - Additional request options.\n */\n public beginSearchAvailablePhoneNumbers(\n search: SearchAvailablePhoneNumbersRequest,\n options: BeginSearchAvailablePhoneNumbersOptions = {}\n ): Promise<PollerLike<PollOperationState<PhoneNumberSearchResult>, PhoneNumberSearchResult>> {\n return tracingClient.withSpan(\n \"PhoneNumbersClient-beginSearchAvailablePhoneNumbers\",\n options,\n (updatedOptions) => {\n const { countryCode, phoneNumberType, assignmentType, capabilities, ...rest } = search;\n return this.client.phoneNumbers.beginSearchAvailablePhoneNumbers(\n countryCode,\n phoneNumberType,\n assignmentType,\n capabilities,\n {\n ...updatedOptions,\n ...rest,\n }\n );\n }\n );\n }\n\n /**\n * Starts the purchase of the phone number(s) in the search associated with a given id.\n *\n * This function returns a Long Running Operation poller that allows you to wait indefinitely until the operation is complete.\n *\n * Example usage:\n * ```ts\n * const client = new PhoneNumbersClient(CONNECTION_STRING);\n * const purchasePoller = await client.beginPurchasePhoneNumbers(SEARCH_ID);\n *\n * // Serializing the poller\n * const serialized = purchasePoller.toString();\n *\n * // Waiting until it's done\n * const results = await purchasePoller.pollUntilDone();\n * console.log(results);\n * ```\n *\n * @param searchId - The id of the search to purchase. Returned from `beginSearchAvailablePhoneNumbers`\n * @param options - Additional request options.\n */\n public beginPurchasePhoneNumbers(\n searchId: string,\n options: BeginPurchasePhoneNumbersOptions = {}\n ): Promise<\n PollerLike<PollOperationState<PurchasePhoneNumbersResult>, PurchasePhoneNumbersResult>\n > {\n return tracingClient.withSpan(\n \"PhoneNumbersClient-beginPurchasePhoneNumbers\",\n options,\n (updatedOptions) => {\n return this.client.phoneNumbers.beginPurchasePhoneNumbers({ ...updatedOptions, searchId });\n }\n );\n }\n\n /**\n * Starts the update of a purchased phone number's capabilities.\n *\n * This function returns a Long Running Operation poller that allows you to wait indefinitely until the operation is complete.\n *\n * Example usage:\n * ```ts\n * const client = new PhoneNumbersClient(CONNECTION_STRING);\n * const updatePoller = await client.beginUpdatePhoneNumberCapabilities(\"+14125550100\", UPDATE_REQUEST);\n *\n * // Serializing the poller\n * const serialized = updatePoller.toString();\n *\n * // Waiting until it's done\n * const results = await updatePoller.pollUntilDone();\n * console.log(results);\n * ```\n *\n * @param phoneNumber - The E.164 formatted phone number being updated. The leading plus can be either + or encoded as %2B.\n * @param request - The updated properties which will be applied to the phone number.\n * @param options - Additional request options.\n */\n public beginUpdatePhoneNumberCapabilities(\n phoneNumber: string,\n request: PhoneNumberCapabilitiesRequest,\n options: BeginUpdatePhoneNumberCapabilitiesOptions = {}\n ): Promise<PollerLike<PollOperationState<PurchasedPhoneNumber>, PurchasedPhoneNumber>> {\n if (!phoneNumber) {\n throw Error(\"phone number can't be empty\");\n }\n return tracingClient.withSpan(\n \"PhoneNumbersClient-beginUpdatePhoneNumberCapabilities\",\n options,\n (updatedOptions) => {\n return this.client.phoneNumbers.beginUpdateCapabilities(phoneNumber, {\n ...updatedOptions,\n ...request,\n });\n }\n );\n }\n\n /**\n * Iterates the available countries.\n *\n * Example usage:\n * ```ts\n * let client = new PhoneNumbersClient(credentials);\n * for await (const country of client.listAvailableCountries()) {\n * console.log(\"country: \", country.localizedName);\n * }\n * ```\n * List all available countries.\n * @param options - The optional parameters.\n */\n public listAvailableCountries(\n options: ListAvailableCountriesOptions = {}\n ): PagedAsyncIterableIterator<PhoneNumberCountry> {\n const { span, updatedOptions } = tracingClient.startSpan(\n \"PhoneNumbersClient-listAvailableCountries\",\n options\n );\n\n try {\n return this.client.phoneNumbers.listAvailableCountries({\n ...updatedOptions,\n acceptLanguage: this.acceptLanguage,\n });\n } catch (e: any) {\n span.setStatus({\n status: \"error\",\n error: e,\n });\n\n throw e;\n } finally {\n span.end();\n }\n }\n\n /**\n * Iterates the available Toll-Free area codes.\n *\n * Example usage:\n * ```ts\n * let client = new PhoneNumbersClient(credentials);\n * for await (const areaCodeItem of client.listTollFreeAreaCodes()) {\n * console.log(\"area code: \", areaCodeItem.areaCode);\n * }\n * ```\n * List all available Toll-Free area codes.\n * @param countryCode - The ISO 3166-2 country code.\n * @param options - The optional parameters.\n */\n public listAvailableTollFreeAreaCodes(\n countryCode: string,\n options: ListTollFreeAreaCodesOptions = {}\n ): PagedAsyncIterableIterator<PhoneNumberAreaCode> {\n const { span, updatedOptions } = tracingClient.startSpan(\n \"PhoneNumbersClient-listAvailableTollFreeAreaCodes\",\n options\n );\n\n try {\n return this.client.phoneNumbers.listAreaCodes(countryCode, \"tollFree\", {\n ...updatedOptions,\n assignmentType: \"application\",\n });\n } catch (e: any) {\n span.setStatus({\n status: \"error\",\n error: e,\n });\n\n throw e;\n } finally {\n span.end();\n }\n }\n\n /**\n * Iterates the available Geographic area codes.\n *\n * Example usage:\n * ```ts\n * let client = new PhoneNumbersClient(credentials);\n * for await (const areaCodeItem of client.listGeographicAreaCodes()) {\n * console.log(\"area code: \", areaCodeItem.areaCode);\n * }\n * ```\n * List all available Geographic area codes.\n * @param countryCode - The ISO 3166-2 country code.\n * @param options - The optional parameters.\n */\n public listAvailableGeographicAreaCodes(\n countryCode: string,\n options: ListGeographicAreaCodesOptions = {}\n ): PagedAsyncIterableIterator<PhoneNumberAreaCode> {\n const { span, updatedOptions } = tracingClient.startSpan(\n \"PhoneNumbersClient-listAvailableGeographicFreeAreaCodes\",\n options\n );\n\n try {\n return this.client.phoneNumbers.listAreaCodes(countryCode, \"geographic\", {\n ...updatedOptions,\n });\n } catch (e: any) {\n span.setStatus({\n status: \"error\",\n error: e,\n });\n\n throw e;\n } finally {\n span.end();\n }\n }\n\n /**\n * Iterates the available localities.\n *\n * Example usage:\n * ```ts\n * let client = new PhoneNumbersClient(credentials);\n * for await (const locality of client.listAvailableLocalities()) {\n * console.log(\"locality: \", locality.localizedName);\n * }\n * ```\n * List all available localities.\n * @param countryCode - The ISO 3166-2 country code.\n * @param options - The optional parameters.\n */\n public listAvailableLocalities(\n countryCode: string,\n options: ListLocalitiesOptions = {}\n ): PagedAsyncIterableIterator<PhoneNumberLocality> {\n const { span, updatedOptions } = tracingClient.startSpan(\n \"PhoneNumbersClient-listAvailableLocalities\",\n options\n );\n\n try {\n return this.client.phoneNumbers.listAvailableLocalities(countryCode, {\n ...updatedOptions,\n acceptLanguage: this.acceptLanguage,\n });\n } catch (e: any) {\n span.setStatus({\n status: \"error\",\n error: e,\n });\n\n throw e;\n } finally {\n span.end();\n }\n }\n\n /**\n * Iterates the available offerings.\n *\n * Example usage:\n * ```ts\n * let client = new PhoneNumbersClient(credentials);\n * for await (const offering of client.listAvailableOfferings()) {\n * console.log(\"phone number type: \", offering.phoneNumberType);\n * console.log(\"cost: \", offering.cost.amount);\n * }\n * ```\n * List all available offerings.\n * @param countryCode - The ISO 3166-2 country code.\n * @param options - The optional parameters.\n */\n public listAvailableOfferings(\n countryCode: string,\n options: ListOfferingsOptions = {}\n ): PagedAsyncIterableIterator<PhoneNumberOffering> {\n const { span, updatedOptions } = tracingClient.startSpan(\n \"PhoneNumbersClient-listOfferings\",\n options\n );\n\n try {\n return this.client.phoneNumbers.listOfferings(countryCode, {\n ...updatedOptions,\n });\n } catch (e: any) {\n span.setStatus({\n status: \"error\",\n error: e,\n });\n\n throw e;\n } finally {\n span.end();\n }\n }\n\n /**\n * Search for operator information about specified phone numbers.\n *\n * @param phoneNumbers - The phone numbers to search.\n * @param options - Additional request options.\n */\n public searchOperatorInformation(\n phoneNumbers: string[],\n options: SearchOperatorInformationOptions = {}\n ): Promise<OperatorInformationResult> {\n return tracingClient.withSpan(\n \"PhoneNumbersClient-searchOperatorInformation\",\n options,\n (updatedOptions) => {\n const params: PhoneNumbersOperatorInformationSearchOptionalParams = updatedOptions;\n params.phoneNumbers = phoneNumbers;\n return this.client.phoneNumbers.operatorInformationSearch(params);\n }\n );\n }\n}\n"]}
1
+ {"version":3,"file":"phoneNumbersClient.js","sourceRoot":"","sources":["../../src/phoneNumbersClient.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAClC,4CAA4C;;AAE5C,OAAO,EACL,6BAA6B,EAC7B,eAAe,EACf,oBAAoB,GACrB,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAkC,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAIrF,OAAO,EAAE,kBAAkB,IAAI,2BAA2B,EAAE,MAAM,iBAAiB,CAAC;AA+BpF,OAAO,EAAE,8BAA8B,EAAE,MAAM,gCAAgC,CAAC;AAEhF,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AACjC,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAYxD,MAAM,2BAA2B,GAAG,CAAC,OAAY,EAAwC,EAAE,CACzF,OAAO,IAAI,CAAC,eAAe,CAAC,OAAO,CAAC,IAAI,CAAC,iBAAiB,CAAC,OAAO,CAAC,CAAC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MIT license.\n/// <reference lib=\"esnext.asynciterable\" />\n\nimport {\n createCommunicationAuthPolicy,\n isKeyCredential,\n parseClientArguments,\n} from \"@azure/communication-common\";\nimport { KeyCredential, TokenCredential, isTokenCredential } from \"@azure/core-auth\";\nimport { InternalPipelineOptions } from \"@azure/core-rest-pipeline\";\nimport { PollOperationState, PollerLike } from \"@azure/core-lro\";\nimport { PagedAsyncIterableIterator } from \"@azure/core-paging\";\nimport { PhoneNumbersClient as PhoneNumbersGeneratedClient } from \"./generated/src\";\nimport {\n OperatorInformationResult,\n PhoneNumberAreaCode,\n PhoneNumberCapabilitiesRequest,\n PhoneNumberCountry,\n PhoneNumberLocality,\n PhoneNumberOffering,\n PhoneNumberSearchResult,\n PhoneNumbersOperatorInformationSearchOptionalParams,\n PurchasedPhoneNumber,\n} from \"./generated/src/models/\";\nimport {\n GetPurchasedPhoneNumberOptions,\n ListAvailableCountriesOptions,\n ListGeographicAreaCodesOptions,\n ListLocalitiesOptions,\n ListOfferingsOptions,\n ListPurchasedPhoneNumbersOptions,\n ListTollFreeAreaCodesOptions,\n PurchasePhoneNumbersResult,\n ReleasePhoneNumberResult,\n SearchAvailablePhoneNumbersRequest,\n SearchOperatorInformationOptions,\n} from \"./models\";\nimport {\n BeginPurchasePhoneNumbersOptions,\n BeginReleasePhoneNumberOptions,\n BeginSearchAvailablePhoneNumbersOptions,\n BeginUpdatePhoneNumberCapabilitiesOptions,\n} from \"./lroModels\";\nimport { createPhoneNumbersPagingPolicy } from \"./utils/customPipelinePolicies\";\nimport { CommonClientOptions } from \"@azure/core-client\";\nimport { logger } from \"./utils\";\nimport { tracingClient } from \"./generated/src/tracing\";\n\n/**\n * Client options used to configure the PhoneNumbersClient API requests.\n */\nexport interface PhoneNumbersClientOptions extends CommonClientOptions {\n /**\n * The accept language parameter to be used in the request header's \"accept-language\" property.\n */\n acceptLanguage?: string;\n}\n\nconst isPhoneNumbersClientOptions = (options: any): options is PhoneNumbersClientOptions =>\n options && !isKeyCredential(options) && !isTokenCredential(options);\n\n/**\n * Client class for interacting with Azure Communication Services Phone Number Administration.\n */\nexport class PhoneNumbersClient {\n /**\n * A reference to the auto-generated PhoneNumber HTTP client.\n */\n private readonly client: PhoneNumbersGeneratedClient;\n\n /**\n * The accept language parameter to be used in the request header's \"accept-language\" property.\n */\n private acceptLanguage: string | undefined;\n\n /**\n * Initializes a new instance of the PhoneNumberAdministrationClient class using a connection string.\n *\n * @param connectionString - Connection string to connect to an Azure Communication Service resource. (eg: endpoint=https://contoso.eastus.communications.azure.net/;accesskey=secret)\n * @param options - Optional. Options to configure the HTTP pipeline.\n */\n public constructor(connectionString: string, options?: PhoneNumbersClientOptions);\n\n /**\n * Initializes a new instance of the PhoneNumberAdministrationClient class using an Azure KeyCredential.\n *\n * @param url - The endpoint of the service (eg: https://contoso.eastus.communications.azure.net)\n * @param credential - An object that is used to authenticate requests to the service. Use the Azure KeyCredential or `@azure/identity` to create a credential.\n * @param options - Optional. Options to configure the HTTP pipeline.\n */\n public constructor(url: string, credential: KeyCredential, options?: PhoneNumbersClientOptions);\n\n /**\n * Initializes a new instance of the PhoneNumberAdministrationClient class using a TokenCredential.\n * @param url - The endpoint of the service (ex: https://contoso.eastus.communications.azure.net).\n * @param credential - TokenCredential that is used to authenticate requests to the service.\n * @param options - Optional. Options to configure the HTTP pipeline.\n */\n public constructor(url: string, credential: TokenCredential, options?: PhoneNumbersClientOptions);\n\n public constructor(\n connectionStringOrUrl: string,\n credentialOrOptions?: KeyCredential | TokenCredential | PhoneNumbersClientOptions,\n maybeOptions: PhoneNumbersClientOptions = {}\n ) {\n const { url, credential } = parseClientArguments(connectionStringOrUrl, credentialOrOptions);\n const options = isPhoneNumbersClientOptions(credentialOrOptions)\n ? credentialOrOptions\n : maybeOptions;\n\n const internalPipelineOptions: InternalPipelineOptions = {\n ...options,\n ...{\n loggingOptions: {\n logger: logger.info,\n },\n },\n };\n\n this.client = new PhoneNumbersGeneratedClient(url, {\n endpoint: url,\n ...internalPipelineOptions,\n });\n const authPolicy = createCommunicationAuthPolicy(credential);\n this.client.pipeline.addPolicy(authPolicy);\n\n // This policy is temporary workarounds to address compatibility issues with Azure Core V2.\n const phoneNumbersPagingPolicy = createPhoneNumbersPagingPolicy(url);\n this.client.pipeline.addPolicy(phoneNumbersPagingPolicy);\n this.acceptLanguage = maybeOptions.acceptLanguage;\n }\n\n /**\n * Gets the details of a purchased phone number. Includes phone number, cost, country code, etc.\n *\n * @param phoneNumber - The E.164 formatted phone number being fetched. The leading plus can be either + or encoded as %2B.\n * @param options - Additional request options.\n */\n public getPurchasedPhoneNumber(\n phoneNumber: string,\n options: GetPurchasedPhoneNumberOptions = {}\n ): Promise<PurchasedPhoneNumber> {\n return tracingClient.withSpan(\n \"PhoneNumbersClient-getPurchasedPhoneNumber\",\n options,\n (updatedOptions) => {\n return this.client.phoneNumbers.getByNumber(phoneNumber, {\n ...updatedOptions,\n });\n }\n );\n }\n\n /**\n * Iterates the purchased phone numbers.\n *\n * Example usage:\n * ```ts\n * let client = new PhoneNumbersClient(credentials);\n * for await (const purchased of client.listPhoneNumbers()) {\n * console.log(\"phone number: \", purchased.phoneNumber);\n * }\n * ```\n * List all purchased phone numbers.\n * @param options - The optional parameters.\n */\n public listPurchasedPhoneNumbers(\n options: ListPurchasedPhoneNumbersOptions = {}\n ): PagedAsyncIterableIterator<PurchasedPhoneNumber> {\n const { span, updatedOptions } = tracingClient.startSpan(\n \"PhoneNumbersClient-listPurchasedPhoneNumbers\",\n options\n );\n\n try {\n return this.client.phoneNumbers.listPhoneNumbers({\n ...updatedOptions,\n });\n } catch (e: any) {\n span.setStatus({\n status: \"error\",\n error: e,\n });\n\n throw e;\n } finally {\n span.end();\n }\n }\n\n /**\n * Starts the release of a purchased phone number.\n *\n * This function returns a Long Running Operation poller that allows you to wait indefinitely until the operation is complete.\n *\n * Example usage:\n * ```ts\n * const client = new PhoneNumbersClient(CONNECTION_STRING);\n * const releasePoller = await client.beginReleasePhoneNumber(\"+14125550100\");\n *\n * // Serializing the poller\n * const serialized = releasePoller.toString();\n *\n * // Waiting until it's done\n * const results = await releasePoller.pollUntilDone();\n * console.log(results);\n * ```\n * @param phoneNumber - The E.164 formatted phone number being released. The leading plus can be either + or encoded as %2B.\n * @param options - Additional request options.\n */\n public beginReleasePhoneNumber(\n phoneNumber: string,\n options: BeginReleasePhoneNumberOptions = {}\n ): Promise<PollerLike<PollOperationState<ReleasePhoneNumberResult>, ReleasePhoneNumberResult>> {\n return tracingClient.withSpan(\n \"PhoneNumbersClient-beginReleasePhoneNumber\",\n options,\n (updatedOptions) => {\n return this.client.phoneNumbers.beginReleasePhoneNumber(phoneNumber, updatedOptions);\n }\n );\n }\n\n /**\n * Starts a search for phone numbers given some constraints such as name or area code.\n * The phone numbers that are found are reserved until you cancel, purchase or the reservation expires.\n *\n * This function returns a Long Running Operation poller that allows you to wait indefinitely until the operation is complete.\n *\n * Example usage:\n * ```ts\n * const client = new PhoneNumberAdministrationClient(CONNECTION_STRING);\n * const searchPoller = await client.beginSearchAvailablePhoneNumbers(SEARCH_REQUEST);\n *\n * // Serializing the poller\n * const serialized = searchPoller.toString();\n *\n * // Waiting until it's done\n * const results = await searchPoller.pollUntilDone();\n * console.log(results);\n * ```\n *\n * @param search - Request properties to constraint the search scope.\n * @param options - Additional request options.\n */\n public beginSearchAvailablePhoneNumbers(\n search: SearchAvailablePhoneNumbersRequest,\n options: BeginSearchAvailablePhoneNumbersOptions = {}\n ): Promise<PollerLike<PollOperationState<PhoneNumberSearchResult>, PhoneNumberSearchResult>> {\n return tracingClient.withSpan(\n \"PhoneNumbersClient-beginSearchAvailablePhoneNumbers\",\n options,\n (updatedOptions) => {\n const { countryCode, phoneNumberType, assignmentType, capabilities, ...rest } = search;\n return this.client.phoneNumbers.beginSearchAvailablePhoneNumbers(\n countryCode,\n phoneNumberType,\n assignmentType,\n capabilities,\n {\n ...updatedOptions,\n ...rest,\n }\n );\n }\n );\n }\n\n /**\n * Starts the purchase of the phone number(s) in the search associated with a given id.\n *\n * This function returns a Long Running Operation poller that allows you to wait indefinitely until the operation is complete.\n *\n * Example usage:\n * ```ts\n * const client = new PhoneNumbersClient(CONNECTION_STRING);\n * const purchasePoller = await client.beginPurchasePhoneNumbers(SEARCH_ID);\n *\n * // Serializing the poller\n * const serialized = purchasePoller.toString();\n *\n * // Waiting until it's done\n * const results = await purchasePoller.pollUntilDone();\n * console.log(results);\n * ```\n *\n * @param searchId - The id of the search to purchase. Returned from `beginSearchAvailablePhoneNumbers`\n * @param options - Additional request options.\n */\n public beginPurchasePhoneNumbers(\n searchId: string,\n options: BeginPurchasePhoneNumbersOptions = {}\n ): Promise<\n PollerLike<PollOperationState<PurchasePhoneNumbersResult>, PurchasePhoneNumbersResult>\n > {\n return tracingClient.withSpan(\n \"PhoneNumbersClient-beginPurchasePhoneNumbers\",\n options,\n (updatedOptions) => {\n return this.client.phoneNumbers.beginPurchasePhoneNumbers({ ...updatedOptions, searchId });\n }\n );\n }\n\n /**\n * Starts the update of a purchased phone number's capabilities.\n *\n * This function returns a Long Running Operation poller that allows you to wait indefinitely until the operation is complete.\n *\n * Example usage:\n * ```ts\n * const client = new PhoneNumbersClient(CONNECTION_STRING);\n * const updatePoller = await client.beginUpdatePhoneNumberCapabilities(\"+14125550100\", UPDATE_REQUEST);\n *\n * // Serializing the poller\n * const serialized = updatePoller.toString();\n *\n * // Waiting until it's done\n * const results = await updatePoller.pollUntilDone();\n * console.log(results);\n * ```\n *\n * @param phoneNumber - The E.164 formatted phone number being updated. The leading plus can be either + or encoded as %2B.\n * @param request - The updated properties which will be applied to the phone number.\n * @param options - Additional request options.\n */\n public beginUpdatePhoneNumberCapabilities(\n phoneNumber: string,\n request: PhoneNumberCapabilitiesRequest,\n options: BeginUpdatePhoneNumberCapabilitiesOptions = {}\n ): Promise<PollerLike<PollOperationState<PurchasedPhoneNumber>, PurchasedPhoneNumber>> {\n if (!phoneNumber) {\n throw Error(\"phone number can't be empty\");\n }\n return tracingClient.withSpan(\n \"PhoneNumbersClient-beginUpdatePhoneNumberCapabilities\",\n options,\n (updatedOptions) => {\n return this.client.phoneNumbers.beginUpdateCapabilities(phoneNumber, {\n ...updatedOptions,\n ...request,\n });\n }\n );\n }\n\n /**\n * Iterates the available countries.\n *\n * Example usage:\n * ```ts\n * let client = new PhoneNumbersClient(credentials);\n * for await (const country of client.listAvailableCountries()) {\n * console.log(\"country: \", country.localizedName);\n * }\n * ```\n * List all available countries.\n * @param options - The optional parameters.\n */\n public listAvailableCountries(\n options: ListAvailableCountriesOptions = {}\n ): PagedAsyncIterableIterator<PhoneNumberCountry> {\n const { span, updatedOptions } = tracingClient.startSpan(\n \"PhoneNumbersClient-listAvailableCountries\",\n options\n );\n\n try {\n return this.client.phoneNumbers.listAvailableCountries({\n ...updatedOptions,\n acceptLanguage: this.acceptLanguage,\n });\n } catch (e: any) {\n span.setStatus({\n status: \"error\",\n error: e,\n });\n\n throw e;\n } finally {\n span.end();\n }\n }\n\n /**\n * Iterates the available Toll-Free area codes.\n *\n * Example usage:\n * ```ts\n * let client = new PhoneNumbersClient(credentials);\n * for await (const areaCodeItem of client.listTollFreeAreaCodes()) {\n * console.log(\"area code: \", areaCodeItem.areaCode);\n * }\n * ```\n * List all available Toll-Free area codes.\n * @param countryCode - The ISO 3166-2 country code.\n * @param options - The optional parameters.\n */\n public listAvailableTollFreeAreaCodes(\n countryCode: string,\n options: ListTollFreeAreaCodesOptions = {}\n ): PagedAsyncIterableIterator<PhoneNumberAreaCode> {\n const { span, updatedOptions } = tracingClient.startSpan(\n \"PhoneNumbersClient-listAvailableTollFreeAreaCodes\",\n options\n );\n\n try {\n return this.client.phoneNumbers.listAreaCodes(countryCode, \"tollFree\", {\n ...updatedOptions,\n assignmentType: \"application\",\n });\n } catch (e: any) {\n span.setStatus({\n status: \"error\",\n error: e,\n });\n\n throw e;\n } finally {\n span.end();\n }\n }\n\n /**\n * Iterates the available Geographic area codes.\n *\n * Example usage:\n * ```ts\n * let client = new PhoneNumbersClient(credentials);\n * for await (const areaCodeItem of client.listGeographicAreaCodes()) {\n * console.log(\"area code: \", areaCodeItem.areaCode);\n * }\n * ```\n * List all available Geographic area codes.\n * @param countryCode - The ISO 3166-2 country code.\n * @param options - The optional parameters.\n */\n public listAvailableGeographicAreaCodes(\n countryCode: string,\n options: ListGeographicAreaCodesOptions = {}\n ): PagedAsyncIterableIterator<PhoneNumberAreaCode> {\n const { span, updatedOptions } = tracingClient.startSpan(\n \"PhoneNumbersClient-listAvailableGeographicFreeAreaCodes\",\n options\n );\n\n try {\n return this.client.phoneNumbers.listAreaCodes(countryCode, \"geographic\", {\n ...updatedOptions,\n });\n } catch (e: any) {\n span.setStatus({\n status: \"error\",\n error: e,\n });\n\n throw e;\n } finally {\n span.end();\n }\n }\n\n /**\n * Iterates the available localities.\n *\n * Example usage:\n * ```ts\n * let client = new PhoneNumbersClient(credentials);\n * for await (const locality of client.listAvailableLocalities()) {\n * console.log(\"locality: \", locality.localizedName);\n * }\n * ```\n * List all available localities.\n * @param countryCode - The ISO 3166-2 country code.\n * @param options - The optional parameters.\n */\n public listAvailableLocalities(\n countryCode: string,\n options: ListLocalitiesOptions = {}\n ): PagedAsyncIterableIterator<PhoneNumberLocality> {\n const { span, updatedOptions } = tracingClient.startSpan(\n \"PhoneNumbersClient-listAvailableLocalities\",\n options\n );\n\n try {\n return this.client.phoneNumbers.listAvailableLocalities(countryCode, {\n ...updatedOptions,\n acceptLanguage: this.acceptLanguage,\n });\n } catch (e: any) {\n span.setStatus({\n status: \"error\",\n error: e,\n });\n\n throw e;\n } finally {\n span.end();\n }\n }\n\n /**\n * Iterates the available offerings.\n *\n * Example usage:\n * ```ts\n * let client = new PhoneNumbersClient(credentials);\n * for await (const offering of client.listAvailableOfferings()) {\n * console.log(\"phone number type: \", offering.phoneNumberType);\n * console.log(\"cost: \", offering.cost.amount);\n * }\n * ```\n * List all available offerings.\n * @param countryCode - The ISO 3166-2 country code.\n * @param options - The optional parameters.\n */\n public listAvailableOfferings(\n countryCode: string,\n options: ListOfferingsOptions = {}\n ): PagedAsyncIterableIterator<PhoneNumberOffering> {\n const { span, updatedOptions } = tracingClient.startSpan(\n \"PhoneNumbersClient-listOfferings\",\n options\n );\n\n try {\n return this.client.phoneNumbers.listOfferings(countryCode, {\n ...updatedOptions,\n });\n } catch (e: any) {\n span.setStatus({\n status: \"error\",\n error: e,\n });\n\n throw e;\n } finally {\n span.end();\n }\n }\n\n /**\n * Search for operator information about specified phone numbers.\n *\n * @param phoneNumbers - The phone numbers to search.\n * @param options - Additional request options.\n */\n public searchOperatorInformation(\n phoneNumbers: string[],\n options: SearchOperatorInformationOptions = { formatOnly: false }\n ): Promise<OperatorInformationResult> {\n return tracingClient.withSpan(\n \"PhoneNumbersClient-searchOperatorInformation\",\n options,\n (updatedOptions) => {\n const params: PhoneNumbersOperatorInformationSearchOptionalParams = updatedOptions;\n params.phoneNumbers = phoneNumbers;\n if (options.formatOnly) {\n params.options = \"FormatOnly\";\n }\n return this.client.phoneNumbers.operatorInformationSearch(params);\n }\n );\n }\n}\n"]}