@azure/communication-phone-numbers 1.3.0-alpha.20230517.1 → 1.3.0-beta.1
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +4 -18
- package/dist/index.js +421 -593
- package/dist/index.js.map +1 -1
- package/dist-esm/src/generated/src/index.js +1 -0
- package/dist-esm/src/generated/src/index.js.map +1 -1
- package/dist-esm/src/generated/src/lroImpl.js +11 -15
- package/dist-esm/src/generated/src/lroImpl.js.map +1 -1
- package/dist-esm/src/generated/src/models/index.js.map +1 -1
- package/dist-esm/src/generated/src/models/mappers.js +110 -0
- package/dist-esm/src/generated/src/models/mappers.js.map +1 -1
- package/dist-esm/src/generated/src/models/parameters.js +6 -2
- package/dist-esm/src/generated/src/models/parameters.js.map +1 -1
- package/dist-esm/src/generated/src/operations/phoneNumbers.js +155 -76
- package/dist-esm/src/generated/src/operations/phoneNumbers.js.map +1 -1
- package/dist-esm/src/generated/src/operationsInterfaces/phoneNumbers.js.map +1 -1
- package/dist-esm/src/generated/src/pagingHelper.js +32 -0
- package/dist-esm/src/generated/src/pagingHelper.js.map +1 -0
- package/dist-esm/src/generated/src/phoneNumbersClient.js +4 -22
- package/dist-esm/src/generated/src/phoneNumbersClient.js.map +1 -1
- package/dist-esm/src/generated/src/siprouting/models/index.js +1 -6
- package/dist-esm/src/generated/src/siprouting/models/index.js.map +1 -1
- package/dist-esm/src/generated/src/siprouting/models/mappers.js +0 -166
- package/dist-esm/src/generated/src/siprouting/models/mappers.js.map +1 -1
- package/dist-esm/src/generated/src/siprouting/models/parameters.js +2 -48
- package/dist-esm/src/generated/src/siprouting/models/parameters.js.map +1 -1
- package/dist-esm/src/generated/src/siprouting/operations/sipRouting.js +1 -35
- package/dist-esm/src/generated/src/siprouting/operations/sipRouting.js.map +1 -1
- package/dist-esm/src/generated/src/siprouting/operationsInterfaces/sipRouting.js.map +1 -1
- package/dist-esm/src/generated/src/siprouting/sipRoutingClientContext.js +2 -2
- package/dist-esm/src/generated/src/siprouting/sipRoutingClientContext.js.map +1 -1
- package/dist-esm/src/generated/src/tracing.js +1 -1
- package/dist-esm/src/generated/src/tracing.js.map +1 -1
- package/dist-esm/src/mappers.js +3 -31
- package/dist-esm/src/mappers.js.map +1 -1
- package/dist-esm/src/models.js.map +1 -1
- package/dist-esm/src/phoneNumbersClient.js +16 -3
- package/dist-esm/src/phoneNumbersClient.js.map +1 -1
- package/dist-esm/src/sipRoutingClient.js +63 -170
- package/dist-esm/src/sipRoutingClient.js.map +1 -1
- package/dist-esm/src/utils/constants.js +1 -1
- package/dist-esm/src/utils/constants.js.map +1 -1
- package/package.json +1 -2
- package/types/communication-phone-numbers.d.ts +53 -111
@@ -10,13 +10,6 @@ export const SipConfiguration = {
|
|
10
10
|
name: "Composite",
|
11
11
|
className: "SipConfiguration",
|
12
12
|
modelProperties: {
|
13
|
-
domains: {
|
14
|
-
serializedName: "domains",
|
15
|
-
type: {
|
16
|
-
name: "Dictionary",
|
17
|
-
value: { type: { name: "Composite", className: "SipDomain" } }
|
18
|
-
}
|
19
|
-
},
|
20
13
|
trunks: {
|
21
14
|
serializedName: "trunks",
|
22
15
|
type: {
|
@@ -42,21 +35,6 @@ export const SipConfiguration = {
|
|
42
35
|
}
|
43
36
|
}
|
44
37
|
};
|
45
|
-
export const SipDomain = {
|
46
|
-
type: {
|
47
|
-
name: "Composite",
|
48
|
-
className: "SipDomain",
|
49
|
-
modelProperties: {
|
50
|
-
enabled: {
|
51
|
-
serializedName: "enabled",
|
52
|
-
required: true,
|
53
|
-
type: {
|
54
|
-
name: "Boolean"
|
55
|
-
}
|
56
|
-
}
|
57
|
-
}
|
58
|
-
}
|
59
|
-
};
|
60
38
|
export const SipTrunk = {
|
61
39
|
type: {
|
62
40
|
name: "Composite",
|
@@ -68,100 +46,6 @@ export const SipTrunk = {
|
|
68
46
|
type: {
|
69
47
|
name: "Number"
|
70
48
|
}
|
71
|
-
},
|
72
|
-
enabled: {
|
73
|
-
serializedName: "enabled",
|
74
|
-
required: true,
|
75
|
-
type: {
|
76
|
-
name: "Boolean"
|
77
|
-
}
|
78
|
-
},
|
79
|
-
health: {
|
80
|
-
serializedName: "health",
|
81
|
-
type: {
|
82
|
-
name: "Composite",
|
83
|
-
className: "SipTrunkHealth"
|
84
|
-
}
|
85
|
-
}
|
86
|
-
}
|
87
|
-
}
|
88
|
-
};
|
89
|
-
export const SipTrunkHealth = {
|
90
|
-
type: {
|
91
|
-
name: "Composite",
|
92
|
-
className: "SipTrunkHealth",
|
93
|
-
modelProperties: {
|
94
|
-
tls: {
|
95
|
-
serializedName: "tls",
|
96
|
-
type: {
|
97
|
-
name: "Composite",
|
98
|
-
className: "SipTrunkTls"
|
99
|
-
}
|
100
|
-
},
|
101
|
-
ping: {
|
102
|
-
serializedName: "ping",
|
103
|
-
type: {
|
104
|
-
name: "Composite",
|
105
|
-
className: "SipTrunkPing"
|
106
|
-
}
|
107
|
-
},
|
108
|
-
activity: {
|
109
|
-
serializedName: "overall",
|
110
|
-
type: {
|
111
|
-
name: "Composite",
|
112
|
-
className: "SipTrunkActivity"
|
113
|
-
}
|
114
|
-
}
|
115
|
-
}
|
116
|
-
}
|
117
|
-
};
|
118
|
-
export const SipTrunkTls = {
|
119
|
-
type: {
|
120
|
-
name: "Composite",
|
121
|
-
className: "SipTrunkTls",
|
122
|
-
modelProperties: {
|
123
|
-
status: {
|
124
|
-
serializedName: "status",
|
125
|
-
required: true,
|
126
|
-
type: {
|
127
|
-
name: "String"
|
128
|
-
}
|
129
|
-
}
|
130
|
-
}
|
131
|
-
}
|
132
|
-
};
|
133
|
-
export const SipTrunkPing = {
|
134
|
-
type: {
|
135
|
-
name: "Composite",
|
136
|
-
className: "SipTrunkPing",
|
137
|
-
modelProperties: {
|
138
|
-
status: {
|
139
|
-
serializedName: "status",
|
140
|
-
required: true,
|
141
|
-
type: {
|
142
|
-
name: "String"
|
143
|
-
}
|
144
|
-
}
|
145
|
-
}
|
146
|
-
}
|
147
|
-
};
|
148
|
-
export const SipTrunkActivity = {
|
149
|
-
type: {
|
150
|
-
name: "Composite",
|
151
|
-
className: "SipTrunkActivity",
|
152
|
-
modelProperties: {
|
153
|
-
status: {
|
154
|
-
serializedName: "status",
|
155
|
-
required: true,
|
156
|
-
type: {
|
157
|
-
name: "String"
|
158
|
-
}
|
159
|
-
},
|
160
|
-
inactiveReason: {
|
161
|
-
serializedName: "reason",
|
162
|
-
type: {
|
163
|
-
name: "String"
|
164
|
-
}
|
165
49
|
}
|
166
50
|
}
|
167
51
|
}
|
@@ -286,13 +170,6 @@ export const SipConfigurationUpdate = {
|
|
286
170
|
name: "Composite",
|
287
171
|
className: "SipConfigurationUpdate",
|
288
172
|
modelProperties: {
|
289
|
-
domains: {
|
290
|
-
serializedName: "domains",
|
291
|
-
type: {
|
292
|
-
name: "Dictionary",
|
293
|
-
value: { type: { name: "Composite", className: "DomainPatch" } }
|
294
|
-
}
|
295
|
-
},
|
296
173
|
trunks: {
|
297
174
|
serializedName: "trunks",
|
298
175
|
type: {
|
@@ -318,20 +195,6 @@ export const SipConfigurationUpdate = {
|
|
318
195
|
}
|
319
196
|
}
|
320
197
|
};
|
321
|
-
export const DomainPatch = {
|
322
|
-
type: {
|
323
|
-
name: "Composite",
|
324
|
-
className: "DomainPatch",
|
325
|
-
modelProperties: {
|
326
|
-
enabled: {
|
327
|
-
serializedName: "enabled",
|
328
|
-
type: {
|
329
|
-
name: "Boolean"
|
330
|
-
}
|
331
|
-
}
|
332
|
-
}
|
333
|
-
}
|
334
|
-
};
|
335
198
|
export const TrunkUpdate = {
|
336
199
|
type: {
|
337
200
|
name: "Composite",
|
@@ -342,35 +205,6 @@ export const TrunkUpdate = {
|
|
342
205
|
type: {
|
343
206
|
name: "Number"
|
344
207
|
}
|
345
|
-
},
|
346
|
-
enabled: {
|
347
|
-
serializedName: "enabled",
|
348
|
-
type: {
|
349
|
-
name: "Boolean"
|
350
|
-
}
|
351
|
-
}
|
352
|
-
}
|
353
|
-
}
|
354
|
-
};
|
355
|
-
export const RoutesForNumber = {
|
356
|
-
type: {
|
357
|
-
name: "Composite",
|
358
|
-
className: "RoutesForNumber",
|
359
|
-
modelProperties: {
|
360
|
-
matchingRoutes: {
|
361
|
-
constraints: {
|
362
|
-
MaxItems: 250
|
363
|
-
},
|
364
|
-
serializedName: "matchingRoutes",
|
365
|
-
type: {
|
366
|
-
name: "Sequence",
|
367
|
-
element: {
|
368
|
-
type: {
|
369
|
-
name: "Composite",
|
370
|
-
className: "SipTrunkRoute"
|
371
|
-
}
|
372
|
-
}
|
373
|
-
}
|
374
208
|
}
|
375
209
|
}
|
376
210
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"mappers.js","sourceRoot":"","sources":["../../../../../../src/generated/src/siprouting/models/mappers.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,MAAM,CAAC,MAAM,gBAAgB,GAA+B;IAC1D,IAAI,EAAE;QACJ,IAAI,EAAE,WAAW;QACjB,SAAS,EAAE,kBAAkB;QAC7B,eAAe,EAAE;YACf,OAAO,EAAE;gBACP,cAAc,EAAE,SAAS;gBACzB,IAAI,EAAE;oBACJ,IAAI,EAAE,YAAY;oBAClB,KAAK,EAAE,EAAE,IAAI,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE,SAAS,EAAE,WAAW,EAAE,EAAE;iBAC/D;aACF;YACD,MAAM,EAAE;gBACN,cAAc,EAAE,QAAQ;gBACxB,IAAI,EAAE;oBACJ,IAAI,EAAE,YAAY;oBAClB,KAAK,EAAE,EAAE,IAAI,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE,SAAS,EAAE,UAAU,EAAE,EAAE;iBAC9D;aACF;YACD,MAAM,EAAE;gBACN,WAAW,EAAE;oBACX,QAAQ,EAAE,GAAG;iBACd;gBACD,cAAc,EAAE,QAAQ;gBACxB,IAAI,EAAE;oBACJ,IAAI,EAAE,UAAU;oBAChB,OAAO,EAAE;wBACP,IAAI,EAAE;4BACJ,IAAI,EAAE,WAAW;4BACjB,SAAS,EAAE,eAAe;yBAC3B;qBACF;iBAC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Ac,EAAE,iBAAiB;gBACjC,IAAI,EAAE;oBACJ,IAAI,EAAE,QAAQ;iBACf;aACF;SACF;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,gCAAgC,GAA+B;IAC1E,IAAI,EAAE;QACJ,IAAI,EAAE,WAAW;QACjB,SAAS,EAAE,kCAAkC;QAC7C,eAAe,EAAE;YACf,YAAY,EAAE;gBACZ,cAAc,EAAE,iBAAiB;gBACjC,IAAI,EAAE;oBACJ,IAAI,EAAE,QAAQ;iBACf;aACF;SACF;KACF;CACF,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 * as coreClient from \"@azure/core-client\";\n\nexport const SipConfiguration: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"SipConfiguration\",\n modelProperties: {\n domains: {\n serializedName: \"domains\",\n type: {\n name: \"Dictionary\",\n value: { type: { name: \"Composite\", className: \"SipDomain\" } }\n }\n },\n trunks: {\n serializedName: \"trunks\",\n type: {\n name: \"Dictionary\",\n value: { type: { name: \"Composite\", className: \"SipTrunk\" } }\n }\n },\n routes: {\n constraints: {\n MaxItems: 250\n },\n serializedName: \"routes\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"SipTrunkRoute\"\n }\n }\n }\n }\n }\n }\n};\n\nexport const SipDomain: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"SipDomain\",\n modelProperties: {\n enabled: {\n serializedName: \"enabled\",\n required: true,\n type: {\n name: \"Boolean\"\n }\n }\n }\n }\n};\n\nexport const SipTrunk: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"SipTrunk\",\n modelProperties: {\n sipSignalingPort: {\n serializedName: \"sipSignalingPort\",\n required: true,\n type: {\n name: \"Number\"\n }\n },\n enabled: {\n serializedName: \"enabled\",\n required: true,\n type: {\n name: \"Boolean\"\n }\n },\n health: {\n serializedName: \"health\",\n type: {\n name: \"Composite\",\n className: \"SipTrunkHealth\"\n }\n }\n }\n }\n};\n\nexport const SipTrunkHealth: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"SipTrunkHealth\",\n modelProperties: {\n tls: {\n serializedName: \"tls\",\n type: {\n name: \"Composite\",\n className: \"SipTrunkTls\"\n }\n },\n ping: {\n serializedName: \"ping\",\n type: {\n name: \"Composite\",\n className: \"SipTrunkPing\"\n }\n },\n activity: {\n serializedName: \"overall\",\n type: {\n name: \"Composite\",\n className: \"SipTrunkActivity\"\n }\n }\n }\n }\n};\n\nexport const SipTrunkTls: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"SipTrunkTls\",\n modelProperties: {\n status: {\n serializedName: \"status\",\n required: true,\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const SipTrunkPing: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"SipTrunkPing\",\n modelProperties: {\n status: {\n serializedName: \"status\",\n required: true,\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const SipTrunkActivity: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"SipTrunkActivity\",\n modelProperties: {\n status: {\n serializedName: \"status\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n inactiveReason: {\n serializedName: \"reason\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const SipTrunkRoute: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"SipTrunkRoute\",\n modelProperties: {\n description: {\n constraints: {\n MaxLength: 1024\n },\n serializedName: \"description\",\n type: {\n name: \"String\"\n }\n },\n name: {\n constraints: {\n MaxLength: 256\n },\n serializedName: \"name\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n numberPattern: {\n constraints: {\n MaxLength: 1024\n },\n serializedName: \"numberPattern\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n trunks: {\n constraints: {\n MaxItems: 250\n },\n serializedName: \"trunks\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"String\"\n }\n }\n }\n }\n }\n }\n};\n\nexport const CommunicationErrorResponse: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"CommunicationErrorResponse\",\n modelProperties: {\n error: {\n serializedName: \"error\",\n type: {\n name: \"Composite\",\n className: \"SipRoutingError\"\n }\n }\n }\n }\n};\n\nexport const SipRoutingError: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"SipRoutingError\",\n modelProperties: {\n code: {\n serializedName: \"code\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n message: {\n serializedName: \"message\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n target: {\n serializedName: \"target\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n details: {\n serializedName: \"details\",\n readOnly: true,\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"SipRoutingError\"\n }\n }\n }\n },\n innerError: {\n serializedName: \"innererror\",\n type: {\n name: \"Composite\",\n className: \"SipRoutingError\"\n }\n }\n }\n }\n};\n\nexport const SipConfigurationUpdate: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"SipConfigurationUpdate\",\n modelProperties: {\n domains: {\n serializedName: \"domains\",\n type: {\n name: \"Dictionary\",\n value: { type: { name: \"Composite\", className: \"DomainPatch\" } }\n }\n },\n trunks: {\n serializedName: \"trunks\",\n type: {\n name: \"Dictionary\",\n value: { type: { name: \"Composite\", className: \"TrunkUpdate\" } }\n }\n },\n routes: {\n constraints: {\n MaxItems: 250\n },\n serializedName: \"routes\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"SipTrunkRoute\"\n }\n }\n }\n }\n }\n }\n};\n\nexport const DomainPatch: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"DomainPatch\",\n modelProperties: {\n enabled: {\n serializedName: \"enabled\",\n type: {\n name: \"Boolean\"\n }\n }\n }\n }\n};\n\nexport const TrunkUpdate: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"TrunkUpdate\",\n modelProperties: {\n sipSignalingPort: {\n serializedName: \"sipSignalingPort\",\n type: {\n name: \"Number\"\n }\n },\n enabled: {\n serializedName: \"enabled\",\n type: {\n name: \"Boolean\"\n }\n }\n }\n }\n};\n\nexport const RoutesForNumber: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"RoutesForNumber\",\n modelProperties: {\n matchingRoutes: {\n constraints: {\n MaxItems: 250\n },\n serializedName: \"matchingRoutes\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"SipTrunkRoute\"\n }\n }\n }\n }\n }\n }\n};\n\nexport const SipRoutingGetExceptionHeaders: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"SipRoutingGetExceptionHeaders\",\n modelProperties: {\n xMsErrorCode: {\n serializedName: \"x-ms-error-code\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const SipRoutingUpdateExceptionHeaders: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"SipRoutingUpdateExceptionHeaders\",\n modelProperties: {\n xMsErrorCode: {\n serializedName: \"x-ms-error-code\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n"]}
|
1
|
+
{"version":3,"file":"mappers.js","sourceRoot":"","sources":["../../../../../../src/generated/src/siprouting/models/mappers.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,MAAM,CAAC,MAAM,gBAAgB,GAA+B;IAC1D,IAAI,EAAE;QACJ,IAAI,EAAE,WAAW;QACjB,SAAS,EAAE,kBAAkB;QAC7B,eAAe,EAAE;YACf,MAAM,EAAE;gBACN,cAAc,EAAE,QAAQ;gBACxB,IAAI,EAAE;oBACJ,IAAI,EAAE,YAAY;oBAClB,KAAK,EAAE,EAAE,IAAI,EAAE,EAAE,IAAI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F,MAAM,CAAC,MAAM,gCAAgC,GAA+B;IAC1E,IAAI,EAAE;QACJ,IAAI,EAAE,WAAW;QACjB,SAAS,EAAE,kCAAkC;QAC7C,eAAe,EAAE;YACf,YAAY,EAAE;gBACZ,cAAc,EAAE,iBAAiB;gBACjC,IAAI,EAAE;oBACJ,IAAI,EAAE,QAAQ;iBACf;aACF;SACF;KACF;CACF,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 * as coreClient from \"@azure/core-client\";\n\nexport const SipConfiguration: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"SipConfiguration\",\n modelProperties: {\n trunks: {\n serializedName: \"trunks\",\n type: {\n name: \"Dictionary\",\n value: { type: { name: \"Composite\", className: \"SipTrunk\" } }\n }\n },\n routes: {\n constraints: {\n MaxItems: 250\n },\n serializedName: \"routes\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"SipTrunkRoute\"\n }\n }\n }\n }\n }\n }\n};\n\nexport const SipTrunk: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"SipTrunk\",\n modelProperties: {\n sipSignalingPort: {\n serializedName: \"sipSignalingPort\",\n required: true,\n type: {\n name: \"Number\"\n }\n }\n }\n }\n};\n\nexport const SipTrunkRoute: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"SipTrunkRoute\",\n modelProperties: {\n description: {\n constraints: {\n MaxLength: 1024\n },\n serializedName: \"description\",\n type: {\n name: \"String\"\n }\n },\n name: {\n constraints: {\n MaxLength: 256\n },\n serializedName: \"name\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n numberPattern: {\n constraints: {\n MaxLength: 1024\n },\n serializedName: \"numberPattern\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n trunks: {\n constraints: {\n MaxItems: 250\n },\n serializedName: \"trunks\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"String\"\n }\n }\n }\n }\n }\n }\n};\n\nexport const CommunicationErrorResponse: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"CommunicationErrorResponse\",\n modelProperties: {\n error: {\n serializedName: \"error\",\n type: {\n name: \"Composite\",\n className: \"SipRoutingError\"\n }\n }\n }\n }\n};\n\nexport const SipRoutingError: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"SipRoutingError\",\n modelProperties: {\n code: {\n serializedName: \"code\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n message: {\n serializedName: \"message\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n target: {\n serializedName: \"target\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n details: {\n serializedName: \"details\",\n readOnly: true,\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"SipRoutingError\"\n }\n }\n }\n },\n innerError: {\n serializedName: \"innererror\",\n type: {\n name: \"Composite\",\n className: \"SipRoutingError\"\n }\n }\n }\n }\n};\n\nexport const SipConfigurationUpdate: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"SipConfigurationUpdate\",\n modelProperties: {\n trunks: {\n serializedName: \"trunks\",\n type: {\n name: \"Dictionary\",\n value: { type: { name: \"Composite\", className: \"TrunkUpdate\" } }\n }\n },\n routes: {\n constraints: {\n MaxItems: 250\n },\n serializedName: \"routes\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"SipTrunkRoute\"\n }\n }\n }\n }\n }\n }\n};\n\nexport const TrunkUpdate: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"TrunkUpdate\",\n modelProperties: {\n sipSignalingPort: {\n serializedName: \"sipSignalingPort\",\n type: {\n name: \"Number\"\n }\n }\n }\n }\n};\n\nexport const SipRoutingGetExceptionHeaders: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"SipRoutingGetExceptionHeaders\",\n modelProperties: {\n xMsErrorCode: {\n serializedName: \"x-ms-error-code\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const SipRoutingUpdateExceptionHeaders: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"SipRoutingUpdateExceptionHeaders\",\n modelProperties: {\n xMsErrorCode: {\n serializedName: \"x-ms-error-code\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n"]}
|
@@ -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
|
8
|
+
import { SipConfigurationUpdate as SipConfigurationUpdateMapper } from "../models/mappers";
|
9
9
|
export const accept = {
|
10
10
|
parameterPath: "accept",
|
11
11
|
mapper: {
|
@@ -31,7 +31,7 @@ export const endpoint = {
|
|
31
31
|
export const apiVersion = {
|
32
32
|
parameterPath: "apiVersion",
|
33
33
|
mapper: {
|
34
|
-
defaultValue: "2023-
|
34
|
+
defaultValue: "2023-03-01",
|
35
35
|
isConstant: true,
|
36
36
|
serializedName: "api-version",
|
37
37
|
type: {
|
@@ -39,15 +39,6 @@ export const apiVersion = {
|
|
39
39
|
}
|
40
40
|
}
|
41
41
|
};
|
42
|
-
export const expand = {
|
43
|
-
parameterPath: ["options", "expand"],
|
44
|
-
mapper: {
|
45
|
-
serializedName: "expand",
|
46
|
-
type: {
|
47
|
-
name: "String"
|
48
|
-
}
|
49
|
-
}
|
50
|
-
};
|
51
42
|
export const contentType = {
|
52
43
|
parameterPath: ["options", "contentType"],
|
53
44
|
mapper: {
|
@@ -59,10 +50,6 @@ export const contentType = {
|
|
59
50
|
}
|
60
51
|
}
|
61
52
|
};
|
62
|
-
export const domains = {
|
63
|
-
parameterPath: ["options", "domains"],
|
64
|
-
mapper: SipConfigurationUpdateMapper
|
65
|
-
};
|
66
53
|
export const trunks = {
|
67
54
|
parameterPath: ["options", "trunks"],
|
68
55
|
mapper: SipConfigurationUpdateMapper
|
@@ -71,37 +58,4 @@ export const routes = {
|
|
71
58
|
parameterPath: ["options", "routes"],
|
72
59
|
mapper: SipConfigurationUpdateMapper
|
73
60
|
};
|
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
|
-
}
|
106
|
-
};
|
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":"AAAA;;;;;;GAMG;AAOH,OAAO,
|
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,mBAAmB,CAAC;AAE3F,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\";\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"]}
|
@@ -31,14 +31,6 @@ export class SipRoutingImpl {
|
|
31
31
|
update(options) {
|
32
32
|
return this.client.sendOperationRequest({ options }, updateOperationSpec);
|
33
33
|
}
|
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
34
|
}
|
43
35
|
// Operation Specifications
|
44
36
|
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
@@ -54,7 +46,7 @@ const getOperationSpec = {
|
|
54
46
|
headersMapper: Mappers.SipRoutingGetExceptionHeaders
|
55
47
|
}
|
56
48
|
},
|
57
|
-
queryParameters: [Parameters.apiVersion
|
49
|
+
queryParameters: [Parameters.apiVersion],
|
58
50
|
urlParameters: [Parameters.endpoint],
|
59
51
|
headerParameters: [Parameters.accept],
|
60
52
|
serializer
|
@@ -73,7 +65,6 @@ const updateOperationSpec = {
|
|
73
65
|
},
|
74
66
|
requestBody: {
|
75
67
|
parameterPath: {
|
76
|
-
domains: ["options", "domains"],
|
77
68
|
trunks: ["options", "trunks"],
|
78
69
|
routes: ["options", "routes"]
|
79
70
|
},
|
@@ -85,29 +76,4 @@ const updateOperationSpec = {
|
|
85
76
|
mediaType: "json",
|
86
77
|
serializer
|
87
78
|
};
|
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
|
112
|
-
};
|
113
79
|
//# sourceMappingURL=sipRouting.js.map
|
@@ -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,mBAAmB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,sBAAsB,CAAC;
|
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,mBAAmB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,sBAAsB,CAAC;AASnD,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\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers\";\nimport * as Parameters from \"../models/parameters\";\nimport { SipRoutingClientContext } from \"../sipRoutingClientContext\";\nimport {\n SipRoutingGetOptionalParams,\n SipRoutingGetResponse,\n SipRoutingUpdateOptionalParams,\n SipRoutingUpdateResponse\n} from \"../models\";\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 +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
|
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\";\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"]}
|
@@ -23,7 +23,7 @@ export class SipRoutingClientContext extends coreClient.ServiceClient {
|
|
23
23
|
const defaults = {
|
24
24
|
requestContentType: "application/json; charset=utf-8"
|
25
25
|
};
|
26
|
-
const packageDetails = `azsdk-js-communication-phone-numbers/1.
|
26
|
+
const packageDetails = `azsdk-js-communication-phone-numbers/1.2.1`;
|
27
27
|
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
28
28
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
29
29
|
: `${packageDetails}`;
|
@@ -34,7 +34,7 @@ export class SipRoutingClientContext extends coreClient.ServiceClient {
|
|
34
34
|
// Parameter assignments
|
35
35
|
this.endpoint = endpoint;
|
36
36
|
// Assigning values to Constant parameters
|
37
|
-
this.apiVersion = options.apiVersion || "2023-
|
37
|
+
this.apiVersion = options.apiVersion || "2023-03-01";
|
38
38
|
}
|
39
39
|
}
|
40
40
|
//# sourceMappingURL=sipRoutingClientContext.js.map
|
@@ -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;YAC1B,MAAM,IAAI,KAAK,CAAC,2BAA2B,CAAC,CAAC;SAC9C;QAED,0CAA0C;QAC1C,IAAI,CAAC,OAAO,EAAE;YACZ,OAAO,GAAG,EAAE,CAAC;SACd;QACD,MAAM,QAAQ,GAAmC;YAC/C,kBAAkB,EAAE,iCAAiC;SACtD,CAAC;QAEF,MAAM,cAAc,GAAG,
|
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;YAC1B,MAAM,IAAI,KAAK,CAAC,2BAA2B,CAAC,CAAC;SAC9C;QAED,0CAA0C;QAC1C,IAAI,CAAC,OAAO,EAAE;YACZ,OAAO,GAAG,EAAE,CAAC;SACd;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,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\";\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.2.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"]}
|
@@ -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.
|
12
|
+
packageVersion: "1.2.1"
|
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,
|
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.2.1\"\n});\n"]}
|
package/dist-esm/src/mappers.js
CHANGED
@@ -8,7 +8,8 @@ export function transformFromRestModel(trunks) {
|
|
8
8
|
const result = [];
|
9
9
|
if (trunks) {
|
10
10
|
Object.keys(trunks).forEach((fqdn) => {
|
11
|
-
|
11
|
+
const port = trunks[fqdn].sipSignalingPort;
|
12
|
+
result.push({ fqdn: fqdn, sipSignalingPort: port });
|
12
13
|
});
|
13
14
|
}
|
14
15
|
return result;
|
@@ -20,36 +21,7 @@ export function transformFromRestModel(trunks) {
|
|
20
21
|
export function transformIntoRestModel(trunks) {
|
21
22
|
const result = {};
|
22
23
|
trunks.forEach((trunk) => {
|
23
|
-
result[trunk.fqdn] = {
|
24
|
-
sipSignalingPort: trunk.sipSignalingPort,
|
25
|
-
enabled: trunk.enabled,
|
26
|
-
};
|
27
|
-
});
|
28
|
-
return result;
|
29
|
-
}
|
30
|
-
/**
|
31
|
-
* @internal
|
32
|
-
* Transforming SIP domains REST model to SDK model
|
33
|
-
*/
|
34
|
-
export function transformDomainsFromRestModel(domains) {
|
35
|
-
const result = [];
|
36
|
-
if (domains) {
|
37
|
-
Object.keys(domains).forEach((domain) => {
|
38
|
-
const currentDomain = domains[domain];
|
39
|
-
const enabledFlag = currentDomain.enabled;
|
40
|
-
result.push({ domainName: domain, enabled: enabledFlag });
|
41
|
-
});
|
42
|
-
}
|
43
|
-
return result;
|
44
|
-
}
|
45
|
-
/**
|
46
|
-
* @internal
|
47
|
-
* Transforming SIP domains SDK model to REST model
|
48
|
-
*/
|
49
|
-
export function transformDomainsIntoRestModel(domains) {
|
50
|
-
const result = {};
|
51
|
-
domains.forEach((domain) => {
|
52
|
-
result[domain.domainName] = { enabled: domain.enabled };
|
24
|
+
result[trunk.fqdn] = { sipSignalingPort: trunk.sipSignalingPort };
|
53
25
|
});
|
54
26
|
return result;
|
55
27
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"mappers.js","sourceRoot":"","sources":["../../src/mappers.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;
|
1
|
+
{"version":3,"file":"mappers.js","sourceRoot":"","sources":["../../src/mappers.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAKlC;;;GAGG;AACH,MAAM,UAAU,sBAAsB,CACpC,MAA4D;IAE5D,MAAM,MAAM,GAAe,EAAE,CAAC;IAE9B,IAAI,MAAM,EAAE;QACV,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,CAAC,IAAY,EAAE,EAAE;YAC3C,MAAM,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC,CAAC,gBAAgB,CAAC;YAC3C,MAAM,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,gBAAgB,EAAE,IAAI,EAAc,CAAC,CAAC;QAClE,CAAC,CAAC,CAAC;KACJ;IAED,OAAO,MAAM,CAAC;AAChB,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,sBAAsB,CAAC,MAAkB;IAGvD,MAAM,MAAM,GAA6C,EAAE,CAAC;IAE5D,MAAM,CAAC,OAAO,CAAC,CAAC,KAAe,EAAE,EAAE;QACjC,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,EAAE,gBAAgB,EAAE,KAAK,CAAC,gBAAgB,EAAkB,CAAC;IACpF,CAAC,CAAC,CAAC;IAEH,OAAO,MAAM,CAAC;AAChB,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport { SipTrunk } from \"./models\";\nimport { TrunkUpdate as RestSipTrunk } from \"./generated/src/siprouting/models\";\n\n/**\n * @internal\n * Transforming SIP trunks REST model to SDK model\n */\nexport function transformFromRestModel(\n trunks: { [propertyName: string]: RestSipTrunk } | undefined\n): SipTrunk[] {\n const result: SipTrunk[] = [];\n\n if (trunks) {\n Object.keys(trunks).forEach((fqdn: string) => {\n const port = trunks[fqdn].sipSignalingPort;\n result.push({ fqdn: fqdn, sipSignalingPort: port } as SipTrunk);\n });\n }\n\n return result;\n}\n\n/**\n * @internal\n * Transforming SIP trunks SDK model to REST model\n */\nexport function transformIntoRestModel(trunks: SipTrunk[]): {\n [propertyName: string]: RestSipTrunk;\n} {\n const result: { [propertyName: string]: RestSipTrunk } = {};\n\n trunks.forEach((trunk: SipTrunk) => {\n result[trunk.fqdn] = { sipSignalingPort: trunk.sipSignalingPort } as RestSipTrunk;\n });\n\n return result;\n}\n"]}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"models.js","sourceRoot":"","sources":["../../src/models.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport { OperationOptions } from \"@azure/core-client\";\nimport {\n PhoneNumberAssignmentType,\n PhoneNumberSearchRequest,\n PhoneNumbersListAreaCodesOptionalParams,\n PhoneNumberType,\n} from \"./generated/src/models/\";\
|
1
|
+
{"version":3,"file":"models.js","sourceRoot":"","sources":["../../src/models.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport { OperationOptions } from \"@azure/core-client\";\nimport {\n PhoneNumberAssignmentType,\n PhoneNumberSearchRequest,\n PhoneNumbersListAreaCodesOptionalParams,\n PhoneNumberType,\n} from \"./generated/src/models/\";\n\n/**\n * The result of the phone numbers purchase operation.\n */\nexport interface PurchasePhoneNumbersResult {}\n\n/**\n * The result of the phone number release operation.\n */\nexport interface ReleasePhoneNumberResult {}\n\n/**\n * Additional options for the get phone number request.\n */\nexport type GetPurchasedPhoneNumberOptions = OperationOptions;\n\n/**\n * Additional options that can be passed to the list phone numbers request.\n */\nexport interface ListPurchasedPhoneNumbersOptions extends OperationOptions {}\n\n/**\n * Represents a phone number search request to find phone numbers.\n * Found phone numbers are temporarily held for a following purchase.\n */\nexport interface SearchAvailablePhoneNumbersRequest extends PhoneNumberSearchRequest {\n /**\n * The ISO 3166-2 country code, e.g. US, representing the location of the search.\n */\n countryCode: string;\n}\n\n/**\n * Additional options that can be passed to the available countries request.\n */\nexport interface ListAvailableCountriesOptions extends OperationOptions {}\n\n/**\n * Additional options that can be passed to the Toll-Free area codes request.\n */\nexport interface ListTollFreeAreaCodesOptions\n extends Omit<\n PhoneNumbersListAreaCodesOptionalParams,\n \"assignmentType\" | \"locality\" | \"administrativeDivision\"\n > {}\n\n/**\n * Additional options that can be passed to the Geographic area codes request.\n */\nexport interface ListGeographicAreaCodesOptions extends PhoneNumbersListAreaCodesOptionalParams {}\n\n/**\n * Additional options that can be passed to the available localities request.\n */\nexport interface ListLocalitiesOptions extends OperationOptions {\n administrativeDivision?: string;\n}\n\n/**\n * Additional options for the search operator information request.\n */\nexport interface SearchOperatorInformationOptions extends OperationOptions {}\n\n/**\n * Additional options that can be passed to list SIP routes.\n */\nexport interface ListSipRoutesOptions extends OperationOptions {}\n\n/**\n * Additional options that can be passed to list SIP trunks.\n */\nexport interface ListSipTrunksOptions extends OperationOptions {}\n\n/**\n * Additional options that can be passed to the available offerings request.\n */\nexport interface ListOfferingsOptions extends OperationOptions {\n phoneNumberType?: PhoneNumberType;\n assignmentType?: PhoneNumberAssignmentType;\n}\n\nexport {\n PhoneNumberAdministrativeDivision,\n PhoneNumberAssignmentType,\n PhoneNumberAreaCode,\n PhoneNumberCapabilities,\n PhoneNumberCapabilitiesRequest,\n PhoneNumberCapabilityType,\n PhoneNumberCost,\n PhoneNumberCountry,\n PhoneNumbersListAreaCodesOptionalParams,\n PhoneNumberLocality,\n PhoneNumberOffering,\n PhoneNumberSearchRequest,\n PhoneNumberSearchResult,\n PhoneNumberSearchResultError,\n PhoneNumberType,\n PurchasedPhoneNumber,\n OperatorDetails,\n OperatorInformation,\n OperatorInformationResult,\n OperatorNumberType,\n} from \"./generated/src/models/\";\n\nexport { SipRoutingError, SipTrunkRoute } from \"./generated/src/siprouting/models\";\n\n/**\n * Represents a SIP trunk for routing calls. See RFC 4904.\n */\nexport interface SipTrunk {\n /**\n * Gets or sets FQDN of the trunk.\n */\n fqdn: string;\n /**\n * Gets or sets SIP signaling port of the trunk.\n */\n sipSignalingPort: number;\n}\n"]}
|