@azure/communication-phone-numbers 1.5.0-beta.1 → 1.5.0

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.
Files changed (106) hide show
  1. package/dist/browser/generated/src/lroImpl.js +7 -3
  2. package/dist/browser/generated/src/lroImpl.js.map +1 -1
  3. package/dist/browser/generated/src/operations/phoneNumbers.js +219 -296
  4. package/dist/browser/generated/src/operations/phoneNumbers.js.map +1 -1
  5. package/dist/browser/generated/src/pagingHelper.js +2 -4
  6. package/dist/browser/generated/src/pagingHelper.js.map +1 -1
  7. package/dist/browser/generated/src/phoneNumbersClient.js +11 -4
  8. package/dist/browser/generated/src/phoneNumbersClient.js.map +1 -1
  9. package/dist/browser/generated/src/siprouting/operations/sipRouting.js +1 -0
  10. package/dist/browser/generated/src/siprouting/operations/sipRouting.js.map +1 -1
  11. package/dist/browser/generated/src/siprouting/sipRoutingClient.js +1 -0
  12. package/dist/browser/generated/src/siprouting/sipRoutingClient.js.map +1 -1
  13. package/dist/browser/generated/src/siprouting/sipRoutingClientContext.js +10 -3
  14. package/dist/browser/generated/src/siprouting/sipRoutingClientContext.js.map +1 -1
  15. package/dist/browser/generated/src/tracing.js +1 -1
  16. package/dist/browser/generated/src/tracing.js.map +1 -1
  17. package/dist/browser/phoneNumbersClient.d.ts +1 -1
  18. package/dist/browser/phoneNumbersClient.js +86 -28
  19. package/dist/browser/phoneNumbersClient.js.map +1 -1
  20. package/dist/browser/sipRoutingClient.js +48 -61
  21. package/dist/browser/sipRoutingClient.js.map +1 -1
  22. package/dist/browser/utils/constants.d.ts.map +1 -1
  23. package/dist/browser/utils/constants.js +1 -1
  24. package/dist/browser/utils/constants.js.map +1 -1
  25. package/dist/browser/utils/customPipelinePolicies.js +1 -2
  26. package/dist/browser/utils/customPipelinePolicies.js.map +1 -1
  27. package/dist/commonjs/generated/src/lroImpl.js +7 -3
  28. package/dist/commonjs/generated/src/lroImpl.js.map +1 -1
  29. package/dist/commonjs/generated/src/operations/phoneNumbers.js +219 -295
  30. package/dist/commonjs/generated/src/operations/phoneNumbers.js.map +1 -1
  31. package/dist/commonjs/generated/src/pagingHelper.js +2 -4
  32. package/dist/commonjs/generated/src/pagingHelper.js.map +1 -1
  33. package/dist/commonjs/generated/src/phoneNumbersClient.js +11 -4
  34. package/dist/commonjs/generated/src/phoneNumbersClient.js.map +1 -1
  35. package/dist/commonjs/generated/src/siprouting/operations/sipRouting.js +1 -0
  36. package/dist/commonjs/generated/src/siprouting/operations/sipRouting.js.map +1 -1
  37. package/dist/commonjs/generated/src/siprouting/sipRoutingClient.js +1 -0
  38. package/dist/commonjs/generated/src/siprouting/sipRoutingClient.js.map +1 -1
  39. package/dist/commonjs/generated/src/siprouting/sipRoutingClientContext.js +10 -3
  40. package/dist/commonjs/generated/src/siprouting/sipRoutingClientContext.js.map +1 -1
  41. package/dist/commonjs/generated/src/tracing.js +1 -1
  42. package/dist/commonjs/generated/src/tracing.js.map +1 -1
  43. package/dist/commonjs/phoneNumbersClient.d.ts +1 -1
  44. package/dist/commonjs/phoneNumbersClient.js +86 -28
  45. package/dist/commonjs/phoneNumbersClient.js.map +1 -1
  46. package/dist/commonjs/sipRoutingClient.js +48 -60
  47. package/dist/commonjs/sipRoutingClient.js.map +1 -1
  48. package/dist/commonjs/tsdoc-metadata.json +11 -11
  49. package/dist/commonjs/utils/constants.d.ts.map +1 -1
  50. package/dist/commonjs/utils/constants.js +1 -1
  51. package/dist/commonjs/utils/constants.js.map +1 -1
  52. package/dist/commonjs/utils/customPipelinePolicies.js +1 -2
  53. package/dist/commonjs/utils/customPipelinePolicies.js.map +1 -1
  54. package/dist/esm/generated/src/lroImpl.js +7 -3
  55. package/dist/esm/generated/src/lroImpl.js.map +1 -1
  56. package/dist/esm/generated/src/operations/phoneNumbers.js +219 -296
  57. package/dist/esm/generated/src/operations/phoneNumbers.js.map +1 -1
  58. package/dist/esm/generated/src/pagingHelper.js +2 -4
  59. package/dist/esm/generated/src/pagingHelper.js.map +1 -1
  60. package/dist/esm/generated/src/phoneNumbersClient.js +11 -4
  61. package/dist/esm/generated/src/phoneNumbersClient.js.map +1 -1
  62. package/dist/esm/generated/src/siprouting/operations/sipRouting.js +1 -0
  63. package/dist/esm/generated/src/siprouting/operations/sipRouting.js.map +1 -1
  64. package/dist/esm/generated/src/siprouting/sipRoutingClient.js +1 -0
  65. package/dist/esm/generated/src/siprouting/sipRoutingClient.js.map +1 -1
  66. package/dist/esm/generated/src/siprouting/sipRoutingClientContext.js +10 -3
  67. package/dist/esm/generated/src/siprouting/sipRoutingClientContext.js.map +1 -1
  68. package/dist/esm/generated/src/tracing.js +1 -1
  69. package/dist/esm/generated/src/tracing.js.map +1 -1
  70. package/dist/esm/phoneNumbersClient.d.ts +1 -1
  71. package/dist/esm/phoneNumbersClient.js +86 -28
  72. package/dist/esm/phoneNumbersClient.js.map +1 -1
  73. package/dist/esm/sipRoutingClient.js +48 -61
  74. package/dist/esm/sipRoutingClient.js.map +1 -1
  75. package/dist/esm/utils/constants.d.ts.map +1 -1
  76. package/dist/esm/utils/constants.js +1 -1
  77. package/dist/esm/utils/constants.js.map +1 -1
  78. package/dist/esm/utils/customPipelinePolicies.js +1 -2
  79. package/dist/esm/utils/customPipelinePolicies.js.map +1 -1
  80. package/dist/react-native/generated/src/lroImpl.js +7 -3
  81. package/dist/react-native/generated/src/lroImpl.js.map +1 -1
  82. package/dist/react-native/generated/src/operations/phoneNumbers.js +219 -296
  83. package/dist/react-native/generated/src/operations/phoneNumbers.js.map +1 -1
  84. package/dist/react-native/generated/src/pagingHelper.js +2 -4
  85. package/dist/react-native/generated/src/pagingHelper.js.map +1 -1
  86. package/dist/react-native/generated/src/phoneNumbersClient.js +11 -4
  87. package/dist/react-native/generated/src/phoneNumbersClient.js.map +1 -1
  88. package/dist/react-native/generated/src/siprouting/operations/sipRouting.js +1 -0
  89. package/dist/react-native/generated/src/siprouting/operations/sipRouting.js.map +1 -1
  90. package/dist/react-native/generated/src/siprouting/sipRoutingClient.js +1 -0
  91. package/dist/react-native/generated/src/siprouting/sipRoutingClient.js.map +1 -1
  92. package/dist/react-native/generated/src/siprouting/sipRoutingClientContext.js +10 -3
  93. package/dist/react-native/generated/src/siprouting/sipRoutingClientContext.js.map +1 -1
  94. package/dist/react-native/generated/src/tracing.js +1 -1
  95. package/dist/react-native/generated/src/tracing.js.map +1 -1
  96. package/dist/react-native/phoneNumbersClient.d.ts +1 -1
  97. package/dist/react-native/phoneNumbersClient.js +86 -28
  98. package/dist/react-native/phoneNumbersClient.js.map +1 -1
  99. package/dist/react-native/sipRoutingClient.js +48 -61
  100. package/dist/react-native/sipRoutingClient.js.map +1 -1
  101. package/dist/react-native/utils/constants.d.ts.map +1 -1
  102. package/dist/react-native/utils/constants.js +1 -1
  103. package/dist/react-native/utils/constants.js.map +1 -1
  104. package/dist/react-native/utils/customPipelinePolicies.js +1 -2
  105. package/dist/react-native/utils/customPipelinePolicies.js.map +1 -1
  106. package/package.json +35 -36
