@azure/communication-phone-numbers 1.5.0-beta.2 → 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 (235) hide show
  1. package/README.md +1 -20
  2. package/dist/browser/generated/src/lroImpl.js +7 -3
  3. package/dist/browser/generated/src/lroImpl.js.map +1 -1
  4. package/dist/browser/generated/src/operations/phoneNumbers.js +219 -296
  5. package/dist/browser/generated/src/operations/phoneNumbers.js.map +1 -1
  6. package/dist/browser/generated/src/pagingHelper.js +2 -4
  7. package/dist/browser/generated/src/pagingHelper.js.map +1 -1
  8. package/dist/browser/generated/src/phoneNumbersClient.js +11 -4
  9. package/dist/browser/generated/src/phoneNumbersClient.js.map +1 -1
  10. package/dist/browser/generated/src/siprouting/index.d.ts +1 -0
  11. package/dist/browser/generated/src/siprouting/index.d.ts.map +1 -1
  12. package/dist/browser/generated/src/siprouting/index.js +1 -0
  13. package/dist/browser/generated/src/siprouting/index.js.map +1 -1
  14. package/dist/browser/generated/src/siprouting/models/index.d.ts +2 -141
  15. package/dist/browser/generated/src/siprouting/models/index.d.ts.map +1 -1
  16. package/dist/browser/generated/src/siprouting/models/index.js +1 -6
  17. package/dist/browser/generated/src/siprouting/models/index.js.map +1 -1
  18. package/dist/browser/generated/src/siprouting/models/mappers.d.ts +0 -7
  19. package/dist/browser/generated/src/siprouting/models/mappers.d.ts.map +1 -1
  20. package/dist/browser/generated/src/siprouting/models/mappers.js +77 -284
  21. package/dist/browser/generated/src/siprouting/models/mappers.js.map +1 -1
  22. package/dist/browser/generated/src/siprouting/models/parameters.d.ts +0 -7
  23. package/dist/browser/generated/src/siprouting/models/parameters.d.ts.map +1 -1
  24. package/dist/browser/generated/src/siprouting/models/parameters.js +16 -62
  25. package/dist/browser/generated/src/siprouting/models/parameters.js.map +1 -1
  26. package/dist/browser/generated/src/siprouting/operations/sipRouting.d.ts +3 -9
  27. package/dist/browser/generated/src/siprouting/operations/sipRouting.d.ts.map +1 -1
  28. package/dist/browser/generated/src/siprouting/operations/sipRouting.js +12 -45
  29. package/dist/browser/generated/src/siprouting/operations/sipRouting.js.map +1 -1
  30. package/dist/browser/generated/src/siprouting/operationsInterfaces/sipRouting.d.ts +1 -7
  31. package/dist/browser/generated/src/siprouting/operationsInterfaces/sipRouting.d.ts.map +1 -1
  32. package/dist/browser/generated/src/siprouting/operationsInterfaces/sipRouting.js.map +1 -1
  33. package/dist/browser/generated/src/siprouting/sipRoutingClient.d.ts +2 -6
  34. package/dist/browser/generated/src/siprouting/sipRoutingClient.d.ts.map +1 -1
  35. package/dist/browser/generated/src/siprouting/sipRoutingClient.js +4 -51
  36. package/dist/browser/generated/src/siprouting/sipRoutingClient.js.map +1 -1
  37. package/dist/browser/generated/src/siprouting/sipRoutingClientContext.js +10 -3
  38. package/dist/browser/generated/src/siprouting/sipRoutingClientContext.js.map +1 -1
  39. package/dist/browser/generated/src/tracing.js +1 -1
  40. package/dist/browser/generated/src/tracing.js.map +1 -1
  41. package/dist/browser/mappers.d.ts +3 -17
  42. package/dist/browser/mappers.d.ts.map +1 -1
  43. package/dist/browser/mappers.js +2 -51
  44. package/dist/browser/mappers.js.map +1 -1
  45. package/dist/browser/models.d.ts +1 -60
  46. package/dist/browser/models.d.ts.map +1 -1
  47. package/dist/browser/models.js.map +1 -1
  48. package/dist/browser/phoneNumbersClient.d.ts +1 -1
  49. package/dist/browser/phoneNumbersClient.js +86 -28
  50. package/dist/browser/phoneNumbersClient.js.map +1 -1
  51. package/dist/browser/sipRoutingClient.d.ts +1 -41
  52. package/dist/browser/sipRoutingClient.d.ts.map +1 -1
  53. package/dist/browser/sipRoutingClient.js +49 -218
  54. package/dist/browser/sipRoutingClient.js.map +1 -1
  55. package/dist/browser/utils/constants.d.ts.map +1 -1
  56. package/dist/browser/utils/constants.js +1 -1
  57. package/dist/browser/utils/constants.js.map +1 -1
  58. package/dist/browser/utils/customPipelinePolicies.js +1 -2
  59. package/dist/browser/utils/customPipelinePolicies.js.map +1 -1
  60. package/dist/commonjs/generated/src/lroImpl.js +7 -3
  61. package/dist/commonjs/generated/src/lroImpl.js.map +1 -1
  62. package/dist/commonjs/generated/src/operations/phoneNumbers.js +219 -295
  63. package/dist/commonjs/generated/src/operations/phoneNumbers.js.map +1 -1
  64. package/dist/commonjs/generated/src/pagingHelper.js +2 -4
  65. package/dist/commonjs/generated/src/pagingHelper.js.map +1 -1
  66. package/dist/commonjs/generated/src/phoneNumbersClient.js +11 -4
  67. package/dist/commonjs/generated/src/phoneNumbersClient.js.map +1 -1
  68. package/dist/commonjs/generated/src/siprouting/index.d.ts +1 -0
  69. package/dist/commonjs/generated/src/siprouting/index.d.ts.map +1 -1
  70. package/dist/commonjs/generated/src/siprouting/index.js +3 -1
  71. package/dist/commonjs/generated/src/siprouting/index.js.map +1 -1
  72. package/dist/commonjs/generated/src/siprouting/models/index.d.ts +2 -141
  73. package/dist/commonjs/generated/src/siprouting/models/index.d.ts.map +1 -1
  74. package/dist/commonjs/generated/src/siprouting/models/index.js +0 -7
  75. package/dist/commonjs/generated/src/siprouting/models/index.js.map +1 -1
  76. package/dist/commonjs/generated/src/siprouting/models/mappers.d.ts +0 -7
  77. package/dist/commonjs/generated/src/siprouting/models/mappers.d.ts.map +1 -1
  78. package/dist/commonjs/generated/src/siprouting/models/mappers.js +78 -285
  79. package/dist/commonjs/generated/src/siprouting/models/mappers.js.map +1 -1
  80. package/dist/commonjs/generated/src/siprouting/models/parameters.d.ts +0 -7
  81. package/dist/commonjs/generated/src/siprouting/models/parameters.d.ts.map +1 -1
  82. package/dist/commonjs/generated/src/siprouting/models/parameters.js +16 -62
  83. package/dist/commonjs/generated/src/siprouting/models/parameters.js.map +1 -1
  84. package/dist/commonjs/generated/src/siprouting/operations/sipRouting.d.ts +3 -9
  85. package/dist/commonjs/generated/src/siprouting/operations/sipRouting.d.ts.map +1 -1
  86. package/dist/commonjs/generated/src/siprouting/operations/sipRouting.js +12 -45
  87. package/dist/commonjs/generated/src/siprouting/operations/sipRouting.js.map +1 -1
  88. package/dist/commonjs/generated/src/siprouting/operationsInterfaces/sipRouting.d.ts +1 -7
  89. package/dist/commonjs/generated/src/siprouting/operationsInterfaces/sipRouting.d.ts.map +1 -1
  90. package/dist/commonjs/generated/src/siprouting/operationsInterfaces/sipRouting.js.map +1 -1
  91. package/dist/commonjs/generated/src/siprouting/sipRoutingClient.d.ts +2 -6
  92. package/dist/commonjs/generated/src/siprouting/sipRoutingClient.d.ts.map +1 -1
  93. package/dist/commonjs/generated/src/siprouting/sipRoutingClient.js +4 -52
  94. package/dist/commonjs/generated/src/siprouting/sipRoutingClient.js.map +1 -1
  95. package/dist/commonjs/generated/src/siprouting/sipRoutingClientContext.js +10 -3
  96. package/dist/commonjs/generated/src/siprouting/sipRoutingClientContext.js.map +1 -1
  97. package/dist/commonjs/generated/src/tracing.js +1 -1
  98. package/dist/commonjs/generated/src/tracing.js.map +1 -1
  99. package/dist/commonjs/mappers.d.ts +3 -17
  100. package/dist/commonjs/mappers.d.ts.map +1 -1
  101. package/dist/commonjs/mappers.js +2 -53
  102. package/dist/commonjs/mappers.js.map +1 -1
  103. package/dist/commonjs/models.d.ts +1 -60
  104. package/dist/commonjs/models.d.ts.map +1 -1
  105. package/dist/commonjs/models.js.map +1 -1
  106. package/dist/commonjs/phoneNumbersClient.d.ts +1 -1
  107. package/dist/commonjs/phoneNumbersClient.js +86 -28
  108. package/dist/commonjs/phoneNumbersClient.js.map +1 -1
  109. package/dist/commonjs/sipRoutingClient.d.ts +1 -41
  110. package/dist/commonjs/sipRoutingClient.d.ts.map +1 -1
  111. package/dist/commonjs/sipRoutingClient.js +48 -216
  112. package/dist/commonjs/sipRoutingClient.js.map +1 -1
  113. package/dist/commonjs/tsdoc-metadata.json +11 -11
  114. package/dist/commonjs/utils/constants.d.ts.map +1 -1
  115. package/dist/commonjs/utils/constants.js +1 -1
  116. package/dist/commonjs/utils/constants.js.map +1 -1
  117. package/dist/commonjs/utils/customPipelinePolicies.js +1 -2
  118. package/dist/commonjs/utils/customPipelinePolicies.js.map +1 -1
  119. package/dist/esm/generated/src/lroImpl.js +7 -3
  120. package/dist/esm/generated/src/lroImpl.js.map +1 -1
  121. package/dist/esm/generated/src/operations/phoneNumbers.js +219 -296
  122. package/dist/esm/generated/src/operations/phoneNumbers.js.map +1 -1
  123. package/dist/esm/generated/src/pagingHelper.js +2 -4
  124. package/dist/esm/generated/src/pagingHelper.js.map +1 -1
  125. package/dist/esm/generated/src/phoneNumbersClient.js +11 -4
  126. package/dist/esm/generated/src/phoneNumbersClient.js.map +1 -1
  127. package/dist/esm/generated/src/siprouting/index.d.ts +1 -0
  128. package/dist/esm/generated/src/siprouting/index.d.ts.map +1 -1
  129. package/dist/esm/generated/src/siprouting/index.js +1 -0
  130. package/dist/esm/generated/src/siprouting/index.js.map +1 -1
  131. package/dist/esm/generated/src/siprouting/models/index.d.ts +2 -141
  132. package/dist/esm/generated/src/siprouting/models/index.d.ts.map +1 -1
  133. package/dist/esm/generated/src/siprouting/models/index.js +1 -6
  134. package/dist/esm/generated/src/siprouting/models/index.js.map +1 -1
  135. package/dist/esm/generated/src/siprouting/models/mappers.d.ts +0 -7
  136. package/dist/esm/generated/src/siprouting/models/mappers.d.ts.map +1 -1
  137. package/dist/esm/generated/src/siprouting/models/mappers.js +77 -284
  138. package/dist/esm/generated/src/siprouting/models/mappers.js.map +1 -1
  139. package/dist/esm/generated/src/siprouting/models/parameters.d.ts +0 -7
  140. package/dist/esm/generated/src/siprouting/models/parameters.d.ts.map +1 -1
  141. package/dist/esm/generated/src/siprouting/models/parameters.js +16 -62
  142. package/dist/esm/generated/src/siprouting/models/parameters.js.map +1 -1
  143. package/dist/esm/generated/src/siprouting/operations/sipRouting.d.ts +3 -9
  144. package/dist/esm/generated/src/siprouting/operations/sipRouting.d.ts.map +1 -1
  145. package/dist/esm/generated/src/siprouting/operations/sipRouting.js +12 -45
  146. package/dist/esm/generated/src/siprouting/operations/sipRouting.js.map +1 -1
  147. package/dist/esm/generated/src/siprouting/operationsInterfaces/sipRouting.d.ts +1 -7
  148. package/dist/esm/generated/src/siprouting/operationsInterfaces/sipRouting.d.ts.map +1 -1
  149. package/dist/esm/generated/src/siprouting/operationsInterfaces/sipRouting.js.map +1 -1
  150. package/dist/esm/generated/src/siprouting/sipRoutingClient.d.ts +2 -6
  151. package/dist/esm/generated/src/siprouting/sipRoutingClient.d.ts.map +1 -1
  152. package/dist/esm/generated/src/siprouting/sipRoutingClient.js +4 -51
  153. package/dist/esm/generated/src/siprouting/sipRoutingClient.js.map +1 -1
  154. package/dist/esm/generated/src/siprouting/sipRoutingClientContext.js +10 -3
  155. package/dist/esm/generated/src/siprouting/sipRoutingClientContext.js.map +1 -1
  156. package/dist/esm/generated/src/tracing.js +1 -1
  157. package/dist/esm/generated/src/tracing.js.map +1 -1
  158. package/dist/esm/mappers.d.ts +3 -17
  159. package/dist/esm/mappers.d.ts.map +1 -1
  160. package/dist/esm/mappers.js +2 -51
  161. package/dist/esm/mappers.js.map +1 -1
  162. package/dist/esm/models.d.ts +1 -60
  163. package/dist/esm/models.d.ts.map +1 -1
  164. package/dist/esm/models.js.map +1 -1
  165. package/dist/esm/phoneNumbersClient.d.ts +1 -1
  166. package/dist/esm/phoneNumbersClient.js +86 -28
  167. package/dist/esm/phoneNumbersClient.js.map +1 -1
  168. package/dist/esm/sipRoutingClient.d.ts +1 -41
  169. package/dist/esm/sipRoutingClient.d.ts.map +1 -1
  170. package/dist/esm/sipRoutingClient.js +49 -218
  171. package/dist/esm/sipRoutingClient.js.map +1 -1
  172. package/dist/esm/utils/constants.d.ts.map +1 -1
  173. package/dist/esm/utils/constants.js +1 -1
  174. package/dist/esm/utils/constants.js.map +1 -1
  175. package/dist/esm/utils/customPipelinePolicies.js +1 -2
  176. package/dist/esm/utils/customPipelinePolicies.js.map +1 -1
  177. package/dist/react-native/generated/src/lroImpl.js +7 -3
  178. package/dist/react-native/generated/src/lroImpl.js.map +1 -1
  179. package/dist/react-native/generated/src/operations/phoneNumbers.js +219 -296
  180. package/dist/react-native/generated/src/operations/phoneNumbers.js.map +1 -1
  181. package/dist/react-native/generated/src/pagingHelper.js +2 -4
  182. package/dist/react-native/generated/src/pagingHelper.js.map +1 -1
  183. package/dist/react-native/generated/src/phoneNumbersClient.js +11 -4
  184. package/dist/react-native/generated/src/phoneNumbersClient.js.map +1 -1
  185. package/dist/react-native/generated/src/siprouting/index.d.ts +1 -0
  186. package/dist/react-native/generated/src/siprouting/index.d.ts.map +1 -1
  187. package/dist/react-native/generated/src/siprouting/index.js +1 -0
  188. package/dist/react-native/generated/src/siprouting/index.js.map +1 -1
  189. package/dist/react-native/generated/src/siprouting/models/index.d.ts +2 -141
  190. package/dist/react-native/generated/src/siprouting/models/index.d.ts.map +1 -1
  191. package/dist/react-native/generated/src/siprouting/models/index.js +1 -6
  192. package/dist/react-native/generated/src/siprouting/models/index.js.map +1 -1
  193. package/dist/react-native/generated/src/siprouting/models/mappers.d.ts +0 -7
  194. package/dist/react-native/generated/src/siprouting/models/mappers.d.ts.map +1 -1
  195. package/dist/react-native/generated/src/siprouting/models/mappers.js +77 -284
  196. package/dist/react-native/generated/src/siprouting/models/mappers.js.map +1 -1
  197. package/dist/react-native/generated/src/siprouting/models/parameters.d.ts +0 -7
  198. package/dist/react-native/generated/src/siprouting/models/parameters.d.ts.map +1 -1
  199. package/dist/react-native/generated/src/siprouting/models/parameters.js +16 -62
  200. package/dist/react-native/generated/src/siprouting/models/parameters.js.map +1 -1
  201. package/dist/react-native/generated/src/siprouting/operations/sipRouting.d.ts +3 -9
  202. package/dist/react-native/generated/src/siprouting/operations/sipRouting.d.ts.map +1 -1
  203. package/dist/react-native/generated/src/siprouting/operations/sipRouting.js +12 -45
  204. package/dist/react-native/generated/src/siprouting/operations/sipRouting.js.map +1 -1
  205. package/dist/react-native/generated/src/siprouting/operationsInterfaces/sipRouting.d.ts +1 -7
  206. package/dist/react-native/generated/src/siprouting/operationsInterfaces/sipRouting.d.ts.map +1 -1
  207. package/dist/react-native/generated/src/siprouting/operationsInterfaces/sipRouting.js.map +1 -1
  208. package/dist/react-native/generated/src/siprouting/sipRoutingClient.d.ts +2 -6
  209. package/dist/react-native/generated/src/siprouting/sipRoutingClient.d.ts.map +1 -1
  210. package/dist/react-native/generated/src/siprouting/sipRoutingClient.js +4 -51
  211. package/dist/react-native/generated/src/siprouting/sipRoutingClient.js.map +1 -1
  212. package/dist/react-native/generated/src/siprouting/sipRoutingClientContext.js +10 -3
  213. package/dist/react-native/generated/src/siprouting/sipRoutingClientContext.js.map +1 -1
  214. package/dist/react-native/generated/src/tracing.js +1 -1
  215. package/dist/react-native/generated/src/tracing.js.map +1 -1
  216. package/dist/react-native/mappers.d.ts +3 -17
  217. package/dist/react-native/mappers.d.ts.map +1 -1
  218. package/dist/react-native/mappers.js +2 -51
  219. package/dist/react-native/mappers.js.map +1 -1
  220. package/dist/react-native/models.d.ts +1 -60
  221. package/dist/react-native/models.d.ts.map +1 -1
  222. package/dist/react-native/models.js.map +1 -1
  223. package/dist/react-native/phoneNumbersClient.d.ts +1 -1
  224. package/dist/react-native/phoneNumbersClient.js +86 -28
  225. package/dist/react-native/phoneNumbersClient.js.map +1 -1
  226. package/dist/react-native/sipRoutingClient.d.ts +1 -41
  227. package/dist/react-native/sipRoutingClient.d.ts.map +1 -1
  228. package/dist/react-native/sipRoutingClient.js +49 -218
  229. package/dist/react-native/sipRoutingClient.js.map +1 -1
  230. package/dist/react-native/utils/constants.d.ts.map +1 -1
  231. package/dist/react-native/utils/constants.js +1 -1
  232. package/dist/react-native/utils/constants.js.map +1 -1
  233. package/dist/react-native/utils/customPipelinePolicies.js +1 -2
  234. package/dist/react-native/utils/customPipelinePolicies.js.map +1 -1
  235. package/package.json +35 -37
