@azure/communication-sms 1.2.0-alpha.20241210.1 → 1.2.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/constants.js +1 -1
- package/dist/browser/constants.js.map +1 -1
- package/dist/browser/generated/src/models/index.d.ts +39 -0
- package/dist/browser/generated/src/models/index.d.ts.map +1 -1
- package/dist/browser/generated/src/models/index.js.map +1 -1
- package/dist/browser/generated/src/models/mappers.d.ts +4 -0
- package/dist/browser/generated/src/models/mappers.d.ts.map +1 -1
- package/dist/browser/generated/src/models/mappers.js +111 -0
- package/dist/browser/generated/src/models/mappers.js.map +1 -1
- package/dist/browser/generated/src/models/parameters.d.ts +1 -0
- package/dist/browser/generated/src/models/parameters.d.ts.map +1 -1
- package/dist/browser/generated/src/models/parameters.js +6 -2
- package/dist/browser/generated/src/models/parameters.js.map +1 -1
- package/dist/browser/generated/src/operations/index.d.ts +1 -0
- package/dist/browser/generated/src/operations/index.d.ts.map +1 -1
- package/dist/browser/generated/src/operations/index.js +1 -0
- package/dist/browser/generated/src/operations/index.js.map +1 -1
- package/dist/browser/generated/src/operations/optOuts.d.ts +31 -0
- package/dist/browser/generated/src/operations/optOuts.d.ts.map +1 -0
- package/dist/browser/generated/src/operations/optOuts.js +99 -0
- package/dist/browser/generated/src/operations/optOuts.js.map +1 -0
- package/dist/browser/generated/src/operationsInterfaces/index.d.ts +1 -0
- package/dist/browser/generated/src/operationsInterfaces/index.d.ts.map +1 -1
- package/dist/browser/generated/src/operationsInterfaces/index.js +1 -0
- package/dist/browser/generated/src/operationsInterfaces/index.js.map +1 -1
- package/dist/browser/generated/src/operationsInterfaces/optOuts.d.ts +23 -0
- package/dist/browser/generated/src/operationsInterfaces/optOuts.d.ts.map +1 -0
- package/dist/browser/generated/src/operationsInterfaces/optOuts.js +9 -0
- package/dist/browser/generated/src/operationsInterfaces/optOuts.js.map +1 -0
- package/dist/browser/generated/src/smsApiClient.d.ts +2 -1
- package/dist/browser/generated/src/smsApiClient.d.ts.map +1 -1
- package/dist/browser/generated/src/smsApiClient.js +4 -3
- package/dist/browser/generated/src/smsApiClient.js.map +1 -1
- package/dist/browser/generated/src/tracing.js +1 -1
- package/dist/browser/generated/src/tracing.js.map +1 -1
- package/dist/browser/optOutsClient.d.ts +105 -0
- package/dist/browser/optOutsClient.d.ts.map +1 -0
- package/dist/browser/optOutsClient.js +79 -0
- package/dist/browser/optOutsClient.js.map +1 -0
- package/dist/browser/smsClient.d.ts +109 -1
- package/dist/browser/smsClient.d.ts.map +1 -1
- package/dist/browser/smsClient.js +2 -0
- package/dist/browser/smsClient.js.map +1 -1
- package/dist/browser/utils/smsUtils.d.ts +2 -1
- package/dist/browser/utils/smsUtils.d.ts.map +1 -1
- package/dist/browser/utils/smsUtils.js +10 -0
- package/dist/browser/utils/smsUtils.js.map +1 -1
- package/dist/commonjs/constants.js +1 -1
- package/dist/commonjs/constants.js.map +1 -1
- package/dist/commonjs/generated/src/models/index.d.ts +39 -0
- package/dist/commonjs/generated/src/models/index.d.ts.map +1 -1
- package/dist/commonjs/generated/src/models/index.js.map +1 -1
- package/dist/commonjs/generated/src/models/mappers.d.ts +4 -0
- package/dist/commonjs/generated/src/models/mappers.d.ts.map +1 -1
- package/dist/commonjs/generated/src/models/mappers.js +112 -1
- package/dist/commonjs/generated/src/models/mappers.js.map +1 -1
- package/dist/commonjs/generated/src/models/parameters.d.ts +1 -0
- package/dist/commonjs/generated/src/models/parameters.d.ts.map +1 -1
- package/dist/commonjs/generated/src/models/parameters.js +6 -2
- package/dist/commonjs/generated/src/models/parameters.js.map +1 -1
- package/dist/commonjs/generated/src/operations/index.d.ts +1 -0
- package/dist/commonjs/generated/src/operations/index.d.ts.map +1 -1
- package/dist/commonjs/generated/src/operations/index.js +1 -0
- package/dist/commonjs/generated/src/operations/index.js.map +1 -1
- package/dist/commonjs/generated/src/operations/optOuts.d.ts +31 -0
- package/dist/commonjs/generated/src/operations/optOuts.d.ts.map +1 -0
- package/dist/commonjs/generated/src/operations/optOuts.js +104 -0
- package/dist/commonjs/generated/src/operations/optOuts.js.map +1 -0
- package/dist/commonjs/generated/src/operationsInterfaces/index.d.ts +1 -0
- package/dist/commonjs/generated/src/operationsInterfaces/index.d.ts.map +1 -1
- package/dist/commonjs/generated/src/operationsInterfaces/index.js +1 -0
- package/dist/commonjs/generated/src/operationsInterfaces/index.js.map +1 -1
- package/dist/commonjs/generated/src/operationsInterfaces/optOuts.d.ts +23 -0
- package/dist/commonjs/generated/src/operationsInterfaces/optOuts.d.ts.map +1 -0
- package/dist/commonjs/generated/src/operationsInterfaces/optOuts.js +10 -0
- package/dist/commonjs/generated/src/operationsInterfaces/optOuts.js.map +1 -0
- package/dist/commonjs/generated/src/smsApiClient.d.ts +2 -1
- package/dist/commonjs/generated/src/smsApiClient.d.ts.map +1 -1
- package/dist/commonjs/generated/src/smsApiClient.js +3 -2
- package/dist/commonjs/generated/src/smsApiClient.js.map +1 -1
- package/dist/commonjs/generated/src/tracing.js +1 -1
- package/dist/commonjs/generated/src/tracing.js.map +1 -1
- package/dist/commonjs/optOutsClient.d.ts +105 -0
- package/dist/commonjs/optOutsClient.d.ts.map +1 -0
- package/dist/commonjs/optOutsClient.js +83 -0
- package/dist/commonjs/optOutsClient.js.map +1 -0
- package/dist/commonjs/smsClient.d.ts +109 -1
- package/dist/commonjs/smsClient.d.ts.map +1 -1
- package/dist/commonjs/smsClient.js +2 -0
- package/dist/commonjs/smsClient.js.map +1 -1
- package/dist/commonjs/utils/smsUtils.d.ts +2 -1
- package/dist/commonjs/utils/smsUtils.d.ts.map +1 -1
- package/dist/commonjs/utils/smsUtils.js +11 -0
- package/dist/commonjs/utils/smsUtils.js.map +1 -1
- package/dist/esm/constants.js +1 -1
- package/dist/esm/constants.js.map +1 -1
- package/dist/esm/generated/src/models/index.d.ts +39 -0
- package/dist/esm/generated/src/models/index.d.ts.map +1 -1
- package/dist/esm/generated/src/models/index.js.map +1 -1
- package/dist/esm/generated/src/models/mappers.d.ts +4 -0
- package/dist/esm/generated/src/models/mappers.d.ts.map +1 -1
- package/dist/esm/generated/src/models/mappers.js +111 -0
- package/dist/esm/generated/src/models/mappers.js.map +1 -1
- package/dist/esm/generated/src/models/parameters.d.ts +1 -0
- package/dist/esm/generated/src/models/parameters.d.ts.map +1 -1
- package/dist/esm/generated/src/models/parameters.js +6 -2
- package/dist/esm/generated/src/models/parameters.js.map +1 -1
- package/dist/esm/generated/src/operations/index.d.ts +1 -0
- package/dist/esm/generated/src/operations/index.d.ts.map +1 -1
- package/dist/esm/generated/src/operations/index.js +1 -0
- package/dist/esm/generated/src/operations/index.js.map +1 -1
- package/dist/esm/generated/src/operations/optOuts.d.ts +31 -0
- package/dist/esm/generated/src/operations/optOuts.d.ts.map +1 -0
- package/dist/esm/generated/src/operations/optOuts.js +99 -0
- package/dist/esm/generated/src/operations/optOuts.js.map +1 -0
- package/dist/esm/generated/src/operationsInterfaces/index.d.ts +1 -0
- package/dist/esm/generated/src/operationsInterfaces/index.d.ts.map +1 -1
- package/dist/esm/generated/src/operationsInterfaces/index.js +1 -0
- package/dist/esm/generated/src/operationsInterfaces/index.js.map +1 -1
- package/dist/esm/generated/src/operationsInterfaces/optOuts.d.ts +23 -0
- package/dist/esm/generated/src/operationsInterfaces/optOuts.d.ts.map +1 -0
- package/dist/esm/generated/src/operationsInterfaces/optOuts.js +9 -0
- package/dist/esm/generated/src/operationsInterfaces/optOuts.js.map +1 -0
- package/dist/esm/generated/src/smsApiClient.d.ts +2 -1
- package/dist/esm/generated/src/smsApiClient.d.ts.map +1 -1
- package/dist/esm/generated/src/smsApiClient.js +4 -3
- package/dist/esm/generated/src/smsApiClient.js.map +1 -1
- package/dist/esm/generated/src/tracing.js +1 -1
- package/dist/esm/generated/src/tracing.js.map +1 -1
- package/dist/esm/optOutsClient.d.ts +105 -0
- package/dist/esm/optOutsClient.d.ts.map +1 -0
- package/dist/esm/optOutsClient.js +79 -0
- package/dist/esm/optOutsClient.js.map +1 -0
- package/dist/esm/smsClient.d.ts +109 -1
- package/dist/esm/smsClient.d.ts.map +1 -1
- package/dist/esm/smsClient.js +2 -0
- package/dist/esm/smsClient.js.map +1 -1
- package/dist/esm/utils/smsUtils.d.ts +2 -1
- package/dist/esm/utils/smsUtils.d.ts.map +1 -1
- package/dist/esm/utils/smsUtils.js +10 -0
- package/dist/esm/utils/smsUtils.js.map +1 -1
- package/dist/react-native/constants.js +1 -1
- package/dist/react-native/constants.js.map +1 -1
- package/dist/react-native/generated/src/models/index.d.ts +39 -0
- package/dist/react-native/generated/src/models/index.d.ts.map +1 -1
- package/dist/react-native/generated/src/models/index.js.map +1 -1
- package/dist/react-native/generated/src/models/mappers.d.ts +4 -0
- package/dist/react-native/generated/src/models/mappers.d.ts.map +1 -1
- package/dist/react-native/generated/src/models/mappers.js +111 -0
- package/dist/react-native/generated/src/models/mappers.js.map +1 -1
- package/dist/react-native/generated/src/models/parameters.d.ts +1 -0
- package/dist/react-native/generated/src/models/parameters.d.ts.map +1 -1
- package/dist/react-native/generated/src/models/parameters.js +6 -2
- package/dist/react-native/generated/src/models/parameters.js.map +1 -1
- package/dist/react-native/generated/src/operations/index.d.ts +1 -0
- package/dist/react-native/generated/src/operations/index.d.ts.map +1 -1
- package/dist/react-native/generated/src/operations/index.js +1 -0
- package/dist/react-native/generated/src/operations/index.js.map +1 -1
- package/dist/react-native/generated/src/operations/optOuts.d.ts +31 -0
- package/dist/react-native/generated/src/operations/optOuts.d.ts.map +1 -0
- package/dist/react-native/generated/src/operations/optOuts.js +99 -0
- package/dist/react-native/generated/src/operations/optOuts.js.map +1 -0
- package/dist/react-native/generated/src/operationsInterfaces/index.d.ts +1 -0
- package/dist/react-native/generated/src/operationsInterfaces/index.d.ts.map +1 -1
- package/dist/react-native/generated/src/operationsInterfaces/index.js +1 -0
- package/dist/react-native/generated/src/operationsInterfaces/index.js.map +1 -1
- package/dist/react-native/generated/src/operationsInterfaces/optOuts.d.ts +23 -0
- package/dist/react-native/generated/src/operationsInterfaces/optOuts.d.ts.map +1 -0
- package/dist/react-native/generated/src/operationsInterfaces/optOuts.js +9 -0
- package/dist/react-native/generated/src/operationsInterfaces/optOuts.js.map +1 -0
- package/dist/react-native/generated/src/smsApiClient.d.ts +2 -1
- package/dist/react-native/generated/src/smsApiClient.d.ts.map +1 -1
- package/dist/react-native/generated/src/smsApiClient.js +4 -3
- package/dist/react-native/generated/src/smsApiClient.js.map +1 -1
- package/dist/react-native/generated/src/tracing.js +1 -1
- package/dist/react-native/generated/src/tracing.js.map +1 -1
- package/dist/react-native/optOutsClient.d.ts +105 -0
- package/dist/react-native/optOutsClient.d.ts.map +1 -0
- package/dist/react-native/optOutsClient.js +79 -0
- package/dist/react-native/optOutsClient.js.map +1 -0
- package/dist/react-native/smsClient.d.ts +109 -1
- package/dist/react-native/smsClient.d.ts.map +1 -1
- package/dist/react-native/smsClient.js +2 -0
- package/dist/react-native/smsClient.js.map +1 -1
- package/dist/react-native/utils/smsUtils.d.ts +2 -1
- package/dist/react-native/utils/smsUtils.d.ts.map +1 -1
- package/dist/react-native/utils/smsUtils.js +10 -0
- package/dist/react-native/utils/smsUtils.js.map +1 -1
- package/package.json +5 -5
|
@@ -176,4 +176,115 @@ export const SmsSendResponseItem = {
|
|
|
176
176
|
},
|
|
177
177
|
},
|
|
178
178
|
};
|
|
179
|
+
export const OptOutRequest = {
|
|
180
|
+
type: {
|
|
181
|
+
name: "Composite",
|
|
182
|
+
className: "OptOutRequest",
|
|
183
|
+
modelProperties: {
|
|
184
|
+
from: {
|
|
185
|
+
constraints: {
|
|
186
|
+
MinLength: 1,
|
|
187
|
+
},
|
|
188
|
+
serializedName: "from",
|
|
189
|
+
required: true,
|
|
190
|
+
type: {
|
|
191
|
+
name: "String",
|
|
192
|
+
},
|
|
193
|
+
},
|
|
194
|
+
recipients: {
|
|
195
|
+
constraints: {
|
|
196
|
+
MinItems: 1,
|
|
197
|
+
MaxItems: 100,
|
|
198
|
+
},
|
|
199
|
+
serializedName: "recipients",
|
|
200
|
+
required: true,
|
|
201
|
+
type: {
|
|
202
|
+
name: "Sequence",
|
|
203
|
+
element: {
|
|
204
|
+
type: {
|
|
205
|
+
name: "Composite",
|
|
206
|
+
className: "OptOutRecipient",
|
|
207
|
+
},
|
|
208
|
+
},
|
|
209
|
+
},
|
|
210
|
+
},
|
|
211
|
+
},
|
|
212
|
+
},
|
|
213
|
+
};
|
|
214
|
+
export const OptOutRecipient = {
|
|
215
|
+
type: {
|
|
216
|
+
name: "Composite",
|
|
217
|
+
className: "OptOutRecipient",
|
|
218
|
+
modelProperties: {
|
|
219
|
+
to: {
|
|
220
|
+
constraints: {
|
|
221
|
+
MinLength: 1,
|
|
222
|
+
},
|
|
223
|
+
serializedName: "to",
|
|
224
|
+
required: true,
|
|
225
|
+
type: {
|
|
226
|
+
name: "String",
|
|
227
|
+
},
|
|
228
|
+
},
|
|
229
|
+
},
|
|
230
|
+
},
|
|
231
|
+
};
|
|
232
|
+
export const OptOutResponse = {
|
|
233
|
+
type: {
|
|
234
|
+
name: "Composite",
|
|
235
|
+
className: "OptOutResponse",
|
|
236
|
+
modelProperties: {
|
|
237
|
+
value: {
|
|
238
|
+
serializedName: "value",
|
|
239
|
+
required: true,
|
|
240
|
+
type: {
|
|
241
|
+
name: "Sequence",
|
|
242
|
+
element: {
|
|
243
|
+
type: {
|
|
244
|
+
name: "Composite",
|
|
245
|
+
className: "OptOutResponseItem",
|
|
246
|
+
},
|
|
247
|
+
},
|
|
248
|
+
},
|
|
249
|
+
},
|
|
250
|
+
},
|
|
251
|
+
},
|
|
252
|
+
};
|
|
253
|
+
export const OptOutResponseItem = {
|
|
254
|
+
type: {
|
|
255
|
+
name: "Composite",
|
|
256
|
+
className: "OptOutResponseItem",
|
|
257
|
+
modelProperties: {
|
|
258
|
+
to: {
|
|
259
|
+
constraints: {
|
|
260
|
+
MinLength: 1,
|
|
261
|
+
},
|
|
262
|
+
serializedName: "to",
|
|
263
|
+
required: true,
|
|
264
|
+
type: {
|
|
265
|
+
name: "String",
|
|
266
|
+
},
|
|
267
|
+
},
|
|
268
|
+
httpStatusCode: {
|
|
269
|
+
serializedName: "httpStatusCode",
|
|
270
|
+
required: true,
|
|
271
|
+
type: {
|
|
272
|
+
name: "Number",
|
|
273
|
+
},
|
|
274
|
+
},
|
|
275
|
+
isOptedOut: {
|
|
276
|
+
serializedName: "isOptedOut",
|
|
277
|
+
type: {
|
|
278
|
+
name: "Boolean",
|
|
279
|
+
},
|
|
280
|
+
},
|
|
281
|
+
errorMessage: {
|
|
282
|
+
serializedName: "errorMessage",
|
|
283
|
+
type: {
|
|
284
|
+
name: "String",
|
|
285
|
+
},
|
|
286
|
+
},
|
|
287
|
+
},
|
|
288
|
+
},
|
|
289
|
+
};
|
|
179
290
|
//# sourceMappingURL=mappers.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mappers.js","sourceRoot":"","sources":["../../../../../src/generated/src/models/mappers.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,MAAM,CAAC,MAAM,kBAAkB,GAA+B;IAC5D,IAAI,EAAE;QACJ,IAAI,EAAE,WAAW;QACjB,SAAS,EAAE,oBAAoB;QAC/B,eAAe,EAAE;YACf,IAAI,EAAE;gBACJ,cAAc,EAAE,MAAM;gBACtB,QAAQ,EAAE,IAAI;gBACd,IAAI,EAAE;oBACJ,IAAI,EAAE,QAAQ;iBACf;aACF;YACD,aAAa,EAAE;gBACb,cAAc,EAAE,eAAe;gBAC/B,QAAQ,EAAE,IAAI;gBACd,IAAI,EAAE;oBACJ,IAAI,EAAE,UAAU;oBAChB,OAAO,EAAE;wBACP,IAAI,EAAE;4BACJ,IAAI,EAAE,WAAW;4BACjB,SAAS,EAAE,cAAc;yBAC1B;qBACF;iBACF;aACF;YACD,OAAO,EAAE;gBACP,WAAW,EAAE;oBACX,SAAS,EAAE,IAAI;iBAChB;gBACD,cAAc,EAAE,SAAS;gBACzB,QAAQ,EAAE,IAAI;gBACd,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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 SendMessageRequest: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"SendMessageRequest\",\n modelProperties: {\n from: {\n serializedName: \"from\",\n required: true,\n type: {\n name: \"String\",\n },\n },\n smsRecipients: {\n serializedName: \"smsRecipients\",\n required: true,\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"SmsRecipient\",\n },\n },\n },\n },\n message: {\n constraints: {\n MaxLength: 2048,\n },\n serializedName: \"message\",\n required: true,\n type: {\n name: \"String\",\n },\n },\n smsSendOptions: {\n serializedName: \"smsSendOptions\",\n type: {\n name: \"Composite\",\n className: \"SmsSendOptions\",\n },\n },\n },\n },\n};\n\nexport const SmsRecipient: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"SmsRecipient\",\n modelProperties: {\n to: {\n serializedName: \"to\",\n required: true,\n type: {\n name: \"String\",\n },\n },\n repeatabilityRequestId: {\n serializedName: \"repeatabilityRequestId\",\n type: {\n name: \"String\",\n },\n },\n repeatabilityFirstSent: {\n serializedName: \"repeatabilityFirstSent\",\n type: {\n name: \"String\",\n },\n },\n },\n },\n};\n\nexport const SmsSendOptions: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"SmsSendOptions\",\n modelProperties: {\n enableDeliveryReport: {\n serializedName: \"enableDeliveryReport\",\n required: true,\n type: {\n name: \"Boolean\",\n },\n },\n tag: {\n serializedName: \"tag\",\n type: {\n name: \"String\",\n },\n },\n deliveryReportTimeoutInSeconds: {\n constraints: {\n InclusiveMaximum: 43200,\n InclusiveMinimum: 60,\n },\n serializedName: \"deliveryReportTimeoutInSeconds\",\n type: {\n name: \"Number\",\n },\n },\n },\n },\n};\n\nexport const SmsSendResponse: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"SmsSendResponse\",\n modelProperties: {\n value: {\n serializedName: \"value\",\n required: true,\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"SmsSendResponseItem\",\n },\n },\n },\n },\n },\n },\n};\n\nexport const SmsSendResponseItem: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"SmsSendResponseItem\",\n modelProperties: {\n to: {\n serializedName: \"to\",\n required: true,\n type: {\n name: \"String\",\n },\n },\n messageId: {\n serializedName: \"messageId\",\n type: {\n name: \"String\",\n },\n },\n httpStatusCode: {\n serializedName: \"httpStatusCode\",\n required: true,\n type: {\n name: \"Number\",\n },\n },\n repeatabilityResult: {\n serializedName: \"repeatabilityResult\",\n type: {\n name: \"String\",\n },\n },\n successful: {\n serializedName: \"successful\",\n required: true,\n type: {\n name: \"Boolean\",\n },\n },\n errorMessage: {\n serializedName: \"errorMessage\",\n type: {\n name: \"String\",\n },\n },\n },\n },\n};\n"]}
|
|
1
|
+
{"version":3,"file":"mappers.js","sourceRoot":"","sources":["../../../../../src/generated/src/models/mappers.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,MAAM,CAAC,MAAM,kBAAkB,GAA+B;IAC5D,IAAI,EAAE;QACJ,IAAI,EAAE,WAAW;QACjB,SAAS,EAAE,oBAAoB;QAC/B,eAAe,EAAE;YACf,IAAI,EAAE;gBACJ,cAAc,EAAE,MAAM;gBACtB,QAAQ,EAAE,IAAI;gBACd,IAAI,EAAE;oBACJ,IAAI,EAAE,QAAQ;iBACf;aACF;YACD,aAAa,EAAE;gBACb,cAAc,EAAE,eAAe;gBAC/B,QAAQ,EAAE,IAAI;gBACd,IAAI,EAAE;oBACJ,IAAI,EAAE,UAAU;oBAChB,OAAO,EAAE;wBACP,IAAI,EAAE;4BACJ,IAAI,EAAE,WAAW;4BACjB,SAAS,EAAE,cAAc;yBAC1B;qBACF;iBACF;aACF;YACD,OAAO,EAAE;gBACP,WAAW,EAAE;oBACX,SAAS,EAAE,IAAI;i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AAI,EAAE,WAAW;4BACjB,SAAS,EAAE,oBAAoB;yBAChC;qBACF;iBACF;aACF;SACF;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,kBAAkB,GAA+B;IAC5D,IAAI,EAAE;QACJ,IAAI,EAAE,WAAW;QACjB,SAAS,EAAE,oBAAoB;QAC/B,eAAe,EAAE;YACf,EAAE,EAAE;gBACF,WAAW,EAAE;oBACX,SAAS,EAAE,CAAC;iBACb;gBACD,cAAc,EAAE,IAAI;gBACpB,QAAQ,EAAE,IAAI;gBACd,IAAI,EAAE;oBACJ,IAAI,EAAE,QAAQ;iBACf;aACF;YACD,cAAc,EAAE;gBACd,cAAc,EAAE,gBAAgB;gBAChC,QAAQ,EAAE,IAAI;gBACd,IAAI,EAAE;oBACJ,IAAI,EAAE,QAAQ;iBACf;aACF;YACD,UAAU,EAAE;gBACV,cAAc,EAAE,YAAY;gBAC5B,IAAI,EAAE;oBACJ,IAAI,EAAE,SAAS;iBAChB;aACF;YACD,YAAY,EAAE;gBACZ,cAAc,EAAE,cAAc;gBAC9B,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 SendMessageRequest: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"SendMessageRequest\",\n modelProperties: {\n from: {\n serializedName: \"from\",\n required: true,\n type: {\n name: \"String\",\n },\n },\n smsRecipients: {\n serializedName: \"smsRecipients\",\n required: true,\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"SmsRecipient\",\n },\n },\n },\n },\n message: {\n constraints: {\n MaxLength: 2048,\n },\n serializedName: \"message\",\n required: true,\n type: {\n name: \"String\",\n },\n },\n smsSendOptions: {\n serializedName: \"smsSendOptions\",\n type: {\n name: \"Composite\",\n className: \"SmsSendOptions\",\n },\n },\n },\n },\n};\n\nexport const SmsRecipient: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"SmsRecipient\",\n modelProperties: {\n to: {\n serializedName: \"to\",\n required: true,\n type: {\n name: \"String\",\n },\n },\n repeatabilityRequestId: {\n serializedName: \"repeatabilityRequestId\",\n type: {\n name: \"String\",\n },\n },\n repeatabilityFirstSent: {\n serializedName: \"repeatabilityFirstSent\",\n type: {\n name: \"String\",\n },\n },\n },\n },\n};\n\nexport const SmsSendOptions: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"SmsSendOptions\",\n modelProperties: {\n enableDeliveryReport: {\n serializedName: \"enableDeliveryReport\",\n required: true,\n type: {\n name: \"Boolean\",\n },\n },\n tag: {\n serializedName: \"tag\",\n type: {\n name: \"String\",\n },\n },\n deliveryReportTimeoutInSeconds: {\n constraints: {\n InclusiveMaximum: 43200,\n InclusiveMinimum: 60,\n },\n serializedName: \"deliveryReportTimeoutInSeconds\",\n type: {\n name: \"Number\",\n },\n },\n },\n },\n};\n\nexport const SmsSendResponse: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"SmsSendResponse\",\n modelProperties: {\n value: {\n serializedName: \"value\",\n required: true,\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"SmsSendResponseItem\",\n },\n },\n },\n },\n },\n },\n};\n\nexport const SmsSendResponseItem: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"SmsSendResponseItem\",\n modelProperties: {\n to: {\n serializedName: \"to\",\n required: true,\n type: {\n name: \"String\",\n },\n },\n messageId: {\n serializedName: \"messageId\",\n type: {\n name: \"String\",\n },\n },\n httpStatusCode: {\n serializedName: \"httpStatusCode\",\n required: true,\n type: {\n name: \"Number\",\n },\n },\n repeatabilityResult: {\n serializedName: \"repeatabilityResult\",\n type: {\n name: \"String\",\n },\n },\n successful: {\n serializedName: \"successful\",\n required: true,\n type: {\n name: \"Boolean\",\n },\n },\n errorMessage: {\n serializedName: \"errorMessage\",\n type: {\n name: \"String\",\n },\n },\n },\n },\n};\n\nexport const OptOutRequest: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"OptOutRequest\",\n modelProperties: {\n from: {\n constraints: {\n MinLength: 1,\n },\n serializedName: \"from\",\n required: true,\n type: {\n name: \"String\",\n },\n },\n recipients: {\n constraints: {\n MinItems: 1,\n MaxItems: 100,\n },\n serializedName: \"recipients\",\n required: true,\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"OptOutRecipient\",\n },\n },\n },\n },\n },\n },\n};\n\nexport const OptOutRecipient: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"OptOutRecipient\",\n modelProperties: {\n to: {\n constraints: {\n MinLength: 1,\n },\n serializedName: \"to\",\n required: true,\n type: {\n name: \"String\",\n },\n },\n },\n },\n};\n\nexport const OptOutResponse: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"OptOutResponse\",\n modelProperties: {\n value: {\n serializedName: \"value\",\n required: true,\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"OptOutResponseItem\",\n },\n },\n },\n },\n },\n },\n};\n\nexport const OptOutResponseItem: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"OptOutResponseItem\",\n modelProperties: {\n to: {\n constraints: {\n MinLength: 1,\n },\n serializedName: \"to\",\n required: true,\n type: {\n name: \"String\",\n },\n },\n httpStatusCode: {\n serializedName: \"httpStatusCode\",\n required: true,\n type: {\n name: \"Number\",\n },\n },\n isOptedOut: {\n serializedName: \"isOptedOut\",\n type: {\n name: \"Boolean\",\n },\n },\n errorMessage: {\n serializedName: \"errorMessage\",\n type: {\n name: \"String\",\n },\n },\n },\n },\n};\n"]}
|
|
@@ -4,4 +4,5 @@ export declare const sendMessageRequest: OperationParameter;
|
|
|
4
4
|
export declare const accept: OperationParameter;
|
|
5
5
|
export declare const endpoint: OperationURLParameter;
|
|
6
6
|
export declare const apiVersion: OperationQueryParameter;
|
|
7
|
+
export declare const body: OperationParameter;
|
|
7
8
|
//# sourceMappingURL=parameters.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parameters.d.ts","sourceRoot":"","sources":["../../../../../src/generated/src/models/parameters.ts"],"names":[],"mappings":"AAQA,OAAO,EACL,kBAAkB,EAClB,qBAAqB,EACrB,uBAAuB,EACxB,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"parameters.d.ts","sourceRoot":"","sources":["../../../../../src/generated/src/models/parameters.ts"],"names":[],"mappings":"AAQA,OAAO,EACL,kBAAkB,EAClB,qBAAqB,EACrB,uBAAuB,EACxB,MAAM,oBAAoB,CAAC;AAM5B,eAAO,MAAM,WAAW,EAAE,kBAUzB,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,kBAGhC,CAAC;AAEF,eAAO,MAAM,MAAM,EAAE,kBAUpB,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,qBAUtB,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,uBAUxB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,kBAGlB,CAAC"}
|
|
@@ -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 { SendMessageRequest as SendMessageRequestMapper } from "../models/mappers.js";
|
|
8
|
+
import { SendMessageRequest as SendMessageRequestMapper, OptOutRequest as OptOutRequestMapper, } from "../models/mappers.js";
|
|
9
9
|
export const contentType = {
|
|
10
10
|
parameterPath: ["options", "contentType"],
|
|
11
11
|
mapper: {
|
|
@@ -46,7 +46,7 @@ export const endpoint = {
|
|
|
46
46
|
export const apiVersion = {
|
|
47
47
|
parameterPath: "apiVersion",
|
|
48
48
|
mapper: {
|
|
49
|
-
defaultValue: "2024-
|
|
49
|
+
defaultValue: "2024-12-10-preview",
|
|
50
50
|
isConstant: true,
|
|
51
51
|
serializedName: "api-version",
|
|
52
52
|
type: {
|
|
@@ -54,4 +54,8 @@ export const apiVersion = {
|
|
|
54
54
|
},
|
|
55
55
|
},
|
|
56
56
|
};
|
|
57
|
+
export const body = {
|
|
58
|
+
parameterPath: "body",
|
|
59
|
+
mapper: OptOutRequestMapper,
|
|
60
|
+
};
|
|
57
61
|
//# sourceMappingURL=parameters.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parameters.js","sourceRoot":"","sources":["../../../../../src/generated/src/models/parameters.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAOH,OAAO,
|
|
1
|
+
{"version":3,"file":"parameters.js","sourceRoot":"","sources":["../../../../../src/generated/src/models/parameters.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAOH,OAAO,EACL,kBAAkB,IAAI,wBAAwB,EAC9C,aAAa,IAAI,mBAAmB,GACrC,MAAM,sBAAsB,CAAC;AAE9B,MAAM,CAAC,MAAM,WAAW,GAAuB;IAC7C,aAAa,EAAE,CAAC,SAAS,EAAE,aAAa,CAAC;IACzC,MAAM,EAAE;QACN,YAAY,EAAE,kBAAkB;QAChC,UAAU,EAAE,IAAI;QAChB,cAAc,EAAE,cAAc;QAC9B,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;SACf;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,kBAAkB,GAAuB;IACpD,aAAa,EAAE,oBAAoB;IACnC,MAAM,EAAE,wBAAwB;CACjC,CAAC;AAEF,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,oBAAoB;QAClC,UAAU,EAAE,IAAI;QAChB,cAAc,EAAE,aAAa;QAC7B,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;SACf;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAuB;IACtC,aAAa,EAAE,MAAM;IACrB,MAAM,EAAE,mBAAmB;CAC5B,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 {\n SendMessageRequest as SendMessageRequestMapper,\n OptOutRequest as OptOutRequestMapper,\n} from \"../models/mappers.js\";\n\nexport const contentType: 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 sendMessageRequest: OperationParameter = {\n parameterPath: \"sendMessageRequest\",\n mapper: SendMessageRequestMapper,\n};\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-12-10-preview\",\n isConstant: true,\n serializedName: \"api-version\",\n type: {\n name: \"String\",\n },\n },\n};\n\nexport const body: OperationParameter = {\n parameterPath: \"body\",\n mapper: OptOutRequestMapper,\n};\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/generated/src/operations/index.ts"],"names":[],"mappings":"AAQA,cAAc,UAAU,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/generated/src/operations/index.ts"],"names":[],"mappings":"AAQA,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/generated/src/operations/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,UAAU,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\nexport * from \"./sms.js\";\n"]}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/generated/src/operations/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,UAAU,CAAC;AACzB,cAAc,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\nexport * from \"./sms.js\";\nexport * from \"./optOuts.js\";\n"]}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { OptOuts } from "../operationsInterfaces/index.js";
|
|
2
|
+
import { SmsApiClient } from "../smsApiClient.js";
|
|
3
|
+
import { OptOutRequest, OptOutsAddOptionalParams, OptOutsAddResponse, OptOutsRemoveOptionalParams, OptOutsRemoveResponse, OptOutsCheckOptionalParams, OptOutsCheckResponse } from "../models/index.js";
|
|
4
|
+
/** Class containing OptOuts operations. */
|
|
5
|
+
export declare class OptOutsImpl implements OptOuts {
|
|
6
|
+
private readonly client;
|
|
7
|
+
/**
|
|
8
|
+
* Initialize a new instance of the class OptOuts class.
|
|
9
|
+
* @param client Reference to the service client
|
|
10
|
+
*/
|
|
11
|
+
constructor(client: SmsApiClient);
|
|
12
|
+
/**
|
|
13
|
+
* Add phone numbers to the optouts list which shall stop receiving messages from a sender number.
|
|
14
|
+
* @param body An opt out request.
|
|
15
|
+
* @param options The options parameters.
|
|
16
|
+
*/
|
|
17
|
+
add(body: OptOutRequest, options?: OptOutsAddOptionalParams): Promise<OptOutsAddResponse>;
|
|
18
|
+
/**
|
|
19
|
+
* Remove phone numbers from the optouts list.
|
|
20
|
+
* @param body An opt out request.
|
|
21
|
+
* @param options The options parameters.
|
|
22
|
+
*/
|
|
23
|
+
remove(body: OptOutRequest, options?: OptOutsRemoveOptionalParams): Promise<OptOutsRemoveResponse>;
|
|
24
|
+
/**
|
|
25
|
+
* Check the opt out status for a recipient phone number with a sender phone number.
|
|
26
|
+
* @param body An opt out request.
|
|
27
|
+
* @param options The options parameters.
|
|
28
|
+
*/
|
|
29
|
+
check(body: OptOutRequest, options?: OptOutsCheckOptionalParams): Promise<OptOutsCheckResponse>;
|
|
30
|
+
}
|
|
31
|
+
//# sourceMappingURL=optOuts.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"optOuts.d.ts","sourceRoot":"","sources":["../../../../../src/generated/src/operations/optOuts.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,OAAO,EAAE,MAAM,kCAAkC,CAAC;AAI3D,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EACL,aAAa,EACb,wBAAwB,EACxB,kBAAkB,EAClB,2BAA2B,EAC3B,qBAAqB,EACrB,0BAA0B,EAC1B,oBAAoB,EACrB,MAAM,oBAAoB,CAAC;AAE5B,2CAA2C;AAC3C,qBAAa,WAAY,YAAW,OAAO;IACzC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAe;IAEtC;;;OAGG;gBACS,MAAM,EAAE,YAAY;IAIhC;;;;OAIG;IACG,GAAG,CACP,IAAI,EAAE,aAAa,EACnB,OAAO,CAAC,EAAE,wBAAwB,GACjC,OAAO,CAAC,kBAAkB,CAAC;IAa9B;;;;OAIG;IACG,MAAM,CACV,IAAI,EAAE,aAAa,EACnB,OAAO,CAAC,EAAE,2BAA2B,GACpC,OAAO,CAAC,qBAAqB,CAAC;IAajC;;;;OAIG;IACG,KAAK,CACT,IAAI,EAAE,aAAa,EACnB,OAAO,CAAC,EAAE,0BAA0B,GACnC,OAAO,CAAC,oBAAoB,CAAC;CAYjC"}
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
import { tracingClient } from "../tracing.js";
|
|
9
|
+
import * as coreClient from "@azure/core-client";
|
|
10
|
+
import * as Mappers from "../models/mappers.js";
|
|
11
|
+
import * as Parameters from "../models/parameters.js";
|
|
12
|
+
/** Class containing OptOuts operations. */
|
|
13
|
+
export class OptOutsImpl {
|
|
14
|
+
/**
|
|
15
|
+
* Initialize a new instance of the class OptOuts class.
|
|
16
|
+
* @param client Reference to the service client
|
|
17
|
+
*/
|
|
18
|
+
constructor(client) {
|
|
19
|
+
this.client = client;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Add phone numbers to the optouts list which shall stop receiving messages from a sender number.
|
|
23
|
+
* @param body An opt out request.
|
|
24
|
+
* @param options The options parameters.
|
|
25
|
+
*/
|
|
26
|
+
async add(body, options) {
|
|
27
|
+
return tracingClient.withSpan("SmsApiClient.add", options !== null && options !== void 0 ? options : {}, async (options) => {
|
|
28
|
+
return this.client.sendOperationRequest({ body, options }, addOperationSpec);
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Remove phone numbers from the optouts list.
|
|
33
|
+
* @param body An opt out request.
|
|
34
|
+
* @param options The options parameters.
|
|
35
|
+
*/
|
|
36
|
+
async remove(body, options) {
|
|
37
|
+
return tracingClient.withSpan("SmsApiClient.remove", options !== null && options !== void 0 ? options : {}, async (options) => {
|
|
38
|
+
return this.client.sendOperationRequest({ body, options }, removeOperationSpec);
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Check the opt out status for a recipient phone number with a sender phone number.
|
|
43
|
+
* @param body An opt out request.
|
|
44
|
+
* @param options The options parameters.
|
|
45
|
+
*/
|
|
46
|
+
async check(body, options) {
|
|
47
|
+
return tracingClient.withSpan("SmsApiClient.check", options !== null && options !== void 0 ? options : {}, async (options) => {
|
|
48
|
+
return this.client.sendOperationRequest({ body, options }, checkOperationSpec);
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
// Operation Specifications
|
|
53
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
54
|
+
const addOperationSpec = {
|
|
55
|
+
path: "/sms/optouts:add",
|
|
56
|
+
httpMethod: "POST",
|
|
57
|
+
responses: {
|
|
58
|
+
200: {
|
|
59
|
+
bodyMapper: Mappers.OptOutResponse,
|
|
60
|
+
},
|
|
61
|
+
},
|
|
62
|
+
requestBody: Parameters.body,
|
|
63
|
+
queryParameters: [Parameters.apiVersion],
|
|
64
|
+
urlParameters: [Parameters.endpoint],
|
|
65
|
+
headerParameters: [Parameters.contentType, Parameters.accept],
|
|
66
|
+
mediaType: "json",
|
|
67
|
+
serializer,
|
|
68
|
+
};
|
|
69
|
+
const removeOperationSpec = {
|
|
70
|
+
path: "/sms/optouts:remove",
|
|
71
|
+
httpMethod: "POST",
|
|
72
|
+
responses: {
|
|
73
|
+
200: {
|
|
74
|
+
bodyMapper: Mappers.OptOutResponse,
|
|
75
|
+
},
|
|
76
|
+
},
|
|
77
|
+
requestBody: Parameters.body,
|
|
78
|
+
queryParameters: [Parameters.apiVersion],
|
|
79
|
+
urlParameters: [Parameters.endpoint],
|
|
80
|
+
headerParameters: [Parameters.contentType, Parameters.accept],
|
|
81
|
+
mediaType: "json",
|
|
82
|
+
serializer,
|
|
83
|
+
};
|
|
84
|
+
const checkOperationSpec = {
|
|
85
|
+
path: "/sms/optouts:check",
|
|
86
|
+
httpMethod: "POST",
|
|
87
|
+
responses: {
|
|
88
|
+
200: {
|
|
89
|
+
bodyMapper: Mappers.OptOutResponse,
|
|
90
|
+
},
|
|
91
|
+
},
|
|
92
|
+
requestBody: Parameters.body,
|
|
93
|
+
queryParameters: [Parameters.apiVersion],
|
|
94
|
+
urlParameters: [Parameters.endpoint],
|
|
95
|
+
headerParameters: [Parameters.contentType, Parameters.accept],
|
|
96
|
+
mediaType: "json",
|
|
97
|
+
serializer,
|
|
98
|
+
};
|
|
99
|
+
//# sourceMappingURL=optOuts.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"optOuts.js","sourceRoot":"","sources":["../../../../../src/generated/src/operations/optOuts.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAE9C,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAYtD,2CAA2C;AAC3C,MAAM,OAAO,WAAW;IAGtB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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 { tracingClient } from \"../tracing.js\";\nimport { OptOuts } 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 { SmsApiClient } from \"../smsApiClient.js\";\nimport {\n OptOutRequest,\n OptOutsAddOptionalParams,\n OptOutsAddResponse,\n OptOutsRemoveOptionalParams,\n OptOutsRemoveResponse,\n OptOutsCheckOptionalParams,\n OptOutsCheckResponse,\n} from \"../models/index.js\";\n\n/** Class containing OptOuts operations. */\nexport class OptOutsImpl implements OptOuts {\n private readonly client: SmsApiClient;\n\n /**\n * Initialize a new instance of the class OptOuts class.\n * @param client Reference to the service client\n */\n constructor(client: SmsApiClient) {\n this.client = client;\n }\n\n /**\n * Add phone numbers to the optouts list which shall stop receiving messages from a sender number.\n * @param body An opt out request.\n * @param options The options parameters.\n */\n async add(\n body: OptOutRequest,\n options?: OptOutsAddOptionalParams,\n ): Promise<OptOutsAddResponse> {\n return tracingClient.withSpan(\n \"SmsApiClient.add\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { body, options },\n addOperationSpec,\n ) as Promise<OptOutsAddResponse>;\n },\n );\n }\n\n /**\n * Remove phone numbers from the optouts list.\n * @param body An opt out request.\n * @param options The options parameters.\n */\n async remove(\n body: OptOutRequest,\n options?: OptOutsRemoveOptionalParams,\n ): Promise<OptOutsRemoveResponse> {\n return tracingClient.withSpan(\n \"SmsApiClient.remove\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { body, options },\n removeOperationSpec,\n ) as Promise<OptOutsRemoveResponse>;\n },\n );\n }\n\n /**\n * Check the opt out status for a recipient phone number with a sender phone number.\n * @param body An opt out request.\n * @param options The options parameters.\n */\n async check(\n body: OptOutRequest,\n options?: OptOutsCheckOptionalParams,\n ): Promise<OptOutsCheckResponse> {\n return tracingClient.withSpan(\n \"SmsApiClient.check\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { body, options },\n checkOperationSpec,\n ) as Promise<OptOutsCheckResponse>;\n },\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst addOperationSpec: coreClient.OperationSpec = {\n path: \"/sms/optouts:add\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.OptOutResponse,\n },\n },\n requestBody: Parameters.body,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer,\n};\nconst removeOperationSpec: coreClient.OperationSpec = {\n path: \"/sms/optouts:remove\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.OptOutResponse,\n },\n },\n requestBody: Parameters.body,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer,\n};\nconst checkOperationSpec: coreClient.OperationSpec = {\n path: \"/sms/optouts:check\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.OptOutResponse,\n },\n },\n requestBody: Parameters.body,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer,\n};\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/generated/src/operationsInterfaces/index.ts"],"names":[],"mappings":"AAQA,cAAc,UAAU,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/generated/src/operationsInterfaces/index.ts"],"names":[],"mappings":"AAQA,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/generated/src/operationsInterfaces/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,UAAU,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\nexport * from \"./sms.js\";\n"]}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/generated/src/operationsInterfaces/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,UAAU,CAAC;AACzB,cAAc,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\nexport * from \"./sms.js\";\nexport * from \"./optOuts.js\";\n"]}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { OptOutRequest, OptOutsAddOptionalParams, OptOutsAddResponse, OptOutsRemoveOptionalParams, OptOutsRemoveResponse, OptOutsCheckOptionalParams, OptOutsCheckResponse } from "../models/index.js";
|
|
2
|
+
/** Interface representing a OptOuts. */
|
|
3
|
+
export interface OptOuts {
|
|
4
|
+
/**
|
|
5
|
+
* Add phone numbers to the optouts list which shall stop receiving messages from a sender number.
|
|
6
|
+
* @param body An opt out request.
|
|
7
|
+
* @param options The options parameters.
|
|
8
|
+
*/
|
|
9
|
+
add(body: OptOutRequest, options?: OptOutsAddOptionalParams): Promise<OptOutsAddResponse>;
|
|
10
|
+
/**
|
|
11
|
+
* Remove phone numbers from the optouts list.
|
|
12
|
+
* @param body An opt out request.
|
|
13
|
+
* @param options The options parameters.
|
|
14
|
+
*/
|
|
15
|
+
remove(body: OptOutRequest, options?: OptOutsRemoveOptionalParams): Promise<OptOutsRemoveResponse>;
|
|
16
|
+
/**
|
|
17
|
+
* Check the opt out status for a recipient phone number with a sender phone number.
|
|
18
|
+
* @param body An opt out request.
|
|
19
|
+
* @param options The options parameters.
|
|
20
|
+
*/
|
|
21
|
+
check(body: OptOutRequest, options?: OptOutsCheckOptionalParams): Promise<OptOutsCheckResponse>;
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=optOuts.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"optOuts.d.ts","sourceRoot":"","sources":["../../../../../src/generated/src/operationsInterfaces/optOuts.ts"],"names":[],"mappings":"AAQA,OAAO,EACL,aAAa,EACb,wBAAwB,EACxB,kBAAkB,EAClB,2BAA2B,EAC3B,qBAAqB,EACrB,0BAA0B,EAC1B,oBAAoB,EACrB,MAAM,oBAAoB,CAAC;AAE5B,wCAAwC;AACxC,MAAM,WAAW,OAAO;IACtB;;;;OAIG;IACH,GAAG,CACD,IAAI,EAAE,aAAa,EACnB,OAAO,CAAC,EAAE,wBAAwB,GACjC,OAAO,CAAC,kBAAkB,CAAC,CAAC;IAC/B;;;;OAIG;IACH,MAAM,CACJ,IAAI,EAAE,aAAa,EACnB,OAAO,CAAC,EAAE,2BAA2B,GACpC,OAAO,CAAC,qBAAqB,CAAC,CAAC;IAClC;;;;OAIG;IACH,KAAK,CACH,IAAI,EAAE,aAAa,EACnB,OAAO,CAAC,EAAE,0BAA0B,GACnC,OAAO,CAAC,oBAAoB,CAAC,CAAC;CAClC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=optOuts.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"optOuts.js","sourceRoot":"","sources":["../../../../../src/generated/src/operationsInterfaces/optOuts.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 OptOutRequest,\n OptOutsAddOptionalParams,\n OptOutsAddResponse,\n OptOutsRemoveOptionalParams,\n OptOutsRemoveResponse,\n OptOutsCheckOptionalParams,\n OptOutsCheckResponse,\n} from \"../models/index.js\";\n\n/** Interface representing a OptOuts. */\nexport interface OptOuts {\n /**\n * Add phone numbers to the optouts list which shall stop receiving messages from a sender number.\n * @param body An opt out request.\n * @param options The options parameters.\n */\n add(\n body: OptOutRequest,\n options?: OptOutsAddOptionalParams,\n ): Promise<OptOutsAddResponse>;\n /**\n * Remove phone numbers from the optouts list.\n * @param body An opt out request.\n * @param options The options parameters.\n */\n remove(\n body: OptOutRequest,\n options?: OptOutsRemoveOptionalParams,\n ): Promise<OptOutsRemoveResponse>;\n /**\n * Check the opt out status for a recipient phone number with a sender phone number.\n * @param body An opt out request.\n * @param options The options parameters.\n */\n check(\n body: OptOutRequest,\n options?: OptOutsCheckOptionalParams,\n ): Promise<OptOutsCheckResponse>;\n}\n"]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as coreClient from "@azure/core-client";
|
|
2
|
-
import { Sms } from "./operationsInterfaces/index.js";
|
|
2
|
+
import { Sms, OptOuts } from "./operationsInterfaces/index.js";
|
|
3
3
|
import { SmsApiClientOptionalParams } from "./models/index.js";
|
|
4
4
|
export declare class SmsApiClient extends coreClient.ServiceClient {
|
|
5
5
|
endpoint: string;
|
|
@@ -13,5 +13,6 @@ export declare class SmsApiClient extends coreClient.ServiceClient {
|
|
|
13
13
|
/** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
|
|
14
14
|
private addCustomApiVersionPolicy;
|
|
15
15
|
sms: Sms;
|
|
16
|
+
optOuts: OptOuts;
|
|
16
17
|
}
|
|
17
18
|
//# sourceMappingURL=smsApiClient.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"smsApiClient.d.ts","sourceRoot":"","sources":["../../../../src/generated/src/smsApiClient.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AAOjD,OAAO,EAAE,GAAG,EAAE,MAAM,iCAAiC,CAAC;
|
|
1
|
+
{"version":3,"file":"smsApiClient.d.ts","sourceRoot":"","sources":["../../../../src/generated/src/smsApiClient.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AAOjD,OAAO,EAAE,GAAG,EAAE,OAAO,EAAE,MAAM,iCAAiC,CAAC;AAC/D,OAAO,EAAE,0BAA0B,EAAE,MAAM,mBAAmB,CAAC;AAE/D,qBAAa,YAAa,SAAQ,UAAU,CAAC,aAAa;IACxD,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IAEnB;;;;OAIG;gBACS,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,0BAA0B;IAsClE,8GAA8G;IAC9G,OAAO,CAAC,yBAAyB;IA2BjC,GAAG,EAAE,GAAG,CAAC;IACT,OAAO,EAAE,OAAO,CAAC;CAClB"}
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
8
|
import * as coreClient from "@azure/core-client";
|
|
9
|
-
import { SmsImpl } from "./operations/index.js";
|
|
9
|
+
import { SmsImpl, OptOutsImpl } from "./operations/index.js";
|
|
10
10
|
export class SmsApiClient extends coreClient.ServiceClient {
|
|
11
11
|
/**
|
|
12
12
|
* Initializes a new instance of the SmsApiClient class.
|
|
@@ -25,7 +25,7 @@ export class SmsApiClient extends coreClient.ServiceClient {
|
|
|
25
25
|
const defaults = {
|
|
26
26
|
requestContentType: "application/json; charset=utf-8",
|
|
27
27
|
};
|
|
28
|
-
const packageDetails = `azsdk-js-communication-sms/1.2.0-beta.
|
|
28
|
+
const packageDetails = `azsdk-js-communication-sms/1.2.0-beta.2`;
|
|
29
29
|
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
30
30
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
31
31
|
: `${packageDetails}`;
|
|
@@ -36,8 +36,9 @@ export class SmsApiClient extends coreClient.ServiceClient {
|
|
|
36
36
|
// Parameter assignments
|
|
37
37
|
this.endpoint = endpoint;
|
|
38
38
|
// Assigning values to Constant parameters
|
|
39
|
-
this.apiVersion = options.apiVersion || "2024-
|
|
39
|
+
this.apiVersion = options.apiVersion || "2024-12-10-preview";
|
|
40
40
|
this.sms = new SmsImpl(this);
|
|
41
|
+
this.optOuts = new OptOutsImpl(this);
|
|
41
42
|
this.addCustomApiVersionPolicy(options.apiVersion);
|
|
42
43
|
}
|
|
43
44
|
/** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"smsApiClient.js","sourceRoot":"","sources":["../../../../src/generated/src/smsApiClient.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AAMjD,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"smsApiClient.js","sourceRoot":"","sources":["../../../../src/generated/src/smsApiClient.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AAMjD,OAAO,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAI7D,MAAM,OAAO,YAAa,SAAQ,UAAU,CAAC,aAAa;IAIxD;;;;OAIG;IAC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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;CAIF","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 { SmsImpl, OptOutsImpl } from \"./operations/index.js\";\nimport { Sms, OptOuts } from \"./operationsInterfaces/index.js\";\nimport { SmsApiClientOptionalParams } from \"./models/index.js\";\n\nexport class SmsApiClient extends coreClient.ServiceClient {\n endpoint: string;\n apiVersion: string;\n\n /**\n * Initializes a new instance of the SmsApiClient class.\n * @param endpoint The communication resource, for example https://my-resource.communication.azure.com\n * @param options The parameter options\n */\n constructor(endpoint: string, options?: SmsApiClientOptionalParams) {\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: SmsApiClientOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n };\n\n const packageDetails = `azsdk-js-communication-sms/1.2.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-12-10-preview\";\n this.sms = new SmsImpl(this);\n this.optOuts = new OptOutsImpl(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 sms: Sms;\n optOuts: OptOuts;\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-sms",
|
|
12
|
-
packageVersion: "1.2.0-beta.
|
|
12
|
+
packageVersion: "1.2.0-beta.2",
|
|
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,0BAA0B;IACvC,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-sms\",\n packageVersion: \"1.2.0-beta.
|
|
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,0BAA0B;IACvC,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-sms\",\n packageVersion: \"1.2.0-beta.2\",\n});\n"]}
|