@azure/communication-sms 1.2.0-beta.2 → 1.2.0-beta.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (104) hide show
  1. package/LICENSE +3 -3
  2. package/README.md +127 -16
  3. package/dist/browser/constants.js +1 -1
  4. package/dist/browser/constants.js.map +1 -1
  5. package/dist/browser/extractOperationOptions.d.ts.map +1 -1
  6. package/dist/browser/generated/src/models/index.d.ts +9 -0
  7. package/dist/browser/generated/src/models/index.d.ts.map +1 -1
  8. package/dist/browser/generated/src/models/index.js.map +1 -1
  9. package/dist/browser/generated/src/models/mappers.d.ts +1 -0
  10. package/dist/browser/generated/src/models/mappers.d.ts.map +1 -1
  11. package/dist/browser/generated/src/models/mappers.js +29 -0
  12. package/dist/browser/generated/src/models/mappers.js.map +1 -1
  13. package/dist/browser/generated/src/models/parameters.js +1 -1
  14. package/dist/browser/generated/src/models/parameters.js.map +1 -1
  15. package/dist/browser/generated/src/smsApiClient.js +2 -2
  16. package/dist/browser/generated/src/smsApiClient.js.map +1 -1
  17. package/dist/browser/generated/src/tracing.js +1 -1
  18. package/dist/browser/generated/src/tracing.js.map +1 -1
  19. package/dist/browser/optOutsClient.d.ts.map +1 -1
  20. package/dist/browser/optOutsClient.js +1 -1
  21. package/dist/browser/optOutsClient.js.map +1 -1
  22. package/dist/browser/smsClient.d.ts +9 -0
  23. package/dist/browser/smsClient.d.ts.map +1 -1
  24. package/dist/browser/smsClient.js.map +1 -1
  25. package/dist/browser/utils/smsUtils.d.ts.map +1 -1
  26. package/dist/browser/utils/smsUtils.js +1 -1
  27. package/dist/browser/utils/smsUtils.js.map +1 -1
  28. package/dist/commonjs/constants.js +1 -1
  29. package/dist/commonjs/constants.js.map +1 -1
  30. package/dist/commonjs/extractOperationOptions.d.ts.map +1 -1
  31. package/dist/commonjs/generated/src/models/index.d.ts +9 -0
  32. package/dist/commonjs/generated/src/models/index.d.ts.map +1 -1
  33. package/dist/commonjs/generated/src/models/index.js.map +1 -1
  34. package/dist/commonjs/generated/src/models/mappers.d.ts +1 -0
  35. package/dist/commonjs/generated/src/models/mappers.d.ts.map +1 -1
  36. package/dist/commonjs/generated/src/models/mappers.js +30 -1
  37. package/dist/commonjs/generated/src/models/mappers.js.map +1 -1
  38. package/dist/commonjs/generated/src/models/parameters.js +1 -1
  39. package/dist/commonjs/generated/src/models/parameters.js.map +1 -1
  40. package/dist/commonjs/generated/src/smsApiClient.js +2 -2
  41. package/dist/commonjs/generated/src/smsApiClient.js.map +1 -1
  42. package/dist/commonjs/generated/src/tracing.js +1 -1
  43. package/dist/commonjs/generated/src/tracing.js.map +1 -1
  44. package/dist/commonjs/optOutsClient.d.ts.map +1 -1
  45. package/dist/commonjs/optOutsClient.js +1 -1
  46. package/dist/commonjs/optOutsClient.js.map +1 -1
  47. package/dist/commonjs/smsClient.d.ts +9 -0
  48. package/dist/commonjs/smsClient.d.ts.map +1 -1
  49. package/dist/commonjs/smsClient.js.map +1 -1
  50. package/dist/commonjs/tsdoc-metadata.json +1 -1
  51. package/dist/commonjs/utils/smsUtils.d.ts.map +1 -1
  52. package/dist/commonjs/utils/smsUtils.js +1 -1
  53. package/dist/commonjs/utils/smsUtils.js.map +1 -1
  54. package/dist/esm/constants.js +1 -1
  55. package/dist/esm/constants.js.map +1 -1
  56. package/dist/esm/extractOperationOptions.d.ts.map +1 -1
  57. package/dist/esm/generated/src/models/index.d.ts +9 -0
  58. package/dist/esm/generated/src/models/index.d.ts.map +1 -1
  59. package/dist/esm/generated/src/models/index.js.map +1 -1
  60. package/dist/esm/generated/src/models/mappers.d.ts +1 -0
  61. package/dist/esm/generated/src/models/mappers.d.ts.map +1 -1
  62. package/dist/esm/generated/src/models/mappers.js +29 -0
  63. package/dist/esm/generated/src/models/mappers.js.map +1 -1
  64. package/dist/esm/generated/src/models/parameters.js +1 -1
  65. package/dist/esm/generated/src/models/parameters.js.map +1 -1
  66. package/dist/esm/generated/src/smsApiClient.js +2 -2
  67. package/dist/esm/generated/src/smsApiClient.js.map +1 -1
  68. package/dist/esm/generated/src/tracing.js +1 -1
  69. package/dist/esm/generated/src/tracing.js.map +1 -1
  70. package/dist/esm/optOutsClient.d.ts.map +1 -1
  71. package/dist/esm/optOutsClient.js +1 -1
  72. package/dist/esm/optOutsClient.js.map +1 -1
  73. package/dist/esm/smsClient.d.ts +9 -0
  74. package/dist/esm/smsClient.d.ts.map +1 -1
  75. package/dist/esm/smsClient.js.map +1 -1
  76. package/dist/esm/utils/smsUtils.d.ts.map +1 -1
  77. package/dist/esm/utils/smsUtils.js +1 -1
  78. package/dist/esm/utils/smsUtils.js.map +1 -1
  79. package/dist/react-native/constants.js +1 -1
  80. package/dist/react-native/constants.js.map +1 -1
  81. package/dist/react-native/extractOperationOptions.d.ts.map +1 -1
  82. package/dist/react-native/generated/src/models/index.d.ts +9 -0
  83. package/dist/react-native/generated/src/models/index.d.ts.map +1 -1
  84. package/dist/react-native/generated/src/models/index.js.map +1 -1
  85. package/dist/react-native/generated/src/models/mappers.d.ts +1 -0
  86. package/dist/react-native/generated/src/models/mappers.d.ts.map +1 -1
  87. package/dist/react-native/generated/src/models/mappers.js +29 -0
  88. package/dist/react-native/generated/src/models/mappers.js.map +1 -1
  89. package/dist/react-native/generated/src/models/parameters.js +1 -1
  90. package/dist/react-native/generated/src/models/parameters.js.map +1 -1
  91. package/dist/react-native/generated/src/smsApiClient.js +2 -2
  92. package/dist/react-native/generated/src/smsApiClient.js.map +1 -1
  93. package/dist/react-native/generated/src/tracing.js +1 -1
  94. package/dist/react-native/generated/src/tracing.js.map +1 -1
  95. package/dist/react-native/optOutsClient.d.ts.map +1 -1
  96. package/dist/react-native/optOutsClient.js +1 -1
  97. package/dist/react-native/optOutsClient.js.map +1 -1
  98. package/dist/react-native/smsClient.d.ts +9 -0
  99. package/dist/react-native/smsClient.d.ts.map +1 -1
  100. package/dist/react-native/smsClient.js.map +1 -1
  101. package/dist/react-native/utils/smsUtils.d.ts.map +1 -1
  102. package/dist/react-native/utils/smsUtils.js +1 -1
  103. package/dist/react-native/utils/smsUtils.js.map +1 -1
  104. package/package.json +26 -34