@@ -5,7 +5,7 @@
5
5
  * Code generated by Microsoft (R) AutoRest Code Generator.
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
- import { SipConfigurationUpdate as SipConfigurationUpdateMapper, SipConfiguration as SipConfigurationMapper, } from "../models/mappers.js";
8
+ import { SipConfigurationUpdate as SipConfigurationUpdateMapper } from "../models/mappers.js";
9
9
  export const accept = {
10
10
  parameterPath: "accept",
11
11
  mapper: {
@@ -13,9 +13,9 @@ export const accept = {
13
13
  isConstant: true,
14
14
  serializedName: "Accept",
15
15
  type: {
16
- name: "String",
17
- },
18
- },
16
+ name: "String"
17
+ }
18
+ }
19
19
  };
20
20
  export const endpoint = {
21
21
  parameterPath: "endpoint",
@@ -23,30 +23,21 @@ export const endpoint = {
23
23
  serializedName: "endpoint",
24
24
  required: true,
25
25
  type: {
26
- name: "String",
27
- },
26
+ name: "String"
27
+ }
28
28
  },
29
- skipEncoding: true,
29
+ skipEncoding: true
30
30
  };
31
31
  export const apiVersion = {
32
32
  parameterPath: "apiVersion",
33
33
  mapper: {
34
- defaultValue: "2024-11-15-preview",
34
+ defaultValue: "2023-03-01",
35
35
  isConstant: true,
36
36
  serializedName: "api-version",
37
37
  type: {
38
- name: "String",
39
- },
40
- },
41
- };
42
- export const expand = {
43
- parameterPath: ["options", "expand"],
44
- mapper: {
45
- serializedName: "expand",
46
- type: {
47
- name: "String",
48
- },
49
- },
38
+ name: "String"
39
+ }
40
+ }
50
41
  };