@@ -10,6 +10,7 @@ import * as Mappers from "../models/mappers.js";
10
10
  import * as Parameters from "../models/parameters.js";
11
11
  /** Class containing SipRouting operations. */
12
12
  export class SipRoutingImpl {
13
+ client;
13
14
  /**
14
15
  * Initialize a new instance of the class SipRouting class.
15
16
  * @param client Reference to the service client
@@ -1 +1 @@
1
- {"version":3,"file":"sipRouting.js","sourceRoot":"","sources":["../../../../../../src/generated/src/siprouting/operations/sipRouting.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAStD,8CAA8C;AAC9C,MAAM,OAAO,cAAc;IAGzB;;;OAGG;IACH,YAAY,MAA+B;QACzC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;OAGG;IACH,GAAG,CAAC,OAAqC;QACvC,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CAAC,EAAE,OAAO,EAAE,EAAE,gBAAgB,CAAC,CAAC;IACzE,CAAC;IAED;;;OAGG;IACH,MAAM,CACJ,OAAwC;QAExC,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CAAC,EAAE,OAAO,EAAE,EAAE,mBAAmB,CAAC,CAAC;IAC5E,CAAC;CACF;AACD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,gBAAgB,GAA6B;IACjD,IAAI,EAAE,MAAM;IACZ,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,gBAAgB;SACrC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,0BAA0B;YAC9C,aAAa,EAAE,OAAO,CAAC,6BAA6B;SACrD;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE,CAAC,UAAU,CAAC,QAAQ,CAAC;IACpC,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,mBAAmB,GAA6B;IACpD,IAAI,EAAE,MAAM;IACZ,UAAU,EAAE,OAAO;IACnB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,gBAAgB;SACrC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,0BAA0B;YAC9C,aAAa,EAAE,OAAO,CAAC,gCAAgC;SACxD;KACF;IACD,WAAW,EAAE;QACX,aAAa,EAAE;YACb,MAAM,EAAE,CAAC,SAAS,EAAE,QAAQ,CAAC;YAC7B,MAAM,EAAE,CAAC,SAAS,EAAE,QAAQ,CAAC;SAC9B;QACD,MAAM,EAAE,OAAO,CAAC,sBAAsB;KACvC;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE,CAAC,UAAU,CAAC,QAAQ,CAAC;IACpC,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,WAAW,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { SipRouting } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { SipRoutingClientContext } from \"../sipRoutingClientContext.js\";\nimport {\n SipRoutingGetOptionalParams,\n SipRoutingGetResponse,\n SipRoutingUpdateOptionalParams,\n SipRoutingUpdateResponse\n} from \"../models/index.js\";\n\n/** Class containing SipRouting operations. */\nexport class SipRoutingImpl implements SipRouting {\n private readonly client: SipRoutingClientContext;\n\n /**\n * Initialize a new instance of the class SipRouting class.\n * @param client Reference to the service client\n */\n constructor(client: SipRoutingClientContext) {\n this.client = client;\n }\n\n /**\n * Gets SIP configuration for resource.\n * @param options The options parameters.\n */\n get(options?: SipRoutingGetOptionalParams): Promise<SipRoutingGetResponse> {\n return this.client.sendOperationRequest({ options }, getOperationSpec);\n }\n\n /**\n * Updates SIP configuration for resource.\n * @param options The options parameters.\n */\n update(\n options?: SipRoutingUpdateOptionalParams\n ): Promise<SipRoutingUpdateResponse> {\n return this.client.sendOperationRequest({ options }, updateOperationSpec);\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/sip\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.SipConfiguration\n },\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n headersMapper: Mappers.SipRoutingGetExceptionHeaders\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path: \"/sip\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.SipConfiguration\n },\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n headersMapper: Mappers.SipRoutingUpdateExceptionHeaders\n }\n },\n requestBody: {\n parameterPath: {\n trunks: [\"options\", \"trunks\"],\n routes: [\"options\", \"routes\"]\n },\n mapper: Mappers.SipConfigurationUpdate\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\n"]}
1
+ {"version":3,"file":"sipRouting.js","sourceRoot":"","sources":["../../../../../../src/generated/src/siprouting/operations/sipRouting.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAStD,8CAA8C;AAC9C,MAAM,OAAO,cAAc;IACR,MAAM,CAA0B;IAEjD;;;OAGG;IACH,YAAY,MAA+B;QACzC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;OAGG;IACH,GAAG,CAAC,OAAqC;QACvC,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CAAC,EAAE,OAAO,EAAE,EAAE,gBAAgB,CAAC,CAAC;IACzE,CAAC;IAED;;;OAGG;IACH,MAAM,CACJ,OAAwC;QAExC,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CAAC,EAAE,OAAO,EAAE,EAAE,mBAAmB,CAAC,CAAC;IAC5E,CAAC;CACF;AACD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,gBAAgB,GAA6B;IACjD,IAAI,EAAE,MAAM;IACZ,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,gBAAgB;SACrC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,0BAA0B;YAC9C,aAAa,EAAE,OAAO,CAAC,6BAA6B;SACrD;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE,CAAC,UAAU,CAAC,QAAQ,CAAC;IACpC,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,mBAAmB,GAA6B;IACpD,IAAI,EAAE,MAAM;IACZ,UAAU,EAAE,OAAO;IACnB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,gBAAgB;SACrC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,0BAA0B;YAC9C,aAAa,EAAE,OAAO,CAAC,gCAAgC;SACxD;KACF;IACD,WAAW,EAAE;QACX,aAAa,EAAE;YACb,MAAM,EAAE,CAAC,SAAS,EAAE,QAAQ,CAAC;YAC7B,MAAM,EAAE,CAAC,SAAS,EAAE,QAAQ,CAAC;SAC9B;QACD,MAAM,EAAE,OAAO,CAAC,sBAAsB;KACvC;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE,CAAC,UAAU,CAAC,QAAQ,CAAC;IACpC,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,WAAW,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { SipRouting } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { SipRoutingClientContext } from \"../sipRoutingClientContext.js\";\nimport {\n SipRoutingGetOptionalParams,\n SipRoutingGetResponse,\n SipRoutingUpdateOptionalParams,\n SipRoutingUpdateResponse\n} from \"../models/index.js\";\n\n/** Class containing SipRouting operations. */\nexport class SipRoutingImpl implements SipRouting {\n private readonly client: SipRoutingClientContext;\n\n /**\n * Initialize a new instance of the class SipRouting class.\n * @param client Reference to the service client\n */\n constructor(client: SipRoutingClientContext) {\n this.client = client;\n }\n\n /**\n * Gets SIP configuration for resource.\n * @param options The options parameters.\n */\n get(options?: SipRoutingGetOptionalParams): Promise<SipRoutingGetResponse> {\n return this.client.sendOperationRequest({ options }, getOperationSpec);\n }\n\n /**\n * Updates SIP configuration for resource.\n * @param options The options parameters.\n */\n update(\n options?: SipRoutingUpdateOptionalParams\n ): Promise<SipRoutingUpdateResponse> {\n return this.client.sendOperationRequest({ options }, updateOperationSpec);\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/sip\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.SipConfiguration\n },\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n headersMapper: Mappers.SipRoutingGetExceptionHeaders\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path: \"/sip\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.SipConfiguration\n },\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n headersMapper: Mappers.SipRoutingUpdateExceptionHeaders\n }\n },\n requestBody: {\n parameterPath: {\n trunks: [\"options\", \"trunks\"],\n routes: [\"options\", \"routes\"]\n },\n mapper: Mappers.SipConfigurationUpdate\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\n"]}
@@ -17,5 +17,6 @@ export class SipRoutingClient extends SipRoutingClientContext {
17
17
  super(endpoint, options);
18
18
  this.sipRouting = new SipRoutingImpl(this);
19
19
  }
