@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.
Files changed (189) hide show
  1. package/dist/browser/constants.js +1 -1
  2. package/dist/browser/constants.js.map +1 -1
  3. package/dist/browser/generated/src/models/index.d.ts +39 -0
  4. package/dist/browser/generated/src/models/index.d.ts.map +1 -1
  5. package/dist/browser/generated/src/models/index.js.map +1 -1
  6. package/dist/browser/generated/src/models/mappers.d.ts +4 -0
  7. package/dist/browser/generated/src/models/mappers.d.ts.map +1 -1
  8. package/dist/browser/generated/src/models/mappers.js +111 -0
  9. package/dist/browser/generated/src/models/mappers.js.map +1 -1
  10. package/dist/browser/generated/src/models/parameters.d.ts +1 -0
  11. package/dist/browser/generated/src/models/parameters.d.ts.map +1 -1
  12. package/dist/browser/generated/src/models/parameters.js +6 -2
  13. package/dist/browser/generated/src/models/parameters.js.map +1 -1
  14. package/dist/browser/generated/src/operations/index.d.ts +1 -0
  15. package/dist/browser/generated/src/operations/index.d.ts.map +1 -1
  16. package/dist/browser/generated/src/operations/index.js +1 -0
  17. package/dist/browser/generated/src/operations/index.js.map +1 -1
  18. package/dist/browser/generated/src/operations/optOuts.d.ts +31 -0
  19. package/dist/browser/generated/src/operations/optOuts.d.ts.map +1 -0
  20. package/dist/browser/generated/src/operations/optOuts.js +99 -0
  21. package/dist/browser/generated/src/operations/optOuts.js.map +1 -0
  22. package/dist/browser/generated/src/operationsInterfaces/index.d.ts +1 -0
  23. package/dist/browser/generated/src/operationsInterfaces/index.d.ts.map +1 -1
  24. package/dist/browser/generated/src/operationsInterfaces/index.js +1 -0
  25. package/dist/browser/generated/src/operationsInterfaces/index.js.map +1 -1
  26. package/dist/browser/generated/src/operationsInterfaces/optOuts.d.ts +23 -0
  27. package/dist/browser/generated/src/operationsInterfaces/optOuts.d.ts.map +1 -0
  28. package/dist/browser/generated/src/operationsInterfaces/optOuts.js +9 -0
  29. package/dist/browser/generated/src/operationsInterfaces/optOuts.js.map +1 -0
  30. package/dist/browser/generated/src/smsApiClient.d.ts +2 -1
  31. package/dist/browser/generated/src/smsApiClient.d.ts.map +1 -1
  32. package/dist/browser/generated/src/smsApiClient.js +4 -3
  33. package/dist/browser/generated/src/smsApiClient.js.map +1 -1
  34. package/dist/browser/generated/src/tracing.js +1 -1
  35. package/dist/browser/generated/src/tracing.js.map +1 -1
  36. package/dist/browser/optOutsClient.d.ts +105 -0
  37. package/dist/browser/optOutsClient.d.ts.map +1 -0
  38. package/dist/browser/optOutsClient.js +79 -0
  39. package/dist/browser/optOutsClient.js.map +1 -0
  40. package/dist/browser/smsClient.d.ts +109 -1
  41. package/dist/browser/smsClient.d.ts.map +1 -1
  42. package/dist/browser/smsClient.js +2 -0
  43. package/dist/browser/smsClient.js.map +1 -1
  44. package/dist/browser/utils/smsUtils.d.ts +2 -1
  45. package/dist/browser/utils/smsUtils.d.ts.map +1 -1
  46. package/dist/browser/utils/smsUtils.js +10 -0
  47. package/dist/browser/utils/smsUtils.js.map +1 -1
  48. package/dist/commonjs/constants.js +1 -1
  49. package/dist/commonjs/constants.js.map +1 -1
  50. package/dist/commonjs/generated/src/models/index.d.ts +39 -0
  51. package/dist/commonjs/generated/src/models/index.d.ts.map +1 -1
  52. package/dist/commonjs/generated/src/models/index.js.map +1 -1
  53. package/dist/commonjs/generated/src/models/mappers.d.ts +4 -0
  54. package/dist/commonjs/generated/src/models/mappers.d.ts.map +1 -1
  55. package/dist/commonjs/generated/src/models/mappers.js +112 -1
  56. package/dist/commonjs/generated/src/models/mappers.js.map +1 -1
  57. package/dist/commonjs/generated/src/models/parameters.d.ts +1 -0
  58. package/dist/commonjs/generated/src/models/parameters.d.ts.map +1 -1
  59. package/dist/commonjs/generated/src/models/parameters.js +6 -2
  60. package/dist/commonjs/generated/src/models/parameters.js.map +1 -1
  61. package/dist/commonjs/generated/src/operations/index.d.ts +1 -0
  62. package/dist/commonjs/generated/src/operations/index.d.ts.map +1 -1
  63. package/dist/commonjs/generated/src/operations/index.js +1 -0
  64. package/dist/commonjs/generated/src/operations/index.js.map +1 -1
  65. package/dist/commonjs/generated/src/operations/optOuts.d.ts +31 -0
  66. package/dist/commonjs/generated/src/operations/optOuts.d.ts.map +1 -0
  67. package/dist/commonjs/generated/src/operations/optOuts.js +104 -0
  68. package/dist/commonjs/generated/src/operations/optOuts.js.map +1 -0
  69. package/dist/commonjs/generated/src/operationsInterfaces/index.d.ts +1 -0
  70. package/dist/commonjs/generated/src/operationsInterfaces/index.d.ts.map +1 -1
  71. package/dist/commonjs/generated/src/operationsInterfaces/index.js +1 -0
  72. package/dist/commonjs/generated/src/operationsInterfaces/index.js.map +1 -1
  73. package/dist/commonjs/generated/src/operationsInterfaces/optOuts.d.ts +23 -0
  74. package/dist/commonjs/generated/src/operationsInterfaces/optOuts.d.ts.map +1 -0
  75. package/dist/commonjs/generated/src/operationsInterfaces/optOuts.js +10 -0
  76. package/dist/commonjs/generated/src/operationsInterfaces/optOuts.js.map +1 -0
  77. package/dist/commonjs/generated/src/smsApiClient.d.ts +2 -1
  78. package/dist/commonjs/generated/src/smsApiClient.d.ts.map +1 -1
  79. package/dist/commonjs/generated/src/smsApiClient.js +3 -2
  80. package/dist/commonjs/generated/src/smsApiClient.js.map +1 -1
  81. package/dist/commonjs/generated/src/tracing.js +1 -1
  82. package/dist/commonjs/generated/src/tracing.js.map +1 -1
  83. package/dist/commonjs/optOutsClient.d.ts +105 -0
  84. package/dist/commonjs/optOutsClient.d.ts.map +1 -0
  85. package/dist/commonjs/optOutsClient.js +83 -0
  86. package/dist/commonjs/optOutsClient.js.map +1 -0
  87. package/dist/commonjs/smsClient.d.ts +109 -1
  88. package/dist/commonjs/smsClient.d.ts.map +1 -1
  89. package/dist/commonjs/smsClient.js +2 -0
  90. package/dist/commonjs/smsClient.js.map +1 -1
  91. package/dist/commonjs/utils/smsUtils.d.ts +2 -1
  92. package/dist/commonjs/utils/smsUtils.d.ts.map +1 -1
  93. package/dist/commonjs/utils/smsUtils.js +11 -0
  94. package/dist/commonjs/utils/smsUtils.js.map +1 -1
  95. package/dist/esm/constants.js +1 -1
  96. package/dist/esm/constants.js.map +1 -1
  97. package/dist/esm/generated/src/models/index.d.ts +39 -0
  98. package/dist/esm/generated/src/models/index.d.ts.map +1 -1
  99. package/dist/esm/generated/src/models/index.js.map +1 -1
  100. package/dist/esm/generated/src/models/mappers.d.ts +4 -0
  101. package/dist/esm/generated/src/models/mappers.d.ts.map +1 -1
  102. package/dist/esm/generated/src/models/mappers.js +111 -0
  103. package/dist/esm/generated/src/models/mappers.js.map +1 -1
  104. package/dist/esm/generated/src/models/parameters.d.ts +1 -0
  105. package/dist/esm/generated/src/models/parameters.d.ts.map +1 -1
  106. package/dist/esm/generated/src/models/parameters.js +6 -2
  107. package/dist/esm/generated/src/models/parameters.js.map +1 -1
  108. package/dist/esm/generated/src/operations/index.d.ts +1 -0
  109. package/dist/esm/generated/src/operations/index.d.ts.map +1 -1
  110. package/dist/esm/generated/src/operations/index.js +1 -0
  111. package/dist/esm/generated/src/operations/index.js.map +1 -1
  112. package/dist/esm/generated/src/operations/optOuts.d.ts +31 -0
  113. package/dist/esm/generated/src/operations/optOuts.d.ts.map +1 -0
  114. package/dist/esm/generated/src/operations/optOuts.js +99 -0
  115. package/dist/esm/generated/src/operations/optOuts.js.map +1 -0
  116. package/dist/esm/generated/src/operationsInterfaces/index.d.ts +1 -0
  117. package/dist/esm/generated/src/operationsInterfaces/index.d.ts.map +1 -1
  118. package/dist/esm/generated/src/operationsInterfaces/index.js +1 -0
  119. package/dist/esm/generated/src/operationsInterfaces/index.js.map +1 -1
  120. package/dist/esm/generated/src/operationsInterfaces/optOuts.d.ts +23 -0
  121. package/dist/esm/generated/src/operationsInterfaces/optOuts.d.ts.map +1 -0
  122. package/dist/esm/generated/src/operationsInterfaces/optOuts.js +9 -0
  123. package/dist/esm/generated/src/operationsInterfaces/optOuts.js.map +1 -0
  124. package/dist/esm/generated/src/smsApiClient.d.ts +2 -1
  125. package/dist/esm/generated/src/smsApiClient.d.ts.map +1 -1
  126. package/dist/esm/generated/src/smsApiClient.js +4 -3
  127. package/dist/esm/generated/src/smsApiClient.js.map +1 -1
  128. package/dist/esm/generated/src/tracing.js +1 -1
  129. package/dist/esm/generated/src/tracing.js.map +1 -1
  130. package/dist/esm/optOutsClient.d.ts +105 -0
  131. package/dist/esm/optOutsClient.d.ts.map +1 -0
  132. package/dist/esm/optOutsClient.js +79 -0
  133. package/dist/esm/optOutsClient.js.map +1 -0
  134. package/dist/esm/smsClient.d.ts +109 -1
  135. package/dist/esm/smsClient.d.ts.map +1 -1
  136. package/dist/esm/smsClient.js +2 -0
  137. package/dist/esm/smsClient.js.map +1 -1
  138. package/dist/esm/utils/smsUtils.d.ts +2 -1
  139. package/dist/esm/utils/smsUtils.d.ts.map +1 -1
  140. package/dist/esm/utils/smsUtils.js +10 -0
  141. package/dist/esm/utils/smsUtils.js.map +1 -1
  142. package/dist/react-native/constants.js +1 -1
  143. package/dist/react-native/constants.js.map +1 -1
  144. package/dist/react-native/generated/src/models/index.d.ts +39 -0
  145. package/dist/react-native/generated/src/models/index.d.ts.map +1 -1
  146. package/dist/react-native/generated/src/models/index.js.map +1 -1
  147. package/dist/react-native/generated/src/models/mappers.d.ts +4 -0
  148. package/dist/react-native/generated/src/models/mappers.d.ts.map +1 -1
  149. package/dist/react-native/generated/src/models/mappers.js +111 -0
  150. package/dist/react-native/generated/src/models/mappers.js.map +1 -1
  151. package/dist/react-native/generated/src/models/parameters.d.ts +1 -0
  152. package/dist/react-native/generated/src/models/parameters.d.ts.map +1 -1
  153. package/dist/react-native/generated/src/models/parameters.js +6 -2
  154. package/dist/react-native/generated/src/models/parameters.js.map +1 -1
  155. package/dist/react-native/generated/src/operations/index.d.ts +1 -0
  156. package/dist/react-native/generated/src/operations/index.d.ts.map +1 -1
  157. package/dist/react-native/generated/src/operations/index.js +1 -0
  158. package/dist/react-native/generated/src/operations/index.js.map +1 -1
  159. package/dist/react-native/generated/src/operations/optOuts.d.ts +31 -0
  160. package/dist/react-native/generated/src/operations/optOuts.d.ts.map +1 -0
  161. package/dist/react-native/generated/src/operations/optOuts.js +99 -0
  162. package/dist/react-native/generated/src/operations/optOuts.js.map +1 -0
  163. package/dist/react-native/generated/src/operationsInterfaces/index.d.ts +1 -0
  164. package/dist/react-native/generated/src/operationsInterfaces/index.d.ts.map +1 -1
  165. package/dist/react-native/generated/src/operationsInterfaces/index.js +1 -0
  166. package/dist/react-native/generated/src/operationsInterfaces/index.js.map +1 -1
  167. package/dist/react-native/generated/src/operationsInterfaces/optOuts.d.ts +23 -0
  168. package/dist/react-native/generated/src/operationsInterfaces/optOuts.d.ts.map +1 -0
  169. package/dist/react-native/generated/src/operationsInterfaces/optOuts.js +9 -0
  170. package/dist/react-native/generated/src/operationsInterfaces/optOuts.js.map +1 -0
  171. package/dist/react-native/generated/src/smsApiClient.d.ts +2 -1
  172. package/dist/react-native/generated/src/smsApiClient.d.ts.map +1 -1
  173. package/dist/react-native/generated/src/smsApiClient.js +4 -3
  174. package/dist/react-native/generated/src/smsApiClient.js.map +1 -1
  175. package/dist/react-native/generated/src/tracing.js +1 -1
  176. package/dist/react-native/generated/src/tracing.js.map +1 -1
  177. package/dist/react-native/optOutsClient.d.ts +105 -0
  178. package/dist/react-native/optOutsClient.d.ts.map +1 -0
  179. package/dist/react-native/optOutsClient.js +79 -0
  180. package/dist/react-native/optOutsClient.js.map +1 -0
  181. package/dist/react-native/smsClient.d.ts +109 -1
  182. package/dist/react-native/smsClient.d.ts.map +1 -1
  183. package/dist/react-native/smsClient.js +2 -0
  184. package/dist/react-native/smsClient.js.map +1 -1
  185. package/dist/react-native/utils/smsUtils.d.ts +2 -1
  186. package/dist/react-native/utils/smsUtils.d.ts.map +1 -1
  187. package/dist/react-native/utils/smsUtils.js +10 -0
  188. package/dist/react-native/utils/smsUtils.js.map +1 -1
  189. package/package.json +5 -5
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/generated/src/models/index.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAyDH,+FAA+F;AAC/F,IAAY,2CAKX;AALD,WAAY,2CAA2C;IACrD,eAAe;IACf,oEAAqB,CAAA;IACrB,eAAe;IACf,oEAAqB,CAAA;AACvB,CAAC,EALW,2CAA2C,2DAA3C,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/** 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 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;;;AAqFH,+FAA+F;AAC/F,IAAY,2CAKX;AALD,WAAY,2CAA2C;IACrD,eAAe;IACf,oEAAqB,CAAA;IACrB,eAAe;IACf,oEAAqB,CAAA;AACvB,CAAC,EALW,2CAA2C,2DAA3C,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"]}
@@ -4,4 +4,8 @@ export declare const SmsRecipient: coreClient.CompositeMapper;
4
4
  export declare const SmsSendOptions: coreClient.CompositeMapper;
5
5
  export declare const SmsSendResponse: coreClient.CompositeMapper;
6
6
  export declare const SmsSendResponseItem: coreClient.CompositeMapper;
7
+ export declare const OptOutRequest: coreClient.CompositeMapper;
8
+ export declare const OptOutRecipient: coreClient.CompositeMapper;
9
+ export declare const OptOutResponse: coreClient.CompositeMapper;
10
+ export declare const OptOutResponseItem: coreClient.CompositeMapper;
7
11
  //# sourceMappingURL=mappers.d.ts.map
@@ -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"}
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"}
@@ -7,7 +7,7 @@
7
7
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
8
8
  */