package/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
- The MIT License (MIT)
1
+ Copyright (c) Microsoft Corporation.
2
2
 
3
- Copyright (c) 2020 Microsoft
3
+ MIT License
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
@@ -12,7 +12,7 @@ furnished to do so, subject to the following conditions:
12
12
  The above copyright notice and this permission notice shall be included in all
13
13
  copies or substantial portions of the Software.
14
14
 
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
+ THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
16
  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
17
  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
18
  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
package/README.md CHANGED
@@ -42,7 +42,7 @@ You can get a key and/or connection string from your Communication Services reso
42
42
 
43
43
  ### Using a connection string
44
44
 
45
- ```typescript
45
+ ```ts snippet:ReadmeSampleCreateClient_ConnectionString
46
46
  import { SmsClient } from "@azure/communication-sms";
47
47
 
48
48
  const connectionString = `endpoint=https://<resource-name>.communication.azure.com/;accessKey=<Base64-Encoded-Key>`;
@@ -51,7 +51,7 @@ const client = new SmsClient(connectionString);
51
51
 
52
52
  ### Create a credential with `AzureKeyCredential`
53
53
 
54
- ```typescript
54
+ ```ts snippet:ReadmeSampleCreateClient_KeyCredential
55
55
  import { AzureKeyCredential } from "@azure/core-auth";
56
56
  import { SmsClient } from "@azure/communication-sms";
57
57
 
@@ -71,7 +71,7 @@ npm install @azure/identity
71
71
  The [`@azure/identity`][azure_identity] package provides a variety of credential types that your application can use to do this. The README for @azure/identity provides more details and samples to get you started.
72
72
  AZURE_CLIENT_SECRET, AZURE_CLIENT_ID and AZURE_TENANT_ID environment variables are needed to create a DefaultAzureCredential object.
73
73
 
74
- ```typescript
74
+ ```ts snippet:ReadmeSampleCreateClient_TokenCredential
75
75
  import { DefaultAzureCredential } from "@azure/identity";
76
76
  import { SmsClient } from "@azure/communication-sms";
77
77
 
@@ -86,17 +86,24 @@ To send an SMS message, call the `send` function from the `SmsClient`. You need
86
86
  You may also add pass in an options object to specify whether the delivery report should be enabled and set custom tags for the report.
87
87
  An array of `SmsSendResult` is returned. A `successful` flag is used to validate if each individual message was sent successfully.
88
88
 
89
- ```typescript
89
+ ```ts snippet:ReadmeSampleSendSms
90
+ import { DefaultAzureCredential } from "@azure/identity";
91
+ import { SmsClient } from "@azure/communication-sms";
92
+
93
+ const endpoint = "https://<resource-name>.communication.azure.com";
94
+ const credential = new DefaultAzureCredential();
95
+ const client = new SmsClient(endpoint, credential);
96
+
90
97
  const sendResults = await client.send(
91
98
  {
92
99
  from: "<from-phone-number>", // Your E.164 formatted phone number used to send SMS
93
100
  to: ["<to-phone-number-1>", "<to-phone-number-2>"], // The list of E.164 formatted phone numbers to which message is being sent
94
- message: "Weekly Promotion!" // The message being sent
101
+ message: "Weekly Promotion!", // The message being sent
95
102
  },
96
103
  {
97
104
  enableDeliveryReport: true,
98
- tag: "marketing"
99
- }
105
+ tag: "marketing",
106
+ },
100
107
  );
101
108
 
