@azure/communication-phone-numbers 1.4.0 → 1.5.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +25 -6
- package/dist/browser/generated/src/models/index.d.ts +7 -5
- package/dist/browser/generated/src/models/index.d.ts.map +1 -1
- package/dist/browser/generated/src/models/index.js.map +1 -1
- package/dist/browser/generated/src/models/parameters.js +3 -3
- package/dist/browser/generated/src/models/parameters.js.map +1 -1
- package/dist/browser/generated/src/operations/phoneNumbers.d.ts +4 -4
- package/dist/browser/generated/src/operations/phoneNumbers.js +5 -4
- package/dist/browser/generated/src/operations/phoneNumbers.js.map +1 -1
- package/dist/browser/generated/src/operationsInterfaces/phoneNumbers.d.ts +3 -3
- package/dist/browser/generated/src/operationsInterfaces/phoneNumbers.js.map +1 -1
- package/dist/browser/generated/src/phoneNumbersClient.js +2 -2
- package/dist/browser/generated/src/phoneNumbersClient.js.map +1 -1
- package/dist/browser/generated/src/siprouting/index.d.ts +0 -1
- package/dist/browser/generated/src/siprouting/index.d.ts.map +1 -1
- package/dist/browser/generated/src/siprouting/index.js +0 -1
- package/dist/browser/generated/src/siprouting/index.js.map +1 -1
- package/dist/browser/generated/src/siprouting/models/index.d.ts +141 -2
- package/dist/browser/generated/src/siprouting/models/index.d.ts.map +1 -1
- package/dist/browser/generated/src/siprouting/models/index.js +6 -1
- package/dist/browser/generated/src/siprouting/models/index.js.map +1 -1
- package/dist/browser/generated/src/siprouting/models/mappers.d.ts +7 -0
- package/dist/browser/generated/src/siprouting/models/mappers.d.ts.map +1 -1
- package/dist/browser/generated/src/siprouting/models/mappers.js +284 -77
- package/dist/browser/generated/src/siprouting/models/mappers.js.map +1 -1
- package/dist/browser/generated/src/siprouting/models/parameters.d.ts +7 -0
- package/dist/browser/generated/src/siprouting/models/parameters.d.ts.map +1 -1
- package/dist/browser/generated/src/siprouting/models/parameters.js +62 -16
- package/dist/browser/generated/src/siprouting/models/parameters.js.map +1 -1
- package/dist/browser/generated/src/siprouting/operations/sipRouting.d.ts +9 -3
- package/dist/browser/generated/src/siprouting/operations/sipRouting.d.ts.map +1 -1
- package/dist/browser/generated/src/siprouting/operations/sipRouting.js +45 -11
- package/dist/browser/generated/src/siprouting/operations/sipRouting.js.map +1 -1
- package/dist/browser/generated/src/siprouting/operationsInterfaces/sipRouting.d.ts +7 -1
- package/dist/browser/generated/src/siprouting/operationsInterfaces/sipRouting.d.ts.map +1 -1
- package/dist/browser/generated/src/siprouting/operationsInterfaces/sipRouting.js.map +1 -1
- package/dist/browser/generated/src/siprouting/sipRoutingClient.d.ts +6 -2
- package/dist/browser/generated/src/siprouting/sipRoutingClient.d.ts.map +1 -1
- package/dist/browser/generated/src/siprouting/sipRoutingClient.js +51 -3
- package/dist/browser/generated/src/siprouting/sipRoutingClient.js.map +1 -1
- package/dist/browser/generated/src/siprouting/sipRoutingClientContext.js +1 -1
- package/dist/browser/generated/src/siprouting/sipRoutingClientContext.js.map +1 -1
- package/dist/browser/generated/src/tracing.js +1 -1
- package/dist/browser/generated/src/tracing.js.map +1 -1
- package/dist/browser/mappers.d.ts +17 -3
- package/dist/browser/mappers.d.ts.map +1 -1
- package/dist/browser/mappers.js +51 -2
- package/dist/browser/mappers.js.map +1 -1
- package/dist/browser/models.d.ts +66 -1
- package/dist/browser/models.d.ts.map +1 -1
- package/dist/browser/models.js.map +1 -1
- package/dist/browser/phoneNumbersClient.d.ts +21 -1
- package/dist/browser/phoneNumbersClient.d.ts.map +1 -1
- package/dist/browser/phoneNumbersClient.js +35 -0
- package/dist/browser/phoneNumbersClient.js.map +1 -1
- package/dist/browser/sipRoutingClient.d.ts +41 -1
- package/dist/browser/sipRoutingClient.d.ts.map +1 -1
- package/dist/browser/sipRoutingClient.js +158 -2
- package/dist/browser/sipRoutingClient.js.map +1 -1
- package/dist/browser/utils/constants.d.ts.map +1 -1
- package/dist/browser/utils/constants.js +1 -1
- package/dist/browser/utils/constants.js.map +1 -1
- package/dist/commonjs/generated/src/models/index.d.ts +7 -5
- package/dist/commonjs/generated/src/models/index.d.ts.map +1 -1
- package/dist/commonjs/generated/src/models/index.js.map +1 -1
- package/dist/commonjs/generated/src/models/parameters.js +3 -3
- package/dist/commonjs/generated/src/models/parameters.js.map +1 -1
- package/dist/commonjs/generated/src/operations/phoneNumbers.d.ts +4 -4
- package/dist/commonjs/generated/src/operations/phoneNumbers.js +5 -4
- package/dist/commonjs/generated/src/operations/phoneNumbers.js.map +1 -1
- package/dist/commonjs/generated/src/operationsInterfaces/phoneNumbers.d.ts +3 -3
- package/dist/commonjs/generated/src/operationsInterfaces/phoneNumbers.js.map +1 -1
- package/dist/commonjs/generated/src/phoneNumbersClient.js +2 -2
- package/dist/commonjs/generated/src/phoneNumbersClient.js.map +1 -1
- package/dist/commonjs/generated/src/siprouting/index.d.ts +0 -1
- package/dist/commonjs/generated/src/siprouting/index.d.ts.map +1 -1
- package/dist/commonjs/generated/src/siprouting/index.js +1 -3
- package/dist/commonjs/generated/src/siprouting/index.js.map +1 -1
- package/dist/commonjs/generated/src/siprouting/models/index.d.ts +141 -2
- package/dist/commonjs/generated/src/siprouting/models/index.d.ts.map +1 -1
- package/dist/commonjs/generated/src/siprouting/models/index.js +7 -0
- package/dist/commonjs/generated/src/siprouting/models/index.js.map +1 -1
- package/dist/commonjs/generated/src/siprouting/models/mappers.d.ts +7 -0
- package/dist/commonjs/generated/src/siprouting/models/mappers.d.ts.map +1 -1
- package/dist/commonjs/generated/src/siprouting/models/mappers.js +285 -78
- package/dist/commonjs/generated/src/siprouting/models/mappers.js.map +1 -1
- package/dist/commonjs/generated/src/siprouting/models/parameters.d.ts +7 -0
- package/dist/commonjs/generated/src/siprouting/models/parameters.d.ts.map +1 -1
- package/dist/commonjs/generated/src/siprouting/models/parameters.js +62 -16
- package/dist/commonjs/generated/src/siprouting/models/parameters.js.map +1 -1
- package/dist/commonjs/generated/src/siprouting/operations/sipRouting.d.ts +9 -3
- package/dist/commonjs/generated/src/siprouting/operations/sipRouting.d.ts.map +1 -1
- package/dist/commonjs/generated/src/siprouting/operations/sipRouting.js +45 -11
- package/dist/commonjs/generated/src/siprouting/operations/sipRouting.js.map +1 -1
- package/dist/commonjs/generated/src/siprouting/operationsInterfaces/sipRouting.d.ts +7 -1
- package/dist/commonjs/generated/src/siprouting/operationsInterfaces/sipRouting.d.ts.map +1 -1
- package/dist/commonjs/generated/src/siprouting/operationsInterfaces/sipRouting.js.map +1 -1
- package/dist/commonjs/generated/src/siprouting/sipRoutingClient.d.ts +6 -2
- package/dist/commonjs/generated/src/siprouting/sipRoutingClient.d.ts.map +1 -1
- package/dist/commonjs/generated/src/siprouting/sipRoutingClient.js +52 -3
- package/dist/commonjs/generated/src/siprouting/sipRoutingClient.js.map +1 -1
- package/dist/commonjs/generated/src/siprouting/sipRoutingClientContext.js +1 -1
- package/dist/commonjs/generated/src/siprouting/sipRoutingClientContext.js.map +1 -1
- package/dist/commonjs/generated/src/tracing.js +1 -1
- package/dist/commonjs/generated/src/tracing.js.map +1 -1
- package/dist/commonjs/mappers.d.ts +17 -3
- package/dist/commonjs/mappers.d.ts.map +1 -1
- package/dist/commonjs/mappers.js +53 -2
- package/dist/commonjs/mappers.js.map +1 -1
- package/dist/commonjs/models.d.ts +66 -1
- package/dist/commonjs/models.d.ts.map +1 -1
- package/dist/commonjs/models.js.map +1 -1
- package/dist/commonjs/phoneNumbersClient.d.ts +21 -1
- package/dist/commonjs/phoneNumbersClient.d.ts.map +1 -1
- package/dist/commonjs/phoneNumbersClient.js +35 -0
- package/dist/commonjs/phoneNumbersClient.js.map +1 -1
- package/dist/commonjs/sipRoutingClient.d.ts +41 -1
- package/dist/commonjs/sipRoutingClient.d.ts.map +1 -1
- package/dist/commonjs/sipRoutingClient.js +157 -1
- package/dist/commonjs/sipRoutingClient.js.map +1 -1
- package/dist/commonjs/utils/constants.d.ts.map +1 -1
- package/dist/commonjs/utils/constants.js +1 -1
- package/dist/commonjs/utils/constants.js.map +1 -1
- package/dist/esm/generated/src/models/index.d.ts +7 -5
- package/dist/esm/generated/src/models/index.d.ts.map +1 -1
- package/dist/esm/generated/src/models/index.js.map +1 -1
- package/dist/esm/generated/src/models/parameters.js +3 -3
- package/dist/esm/generated/src/models/parameters.js.map +1 -1
- package/dist/esm/generated/src/operations/phoneNumbers.d.ts +4 -4
- package/dist/esm/generated/src/operations/phoneNumbers.js +5 -4
- package/dist/esm/generated/src/operations/phoneNumbers.js.map +1 -1
- package/dist/esm/generated/src/operationsInterfaces/phoneNumbers.d.ts +3 -3
- package/dist/esm/generated/src/operationsInterfaces/phoneNumbers.js.map +1 -1
- package/dist/esm/generated/src/phoneNumbersClient.js +2 -2
- package/dist/esm/generated/src/phoneNumbersClient.js.map +1 -1
- package/dist/esm/generated/src/siprouting/index.d.ts +0 -1
- package/dist/esm/generated/src/siprouting/index.d.ts.map +1 -1
- package/dist/esm/generated/src/siprouting/index.js +0 -1
- package/dist/esm/generated/src/siprouting/index.js.map +1 -1
- package/dist/esm/generated/src/siprouting/models/index.d.ts +141 -2
- package/dist/esm/generated/src/siprouting/models/index.d.ts.map +1 -1
- package/dist/esm/generated/src/siprouting/models/index.js +6 -1
- package/dist/esm/generated/src/siprouting/models/index.js.map +1 -1
- package/dist/esm/generated/src/siprouting/models/mappers.d.ts +7 -0
- package/dist/esm/generated/src/siprouting/models/mappers.d.ts.map +1 -1
- package/dist/esm/generated/src/siprouting/models/mappers.js +284 -77
- package/dist/esm/generated/src/siprouting/models/mappers.js.map +1 -1
- package/dist/esm/generated/src/siprouting/models/parameters.d.ts +7 -0
- package/dist/esm/generated/src/siprouting/models/parameters.d.ts.map +1 -1
- package/dist/esm/generated/src/siprouting/models/parameters.js +62 -16
- package/dist/esm/generated/src/siprouting/models/parameters.js.map +1 -1
- package/dist/esm/generated/src/siprouting/operations/sipRouting.d.ts +9 -3
- package/dist/esm/generated/src/siprouting/operations/sipRouting.d.ts.map +1 -1
- package/dist/esm/generated/src/siprouting/operations/sipRouting.js +45 -11
- package/dist/esm/generated/src/siprouting/operations/sipRouting.js.map +1 -1
- package/dist/esm/generated/src/siprouting/operationsInterfaces/sipRouting.d.ts +7 -1
- package/dist/esm/generated/src/siprouting/operationsInterfaces/sipRouting.d.ts.map +1 -1
- package/dist/esm/generated/src/siprouting/operationsInterfaces/sipRouting.js.map +1 -1
- package/dist/esm/generated/src/siprouting/sipRoutingClient.d.ts +6 -2
- package/dist/esm/generated/src/siprouting/sipRoutingClient.d.ts.map +1 -1
- package/dist/esm/generated/src/siprouting/sipRoutingClient.js +51 -3
- package/dist/esm/generated/src/siprouting/sipRoutingClient.js.map +1 -1
- package/dist/esm/generated/src/siprouting/sipRoutingClientContext.js +1 -1
- package/dist/esm/generated/src/siprouting/sipRoutingClientContext.js.map +1 -1
- package/dist/esm/generated/src/tracing.js +1 -1
- package/dist/esm/generated/src/tracing.js.map +1 -1
- package/dist/esm/mappers.d.ts +17 -3
- package/dist/esm/mappers.d.ts.map +1 -1
- package/dist/esm/mappers.js +51 -2
- package/dist/esm/mappers.js.map +1 -1
- package/dist/esm/models.d.ts +66 -1
- package/dist/esm/models.d.ts.map +1 -1
- package/dist/esm/models.js.map +1 -1
- package/dist/esm/phoneNumbersClient.d.ts +21 -1
- package/dist/esm/phoneNumbersClient.d.ts.map +1 -1
- package/dist/esm/phoneNumbersClient.js +35 -0
- package/dist/esm/phoneNumbersClient.js.map +1 -1
- package/dist/esm/sipRoutingClient.d.ts +41 -1
- package/dist/esm/sipRoutingClient.d.ts.map +1 -1
- package/dist/esm/sipRoutingClient.js +158 -2
- package/dist/esm/sipRoutingClient.js.map +1 -1
- package/dist/esm/utils/constants.d.ts.map +1 -1
- package/dist/esm/utils/constants.js +1 -1
- package/dist/esm/utils/constants.js.map +1 -1
- package/dist/react-native/generated/src/models/index.d.ts +7 -5
- package/dist/react-native/generated/src/models/index.d.ts.map +1 -1
- package/dist/react-native/generated/src/models/index.js.map +1 -1
- package/dist/react-native/generated/src/models/parameters.js +3 -3
- package/dist/react-native/generated/src/models/parameters.js.map +1 -1
- package/dist/react-native/generated/src/operations/phoneNumbers.d.ts +4 -4
- package/dist/react-native/generated/src/operations/phoneNumbers.js +5 -4
- package/dist/react-native/generated/src/operations/phoneNumbers.js.map +1 -1
- package/dist/react-native/generated/src/operationsInterfaces/phoneNumbers.d.ts +3 -3
- package/dist/react-native/generated/src/operationsInterfaces/phoneNumbers.js.map +1 -1
- package/dist/react-native/generated/src/phoneNumbersClient.js +2 -2
- package/dist/react-native/generated/src/phoneNumbersClient.js.map +1 -1
- package/dist/react-native/generated/src/siprouting/index.d.ts +0 -1
- package/dist/react-native/generated/src/siprouting/index.d.ts.map +1 -1
- package/dist/react-native/generated/src/siprouting/index.js +0 -1
- package/dist/react-native/generated/src/siprouting/index.js.map +1 -1
- package/dist/react-native/generated/src/siprouting/models/index.d.ts +141 -2
- package/dist/react-native/generated/src/siprouting/models/index.d.ts.map +1 -1
- package/dist/react-native/generated/src/siprouting/models/index.js +6 -1
- package/dist/react-native/generated/src/siprouting/models/index.js.map +1 -1
- package/dist/react-native/generated/src/siprouting/models/mappers.d.ts +7 -0
- package/dist/react-native/generated/src/siprouting/models/mappers.d.ts.map +1 -1
- package/dist/react-native/generated/src/siprouting/models/mappers.js +284 -77
- package/dist/react-native/generated/src/siprouting/models/mappers.js.map +1 -1
- package/dist/react-native/generated/src/siprouting/models/parameters.d.ts +7 -0
- package/dist/react-native/generated/src/siprouting/models/parameters.d.ts.map +1 -1
- package/dist/react-native/generated/src/siprouting/models/parameters.js +62 -16
- package/dist/react-native/generated/src/siprouting/models/parameters.js.map +1 -1
- package/dist/react-native/generated/src/siprouting/operations/sipRouting.d.ts +9 -3
- package/dist/react-native/generated/src/siprouting/operations/sipRouting.d.ts.map +1 -1
- package/dist/react-native/generated/src/siprouting/operations/sipRouting.js +45 -11
- package/dist/react-native/generated/src/siprouting/operations/sipRouting.js.map +1 -1
- package/dist/react-native/generated/src/siprouting/operationsInterfaces/sipRouting.d.ts +7 -1
- package/dist/react-native/generated/src/siprouting/operationsInterfaces/sipRouting.d.ts.map +1 -1
- package/dist/react-native/generated/src/siprouting/operationsInterfaces/sipRouting.js.map +1 -1
- package/dist/react-native/generated/src/siprouting/sipRoutingClient.d.ts +6 -2
- package/dist/react-native/generated/src/siprouting/sipRoutingClient.d.ts.map +1 -1
- package/dist/react-native/generated/src/siprouting/sipRoutingClient.js +51 -3
- package/dist/react-native/generated/src/siprouting/sipRoutingClient.js.map +1 -1
- package/dist/react-native/generated/src/siprouting/sipRoutingClientContext.js +1 -1
- package/dist/react-native/generated/src/siprouting/sipRoutingClientContext.js.map +1 -1
- package/dist/react-native/generated/src/tracing.js +1 -1
- package/dist/react-native/generated/src/tracing.js.map +1 -1
- package/dist/react-native/mappers.d.ts +17 -3
- package/dist/react-native/mappers.d.ts.map +1 -1
- package/dist/react-native/mappers.js +51 -2
- package/dist/react-native/mappers.js.map +1 -1
- package/dist/react-native/models.d.ts +66 -1
- package/dist/react-native/models.d.ts.map +1 -1
- package/dist/react-native/models.js.map +1 -1
- package/dist/react-native/phoneNumbersClient.d.ts +21 -1
- package/dist/react-native/phoneNumbersClient.d.ts.map +1 -1
- package/dist/react-native/phoneNumbersClient.js +35 -0
- package/dist/react-native/phoneNumbersClient.js.map +1 -1
- package/dist/react-native/sipRoutingClient.d.ts +41 -1
- package/dist/react-native/sipRoutingClient.d.ts.map +1 -1
- package/dist/react-native/sipRoutingClient.js +158 -2
- package/dist/react-native/sipRoutingClient.js.map +1 -1
- package/dist/react-native/utils/constants.d.ts.map +1 -1
- package/dist/react-native/utils/constants.js +1 -1
- package/dist/react-native/utils/constants.js.map +1 -1
- package/package.json +2 -1
package/dist/browser/models.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { OperationOptions } from "@azure/core-client";
|
|
2
2
|
import type * as coreClient from "@azure/core-client";
|
|
3
3
|
import type { AvailablePhoneNumber, PhoneNumberAssignmentType, PhoneNumberCapabilitiesRequest, PhoneNumberSearchRequest, PhoneNumbersListAreaCodesOptionalParams, PhoneNumbersPurchaseReservationHeaders, PhoneNumberType } from "./generated/src/models/index.js";
|
|
4
|
+
import type { TlsHealth, PingHealth, IpAddressVersion, PrivacyHeader, HealthStatusReason } from "./generated/src/siprouting/models/index.js";
|
|
4
5
|
/**
|
|
5
6
|
* The result of the phone numbers purchase operation.
|
|
6
7
|
*/
|
|
@@ -54,11 +55,17 @@ export interface ListTollFreeAreaCodesOptions extends Omit<PhoneNumbersListAreaC
|
|
|
54
55
|
*/
|
|
55
56
|
export interface ListGeographicAreaCodesOptions extends PhoneNumbersListAreaCodesOptionalParams {
|
|
56
57
|
}
|
|
58
|
+
/**
|
|
59
|
+
* Additional options that can be passed to the Mobile area codes request.
|
|
60
|
+
*/
|
|
61
|
+
export interface ListMobileAreaCodesOptions extends Omit<PhoneNumbersListAreaCodesOptionalParams, "locality" | "administrativeDivision"> {
|
|
62
|
+
}
|
|
57
63
|
/**
|
|
58
64
|
* Additional options that can be passed to the available localities request.
|
|
59
65
|
*/
|
|
60
66
|
export interface ListLocalitiesOptions extends OperationOptions {
|
|
61
67
|
administrativeDivision?: string;
|
|
68
|
+
phoneNumberType?: PhoneNumberType;
|
|
62
69
|
}
|
|
63
70
|
/**
|
|
64
71
|
* Additional options for the search operator information request.
|
|
@@ -71,11 +78,21 @@ export interface SearchOperatorInformationOptions extends OperationOptions {
|
|
|
71
78
|
*/
|
|
72
79
|
export interface ListSipRoutesOptions extends OperationOptions {
|
|
73
80
|
}
|
|
81
|
+
/**
|
|
82
|
+
* Additional options that can be passed to list SIP domains.
|
|
83
|
+
*/
|
|
84
|
+
export interface ListSipDomainsOptions extends OperationOptions {
|
|
85
|
+
}
|
|
74
86
|
/**
|
|
75
87
|
* Additional options that can be passed to list SIP trunks.
|
|
76
88
|
*/
|
|
77
89
|
export interface ListSipTrunksOptions extends OperationOptions {
|
|
78
90
|
}
|
|
91
|
+
/**
|
|
92
|
+
* Additional options that can be passed to get SIP domains.
|
|
93
|
+
*/
|
|
94
|
+
export interface GetSipDomainsOptions extends OperationOptions {
|
|
95
|
+
}
|
|
79
96
|
/**
|
|
80
97
|
* Additional options that can be passed to the available offerings request.
|
|
81
98
|
*/
|
|
@@ -136,7 +153,7 @@ export interface BrowseAvailableNumbersOptions extends coreClient.OperationOptio
|
|
|
136
153
|
*/
|
|
137
154
|
export type PurchaseReservationResult = PhoneNumbersPurchaseReservationHeaders;
|
|
138
155
|
export { AvailablePhoneNumber, CommunicationError, PhoneNumberAdministrativeDivision, PhoneNumberAssignmentType, PhoneNumberAreaCode, PhoneNumberAvailabilityStatus, PhoneNumbersBrowseResult, PhoneNumberCapabilities, PhoneNumberCapabilitiesRequest, PhoneNumberCapabilityType, PhoneNumberCost, PhoneNumberCountry, PhoneNumbersListAreaCodesOptionalParams, PhoneNumberLocality, PhoneNumberOffering, PhoneNumberSearchRequest, PhoneNumberSearchResult, PhoneNumberSearchResultError, PhoneNumbersPurchaseReservationHeaders, PhoneNumbersPurchaseReservationResponse, PhoneNumbersReservation, PhoneNumberType, PurchasedPhoneNumber, OperatorDetails, OperatorInformation, OperatorInformationOptions, OperatorInformationResult, OperatorNumberType, ReservationStatus, } from "./generated/src/models/index.js";
|
|
139
|
-
export { SipRoutingError, SipTrunkRoute } from "./generated/src/siprouting/models/index.js";
|
|
156
|
+
export { SipRoutingError, SipTrunkRoute, TlsHealth, PingHealth, TlsStatus, PingStatus, HealthStatusReason, PrivacyHeader, IpAddressVersion, } from "./generated/src/siprouting/models/index.js";
|
|
140
157
|
/**
|
|
141
158
|
* Represents a SIP trunk for routing calls. See RFC 4904.
|
|
142
159
|
*/
|
|
@@ -149,5 +166,53 @@ export interface SipTrunk {
|
|
|
149
166
|
* Gets or sets SIP signaling port of the trunk.
|
|
150
167
|
*/
|
|
151
168
|
sipSignalingPort: number;
|
|
169
|
+
/**
|
|
170
|
+
* Enabled flag
|
|
171
|
+
*/
|
|
172
|
+
enabled?: boolean;
|
|
173
|
+
/**
|
|
174
|
+
* Represents health state of a SIP trunk for routing calls.
|
|
175
|
+
*/
|
|
176
|
+
health?: TrunkHealth;
|
|
177
|
+
/**
|
|
178
|
+
* When enabled, removes Azure Communication Services from the signaling path on call transfer and sets the SIP Refer-To header to the trunk's FQDN. By default false.
|
|
179
|
+
*/
|
|
180
|
+
directTransfer?: boolean;
|
|
181
|
+
/**
|
|
182
|
+
* SIP Privacy header. Default value is id.
|
|
183
|
+
*/
|
|
184
|
+
privacyHeader?: PrivacyHeader;
|
|
185
|
+
/**
|
|
186
|
+
* IP address version used by the trunk. The default value is ipv4.
|
|
187
|
+
*/
|
|
188
|
+
ipAddressVersion?: IpAddressVersion;
|
|
189
|
+
}
|
|
190
|
+
/** Represents health state of a SIP trunk for routing calls. */
|
|
191
|
+
export interface TrunkHealth {
|
|
192
|
+
/** The status of the TLS connections of the Trunk. */
|
|
193
|
+
tls: TlsHealth;
|
|
194
|
+
/** The status of SIP OPTIONS message sent by Trunk. */
|
|
195
|
+
ping: PingHealth;
|
|
196
|
+
/** The overall health status of Trunk. */
|
|
197
|
+
overall: OverallHealth;
|
|
152
198
|
}
|
|
199
|
+
/**
|
|
200
|
+
* Represents a DNS domain for SIP trunk.
|
|
201
|
+
*/
|
|
202
|
+
export interface SipDomain {
|
|
203
|
+
/**
|
|
204
|
+
* Gets or sets FQDN of the domain.
|
|
205
|
+
*/
|
|
206
|
+
fqdn: string;
|
|
207
|
+
/**
|
|
208
|
+
* Enabled flag
|
|
209
|
+
*/
|
|
210
|
+
enabled: boolean;
|
|
211
|
+
}
|
|
212
|
+
export type OverallHealth = {
|
|
213
|
+
status: "unknown" | "active";
|
|
214
|
+
} | {
|
|
215
|
+
status: "inactive";
|
|
216
|
+
reason: HealthStatusReason;
|
|
217
|
+
};
|
|
153
218
|
//# sourceMappingURL=models.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"models.d.ts","sourceRoot":"","sources":["../../src/models.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,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IACH,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B;;OAEG;IACH,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;CACrC;AAED,gEAAgE;AAChE,MAAM,WAAW,WAAW;IAC1B,sDAAsD;IACtD,GAAG,EAAE,SAAS,CAAC;IACf,uDAAuD;IACvD,IAAI,EAAE,UAAU,CAAC;IACjB,0CAA0C;IAC1C,OAAO,EAAE,aAAa,CAAC;CACxB;AAED;;GAEG;AACH,MAAM,WAAW,SAAS;IACxB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,OAAO,EAAE,OAAO,CAAC;CAClB;AAGD,MAAM,MAAM,aAAa,GACrB;IAAE,MAAM,EAAE,SAAS,GAAG,QAAQ,CAAA;CAAE,GAChC;IAAE,MAAM,EAAE,UAAU,CAAC;IAAC,MAAM,EAAE,kBAAkB,CAAA;CAAE,CAAC"}
|
|
@@ -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 type { OperationOptions } from \"@azure/core-client\";\nimport type * as coreClient from \"@azure/core-client\";\nimport type {\n AvailablePhoneNumber,\n PhoneNumberAssignmentType,\n PhoneNumberCapabilitiesRequest,\n PhoneNumberSearchRequest,\n PhoneNumbersListAreaCodesOptionalParams,\n PhoneNumbersPurchaseReservationHeaders,\n PhoneNumberType,\n} from \"./generated/src/models/index.js\";\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 * Represents mandatory fields for a phone number browse request.\n */\nexport interface BrowseAvailableNumbersRequest {\n /** Represents the number type of the offering. */\n phoneNumberType: PhoneNumberType;\n /** The ISO 3166-2 country code, e.g. US, representing the location of the search. */\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 includeAdditionalOperatorDetails?: 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\n/**\n * Required fields for create or update a phone numbers reservation.\n */\nexport interface CreateOrUpdateReservationRequest extends OperationOptions {\n /**\n * The id of the reservation.\n */\n reservationId: string;\n}\n\n/**\n * Additional options for updating a phone numbers reservation.\n */\nexport interface CreateOrUpdateReservationOptions extends OperationOptions {\n /**\n * The phone numbers to be added or updated in the reservation.\n */\n add?: AvailablePhoneNumber[];\n\n /**\n * The phone number ids to be removed from the reservation.\n */\n remove?: string[];\n}\n\n/**\n * Additional options for deleting a phone numbers reservation.\n */\nexport interface DeleteReservationOptions extends OperationOptions {}\n\n/**\n * Additional options for getting a phone numbers reservation.\n */\nexport interface GetReservationOptions extends OperationOptions {}\n\n/**\n * Additional options for listing all phone numbers reservations.\n */\nexport interface ListReservationOptions extends OperationOptions {}\n\n/**\n * Additional options for browse available phone numbers request.\n */\nexport interface BrowseAvailableNumbersOptions extends coreClient.OperationOptions {\n /** The minimum desired capabilities for the browse operation request. */\n capabilities?: PhoneNumberCapabilitiesRequest;\n /** Represents the assignment type of the offering. Also known as the use case. */\n assignmentType?: PhoneNumberAssignmentType;\n /** The phone number prefix to match. If specified, the search will be limited to phone numbers that start with the any of the given prefixes. */\n phoneNumberPrefixes?: string[];\n}\n\n/**\n * The result of the purchase reservation operation.\n */\nexport type PurchaseReservationResult = PhoneNumbersPurchaseReservationHeaders;\n\nexport {\n AvailablePhoneNumber,\n CommunicationError,\n PhoneNumberAdministrativeDivision,\n PhoneNumberAssignmentType,\n PhoneNumberAreaCode,\n PhoneNumberAvailabilityStatus,\n PhoneNumbersBrowseResult,\n PhoneNumberCapabilities,\n PhoneNumberCapabilitiesRequest,\n PhoneNumberCapabilityType,\n PhoneNumberCost,\n PhoneNumberCountry,\n PhoneNumbersListAreaCodesOptionalParams,\n PhoneNumberLocality,\n PhoneNumberOffering,\n PhoneNumberSearchRequest,\n PhoneNumberSearchResult,\n PhoneNumberSearchResultError,\n PhoneNumbersPurchaseReservationHeaders,\n PhoneNumbersPurchaseReservationResponse,\n PhoneNumbersReservation,\n PhoneNumberType,\n PurchasedPhoneNumber,\n OperatorDetails,\n OperatorInformation,\n OperatorInformationOptions,\n OperatorInformationResult,\n OperatorNumberType,\n ReservationStatus,\n} from \"./generated/src/models/index.js\";\n\nexport {
|
|
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 type { OperationOptions } from \"@azure/core-client\";\nimport type * as coreClient from \"@azure/core-client\";\nimport type {\n AvailablePhoneNumber,\n PhoneNumberAssignmentType,\n PhoneNumberCapabilitiesRequest,\n PhoneNumberSearchRequest,\n PhoneNumbersListAreaCodesOptionalParams,\n PhoneNumbersPurchaseReservationHeaders,\n PhoneNumberType,\n} from \"./generated/src/models/index.js\";\nimport type {\n TlsHealth,\n PingHealth,\n IpAddressVersion,\n PrivacyHeader,\n HealthStatusReason,\n} from \"./generated/src/siprouting/models/index.js\";\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 * Represents mandatory fields for a phone number browse request.\n */\nexport interface BrowseAvailableNumbersRequest {\n /** Represents the number type of the offering. */\n phoneNumberType: PhoneNumberType;\n /** The ISO 3166-2 country code, e.g. US, representing the location of the search. */\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 Mobile area codes request.\n */\nexport interface ListMobileAreaCodesOptions\n extends Omit<PhoneNumbersListAreaCodesOptionalParams, \"locality\" | \"administrativeDivision\"> {}\n\n/**\n * Additional options that can be passed to the available localities request.\n */\nexport interface ListLocalitiesOptions extends OperationOptions {\n administrativeDivision?: string;\n phoneNumberType?: PhoneNumberType;\n}\n\n/**\n * Additional options for the search operator information request.\n */\nexport interface SearchOperatorInformationOptions extends OperationOptions {\n includeAdditionalOperatorDetails?: 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 domains.\n */\nexport interface ListSipDomainsOptions 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 get SIP domains.\n */\nexport interface GetSipDomainsOptions 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\n/**\n * Required fields for create or update a phone numbers reservation.\n */\nexport interface CreateOrUpdateReservationRequest extends OperationOptions {\n /**\n * The id of the reservation.\n */\n reservationId: string;\n}\n\n/**\n * Additional options for updating a phone numbers reservation.\n */\nexport interface CreateOrUpdateReservationOptions extends OperationOptions {\n /**\n * The phone numbers to be added or updated in the reservation.\n */\n add?: AvailablePhoneNumber[];\n\n /**\n * The phone number ids to be removed from the reservation.\n */\n remove?: string[];\n}\n\n/**\n * Additional options for deleting a phone numbers reservation.\n */\nexport interface DeleteReservationOptions extends OperationOptions {}\n\n/**\n * Additional options for getting a phone numbers reservation.\n */\nexport interface GetReservationOptions extends OperationOptions {}\n\n/**\n * Additional options for listing all phone numbers reservations.\n */\nexport interface ListReservationOptions extends OperationOptions {}\n\n/**\n * Additional options for browse available phone numbers request.\n */\nexport interface BrowseAvailableNumbersOptions extends coreClient.OperationOptions {\n /** The minimum desired capabilities for the browse operation request. */\n capabilities?: PhoneNumberCapabilitiesRequest;\n /** Represents the assignment type of the offering. Also known as the use case. */\n assignmentType?: PhoneNumberAssignmentType;\n /** The phone number prefix to match. If specified, the search will be limited to phone numbers that start with the any of the given prefixes. */\n phoneNumberPrefixes?: string[];\n}\n\n/**\n * The result of the purchase reservation operation.\n */\nexport type PurchaseReservationResult = PhoneNumbersPurchaseReservationHeaders;\n\nexport {\n AvailablePhoneNumber,\n CommunicationError,\n PhoneNumberAdministrativeDivision,\n PhoneNumberAssignmentType,\n PhoneNumberAreaCode,\n PhoneNumberAvailabilityStatus,\n PhoneNumbersBrowseResult,\n PhoneNumberCapabilities,\n PhoneNumberCapabilitiesRequest,\n PhoneNumberCapabilityType,\n PhoneNumberCost,\n PhoneNumberCountry,\n PhoneNumbersListAreaCodesOptionalParams,\n PhoneNumberLocality,\n PhoneNumberOffering,\n PhoneNumberSearchRequest,\n PhoneNumberSearchResult,\n PhoneNumberSearchResultError,\n PhoneNumbersPurchaseReservationHeaders,\n PhoneNumbersPurchaseReservationResponse,\n PhoneNumbersReservation,\n PhoneNumberType,\n PurchasedPhoneNumber,\n OperatorDetails,\n OperatorInformation,\n OperatorInformationOptions,\n OperatorInformationResult,\n OperatorNumberType,\n ReservationStatus,\n} from \"./generated/src/models/index.js\";\n\nexport {\n SipRoutingError,\n SipTrunkRoute,\n TlsHealth,\n PingHealth,\n TlsStatus,\n PingStatus,\n HealthStatusReason,\n PrivacyHeader,\n IpAddressVersion,\n} from \"./generated/src/siprouting/models/index.js\";\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 * Enabled flag\n */\n enabled?: boolean;\n /**\n * Represents health state of a SIP trunk for routing calls.\n */\n health?: TrunkHealth;\n /**\n * When enabled, removes Azure Communication Services from the signaling path on call transfer and sets the SIP Refer-To header to the trunk's FQDN. By default false.\n */\n directTransfer?: boolean;\n /**\n * SIP Privacy header. Default value is id.\n */\n privacyHeader?: PrivacyHeader;\n /**\n * IP address version used by the trunk. The default value is ipv4.\n */\n ipAddressVersion?: IpAddressVersion;\n}\n\n/** Represents health state of a SIP trunk for routing calls. */\nexport interface TrunkHealth {\n /** The status of the TLS connections of the Trunk. */\n tls: TlsHealth;\n /** The status of SIP OPTIONS message sent by Trunk. */\n ping: PingHealth;\n /** The overall health status of Trunk. */\n overall: OverallHealth;\n}\n\n/**\n * Represents a DNS domain for SIP trunk.\n */\nexport interface SipDomain {\n /**\n * Gets or sets FQDN of the domain.\n */\n fqdn: string;\n /**\n * Enabled flag\n */\n enabled: boolean;\n}\n\n// This assumes that _only_ inactive status has a reason and that _every_ inactive status has a reason\nexport type OverallHealth =\n | { status: \"unknown\" | \"active\" }\n | { status: \"inactive\"; reason: HealthStatusReason };\n"]}
|
|
@@ -2,7 +2,7 @@ import type { KeyCredential, TokenCredential } from "@azure/core-auth";
|
|
|
2
2
|
import type { PollOperationState, PollerLike } from "@azure/core-lro";
|
|
3
3
|
import type { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
4
4
|
import type { OperatorInformationResult, PhoneNumberAreaCode, PhoneNumberCapabilitiesRequest, PhoneNumberCountry, PhoneNumberLocality, PhoneNumberOffering, PhoneNumbersBrowseResult, PhoneNumberSearchResult, PhoneNumbersReservation, PurchasedPhoneNumber } from "./generated/src/models/index.js";
|
|
5
|
-
import type { BrowseAvailableNumbersRequest, DeleteReservationOptions, GetPurchasedPhoneNumberOptions, GetReservationOptions, ListAvailableCountriesOptions, ListGeographicAreaCodesOptions, ListLocalitiesOptions, ListOfferingsOptions, ListPurchasedPhoneNumbersOptions, ListReservationOptions, ListTollFreeAreaCodesOptions, PurchasePhoneNumbersResult, ReleasePhoneNumberResult, SearchAvailablePhoneNumbersRequest, SearchOperatorInformationOptions, CreateOrUpdateReservationOptions, BrowseAvailableNumbersOptions, CreateOrUpdateReservationRequest } from "./models.js";
|
|
5
|
+
import type { BrowseAvailableNumbersRequest, DeleteReservationOptions, GetPurchasedPhoneNumberOptions, GetReservationOptions, ListAvailableCountriesOptions, ListGeographicAreaCodesOptions, ListMobileAreaCodesOptions, ListLocalitiesOptions, ListOfferingsOptions, ListPurchasedPhoneNumbersOptions, ListReservationOptions, ListTollFreeAreaCodesOptions, PurchasePhoneNumbersResult, ReleasePhoneNumberResult, SearchAvailablePhoneNumbersRequest, SearchOperatorInformationOptions, CreateOrUpdateReservationOptions, BrowseAvailableNumbersOptions, CreateOrUpdateReservationRequest } from "./models.js";
|
|
6
6
|
import type { BeginPurchasePhoneNumbersOptions, BeginReleasePhoneNumberOptions, BeginReservationPurchaseOptions, BeginSearchAvailablePhoneNumbersOptions, BeginUpdatePhoneNumberCapabilitiesOptions } from "./lroModels.js";
|
|
7
7
|
import type { CommonClientOptions } from "@azure/core-client";
|
|
8
8
|
/**
|
|
@@ -451,6 +451,26 @@ export declare class PhoneNumbersClient {
|
|
|
451
451
|
* @param options - The optional parameters.
|
|
452
452
|
*/
|
|
453
453
|
listAvailableGeographicAreaCodes(countryCode: string, options?: ListGeographicAreaCodesOptions): PagedAsyncIterableIterator<PhoneNumberAreaCode>;
|
|
454
|
+
/**
|
|
455
|
+
* Iterates the available Mobile area codes.
|
|
456
|
+
*
|
|
457
|
+
* Example usage:
|
|
458
|
+
* ```ts snippet:PhoneNumbersClientListMobileAreaCodes
|
|
459
|
+
* import { DefaultAzureCredential } from "@azure/identity";
|
|
460
|
+
* import { PhoneNumbersClient } from "@azure/communication-phone-numbers";
|
|
461
|
+
*
|
|
462
|
+
* const credential = new DefaultAzureCredential();
|
|
463
|
+
* const client = new PhoneNumbersClient("<endpoint-from-resource>", credential);
|
|
464
|
+
*
|
|
465
|
+
* for await (const areaCodeItem of client.listAvailableMobileAreaCodes("IE")) {
|
|
466
|
+
* console.log("area code: ", areaCodeItem.areaCode);
|
|
467
|
+
* }
|
|
468
|
+
* ```
|
|
469
|
+
* List all available Geographic area codes.
|
|
470
|
+
* @param countryCode - The ISO 3166-2 country code.
|
|
471
|
+
* @param options - The optional parameters.
|
|
472
|
+
*/
|
|
473
|
+
listAvailableMobileAreaCodes(countryCode: string, options?: ListMobileAreaCodesOptions): PagedAsyncIterableIterator<PhoneNumberAreaCode>;
|
|
454
474
|
/**
|
|
455
475
|
* Iterates the available localities.
|
|
456
476
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"phoneNumbersClient.d.ts","sourceRoot":"","sources":["../../src/phoneNumbersClient.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAGvE,OAAO,KAAK,EAAE,kBAAkB,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AACtE,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAErE,OAAO,KAAK,EAEV,yBAAyB,EACzB,mBAAmB,EACnB,8BAA8B,EAC9B,kBAAkB,EAClB,mBAAmB,EACnB,mBAAmB,EACnB,wBAAwB,EACxB,uBAAuB,EACvB,uBAAuB,EACvB,oBAAoB,EACrB,MAAM,iCAAiC,CAAC;AACzC,OAAO,KAAK,EACV,6BAA6B,EAC7B,wBAAwB,EACxB,8BAA8B,EAC9B,qBAAqB,EACrB,6BAA6B,EAC7B,8BAA8B,EAC9B,qBAAqB,EACrB,oBAAoB,EACpB,gCAAgC,EAChC,sBAAsB,EACtB,4BAA4B,EAC5B,0BAA0B,EAC1B,wBAAwB,EACxB,kCAAkC,EAClC,gCAAgC,EAChC,gCAAgC,EAChC,6BAA6B,EAC7B,gCAAgC,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AA4B,CACjC,WAAW,EAAE,MAAM,EACnB,OAAO,GAAE,0BAA+B,GACvC,0BAA0B,CAAC,mBAAmB,CAAC;IAsBlD;;;;;;;;;;;;;;;;;;OAkBG;IACI,uBAAuB,CAC5B,WAAW,EAAE,MAAM,EACnB,OAAO,GAAE,qBAA0B,GAClC,0BAA0B,CAAC,mBAAmB,CAAC;IAuBlD;;;;;;;;;;;;;;;;;;;OAmBG;IACI,sBAAsB,CAC3B,WAAW,EAAE,MAAM,EACnB,OAAO,GAAE,oBAAyB,GACjC,0BAA0B,CAAC,mBAAmB,CAAC;IAsBlD;;;;;;;;;;;;;;;;;OAiBG;IACI,gBAAgB,CACrB,OAAO,GAAE,sBAA2B,GACnC,0BAA0B,CAAC,uBAAuB,CAAC;IAsBtD;;;;;OAKG;IACI,yBAAyB,CAC9B,YAAY,EAAE,MAAM,EAAE,EACtB,OAAO,GAAE,gCAA8E,GACtF,OAAO,CAAC,yBAAyB,CAAC;IAuBrC,OAAO,CAAC,4BAA4B;IAcpC,OAAO,CAAC,iCAAiC;CAa1C"}
|
|
@@ -570,6 +570,41 @@ export class PhoneNumbersClient {
|
|
|
570
570
|
span.end();
|
|
571
571
|
}
|
|
572
572
|
}
|
|
573
|
+
/**
|
|
574
|
+
* Iterates the available Mobile area codes.
|
|
575
|
+
*
|
|
576
|
+
* Example usage:
|
|
577
|
+
* ```ts snippet:PhoneNumbersClientListMobileAreaCodes
|
|
578
|
+
* import { DefaultAzureCredential } from "@azure/identity";
|
|
579
|
+
* import { PhoneNumbersClient } from "@azure/communication-phone-numbers";
|
|
580
|
+
*
|
|
581
|
+
* const credential = new DefaultAzureCredential();
|
|
582
|
+
* const client = new PhoneNumbersClient("<endpoint-from-resource>", credential);
|
|
583
|
+
*
|
|
584
|
+
* for await (const areaCodeItem of client.listAvailableMobileAreaCodes("IE")) {
|
|
585
|
+
* console.log("area code: ", areaCodeItem.areaCode);
|
|
586
|
+
* }
|
|
587
|
+
* ```
|
|
588
|
+
* List all available Geographic area codes.
|
|
589
|
+
* @param countryCode - The ISO 3166-2 country code.
|
|
590
|
+
* @param options - The optional parameters.
|
|
591
|
+
*/
|
|
592
|
+
listAvailableMobileAreaCodes(countryCode, options = {}) {
|
|
593
|
+
const { span, updatedOptions } = tracingClient.startSpan("PhoneNumbersClient-listAvailableMobileAreaCodes", options);
|
|
594
|
+
try {
|
|
595
|
+
return this.client.phoneNumbers.listAreaCodes(countryCode, "mobile", Object.assign({}, updatedOptions));
|
|
596
|
+
}
|
|
597
|
+
catch (e) {
|
|
598
|
+
span.setStatus({
|
|
599
|
+
status: "error",
|
|
600
|
+
error: e,
|
|
601
|
+
});
|
|
602
|
+
throw e;
|
|
603
|
+
}
|
|
604
|
+
finally {
|
|
605
|
+
span.end();
|
|
606
|
+
}
|
|
607
|
+
}
|
|
573
608
|
/**
|
|
574
609
|
* Iterates the available localities.
|
|
575
610
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"phoneNumbersClient.js","sourceRoot":"","sources":["../../src/phoneNumbersClient.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAClC,4CAA4C;;AAE5C,uDAAuD;AACvD,OAAO,EACL,6BAA6B,EAC7B,eAAe,EACf,oBAAoB,GACrB,MAAM,6BAA6B,CAAC;AAErC,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAIrD,OAAO,EAAE,kBAAkB,IAAI,2BAA2B,EAAE,MAAM,0BAA0B,CAAC;AAyC7F,OAAO,EAAE,8BAA8B,EAAE,MAAM,mCAAmC,CAAC;AAEnF,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAC1C,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAY3D,MAAM,2BAA2B,GAAG,CAAC,OAAY,EAAwC,EAAE,CACzF,OAAO,IAAI,CAAC,eAAe,CAAC,OAAO,CAAC,IAAI,CAAC,iBAAiB,CAAC,OAAO,CAAC,CAAC;A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AAW,CAAC,EAAE,EAAE,CAAC;gBACnB,uBAAuB,CAAC,WAAW,CAAC,EAAE,CAAC,GAAG,WAAW,CAAC;YACxD,CAAC;QACH,CAAC;QACD,OAAO,uBAAuB,CAAC;IACjC,CAAC;IAEO,iCAAiC,CACvC,kBAA2E,EAC3E,YAAsB;QAEtB,MAAM,uBAAuB,GAC3B,kBAAkB,CAAC;QACrB,KAAK,MAAM,WAAW,IAAI,YAAY,EAAE,CAAC;YACvC,IAAI,WAAW,EAAE,CAAC;gBAChB,uBAAuB,CAAC,WAAW,CAAC,GAAG,IAAI,CAAC;YAC9C,CAAC;QACH,CAAC;QACD,OAAO,uBAAuB,CAAC;IACjC,CAAC;CACF","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n/// <reference lib=\"esnext.asynciterable\" />\n\n/* eslint-disable @azure/azure-sdk/ts-naming-options */\nimport {\n createCommunicationAuthPolicy,\n isKeyCredential,\n parseClientArguments,\n} from \"@azure/communication-common\";\nimport type { KeyCredential, TokenCredential } from \"@azure/core-auth\";\nimport { isTokenCredential } from \"@azure/core-auth\";\nimport type { InternalPipelineOptions } from \"@azure/core-rest-pipeline\";\nimport type { PollOperationState, PollerLike } from \"@azure/core-lro\";\nimport type { PagedAsyncIterableIterator } from \"@azure/core-paging\";\nimport { PhoneNumbersClient as PhoneNumbersGeneratedClient } from \"./generated/src/index.js\";\nimport type {\n AvailablePhoneNumber,\n OperatorInformationResult,\n PhoneNumberAreaCode,\n PhoneNumberCapabilitiesRequest,\n PhoneNumberCountry,\n PhoneNumberLocality,\n PhoneNumberOffering,\n PhoneNumbersBrowseResult,\n PhoneNumberSearchResult,\n PhoneNumbersReservation,\n PurchasedPhoneNumber,\n} from \"./generated/src/models/index.js\";\nimport type {\n BrowseAvailableNumbersRequest,\n DeleteReservationOptions,\n GetPurchasedPhoneNumberOptions,\n GetReservationOptions,\n ListAvailableCountriesOptions,\n ListGeographicAreaCodesOptions,\n ListLocalitiesOptions,\n ListOfferingsOptions,\n ListPurchasedPhoneNumbersOptions,\n ListReservationOptions,\n ListTollFreeAreaCodesOptions,\n PurchasePhoneNumbersResult,\n ReleasePhoneNumberResult,\n SearchAvailablePhoneNumbersRequest,\n SearchOperatorInformationOptions,\n CreateOrUpdateReservationOptions,\n BrowseAvailableNumbersOptions,\n CreateOrUpdateReservationRequest,\n} from \"./models.js\";\nimport type {\n BeginPurchasePhoneNumbersOptions,\n BeginReleasePhoneNumberOptions,\n BeginReservationPurchaseOptions,\n BeginSearchAvailablePhoneNumbersOptions,\n BeginUpdatePhoneNumberCapabilitiesOptions,\n} from \"./lroModels.js\";\nimport { createPhoneNumbersPagingPolicy } from \"./utils/customPipelinePolicies.js\";\nimport type { CommonClientOptions } from \"@azure/core-client\";\nimport { logger } from \"./utils/index.js\";\nimport { tracingClient } from \"./generated/src/tracing.js\";\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 * Deletes a reservation by its ID..\n *\n * Example usage:\n * ```ts snippet:PhoneNumbersClientDeleteReservation\n * import { DefaultAzureCredential } from \"@azure/identity\";\n * import { PhoneNumbersClient } from \"@azure/communication-phone-numbers\";\n *\n * const credential = new DefaultAzureCredential();\n * const client = new PhoneNumbersClient(\"<endpoint-from-resource>\", credential);\n *\n * const reservationId = \"<reservation-id>\";\n * await client.deleteReservation(reservationId);\n *\n * console.log(`Reservation with ID ${reservationId} has been deleted.`);\n * ```\n * Delete a reservation.\n * @param reservationId - The id of the reservation.\n * @param options - Additional request options.\n */\n public deleteReservation(\n reservationId: string,\n options: DeleteReservationOptions = {},\n ): Promise<void> {\n return tracingClient.withSpan(\n \"PhoneNumbersClient-deleteReservation\",\n options,\n (updatedOptions) => {\n return this.client.phoneNumbers.deleteReservation(reservationId, {\n ...updatedOptions,\n });\n },\n );\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 * Retrieves the reservation with the given ID, including all of the phone numbers associated with it.\n *\n * Example usage:\n * ```ts snippet:PhoneNumbersClientGetReservation\n * import { DefaultAzureCredential } from \"@azure/identity\";\n * import { PhoneNumbersClient } from \"@azure/communication-phone-numbers\";\n *\n * const credential = new DefaultAzureCredential();\n * const client = new PhoneNumbersClient(\"<endpoint-from-resource>\", credential);\n *\n * const reservationId = \"<reservation-id>\";\n * const reservationResponse = await client.getReservation(reservationId);\n *\n * console.log(`Phone numbers in reservation: ${reservationResponse.phoneNumbers}`);\n * ```\n * Get a reservation.\n * @param reservationId - The id of the reservation.\n * @param options - Additional request options.\n */\n public getReservation(\n reservationId: string,\n options: GetReservationOptions = {},\n ): Promise<PhoneNumbersReservation> {\n return tracingClient.withSpan(\n \"PhoneNumbersClient-getReservation\",\n options,\n (updatedOptions) => {\n return this.client.phoneNumbers.getReservation(reservationId, {\n ...updatedOptions,\n });\n },\n );\n }\n\n /**\n * Iterates the purchased phone numbers.\n *\n * Example usage:\n * ```ts snippet:PhoneNumbersClientListPurchasedPhoneNumbers\n * import { DefaultAzureCredential } from \"@azure/identity\";\n * import { PhoneNumbersClient } from \"@azure/communication-phone-numbers\";\n *\n * const credential = new DefaultAzureCredential();\n * const client = new PhoneNumbersClient(\"<endpoint-from-resource>\", credential);\n *\n * const phoneNumbers = client.listPurchasedPhoneNumbers();\n *\n * for await (const phoneNumber of phoneNumbers) {\n * console.log(`The id is the same as the phone number: ${phoneNumber.id}`);\n * console.log(`Phone number type is ${phoneNumber.phoneNumberType}`);\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 * Browses for available phone numbers to purchase.\n *\n * Example usage:\n * ```ts snippet:PhoneNumbersClientBrowseAvailablePhoneNumbers\n * import { DefaultAzureCredential } from \"@azure/identity\";\n * import {\n * PhoneNumbersClient,\n * BrowseAvailableNumbersRequest,\n * } from \"@azure/communication-phone-numbers\";\n *\n * const credential = new DefaultAzureCredential();\n * const client = new PhoneNumbersClient(\"<endpoint-from-resource>\", credential);\n *\n * const browseAvailableNumberRequest: BrowseAvailableNumbersRequest = {\n * countryCode: \"US\",\n * phoneNumberType: \"tollFree\",\n * };\n * const browseAvailableNumbers = await client.browseAvailablePhoneNumbers(\n * browseAvailableNumberRequest,\n * {\n * capabilities: {\n * calling: \"outbound\",\n * },\n * assignmentType: \"application\",\n * },\n * );\n * for (const phoneNumber of browseAvailableNumbers.phoneNumbers) {\n * console.log(\"Found phone number: \", phoneNumber.phoneNumber);\n * }\n * ```\n * Browse available phone numbers\n * @param request - The request parameters for browsing available phone numbers.\n * @param options - Additional request options.\n */\n public browseAvailablePhoneNumbers(\n request: BrowseAvailableNumbersRequest,\n options?: BrowseAvailableNumbersOptions,\n ): Promise<PhoneNumbersBrowseResult> {\n const { span, updatedOptions } = tracingClient.startSpan(\n \"PhoneNumbersClient-browseAvailableNumbers\",\n options,\n );\n\n try {\n const { countryCode, phoneNumberType, ...rest } = request;\n return this.client.phoneNumbers.browseAvailableNumbers(countryCode, phoneNumberType, {\n ...updatedOptions,\n ...rest,\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 snippet:PhoneNumbersClientReleasePhoneNumber\n * import { DefaultAzureCredential } from \"@azure/identity\";\n * import { PhoneNumbersClient } from \"@azure/communication-phone-numbers\";\n *\n * const credential = new DefaultAzureCredential();\n * const client = new PhoneNumbersClient(\"<endpoint-from-resource>\", credential);\n *\n * const phoneNumberToRelease = \"<phone-number-to-release>\";\n *\n * const releasePoller = await client.beginReleasePhoneNumber(phoneNumberToRelease);\n *\n * // Release is underway.\n * await releasePoller.pollUntilDone();\n * console.log(\"Successfully release phone number.\");\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 snippet:PhoneNumbersClientSearchAvailablePhoneNumbers\n * import { DefaultAzureCredential } from \"@azure/identity\";\n * import {\n * PhoneNumbersClient,\n * SearchAvailablePhoneNumbersRequest,\n * } from \"@azure/communication-phone-numbers\";\n *\n * const credential = new DefaultAzureCredential();\n * const client = new PhoneNumbersClient(\"<endpoint-from-resource>\", credential);\n *\n * const searchRequest: SearchAvailablePhoneNumbersRequest = {\n * countryCode: \"US\",\n * phoneNumberType: \"tollFree\",\n * assignmentType: \"application\",\n * capabilities: {\n * sms: \"outbound\",\n * calling: \"none\",\n * },\n * quantity: 1,\n * };\n *\n * const searchPoller = await client.beginSearchAvailablePhoneNumbers(searchRequest);\n *\n * // The search is underway. Wait to receive searchId.\n * const searchResults = await searchPoller.pollUntilDone();\n * console.log(`Found phone number: ${searchResults.phoneNumbers[0]}`);\n * console.log(`searchId: ${searchResults.searchId}`);\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 snippet:PhoneNumbersClientPurchasePhoneNumbers\n * import { DefaultAzureCredential } from \"@azure/identity\";\n * import {\n * PhoneNumbersClient,\n * SearchAvailablePhoneNumbersRequest,\n * } from \"@azure/communication-phone-numbers\";\n *\n * const credential = new DefaultAzureCredential();\n * const client = new PhoneNumbersClient(\"<endpoint-from-resource>\", credential);\n *\n * const searchRequest: SearchAvailablePhoneNumbersRequest = {\n * countryCode: \"US\",\n * phoneNumberType: \"tollFree\",\n * assignmentType: \"application\",\n * capabilities: {\n * sms: \"outbound\",\n * calling: \"none\",\n * },\n * quantity: 1,\n * };\n *\n * const searchPoller = await client.beginSearchAvailablePhoneNumbers(searchRequest);\n *\n * // The search is underway. Wait to receive searchId.\n * const { searchId, phoneNumbers } = await searchPoller.pollUntilDone();\n *\n * const purchasePoller = await client.beginPurchasePhoneNumbers(searchId);\n *\n * // Purchase is underway.\n * await purchasePoller.pollUntilDone();\n * console.log(`Successfully purchased ${phoneNumbers[0]}`);\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({\n ...updatedOptions,\n searchId,\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 snippet:PhoneNumbersClientBeginReservationPurchase\n * import { DefaultAzureCredential } from \"@azure/identity\";\n * import { PhoneNumbersClient } from \"@azure/communication-phone-numbers\";\n *\n * const credential = new DefaultAzureCredential();\n * const client = new PhoneNumbersClient(\"<endpoint-from-resource>\", credential);\n *\n * const reservationId = \"<reservation-id>\";\n *\n * const purchasePoller = await client.beginReservationPurchase(reservationId);\n *\n * // Purchase is underway.\n * const purchaseResult = await purchasePoller.pollUntilDone();\n * console.log(`Successfully purchased phone numbers in reservation: ${reservationId}`);\n * ```\n * Begins the purchase of the phone numbers in the reservation with the given ID.\n * @param reservationId - The id of the reservation.\n * @param options - Additional request options.\n */\n public beginReservationPurchase(\n reservationId: string,\n options: BeginReservationPurchaseOptions = {},\n ): Promise<\n PollerLike<PollOperationState<PurchasePhoneNumbersResult>, PurchasePhoneNumbersResult>\n > {\n return tracingClient.withSpan(\n \"PhoneNumbersClient-beginReservationPurchase\",\n options,\n (updatedOptions) => {\n return this.client.phoneNumbers.beginPurchaseReservation(reservationId, {\n ...updatedOptions,\n });\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 snippet:PhoneNumbersClientUpdatePhoneNumberCapabilities\n * import { DefaultAzureCredential } from \"@azure/identity\";\n * import {\n * PhoneNumbersClient,\n * PhoneNumberCapabilitiesRequest,\n * } from \"@azure/communication-phone-numbers\";\n *\n * const credential = new DefaultAzureCredential();\n * const client = new PhoneNumbersClient(\"<endpoint-from-resource>\", credential);\n *\n * const phoneNumberToUpdate = \"<phone-number-to-update>\";\n *\n * // This will update phone number to send and receive sms, but only send calls.\n * const updateRequest: PhoneNumberCapabilitiesRequest = {\n * sms: \"inbound+outbound\",\n * calling: \"outbound\",\n * };\n *\n * const updatePoller = await client.beginUpdatePhoneNumberCapabilities(\n * phoneNumberToUpdate,\n * updateRequest,\n * );\n *\n * // Update is underway.\n * const { capabilities } = await updatePoller.pollUntilDone();\n * console.log(`These are the update capabilities: ${capabilities}`);\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 * Adds and removes phone numbers from the reservation with the given ID. The response will be the\n * updated state of the reservation. Phone numbers can be reserved by including them in the payload. If\n * a number is already in the reservation, it will be ignored. To remove a phone number, set it\n * explicitly to null in the request payload. This operation is idempotent. If a reservation with the\n * same ID already exists, it will be updated, otherwise a new one is created. Only reservations with\n * 'active' status can be updated. Updating a reservation will extend the expiration time of the\n * reservation to 15 minutes after the last change, up to a maximum of 2 hours from creation time.\n * Partial success is possible, in which case the response will have a 207 status code.\n *\n * Example usage:\n * ```ts snippet:PhoneNumbersClientBrowseAndReserveAvailablePhoneNumbers\n * import { DefaultAzureCredential } from \"@azure/identity\";\n * import {\n * PhoneNumbersClient,\n * BrowseAvailableNumbersRequest,\n * AvailablePhoneNumber,\n * } from \"@azure/communication-phone-numbers\";\n *\n * const credential = new DefaultAzureCredential();\n * const client = new PhoneNumbersClient(\"<endpoint-from-resource>\", credential);\n *\n * const browseAvailableNumberRequest: BrowseAvailableNumbersRequest = {\n * countryCode: \"US\",\n * phoneNumberType: \"tollFree\",\n * };\n *\n * const browseAvailableNumbers = await client.browseAvailablePhoneNumbers(\n * browseAvailableNumberRequest,\n * {\n * capabilities: {\n * calling: \"outbound\",\n * },\n * assignmentType: \"application\",\n * },\n * );\n * const phoneNumbers = browseAvailableNumbers.phoneNumbers;\n * const phoneNumbersList = [phoneNumbers[0], phoneNumbers[1]];\n * const reservationResponse = await client.createOrUpdateReservation(\n * {\n * reservationId: \"reservationId\",\n * },\n * {\n * add: phoneNumbersList,\n * },\n * );\n * const numbersWithError: AvailablePhoneNumber[] = [];\n * for (const number of Object.values(reservationResponse.phoneNumbers || {})) {\n * if (number != null && number.status === \"error\") {\n * numbersWithError.push(number);\n * }\n * }\n * if (numbersWithError.length > 0) {\n * console.log(\"Errors occurred during reservation\");\n * } else {\n * console.log(\"Reservation operation completed without errors.\");\n * }\n * ```\n *\n * Create or update a reservation.\n * @param request - The request parameters for creating or updating a reservation.\n * @param options - The options parameters.\n */\n public async createOrUpdateReservation(\n request: CreateOrUpdateReservationRequest,\n options?: CreateOrUpdateReservationOptions,\n ): Promise<PhoneNumbersReservation> {\n const phoneNumbersReservation: { [propertyName: string]: AvailablePhoneNumber | null } = {};\n\n if (options?.add) {\n this.addPhoneNumbersToReservation(phoneNumbersReservation, options.add);\n }\n\n if (options?.remove) {\n this.removePhoneNumbersFromReservation(phoneNumbersReservation, options.remove);\n }\n\n const reservationOptionalParams = {\n ...options,\n phoneNumbers: phoneNumbersReservation,\n };\n const { span, updatedOptions } = tracingClient.startSpan(\n \"PhoneNumbersClient-createOrUpdateReservation\",\n reservationOptionalParams,\n );\n\n try {\n return this.client.phoneNumbers.createOrUpdateReservation(\n request.reservationId,\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 countries.\n *\n * Example usage:\n * ```ts snippet:PhoneNumbersClientListAvailableCountries\n * import { DefaultAzureCredential } from \"@azure/identity\";\n * import { PhoneNumbersClient } from \"@azure/communication-phone-numbers\";\n *\n * const credential = new DefaultAzureCredential();\n * const client = new PhoneNumbersClient(\"<endpoint-from-resource>\", credential);\n *\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 snippet:PhoneNumbersClientListTollFreeAreaCodes\n * import { DefaultAzureCredential } from \"@azure/identity\";\n * import { PhoneNumbersClient } from \"@azure/communication-phone-numbers\";\n *\n * const credential = new DefaultAzureCredential();\n * const client = new PhoneNumbersClient(\"<endpoint-from-resource>\", credential);\n *\n * for await (const areaCodeItem of client.listAvailableTollFreeAreaCodes(\"US\")) {\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 snippet:PhoneNumbersClientListGeographicAreaCodes\n * import { DefaultAzureCredential } from \"@azure/identity\";\n * import { PhoneNumbersClient } from \"@azure/communication-phone-numbers\";\n *\n * const credential = new DefaultAzureCredential();\n * const client = new PhoneNumbersClient(\"<endpoint-from-resource>\", credential);\n *\n * for await (const areaCodeItem of client.listAvailableGeographicAreaCodes(\"US\")) {\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 snippet:PhoneNumbersClientListAvailableLocalities\n * import { DefaultAzureCredential } from \"@azure/identity\";\n * import { PhoneNumbersClient } from \"@azure/communication-phone-numbers\";\n *\n * const credential = new DefaultAzureCredential();\n * const client = new PhoneNumbersClient(\"<endpoint-from-resource>\", credential);\n *\n * for await (const locality of client.listAvailableLocalities(\"US\")) {\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 snippet:PhoneNumbersClientListAvailableOfferings\n * import { DefaultAzureCredential } from \"@azure/identity\";\n * import { PhoneNumbersClient } from \"@azure/communication-phone-numbers\";\n *\n * const credential = new DefaultAzureCredential();\n * const client = new PhoneNumbersClient(\"<endpoint-from-resource>\", credential);\n *\n * for await (const offering of client.listAvailableOfferings(\"US\")) {\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 * Iterates all phone number reservations.\n *\n * Example usage:\n * ```ts snippet:PhoneNumbersClientListReservations\n * import { DefaultAzureCredential } from \"@azure/identity\";\n * import { PhoneNumbersClient } from \"@azure/communication-phone-numbers\";\n *\n * const credential = new DefaultAzureCredential();\n * const client = new PhoneNumbersClient(\"<endpoint-from-resource>\", credential);\n *\n * for await (const reservation of client.listReservations()) {\n * console.log(`Reservation id: ${reservation.id}`);\n * }\n * ```\n * List all phone number reservations. Note that the reservations will not be populated with the phone numbers associated with them.\n * @param options - The optional parameters.\n */\n public listReservations(\n options: ListReservationOptions = {},\n ): PagedAsyncIterableIterator<PhoneNumbersReservation> {\n const { span, updatedOptions } = tracingClient.startSpan(\n \"PhoneNumbersClient-listReservations\",\n options,\n );\n\n try {\n return this.client.phoneNumbers.listReservations({\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 = { includeAdditionalOperatorDetails: false },\n ): Promise<OperatorInformationResult> {\n const { span, updatedOptions } = tracingClient.startSpan(\n \"PhoneNumbersClient-searchOperatorInformation\",\n options,\n );\n\n try {\n return this.client.phoneNumbers.operatorInformationSearch(phoneNumbers, {\n ...updatedOptions,\n options: { includeAdditionalOperatorDetails: options.includeAdditionalOperatorDetails },\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 private addPhoneNumbersToReservation(\n currentReservation: { [propertyName: string]: AvailablePhoneNumber | null },\n phoneNumbers: AvailablePhoneNumber[],\n ): { [propertyName: string]: AvailablePhoneNumber | null } {\n const phoneNumbersReservation: { [propertyName: string]: AvailablePhoneNumber | null } =\n currentReservation;\n for (const phoneNumber of phoneNumbers) {\n if (phoneNumber.id) {\n phoneNumbersReservation[phoneNumber.id] = phoneNumber;\n }\n }\n return phoneNumbersReservation;\n }\n\n private removePhoneNumbersFromReservation(\n currentReservation: { [propertyName: string]: AvailablePhoneNumber | null },\n phoneNumbers: string[],\n ): { [propertyName: string]: AvailablePhoneNumber | null } {\n const phoneNumbersReservation: { [propertyName: string]: AvailablePhoneNumber | null } =\n currentReservation;\n for (const phoneNumber of phoneNumbers) {\n if (phoneNumber) {\n phoneNumbersReservation[phoneNumber] = null;\n }\n }\n return phoneNumbersReservation;\n }\n}\n"]}
|
|
1
|
+
{"version":3,"file":"phoneNumbersClient.js","sourceRoot":"","sources":["../../src/phoneNumbersClient.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAClC,4CAA4C;;AAE5C,uDAAuD;AACvD,OAAO,EACL,6BAA6B,EAC7B,eAAe,EACf,oBAAoB,GACrB,MAAM,6BAA6B,CAAC;AAErC,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAIrD,OAAO,EAAE,kBAAkB,IAAI,2BAA2B,EAAE,MAAM,0B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YAC9C,CAAC;QACH,CAAC;QACD,OAAO,uBAAuB,CAAC;IACjC,CAAC;CACF","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n/// <reference lib=\"esnext.asynciterable\" />\n\n/* eslint-disable @azure/azure-sdk/ts-naming-options */\nimport {\n createCommunicationAuthPolicy,\n isKeyCredential,\n parseClientArguments,\n} from \"@azure/communication-common\";\nimport type { KeyCredential, TokenCredential } from \"@azure/core-auth\";\nimport { isTokenCredential } from \"@azure/core-auth\";\nimport type { InternalPipelineOptions } from \"@azure/core-rest-pipeline\";\nimport type { PollOperationState, PollerLike } from \"@azure/core-lro\";\nimport type { PagedAsyncIterableIterator } from \"@azure/core-paging\";\nimport { PhoneNumbersClient as PhoneNumbersGeneratedClient } from \"./generated/src/index.js\";\nimport type {\n AvailablePhoneNumber,\n OperatorInformationResult,\n PhoneNumberAreaCode,\n PhoneNumberCapabilitiesRequest,\n PhoneNumberCountry,\n PhoneNumberLocality,\n PhoneNumberOffering,\n PhoneNumbersBrowseResult,\n PhoneNumberSearchResult,\n PhoneNumbersReservation,\n PurchasedPhoneNumber,\n} from \"./generated/src/models/index.js\";\nimport type {\n BrowseAvailableNumbersRequest,\n DeleteReservationOptions,\n GetPurchasedPhoneNumberOptions,\n GetReservationOptions,\n ListAvailableCountriesOptions,\n ListGeographicAreaCodesOptions,\n ListMobileAreaCodesOptions,\n ListLocalitiesOptions,\n ListOfferingsOptions,\n ListPurchasedPhoneNumbersOptions,\n ListReservationOptions,\n ListTollFreeAreaCodesOptions,\n PurchasePhoneNumbersResult,\n ReleasePhoneNumberResult,\n SearchAvailablePhoneNumbersRequest,\n SearchOperatorInformationOptions,\n CreateOrUpdateReservationOptions,\n BrowseAvailableNumbersOptions,\n CreateOrUpdateReservationRequest,\n} from \"./models.js\";\nimport type {\n BeginPurchasePhoneNumbersOptions,\n BeginReleasePhoneNumberOptions,\n BeginReservationPurchaseOptions,\n BeginSearchAvailablePhoneNumbersOptions,\n BeginUpdatePhoneNumberCapabilitiesOptions,\n} from \"./lroModels.js\";\nimport { createPhoneNumbersPagingPolicy } from \"./utils/customPipelinePolicies.js\";\nimport type { CommonClientOptions } from \"@azure/core-client\";\nimport { logger } from \"./utils/index.js\";\nimport { tracingClient } from \"./generated/src/tracing.js\";\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 * Deletes a reservation by its ID..\n *\n * Example usage:\n * ```ts snippet:PhoneNumbersClientDeleteReservation\n * import { DefaultAzureCredential } from \"@azure/identity\";\n * import { PhoneNumbersClient } from \"@azure/communication-phone-numbers\";\n *\n * const credential = new DefaultAzureCredential();\n * const client = new PhoneNumbersClient(\"<endpoint-from-resource>\", credential);\n *\n * const reservationId = \"<reservation-id>\";\n * await client.deleteReservation(reservationId);\n *\n * console.log(`Reservation with ID ${reservationId} has been deleted.`);\n * ```\n * Delete a reservation.\n * @param reservationId - The id of the reservation.\n * @param options - Additional request options.\n */\n public deleteReservation(\n reservationId: string,\n options: DeleteReservationOptions = {},\n ): Promise<void> {\n return tracingClient.withSpan(\n \"PhoneNumbersClient-deleteReservation\",\n options,\n (updatedOptions) => {\n return this.client.phoneNumbers.deleteReservation(reservationId, {\n ...updatedOptions,\n });\n },\n );\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 * Retrieves the reservation with the given ID, including all of the phone numbers associated with it.\n *\n * Example usage:\n * ```ts snippet:PhoneNumbersClientGetReservation\n * import { DefaultAzureCredential } from \"@azure/identity\";\n * import { PhoneNumbersClient } from \"@azure/communication-phone-numbers\";\n *\n * const credential = new DefaultAzureCredential();\n * const client = new PhoneNumbersClient(\"<endpoint-from-resource>\", credential);\n *\n * const reservationId = \"<reservation-id>\";\n * const reservationResponse = await client.getReservation(reservationId);\n *\n * console.log(`Phone numbers in reservation: ${reservationResponse.phoneNumbers}`);\n * ```\n * Get a reservation.\n * @param reservationId - The id of the reservation.\n * @param options - Additional request options.\n */\n public getReservation(\n reservationId: string,\n options: GetReservationOptions = {},\n ): Promise<PhoneNumbersReservation> {\n return tracingClient.withSpan(\n \"PhoneNumbersClient-getReservation\",\n options,\n (updatedOptions) => {\n return this.client.phoneNumbers.getReservation(reservationId, {\n ...updatedOptions,\n });\n },\n );\n }\n\n /**\n * Iterates the purchased phone numbers.\n *\n * Example usage:\n * ```ts snippet:PhoneNumbersClientListPurchasedPhoneNumbers\n * import { DefaultAzureCredential } from \"@azure/identity\";\n * import { PhoneNumbersClient } from \"@azure/communication-phone-numbers\";\n *\n * const credential = new DefaultAzureCredential();\n * const client = new PhoneNumbersClient(\"<endpoint-from-resource>\", credential);\n *\n * const phoneNumbers = client.listPurchasedPhoneNumbers();\n *\n * for await (const phoneNumber of phoneNumbers) {\n * console.log(`The id is the same as the phone number: ${phoneNumber.id}`);\n * console.log(`Phone number type is ${phoneNumber.phoneNumberType}`);\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 * Browses for available phone numbers to purchase.\n *\n * Example usage:\n * ```ts snippet:PhoneNumbersClientBrowseAvailablePhoneNumbers\n * import { DefaultAzureCredential } from \"@azure/identity\";\n * import {\n * PhoneNumbersClient,\n * BrowseAvailableNumbersRequest,\n * } from \"@azure/communication-phone-numbers\";\n *\n * const credential = new DefaultAzureCredential();\n * const client = new PhoneNumbersClient(\"<endpoint-from-resource>\", credential);\n *\n * const browseAvailableNumberRequest: BrowseAvailableNumbersRequest = {\n * countryCode: \"US\",\n * phoneNumberType: \"tollFree\",\n * };\n * const browseAvailableNumbers = await client.browseAvailablePhoneNumbers(\n * browseAvailableNumberRequest,\n * {\n * capabilities: {\n * calling: \"outbound\",\n * },\n * assignmentType: \"application\",\n * },\n * );\n * for (const phoneNumber of browseAvailableNumbers.phoneNumbers) {\n * console.log(\"Found phone number: \", phoneNumber.phoneNumber);\n * }\n * ```\n * Browse available phone numbers\n * @param request - The request parameters for browsing available phone numbers.\n * @param options - Additional request options.\n */\n public browseAvailablePhoneNumbers(\n request: BrowseAvailableNumbersRequest,\n options?: BrowseAvailableNumbersOptions,\n ): Promise<PhoneNumbersBrowseResult> {\n const { span, updatedOptions } = tracingClient.startSpan(\n \"PhoneNumbersClient-browseAvailableNumbers\",\n options,\n );\n\n try {\n const { countryCode, phoneNumberType, ...rest } = request;\n return this.client.phoneNumbers.browseAvailableNumbers(countryCode, phoneNumberType, {\n ...updatedOptions,\n ...rest,\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 snippet:PhoneNumbersClientReleasePhoneNumber\n * import { DefaultAzureCredential } from \"@azure/identity\";\n * import { PhoneNumbersClient } from \"@azure/communication-phone-numbers\";\n *\n * const credential = new DefaultAzureCredential();\n * const client = new PhoneNumbersClient(\"<endpoint-from-resource>\", credential);\n *\n * const phoneNumberToRelease = \"<phone-number-to-release>\";\n *\n * const releasePoller = await client.beginReleasePhoneNumber(phoneNumberToRelease);\n *\n * // Release is underway.\n * await releasePoller.pollUntilDone();\n * console.log(\"Successfully release phone number.\");\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 snippet:PhoneNumbersClientSearchAvailablePhoneNumbers\n * import { DefaultAzureCredential } from \"@azure/identity\";\n * import {\n * PhoneNumbersClient,\n * SearchAvailablePhoneNumbersRequest,\n * } from \"@azure/communication-phone-numbers\";\n *\n * const credential = new DefaultAzureCredential();\n * const client = new PhoneNumbersClient(\"<endpoint-from-resource>\", credential);\n *\n * const searchRequest: SearchAvailablePhoneNumbersRequest = {\n * countryCode: \"US\",\n * phoneNumberType: \"tollFree\",\n * assignmentType: \"application\",\n * capabilities: {\n * sms: \"outbound\",\n * calling: \"none\",\n * },\n * quantity: 1,\n * };\n *\n * const searchPoller = await client.beginSearchAvailablePhoneNumbers(searchRequest);\n *\n * // The search is underway. Wait to receive searchId.\n * const searchResults = await searchPoller.pollUntilDone();\n * console.log(`Found phone number: ${searchResults.phoneNumbers[0]}`);\n * console.log(`searchId: ${searchResults.searchId}`);\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 snippet:PhoneNumbersClientPurchasePhoneNumbers\n * import { DefaultAzureCredential } from \"@azure/identity\";\n * import {\n * PhoneNumbersClient,\n * SearchAvailablePhoneNumbersRequest,\n * } from \"@azure/communication-phone-numbers\";\n *\n * const credential = new DefaultAzureCredential();\n * const client = new PhoneNumbersClient(\"<endpoint-from-resource>\", credential);\n *\n * const searchRequest: SearchAvailablePhoneNumbersRequest = {\n * countryCode: \"US\",\n * phoneNumberType: \"tollFree\",\n * assignmentType: \"application\",\n * capabilities: {\n * sms: \"outbound\",\n * calling: \"none\",\n * },\n * quantity: 1,\n * };\n *\n * const searchPoller = await client.beginSearchAvailablePhoneNumbers(searchRequest);\n *\n * // The search is underway. Wait to receive searchId.\n * const { searchId, phoneNumbers } = await searchPoller.pollUntilDone();\n *\n * const purchasePoller = await client.beginPurchasePhoneNumbers(searchId);\n *\n * // Purchase is underway.\n * await purchasePoller.pollUntilDone();\n * console.log(`Successfully purchased ${phoneNumbers[0]}`);\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({\n ...updatedOptions,\n searchId,\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 snippet:PhoneNumbersClientBeginReservationPurchase\n * import { DefaultAzureCredential } from \"@azure/identity\";\n * import { PhoneNumbersClient } from \"@azure/communication-phone-numbers\";\n *\n * const credential = new DefaultAzureCredential();\n * const client = new PhoneNumbersClient(\"<endpoint-from-resource>\", credential);\n *\n * const reservationId = \"<reservation-id>\";\n *\n * const purchasePoller = await client.beginReservationPurchase(reservationId);\n *\n * // Purchase is underway.\n * const purchaseResult = await purchasePoller.pollUntilDone();\n * console.log(`Successfully purchased phone numbers in reservation: ${reservationId}`);\n * ```\n * Begins the purchase of the phone numbers in the reservation with the given ID.\n * @param reservationId - The id of the reservation.\n * @param options - Additional request options.\n */\n public beginReservationPurchase(\n reservationId: string,\n options: BeginReservationPurchaseOptions = {},\n ): Promise<\n PollerLike<PollOperationState<PurchasePhoneNumbersResult>, PurchasePhoneNumbersResult>\n > {\n return tracingClient.withSpan(\n \"PhoneNumbersClient-beginReservationPurchase\",\n options,\n (updatedOptions) => {\n return this.client.phoneNumbers.beginPurchaseReservation(reservationId, {\n ...updatedOptions,\n });\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 snippet:PhoneNumbersClientUpdatePhoneNumberCapabilities\n * import { DefaultAzureCredential } from \"@azure/identity\";\n * import {\n * PhoneNumbersClient,\n * PhoneNumberCapabilitiesRequest,\n * } from \"@azure/communication-phone-numbers\";\n *\n * const credential = new DefaultAzureCredential();\n * const client = new PhoneNumbersClient(\"<endpoint-from-resource>\", credential);\n *\n * const phoneNumberToUpdate = \"<phone-number-to-update>\";\n *\n * // This will update phone number to send and receive sms, but only send calls.\n * const updateRequest: PhoneNumberCapabilitiesRequest = {\n * sms: \"inbound+outbound\",\n * calling: \"outbound\",\n * };\n *\n * const updatePoller = await client.beginUpdatePhoneNumberCapabilities(\n * phoneNumberToUpdate,\n * updateRequest,\n * );\n *\n * // Update is underway.\n * const { capabilities } = await updatePoller.pollUntilDone();\n * console.log(`These are the update capabilities: ${capabilities}`);\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 * Adds and removes phone numbers from the reservation with the given ID. The response will be the\n * updated state of the reservation. Phone numbers can be reserved by including them in the payload. If\n * a number is already in the reservation, it will be ignored. To remove a phone number, set it\n * explicitly to null in the request payload. This operation is idempotent. If a reservation with the\n * same ID already exists, it will be updated, otherwise a new one is created. Only reservations with\n * 'active' status can be updated. Updating a reservation will extend the expiration time of the\n * reservation to 15 minutes after the last change, up to a maximum of 2 hours from creation time.\n * Partial success is possible, in which case the response will have a 207 status code.\n *\n * Example usage:\n * ```ts snippet:PhoneNumbersClientBrowseAndReserveAvailablePhoneNumbers\n * import { DefaultAzureCredential } from \"@azure/identity\";\n * import {\n * PhoneNumbersClient,\n * BrowseAvailableNumbersRequest,\n * AvailablePhoneNumber,\n * } from \"@azure/communication-phone-numbers\";\n *\n * const credential = new DefaultAzureCredential();\n * const client = new PhoneNumbersClient(\"<endpoint-from-resource>\", credential);\n *\n * const browseAvailableNumberRequest: BrowseAvailableNumbersRequest = {\n * countryCode: \"US\",\n * phoneNumberType: \"tollFree\",\n * };\n *\n * const browseAvailableNumbers = await client.browseAvailablePhoneNumbers(\n * browseAvailableNumberRequest,\n * {\n * capabilities: {\n * calling: \"outbound\",\n * },\n * assignmentType: \"application\",\n * },\n * );\n * const phoneNumbers = browseAvailableNumbers.phoneNumbers;\n * const phoneNumbersList = [phoneNumbers[0], phoneNumbers[1]];\n * const reservationResponse = await client.createOrUpdateReservation(\n * {\n * reservationId: \"reservationId\",\n * },\n * {\n * add: phoneNumbersList,\n * },\n * );\n * const numbersWithError: AvailablePhoneNumber[] = [];\n * for (const number of Object.values(reservationResponse.phoneNumbers || {})) {\n * if (number != null && number.status === \"error\") {\n * numbersWithError.push(number);\n * }\n * }\n * if (numbersWithError.length > 0) {\n * console.log(\"Errors occurred during reservation\");\n * } else {\n * console.log(\"Reservation operation completed without errors.\");\n * }\n * ```\n *\n * Create or update a reservation.\n * @param request - The request parameters for creating or updating a reservation.\n * @param options - The options parameters.\n */\n public async createOrUpdateReservation(\n request: CreateOrUpdateReservationRequest,\n options?: CreateOrUpdateReservationOptions,\n ): Promise<PhoneNumbersReservation> {\n const phoneNumbersReservation: { [propertyName: string]: AvailablePhoneNumber | null } = {};\n\n if (options?.add) {\n this.addPhoneNumbersToReservation(phoneNumbersReservation, options.add);\n }\n\n if (options?.remove) {\n this.removePhoneNumbersFromReservation(phoneNumbersReservation, options.remove);\n }\n\n const reservationOptionalParams = {\n ...options,\n phoneNumbers: phoneNumbersReservation,\n };\n const { span, updatedOptions } = tracingClient.startSpan(\n \"PhoneNumbersClient-createOrUpdateReservation\",\n reservationOptionalParams,\n );\n\n try {\n return this.client.phoneNumbers.createOrUpdateReservation(\n request.reservationId,\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 countries.\n *\n * Example usage:\n * ```ts snippet:PhoneNumbersClientListAvailableCountries\n * import { DefaultAzureCredential } from \"@azure/identity\";\n * import { PhoneNumbersClient } from \"@azure/communication-phone-numbers\";\n *\n * const credential = new DefaultAzureCredential();\n * const client = new PhoneNumbersClient(\"<endpoint-from-resource>\", credential);\n *\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 snippet:PhoneNumbersClientListTollFreeAreaCodes\n * import { DefaultAzureCredential } from \"@azure/identity\";\n * import { PhoneNumbersClient } from \"@azure/communication-phone-numbers\";\n *\n * const credential = new DefaultAzureCredential();\n * const client = new PhoneNumbersClient(\"<endpoint-from-resource>\", credential);\n *\n * for await (const areaCodeItem of client.listAvailableTollFreeAreaCodes(\"US\")) {\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 snippet:PhoneNumbersClientListGeographicAreaCodes\n * import { DefaultAzureCredential } from \"@azure/identity\";\n * import { PhoneNumbersClient } from \"@azure/communication-phone-numbers\";\n *\n * const credential = new DefaultAzureCredential();\n * const client = new PhoneNumbersClient(\"<endpoint-from-resource>\", credential);\n *\n * for await (const areaCodeItem of client.listAvailableGeographicAreaCodes(\"US\")) {\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 Mobile area codes.\n *\n * Example usage:\n * ```ts snippet:PhoneNumbersClientListMobileAreaCodes\n * import { DefaultAzureCredential } from \"@azure/identity\";\n * import { PhoneNumbersClient } from \"@azure/communication-phone-numbers\";\n *\n * const credential = new DefaultAzureCredential();\n * const client = new PhoneNumbersClient(\"<endpoint-from-resource>\", credential);\n *\n * for await (const areaCodeItem of client.listAvailableMobileAreaCodes(\"IE\")) {\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 listAvailableMobileAreaCodes(\n countryCode: string,\n options: ListMobileAreaCodesOptions = {},\n ): PagedAsyncIterableIterator<PhoneNumberAreaCode> {\n const { span, updatedOptions } = tracingClient.startSpan(\n \"PhoneNumbersClient-listAvailableMobileAreaCodes\",\n options,\n );\n\n try {\n return this.client.phoneNumbers.listAreaCodes(countryCode, \"mobile\", {\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 snippet:PhoneNumbersClientListAvailableLocalities\n * import { DefaultAzureCredential } from \"@azure/identity\";\n * import { PhoneNumbersClient } from \"@azure/communication-phone-numbers\";\n *\n * const credential = new DefaultAzureCredential();\n * const client = new PhoneNumbersClient(\"<endpoint-from-resource>\", credential);\n *\n * for await (const locality of client.listAvailableLocalities(\"US\")) {\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 snippet:PhoneNumbersClientListAvailableOfferings\n * import { DefaultAzureCredential } from \"@azure/identity\";\n * import { PhoneNumbersClient } from \"@azure/communication-phone-numbers\";\n *\n * const credential = new DefaultAzureCredential();\n * const client = new PhoneNumbersClient(\"<endpoint-from-resource>\", credential);\n *\n * for await (const offering of client.listAvailableOfferings(\"US\")) {\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 * Iterates all phone number reservations.\n *\n * Example usage:\n * ```ts snippet:PhoneNumbersClientListReservations\n * import { DefaultAzureCredential } from \"@azure/identity\";\n * import { PhoneNumbersClient } from \"@azure/communication-phone-numbers\";\n *\n * const credential = new DefaultAzureCredential();\n * const client = new PhoneNumbersClient(\"<endpoint-from-resource>\", credential);\n *\n * for await (const reservation of client.listReservations()) {\n * console.log(`Reservation id: ${reservation.id}`);\n * }\n * ```\n * List all phone number reservations. Note that the reservations will not be populated with the phone numbers associated with them.\n * @param options - The optional parameters.\n */\n public listReservations(\n options: ListReservationOptions = {},\n ): PagedAsyncIterableIterator<PhoneNumbersReservation> {\n const { span, updatedOptions } = tracingClient.startSpan(\n \"PhoneNumbersClient-listReservations\",\n options,\n );\n\n try {\n return this.client.phoneNumbers.listReservations({\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 = { includeAdditionalOperatorDetails: false },\n ): Promise<OperatorInformationResult> {\n const { span, updatedOptions } = tracingClient.startSpan(\n \"PhoneNumbersClient-searchOperatorInformation\",\n options,\n );\n\n try {\n return this.client.phoneNumbers.operatorInformationSearch(phoneNumbers, {\n ...updatedOptions,\n options: { includeAdditionalOperatorDetails: options.includeAdditionalOperatorDetails },\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 private addPhoneNumbersToReservation(\n currentReservation: { [propertyName: string]: AvailablePhoneNumber | null },\n phoneNumbers: AvailablePhoneNumber[],\n ): { [propertyName: string]: AvailablePhoneNumber | null } {\n const phoneNumbersReservation: { [propertyName: string]: AvailablePhoneNumber | null } =\n currentReservation;\n for (const phoneNumber of phoneNumbers) {\n if (phoneNumber.id) {\n phoneNumbersReservation[phoneNumber.id] = phoneNumber;\n }\n }\n return phoneNumbersReservation;\n }\n\n private removePhoneNumbersFromReservation(\n currentReservation: { [propertyName: string]: AvailablePhoneNumber | null },\n phoneNumbers: string[],\n ): { [propertyName: string]: AvailablePhoneNumber | null } {\n const phoneNumbersReservation: { [propertyName: string]: AvailablePhoneNumber | null } =\n currentReservation;\n for (const phoneNumber of phoneNumbers) {\n if (phoneNumber) {\n phoneNumbersReservation[phoneNumber] = null;\n }\n }\n return phoneNumbersReservation;\n }\n}\n"]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { KeyCredential, TokenCredential } from "@azure/core-auth";
|
|
2
|
-
import type { ListSipRoutesOptions, ListSipTrunksOptions, SipTrunk, SipTrunkRoute } from "./models.js";
|
|
2
|
+
import type { GetSipDomainsOptions, ListSipDomainsOptions, ListSipRoutesOptions, ListSipTrunksOptions, SipTrunk, SipTrunkRoute, SipDomain } from "./models.js";
|
|
3
3
|
import type { CommonClientOptions, OperationOptions } from "@azure/core-client";
|
|
4
4
|
import type { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
5
5
|
export * from "./models.js";
|
|
@@ -43,12 +43,23 @@ export declare class SipRoutingClient {
|
|
|
43
43
|
* @param options - The options parameters.
|
|
44
44
|
*/
|
|
45
45
|
listTrunks(options?: ListSipTrunksOptions): PagedAsyncIterableIterator<SipTrunk>;
|
|
46
|
+
/**
|
|
47
|
+
* Lists the SIP domains.
|
|
48
|
+
* @param options - The options parameters.
|
|
49
|
+
*/
|
|
50
|
+
listDomains(options?: ListSipDomainsOptions): PagedAsyncIterableIterator<SipDomain>;
|
|
46
51
|
/**
|
|
47
52
|
* Gets the SIP trunk.
|
|
48
53
|
* @param fqdn - The trunk's FQDN.
|
|
49
54
|
* @param options - The options parameters.
|
|
50
55
|
*/
|
|
51
56
|
getTrunk(fqdn: string, options?: OperationOptions): Promise<SipTrunk>;
|
|
57
|
+
/**
|
|
58
|
+
* Gets the SIP domain.
|
|
59
|
+
* @param fqdn - The domain's FQDN.
|
|
60
|
+
* @param options - The options parameters.
|
|
61
|
+
*/
|
|
62
|
+
getDomain(fqdn: string, options?: GetSipDomainsOptions): Promise<SipDomain>;
|
|
52
63
|
/**
|
|
53
64
|
* Lists the SIP trunk routes.
|
|
54
65
|
* @param options - The options parameters.
|
|
@@ -66,6 +77,18 @@ export declare class SipRoutingClient {
|
|
|
66
77
|
* @param options - The options parameters.
|
|
67
78
|
*/
|
|
68
79
|
setTrunk(trunk: SipTrunk, options?: OperationOptions): Promise<SipTrunk>;
|
|
80
|
+
/**
|
|
81
|
+
* Sets the SIP domains.
|
|
82
|
+
* @param domains - The SIP domains to be set.
|
|
83
|
+
* @param options - The options parameters.
|
|
84
|
+
*/
|
|
85
|
+
setDomains(domains: SipDomain[], options?: OperationOptions): Promise<SipDomain[]>;
|
|
86
|
+
/**
|
|
87
|
+
* Sets the SIP domain.
|
|
88
|
+
* @param domain - The SIP domain to be set.
|
|
89
|
+
* @param options - The options parameters.
|
|
90
|
+
*/
|
|
91
|
+
setDomain(domain: SipDomain, options?: OperationOptions): Promise<SipDomain>;
|
|
69
92
|
/**
|
|
70
93
|
* Sets the SIP trunk routes.
|
|
71
94
|
* @param routes - The SIP trunk routes to be set.
|
|
@@ -78,11 +101,28 @@ export declare class SipRoutingClient {
|
|
|
78
101
|
* @param options - The options parameters.
|
|
79
102
|
*/
|
|
80
103
|
deleteTrunk(fqdn: string, options?: OperationOptions): Promise<void>;
|
|
104
|
+
/**
|
|
105
|
+
* Deletes the SIP domain.
|
|
106
|
+
* @param fqdn - The domain's FQDN.
|
|
107
|
+
* @param options - The options parameters.
|
|
108
|
+
*/
|
|
109
|
+
deleteDomain(fqdn: string, options?: OperationOptions): Promise<void>;
|
|
110
|
+
/**
|
|
111
|
+
* Test routes with number.
|
|
112
|
+
* @param targetPhoneNumber - target phone number to test routes.
|
|
113
|
+
* @param routes - sip trunk routes.
|
|
114
|
+
* @param options - The options parameters for routes.
|
|
115
|
+
*/
|
|
116
|
+
getRoutesForNumber(targetPhoneNumber: string, routes: SipTrunkRoute[], options?: OperationOptions): Promise<SipTrunkRoute[]>;
|
|
117
|
+
private getRoutesForNumberInternal;
|
|
81
118
|
private getRoutesInternal;
|
|
82
119
|
private getTrunksInternal;
|
|
120
|
+
private getDomainsInternal;
|
|
83
121
|
private listRoutesPagingAll;
|
|
84
122
|
private listTrunksPagingAll;
|
|
85
123
|
private listTrunksPagingPage;
|
|
124
|
+
private listDomainsPagingAll;
|
|
125
|
+
private listDomainsPagingPage;
|
|
86
126
|
private listRoutesPagingPage;
|
|
87
127
|
}
|
|
88
128
|
//# sourceMappingURL=sipRoutingClient.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sipRoutingClient.d.ts","sourceRoot":"","sources":["../../src/sipRoutingClient.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AASvE,OAAO,KAAK,EACV,oBAAoB,EACpB,oBAAoB,EACpB,QAAQ,EACR,aAAa,
|
|
1
|
+
{"version":3,"file":"sipRoutingClient.d.ts","sourceRoot":"","sources":["../../src/sipRoutingClient.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AASvE,OAAO,KAAK,EACV,oBAAoB,EACpB,qBAAqB,EACrB,oBAAoB,EACpB,oBAAoB,EACpB,QAAQ,EACR,aAAa,EACb,SAAS,EACV,MAAM,aAAa,CAAC;AAOrB,OAAO,KAAK,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAEhF,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAErE,cAAc,aAAa,CAAC;AAE5B;;GAEG;AACH,MAAM,WAAW,uBAAwB,SAAQ,mBAAmB;CAAG;AAUvE;;GAEG;AACH,qBAAa,gBAAgB;IAC3B;;OAEG;IACH,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA4B;IAEnD;;;;;OAKG;gBACgB,gBAAgB,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,uBAAuB;IAE9E;;;;;;OAMG;gBAED,QAAQ,EAAE,MAAM,EAChB,UAAU,EAAE,aAAa,EACzB,OAAO,CAAC,EAAE,uBAAuB;IAGnC;;;;;OAKG;gBAED,QAAQ,EAAE,MAAM,EAChB,UAAU,EAAE,eAAe,EAC3B,OAAO,CAAC,EAAE,u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