@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,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.1";
3
+ export const SDK_VERSION = "1.2.0-beta.2";
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.1\";\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.2\";\n"]}
@@ -47,6 +47,30 @@ export interface SmsSendResponseItem {
47
47
  /** Optional error message in case of 4xx/5xx/repeatable errors. */
48
48
  errorMessage?: string;
49
49
  }
50
+ /** An opt out request. */
51
+ export interface OptOutRequest {
52
+ /** The sender's identifier (typically phone number in E.164 format) that is owned by the authenticated account. */
53
+ from: string;
54
+ recipients: OptOutRecipient[];
55
+ }
56
+ /** A single opt out recipient number. */
57
+ export interface OptOutRecipient {
58
+ /** The recipient's phone number (in E.164 format). */
59
+ to: string;
60
+ }
61
+ /** 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. */
62
+ export interface OptOutResponse {
63
+ value: OptOutResponseItem[];
64
+ }
65
+ export interface OptOutResponseItem {
66
+ /** The recipient phone number (in E.164 format). */
67
+ to: string;
68
+ httpStatusCode: number;
69
+ /** Optional flag specifying if number was Opted Out from receiving messages */
70
+ isOptedOut?: boolean;
71
+ /** Optional error message in case of 4xx/5xx errors. */
72
+ errorMessage?: string;
73
+ }
50
74
  /** Known values of {@link SmsSendResponseItemRepeatabilityResult} that the service accepts. */