51
42
  export const contentType = {
52
43
  parameterPath: ["options", "contentType"],
@@ -55,53 +46,16 @@ export const contentType = {
55
46
  isConstant: true,
56
47
  serializedName: "Content-Type",
57
48
  type: {
58
- name: "String",
59
- },
60
- },
61
- };
62
- export const domains = {
63
- parameterPath: ["options", "domains"],
64
- mapper: SipConfigurationUpdateMapper,
49
+ name: "String"
50
+ }
51
+ }
65
52
  };
66
53
  export const trunks = {
67
54
  parameterPath: ["options", "trunks"],
68
- mapper: SipConfigurationUpdateMapper,
55
+ mapper: SipConfigurationUpdateMapper
69
56
  };
70
57
  export const routes = {
71
58
  parameterPath: ["options", "routes"],
72
- mapper: SipConfigurationUpdateMapper,
73
- };
74
- export const contentType1 = {
75
- parameterPath: ["options", "contentType"],
76
- mapper: {
77
- defaultValue: "application/json",
78
- isConstant: true,
79
- serializedName: "Content-Type",
80
- type: {
81
- name: "String",
82
- },
83
- },
84
- };
85
- export const domains1 = {
86
- parameterPath: ["options", "domains"],
87
- mapper: SipConfigurationMapper,
88
- };
89
- export const trunks1 = {
90
- parameterPath: ["options", "trunks"],
91
- mapper: SipConfigurationMapper,
92
- };
93
- export const routes1 = {
94
- parameterPath: ["options", "routes"],
95
- mapper: SipConfigurationMapper,
96
- };
97
- export const targetPhoneNumber = {
98
- parameterPath: "targetPhoneNumber",
99
- mapper: {
100
- serializedName: "targetPhoneNumber",
101
- required: true,
102
- type: {
103
- name: "String",
104
- },
105
- },
59
+ mapper: SipConfigurationUpdateMapper
106
60
  };