102
109
  for (const sendResult of sendResults) {
@@ -108,18 +115,112 @@ for (const sendResult of sendResults) {
108
115
  }
109
116
  ```
110
117
 
118
+ ## Check if a list of recipients is in the Opt Out list
119
+
120
+ To check if the recipients are in the Opt Out list, call the `check` function from the `SmsClient.optOuts` with a list of recipient phone numbers.
121
+
122
+ ```ts snippet:ReadmeSampleOptOutCheck
123
+ import { DefaultAzureCredential } from "@azure/identity";
124
+ import { SmsClient } from "@azure/communication-sms";
125
+
126
+ const endpoint = "https://<resource-name>.communication.azure.com";
127
+ const credential = new DefaultAzureCredential();
128
+ const client = new SmsClient(endpoint, credential);
129
+
130
+ const optOutCheckResults = await client.optOuts.check(
131
+ "<from-phone-number>", // Your E.164 formatted phone number used to send SMS
132
+ ["<to-phone-number-1>", "<to-phone-number-2>"],
133
+ );
134
+
135
+ for (const optOutCheckResult of optOutCheckResults) {
136
+ if (optOutCheckResult.httpStatusCode === 200) {
137
+ console.log("Success: ", optOutCheckResult);
138
+ } else {
139
+ console.error(
140
+ "Something went wrong when trying to send opt out check request: ",
141
+ optOutCheckResult,
142
+ );
143
+ }
144
+ }
145
+ ```
146
+
147
+ ## Add a list of recipients to Opt Out list
148
+
149
+ To add the list of recipients to Opt Out list, call the `add` function from the `SmsClient.optOuts` with a list of recipient phone numbers.
150
+
151
+ ```ts snippet:ReadmeSampleOptOutAdd
152
+ import { DefaultAzureCredential } from "@azure/identity";
153
+ import { SmsClient } from "@azure/communication-sms";
154
+
155
+ const endpoint = "https://<resource-name>.communication.azure.com";
156
+ const credential = new DefaultAzureCredential();
157
+ const client = new SmsClient(endpoint, credential);
158
+
159
+ const optOutAddResults = await client.optOuts.add(
160
+ "<from-phone-number>", // Your E.164 formatted phone number used to send SMS
161
+ ["<to-phone-number-1>", "<to-phone-number-2>"],
162
+ );
163
+
164
+ for (const optOutAddResult of optOutAddResults) {
165
+ if (optOutAddResult.httpStatusCode === 200) {
166
+ console.log("Success: ", optOutAddResult);
167
+ } else {
168
+ console.error(
169
+ "Something went wrong when trying to send opt out add request: ",
170
+ optOutAddResult,
171
+ );
172
+ }
173
+ }
174
+ ```
175
+
176
+ ## Remove a list of recipients from Opt Out list
177
+
178
+ To remove the list of recipients to Opt Out list, call the `remove` function from the `SmsClient.optOuts.` with a list of recipient phone numbers.
179
+
180
+ ```ts snippet:ReadmeSampleOptOutRemove
181
+ import { DefaultAzureCredential } from "@azure/identity";
182
+ import { SmsClient } from "@azure/communication-sms";
183
+
184
+ const endpoint = "https://<resource-name>.communication.azure.com";
185
+ const credential = new DefaultAzureCredential();
186
+ const client = new SmsClient(endpoint, credential);
187
+
188
+ const optOutRemoveResults = await client.optOuts.remove(
189
+ "<from-phone-number>", // Your E.164 formatted phone number used to send SMS
190
+ ["<to-phone-number-1>", "<to-phone-number-2>"],
191
+ );
192
+
193
+ for (const optOutRemoveResult of optOutRemoveResults) {
194
+ if (optOutRemoveResult.httpStatusCode === 200) {
195
+ console.log("Success: ", optOutRemoveResult);
196
+ } else {
197
+ console.error(
198
+ "Something went wrong when trying to send opt out remove request: ",
199
+ optOutRemoveResult,
200
+ );
201
+ }
202
+ }
203
+ ```
204
+
111
205
  ## Troubleshooting
112
206
 
113
207
  SMS operations will throw an exception if the request to the server fails.
114
208
  Exceptions will not be thrown if the error is caused by an individual message, only if something fails with the overall request.
115
209
  Please use the `successful` flag to validate each individual result to verify if the message was sent.
116
210
 
117
- ```typescript
211
+ ```ts snippet:ReadmeSampleSendSmsErrorHandling
212
+ import { DefaultAzureCredential } from "@azure/identity";
213
+ import { SmsClient } from "@azure/communication-sms";
214
+
215
+ const endpoint = "https://<resource-name>.communication.azure.com";
216
+ const credential = new DefaultAzureCredential();
217
+ const client = new SmsClient(endpoint, credential);
218
+
118
219
  try {
119
220
  const sendResults = await client.send({
120
221
  from: "<from-phone-number>", // Your E.164 formatted phone number used to send SMS
121
222
  to: ["<to-phone-number-1>", "<to-phone-number-2>"], // The list of E.164 formatted phone numbers to which message is being sent
122
- message: "Hello World via SMS!" // The message being sent
223
+ message: "Hello World via SMS!", // The message being sent
123
224
  });
124
225
  for (const sendResult of sendResults) {
125
226
  if (sendResult.successful) {
@@ -133,6 +234,18 @@ try {
133
234
  }
134
235
  ```
135
236
 
237
+ ### Logging
238
+
239
+ Enabling logging may help uncover useful information about failures. In order to see a log of HTTP requests and responses, set the `AZURE_LOG_LEVEL` environment variable to `info`. Alternatively, logging can be enabled at runtime by calling `setLogLevel` in the `@azure/logger`:
240
+
241
+ ```ts snippet:SetLogLevel
242
+ import { setLogLevel } from "@azure/logger";
243
+
244
+ setLogLevel("info");
245
+ ```
246
+
247
+ For more detailed instructions on how to enable logs, you can look at the [@azure/logger package docs](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/core/logger).
248
+
136
249
  ## Next steps
137
250
 
138
251
  - Please take a look at the [samples](https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/communication/communication-sms/samples) directory for detailed examples on how to use this library.
@@ -147,16 +260,14 @@ If you'd like to contribute to this library, please read the [contributing guide
147
260
 
148
261
  - [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js)
149
262
 
150
- [azure_cli]: https://docs.microsoft.com/cli/azure
263
+ [azure_cli]: https://learn.microsoft.com/cli/azure
151
264
  [azure_sub]: https://azure.microsoft.com/free/
152
265
  [azure_portal]: https://portal.azure.com
153
- [azure_powershell]: https://docs.microsoft.com/powershell/module/az.communication/new-azcommunicationservice
266
+ [azure_powershell]: https://learn.microsoft.com/powershell/module/az.communication/new-azcommunicationservice
154
267
  [defaultazurecredential]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/identity/identity#defaultazurecredential
155
268
  [azure_identity]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/identity/identity
156
- [get_phone_number_az_portal]: https://docs.microsoft.com/azure/communication-services/quickstarts/telephony/get-phone-number?pivots=platform-azp
269
+ [get_phone_number_az_portal]: https://learn.microsoft.com/azure/communication-services/quickstarts/telephony/get-phone-number?pivots=platform-azp
157
270
  [azure_communication-phone-numbers]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/communication/communication-phone-numbers
158
271
  [azure_communication-phone-numbers_readme]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/communication/communication-phone-numbers/README.md
159
- [handle_sms_events]: https://docs.microsoft.com/azure/communication-services/quickstarts/telephony-sms/handle-sms-events
160
- [next_steps]: https://docs.microsoft.com/azure/communication-services/quickstarts/telephony-sms/send?pivots=programming-language-javascript
161
-
162
- ![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js%2Fsdk%2Fcommunication%2Fcommunication-sms%2FREADME.png)
272
+ [handle_sms_events]: https://learn.microsoft.com/azure/communication-services/quickstarts/telephony-sms/handle-sms-events
273
+ [next_steps]: https://learn.microsoft.com/azure/communication-services/quickstarts/telephony-sms/send?pivots=programming-language-javascript
@@ -1,4 +1,4 @@
1
1
  // Copyright (c) Microsoft Corporation.
2
2
  // Licensed under the MIT License.
3
- export const SDK_VERSION = "1.2.0-beta.2";
3
+ export const SDK_VERSION = "1.2.0-beta.4";
4
4
  //# sourceMappingURL=constants.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../src/constants.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,MAAM,CAAC,MAAM,WAAW,GAAW,cAAc,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nexport const SDK_VERSION: string = \"1.2.0-beta.2\";\n"]}
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../src/constants.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,MAAM,CAAC,MAAM,WAAW,GAAW,cAAc,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nexport const SDK_VERSION: string = \"1.2.0-beta.4\";\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"extractOperationOptions.d.ts","sourceRoot":"","sources":["../../src/extractOperationOptions.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAE3D,eAAO,MAAM,uBAAuB,GAAI,CAAC,SAAS,gBAAgB,OAC3D,CAAC,KACL;IACD,gBAAgB,EAAE,gBAAgB,CAAC;IACnC,WAAW,EAAE,IAAI,CAAC,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,EAAE,MAAM,gBAAgB,CAAC,CAAC,CAAC;CAmBhE,CAAC"}
1
+ {"version":3,"file":"extractOperationOptions.d.ts","sourceRoot":"","sources":["../../src/extractOperationOptions.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAE3D,eAAO,MAAM,uBAAuB,GAAI,CAAC,SAAS,gBAAgB,EAChE,KAAK,CAAC,KACL;IACD,gBAAgB,EAAE,gBAAgB,CAAC;IACnC,WAAW,EAAE,IAAI,CAAC,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,EAAE,MAAM,gBAAgB,CAAC,CAAC,CAAC;CAmBhE,CAAC"}
@@ -27,6 +27,15 @@ export interface SmsSendOptions {
27
27
  tag?: string;
28
28
  /** Time to wait for a delivery report. After this time a delivery report with timeout error code is generated. */
29
29
  deliveryReportTimeoutInSeconds?: number;
30
+ /** Defines optional parameters for connecting with the Messaging Connect Partner to deliver SMS. */
31
+ messagingConnect?: MessagingConnectOptions;
32
+ }
33
+ /** Defines optional parameters for connecting with the Messaging Connect Partner to deliver SMS. */
34
+ export interface MessagingConnectOptions {
35
+ /** Represents the API key associated with the customer's account in the Messaging Connect Partner portal. */
36
+ apiKey: string;
37
+ /** Specifies the partner associated with the API key. */
38
+ partner: string;
30
39
  }
31
40
  /** Response for a successful or multi status send Sms request. */
32
41
  export interface SmsSendResponse {
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/generated/src/models/index.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AAEjD,2DAA2D;AAC3D,MAAM,WAAW,kBAAkB;IACjC,4FAA4F;IAC5F,IAAI,EAAE,MAAM,CAAC;IACb,uIAAuI;IACvI,aAAa,EAAE,YAAY,EAAE,CAAC;IAC9B,oHAAoH;IACpH,OAAO,EAAE,MAAM,CAAC;IAChB,uDAAuD;IACvD,cAAc,CAAC,EAAE,cAAc,CAAC;CACjC;AAED,kDAAkD;AAClD,MAAM,W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
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/generated/src/models/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAqFH,+FAA+F;AAC/F,MAAM,CAAN,IAAY,2CAKX;AALD,WAAY,2CAA2C;IACrD,eAAe;IACf,oEAAqB,CAAA;IACrB,eAAe;IACf,oEAAqB,CAAA;AACvB,CAAC,EALW,2CAA2C,KAA3C,2CAA2C,QAKtD","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\n/** Represents the properties of a send message request. */\nexport interface SendMessageRequest {\n /** The sender's phone number in E.164 format that is owned by the authenticated account. */\n from: string;\n /** The recipient's phone number in E.164 format. In this version, a minimum of 1 and upto 100 recipients in the list are supported. */\n smsRecipients: SmsRecipient[];\n /** The contents of the message that will be sent to the recipient. The allowable content is defined by RFC 5724. */\n message: string;\n /** Optional configuration for sending SMS messages. */\n smsSendOptions?: SmsSendOptions;\n}\n\n/** Recipient details for sending SMS messages. */\nexport interface SmsRecipient {\n /** The recipient's phone number in E.164 format. */\n to: string;\n /** If specified, the client directs that the request is repeatable; that is, the client can make the request multiple times with the same Repeatability-Request-ID and get back an appropriate response without the server executing the request multiple times. The value of the Repeatability-Request-ID is an opaque string representing a client-generated, 36-character hexadecimal case-insensitive encoding of a UUID (GUID), identifier for the request. */\n repeatabilityRequestId?: string;\n /** MUST be sent by clients to specify that a request is repeatable. Repeatability-First-Sent is used to specify the date and time at which the request was first created.eg- Tue, 26 Mar 2019 16:06:51 GMT */\n repeatabilityFirstSent?: string;\n}\n\n/** Optional configuration for sending SMS messages. */\nexport interface SmsSendOptions {\n /** Enable this flag to receive a delivery report for this message on the Azure Resource EventGrid. */\n enableDeliveryReport: boolean;\n /** Use this field to provide metadata that will then be sent back in the corresponding Delivery Report. */\n tag?: string;\n /** Time to wait for a delivery report. After this time a delivery report with timeout error code is generated. */\n deliveryReportTimeoutInSeconds?: number;\n}\n\n/** Response for a successful or multi status send Sms request. */\nexport interface SmsSendResponse {\n value: SmsSendResponseItem[];\n}\n\n/** Response for a single recipient. */\nexport interface SmsSendResponseItem {\n /** The recipient's phone number in E.164 format. */\n to: string;\n /** The identifier of the outgoing Sms message. Only present if message processed. */\n messageId?: string;\n /** HTTP Status code. */\n httpStatusCode: number;\n /** The result of a repeatable request with one of the case-insensitive values accepted or rejected. */\n repeatabilityResult?: SmsSendResponseItemRepeatabilityResult;\n /** Indicates if the message is processed successfully or not. */\n successful: boolean;\n /** Optional error message in case of 4xx/5xx/repeatable errors. */\n errorMessage?: string;\n}\n\n/** An opt out request. */\nexport interface OptOutRequest {\n /** The sender's identifier (typically phone number in E.164 format) that is owned by the authenticated account. */\n from: string;\n recipients: OptOutRecipient[];\n}\n\n/** A single opt out recipient number. */\nexport interface OptOutRecipient {\n /** The recipient's phone number (in E.164 format). */\n to: string;\n}\n\n/** Response for an opt out request. Validate the returned items in the response to see which recipients were successfully added or removed from the opt outs list. */\nexport interface OptOutResponse {\n value: OptOutResponseItem[];\n}\n\nexport interface OptOutResponseItem {\n /** The recipient phone number (in E.164 format). */\n to: string;\n httpStatusCode: number;\n /** Optional flag specifying if number was Opted Out from receiving messages */\n isOptedOut?: boolean;\n /** Optional error message in case of 4xx/5xx errors. */\n errorMessage?: string;\n}\n\n/** Known values of {@link SmsSendResponseItemRepeatabilityResult} that the service accepts. */\nexport enum KnownSmsSendResponseItemRepeatabilityResult {\n /** Accepted */\n Accepted = \"accepted\",\n /** Rejected */\n Rejected = \"rejected\",\n}\n\n/**\n * Defines values for SmsSendResponseItemRepeatabilityResult. \\\n * {@link KnownSmsSendResponseItemRepeatabilityResult} can be used interchangeably with SmsSendResponseItemRepeatabilityResult,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **accepted** \\\n * **rejected**\n */\nexport type SmsSendResponseItemRepeatabilityResult = string;\n\n/** Optional parameters. */\nexport interface SmsSendOptionalParams extends coreClient.OperationOptions {}\n\n/** Contains response data for the send operation. */\nexport type SmsSendOperationResponse = SmsSendResponse;\n\n/** Optional parameters. */\nexport interface OptOutsAddOptionalParams extends coreClient.OperationOptions {}\n\n/** Contains response data for the add operation. */\nexport type OptOutsAddResponse = OptOutResponse;\n\n/** Optional parameters. */\nexport interface OptOutsRemoveOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the remove operation. */\nexport type OptOutsRemoveResponse = OptOutResponse;\n\n/** Optional parameters. */\nexport interface OptOutsCheckOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the check operation. */\nexport type OptOutsCheckResponse = OptOutResponse;\n\n/** Optional parameters. */\nexport interface SmsApiClientOptionalParams\n extends coreClient.ServiceClientOptions {\n /** Api Version */\n apiVersion?: string;\n /** Overrides client endpoint. */\n endpoint?: string;\n}\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/generated/src/models/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AA+FH,+FAA+F;AAC/F,MAAM,CAAN,IAAY,2CAKX;AALD,WAAY,2CAA2C;IACrD,eAAe;IACf,oEAAqB,CAAA;IACrB,eAAe;IACf,oEAAqB,CAAA;AACvB,CAAC,EALW,2CAA2C,KAA3C,2CAA2C,QAKtD","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\n/** Represents the properties of a send message request. */\nexport interface SendMessageRequest {\n /** The sender's phone number in E.164 format that is owned by the authenticated account. */\n from: string;\n /** The recipient's phone number in E.164 format. In this version, a minimum of 1 and upto 100 recipients in the list are supported. */\n smsRecipients: SmsRecipient[];\n /** The contents of the message that will be sent to the recipient. The allowable content is defined by RFC 5724. */\n message: string;\n /** Optional configuration for sending SMS messages. */\n smsSendOptions?: SmsSendOptions;\n}\n\n/** Recipient details for sending SMS messages. */\nexport interface SmsRecipient {\n /** The recipient's phone number in E.164 format. */\n to: string;\n /** If specified, the client directs that the request is repeatable; that is, the client can make the request multiple times with the same Repeatability-Request-ID and get back an appropriate response without the server executing the request multiple times. The value of the Repeatability-Request-ID is an opaque string representing a client-generated, 36-character hexadecimal case-insensitive encoding of a UUID (GUID), identifier for the request. */\n repeatabilityRequestId?: string;\n /** MUST be sent by clients to specify that a request is repeatable. Repeatability-First-Sent is used to specify the date and time at which the request was first created.eg- Tue, 26 Mar 2019 16:06:51 GMT */\n repeatabilityFirstSent?: string;\n}\n\n/** Optional configuration for sending SMS messages. */\nexport interface SmsSendOptions {\n /** Enable this flag to receive a delivery report for this message on the Azure Resource EventGrid. */\n enableDeliveryReport: boolean;\n /** Use this field to provide metadata that will then be sent back in the corresponding Delivery Report. */\n tag?: string;\n /** Time to wait for a delivery report. After this time a delivery report with timeout error code is generated. */\n deliveryReportTimeoutInSeconds?: number;\n /** Defines optional parameters for connecting with the Messaging Connect Partner to deliver SMS. */\n messagingConnect?: MessagingConnectOptions;\n}\n\n/** Defines optional parameters for connecting with the Messaging Connect Partner to deliver SMS. */\nexport interface MessagingConnectOptions {\n /** Represents the API key associated with the customer's account in the Messaging Connect Partner portal. */\n apiKey: string;\n /** Specifies the partner associated with the API key. */\n partner: string;\n}\n\n/** Response for a successful or multi status send Sms request. */\nexport interface SmsSendResponse {\n value: SmsSendResponseItem[];\n}\n\n/** Response for a single recipient. */\nexport interface SmsSendResponseItem {\n /** The recipient's phone number in E.164 format. */\n to: string;\n /** The identifier of the outgoing Sms message. Only present if message processed. */\n messageId?: string;\n /** HTTP Status code. */\n httpStatusCode: number;\n /** The result of a repeatable request with one of the case-insensitive values accepted or rejected. */\n repeatabilityResult?: SmsSendResponseItemRepeatabilityResult;\n /** Indicates if the message is processed successfully or not. */\n successful: boolean;\n /** Optional error message in case of 4xx/5xx/repeatable errors. */\n errorMessage?: string;\n}\n\n/** An opt out request. */\nexport interface OptOutRequest {\n /** The sender's identifier (typically phone number in E.164 format) that is owned by the authenticated account. */\n from: string;\n recipients: OptOutRecipient[];\n}\n\n/** A single opt out recipient number. */\nexport interface OptOutRecipient {\n /** The recipient's phone number (in E.164 format). */\n to: string;\n}\n\n/** Response for an opt out request. Validate the returned items in the response to see which recipients were successfully added or removed from the opt outs list. */\nexport interface OptOutResponse {\n value: OptOutResponseItem[];\n}\n\nexport interface OptOutResponseItem {\n /** The recipient phone number (in E.164 format). */\n to: string;\n httpStatusCode: number;\n /** Optional flag specifying if number was Opted Out from receiving messages */\n isOptedOut?: boolean;\n /** Optional error message in case of 4xx/5xx errors. */\n errorMessage?: string;\n}\n\n/** Known values of {@link SmsSendResponseItemRepeatabilityResult} that the service accepts. */\nexport enum KnownSmsSendResponseItemRepeatabilityResult {\n /** Accepted */\n Accepted = \"accepted\",\n /** Rejected */\n Rejected = \"rejected\",\n}\n\n/**\n * Defines values for SmsSendResponseItemRepeatabilityResult. \\\n * {@link KnownSmsSendResponseItemRepeatabilityResult} can be used interchangeably with SmsSendResponseItemRepeatabilityResult,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **accepted** \\\n * **rejected**\n */\nexport type SmsSendResponseItemRepeatabilityResult = string;\n\n/** Optional parameters. */\nexport interface SmsSendOptionalParams extends coreClient.OperationOptions {}\n\n/** Contains response data for the send operation. */\nexport type SmsSendOperationResponse = SmsSendResponse;\n\n/** Optional parameters. */\nexport interface OptOutsAddOptionalParams extends coreClient.OperationOptions {}\n\n/** Contains response data for the add operation. */\nexport type OptOutsAddResponse = OptOutResponse;\n\n/** Optional parameters. */\nexport interface OptOutsRemoveOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the remove operation. */\nexport type OptOutsRemoveResponse = OptOutResponse;\n\n/** Optional parameters. */\nexport interface OptOutsCheckOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the check operation. */\nexport type OptOutsCheckResponse = OptOutResponse;\n\n/** Optional parameters. */\nexport interface SmsApiClientOptionalParams\n extends coreClient.ServiceClientOptions {\n /** Api Version */\n apiVersion?: string;\n /** Overrides client endpoint. */\n endpoint?: string;\n}\n"]}
@@ -2,6 +2,7 @@ import * as coreClient from "@azure/core-client";
2
2
  export declare const SendMessageRequest: coreClient.CompositeMapper;
3
3
  export declare const SmsRecipient: coreClient.CompositeMapper;
4
4
  export declare const SmsSendOptions: coreClient.CompositeMapper;
5
+ export declare const MessagingConnectOptions: coreClient.CompositeMapper;
5
6
  export declare const SmsSendResponse: coreClient.CompositeMapper;
6
7
  export declare const SmsSendResponseItem: coreClient.CompositeMapper;
7
8
  export declare const OptOutRequest: coreClient.CompositeMapper;
@@ -1 +1 @@
1
- {"version":3,"file":"mappers.d.ts","sourceRoot":"","sources":["../../../../../src/generated/src/models/mappers.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AAEjD,eAAO,MAAM,kBAAkB,EAAE,UAAU,CAAC,eA4C3C,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,UAAU,CAAC,eA0BrC,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,UAAU,CAAC,eA8BvC,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,UAAU,CAAC,eAoBxC,CAAC;AAEF,eAAO,MAAM,mBAAmB,EAAE,UAAU,CAAC,eA8C5C,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,UAAU,CAAC,eAkCtC,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,UAAU,CAAC,eAiBxC,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,UAAU,CAAC,eAoBvC,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,UAAU,CAAC,eAoC3C,CAAC"}
1
+ {"version":3,"file":"mappers.d.ts","sourceRoot":"","sources":["../../../../../src/generated/src/models/mappers.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AAEjD,eAAO,MAAM,kBAAkB,EAAE,UAAU,CAAC,eA4C3C,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,UAAU,CAAC,eA0BrC,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,UAAU,CAAC,eAqCvC,CAAC;AAEF,eAAO,MAAM,uBAAuB,EAAE,UAAU,CAAC,eAqBhD,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,UAAU,CAAC,eAoBxC,CAAC;AAEF,eAAO,MAAM,mBAAmB,EAAE,UAAU,CAAC,eA8C5C,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,UAAU,CAAC,eAkCtC,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,UAAU,CAAC,eAiBxC,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,UAAU,CAAC,eAoBvC,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,UAAU,CAAC,eAoC3C,CAAC"}
@@ -105,6 +105,35 @@ export const SmsSendOptions = {
105
105
  name: "Number",
106
106
  },
107
107
  },
108
+ messagingConnect: {
109
+ serializedName: "messagingConnect",
110
+ type: {
111
+ name: "Composite",
112
+ className: "MessagingConnectOptions",
113
+ },
114
+ },
115
+ },
116
+ },
117
+ };
118
+ export const MessagingConnectOptions = {
119
+ type: {
120
+ name: "Composite",
121
+ className: "MessagingConnectOptions",
122
+ modelProperties: {
123
+ apiKey: {
124
+ serializedName: "apiKey",
125
+ required: true,
126
+ type: {
127
+ name: "String",
128
+ },
129
+ },
130
+ partner: {
131
+ serializedName: "partner",
132
+ required: true,
133
+ type: {
134
+ name: "String",
135
+ },
136
+ },
108
137
  },
109
138
  },
110
139
  };