9
9
  Object.defineProperty(exports, "__esModule", { value: true });
10
- exports.SmsSendResponseItem = exports.SmsSendResponse = exports.SmsSendOptions = exports.SmsRecipient = exports.SendMessageRequest = void 0;
10
+ exports.OptOutResponseItem = exports.OptOutResponse = exports.OptOutRecipient = exports.OptOutRequest = exports.SmsSendResponseItem = exports.SmsSendResponse = exports.SmsSendOptions = exports.SmsRecipient = exports.SendMessageRequest = void 0;
11
11
  exports.SendMessageRequest = {
12
12
  type: {
13
13
  name: "Composite",
@@ -179,4 +179,115 @@ exports.SmsSendResponseItem = {
179
179
  },
180
180
  },
181
181
  };
182
+ exports.OptOutRequest = {
183
+ type: {
184
+ name: "Composite",
185
+ className: "OptOutRequest",
186
+ modelProperties: {
187
+ from: {
188
+ constraints: {
189
+ MinLength: 1,
190
+ },
191
+ serializedName: "from",
192
+ required: true,
193
+ type: {
194
+ name: "String",
195
+ },
196
+ },
197
+ recipients: {
198
+ constraints: {
199
+ MinItems: 1,
200
+ MaxItems: 100,
201
+ },
202
+ serializedName: "recipients",
203
+ required: true,
204
+ type: {
205
+ name: "Sequence",
206
+ element: {
207
+ type: {
208
+ name: "Composite",
209
+ className: "OptOutRecipient",
210
+ },
211
+ },
212
+ },
213
+ },
214
+ },
215
+ },
216
+ };
217
+ exports.OptOutRecipient = {
218
+ type: {
219
+ name: "Composite",
220
+ className: "OptOutRecipient",
221
+ modelProperties: {
222
+ to: {
223
+ constraints: {
224
+ MinLength: 1,
225
+ },
226
+ serializedName: "to",
227
+ required: true,
228
+ type: {
229
+ name: "String",
230
+ },
231
+ },
232
+ },
233
+ },
234
+ };
235
+ exports.OptOutResponse = {
236
+ type: {
237
+ name: "Composite",
238
+ className: "OptOutResponse",
239
+ modelProperties: {
240
+ value: {
241
+ serializedName: "value",
242
+ required: true,
243
+ type: {
244
+ name: "Sequence",
245
+ element: {
246
+ type: {
247
+ name: "Composite",
248
+ className: "OptOutResponseItem",
249
+ },
250
+ },
251
+ },
252
+ },
253
+ },
254
+ },
255
+ };
256
+ exports.OptOutResponseItem = {
257
+ type: {
258
+ name: "Composite",
259
+ className: "OptOutResponseItem",
260
+ modelProperties: {
261
+ to: {
262
+ constraints: {
263
+ MinLength: 1,
264
+ },
265
+ serializedName: "to",
266
+ required: true,
267
+ type: {
268
+ name: "String",
269
+ },
270
+ },
271
+ httpStatusCode: {
272
+ serializedName: "httpStatusCode",
273
+ required: true,
274
+ type: {
275
+ name: "Number",
276
+ },
277
+ },
278
+ isOptedOut: {
279
+ serializedName: "isOptedOut",
280
+ type: {
281
+ name: "Boolean",
282
+ },
283
+ },
284
+ errorMessage: {
285
+ serializedName: "errorMessage",
286
+ type: {
287
+ name: "String",
288
+ },
289
+ },
290
+ },
291
+ },
292
+ };
182
293
  //# sourceMappingURL=mappers.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"mappers.js","sourceRoot":"","sources":["../../../../../src/generated/src/models/mappers.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAIU,QAAA,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BACf;aACF;YACD,cAAc,EAAE;gBACd,cAAc,EAAE,gBAAgB;gBAChC,QAAQ,EAAE,IAAI;gBACd,IAAI,EAAE;oBACJ,IAAI,EAAE,QAAQ;iBACf;aACF;YACD,mBAAmB,EAAE;gBACnB,cAAc,EAAE,qBAAqB;gBACrC,IAAI,EAAE;oBACJ,IAAI,EAAE,QAAQ;iBACf;aACF;YACD,UAAU,EAAE;gBACV,cAAc,EAAE,YAAY;gBAC5B,QAAQ,EAAE,IAAI;gBACd,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"]}