107
61
  //# sourceMappingURL=parameters.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"parameters.js","sourceRoot":"","sources":["../../../../../../src/generated/src/siprouting/models/parameters.ts"],"names":[],"mappings":"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","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 {\n OperationParameter,\n OperationURLParameter,\n OperationQueryParameter,\n} from \"@azure/core-client\";\nimport {\n SipConfigurationUpdate as SipConfigurationUpdateMapper,\n SipConfiguration as SipConfigurationMapper,\n} from \"../models/mappers.js\";\n\nexport const accept: OperationParameter = {\n parameterPath: \"accept\",\n mapper: {\n defaultValue: \"application/json\",\n isConstant: true,\n serializedName: \"Accept\",\n type: {\n name: \"String\",\n },\n },\n};\n\nexport const endpoint: OperationURLParameter = {\n parameterPath: \"endpoint\",\n mapper: {\n serializedName: \"endpoint\",\n required: true,\n type: {\n name: \"String\",\n },\n },\n skipEncoding: true,\n};\n\nexport const apiVersion: OperationQueryParameter = {\n parameterPath: \"apiVersion\",\n mapper: {\n defaultValue: \"2024-11-15-preview\",\n isConstant: true,\n serializedName: \"api-version\",\n type: {\n name: \"String\",\n },\n },\n};\n\nexport const expand: OperationQueryParameter = {\n parameterPath: [\"options\", \"expand\"],\n mapper: {\n serializedName: \"expand\",\n type: {\n name: \"String\",\n },\n },\n};\n\nexport const contentType: OperationParameter = {\n parameterPath: [\"options\", \"contentType\"],\n mapper: {\n defaultValue: \"application/merge-patch+json\",\n isConstant: true,\n serializedName: \"Content-Type\",\n type: {\n name: \"String\",\n },\n },\n};\n\nexport const domains: OperationParameter = {\n parameterPath: [\"options\", \"domains\"],\n mapper: SipConfigurationUpdateMapper,\n};\n\nexport const trunks: OperationParameter = {\n parameterPath: [\"options\", \"trunks\"],\n mapper: SipConfigurationUpdateMapper,\n};\n\nexport const routes: OperationParameter = {\n parameterPath: [\"options\", \"routes\"],\n mapper: SipConfigurationUpdateMapper,\n};\n\nexport const contentType1: OperationParameter = {\n parameterPath: [\"options\", \"contentType\"],\n mapper: {\n defaultValue: \"application/json\",\n isConstant: true,\n serializedName: \"Content-Type\",\n type: {\n name: \"String\",\n },\n },\n};\n\nexport const domains1: OperationParameter = {\n parameterPath: [\"options\", \"domains\"],\n mapper: SipConfigurationMapper,\n};\n\nexport const trunks1: OperationParameter = {\n parameterPath: [\"options\", \"trunks\"],\n mapper: SipConfigurationMapper,\n};\n\nexport const routes1: OperationParameter = {\n parameterPath: [\"options\", \"routes\"],\n mapper: SipConfigurationMapper,\n};\n\nexport const targetPhoneNumber: OperationQueryParameter = {\n parameterPath: \"targetPhoneNumber\",\n mapper: {\n serializedName: \"targetPhoneNumber\",\n required: true,\n type: {\n name: \"String\",\n },\n },\n};\n"]}
1
+ {"version":3,"file":"parameters.js","sourceRoot":"","sources":["../../../../../../src/generated/src/siprouting/models/parameters.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAOH,OAAO,EAAE,sBAAsB,IAAI,4BAA4B,EAAE,MAAM,sBAAsB,CAAC;AAE9F,MAAM,CAAC,MAAM,MAAM,GAAuB;IACxC,aAAa,EAAE,QAAQ;IACvB,MAAM,EAAE;QACN,YAAY,EAAE,kBAAkB;QAChC,UAAU,EAAE,IAAI;QAChB,cAAc,EAAE,QAAQ;QACxB,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;SACf;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,QAAQ,GAA0B;IAC7C,aAAa,EAAE,UAAU;IACzB,MAAM,EAAE;QACN,cAAc,EAAE,UAAU;QAC1B,QAAQ,EAAE,IAAI;QACd,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;SACf;KACF;IACD,YAAY,EAAE,IAAI;CACnB,CAAC;AAEF,MAAM,CAAC,MAAM,UAAU,GAA4B;IACjD,aAAa,EAAE,YAAY;IAC3B,MAAM,EAAE;QACN,YAAY,EAAE,YAAY;QAC1B,UAAU,EAAE,IAAI;QAChB,cAAc,EAAE,aAAa;QAC7B,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;SACf;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,WAAW,GAAuB;IAC7C,aAAa,EAAE,CAAC,SAAS,EAAE,aAAa,CAAC;IACzC,MAAM,EAAE;QACN,YAAY,EAAE,8BAA8B;QAC5C,UAAU,EAAE,IAAI;QAChB,cAAc,EAAE,cAAc;QAC9B,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;SACf;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,MAAM,GAAuB;IACxC,aAAa,EAAE,CAAC,SAAS,EAAE,QAAQ,CAAC;IACpC,MAAM,EAAE,4BAA4B;CACrC,CAAC;AAEF,MAAM,CAAC,MAAM,MAAM,GAAuB;IACxC,aAAa,EAAE,CAAC,SAAS,EAAE,QAAQ,CAAC;IACpC,MAAM,EAAE,4BAA4B;CACrC,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 {\n OperationParameter,\n OperationURLParameter,\n OperationQueryParameter\n} from \"@azure/core-client\";\nimport { SipConfigurationUpdate as SipConfigurationUpdateMapper } from \"../models/mappers.js\";\n\nexport const accept: OperationParameter = {\n parameterPath: \"accept\",\n mapper: {\n defaultValue: \"application/json\",\n isConstant: true,\n serializedName: \"Accept\",\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const endpoint: OperationURLParameter = {\n parameterPath: \"endpoint\",\n mapper: {\n serializedName: \"endpoint\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n skipEncoding: true\n};\n\nexport const apiVersion: OperationQueryParameter = {\n parameterPath: \"apiVersion\",\n mapper: {\n defaultValue: \"2023-03-01\",\n isConstant: true,\n serializedName: \"api-version\",\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const contentType: OperationParameter = {\n parameterPath: [\"options\", \"contentType\"],\n mapper: {\n defaultValue: \"application/merge-patch+json\",\n isConstant: true,\n serializedName: \"Content-Type\",\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const trunks: OperationParameter = {\n parameterPath: [\"options\", \"trunks\"],\n mapper: SipConfigurationUpdateMapper\n};\n\nexport const routes: OperationParameter = {\n parameterPath: [\"options\", \"routes\"],\n mapper: SipConfigurationUpdateMapper\n};\n"]}
@@ -1,6 +1,6 @@
1
1
  import { SipRouting } from "../operationsInterfaces/index.js";