20
+ sipRouting;
20
21
  }
21
22
  //# sourceMappingURL=sipRoutingClient.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"sipRoutingClient.js","sourceRoot":"","sources":["../../../../../src/generated/src/siprouting/sipRoutingClient.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAEvD,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AAGvE,MAAM,OAAO,gBAAiB,SAAQ,uBAAuB;IAC3D;;;;OAIG;IACH,YAAY,QAAgB,EAAE,OAAwC;QACpE,KAAK,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;QACzB,IAAI,CAAC,UAAU,GAAG,IAAI,cAAc,CAAC,IAAI,CAAC,CAAC;IAC7C,CAAC;CAGF","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { SipRoutingImpl } from \"./operations/index.js\";\nimport { SipRouting } from \"./operationsInterfaces/index.js\";\nimport { SipRoutingClientContext } from \"./sipRoutingClientContext.js\";\nimport { SipRoutingClientOptionalParams } from \"./models/index.js\";\n\nexport class SipRoutingClient extends SipRoutingClientContext {\n /**\n * Initializes a new instance of the SipRoutingClient class.\n * @param endpoint The communication resource, for example https://resourcename.communication.azure.com\n * @param options The parameter options\n */\n constructor(endpoint: string, options?: SipRoutingClientOptionalParams) {\n super(endpoint, options);\n this.sipRouting = new SipRoutingImpl(this);\n }\n\n sipRouting: SipRouting;\n}\n"]}