1
+ {"version":3,"file":"mappers.js","sourceRoot":"","sources":["../../../../../src/generated/src/models/mappers.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAIU,QAAA,kB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;oBACX,SAAS,EAAE,CAAC;iBACb;gBACD,cAAc,EAAE,IAAI;gBACpB,QAAQ,EAAE,IAAI;gBACd,IAAI,EAAE;oBACJ,IAAI,EAAE,QAAQ;iBACf;aACF;SACF;KACF;CACF,CAAC;AAEW,QAAA,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;AAEW,QAAA,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;AAG5B,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"}
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"}
@@ -7,7 +7,7 @@
7
7
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
8
8
  */
9
9
  Object.defineProperty(exports, "__esModule", { value: true });
10
- exports.apiVersion = exports.endpoint = exports.accept = exports.sendMessageRequest = exports.contentType = void 0;
10
+ exports.body = exports.apiVersion = exports.endpoint = exports.accept = exports.sendMessageRequest = exports.contentType = void 0;
11
11
  const mappers_js_1 = require("../models/mappers.js");
12
12
  exports.contentType = {
13
13
  parameterPath: ["options", "contentType"],
@@ -49,7 +49,7 @@ exports.endpoint = {
49
49
  exports.apiVersion = {
50
50
  parameterPath: "apiVersion",
51
51
  mapper: {
52
- defaultValue: "2024-02-05-preview",
52
+ defaultValue: "2024-12-10-preview",
53
53
  isConstant: true,
54
54
  serializedName: "api-version",
55
55
  type: {
@@ -57,4 +57,8 @@ exports.apiVersion = {
57
57
  },
58
58
  },
59
59
  };
60
+ exports.body = {
61
+ parameterPath: "body",
62
+ mapper: mappers_js_1.OptOutRequest,
63
+ };
60
64
  //# 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,qDAAsF;AAEzE,QAAA,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;AAEW,QAAA,kBAAkB,GAAuB;IACpD,aAAa,EAAE,oBAAoB;IACnC,MAAM,EAAE,+BAAwB;CACjC,CAAC;AAEW,QAAA,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;AAEW,QAAA,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;AAEW,QAAA,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","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 { SendMessageRequest as SendMessageRequestMapper } 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-02-05-preview\",\n isConstant: true,\n serializedName: \"api-version\",\n type: {\n name: \"String\",\n },\n },\n};\n"]}
1
+ {"version":3,"file":"parameters.js","sourceRoot":"","sources":["../../../../../src/generated/src/models/parameters.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAOH,qDAG8B;AAEjB,QAAA,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;AAEW,QAAA,kBAAkB,GAAuB;IACpD,aAAa,EAAE,oBAAoB;IACnC,MAAM,EAAE,+BAAwB;CACjC,CAAC;AAEW,QAAA,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;AAEW,QAAA,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;AAEW,QAAA,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;AAEW,QAAA,IAAI,GAAuB;IACtC,aAAa,EAAE,MAAM;IACrB,MAAM,EAAE,0BAAmB;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,2 +1,3 @@
1
1
  export * from "./sms.js";
2
+ export * from "./optOuts.js";
2
3
  //# sourceMappingURL=index.d.ts.map
@@ -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"}
@@ -9,4 +9,5 @@
9
9
  Object.defineProperty(exports, "__esModule", { value: true });
10
10
  const tslib_1 = require("tslib");
11
11
  tslib_1.__exportStar(require("./sms.js"), exports);
12
+ tslib_1.__exportStar(require("./optOuts.js"), exports);
12
13
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/generated/src/operations/index.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAEH,mDAAyB","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,mDAAyB;AACzB,uDAA6B","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,104 @@
1
+ "use strict";
2
+ /*
3
+ * Copyright (c) Microsoft Corporation.
4
+ * Licensed under the MIT License.
5
+ *
6
+ * Code generated by Microsoft (R) AutoRest Code Generator.
7
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
8
+ */
9
+ Object.defineProperty(exports, "__esModule", { value: true });
10
+ exports.OptOutsImpl = void 0;
11
+ const tslib_1 = require("tslib");
12
+ const tracing_js_1 = require("../tracing.js");
13
+ const coreClient = tslib_1.__importStar(require("@azure/core-client"));
14
+ const Mappers = tslib_1.__importStar(require("../models/mappers.js"));
15
+ const Parameters = tslib_1.__importStar(require("../models/parameters.js"));
16
+ /** Class containing OptOuts operations. */
17
+ class OptOutsImpl {
18
+ /**
19
+ * Initialize a new instance of the class OptOuts class.
20
+ * @param client Reference to the service client
21
+ */
22
+ constructor(client) {
23
+ this.client = client;
24
+ }
25
+ /**
26
+ * Add phone numbers to the optouts list which shall stop receiving messages from a sender number.
27
+ * @param body An opt out request.
28
+ * @param options The options parameters.
29
+ */
30
+ async add(body, options) {
31
+ return tracing_js_1.tracingClient.withSpan("SmsApiClient.add", options !== null && options !== void 0 ? options : {}, async (options) => {
32
+ return this.client.sendOperationRequest({ body, options }, addOperationSpec);
33
+ });
34
+ }
35
+ /**
36
+ * Remove phone numbers from the optouts list.
37
+ * @param body An opt out request.
38
+ * @param options The options parameters.
39
+ */
40
+ async remove(body, options) {
41
+ return tracing_js_1.tracingClient.withSpan("SmsApiClient.remove", options !== null && options !== void 0 ? options : {}, async (options) => {
42
+ return this.client.sendOperationRequest({ body, options }, removeOperationSpec);
43
+ });
44
+ }
45
+ /**
46
+ * Check the opt out status for a recipient phone number with a sender phone number.
47
+ * @param body An opt out request.
48
+ * @param options The options parameters.
49
+ */
50
+ async check(body, options) {
51
+ return tracing_js_1.tracingClient.withSpan("SmsApiClient.check", options !== null && options !== void 0 ? options : {}, async (options) => {
52
+ return this.client.sendOperationRequest({ body, options }, checkOperationSpec);
53
+ });
54
+ }
55
+ }
56
+ exports.OptOutsImpl = OptOutsImpl;
57
+ // Operation Specifications
58
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
59
+ const addOperationSpec = {
60
+ path: "/sms/optouts:add",
61
+ httpMethod: "POST",
62
+ responses: {
63
+ 200: {
64
+ bodyMapper: Mappers.OptOutResponse,
65
+ },
66
+ },
67
+ requestBody: Parameters.body,
68
+ queryParameters: [Parameters.apiVersion],
69
+ urlParameters: [Parameters.endpoint],
70
+ headerParameters: [Parameters.contentType, Parameters.accept],
71
+ mediaType: "json",
72
+ serializer,
73
+ };
74
+ const removeOperationSpec = {
75
+ path: "/sms/optouts:remove",
76
+ httpMethod: "POST",
77
+ responses: {
78
+ 200: {
79
+ bodyMapper: Mappers.OptOutResponse,
80
+ },
81
+ },
82
+ requestBody: Parameters.body,
83
+ queryParameters: [Parameters.apiVersion],
84
+ urlParameters: [Parameters.endpoint],
85
+ headerParameters: [Parameters.contentType, Parameters.accept],
86
+ mediaType: "json",
87
+ serializer,
88
+ };
89
+ const checkOperationSpec = {
90
+ path: "/sms/optouts:check",
91
+ httpMethod: "POST",
92
+ responses: {
93
+ 200: {
94
+ bodyMapper: Mappers.OptOutResponse,
95
+ },
96
+ },
97
+ requestBody: Parameters.body,
98
+ queryParameters: [Parameters.apiVersion],
99
+ urlParameters: [Parameters.endpoint],
100
+ headerParameters: [Parameters.contentType, Parameters.accept],
101
+ mediaType: "json",
102
+ serializer,
103
+ };
104
+ //# sourceMappingURL=optOuts.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"optOuts.js","sourceRoot":"","sources":["../../../../../src/generated/src/operations/optOuts.ts"],"names":[],"mappings":";AAAA;;;;;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AAE,CAAC,UAAU,CAAC,WAAW,EAAE,UAAU,CAAC,MAAM,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { 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,2 +1,3 @@
1
1
  export * from "./sms.js";
2
+ export * from "./optOuts.js";
2
3
  //# sourceMappingURL=index.d.ts.map
@@ -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"}
@@ -9,4 +9,5 @@
9
9
  Object.defineProperty(exports, "__esModule", { value: true });
10
10
  const tslib_1 = require("tslib");
11
11
  tslib_1.__exportStar(require("./sms.js"), exports);
12
+ tslib_1.__exportStar(require("./optOuts.js"), exports);
12
13
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/generated/src/operationsInterfaces/index.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAEH,mDAAyB","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,mDAAyB;AACzB,uDAA6B","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,10 @@
1
+ "use strict";
2
+ /*
3
+ * Copyright (c) Microsoft Corporation.
4
+ * Licensed under the MIT License.
5
+ *
6
+ * Code generated by Microsoft (R) AutoRest Code Generator.
7
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
8
+ */
9
+ Object.defineProperty(exports, "__esModule", { value: true });
10
+ //# 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;AACtD,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;IAqClE,8GAA8G;IAC9G,OAAO,CAAC,yBAAyB;IA2BjC,GAAG,EAAE,GAAG,CAAC;CACV"}
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"}
@@ -29,7 +29,7 @@ class SmsApiClient extends coreClient.ServiceClient {
29
29
  const defaults = {
30
30
  requestContentType: "application/json; charset=utf-8",
31
31
  };
32
- const packageDetails = `azsdk-js-communication-sms/1.2.0-beta.1`;
32
+ const packageDetails = `azsdk-js-communication-sms/1.2.0-beta.2`;
33
33
  const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
34
34
  ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
35
35
  : `${packageDetails}`;
@@ -40,8 +40,9 @@ class SmsApiClient extends coreClient.ServiceClient {
40
40
  // Parameter assignments
41
41
  this.endpoint = endpoint;
42
42
  // Assigning values to Constant parameters
43
- this.apiVersion = options.apiVersion || "2024-02-05-preview";
43
+ this.apiVersion = options.apiVersion || "2024-12-10-preview";
44
44
  this.sms = new index_js_1.SmsImpl(this);
45
+ this.optOuts = new index_js_1.OptOutsImpl(this);
45
46
  this.addCustomApiVersionPolicy(options.apiVersion);
46
47
  }
47
48
  /** 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,uEAAiD;AAMjD,oDAAgD;AAIhD,MAAa,YAAa,SAAQ,UAAU,CAAC,aAAa;IAIxD;;;;OAIG;IACH,YAAY,QAAgB,EAAE,OAAoC;;QAChE,IAAI,QAAQ,KAAK,SAAS,EAAE,CAAC;YAC3B,MAAM,IAAI,KAAK,CAAC,2BAA2B,CAAC,CAAC;QAC/C,CAAC;QAED,0CAA0C;QAC1C,IAAI,CAAC,OAAO,EAAE,CAAC;YACb,OAAO,GAAG,EAAE,CAAC;QACf,CAAC;QACD,MAAM,QAAQ,GAA+B;YAC3C,kBAAkB,EAAE,iCAAiC;SACtD,CAAC;QAEF,MAAM,cAAc,GAAG,yCAAyC,CAAC;QACjE,MAAM,eAAe,GACnB,OAAO,CAAC,gBAAgB,IAAI,OAAO,CAAC,gBAAgB,CAAC,eAAe;YAClE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N,OAAO,IAAI,CAAC;wBACd,CAAC;oBACH,CAAC,CAAC,CAAC;oBACH,OAAO,CAAC,GAAG,GAAG,KAAK,CAAC,CAAC,CAAC,GAAG,GAAG,GAAG,SAAS,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;gBACrD,CAAC;gBACD,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC;YACvB,CAAC;SACF,CAAC;QACF,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAC;IAC5C,CAAC;CAGF;AA3ED,oCA2EC","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 } from \"./operations/index.js\";\nimport { Sms } 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.1`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`\n : `${packageDetails}`;\n\n const optionsWithDefaults = {\n ...defaults,\n ...options,\n userAgentOptions: {\n userAgentPrefix,\n },\n 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-02-05-preview\";\n this.sms = new SmsImpl(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}\n"]}
1
+ {"version":3,"file":"smsApiClient.js","sourceRoot":"","sources":["../../../../src/generated/src/smsApiClient.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAEH,uEAAiD;AAMjD,oDAA6D;AAI7D,MAAa,YAAa,SAAQ,UAAU,CAAC,aAAa;IAIxD;;;;OAIG;IACH,YAAY,QAAgB,EAAE,OAAoC;;QAChE,IAAI,QAAQ,KAAK,SAAS,EAAE,CAAC;YAC3B,MAAM,IAAI,KAAK,CAAC,2BAA2B,CAAC,CAAC;QAC/C,CAAC;QAED,0CAA0C;QAC1C,IAAI,CAAC,OAAO,EAAE,CAAC;YACb,OAAO,GAAG,EAAE,CAAC;QACf,CAAC;QACD,MAAM,QAAQ,GAA+B;YAC3C,kBAAkB,EAAE,iCAAiC;SACtD,CAAC;QAEF,MAAM,cAAc,GAAG,yCAAyC,CAAC;QACjE,MAAM,eAAe,GACnB,OAAO,CAAC,gBAAgB,IAAI,OAAO,CAAC,gBAAgB,CAAC,e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AE,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;AA7ED,oCA6EC","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"]}
@@ -12,6 +12,6 @@ const core_tracing_1 = require("@azure/core-tracing");
12
12
  exports.tracingClient = (0, core_tracing_1.createTracingClient)({
13
13
  namespace: "Microsoft.Communication",
14
14
  packageName: "@azure/communication-sms",
15
- packageVersion: "1.2.0-beta.1",
15
+ packageVersion: "1.2.0-beta.2",
16
16
  });
17
17
  //# sourceMappingURL=tracing.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"tracing.js","sourceRoot":"","sources":["../../../../src/generated/src/tracing.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAEH,sDAA0D;AAE7C,QAAA,aAAa,GAAG,IAAA,kCAAmB,EAAC;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\",\n});\n"]}
1
+ {"version":3,"file":"tracing.js","sourceRoot":"","sources":["../../../../src/generated/src/tracing.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAEH,sDAA0D;AAE7C,QAAA,aAAa,GAAG,IAAA,kCAAmB,EAAC;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"]}