2
- import { SipRoutingClient } from "../sipRoutingClient.js";
3
- import { SipRoutingGetOptionalParams, SipRoutingGetResponse, SipRoutingUpdateOptionalParams, SipRoutingUpdateResponse, SipRoutingTestRoutesWithNumberOptionalParams, SipRoutingTestRoutesWithNumberResponse } from "../models/index.js";
2
+ import { SipRoutingClientContext } from "../sipRoutingClientContext.js";
3
+ import { SipRoutingGetOptionalParams, SipRoutingGetResponse, SipRoutingUpdateOptionalParams, SipRoutingUpdateResponse } from "../models/index.js";
4
4
  /** Class containing SipRouting operations. */
5
5
  export declare class SipRoutingImpl implements SipRouting {
6
6
  private readonly client;
@@ -8,7 +8,7 @@ export declare class SipRoutingImpl implements SipRouting {
8
8
  * Initialize a new instance of the class SipRouting class.
9
9
  * @param client Reference to the service client
10
10
  */
11
- constructor(client: SipRoutingClient);
11
+ constructor(client: SipRoutingClientContext);
12
12
  /**
13
13
  * Gets SIP configuration for resource.
14
14
  * @param options The options parameters.
@@ -19,11 +19,5 @@ export declare class SipRoutingImpl implements SipRouting {
19
19
  * @param options The options parameters.
20
20
  */
21
21
  update(options?: SipRoutingUpdateOptionalParams): Promise<SipRoutingUpdateResponse>;
22
- /**
23
- * Gets the list of routes matching the target phone number, ordered by priority.
24
- * @param targetPhoneNumber Phone number to test routing patterns against
25
- * @param options The options parameters.
26
- */
27
- testRoutesWithNumber(targetPhoneNumber: string, options?: SipRoutingTestRoutesWithNumberOptionalParams): Promise<SipRoutingTestRoutesWithNumberResponse>;
28
22
  }
29
23
  //# sourceMappingURL=sipRouting.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"sipRouting.d.ts","sourceRoot":"","sources":["../../../../../../src/generated/src/siprouting/operations/sipRouting.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAI9D,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC1D,OAAO,EACL,2BAA2B,EAC3B,qBAAqB,EACrB,8BAA8B,EAC9B,wBAAwB,EACxB,4CAA4C,EAC5C,sCAAsC,EACvC,MAAM,oBAAoB,CAAC;AAE5B,8CAA8C;AAC9C,qBAAa,cAAe,YAAW,UAAU;IAC/C,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAmB;IAE1C;;;OAGG;gBACS,MAAM,EAAE,gBAAgB;IAIpC;;;OAGG;IACH,GAAG,CAAC,OAAO,CAAC,EAAE,2BAA2B,GAAG,OAAO,CAAC,qBAAqB,CAAC;IAI1E;;;OAGG;IACH,MAAM,CACJ,OAAO,CAAC,EAAE,8BAA8B,GACvC,OAAO,CAAC,wBAAwB,CAAC;IAIpC;;;;OAIG;IACH,oBAAoB,CAClB,iBAAiB,EAAE,MAAM,EACzB,OAAO,CAAC,EAAE,4CAA4C,GACrD,OAAO,CAAC,sCAAsC,CAAC;CAMnD"}
1
+ {"version":3,"file":"sipRouting.d.ts","sourceRoot":"","sources":["../../../../../../src/generated/src/siprouting/operations/sipRouting.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAI9D,OAAO,EAAE,uBAAuB,EAAE,MAAM,+BAA+B,CAAC;AACxE,OAAO,EACL,2BAA2B,EAC3B,qBAAqB,EACrB,8BAA8B,EAC9B,wBAAwB,EACzB,MAAM,oBAAoB,CAAC;AAE5B,8CAA8C;AAC9C,qBAAa,cAAe,YAAW,UAAU;IAC/C,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA0B;IAEjD;;;OAGG;gBACS,MAAM,EAAE,uBAAuB;IAI3C;;;OAGG;IACH,GAAG,CAAC,OAAO,CAAC,EAAE,2BAA2B,GAAG,OAAO,CAAC,qBAAqB,CAAC;IAI1E;;;OAGG;IACH,MAAM,CACJ,OAAO,CAAC,EAAE,8BAA8B,GACvC,OAAO,CAAC,wBAAwB,CAAC;CAGrC"}
@@ -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
@@ -31,14 +32,6 @@ export class SipRoutingImpl {
31
32
  update(options) {
32
33
  return this.client.sendOperationRequest({ options }, updateOperationSpec);
33
34
  }
34
- /**
35
- * Gets the list of routes matching the target phone number, ordered by priority.
36
- * @param targetPhoneNumber Phone number to test routing patterns against
37
- * @param options The options parameters.
38
- */
39
- testRoutesWithNumber(targetPhoneNumber, options) {
40
- return this.client.sendOperationRequest({ targetPhoneNumber, options }, testRoutesWithNumberOperationSpec);
41
- }
42
35
  }
43
36
  // Operation Specifications
44
37
  const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
@@ -47,67 +40,41 @@ const getOperationSpec = {
47
40
  httpMethod: "GET",
48
41
  responses: {
49
42
  200: {
50
- bodyMapper: Mappers.SipConfiguration,
43
+ bodyMapper: Mappers.SipConfiguration
51
44
  },
52
45
  default: {
53
46
  bodyMapper: Mappers.CommunicationErrorResponse,
54
- headersMapper: Mappers.SipRoutingGetExceptionHeaders,
55
- },
47
+ headersMapper: Mappers.SipRoutingGetExceptionHeaders
48
+ }
56
49
  },
57
- queryParameters: [Parameters.apiVersion, Parameters.expand],
50
+ queryParameters: [Parameters.apiVersion],
58
51
  urlParameters: [Parameters.endpoint],
59
52
  headerParameters: [Parameters.accept],
60
- serializer,
53
+ serializer
61
54
  };
62
55
  const updateOperationSpec = {
63
56
  path: "/sip",
64
57
  httpMethod: "PATCH",
65
58
  responses: {
66
59
  200: {
67
- bodyMapper: Mappers.SipConfiguration,
60
+ bodyMapper: Mappers.SipConfiguration
68
61
  },
69
62
  default: {
70
63
  bodyMapper: Mappers.CommunicationErrorResponse,
71
- headersMapper: Mappers.SipRoutingUpdateExceptionHeaders,
72
- },
64
+ headersMapper: Mappers.SipRoutingUpdateExceptionHeaders
65
+ }
73
66
  },
74
67
  requestBody: {
75
68
  parameterPath: {
76
- domains: ["options", "domains"],
77
69
  trunks: ["options", "trunks"],
78
- routes: ["options", "routes"],
70
+ routes: ["options", "routes"]
79
71
  },
80
- mapper: Mappers.SipConfigurationUpdate,
72
+ mapper: Mappers.SipConfigurationUpdate
81
73
  },
82
74
  queryParameters: [Parameters.apiVersion],
83
75
  urlParameters: [Parameters.endpoint],
84
76
  headerParameters: [Parameters.accept, Parameters.contentType],
85
77
  mediaType: "json",
86
- serializer,
87
- };
88
- const testRoutesWithNumberOperationSpec = {
89
- path: "/sip:testRoutesWithNumber",
90
- httpMethod: "POST",
91
- responses: {
92
- 200: {
93
- bodyMapper: Mappers.RoutesForNumber,
94
- },
95
- default: {
96
- bodyMapper: Mappers.CommunicationErrorResponse,
97
- },
98
- },
99
- requestBody: {
100
- parameterPath: {
101
- domains: ["options", "domains"],
102
- trunks: ["options", "trunks"],
103
- routes: ["options", "routes"],
104
- },
105
- mapper: Mappers.SipConfiguration,
106
- },
107
- queryParameters: [Parameters.apiVersion, Parameters.targetPhoneNumber],
108
- urlParameters: [Parameters.endpoint],
109
- headerParameters: [Parameters.accept, Parameters.contentType1],
110
- mediaType: "json",
111
- serializer,
78
+ serializer
112
79
  };