1
+ {"version":3,"file":"sipRoutingClient.js","sourceRoot":"","sources":["../../../../../src/generated/src/siprouting/sipRoutingClient.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAEvD,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AAGvE,MAAM,OAAO,gBAAiB,SAAQ,uBAAuB;IAC3D;;;;OAIG;IACH,YAAY,QAAgB,EAAE,OAAwC;QACpE,KAAK,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;QACzB,IAAI,CAAC,UAAU,GAAG,IAAI,cAAc,CAAC,IAAI,CAAC,CAAC;IAC7C,CAAC;IAED,UAAU,CAAa;CACxB","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { SipRoutingImpl } from \"./operations/index.js\";\nimport { SipRouting } from \"./operationsInterfaces/index.js\";\nimport { SipRoutingClientContext } from \"./sipRoutingClientContext.js\";\nimport { SipRoutingClientOptionalParams } from \"./models/index.js\";\n\nexport class SipRoutingClient extends SipRoutingClientContext {\n /**\n * Initializes a new instance of the SipRoutingClient class.\n * @param endpoint The communication resource, for example https://resourcename.communication.azure.com\n * @param options The parameter options\n */\n constructor(endpoint: string, options?: SipRoutingClientOptionalParams) {\n super(endpoint, options);\n this.sipRouting = new SipRoutingImpl(this);\n }\n\n sipRouting: SipRouting;\n}\n"]}
@@ -7,6 +7,8 @@
7
7
  */
8
8
  import * as coreClient from "@azure/core-client";