51
75
  export declare enum KnownSmsSendResponseItemRepeatabilityResult {
52
76
  /** Accepted */
@@ -69,6 +93,21 @@ export interface SmsSendOptionalParams extends coreClient.OperationOptions {
69
93
  /** Contains response data for the send operation. */
70
94
  export type SmsSendOperationResponse = SmsSendResponse;
71
95
  /** Optional parameters. */
96
+ export interface OptOutsAddOptionalParams extends coreClient.OperationOptions {
97
+ }
98
+ /** Contains response data for the add operation. */
99
+ export type OptOutsAddResponse = OptOutResponse;
100
+ /** Optional parameters. */
101
+ export interface OptOutsRemoveOptionalParams extends coreClient.OperationOptions {
102
+ }
103
+ /** Contains response data for the remove operation. */
104
+ export type OptOutsRemoveResponse = OptOutResponse;
105
+ /** Optional parameters. */
106
+ export interface OptOutsCheckOptionalParams extends coreClient.OperationOptions {
107
+ }
108
+ /** Contains response data for the check operation. */
109
+ export type OptOutsCheckResponse = OptOutResponse;
110
+ /** Optional parameters. */
72
111
  export interface SmsApiClientOptionalParams extends coreClient.ServiceClientOptions {
73
112
  /** Api Version */
74
113
  apiVersion?: string;
@@ -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,WAAW,YAAY;IAC3B,oDAAoD;IACpD,EAAE,EAAE,MAAM,CAAC;IACX,ocAAoc;IACpc,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,8MAA8M;IAC9M,sBAAsB,CAAC,EAAE,MAAM,CAAC;CACjC;AAED,uDAAuD;AACvD,MAAM,WAAW,cAAc;IAC7B,sGAAsG;IACtG,oBAAoB,EAAE,OAAO,CAAC;IAC9B,2GAA2G;IAC3G,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,kHAAkH;IAClH,8BAA8B,CAAC,EAAE,MAAM,CAAC;CACzC;AAED,kEAAkE;AAClE,MAAM,WAAW,eAAe;IAC9B,KAAK,EAAE,mBAAmB,EAAE,CAAC;CAC9B;AAED,uCAAuC;AACvC,MAAM,WAAW,mBAAmB;IAClC,oDAAoD;IACpD,EAAE,EAAE,MAAM,CAAC;IACX,qFAAqF;IACrF,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,wBAAwB;IACxB,cAAc,EAAE,MAAM,CAAC;IACvB,uGAAuG;IACvG,mBAAmB,CAAC,EAAE,sCAAsC,CAAC;IAC7D,iEAAiE;IACjE,UAAU,EAAE,OAAO,CAAC;IACpB,mEAAmE;IACnE,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,+FAA+F;AAC/F,oBAAY,2CAA2C;IACrD,eAAe;IACf,QAAQ,aAAa;IACrB,eAAe;IACf,QAAQ,aAAa;CACtB;AAED;;;;;;;GAOG;AACH,MAAM,MAAM,sCAAsC,GAAG,MAAM,CAAC;AAE5D,2BAA2B;AAC3B,MAAM,WAAW,qBAAsB,SAAQ,UAAU,CAAC,gBAAgB;CAAG;AAE7E,qDAAqD;AACrD,MAAM,MAAM,wBAAwB,GAAG,eAAe,CAAC;AAEvD,2BAA2B;AAC3B,MAAM,WAAW,0BACf,SAAQ,UAAU,CAAC,oBAAoB;IACvC,kBAAkB;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,iCAAiC;IACjC,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/generated/src/models/index.ts"],"names":[],"mappings":"AAQA,OAAO,K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CACnB"}
@@ -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,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/** 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,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"]}
@@ -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"}
@@ -176,4 +176,115 @@ export const SmsSendResponseItem = {
176
176
  },
177
177
  },
178
178
  };
179
+ export const OptOutRequest = {
180
+ type: {
181
+ name: "Composite",
182
+ className: "OptOutRequest",
183
+ modelProperties: {
184
+ from: {
185
+ constraints: {
186
+ MinLength: 1,
187
+ },
188
+ serializedName: "from",
189
+ required: true,
190
+ type: {
191
+ name: "String",
192
+ },
193
+ },
194
+ recipients: {
195
+ constraints: {
196
+ MinItems: 1,
197
+ MaxItems: 100,
198
+ },
199
+ serializedName: "recipients",
200
+ required: true,
201
+ type: {
202
+ name: "Sequence",
203
+ element: {
204
+ type: {
205
+ name: "Composite",
206
+ className: "OptOutRecipient",
207
+ },
208
+ },
209
+ },
210
+ },
211
+ },
212
+ },
213
+ };
214
+ export const OptOutRecipient = {
215
+ type: {
216
+ name: "Composite",
217
+ className: "OptOutRecipient",
218
+ modelProperties: {
219
+ to: {
220
+ constraints: {
221
+ MinLength: 1,
222
+ },
223
+ serializedName: "to",
224
+ required: true,
225
+ type: {
226
+ name: "String",
227
+ },
228
+ },
229
+ },
230
+ },
231
+ };
232
+ export const OptOutResponse = {
233
+ type: {
234
+ name: "Composite",
235
+ className: "OptOutResponse",
236
+ modelProperties: {
237
+ value: {
238
+ serializedName: "value",
239
+ required: true,
240
+ type: {
241
+ name: "Sequence",
242
+ element: {
243
+ type: {
244
+ name: "Composite",
245
+ className: "OptOutResponseItem",
246
+ },
247
+ },
248
+ },
249
+ },
250
+ },
251
+ },
252
+ };
253
+ export const OptOutResponseItem = {
254
+ type: {
255
+ name: "Composite",
256
+ className: "OptOutResponseItem",
257
+ modelProperties: {
258
+ to: {
259
+ constraints: {
260
+ MinLength: 1,
261
+ },
262
+ serializedName: "to",
263
+ required: true,
264
+ type: {
265
+ name: "String",
266
+ },
267
+ },
268
+ httpStatusCode: {
269
+ serializedName: "httpStatusCode",
270
+ required: true,
271
+ type: {
272
+ name: "Number",
273
+ },
274
+ },
275
+ isOptedOut: {
276
+ serializedName: "isOptedOut",
277
+ type: {
278
+ name: "Boolean",
279
+ },
280
+ },
281
+ errorMessage: {
282
+ serializedName: "errorMessage",
283
+ type: {
284
+ name: "String",
285
+ },
286
+ },
287
+ },
288
+ },
289
+ };
179
290
  //# sourceMappingURL=mappers.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"mappers.js","sourceRoot":"","sources":["../../../../../src/generated/src/models/mappers.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,MAAM,CAAC,MAAM,kBAAkB,GAA+B;IAC5D,IAAI,EAAE;QACJ,IAAI,EAAE,WAAW;QACjB,SAAS,EAAE,oBAAoB;QAC/B,eAAe,EAAE;YACf,IAAI,EAAE;gBACJ,cAAc,EAAE,MAAM;gBACtB,QAAQ,EAAE,IAAI;gBACd,IAAI,EAAE;oBACJ,IAAI,EAAE,QAAQ;iBACf;aACF;YACD,aAAa,EAAE;gBACb,cAAc,EAAE,eAAe;gBAC/B,QAAQ,EAAE,IAAI;gBACd,IAAI,EAAE;oBACJ,IAA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;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;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;g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ACxD,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 },\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"}
@@ -5,7 +5,7 @@
5
5
  * Code generated by Microsoft (R) AutoRest Code Generator.
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
- import { SendMessageRequest as SendMessageRequestMapper } from "../models/mappers.js";
8
+ import { SendMessageRequest as SendMessageRequestMapper, OptOutRequest as OptOutRequestMapper, } from "../models/mappers.js";
9
9
  export const contentType = {
10
10
  parameterPath: ["options", "contentType"],
11
11
  mapper: {
@@ -46,7 +46,7 @@ export const endpoint = {
46
46
  export const apiVersion = {
47
47
  parameterPath: "apiVersion",
48
48
  mapper: {
49
- defaultValue: "2024-02-05-preview",
49
+ defaultValue: "2024-12-10-preview",
50
50
  isConstant: true,
51
51
  serializedName: "api-version",
52
52
  type: {
@@ -54,4 +54,8 @@ export const apiVersion = {
54
54
  },
55
55
  },
56
56
  };
57
+ export const body = {
58
+ parameterPath: "body",
59
+ mapper: OptOutRequestMapper,
60
+ };
57
61
  //# sourceMappingURL=parameters.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"parameters.js","sourceRoot":"","sources":["../../../../../src/generated/src/models/parameters.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAOH,OAAO,EAAE,kBAAkB,IAAI,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AAEtF,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","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,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,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"}
@@ -6,4 +6,5 @@
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
8
  export * from "./sms.js";
9
+ export * from "./optOuts.js";
9
10
  //# 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,cAAc,UAAU,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nexport * from \"./sms.js\";\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/generated/src/operations/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nexport * from \"./sms.js\";\nexport * from \"./optOuts.js\";\n"]}
@@ -0,0 +1,31 @@
1
+ import { OptOuts } from "../operationsInterfaces/index.js";
2
+ import { SmsApiClient } from "../smsApiClient.js";
3
+ import { OptOutRequest, OptOutsAddOptionalParams, OptOutsAddResponse, OptOutsRemoveOptionalParams, OptOutsRemoveResponse, OptOutsCheckOptionalParams, OptOutsCheckResponse } from "../models/index.js";
4
+ /** Class containing OptOuts operations. */
5
+ export declare class OptOutsImpl implements OptOuts {
6
+ private readonly client;
7
+ /**
8
+ * Initialize a new instance of the class OptOuts class.
9
+ * @param client Reference to the service client
10
+ */
11
+ constructor(client: SmsApiClient);
12
+ /**
13
+ * Add phone numbers to the optouts list which shall stop receiving messages from a sender number.
14
+ * @param body An opt out request.
15
+ * @param options The options parameters.
16
+ */
17
+ add(body: OptOutRequest, options?: OptOutsAddOptionalParams): Promise<OptOutsAddResponse>;
18
+ /**
19
+ * Remove phone numbers from the optouts list.
20
+ * @param body An opt out request.
21
+ * @param options The options parameters.
22
+ */
23
+ remove(body: OptOutRequest, options?: OptOutsRemoveOptionalParams): Promise<OptOutsRemoveResponse>;
24
+ /**
25
+ * Check the opt out status for a recipient phone number with a sender phone number.
26
+ * @param body An opt out request.
27
+ * @param options The options parameters.
28
+ */
29
+ check(body: OptOutRequest, options?: OptOutsCheckOptionalParams): Promise<OptOutsCheckResponse>;
30
+ }
31
+ //# sourceMappingURL=optOuts.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"optOuts.d.ts","sourceRoot":"","sources":["../../../../../src/generated/src/operations/optOuts.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,OAAO,EAAE,MAAM,kCAAkC,CAAC;AAI3D,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EACL,aAAa,EACb,wBAAwB,EACxB,kBAAkB,EAClB,2BAA2B,EAC3B,qBAAqB,EACrB,0BAA0B,EAC1B,oBAAoB,EACrB,MAAM,oBAAoB,CAAC;AAE5B,2CAA2C;AAC3C,qBAAa,WAAY,YAAW,OAAO;IACzC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAe;IAEtC;;;OAGG;gBACS,MAAM,EAAE,YAAY;IAIhC;;;;OAIG;IACG,GAAG,CACP,IAAI,EAAE,aAAa,EACnB,OAAO,CAAC,EAAE,wBAAwB,GACjC,OAAO,CAAC,kBAAkB,CAAC;IAa9B;;;;OAIG;IACG,MAAM,CACV,IAAI,EAAE,aAAa,EACnB,OAAO,CAAC,EAAE,2BAA2B,GACpC,OAAO,CAAC,qBAAqB,CAAC;IAajC;;;;OAIG;IACG,KAAK,CACT,IAAI,EAAE,aAAa,EACnB,OAAO,CAAC,EAAE,0BAA0B,GACnC,OAAO,CAAC,oBAAoB,CAAC;CAYjC"}
@@ -0,0 +1,99 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import { tracingClient } from "../tracing.js";
9
+ import * as coreClient from "@azure/core-client";
10
+ import * as Mappers from "../models/mappers.js";
11
+ import * as Parameters from "../models/parameters.js";
12
+ /** Class containing OptOuts operations. */
13
+ export class OptOutsImpl {
14
+ /**
15
+ * Initialize a new instance of the class OptOuts class.
16
+ * @param client Reference to the service client
17
+ */
18
+ constructor(client) {
19
+ this.client = client;
20
+ }
21
+ /**
22
+ * Add phone numbers to the optouts list which shall stop receiving messages from a sender number.
23
+ * @param body An opt out request.
24
+ * @param options The options parameters.
25
+ */
26
+ async add(body, options) {
27
+ return tracingClient.withSpan("SmsApiClient.add", options !== null && options !== void 0 ? options : {}, async (options) => {
28
+ return this.client.sendOperationRequest({ body, options }, addOperationSpec);
29
+ });
30
+ }
31
+ /**
32
+ * Remove phone numbers from the optouts list.
33
+ * @param body An opt out request.
34
+ * @param options The options parameters.
35
+ */
36
+ async remove(body, options) {
37
+ return tracingClient.withSpan("SmsApiClient.remove", options !== null && options !== void 0 ? options : {}, async (options) => {
38
+ return this.client.sendOperationRequest({ body, options }, removeOperationSpec);
39
+ });
40
+ }
41
+ /**
42
+ * Check the opt out status for a recipient phone number with a sender phone number.
43
+ * @param body An opt out request.
44
+ * @param options The options parameters.
45
+ */
46
+ async check(body, options) {
47
+ return tracingClient.withSpan("SmsApiClient.check", options !== null && options !== void 0 ? options : {}, async (options) => {
48
+ return this.client.sendOperationRequest({ body, options }, checkOperationSpec);
49
+ });
50
+ }
51
+ }
52
+ // Operation Specifications
53
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
54
+ const addOperationSpec = {
55
+ path: "/sms/optouts:add",
56
+ httpMethod: "POST",
57
+ responses: {
58
+ 200: {
59
+ bodyMapper: Mappers.OptOutResponse,
60
+ },
61
+ },
62
+ requestBody: Parameters.body,
63
+ queryParameters: [Parameters.apiVersion],
64
+ urlParameters: [Parameters.endpoint],
65
+ headerParameters: [Parameters.contentType, Parameters.accept],
66
+ mediaType: "json",
67
+ serializer,
68
+ };
69
+ const removeOperationSpec = {
70
+ path: "/sms/optouts:remove",
71
+ httpMethod: "POST",
72
+ responses: {
73
+ 200: {
74
+ bodyMapper: Mappers.OptOutResponse,
75
+ },
76
+ },
77
+ requestBody: Parameters.body,
78
+ queryParameters: [Parameters.apiVersion],
79
+ urlParameters: [Parameters.endpoint],
80
+ headerParameters: [Parameters.contentType, Parameters.accept],
81
+ mediaType: "json",
82
+ serializer,
83
+ };
84
+ const checkOperationSpec = {
85
+ path: "/sms/optouts:check",
86
+ httpMethod: "POST",
87
+ responses: {
88
+ 200: {
89
+ bodyMapper: Mappers.OptOutResponse,
90
+ },
91
+ },
92
+ requestBody: Parameters.body,
93
+ queryParameters: [Parameters.apiVersion],
94
+ urlParameters: [Parameters.endpoint],
95
+ headerParameters: [Parameters.contentType, Parameters.accept],
96
+ mediaType: "json",
97
+ serializer,
98
+ };
99
+ //# sourceMappingURL=optOuts.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"optOuts.js","sourceRoot":"","sources":["../../../../../src/generated/src/operations/optOuts.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAE9C,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UA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;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"}
@@ -6,4 +6,5 @@
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
8
  export * from "./sms.js";
9
+ export * from "./optOuts.js";
9
10
  //# 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,cAAc,UAAU,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nexport * from \"./sms.js\";\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/generated/src/operationsInterfaces/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nexport * from \"./sms.js\";\nexport * from \"./optOuts.js\";\n"]}
@@ -0,0 +1,23 @@
1
+ import { OptOutRequest, OptOutsAddOptionalParams, OptOutsAddResponse, OptOutsRemoveOptionalParams, OptOutsRemoveResponse, OptOutsCheckOptionalParams, OptOutsCheckResponse } from "../models/index.js";
2
+ /** Interface representing a OptOuts. */
3
+ export interface OptOuts {
4
+ /**
5
+ * Add phone numbers to the optouts list which shall stop receiving messages from a sender number.
6
+ * @param body An opt out request.
7
+ * @param options The options parameters.
8
+ */
9
+ add(body: OptOutRequest, options?: OptOutsAddOptionalParams): Promise<OptOutsAddResponse>;
10
+ /**
11
+ * Remove phone numbers from the optouts list.
12
+ * @param body An opt out request.
13
+ * @param options The options parameters.
14
+ */
15
+ remove(body: OptOutRequest, options?: OptOutsRemoveOptionalParams): Promise<OptOutsRemoveResponse>;
16
+ /**
17
+ * Check the opt out status for a recipient phone number with a sender phone number.
18
+ * @param body An opt out request.
19
+ * @param options The options parameters.
20
+ */
21
+ check(body: OptOutRequest, options?: OptOutsCheckOptionalParams): Promise<OptOutsCheckResponse>;
22
+ }
23
+ //# sourceMappingURL=optOuts.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"optOuts.d.ts","sourceRoot":"","sources":["../../../../../src/generated/src/operationsInterfaces/optOuts.ts"],"names":[],"mappings":"AAQA,OAAO,EACL,aAAa,EACb,wBAAwB,EACxB,kBAAkB,EAClB,2BAA2B,EAC3B,qBAAqB,EACrB,0BAA0B,EAC1B,oBAAoB,EACrB,MAAM,oBAAoB,CAAC;AAE5B,wCAAwC;AACxC,MAAM,WAAW,OAAO;IACtB;;;;OAIG;IACH,GAAG,CACD,IAAI,EAAE,aAAa,EACnB,OAAO,CAAC,EAAE,wBAAwB,GACjC,OAAO,CAAC,kBAAkB,CAAC,CAAC;IAC/B;;;;OAIG;IACH,MAAM,CACJ,IAAI,EAAE,aAAa,EACnB,OAAO,CAAC,EAAE,2BAA2B,GACpC,OAAO,CAAC,qBAAqB,CAAC,CAAC;IAClC;;;;OAIG;IACH,KAAK,CACH,IAAI,EAAE,aAAa,EACnB,OAAO,CAAC,EAAE,0BAA0B,GACnC,OAAO,CAAC,oBAAoB,CAAC,CAAC;CAClC"}
@@ -0,0 +1,9 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ export {};
9
+ //# sourceMappingURL=optOuts.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"optOuts.js","sourceRoot":"","sources":["../../../../../src/generated/src/operationsInterfaces/optOuts.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport {\n OptOutRequest,\n OptOutsAddOptionalParams,\n OptOutsAddResponse,\n OptOutsRemoveOptionalParams,\n OptOutsRemoveResponse,\n OptOutsCheckOptionalParams,\n OptOutsCheckResponse,\n} from \"../models/index.js\";\n\n/** Interface representing a OptOuts. */\nexport interface OptOuts {\n /**\n * Add phone numbers to the optouts list which shall stop receiving messages from a sender number.\n * @param body An opt out request.\n * @param options The options parameters.\n */\n add(\n body: OptOutRequest,\n options?: OptOutsAddOptionalParams,\n ): Promise<OptOutsAddResponse>;\n /**\n * Remove phone numbers from the optouts list.\n * @param body An opt out request.\n * @param options The options parameters.\n */\n remove(\n body: OptOutRequest,\n options?: OptOutsRemoveOptionalParams,\n ): Promise<OptOutsRemoveResponse>;\n /**\n * Check the opt out status for a recipient phone number with a sender phone number.\n * @param body An opt out request.\n * @param options The options parameters.\n */\n check(\n body: OptOutRequest,\n options?: OptOutsCheckOptionalParams,\n ): Promise<OptOutsCheckResponse>;\n}\n"]}
@@ -1,5 +1,5 @@
1
1
  import * as coreClient from "@azure/core-client";
2
- import { Sms } from "./operationsInterfaces/index.js";
2
+ import { Sms, OptOuts } from "./operationsInterfaces/index.js";
3
3
  import { SmsApiClientOptionalParams } from "./models/index.js";
4
4
  export declare class SmsApiClient extends coreClient.ServiceClient {
5
5
  endpoint: string;
@@ -13,5 +13,6 @@ export declare class SmsApiClient extends coreClient.ServiceClient {
13
13
  /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
14
14
  private addCustomApiVersionPolicy;
15
15
  sms: Sms;
16
+ optOuts: OptOuts;
16
17
  }
17
18
  //# sourceMappingURL=smsApiClient.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"smsApiClient.d.ts","sourceRoot":"","sources":["../../../../src/generated/src/smsApiClient.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AAOjD,OAAO,EAAE,GAAG,EAAE,MAAM,iCAAiC,CAAC;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"}