113
80
  //# sourceMappingURL=sipRouting.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"sipRouting.js","sourceRoot":"","sources":["../../../../../../src/generated/src/siprouting/operations/sipRouting.ts"],"names":[],"mappings":"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","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 { SipRoutingClient } from \"../sipRoutingClient.js\";\nimport {\n SipRoutingGetOptionalParams,\n SipRoutingGetResponse,\n SipRoutingUpdateOptionalParams,\n SipRoutingUpdateResponse,\n SipRoutingTestRoutesWithNumberOptionalParams,\n SipRoutingTestRoutesWithNumberResponse,\n} from \"../models/index.js\";\n\n/** Class containing SipRouting operations. */\nexport class SipRoutingImpl implements SipRouting {\n private readonly client: SipRoutingClient;\n\n /**\n * Initialize a new instance of the class SipRouting class.\n * @param client Reference to the service client\n */\n constructor(client: SipRoutingClient) {\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 /**\n * Gets the list of routes matching the target phone number, ordered by priority.\n * @param targetPhoneNumber Phone number to test routing patterns against\n * @param options The options parameters.\n */\n testRoutesWithNumber(\n targetPhoneNumber: string,\n options?: SipRoutingTestRoutesWithNumberOptionalParams,\n ): Promise<SipRoutingTestRoutesWithNumberResponse> {\n return this.client.sendOperationRequest(\n { targetPhoneNumber, options },\n testRoutesWithNumberOperationSpec,\n );\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, Parameters.expand],\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 domains: [\"options\", \"domains\"],\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};\nconst testRoutesWithNumberOperationSpec: coreClient.OperationSpec = {\n path: \"/sip:testRoutesWithNumber\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.RoutesForNumber,\n },\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n },\n },\n requestBody: {\n parameterPath: {\n domains: [\"options\", \"domains\"],\n trunks: [\"options\", \"trunks\"],\n routes: [\"options\", \"routes\"],\n },\n mapper: Mappers.SipConfiguration,\n },\n queryParameters: [Parameters.apiVersion, Parameters.targetPhoneNumber],\n urlParameters: [Parameters.endpoint],\n headerParameters: [Parameters.accept, Parameters.contentType1],\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"]}
@@ -1,4 +1,4 @@
1
- import { SipRoutingGetOptionalParams, SipRoutingGetResponse, SipRoutingUpdateOptionalParams, SipRoutingUpdateResponse, SipRoutingTestRoutesWithNumberOptionalParams, SipRoutingTestRoutesWithNumberResponse } from "../models/index.js";
1
+ import { SipRoutingGetOptionalParams, SipRoutingGetResponse, SipRoutingUpdateOptionalParams, SipRoutingUpdateResponse } from "../models/index.js";
2
2
  /** Interface representing a SipRouting. */
3
3
  export interface SipRouting {
4
4
  /**
@@ -11,11 +11,5 @@ export interface SipRouting {
11
11
  * @param options The options parameters.
12
12
  */
13
13
  update(options?: SipRoutingUpdateOptionalParams): Promise<SipRoutingUpdateResponse>;
14
- /**
15
- * Gets the list of routes matching the target phone number, ordered by priority.
16
- * @param targetPhoneNumber Phone number to test routing patterns against
17
- * @param options The options parameters.
18
- */
19
- testRoutesWithNumber(targetPhoneNumber: string, options?: SipRoutingTestRoutesWithNumberOptionalParams): Promise<SipRoutingTestRoutesWithNumberResponse>;
20
14
  }
21
15
  //# sourceMappingURL=sipRouting.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"sipRouting.d.ts","sourceRoot":"","sources":["../../../../../../src/generated/src/siprouting/operationsInterfaces/sipRouting.ts"],"names":[],"mappings":"AAQA,OAAO,EACL,2BAA2B,EAC3B,qBAAqB,EACrB,8BAA8B,EAC9B,wBAAwB,EACxB,4CAA4C,EAC5C,sCAAsC,EACvC,MAAM,oBAAoB,CAAC;AAE5B,2CAA2C;AAC3C,MAAM,WAAW,UAAU;IACzB;;;OAGG;IACH,GAAG,CAAC,OAAO,CAAC,EAAE,2BAA2B,GAAG,OAAO,CAAC,qBAAqB,CAAC,CAAC;IAC3E;;;OAGG;IACH,MAAM,CACJ,OAAO,CAAC,EAAE,8BAA8B,GACvC,OAAO,CAAC,wBAAwB,CAAC,CAAC;IACrC;;;;OAIG;IACH,oBAAoB,CAClB,iBAAiB,EAAE,MAAM,EACzB,OAAO,CAAC,EAAE,4CAA4C,GACrD,OAAO,CAAC,sCAAsC,CAAC,CAAC;CACpD"}