@@ -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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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"]}
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,IAAI,EAAE;oBACJ,IAAI,EAAE,QAAQ;iBACf;aACF;YACD,cAAc,EAAE;gBACd,cAAc,EAAE,gBAAgB;gB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AE,IAAI;gBACd,IAAI,EAAE;oBACJ,IAAI,EAAE,QAAQ;iBACf;aACF;SACF;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,cAAc,GAA+B;IACxD,IAAI,EAAE;QACJ,IAAI,EAAE,WAAW;QACjB,SAAS,EAAE,gBAAgB;QAC3B,eAAe,EAAE;YACf,KAAK,EAAE;gBACL,cAAc,EAAE,OAAO;gBACvB,QAAQ,EAAE,IAAI;gBACd,IAAI,EAAE;oBACJ,IAAI,EAAE,UAAU;oBAChB,OAAO,EAAE;wBACP,IAAI,EAAE;4BACJ,IAAI,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 messagingConnect: {\n serializedName: \"messagingConnect\",\n type: {\n name: \"Composite\",\n className: \"MessagingConnectOptions\",\n },\n },\n },\n },\n};\n\nexport const MessagingConnectOptions: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"MessagingConnectOptions\",\n modelProperties: {\n apiKey: {\n serializedName: \"apiKey\",\n required: true,\n type: {\n name: \"String\",\n },\n },\n partner: {\n serializedName: \"partner\",\n required: true,\n type: {\n name: \"String\",\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"]}
@@ -46,7 +46,7 @@ export const endpoint = {
46
46
  export const apiVersion = {
47
47
  parameterPath: "apiVersion",
48
48
  mapper: {
49
- defaultValue: "2024-12-10-preview",
49
+ defaultValue: "2025-05-29-preview",
50
50
  isConstant: true,
51
51
  serializedName: "api-version",
52
52
  type: {
@@ -1 +1 @@
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
+ {"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: \"2025-05-29-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"]}
@@ -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.2`;
28
+ const packageDetails = `azsdk-js-communication-sms/1.2.0-beta.4`;
29
29
  const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
30
30
  ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
31
31
  : `${packageDetails}`;
@@ -36,7 +36,7 @@ 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-12-10-preview";
39
+ this.apiVersion = options.apiVersion || "2025-05-29-preview";
40
40
  this.sms = new SmsImpl(this);
41
41
  this.optOuts = new OptOutsImpl(this);
42
42
  this.addCustomApiVersionPolicy(options.apiVersion);
@@ -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,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAI7D,MAAM,OAAO,YAAa,SAAQ,UAAU,CAAC,aAAa;IAIxD;;;;OAIG;IACH,YAAY,QAAgB,E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,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"]}
1
+ {"version":3,"file":"smsApiClient.js","sourceRoot":"","sources":["../../../../src/generated/src/smsApiClient.ts"],"names":[],"mappings":"AAAA;;;;;;GA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CAAC,yBAAyB,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC;IACrD,CAAC;IAED,8GAA8G;IACtG,yBAAyB,CAAC,UAAmB;QACnD,IAAI,CAAC,UAAU,EAAE,CAAC;YAChB,OAAO;QACT,CAAC;QACD,MAAM,gBAAgB,GAAG;YACvB,IAAI,EAAE,wBAAwB;YAC9B,KAAK,CAAC,WAAW,CACf,OAAwB,EACxB,IAAiB;gBAEjB,MAAM,KAAK,GAAG,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;gBACrC,IAAI,KAAK,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;oBACrB,MAAM,SAAS,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;wBACjD,IAAI,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC;4BACrC,OAAO,cAAc,GAAG,UAAU,CAAC;wBACrC,CAAC;6BAAM,CAAC;4BACN,OAAO,IAAI,CAAC;wBACd,CAAC;oBACH,CAAC,CAAC,CAAC;oBACH,OAAO,CAAC,GAAG,GAAG,KAAK,CAAC,CAAC,CAAC,GAAG,GAAG,GAAG,SAAS,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;gBACrD,CAAC;gBACD,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC;YACvB,CAAC;SACF,CAAC;QACF,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAC;IAC5C,CAAC;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.4`;\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 || \"2025-05-29-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.2",
12
+ packageVersion: "1.2.0-beta.4",
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.2\",\n});\n"]}
1
+ {"version":3,"file":"tracing.js","sourceRoot":"","sources":["../../../../src/generated/src/tracing.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAE1D,MAAM,CAAC,MAAM,aAAa,GAAG,mBAAmB,CAAC;IAC/C,SAAS,EAAE,yBAAyB;IACpC,WAAW,EAAE,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.4\",\n});\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"optOutsClient.d.ts","sourceRoot":"","sources":["../../src/optOutsClient.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAC;AAGpE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAE3D;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;OAEG;IACH,UAAU,EAAE,OAAO,CAAC;IACpB;;OAEG;IACH,cAAc,EAAE,MAAM,CAAC;IACvB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;OAEG;IACH,cAAc,EAAE,MAAM,CAAC;IACvB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;OAEG;IACH,cAAc,EAAE,MAAM,CAAC;IACvB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED;;GAEG;AACH,MAAM,WAAW,YAAa,SAAQ,gBAAgB;CAAG;AAEzD;;GAEG;AACH,MAAM,WAAW,UAAW,SAAQ,gBAAgB;CAAG;AAEvD;;GAEG;AACH,MAAM,WAAW,aAAc,SAAQ,gBAAgB;CAAG;AAE1D;;;GAGG;AACH,qBAAa,aAAa;IACxB,OAAO,CAAC,QAAQ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C,EAAE,MAAM,CAAC;CACvB;AAED;;GAEG;AACH,MAAM,WAAW,YAAa,SAAQ,gBAAgB;CAAG;AAEzD;;GAEG;AACH,MAAM,WAAW,UAAW,SAAQ,gBAAgB;CAAG;AAEvD;;GAEG;AACH,MAAM,WAAW,aAAc,SAAQ,gBAAgB;CAAG;AAE1D;;;GAGG;AACH,qBAAa,aAAa;IACxB,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAe;gBAEvB,GAAG,EAAE,YAAY;IAI7B;;;;;;OAMG;IACU,MAAM,CACjB,IAAI,EAAE,MAAM,EACZ,EAAE,EAAE,MAAM,EAAE,EACZ,OAAO,GAAE,aAAkB,GAC1B,OAAO,CAAC,kBAAkB,EAAE,CAAC;IAkBhC;;;;;;OAMG;IACU,GAAG,CACd,IAAI,EAAE,MAAM,EACZ,EAAE,EAAE,MAAM,EAAE,EACZ,OAAO,GAAE,UAAe,GACvB,OAAO,CAAC,eAAe,EAAE,CAAC;IAe7B;;;;;;OAMG;IACU,KAAK,CAChB,IAAI,EAAE,MAAM,EACZ,EAAE,EAAE,MAAM,EAAE,EACZ,OAAO,GAAE,YAAiB,GACzB,OAAO,CAAC,iBAAiB,EAAE,CAAC;CAkBhC"}
@@ -21,7 +21,7 @@ export class OptOutsClient {
21
21
  async remove(from, to, options = {}) {
22
22
  const { operationOptions } = extractOperationOptions(options);
23
23
  return tracingClient.withSpan("OptOuts-Remove", operationOptions, async (updatedOptions) => {
24
- const response = await this.api.optOuts.add(generateOptOutRequest(from, to), updatedOptions);
24
+ const response = await this.api.optOuts.remove(generateOptOutRequest(from, to), updatedOptions);
25
25
  return response.value.map((optOutResponseItem) => {
26
26
  var _a;
27
27
  return {
@@ -1 +1 @@
1
- {"version":3,"file":"optOutsClient.js","sourceRoot":"","sources":["../../src/optOutsClient.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAG3D,OAAO,EAA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AqB,CAAC,IAAI,EAAE,EAAE,CAAC,EAAE,cAAc,CAAC,CAAC;YAE7F,OAAO,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,kBAAsC,EAAE,EAAE;;gBACnE,OAAO;oBACL,EAAE,EAAE,kBAAkB,CAAC,EAAE;oBACzB,cAAc,EAAE,kBAAkB,CAAC,cAAc;oBACjD,YAAY,EAAE,MAAA,kBAAkB,CAAC,YAAY,mCAAI,EAAE;iBACpD,CAAC;YACJ,CAAC,CAAC,CAAC;QACL,CAAC,CAAC,CAAC;IACL,CAAC;IAED;;;;;;OAMG;IACI,KAAK,CAAC,KAAK,CAChB,IAAY,EACZ,EAAY,EACZ,UAAwB,EAAE;QAE1B,MAAM,EAAE,gBAAgB,EAAE,GAAG,uBAAuB,CAAC,OAAO,CAAC,CAAC;QAC9D,OAAO,aAAa,CAAC,QAAQ,CAAC,eAAe,EAAE,gBAAgB,EAAE,KAAK,EAAE,cAAc,EAAE,EAAE;YACxF,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,KAAK,CAC3C,qBAAqB,CAAC,IAAI,EAAE,EAAE,CAAC,EAC/B,cAAc,CACf,CAAC;YAEF,OAAO,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,kBAAsC,EAAE,EAAE;;gBACnE,OAAO;oBACL,EAAE,EAAE,kBAAkB,CAAC,EAAE;oBACzB,UAAU,EAAE,MAAA,kBAAkB,CAAC,UAAU,mCAAI,KAAK;oBAClD,cAAc,EAAE,kBAAkB,CAAC,cAAc;oBACjD,YAAY,EAAE,MAAA,kBAAkB,CAAC,YAAY,mCAAI,EAAE;iBACpD,CAAC;YACJ,CAAC,CAAC,CAAC;QACL,CAAC,CAAC,CAAC;IACL,CAAC;CACF","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { tracingClient } from \"./generated/src/tracing.js\";\nimport type { OptOutResponseItem } from \"./generated/src/index.js\";\nimport type { SmsApiClient } from \"./generated/src/smsApiClient.js\";\nimport { generateOptOutRequest } from \"./utils/smsUtils.js\";\nimport { extractOperationOptions } from \"./extractOperationOptions.js\";\nimport type { OperationOptions } from \"@azure/core-client\";\n\n/**\n * The result of Opt Out Check request.\n */\nexport interface OptOutCheckResult {\n /**\n * The recipient's phone number in E.164 format.\n */\n to: string;\n /**\n * Indicates if the recipient's phone number in opted out from receiving messages or not.\n */\n isOptedOut: boolean;\n /**\n * HTTP Status code.\n */\n httpStatusCode: number;\n /**\n * Optional error message in case of 4xx/5xx/repeatable errors.\n */\n errorMessage?: string;\n}\n\n/**\n * The result of Opt Out Add request.\n */\nexport interface OptOutAddResult {\n /**\n * The recipient's phone number in E.164 format.\n */\n to: string;\n /**\n * HTTP Status code.\n */\n httpStatusCode: number;\n /**\n * Optional error message in case of 4xx/5xx/repeatable errors.\n */\n errorMessage?: string;\n}\n\n/**\n * The result of Opt Out Remove request.\n */\nexport interface OptOutRemoveResult {\n /**\n * The recipient's phone number in E.164 format.\n */\n to: string;\n /**\n * HTTP Status code.\n */\n httpStatusCode: number;\n /**\n * Optional error message in case of 4xx/5xx/repeatable errors.\n */\n errorMessage?: string;\n}\n\n/**\n * Client options used to configure OptOuts Client API Check requests.\n */\nexport interface CheckOptions extends OperationOptions {}\n\n/**\n * Client options used to configure OptOuts Client API Add requests.\n */\nexport interface AddOptions extends OperationOptions {}\n\n/**\n * Client options used to configure OptOuts Client API Remove requests.\n */\nexport interface RemoveOptions extends OperationOptions {}\n\n/**\n * A OptOutsClient represents a Client to the Azure Communication Sms service allowing you\n * to call Opt Out Management Api methods.\n */\nexport class OptOutsClient {\n private readonly api: SmsApiClient;\n\n constructor(api: SmsApiClient) {\n this.api = api;\n }\n\n /**\n * Removes phone numbers from the optouts list.\n *\n * @param from - The sender's phone number\n * @param to - The recipient's phone numbers\n * @param options - Additional request options\n */\n public async remove(\n from: string,\n to: string[],\n options: RemoveOptions = {},\n ): Promise<OptOutRemoveResult[]> {\n const { operationOptions } = extractOperationOptions(options);\n return tracingClient.withSpan(\"OptOuts-Remove\", operationOptions, async (updatedOptions) => {\n const response = await this.api.optOuts.add(generateOptOutRequest(from, to), updatedOptions);\n\n return response.value.map((optOutResponseItem: OptOutResponseItem) => {\n return {\n to: optOutResponseItem.to,\n httpStatusCode: optOutResponseItem.httpStatusCode,\n errorMessage: optOutResponseItem.errorMessage ?? \"\",\n };\n });\n });\n }\n\n /**\n * Adds phone numbers to the optouts list.\n *\n * @param from - The sender's phone number\n * @param to - The recipient's phone numbers\n * @param options - Additional request options\n */\n public async add(\n from: string,\n to: string[],\n options: AddOptions = {},\n ): Promise<OptOutAddResult[]> {\n const { operationOptions } = extractOperationOptions(options);\n return tracingClient.withSpan(\"OptOuts-Add\", operationOptions, async (updatedOptions) => {\n const response = await this.api.optOuts.add(generateOptOutRequest(from, to), updatedOptions);\n\n return response.value.map((optOutResponseItem: OptOutResponseItem) => {\n return {\n to: optOutResponseItem.to,\n httpStatusCode: optOutResponseItem.httpStatusCode,\n errorMessage: optOutResponseItem.errorMessage ?? \"\",\n };\n });\n });\n }\n\n /**\n * Checks if phone numbers are in the optouts list.\n *\n * @param from - The sender's phone number\n * @param to - The recipient's phone numbers\n * @param options - Additional request options\n */\n public async check(\n from: string,\n to: string[],\n options: CheckOptions = {},\n ): Promise<OptOutCheckResult[]> {\n const { operationOptions } = extractOperationOptions(options);\n return tracingClient.withSpan(\"OptOuts-Check\", operationOptions, async (updatedOptions) => {\n const response = await this.api.optOuts.check(\n generateOptOutRequest(from, to),\n updatedOptions,\n );\n\n return response.value.map((optOutResponseItem: OptOutResponseItem) => {\n return {\n to: optOutResponseItem.to,\n isOptedOut: optOutResponseItem.isOptedOut ?? false,\n httpStatusCode: optOutResponseItem.httpStatusCode,\n errorMessage: optOutResponseItem.errorMessage ?? \"\",\n };\n });\n });\n }\n}\n"]}
1
+ {"version":3,"file":"optOutsClient.js","sourceRoot":"","sources":["../../src/optOutsClient.ts"],"names":[],"m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c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { tracingClient } from \"./generated/src/tracing.js\";\nimport type { OptOutResponseItem } from \"./generated/src/index.js\";\nimport type { SmsApiClient } from \"./generated/src/smsApiClient.js\";\nimport { generateOptOutRequest } from \"./utils/smsUtils.js\";\nimport { extractOperationOptions } from \"./extractOperationOptions.js\";\nimport type { OperationOptions } from \"@azure/core-client\";\n\n/**\n * The result of Opt Out Check request.\n */\nexport interface OptOutCheckResult {\n /**\n * The recipient's phone number in E.164 format.\n */\n to: string;\n /**\n * Indicates if the recipient's phone number in opted out from receiving messages or not.\n */\n isOptedOut: boolean;\n /**\n * HTTP Status code.\n */\n httpStatusCode: number;\n /**\n * Optional error message in case of 4xx/5xx/repeatable errors.\n */\n errorMessage?: string;\n}\n\n/**\n * The result of Opt Out Add request.\n */\nexport interface OptOutAddResult {\n /**\n * The recipient's phone number in E.164 format.\n */\n to: string;\n /**\n * HTTP Status code.\n */\n httpStatusCode: number;\n /**\n * Optional error message in case of 4xx/5xx/repeatable errors.\n */\n errorMessage?: string;\n}\n\n/**\n * The result of Opt Out Remove request.\n */\nexport interface OptOutRemoveResult {\n /**\n * The recipient's phone number in E.164 format.\n */\n to: string;\n /**\n * HTTP Status code.\n */\n httpStatusCode: number;\n /**\n * Optional error message in case of 4xx/5xx/repeatable errors.\n */\n errorMessage?: string;\n}\n\n/**\n * Client options used to configure OptOuts Client API Check requests.\n */\nexport interface CheckOptions extends OperationOptions {}\n\n/**\n * Client options used to configure OptOuts Client API Add requests.\n */\nexport interface AddOptions extends OperationOptions {}\n\n/**\n * Client options used to configure OptOuts Client API Remove requests.\n */\nexport interface RemoveOptions extends OperationOptions {}\n\n/**\n * A OptOutsClient represents a Client to the Azure Communication Sms service allowing you\n * to call Opt Out Management Api methods.\n */\nexport class OptOutsClient {\n private readonly api: SmsApiClient;\n\n constructor(api: SmsApiClient) {\n this.api = api;\n }\n\n /**\n * Removes phone numbers from the optouts list.\n *\n * @param from - The sender's phone number\n * @param to - The recipient's phone numbers\n * @param options - Additional request options\n */\n public async remove(\n from: string,\n to: string[],\n options: RemoveOptions = {},\n ): Promise<OptOutRemoveResult[]> {\n const { operationOptions } = extractOperationOptions(options);\n return tracingClient.withSpan(\"OptOuts-Remove\", operationOptions, async (updatedOptions) => {\n const response = await this.api.optOuts.remove(\n generateOptOutRequest(from, to),\n updatedOptions,\n );\n\n return response.value.map((optOutResponseItem: OptOutResponseItem) => {\n return {\n to: optOutResponseItem.to,\n httpStatusCode: optOutResponseItem.httpStatusCode,\n errorMessage: optOutResponseItem.errorMessage ?? \"\",\n };\n });\n });\n }\n\n /**\n * Adds phone numbers to the optouts list.\n *\n * @param from - The sender's phone number\n * @param to - The recipient's phone numbers\n * @param options - Additional request options\n */\n public async add(\n from: string,\n to: string[],\n options: AddOptions = {},\n ): Promise<OptOutAddResult[]> {\n const { operationOptions } = extractOperationOptions(options);\n return tracingClient.withSpan(\"OptOuts-Add\", operationOptions, async (updatedOptions) => {\n const response = await this.api.optOuts.add(generateOptOutRequest(from, to), updatedOptions);\n\n return response.value.map((optOutResponseItem: OptOutResponseItem) => {\n return {\n to: optOutResponseItem.to,\n httpStatusCode: optOutResponseItem.httpStatusCode,\n errorMessage: optOutResponseItem.errorMessage ?? \"\",\n };\n });\n });\n }\n\n /**\n * Checks if phone numbers are in the optouts list.\n *\n * @param from - The sender's phone number\n * @param to - The recipient's phone numbers\n * @param options - Additional request options\n */\n public async check(\n from: string,\n to: string[],\n options: CheckOptions = {},\n ): Promise<OptOutCheckResult[]> {\n const { operationOptions } = extractOperationOptions(options);\n return tracingClient.withSpan(\"OptOuts-Check\", operationOptions, async (updatedOptions) => {\n const response = await this.api.optOuts.check(\n generateOptOutRequest(from, to),\n updatedOptions,\n );\n\n return response.value.map((optOutResponseItem: OptOutResponseItem) => {\n return {\n to: optOutResponseItem.to,\n isOptedOut: optOutResponseItem.isOptedOut ?? false,\n httpStatusCode: optOutResponseItem.httpStatusCode,\n errorMessage: optOutResponseItem.errorMessage ?? \"\",\n };\n });\n });\n }\n}\n"]}
@@ -39,6 +39,15 @@ export interface SmsSendOptions extends OperationOptions {
39
39
  tag?: string;
40
40
  /** Time to wait for a delivery report. After this time a delivery report with timeout error code is generated. */
41
41
  deliveryReportTimeoutInSeconds?: number;
42
+ /** Defines optional parameters for connecting with the Messaging Connect Partner to deliver SMS. */
43
+ messagingConnect?: MessagingConnectOptions;
44
+ }
45
+ /** Defines optional parameters for connecting with the Messaging Connect Partner to deliver SMS. */
46
+ export interface MessagingConnectOptions {
47
+ /** Represents the API key associated with the customer's account in the Messaging Connect Partner portal. */
48
+ apiKey: string;
49
+ /** Specifies the partner associated with the API key. */
50
+ partner: string;
42
51
  }
43
52
  /**
44
53
  * The result of Sms send request.
@@ -1 +1 @@
1
- {"version":3,"file":"smsClient.d.ts","sourceRoot":"","sources":["../../src/smsClient.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAEvE,OAAO,KAAK,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAShF;;GAEG;AACH,MAAM,WAAW,gBAAiB,SAAQ,mBAAmB;CAAG;AAEhE;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,EAAE,EAAE,MAAM,EAAE,CAAC;IACb;;;OAGG;IACH,OAAO,EAAE,MAAM,CAAC;CACjB;AAED;;GAEG;AACH,MAAM,WAAW,cAAe,SAAQ,gBAAgB;IACtD;;;OAGG;IACH,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B;;;OAGG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,kHAAkH;IAClH,8BAA8B,CAAC,EAAE,MAAM,CAAC;CACzC;AAED;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;OAEG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