9
9
  export class SipRoutingClientContext extends coreClient.ServiceClient {
10
+ endpoint;
11
+ apiVersion;
10
12
  /**
11
13
  * Initializes a new instance of the SipRoutingClientContext class.
12
14
  * @param endpoint The communication resource, for example https://resourcename.communication.azure.com
@@ -23,13 +25,18 @@ export class SipRoutingClientContext extends coreClient.ServiceClient {
23
25
  const defaults = {
24
26
  requestContentType: "application/json; charset=utf-8"
25
27
  };
26
- const packageDetails = `azsdk-js-communication-phone-numbers/1.5.0-beta.1`;
28
+ const packageDetails = `azsdk-js-communication-phone-numbers/1.5.0`;
27
29
  const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
28
30
  ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
29
31
  : `${packageDetails}`;
30
- const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
32
+ const optionsWithDefaults = {
33
+ ...defaults,
34
+ ...options,
35
+ userAgentOptions: {
31
36
  userAgentPrefix
32
- }, baseUri: options.endpoint || "{endpoint}" });
37
+ },
38
+ baseUri: options.endpoint || "{endpoint}"
39
+ };
33
40
  super(optionsWithDefaults);
34
41
  // Parameter assignments
35
42
  this.endpoint = endpoint;
@@ -1 +1 @@
1
- {"version":3,"file":"sipRoutingClientContext.js","sourceRoot":"","sources":["../../../../../src/generated/src/siprouting/sipRoutingClientContext.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AAGjD,MAAM,OAAO,uBAAwB,SAAQ,UAAU,CAAC,aAAa;IAInE;;;;OAIG;IACH,YAAY,QAAgB,EAAE,OAAwC;QACpE,IAAI,QAAQ,KAAK,SAAS,EAAE,CAAC;YAC3B,MAAM,IAAI,KAAK,CAAC,2BAA2B,CAAC,CAAC;QAC/C,CAAC;QAED,0CAA0C;QAC1C,IAAI,CAAC,OAAO,EAAE,CAAC;YACb,OAAO,GAAG,EAAE,CAAC;QACf,CAAC;QACD,MAAM,QAAQ,GAAmC;YAC/C,kBAAkB,EAAE,iCAAiC;SACtD,CAAC;QAEF,MAAM,cAAc,GAAG,mDAAmD,CAAC;QAC3E,MAAM,eAAe,GACnB,OAAO,CAAC,gBAAgB,IAAI,OAAO,CAAC,gBAAgB,CAAC,eAAe;YAClE,CAAC,CAAC,GAAG,OAAO,CAAC,gBAAgB,CAAC,eAAe,IAAI,cAAc,EAAE;YACjE,CAAC,CAAC,GAAG,cAAc,EAAE,CAAC;QAE1B,MAAM,mBAAmB,iDACpB,QAAQ,GACR,OAAO,KACV,gBAAgB,EAAE;gBAChB,eAAe;aAChB,EACD,OAAO,EAAE,OAAO,CAAC,QAAQ,IAAI,YAAY,GAC1C,CAAC;QACF,KAAK,CAAC,mBAAmB,CAAC,CAAC;QAC3B,wBAAwB;QACxB,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QAEzB,0CAA0C;QAC1C,IAAI,CAAC,UAAU,GAAG,OAAO,CAAC,UAAU,IAAI,YAAY,CAAC;IACvD,CAAC;CACF","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreClient from \"@azure/core-client\";\nimport { SipRoutingClientOptionalParams } from \"./models/index.js\";\n\nexport class SipRoutingClientContext extends coreClient.ServiceClient {\n endpoint: string;\n apiVersion: string;\n\n /**\n * Initializes a new instance of the SipRoutingClientContext class.\n * @param endpoint The communication resource, for example https://resourcename.communication.azure.com\n * @param options The parameter options\n */\n constructor(endpoint: string, options?: SipRoutingClientOptionalParams) {\n if (endpoint === undefined) {\n throw new Error(\"'endpoint' cannot be null\");\n }\n\n // Initializing default values for options\n if (!options) {\n options = {};\n }\n const defaults: SipRoutingClientOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\"\n };\n\n const packageDetails = `azsdk-js-communication-phone-numbers/1.5.0-beta.1`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`\n : `${packageDetails}`;\n\n const optionsWithDefaults = {\n ...defaults,\n ...options,\n userAgentOptions: {\n userAgentPrefix\n },\n baseUri: options.endpoint || \"{endpoint}\"\n };\n super(optionsWithDefaults);\n // Parameter assignments\n this.endpoint = endpoint;\n\n // Assigning values to Constant parameters\n this.apiVersion = options.apiVersion || \"2023-03-01\";\n }\n}\n"]}
1
+ {"version":3,"file":"sipRoutingClientContext.js","sourceRoot":"","sources":["../../../../../src/generated/src/siprouting/sipRoutingClientContext.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AAGjD,MAAM,OAAO,uBAAwB,SAAQ,UAAU,CAAC,aAAa;IACnE,QAAQ,CAAS;IACjB,UAAU,CAAS;IAEnB;;;;OAIG;IACH,YAAY,QAAgB,EAAE,OAAwC;QACpE,IAAI,QAAQ,KAAK,SAAS,EAAE,CAAC;YAC3B,MAAM,IAAI,KAAK,CAAC,2BAA2B,CAAC,CAAC;QAC/C,CAAC;QAED,0CAA0C;QAC1C,IAAI,CAAC,OAAO,EAAE,CAAC;YACb,OAAO,GAAG,EAAE,CAAC;QACf,CAAC;QACD,MAAM,QAAQ,GAAmC;YAC/C,kBAAkB,EAAE,iCAAiC;SACtD,CAAC;QAEF,MAAM,cAAc,GAAG,4CAA4C,CAAC;QACpE,MAAM,eAAe,GACnB,OAAO,CAAC,gBAAgB,IAAI,OAAO,CAAC,gBAAgB,CAAC,eAAe;YAClE,CAAC,CAAC,GAAG,OAAO,CAAC,gBAAgB,CAAC,eAAe,IAAI,cAAc,EAAE;YACjE,CAAC,CAAC,GAAG,cAAc,EAAE,CAAC;QAE1B,MAAM,mBAAmB,GAAG;YAC1B,GAAG,QAAQ;YACX,GAAG,OAAO;YACV,gBAAgB,EAAE;gBAChB,eAAe;aAChB;YACD,OAAO,EAAE,OAAO,CAAC,QAAQ,IAAI,YAAY;SAC1C,CAAC;QACF,KAAK,CAAC,mBAAmB,CAAC,CAAC;QAC3B,wBAAwB;QACxB,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QAEzB,0CAA0C;QAC1C,IAAI,CAAC,UAAU,GAAG,OAAO,CAAC,UAAU,IAAI,YAAY,CAAC;IACvD,CAAC;CACF","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreClient from \"@azure/core-client\";\nimport { SipRoutingClientOptionalParams } from \"./models/index.js\";\n\nexport class SipRoutingClientContext extends coreClient.ServiceClient {\n endpoint: string;\n apiVersion: string;\n\n /**\n * Initializes a new instance of the SipRoutingClientContext class.\n * @param endpoint The communication resource, for example https://resourcename.communication.azure.com\n * @param options The parameter options\n */\n constructor(endpoint: string, options?: SipRoutingClientOptionalParams) {\n if (endpoint === undefined) {\n throw new Error(\"'endpoint' cannot be null\");\n }\n\n // Initializing default values for options\n if (!options) {\n options = {};\n }\n const defaults: SipRoutingClientOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\"\n };\n\n const packageDetails = `azsdk-js-communication-phone-numbers/1.5.0`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`\n : `${packageDetails}`;\n\n const optionsWithDefaults = {\n ...defaults,\n ...options,\n userAgentOptions: {\n userAgentPrefix\n },\n baseUri: options.endpoint || \"{endpoint}\"\n };\n super(optionsWithDefaults);\n // Parameter assignments\n this.endpoint = endpoint;\n\n // Assigning values to Constant parameters\n this.apiVersion = options.apiVersion || \"2023-03-01\";\n }\n}\n"]}
@@ -9,6 +9,6 @@ import { createTracingClient } from "@azure/core-tracing";
9
9
  export const tracingClient = createTracingClient({
10
10
  namespace: "Microsoft.Communication",
11
11
  packageName: "@azure/communication-phone-numbers",
12
- packageVersion: "1.5.0-beta.1",
12
+ packageVersion: "1.5.0",
13
13
  });
14
14
  //# sourceMappingURL=tracing.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"tracing.js","sourceRoot":"","sources":["../../../../src/generated/src/tracing.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAE1D,MAAM,CAAC,MAAM,aAAa,GAAG,mBAAmB,CAAC;IAC/C,SAAS,EAAE,yBAAyB;IACpC,WAAW,EAAE,oCAAoC;IACjD,cAAc,EAAE,cAAc;CAC/B,CAAC,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { createTracingClient } from \"@azure/core-tracing\";\n\nexport const tracingClient = createTracingClient({\n namespace: \"Microsoft.Communication\",\n packageName: \"@azure/communication-phone-numbers\",\n packageVersion: \"1.5.0-beta.1\",\n});\n"]}
1
+ {"version":3,"file":"tracing.js","sourceRoot":"","sources":["../../../../src/generated/src/tracing.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAE1D,MAAM,CAAC,MAAM,aAAa,GAAG,mBAAmB,CAAC;IAC/C,SAAS,EAAE,yBAAyB;IACpC,WAAW,EAAE,oCAAoC;IACjD,cAAc,EAAE,OAAO;CACxB,CAAC,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { createTracingClient } from \"@azure/core-tracing\";\n\nexport const tracingClient = createTracingClient({\n namespace: \"Microsoft.Communication\",\n packageName: \"@azure/communication-phone-numbers\",\n packageVersion: \"1.5.0\",\n});\n"]}
@@ -466,7 +466,7 @@ export declare class PhoneNumbersClient {
466
466
  * console.log("area code: ", areaCodeItem.areaCode);
467
467
  * }
468
468
  * ```
469
- * List all available Geographic area codes.
469
+ * List all available mobile area codes.
470
470
  * @param countryCode - The ISO 3166-2 country code.
471
471
  * @param options - The optional parameters.
472
472
  */
@@ -1,7 +1,6 @@
1
1
  // Copyright (c) Microsoft Corporation.
2
2
  // Licensed under the MIT License.
3
3
  /// <reference lib="esnext.asynciterable" />
4
- import { __rest } from "tslib";
5
4
  /* eslint-disable @azure/azure-sdk/ts-naming-options */
6
5
  import { createCommunicationAuthPolicy, isKeyCredential, parseClientArguments, } from "@azure/communication-common";
7
6
  import { isTokenCredential } from "@azure/core-auth";
@@ -14,17 +13,31 @@ const isPhoneNumbersClientOptions = (options) => options && !isKeyCredential(opt
14
13
  * Client class for interacting with Azure Communication Services Phone Number Administration.
15
14
  */
16
15
  export class PhoneNumbersClient {
16
+ /**
17
+ * A reference to the auto-generated PhoneNumber HTTP client.
18
+ */
19
+ client;
20
+ /**
21
+ * The accept language parameter to be used in the request header's "accept-language" property.
22
+ */
23
+ acceptLanguage;
17
24
  constructor(connectionStringOrUrl, credentialOrOptions, maybeOptions = {}) {
18
25
  const { url, credential } = parseClientArguments(connectionStringOrUrl, credentialOrOptions);
19
26
  const options = isPhoneNumbersClientOptions(credentialOrOptions)
20
27
  ? credentialOrOptions
21
28
  : maybeOptions;
22
- const internalPipelineOptions = Object.assign(Object.assign({}, options), {
23
- loggingOptions: {
24
- logger: logger.info,
29
+ const internalPipelineOptions = {
30
+ ...options,
31
+ ...{
32
+ loggingOptions: {
33
+ logger: logger.info,
34
+ },
25
35
  },
36
+ };
37
+ this.client = new PhoneNumbersGeneratedClient(url, {
38
+ endpoint: url,
39
+ ...internalPipelineOptions,
26
40
  });
27
- this.client = new PhoneNumbersGeneratedClient(url, Object.assign({ endpoint: url }, internalPipelineOptions));
28
41
  const authPolicy = createCommunicationAuthPolicy(credential);
29
42
  this.client.pipeline.addPolicy(authPolicy);
30
43
  // This policy is temporary workarounds to address compatibility issues with Azure Core V2.
@@ -54,7 +67,9 @@ export class PhoneNumbersClient {
54
67
  */
55
68
  deleteReservation(reservationId, options = {}) {
56
69
  return tracingClient.withSpan("PhoneNumbersClient-deleteReservation", options, (updatedOptions) => {
57
- return this.client.phoneNumbers.deleteReservation(reservationId, Object.assign({}, updatedOptions));
70
+ return this.client.phoneNumbers.deleteReservation(reservationId, {
71
+ ...updatedOptions,
72
+ });
58
73
  });
59
74
  }
60
75
  /**
@@ -65,7 +80,9 @@ export class PhoneNumbersClient {
65
80
  */
66
81
  getPurchasedPhoneNumber(phoneNumber, options = {}) {
67
82
  return tracingClient.withSpan("PhoneNumbersClient-getPurchasedPhoneNumber", options, (updatedOptions) => {
68
- return this.client.phoneNumbers.getByNumber(phoneNumber, Object.assign({}, updatedOptions));
83
+ return this.client.phoneNumbers.getByNumber(phoneNumber, {
84
+ ...updatedOptions,
85
+ });
69
86
  });
70
87
  }
71
88
  /**
@@ -90,7 +107,9 @@ export class PhoneNumbersClient {
90
107
  */
91
108
  getReservation(reservationId, options = {}) {
92
109
  return tracingClient.withSpan("PhoneNumbersClient-getReservation", options, (updatedOptions) => {
93
- return this.client.phoneNumbers.getReservation(reservationId, Object.assign({}, updatedOptions));
110
+ return this.client.phoneNumbers.getReservation(reservationId, {
111
+ ...updatedOptions,
112
+ });
94
113
  });
95
114
  }
96
115
  /**
@@ -117,7 +136,9 @@ export class PhoneNumbersClient {
117
136
  listPurchasedPhoneNumbers(options = {}) {
118
137
  const { span, updatedOptions } = tracingClient.startSpan("PhoneNumbersClient-listPurchasedPhoneNumbers", options);
119
138
  try {
120
- return this.client.phoneNumbers.listPhoneNumbers(Object.assign({}, updatedOptions));
139
+ return this.client.phoneNumbers.listPhoneNumbers({
140
+ ...updatedOptions,
141
+ });
121
142
  }
122
143
  catch (e) {
123
144
  span.setStatus({
@@ -168,8 +189,11 @@ export class PhoneNumbersClient {
168
189
  browseAvailablePhoneNumbers(request, options) {
169
190
  const { span, updatedOptions } = tracingClient.startSpan("PhoneNumbersClient-browseAvailableNumbers", options);
170
191
  try {
171
- const { countryCode, phoneNumberType } = request, rest = __rest(request, ["countryCode", "phoneNumberType"]);
172
- return this.client.phoneNumbers.browseAvailableNumbers(countryCode, phoneNumberType, Object.assign(Object.assign({}, updatedOptions), rest));
192
+ const { countryCode, phoneNumberType, ...rest } = request;
193
+ return this.client.phoneNumbers.browseAvailableNumbers(countryCode, phoneNumberType, {
194
+ ...updatedOptions,
195
+ ...rest,
196
+ });
173
197
  }
174
198
  catch (e) {
175
199
  span.setStatus({
@@ -252,8 +276,11 @@ export class PhoneNumbersClient {
252
276
  */
253
277
  beginSearchAvailablePhoneNumbers(search, options = {}) {
254
278
  return tracingClient.withSpan("PhoneNumbersClient-beginSearchAvailablePhoneNumbers", options, (updatedOptions) => {
255
- const { countryCode, phoneNumberType, assignmentType, capabilities } = search, rest = __rest(search, ["countryCode", "phoneNumberType", "assignmentType", "capabilities"]);
256
- return this.client.phoneNumbers.beginSearchAvailablePhoneNumbers(countryCode, phoneNumberType, assignmentType, capabilities, Object.assign(Object.assign({}, updatedOptions), rest));
279
+ const { countryCode, phoneNumberType, assignmentType, capabilities, ...rest } = search;
280
+ return this.client.phoneNumbers.beginSearchAvailablePhoneNumbers(countryCode, phoneNumberType, assignmentType, capabilities, {
281
+ ...updatedOptions,
282
+ ...rest,
283
+ });
257
284
  });
258
285
  }
259
286
  /**
@@ -300,7 +327,10 @@ export class PhoneNumbersClient {
300
327
  */
301
328
  beginPurchasePhoneNumbers(searchId, options = {}) {
302
329
  return tracingClient.withSpan("PhoneNumbersClient-beginPurchasePhoneNumbers", options, (updatedOptions) => {
303
- return this.client.phoneNumbers.beginPurchasePhoneNumbers(Object.assign(Object.assign({}, updatedOptions), { searchId }));
330
+ return this.client.phoneNumbers.beginPurchasePhoneNumbers({
331
+ ...updatedOptions,
332
+ searchId,
333
+ });
304
334
  });
305
335
  }
306
336
  /**
@@ -330,7 +360,9 @@ export class PhoneNumbersClient {
330
360
  */
331
361
  beginReservationPurchase(reservationId, options = {}) {
332
362
  return tracingClient.withSpan("PhoneNumbersClient-beginReservationPurchase", options, (updatedOptions) => {
333
- return this.client.phoneNumbers.beginPurchaseReservation(reservationId, Object.assign({}, updatedOptions));
363
+ return this.client.phoneNumbers.beginPurchaseReservation(reservationId, {
364
+ ...updatedOptions,
365
+ });
334
366
  });
335
367
  }
336
368
  /**
@@ -376,7 +408,10 @@ export class PhoneNumbersClient {
376
408
  throw Error("phone number can't be empty");
377
409
  }
378
410
  return tracingClient.withSpan("PhoneNumbersClient-beginUpdatePhoneNumberCapabilities", options, (updatedOptions) => {
379
- return this.client.phoneNumbers.beginUpdateCapabilities(phoneNumber, Object.assign(Object.assign({}, updatedOptions), request));
411
+ return this.client.phoneNumbers.beginUpdateCapabilities(phoneNumber, {
412
+ ...updatedOptions,
413
+ ...request,
414
+ });
380
415
  });
381
416
  }
382
417
  /**
@@ -444,13 +479,16 @@ export class PhoneNumbersClient {
444
479
  */
445
480
  async createOrUpdateReservation(request, options) {
446
481
  const phoneNumbersReservation = {};
447
- if (options === null || options === void 0 ? void 0 : options.add) {
482
+ if (options?.add) {
448
483
  this.addPhoneNumbersToReservation(phoneNumbersReservation, options.add);
449
484
  }
450
- if (options === null || options === void 0 ? void 0 : options.remove) {
485
+ if (options?.remove) {
451
486
  this.removePhoneNumbersFromReservation(phoneNumbersReservation, options.remove);
452
487
  }
453
- const reservationOptionalParams = Object.assign(Object.assign({}, options), { phoneNumbers: phoneNumbersReservation });
488
+ const reservationOptionalParams = {
489
+ ...options,
490
+ phoneNumbers: phoneNumbersReservation,
491
+ };
454
492
  const { span, updatedOptions } = tracingClient.startSpan("PhoneNumbersClient-createOrUpdateReservation", reservationOptionalParams);
455
493
  try {
456
494
  return this.client.phoneNumbers.createOrUpdateReservation(request.reservationId, updatedOptions);
@@ -487,7 +525,10 @@ export class PhoneNumbersClient {
487
525
  listAvailableCountries(options = {}) {
488
526
  const { span, updatedOptions } = tracingClient.startSpan("PhoneNumbersClient-listAvailableCountries", options);
489
527
  try {
490
- return this.client.phoneNumbers.listAvailableCountries(Object.assign(Object.assign({}, updatedOptions), { acceptLanguage: this.acceptLanguage }));
528
+ return this.client.phoneNumbers.listAvailableCountries({
529
+ ...updatedOptions,
530
+ acceptLanguage: this.acceptLanguage,
531
+ });
491
532
  }
492
533
  catch (e) {
493
534
  span.setStatus({
@@ -522,7 +563,10 @@ export class PhoneNumbersClient {
522
563
  listAvailableTollFreeAreaCodes(countryCode, options = {}) {
523
564
  const { span, updatedOptions } = tracingClient.startSpan("PhoneNumbersClient-listAvailableTollFreeAreaCodes", options);
524
565
  try {
525
- return this.client.phoneNumbers.listAreaCodes(countryCode, "tollFree", Object.assign(Object.assign({}, updatedOptions), { assignmentType: "application" }));
566
+ return this.client.phoneNumbers.listAreaCodes(countryCode, "tollFree", {
567
+ ...updatedOptions,
568
+ assignmentType: "application",
569
+ });
526
570
  }
527
571
  catch (e) {
528
572
  span.setStatus({
@@ -557,7 +601,9 @@ export class PhoneNumbersClient {
557
601
  listAvailableGeographicAreaCodes(countryCode, options = {}) {
558
602
  const { span, updatedOptions } = tracingClient.startSpan("PhoneNumbersClient-listAvailableGeographicFreeAreaCodes", options);
559
603
  try {
560
- return this.client.phoneNumbers.listAreaCodes(countryCode, "geographic", Object.assign({}, updatedOptions));
604
+ return this.client.phoneNumbers.listAreaCodes(countryCode, "geographic", {
605
+ ...updatedOptions,
606
+ });
561
607
  }
562
608
  catch (e) {
563
609
  span.setStatus({
@@ -585,14 +631,16 @@ export class PhoneNumbersClient {
585
631
  * console.log("area code: ", areaCodeItem.areaCode);
586
632
  * }
587
633
  * ```
588
- * List all available Geographic area codes.
634
+ * List all available mobile area codes.
589
635
  * @param countryCode - The ISO 3166-2 country code.
590
636
  * @param options - The optional parameters.
591
637
  */
592
638
  listAvailableMobileAreaCodes(countryCode, options = {}) {
593
639
  const { span, updatedOptions } = tracingClient.startSpan("PhoneNumbersClient-listAvailableMobileAreaCodes", options);
594
640
  try {
595
- return this.client.phoneNumbers.listAreaCodes(countryCode, "mobile", Object.assign({}, updatedOptions));
641
+ return this.client.phoneNumbers.listAreaCodes(countryCode, "mobile", {
642
+ ...updatedOptions,
643
+ });
596
644
  }
597
645
  catch (e) {
598
646
  span.setStatus({
@@ -627,7 +675,10 @@ export class PhoneNumbersClient {
627
675
  listAvailableLocalities(countryCode, options = {}) {
628
676
  const { span, updatedOptions } = tracingClient.startSpan("PhoneNumbersClient-listAvailableLocalities", options);
629
677
  try {
630
- return this.client.phoneNumbers.listAvailableLocalities(countryCode, Object.assign(Object.assign({}, updatedOptions), { acceptLanguage: this.acceptLanguage }));
678
+ return this.client.phoneNumbers.listAvailableLocalities(countryCode, {
679
+ ...updatedOptions,
680
+ acceptLanguage: this.acceptLanguage,
681
+ });
631
682
  }
632
683
  catch (e) {
633
684
  span.setStatus({
@@ -663,7 +714,9 @@ export class PhoneNumbersClient {
663
714
  listAvailableOfferings(countryCode, options = {}) {
664
715
  const { span, updatedOptions } = tracingClient.startSpan("PhoneNumbersClient-listOfferings", options);
665
716
  try {
666
- return this.client.phoneNumbers.listOfferings(countryCode, Object.assign({}, updatedOptions));
717
+ return this.client.phoneNumbers.listOfferings(countryCode, {
718
+ ...updatedOptions,
719
+ });
667
720
  }
668
721
  catch (e) {
669
722
  span.setStatus({
@@ -697,7 +750,9 @@ export class PhoneNumbersClient {
697
750
  listReservations(options = {}) {
698
751
  const { span, updatedOptions } = tracingClient.startSpan("PhoneNumbersClient-listReservations", options);
699
752
  try {
700
- return this.client.phoneNumbers.listReservations(Object.assign({}, updatedOptions));
753
+ return this.client.phoneNumbers.listReservations({
754
+ ...updatedOptions,
755
+ });
701
756
  }
702
757
  catch (e) {
703
758
  span.setStatus({
@@ -719,7 +774,10 @@ export class PhoneNumbersClient {
719
774
  searchOperatorInformation(phoneNumbers, options = { includeAdditionalOperatorDetails: false }) {
720
775
  const { span, updatedOptions } = tracingClient.startSpan("PhoneNumbersClient-searchOperatorInformation", options);
721
776
  try {
722
- return this.client.phoneNumbers.operatorInformationSearch(phoneNumbers, Object.assign(Object.assign({}, updatedOptions), { options: { includeAdditionalOperatorDetails: options.includeAdditionalOperatorDetails } }));
777
+ return this.client.phoneNumbers.operatorInformationSearch(phoneNumbers, {
778
+ ...updatedOptions,
779
+ options: { includeAdditionalOperatorDetails: options.includeAdditionalOperatorDetails },
780
+ });
723
781
  }
724
782
  catch (e) {
725
783
  span.setStatus({