1
+ {"version":3,"file":"sipRouting.d.ts","sourceRoot":"","sources":["../../../../../../src/generated/src/siprouting/operationsInterfaces/sipRouting.ts"],"names":[],"mappings":"AAQA,OAAO,EACL,2BAA2B,EAC3B,qBAAqB,EACrB,8BAA8B,EAC9B,wBAAwB,EACzB,MAAM,oBAAoB,CAAC;AAE5B,2CAA2C;AAC3C,MAAM,WAAW,UAAU;IACzB;;;OAGG;IACH,GAAG,CAAC,OAAO,CAAC,EAAE,2BAA2B,GAAG,OAAO,CAAC,qBAAqB,CAAC,CAAC;IAC3E;;;OAGG;IACH,MAAM,CACJ,OAAO,CAAC,EAAE,8BAA8B,GACvC,OAAO,CAAC,wBAAwB,CAAC,CAAC;CACtC"}
@@ -1 +1 @@
1
- {"version":3,"file":"sipRouting.js","sourceRoot":"","sources":["../../../../../../src/generated/src/siprouting/operationsInterfaces/sipRouting.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport {\n SipRoutingGetOptionalParams,\n SipRoutingGetResponse,\n SipRoutingUpdateOptionalParams,\n SipRoutingUpdateResponse,\n SipRoutingTestRoutesWithNumberOptionalParams,\n SipRoutingTestRoutesWithNumberResponse,\n} from \"../models/index.js\";\n\n/** Interface representing a SipRouting. */\nexport interface SipRouting {\n /**\n * Gets SIP configuration for resource.\n * @param options The options parameters.\n */\n get(options?: SipRoutingGetOptionalParams): Promise<SipRoutingGetResponse>;\n /**\n * Updates SIP configuration for resource.\n * @param options The options parameters.\n */\n update(\n options?: SipRoutingUpdateOptionalParams,\n ): Promise<SipRoutingUpdateResponse>;\n /**\n * Gets the list of routes matching the target phone number, ordered by priority.\n * @param targetPhoneNumber Phone number to test routing patterns against\n * @param options The options parameters.\n */\n testRoutesWithNumber(\n targetPhoneNumber: string,\n options?: SipRoutingTestRoutesWithNumberOptionalParams,\n ): Promise<SipRoutingTestRoutesWithNumberResponse>;\n}\n"]}
1
+ {"version":3,"file":"sipRouting.js","sourceRoot":"","sources":["../../../../../../src/generated/src/siprouting/operationsInterfaces/sipRouting.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport {\n SipRoutingGetOptionalParams,\n SipRoutingGetResponse,\n SipRoutingUpdateOptionalParams,\n SipRoutingUpdateResponse\n} from \"../models/index.js\";\n\n/** Interface representing a SipRouting. */\nexport interface SipRouting {\n /**\n * Gets SIP configuration for resource.\n * @param options The options parameters.\n */\n get(options?: SipRoutingGetOptionalParams): Promise<SipRoutingGetResponse>;\n /**\n * Updates SIP configuration for resource.\n * @param options The options parameters.\n */\n update(\n options?: SipRoutingUpdateOptionalParams\n ): Promise<SipRoutingUpdateResponse>;\n}\n"]}
@@ -1,17 +1,13 @@
1
- import * as coreClient from "@azure/core-client";
2
1
  import { SipRouting } from "./operationsInterfaces/index.js";
2
+ import { SipRoutingClientContext } from "./sipRoutingClientContext.js";
3
3
  import { SipRoutingClientOptionalParams } from "./models/index.js";
4
- export declare class SipRoutingClient extends coreClient.ServiceClient {
5
- endpoint: string;
6
- apiVersion: string;
4
+ export declare class SipRoutingClient extends SipRoutingClientContext {
7
5
  /**
8
6
  * Initializes a new instance of the SipRoutingClient class.
9
7
  * @param endpoint The communication resource, for example https://resourcename.communication.azure.com
10
8
  * @param options The parameter options
11
9
  */
12
10
  constructor(endpoint: string, options?: SipRoutingClientOptionalParams);
13
- /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
14
- private addCustomApiVersionPolicy;
15
11
  sipRouting: SipRouting;
16
12
  }
17
13
  //# sourceMappingURL=sipRoutingClient.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"sipRoutingClient.d.ts","sourceRoot":"","sources":["../../../../../src/generated/src/siprouting/sipRoutingClient.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AAOjD,OAAO,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAC;AAC7D,OAAO,EAAE,8BAA8B,EAAE,MAAM,mBAAmB,CAAC;AAEnE,qBAAa,gBAAiB,SAAQ,UAAU,CAAC,aAAa;IAC5D,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IAEnB;;;;OAIG;gBACS,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,8BAA8B;IAqCtE,8GAA8G;IAC9G,OAAO,CAAC,yBAAyB;IA2BjC,UAAU,EAAE,UAAU,CAAC;CACxB"}
1
+ {"version":3,"file":"sipRoutingClient.d.ts","sourceRoot":"","sources":["../../../../../src/generated/src/siprouting/sipRoutingClient.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAC;AAC7D,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AACvE,OAAO,EAAE,8BAA8B,EAAE,MAAM,mBAAmB,CAAC;AAEnE,qBAAa,gBAAiB,SAAQ,uBAAuB;IAC3D;;;;OAIG;gBACS,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,8BAA8B;IAKtE,UAAU,EAAE,UAAU,CAAC;CACxB"}
@@ -5,65 +5,18 @@
5
5
  * Code generated by Microsoft (R) AutoRest Code Generator.
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
- import * as coreClient from "@azure/core-client";
9
8
  import { SipRoutingImpl } from "./operations/index.js";
10
- export class SipRoutingClient extends coreClient.ServiceClient {
9
+ import { SipRoutingClientContext } from "./sipRoutingClientContext.js";
10
+ export class SipRoutingClient extends SipRoutingClientContext {
11
11
  /**
12
12
  * Initializes a new instance of the SipRoutingClient class.
13
13
  * @param endpoint The communication resource, for example https://resourcename.communication.azure.com
14
14
  * @param options The parameter options
15
15
  */
16
16
  constructor(endpoint, options) {
17
- var _a, _b;
18
- if (endpoint === undefined) {
19
- throw new Error("'endpoint' cannot be null");
20
- }
21
- // Initializing default values for options
22
- if (!options) {
23
- options = {};
24
- }
25
- const defaults = {
26
- requestContentType: "application/json; charset=utf-8",
27
- };
28
- const packageDetails = `azsdk-js-communication-phone-numbers/1.5.0-beta.2`;
29
- const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
30
- ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
31
- : `${packageDetails}`;
32
- const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
33
- userAgentPrefix,
34
- }, endpoint: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "{endpoint}" });
35
- super(optionsWithDefaults);
36
- // Parameter assignments
37
- this.endpoint = endpoint;
38
- // Assigning values to Constant parameters
39
- this.apiVersion = options.apiVersion || "2024-11-15-preview";
17
+ super(endpoint, options);
40
18
  this.sipRouting = new SipRoutingImpl(this);
41
- this.addCustomApiVersionPolicy(options.apiVersion);
42
- }
43
- /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
44
- addCustomApiVersionPolicy(apiVersion) {
45
- if (!apiVersion) {
46
- return;
47
- }
48
- const apiVersionPolicy = {
49
- name: "CustomApiVersionPolicy",
50
- async sendRequest(request, next) {
51
- const param = request.url.split("?");
52
- if (param.length > 1) {
53
- const newParams = param[1].split("&").map((item) => {
54
- if (item.indexOf("api-version") > -1) {
55
- return "api-version=" + apiVersion;
56
- }
57
- else {
58
- return item;
59
- }
60
- });
61
- request.url = param[0] + "?" + newParams.join("&");
62
- }
63
- return next(request);
64
- },
65
- };
66
- this.pipeline.addPolicy(apiVersionPolicy);
67
19
  }
20
+ sipRouting;
68
21
  }
69
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,KAAK,UAAU,MAAM,oBAAoB,CAAC;AAMjD,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAIvD,MAAM,OAAO,gBAAiB,SAAQ,UAAU,CAAC,aAAa;IAI5D;;;;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,QAAQ,EAAE,MAAA,MAAA,OAAO,CAAC,QAAQ,mCAAI,OAAO,CAAC,OAAO,mCAAI,YAAY,GAC9D,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,oBAAoB,CAAC;QAC7D,IAAI,CAAC,UAAU,GAAG,IAAI,cAAc,CAAC,IAAI,CAAC,CAAC;QAC3C,IAAI,CAAC,yBAAyB,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC;IACrD,CAAC;IAED,8GAA8G;IACtG,yBAAyB,CAAC,UAAmB;QACnD,IAAI,CAAC,UAAU,EAAE,CAAC;YAChB,OAAO;QACT,CAAC;QACD,MAAM,gBAAgB,GAAG;YACvB,IAAI,EAAE,wBAAwB;YAC9B,KAAK,CAAC,WAAW,CACf,OAAwB,EACxB,IAAiB;gBAEjB,MAAM,KAAK,GAAG,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;gBACrC,IAAI,KAAK,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;oBACrB,MAAM,SAAS,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;wBACjD,IAAI,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC;4BACrC,OAAO,cAAc,GAAG,UAAU,CAAC;wBACrC,CAAC;6BAAM,CAAC;4BACN,OAAO,IAAI,CAAC;wBACd,CAAC;oBACH,CAAC,CAAC,CAAC;oBACH,OAAO,CAAC,GAAG,GAAG,KAAK,CAAC,CAAC,CAAC,GAAG,GAAG,GAAG,SAAS,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;gBACrD,CAAC;gBACD,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC;YACvB,CAAC;SACF,CAAC;QACF,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAC;IAC5C,CAAC;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 * as coreClient from \"@azure/core-client\";\nimport {\n PipelineRequest,\n PipelineResponse,\n SendRequest,\n} from \"@azure/core-rest-pipeline\";\nimport { SipRoutingImpl } from \"./operations/index.js\";\nimport { SipRouting } from \"./operationsInterfaces/index.js\";\nimport { SipRoutingClientOptionalParams } from \"./models/index.js\";\n\nexport class SipRoutingClient extends coreClient.ServiceClient {\n endpoint: string;\n apiVersion: string;\n\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 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.2`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`\n : `${packageDetails}`;\n\n const optionsWithDefaults = {\n ...defaults,\n ...options,\n userAgentOptions: {\n userAgentPrefix,\n },\n endpoint: options.endpoint ?? options.baseUri ?? \"{endpoint}\",\n };\n super(optionsWithDefaults);\n // Parameter assignments\n this.endpoint = endpoint;\n\n // Assigning values to Constant parameters\n this.apiVersion = options.apiVersion || \"2024-11-15-preview\";\n this.sipRouting = new SipRoutingImpl(this);\n this.addCustomApiVersionPolicy(options.apiVersion);\n }\n\n /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */\n private addCustomApiVersionPolicy(apiVersion?: string) {\n if (!apiVersion) {\n return;\n }\n const apiVersionPolicy = {\n name: \"CustomApiVersionPolicy\",\n async sendRequest(\n request: PipelineRequest,\n next: SendRequest,\n ): Promise<PipelineResponse> {\n const param = request.url.split(\"?\");\n if (param.length > 1) {\n const newParams = param[1].split(\"&\").map((item) => {\n if (item.indexOf(\"api-version\") > -1) {\n return \"api-version=\" + apiVersion;\n } else {\n return item;\n }\n });\n request.url = param[0] + \"?\" + newParams.join(\"&\");\n }\n return next(request);\n },\n };\n this.pipeline.addPolicy(apiVersionPolicy);\n }\n\n 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.2`;
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.2`;\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.2",
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.2\",\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"]}
@@ -1,5 +1,5 @@
1
- import type { SipTrunk, SipDomain } from "./models.js";
2
- import type { SipTrunk as RestSipTrunk, SipDomain as RestSipDomain, TrunkUpdate as RestTrunkUpdate, DomainPatch as RestDomainUpdate } from "./generated/src/siprouting/models/index.js";
1
+ import type { SipTrunk } from "./models.js";
2
+ import type { TrunkUpdate as RestSipTrunk } from "./generated/src/siprouting/models/index.js";
3
3
  /**
4
4
  * @internal
5
5
  * Transforming SIP trunks REST model to SDK model
@@ -7,25 +7,11 @@ import type { SipTrunk as RestSipTrunk, SipDomain as RestSipDomain, TrunkUpdate
7
7
  export declare function transformFromRestModel(trunks: {
8
8
  [propertyName: string]: RestSipTrunk;
9
9
  } | undefined): SipTrunk[];
10
- /**
11
- * @internal
12
- * Transforming SIP domains REST model to SDK model
13
- */
14
- export declare function transformDomainsFromRestModel(domains: {
15
- [propertyName: string]: RestSipDomain;
16
- } | undefined): SipDomain[];
17
10
  /**
18
11
  * @internal
19
12
  * Transforming SIP trunks SDK model to REST model
20
13
  */
21
14
  export declare function transformIntoRestModel(trunks: SipTrunk[]): {
22
- [propertyName: string]: RestTrunkUpdate;
23
- };
24
- /**
25
- * @internal
26
- * Transforming SIP domains SDK model to REST model
27
- */
28
- export declare function transformDomainsIntoRestModel(domains: SipDomain[]): {
29
- [propertyName: string]: RestDomainUpdate;
15
+ [propertyName: string]: RestSipTrunk;
30
16
  };
31
17
  //# sourceMappingURL=mappers.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"mappers.d.ts","sourceRoot":"","sources":["../../src/mappers.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACvD,OAAO,KAAK,EACV,QAAQ,IAAI,YAAY,EACxB,SAAS,IAAI,aAAa,EAC1B,WAAW,IAAI,eAAe,EAC9B,WAAW,IAAI,gBAAgB,EAChC,MAAM,4CAA4C,CAAC;AAEpD;;;GAGG;AACH,wBAAgB,sBAAsB,CACpC,MAAM,EAAE;IAAE,CAAC,YAAY,EAAE,MAAM,GAAG,YAAY,CAAA;CAAE,GAAG,SAAS,GAC3D,QAAQ,EAAE,CAwBZ;AAED;;;GAGG;AACH,wBAAgB,6BAA6B,CAC3C,OAAO,EAAE;IAAE,CAAC,YAAY,EAAE,MAAM,GAAG,aAAa,CAAA;CAAE,GAAG,SAAS,GAC7D,SAAS,EAAE,CAcb;AAED;;;GAGG;AACH,wBAAgB,sBAAsB,CAAC,MAAM,EAAE,QAAQ,EAAE,GAAG;IAC1D,CAAC,YAAY,EAAE,MAAM,GAAG,eAAe,CAAC;CACzC,CAcA;AAED;;;GAGG;AACH,wBAAgB,6BAA6B,CAAC,OAAO,EAAE,SAAS,EAAE,GAAG;IACnE,CAAC,YAAY,EAAE,MAAM,GAAG,gBAAgB,CAAC;CAC1C,CAUA"}
1
+ {"version":3,"file":"mappers.d.ts","sourceRoot":"","sources":["../../src/mappers.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,KAAK,EAAE,WAAW,IAAI,YAAY,EAAE,MAAM,4CAA4C,CAAC;AAE9F;;;GAGG;AACH,wBAAgB,sBAAsB,CACpC,MAAM,EAAE;IAAE,CAAC,YAAY,EAAE,MAAM,GAAG,YAAY,CAAA;CAAE,GAAG,SAAS,GAC3D,QAAQ,EAAE,CAWZ;AAED;;;GAGG;AACH,wBAAgB,sBAAsB,CAAC,MAAM,EAAE,QAAQ,EAAE,GAAG;IAC1D,CAAC,YAAY,EAAE,MAAM,GAAG,YAAY,CAAC;CACtC,CAQA"}