@azure/communication-email 1.0.1-alpha.20241122.8 → 1.0.1-alpha.20241205.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (253) hide show
  1. package/dist/browser/emailClient.d.ts +31 -0
  2. package/dist/browser/emailClient.d.ts.map +1 -0
  3. package/{dist-esm/src → dist/browser}/emailClient.js +2 -2
  4. package/dist/browser/emailClient.js.map +1 -0
  5. package/dist/browser/generated/src/emailRestApiClient.d.ts +17 -0
  6. package/dist/browser/generated/src/emailRestApiClient.d.ts.map +1 -0
  7. package/{dist-esm/src → dist/browser}/generated/src/emailRestApiClient.js +1 -1
  8. package/dist/browser/generated/src/emailRestApiClient.js.map +1 -0
  9. package/dist/browser/generated/src/index.d.ts +4 -0
  10. package/dist/browser/generated/src/index.d.ts.map +1 -0
  11. package/dist/browser/generated/src/index.js +11 -0
  12. package/dist/browser/generated/src/index.js.map +1 -0
  13. package/dist/browser/generated/src/lroImpl.d.ts +16 -0
  14. package/dist/browser/generated/src/lroImpl.d.ts.map +1 -0
  15. package/{types/communication-email.d.ts → dist/browser/generated/src/models/index.d.ts} +184 -215
  16. package/dist/browser/generated/src/models/index.d.ts.map +1 -0
  17. package/dist/browser/generated/src/models/mappers.d.ts +15 -0
  18. package/dist/browser/generated/src/models/mappers.d.ts.map +1 -0
  19. package/dist/browser/generated/src/models/parameters.d.ts +10 -0
  20. package/dist/browser/generated/src/models/parameters.d.ts.map +1 -0
  21. package/{dist-esm/src → dist/browser}/generated/src/models/parameters.js +1 -1
  22. package/{dist-esm/src → dist/browser}/generated/src/models/parameters.js.map +1 -1
  23. package/dist/browser/generated/src/operations/email.d.ts +33 -0
  24. package/dist/browser/generated/src/operations/email.d.ts.map +1 -0
  25. package/{dist-esm/src → dist/browser}/generated/src/operations/email.js +3 -3
  26. package/dist/browser/generated/src/operations/email.js.map +1 -0
  27. package/dist/browser/generated/src/operations/index.d.ts +2 -0
  28. package/dist/browser/generated/src/operations/index.d.ts.map +1 -0
  29. package/{dist-esm/src/generated/src → dist/browser/generated/src/operations}/index.js +1 -3
  30. package/{dist-esm/src → dist/browser}/generated/src/operations/index.js.map +1 -1
  31. package/dist/browser/generated/src/operationsInterfaces/email.d.ts +25 -0
  32. package/dist/browser/generated/src/operationsInterfaces/email.d.ts.map +1 -0
  33. package/dist/browser/generated/src/operationsInterfaces/email.js.map +1 -0
  34. package/dist/browser/generated/src/operationsInterfaces/index.d.ts +2 -0
  35. package/dist/browser/generated/src/operationsInterfaces/index.d.ts.map +1 -0
  36. package/dist/browser/generated/src/operationsInterfaces/index.js +9 -0
  37. package/{dist-esm/src → dist/browser}/generated/src/operationsInterfaces/index.js.map +1 -1
  38. package/dist/browser/index.d.ts +3 -0
  39. package/dist/browser/index.d.ts.map +1 -0
  40. package/dist/browser/index.js +5 -0
  41. package/dist/browser/index.js.map +1 -0
  42. package/dist/browser/logger.d.ts +5 -0
  43. package/dist/browser/logger.d.ts.map +1 -0
  44. package/dist/browser/models.d.ts +57 -0
  45. package/dist/browser/models.d.ts.map +1 -0
  46. package/dist/browser/models.js +4 -0
  47. package/dist/browser/models.js.map +1 -0
  48. package/dist/browser/package.json +3 -0
  49. package/dist/commonjs/emailClient.d.ts +31 -0
  50. package/dist/commonjs/emailClient.d.ts.map +1 -0
  51. package/dist/commonjs/emailClient.js +42 -0
  52. package/dist/commonjs/emailClient.js.map +1 -0
  53. package/dist/commonjs/generated/src/emailRestApiClient.d.ts +17 -0
  54. package/dist/commonjs/generated/src/emailRestApiClient.d.ts.map +1 -0
  55. package/dist/commonjs/generated/src/emailRestApiClient.js +74 -0
  56. package/dist/commonjs/generated/src/emailRestApiClient.js.map +1 -0
  57. package/dist/commonjs/generated/src/index.d.ts +4 -0
  58. package/dist/commonjs/generated/src/index.d.ts.map +1 -0
  59. package/dist/commonjs/generated/src/index.js +16 -0
  60. package/dist/commonjs/generated/src/index.js.map +1 -0
  61. package/dist/commonjs/generated/src/lroImpl.d.ts +16 -0
  62. package/dist/commonjs/generated/src/lroImpl.d.ts.map +1 -0
  63. package/dist/commonjs/generated/src/lroImpl.js +29 -0
  64. package/dist/commonjs/generated/src/lroImpl.js.map +1 -0
  65. package/dist/commonjs/generated/src/models/index.d.ts +184 -0
  66. package/dist/commonjs/generated/src/models/index.d.ts.map +1 -0
  67. package/dist/commonjs/generated/src/models/index.js +25 -0
  68. package/dist/commonjs/generated/src/models/index.js.map +1 -0
  69. package/dist/commonjs/generated/src/models/mappers.d.ts +15 -0
  70. package/dist/commonjs/generated/src/models/mappers.d.ts.map +1 -0
  71. package/dist/commonjs/generated/src/models/mappers.js +388 -0
  72. package/dist/commonjs/generated/src/models/mappers.js.map +1 -0
  73. package/dist/commonjs/generated/src/models/parameters.d.ts +10 -0
  74. package/dist/commonjs/generated/src/models/parameters.d.ts.map +1 -0
  75. package/dist/commonjs/generated/src/models/parameters.js +88 -0
  76. package/dist/commonjs/generated/src/models/parameters.js.map +1 -0
  77. package/dist/commonjs/generated/src/operations/email.d.ts +33 -0
  78. package/dist/commonjs/generated/src/operations/email.d.ts.map +1 -0
  79. package/dist/commonjs/generated/src/operations/email.js +140 -0
  80. package/dist/commonjs/generated/src/operations/email.js.map +1 -0
  81. package/dist/commonjs/generated/src/operations/index.d.ts +2 -0
  82. package/dist/commonjs/generated/src/operations/index.d.ts.map +1 -0
  83. package/dist/commonjs/generated/src/operations/index.js +12 -0
  84. package/dist/commonjs/generated/src/operations/index.js.map +1 -0
  85. package/dist/commonjs/generated/src/operationsInterfaces/email.d.ts +25 -0
  86. package/dist/commonjs/generated/src/operationsInterfaces/email.d.ts.map +1 -0
  87. package/dist/commonjs/generated/src/operationsInterfaces/email.js +10 -0
  88. package/dist/commonjs/generated/src/operationsInterfaces/email.js.map +1 -0
  89. package/dist/commonjs/generated/src/operationsInterfaces/index.d.ts +2 -0
  90. package/dist/commonjs/generated/src/operationsInterfaces/index.d.ts.map +1 -0
  91. package/dist/commonjs/generated/src/operationsInterfaces/index.js +12 -0
  92. package/dist/commonjs/generated/src/operationsInterfaces/index.js.map +1 -0
  93. package/dist/commonjs/index.d.ts +3 -0
  94. package/dist/commonjs/index.d.ts.map +1 -0
  95. package/dist/commonjs/index.js +8 -0
  96. package/dist/commonjs/index.js.map +1 -0
  97. package/dist/commonjs/logger.d.ts +5 -0
  98. package/dist/commonjs/logger.d.ts.map +1 -0
  99. package/dist/commonjs/logger.js +11 -0
  100. package/dist/commonjs/logger.js.map +1 -0
  101. package/dist/commonjs/models.d.ts +57 -0
  102. package/dist/commonjs/models.d.ts.map +1 -0
  103. package/dist/commonjs/models.js +8 -0
  104. package/dist/commonjs/models.js.map +1 -0
  105. package/dist/commonjs/package.json +3 -0
  106. package/dist/commonjs/tsdoc-metadata.json +11 -0
  107. package/dist/esm/emailClient.d.ts +31 -0
  108. package/dist/esm/emailClient.d.ts.map +1 -0
  109. package/dist/esm/emailClient.js +38 -0
  110. package/dist/esm/emailClient.js.map +1 -0
  111. package/dist/esm/generated/src/emailRestApiClient.d.ts +17 -0
  112. package/dist/esm/generated/src/emailRestApiClient.d.ts.map +1 -0
  113. package/dist/esm/generated/src/emailRestApiClient.js +69 -0
  114. package/dist/esm/generated/src/emailRestApiClient.js.map +1 -0
  115. package/dist/esm/generated/src/index.d.ts +4 -0
  116. package/dist/esm/generated/src/index.d.ts.map +1 -0
  117. package/dist/esm/generated/src/index.js +11 -0
  118. package/dist/esm/generated/src/index.js.map +1 -0
  119. package/dist/esm/generated/src/lroImpl.d.ts +16 -0
  120. package/dist/esm/generated/src/lroImpl.d.ts.map +1 -0
  121. package/dist/esm/generated/src/lroImpl.js +25 -0
  122. package/dist/esm/generated/src/lroImpl.js.map +1 -0
  123. package/dist/esm/generated/src/models/index.d.ts +184 -0
  124. package/dist/esm/generated/src/models/index.d.ts.map +1 -0
  125. package/dist/esm/generated/src/models/index.js +22 -0
  126. package/dist/esm/generated/src/models/index.js.map +1 -0
  127. package/dist/esm/generated/src/models/mappers.d.ts +15 -0
  128. package/dist/esm/generated/src/models/mappers.d.ts.map +1 -0
  129. package/dist/esm/generated/src/models/mappers.js +385 -0
  130. package/dist/esm/generated/src/models/mappers.js.map +1 -0
  131. package/dist/esm/generated/src/models/parameters.d.ts +10 -0
  132. package/dist/esm/generated/src/models/parameters.d.ts.map +1 -0
  133. package/dist/esm/generated/src/models/parameters.js +85 -0
  134. package/dist/esm/generated/src/models/parameters.js.map +1 -0
  135. package/dist/esm/generated/src/operations/email.d.ts +33 -0
  136. package/dist/esm/generated/src/operations/email.d.ts.map +1 -0
  137. package/dist/esm/generated/src/operations/email.js +135 -0
  138. package/dist/esm/generated/src/operations/email.js.map +1 -0
  139. package/dist/esm/generated/src/operations/index.d.ts +2 -0
  140. package/dist/esm/generated/src/operations/index.d.ts.map +1 -0
  141. package/dist/esm/generated/src/operations/index.js +9 -0
  142. package/dist/esm/generated/src/operations/index.js.map +1 -0
  143. package/dist/esm/generated/src/operationsInterfaces/email.d.ts +25 -0
  144. package/dist/esm/generated/src/operationsInterfaces/email.d.ts.map +1 -0
  145. package/{dist-esm/src/generated/src/operationsInterfaces/index.js → dist/esm/generated/src/operationsInterfaces/email.js} +2 -2
  146. package/dist/esm/generated/src/operationsInterfaces/email.js.map +1 -0
  147. package/dist/esm/generated/src/operationsInterfaces/index.d.ts +2 -0
  148. package/dist/esm/generated/src/operationsInterfaces/index.d.ts.map +1 -0
  149. package/dist/esm/generated/src/operationsInterfaces/index.js +9 -0
  150. package/dist/esm/generated/src/operationsInterfaces/index.js.map +1 -0
  151. package/dist/esm/index.d.ts +3 -0
  152. package/dist/esm/index.d.ts.map +1 -0
  153. package/dist/esm/index.js +5 -0
  154. package/dist/esm/index.js.map +1 -0
  155. package/dist/esm/logger.d.ts +5 -0
  156. package/dist/esm/logger.d.ts.map +1 -0
  157. package/dist/esm/logger.js +8 -0
  158. package/dist/esm/logger.js.map +1 -0
  159. package/dist/esm/models.d.ts +57 -0
  160. package/dist/esm/models.d.ts.map +1 -0
  161. package/dist/esm/models.js +4 -0
  162. package/dist/esm/models.js.map +1 -0
  163. package/dist/esm/package.json +3 -0
  164. package/dist/react-native/emailClient.d.ts +31 -0
  165. package/dist/react-native/emailClient.d.ts.map +1 -0
  166. package/dist/react-native/emailClient.js +38 -0
  167. package/dist/react-native/emailClient.js.map +1 -0
  168. package/dist/react-native/generated/src/emailRestApiClient.d.ts +17 -0
  169. package/dist/react-native/generated/src/emailRestApiClient.d.ts.map +1 -0
  170. package/dist/react-native/generated/src/emailRestApiClient.js +69 -0
  171. package/dist/react-native/generated/src/emailRestApiClient.js.map +1 -0
  172. package/dist/react-native/generated/src/index.d.ts +4 -0
  173. package/dist/react-native/generated/src/index.d.ts.map +1 -0
  174. package/dist/react-native/generated/src/index.js +11 -0
  175. package/dist/react-native/generated/src/index.js.map +1 -0
  176. package/dist/react-native/generated/src/lroImpl.d.ts +16 -0
  177. package/dist/react-native/generated/src/lroImpl.d.ts.map +1 -0
  178. package/dist/react-native/generated/src/lroImpl.js +25 -0
  179. package/dist/react-native/generated/src/lroImpl.js.map +1 -0
  180. package/dist/react-native/generated/src/models/index.d.ts +184 -0
  181. package/dist/react-native/generated/src/models/index.d.ts.map +1 -0
  182. package/dist/react-native/generated/src/models/index.js +22 -0
  183. package/dist/react-native/generated/src/models/index.js.map +1 -0
  184. package/dist/react-native/generated/src/models/mappers.d.ts +15 -0
  185. package/dist/react-native/generated/src/models/mappers.d.ts.map +1 -0
  186. package/dist/react-native/generated/src/models/mappers.js +385 -0
  187. package/dist/react-native/generated/src/models/mappers.js.map +1 -0
  188. package/dist/react-native/generated/src/models/parameters.d.ts +10 -0
  189. package/dist/react-native/generated/src/models/parameters.d.ts.map +1 -0
  190. package/dist/react-native/generated/src/models/parameters.js +85 -0
  191. package/dist/react-native/generated/src/models/parameters.js.map +1 -0
  192. package/dist/react-native/generated/src/operations/email.d.ts +33 -0
  193. package/dist/react-native/generated/src/operations/email.d.ts.map +1 -0
  194. package/dist/react-native/generated/src/operations/email.js +135 -0
  195. package/dist/react-native/generated/src/operations/email.js.map +1 -0
  196. package/dist/react-native/generated/src/operations/index.d.ts +2 -0
  197. package/dist/react-native/generated/src/operations/index.d.ts.map +1 -0
  198. package/dist/react-native/generated/src/operations/index.js +9 -0
  199. package/dist/react-native/generated/src/operations/index.js.map +1 -0
  200. package/dist/react-native/generated/src/operationsInterfaces/email.d.ts +25 -0
  201. package/dist/react-native/generated/src/operationsInterfaces/email.d.ts.map +1 -0
  202. package/{dist-esm/src/generated/src/operations/index.js → dist/react-native/generated/src/operationsInterfaces/email.js} +2 -2
  203. package/dist/react-native/generated/src/operationsInterfaces/email.js.map +1 -0
  204. package/dist/react-native/generated/src/operationsInterfaces/index.d.ts +2 -0
  205. package/dist/react-native/generated/src/operationsInterfaces/index.d.ts.map +1 -0
  206. package/dist/react-native/generated/src/operationsInterfaces/index.js +9 -0
  207. package/dist/react-native/generated/src/operationsInterfaces/index.js.map +1 -0
  208. package/dist/react-native/index.d.ts +3 -0
  209. package/dist/react-native/index.d.ts.map +1 -0
  210. package/dist/react-native/index.js +5 -0
  211. package/dist/react-native/index.js.map +1 -0
  212. package/dist/react-native/logger.d.ts +5 -0
  213. package/dist/react-native/logger.d.ts.map +1 -0
  214. package/dist/react-native/logger.js +8 -0
  215. package/dist/react-native/logger.js.map +1 -0
  216. package/dist/react-native/models.d.ts +57 -0
  217. package/dist/react-native/models.d.ts.map +1 -0
  218. package/dist/react-native/models.js +4 -0
  219. package/dist/react-native/models.js.map +1 -0
  220. package/dist/react-native/package.json +3 -0
  221. package/package.json +64 -41
  222. package/dist/index.js +0 -802
  223. package/dist/index.js.map +0 -1
  224. package/dist-esm/samples-dev/sendEmailMultipleRecipients.js +0 -46
  225. package/dist-esm/samples-dev/sendEmailMultipleRecipients.js.map +0 -1
  226. package/dist-esm/samples-dev/sendEmailSingleRecipient.js +0 -40
  227. package/dist-esm/samples-dev/sendEmailSingleRecipient.js.map +0 -1
  228. package/dist-esm/samples-dev/sendEmailWithAttachments.js +0 -47
  229. package/dist-esm/samples-dev/sendEmailWithAttachments.js.map +0 -1
  230. package/dist-esm/samples-dev/sendEmailWithInlineAttachments.js +0 -48
  231. package/dist-esm/samples-dev/sendEmailWithInlineAttachments.js.map +0 -1
  232. package/dist-esm/src/emailClient.js.map +0 -1
  233. package/dist-esm/src/generated/src/emailRestApiClient.js.map +0 -1
  234. package/dist-esm/src/generated/src/index.js.map +0 -1
  235. package/dist-esm/src/generated/src/operations/email.js.map +0 -1
  236. package/dist-esm/src/generated/src/operationsInterfaces/email.js.map +0 -1
  237. package/dist-esm/src/index.js +0 -5
  238. package/dist-esm/src/index.js.map +0 -1
  239. package/dist-esm/src/models.js +0 -4
  240. package/dist-esm/src/models.js.map +0 -1
  241. package/dist-esm/test/public/emailClient.spec.js +0 -138
  242. package/dist-esm/test/public/emailClient.spec.js.map +0 -1
  243. package/dist-esm/test/public/utils/recordedClient.js +0 -59
  244. package/dist-esm/test/public/utils/recordedClient.js.map +0 -1
  245. /package/{dist-esm/src → dist/browser}/generated/src/lroImpl.js +0 -0
  246. /package/{dist-esm/src → dist/browser}/generated/src/lroImpl.js.map +0 -0
  247. /package/{dist-esm/src → dist/browser}/generated/src/models/index.js +0 -0
  248. /package/{dist-esm/src → dist/browser}/generated/src/models/index.js.map +0 -0
  249. /package/{dist-esm/src → dist/browser}/generated/src/models/mappers.js +0 -0
  250. /package/{dist-esm/src → dist/browser}/generated/src/models/mappers.js.map +0 -0
  251. /package/{dist-esm/src → dist/browser}/generated/src/operationsInterfaces/email.js +0 -0
  252. /package/{dist-esm/src → dist/browser}/logger.js +0 -0
  253. /package/{dist-esm/src → dist/browser}/logger.js.map +0 -0
@@ -0,0 +1,25 @@
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 { __rest } from "tslib";
9
+ export class LroImpl {
10
+ constructor(sendOperationFn, args, spec, requestPath = spec.path, requestMethod = spec.httpMethod) {
11
+ this.sendOperationFn = sendOperationFn;
12
+ this.args = args;
13
+ this.spec = spec;
14
+ this.requestPath = requestPath;
15
+ this.requestMethod = requestMethod;
16
+ }
17
+ async sendInitialRequest() {
18
+ return this.sendOperationFn(this.args, this.spec);
19
+ }
20
+ async sendPollRequest(path) {
21
+ const _a = this.spec, { requestBody } = _a, restSpec = __rest(_a, ["requestBody"]);
22
+ return this.sendOperationFn(this.args, Object.assign(Object.assign({}, restSpec), { path, httpMethod: "GET" }));
23
+ }
24
+ }
25
+ //# sourceMappingURL=lroImpl.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lroImpl.js","sourceRoot":"","sources":["../../../../src/generated/src/lroImpl.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAIH,MAAM,OAAO,OAAO;IAClB,YACU,eAAkE,EAClE,IAA6B,EAC7B,IAIe,EAChB,cAAsB,IAAI,CAAC,IAAK,EAChC,gBAAwB,IAAI,CAAC,UAAU;QARtC,oBAAe,GAAf,eAAe,CAAmD;QAClE,SAAI,GAAJ,IAAI,CAAyB;QAC7B,SAAI,GAAJ,IAAI,CAIW;QAChB,gBAAW,GAAX,WAAW,CAAqB;QAChC,kBAAa,GAAb,aAAa,CAA0B;IAC7C,CAAC;IACG,KAAK,CAAC,kBAAkB;QAC7B,OAAO,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC;IACpD,CAAC;IACM,KAAK,CAAC,eAAe,CAAC,IAAY;QACvC,MAAM,KAA+B,IAAI,CAAC,IAAI,EAAxC,EAAE,WAAW,OAA2B,EAAtB,QAAQ,cAA1B,eAA4B,CAAY,CAAC;QAC/C,OAAO,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,IAAI,kCAChC,QAAQ,KACX,IAAI,EACJ,UAAU,EAAE,KAAK,IACjB,CAAC;IACL,CAAC;CACF","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { LongRunningOperation, LroResponse } from \"@azure/core-lro\";\n\nexport class LroImpl<T> implements LongRunningOperation<T> {\n constructor(\n private sendOperationFn: (args: any, spec: any) => Promise<LroResponse<T>>,\n private args: Record<string, unknown>,\n private spec: {\n readonly requestBody?: unknown;\n readonly path?: string;\n readonly httpMethod: string;\n } & Record<string, any>,\n public requestPath: string = spec.path!,\n public requestMethod: string = spec.httpMethod\n ) {}\n public async sendInitialRequest(): Promise<LroResponse<T>> {\n return this.sendOperationFn(this.args, this.spec);\n }\n public async sendPollRequest(path: string): Promise<LroResponse<T>> {\n const { requestBody, ...restSpec } = this.spec;\n return this.sendOperationFn(this.args, {\n ...restSpec,\n path,\n httpMethod: \"GET\"\n });\n }\n}\n"]}
@@ -0,0 +1,184 @@
1
+ import * as coreClient from "@azure/core-client";
2
+ /** Status of the long running operation */
3
+ export interface EmailSendResult {
4
+ /** The unique id of the operation. Use a UUID. */
5
+ id: string;
6
+ /** Status of operation. */
7
+ status: EmailSendStatus;
8
+ /** Error details when status is a non-success terminal state. */
9
+ error?: ErrorDetail;
10
+ }
11
+ /** The error detail. */
12
+ export interface ErrorDetail {
13
+ /**
14
+ * The error code.
15
+ * NOTE: This property will not be serialized. It can only be populated by the server.
16
+ */
17
+ readonly code?: string;
18
+ /**
19
+ * The error message.
20
+ * NOTE: This property will not be serialized. It can only be populated by the server.
21
+ */
22
+ readonly message?: string;
23
+ /**
24
+ * The error target.
25
+ * NOTE: This property will not be serialized. It can only be populated by the server.
26
+ */
27
+ readonly target?: string;
28
+ /**
29
+ * The error details.
30
+ * NOTE: This property will not be serialized. It can only be populated by the server.
31
+ */
32
+ readonly details?: ErrorDetail[];
33
+ /**
34
+ * The error additional info.
35
+ * NOTE: This property will not be serialized. It can only be populated by the server.
36
+ */
37
+ readonly additionalInfo?: ErrorAdditionalInfo[];
38
+ }
39
+ /** The resource management error additional info. */
40
+ export interface ErrorAdditionalInfo {
41
+ /**
42
+ * The additional info type.
43
+ * NOTE: This property will not be serialized. It can only be populated by the server.
44
+ */
45
+ readonly type?: string;
46
+ /**
47
+ * The additional info.
48
+ * NOTE: This property will not be serialized. It can only be populated by the server.
49
+ */
50
+ readonly info?: Record<string, unknown>;
51
+ }
52
+ /** Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.). */
53
+ export interface ErrorResponse {
54
+ /** The error object. */
55
+ error?: ErrorDetail;
56
+ }
57
+ /** Message payload for sending an email */
58
+ export interface EmailMessage {
59
+ /** Custom email headers to be passed. */
60
+ headers?: {
61
+ [propertyName: string]: string;
62
+ };
63
+ /** Sender email address from a verified domain. */
64
+ senderAddress: string;
65
+ /** Email content to be sent. */
66
+ content: EmailContent;
67
+ /** Recipients for the email. */
68
+ recipients: EmailRecipients;
69
+ /** List of attachments. Please note that we limit the total size of an email request (which includes both regular and inline attachments) to 10MB. */
70
+ attachments?: EmailAttachment[];
71
+ /** Email addresses where recipients' replies will be sent to. */
72
+ replyTo?: EmailAddress[];
73
+ /** Indicates whether user engagement tracking should be disabled for this request if the resource-level user engagement tracking setting was already enabled in the control plane. */
74
+ disableUserEngagementTracking?: boolean;
75
+ }
76
+ /** Content of the email. */
77
+ export interface EmailContent {
78
+ /** Subject of the email message */
79
+ subject: string;
80
+ /** Plain text version of the email message. */
81
+ plainText?: string;
82
+ /** Html version of the email message. */
83
+ html?: string;
84
+ }
85
+ /** Recipients of the email */
86
+ export interface EmailRecipients {
87
+ /** Email To recipients */
88
+ to?: EmailAddress[];
89
+ /** Email CC recipients */
90
+ cc?: EmailAddress[];
91
+ /** Email BCC recipients */
92
+ bcc?: EmailAddress[];
93
+ }
94
+ /** An object representing the email address and its display name */
95
+ export interface EmailAddress {
96
+ /** Email address. */
97
+ address: string;
98
+ /** Email display name. */
99
+ displayName?: string;
100
+ }
101
+ /** Attachment to the email. */
102
+ export interface EmailAttachment {
103
+ /** Name of the attachment */
104
+ name: string;
105
+ /** MIME type of the content being attached. */
106
+ contentType: string;
107
+ /** Base64 encoded contents of the attachment */
108
+ contentInBase64: string;
109
+ /** Unique identifier (CID) to reference an inline attachment. */
110
+ contentId?: string;
111
+ }
112
+ /** Defines headers for Email_getSendResult operation. */
113
+ export interface EmailGetSendResultHeaders {
114
+ /** This header will only be present when the status is a non-terminal status. It indicates the minimum amount of time in seconds to wait before polling for operation status again. */
115
+ retryAfter?: number;
116
+ }
117
+ /** Defines headers for Email_getSendResult operation. */
118
+ export interface EmailGetSendResultExceptionHeaders {
119
+ /** Error code - this will be the same as the code in the error property in the response body. */
120
+ xMsErrorCode?: string;
121
+ }
122
+ /** Defines headers for Email_send operation. */
123
+ export interface EmailSendHeaders {
124
+ /** Location url of where to poll the status of this operation from. */
125
+ operationLocation?: string;
126
+ /** This header will only be present when the operation status is a non-terminal status. It indicates the minimum amount of time in seconds to wait before polling for operation status again. */
127
+ retryAfter?: number;
128
+ }
129
+ /** Defines headers for Email_send operation. */
130
+ export interface EmailSendExceptionHeaders {
131
+ /** Error code - this will be the same as the code in the error property in the response body. */
132
+ xMsErrorCode?: string;
133
+ }
134
+ /** Known values of {@link EmailSendStatus} that the service accepts. */
135
+ export declare enum KnownEmailSendStatus {
136
+ /** NotStarted */
137
+ NotStarted = "NotStarted",
138
+ /** Running */
139
+ Running = "Running",
140
+ /** Succeeded */
141
+ Succeeded = "Succeeded",
142
+ /** Failed */
143
+ Failed = "Failed",
144
+ /** Canceled */
145
+ Canceled = "Canceled"
146
+ }
147
+ /**
148
+ * Defines values for EmailSendStatus. \
149
+ * {@link KnownEmailSendStatus} can be used interchangeably with EmailSendStatus,
150
+ * this enum contains the known values that the service supports.
151
+ * ### Known values supported by the service
152
+ * **NotStarted** \
153
+ * **Running** \
154
+ * **Succeeded** \
155
+ * **Failed** \
156
+ * **Canceled**
157
+ */
158
+ export type EmailSendStatus = string;
159
+ /** Optional parameters. */
160
+ export interface EmailGetSendResultOptionalParams extends coreClient.OperationOptions {
161
+ }
162
+ /** Contains response data for the getSendResult operation. */
163
+ export type EmailGetSendResultResponse = EmailGetSendResultHeaders & EmailSendResult;
164
+ /** Optional parameters. */
165
+ export interface EmailSendOptionalParams extends coreClient.OperationOptions {
166
+ /** This is the ID provided by the customer to identify the long running operation. If an ID is not provided by the customer, the service will generate one. */
167
+ operationId?: string;
168
+ /** Tracking ID sent with the request to help with debugging. */
169
+ clientRequestId?: string;
170
+ /** Delay to wait until next poll, in milliseconds. */
171
+ updateIntervalInMs?: number;
172
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
173
+ resumeFrom?: string;
174
+ }
175
+ /** Contains response data for the send operation. */
176
+ export type EmailSendResponse = EmailSendHeaders & EmailSendResult;
177
+ /** Optional parameters. */
178
+ export interface EmailRestApiClientOptionalParams extends coreClient.ServiceClientOptions {
179
+ /** Api Version */
180
+ apiVersion?: string;
181
+ /** Overrides client endpoint. */
182
+ endpoint?: string;
183
+ }
184
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/generated/src/models/index.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,22 @@
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
+ /** Known values of {@link EmailSendStatus} that the service accepts. */
9
+ export var KnownEmailSendStatus;
10
+ (function (KnownEmailSendStatus) {
11
+ /** NotStarted */
12
+ KnownEmailSendStatus["NotStarted"] = "NotStarted";
13
+ /** Running */
14
+ KnownEmailSendStatus["Running"] = "Running";
15
+ /** Succeeded */
16
+ KnownEmailSendStatus["Succeeded"] = "Succeeded";
17
+ /** Failed */
18
+ KnownEmailSendStatus["Failed"] = "Failed";
19
+ /** Canceled */
20
+ KnownEmailSendStatus["Canceled"] = "Canceled";
21
+ })(KnownEmailSendStatus || (KnownEmailSendStatus = {}));
22
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/generated/src/models/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAmJH,wEAAwE;AACxE,MAAM,CAAN,IAAY,oBAWX;AAXD,WAAY,oBAAoB;IAC9B,iBAAiB;IACjB,iDAAyB,CAAA;IACzB,cAAc;IACd,2CAAmB,CAAA;IACnB,gBAAgB;IAChB,+CAAuB,CAAA;IACvB,aAAa;IACb,yCAAiB,CAAA;IACjB,eAAe;IACf,6CAAqB,CAAA;AACvB,CAAC,EAXW,oBAAoB,KAApB,oBAAoB,QAW/B","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/** Status of the long running operation */\nexport interface EmailSendResult {\n /** The unique id of the operation. Use a UUID. */\n id: string;\n /** Status of operation. */\n status: EmailSendStatus;\n /** Error details when status is a non-success terminal state. */\n error?: ErrorDetail;\n}\n\n/** The error detail. */\nexport interface ErrorDetail {\n /**\n * The error code.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly code?: string;\n /**\n * The error message.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly message?: string;\n /**\n * The error target.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly target?: string;\n /**\n * The error details.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly details?: ErrorDetail[];\n /**\n * The error additional info.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly additionalInfo?: ErrorAdditionalInfo[];\n}\n\n/** The resource management error additional info. */\nexport interface ErrorAdditionalInfo {\n /**\n * The additional info type.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly type?: string;\n /**\n * The additional info.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly info?: Record<string, unknown>;\n}\n\n/** Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.). */\nexport interface ErrorResponse {\n /** The error object. */\n error?: ErrorDetail;\n}\n\n/** Message payload for sending an email */\nexport interface EmailMessage {\n /** Custom email headers to be passed. */\n headers?: { [propertyName: string]: string };\n /** Sender email address from a verified domain. */\n senderAddress: string;\n /** Email content to be sent. */\n content: EmailContent;\n /** Recipients for the email. */\n recipients: EmailRecipients;\n /** List of attachments. Please note that we limit the total size of an email request (which includes both regular and inline attachments) to 10MB. */\n attachments?: EmailAttachment[];\n /** Email addresses where recipients' replies will be sent to. */\n replyTo?: EmailAddress[];\n /** Indicates whether user engagement tracking should be disabled for this request if the resource-level user engagement tracking setting was already enabled in the control plane. */\n disableUserEngagementTracking?: boolean;\n}\n\n/** Content of the email. */\nexport interface EmailContent {\n /** Subject of the email message */\n subject: string;\n /** Plain text version of the email message. */\n plainText?: string;\n /** Html version of the email message. */\n html?: string;\n}\n\n/** Recipients of the email */\nexport interface EmailRecipients {\n /** Email To recipients */\n to?: EmailAddress[];\n /** Email CC recipients */\n cc?: EmailAddress[];\n /** Email BCC recipients */\n bcc?: EmailAddress[];\n}\n\n/** An object representing the email address and its display name */\nexport interface EmailAddress {\n /** Email address. */\n address: string;\n /** Email display name. */\n displayName?: string;\n}\n\n/** Attachment to the email. */\nexport interface EmailAttachment {\n /** Name of the attachment */\n name: string;\n /** MIME type of the content being attached. */\n contentType: string;\n /** Base64 encoded contents of the attachment */\n contentInBase64: string;\n /** Unique identifier (CID) to reference an inline attachment. */\n contentId?: string;\n}\n\n/** Defines headers for Email_getSendResult operation. */\nexport interface EmailGetSendResultHeaders {\n /** This header will only be present when the status is a non-terminal status. It indicates the minimum amount of time in seconds to wait before polling for operation status again. */\n retryAfter?: number;\n}\n\n/** Defines headers for Email_getSendResult operation. */\nexport interface EmailGetSendResultExceptionHeaders {\n /** Error code - this will be the same as the code in the error property in the response body. */\n xMsErrorCode?: string;\n}\n\n/** Defines headers for Email_send operation. */\nexport interface EmailSendHeaders {\n /** Location url of where to poll the status of this operation from. */\n operationLocation?: string;\n /** This header will only be present when the operation status is a non-terminal status. It indicates the minimum amount of time in seconds to wait before polling for operation status again. */\n retryAfter?: number;\n}\n\n/** Defines headers for Email_send operation. */\nexport interface EmailSendExceptionHeaders {\n /** Error code - this will be the same as the code in the error property in the response body. */\n xMsErrorCode?: string;\n}\n\n/** Known values of {@link EmailSendStatus} that the service accepts. */\nexport enum KnownEmailSendStatus {\n /** NotStarted */\n NotStarted = \"NotStarted\",\n /** Running */\n Running = \"Running\",\n /** Succeeded */\n Succeeded = \"Succeeded\",\n /** Failed */\n Failed = \"Failed\",\n /** Canceled */\n Canceled = \"Canceled\"\n}\n\n/**\n * Defines values for EmailSendStatus. \\\n * {@link KnownEmailSendStatus} can be used interchangeably with EmailSendStatus,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **NotStarted** \\\n * **Running** \\\n * **Succeeded** \\\n * **Failed** \\\n * **Canceled**\n */\nexport type EmailSendStatus = string;\n\n/** Optional parameters. */\nexport interface EmailGetSendResultOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the getSendResult operation. */\nexport type EmailGetSendResultResponse = EmailGetSendResultHeaders &\n EmailSendResult;\n\n/** Optional parameters. */\nexport interface EmailSendOptionalParams extends coreClient.OperationOptions {\n /** This is the ID provided by the customer to identify the long running operation. If an ID is not provided by the customer, the service will generate one. */\n operationId?: string;\n /** Tracking ID sent with the request to help with debugging. */\n clientRequestId?: string;\n /** Delay to wait until next poll, in milliseconds. */\n updateIntervalInMs?: number;\n /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */\n resumeFrom?: string;\n}\n\n/** Contains response data for the send operation. */\nexport type EmailSendResponse = EmailSendHeaders & EmailSendResult;\n\n/** Optional parameters. */\nexport interface EmailRestApiClientOptionalParams\n extends coreClient.ServiceClientOptions {\n /** Api Version */\n apiVersion?: string;\n /** Overrides client endpoint. */\n endpoint?: string;\n}\n"]}
@@ -0,0 +1,15 @@
1
+ import * as coreClient from "@azure/core-client";
2
+ export declare const EmailSendResult: coreClient.CompositeMapper;
3
+ export declare const ErrorDetail: coreClient.CompositeMapper;
4
+ export declare const ErrorAdditionalInfo: coreClient.CompositeMapper;
5
+ export declare const ErrorResponse: coreClient.CompositeMapper;
6
+ export declare const EmailMessage: coreClient.CompositeMapper;
7
+ export declare const EmailContent: coreClient.CompositeMapper;
8
+ export declare const EmailRecipients: coreClient.CompositeMapper;
9
+ export declare const EmailAddress: coreClient.CompositeMapper;
10
+ export declare const EmailAttachment: coreClient.CompositeMapper;
11
+ export declare const EmailGetSendResultHeaders: coreClient.CompositeMapper;
12
+ export declare const EmailGetSendResultExceptionHeaders: coreClient.CompositeMapper;
13
+ export declare const EmailSendHeaders: coreClient.CompositeMapper;
14
+ export declare const EmailSendExceptionHeaders: coreClient.CompositeMapper;
15
+ //# sourceMappingURL=mappers.d.ts.map
@@ -0,0 +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,eAAe,EAAE,UAAU,CAAC,eA4BxC,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,UAAU,CAAC,eAsDpC,CAAC;AAEF,eAAO,MAAM,mBAAmB,EAAE,UAAU,CAAC,eAsB5C,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,UAAU,CAAC,eActC,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,UAAU,CAAC,eAiErC,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,UAAU,CAAC,eA0BrC,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,UAAU,CAAC,eA2CxC,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,UAAU,CAAC,eAoBrC,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,UAAU,CAAC,eAkCxC,CAAC;AAEF,eAAO,MAAM,yBAAyB,EAAE,UAAU,CAAC,eAalD,CAAC;AAEF,eAAO,MAAM,kCAAkC,EAAE,UAAU,CAAC,eAa3D,CAAC;AAEF,eAAO,MAAM,gBAAgB,EAAE,UAAU,CAAC,eAmBzC,CAAC;AAEF,eAAO,MAAM,yBAAyB,EAAE,UAAU,CAAC,eAalD,CAAC"}
@@ -0,0 +1,385 @@
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 const EmailSendResult = {
9
+ type: {
10
+ name: "Composite",
11
+ className: "EmailSendResult",
12
+ modelProperties: {
13
+ id: {
14
+ serializedName: "id",
15
+ required: true,
16
+ type: {
17
+ name: "String"
18
+ }
19
+ },
20
+ status: {
21
+ serializedName: "status",
22
+ required: true,
23
+ type: {
24
+ name: "String"
25
+ }
26
+ },
27
+ error: {
28
+ serializedName: "error",
29
+ type: {
30
+ name: "Composite",
31
+ className: "ErrorDetail"
32
+ }
33
+ }
34
+ }
35
+ }
36
+ };
37
+ export const ErrorDetail = {
38
+ type: {
39
+ name: "Composite",
40
+ className: "ErrorDetail",
41
+ modelProperties: {
42
+ code: {
43
+ serializedName: "code",
44
+ readOnly: true,
45
+ type: {
46
+ name: "String"
47
+ }
48
+ },
49
+ message: {
50
+ serializedName: "message",
51
+ readOnly: true,
52
+ type: {
53
+ name: "String"
54
+ }
55
+ },
56
+ target: {
57
+ serializedName: "target",
58
+ readOnly: true,
59
+ type: {
60
+ name: "String"
61
+ }
62
+ },
63
+ details: {
64
+ serializedName: "details",
65
+ readOnly: true,
66
+ type: {
67
+ name: "Sequence",
68
+ element: {
69
+ type: {
70
+ name: "Composite",
71
+ className: "ErrorDetail"
72
+ }
73
+ }
74
+ }
75
+ },
76
+ additionalInfo: {
77
+ serializedName: "additionalInfo",
78
+ readOnly: true,
79
+ type: {
80
+ name: "Sequence",
81
+ element: {
82
+ type: {
83
+ name: "Composite",
84
+ className: "ErrorAdditionalInfo"
85
+ }
86
+ }
87
+ }
88
+ }
89
+ }
90
+ }
91
+ };
92
+ export const ErrorAdditionalInfo = {
93
+ type: {
94
+ name: "Composite",
95
+ className: "ErrorAdditionalInfo",
96
+ modelProperties: {
97
+ type: {
98
+ serializedName: "type",
99
+ readOnly: true,
100
+ type: {
101
+ name: "String"
102
+ }
103
+ },
104
+ info: {
105
+ serializedName: "info",
106
+ readOnly: true,
107
+ type: {
108
+ name: "Dictionary",
109
+ value: { type: { name: "any" } }
110
+ }
111
+ }
112
+ }
113
+ }
114
+ };
115
+ export const ErrorResponse = {
116
+ type: {
117
+ name: "Composite",
118
+ className: "ErrorResponse",
119
+ modelProperties: {
120
+ error: {
121
+ serializedName: "error",
122
+ type: {
123
+ name: "Composite",
124
+ className: "ErrorDetail"
125
+ }
126
+ }
127
+ }
128
+ }
129
+ };
130
+ export const EmailMessage = {
131
+ type: {
132
+ name: "Composite",
133
+ className: "EmailMessage",
134
+ modelProperties: {
135
+ headers: {
136
+ serializedName: "headers",
137
+ type: {
138
+ name: "Dictionary",
139
+ value: { type: { name: "String" } }
140
+ }
141
+ },
142
+ senderAddress: {
143
+ serializedName: "senderAddress",
144
+ required: true,
145
+ type: {
146
+ name: "String"
147
+ }
148
+ },
149
+ content: {
150
+ serializedName: "content",
151
+ type: {
152
+ name: "Composite",
153
+ className: "EmailContent"
154
+ }
155
+ },
156
+ recipients: {
157
+ serializedName: "recipients",
158
+ type: {
159
+ name: "Composite",
160
+ className: "EmailRecipients"
161
+ }
162
+ },
163
+ attachments: {
164
+ serializedName: "attachments",
165
+ type: {
166
+ name: "Sequence",
167
+ element: {
168
+ type: {
169
+ name: "Composite",
170
+ className: "EmailAttachment"
171
+ }
172
+ }
173
+ }
174
+ },
175
+ replyTo: {
176
+ serializedName: "replyTo",
177
+ type: {
178
+ name: "Sequence",
179
+ element: {
180
+ type: {
181
+ name: "Composite",
182
+ className: "EmailAddress"
183
+ }
184
+ }
185
+ }
186
+ },
187
+ disableUserEngagementTracking: {
188
+ serializedName: "userEngagementTrackingDisabled",
189
+ type: {
190
+ name: "Boolean"
191
+ }
192
+ }
193
+ }
194
+ }
195
+ };
196
+ export const EmailContent = {
197
+ type: {
198
+ name: "Composite",
199
+ className: "EmailContent",
200
+ modelProperties: {
201
+ subject: {
202
+ serializedName: "subject",
203
+ required: true,
204
+ type: {
205
+ name: "String"
206
+ }
207
+ },
208
+ plainText: {
209
+ serializedName: "plainText",
210
+ type: {
211
+ name: "String"
212
+ }
213
+ },
214
+ html: {
215
+ serializedName: "html",
216
+ type: {
217
+ name: "String"
218
+ }
219
+ }
220
+ }
221
+ }
222
+ };
223
+ export const EmailRecipients = {
224
+ type: {
225
+ name: "Composite",
226
+ className: "EmailRecipients",
227
+ modelProperties: {
228
+ to: {
229
+ serializedName: "to",
230
+ type: {
231
+ name: "Sequence",
232
+ element: {
233
+ type: {
234
+ name: "Composite",
235
+ className: "EmailAddress"
236
+ }
237
+ }
238
+ }
239
+ },
240
+ cc: {
241
+ serializedName: "cc",
242
+ type: {
243
+ name: "Sequence",
244
+ element: {
245
+ type: {
246
+ name: "Composite",
247
+ className: "EmailAddress"
248
+ }
249
+ }
250
+ }
251
+ },
252
+ bcc: {
253
+ serializedName: "bcc",
254
+ type: {
255
+ name: "Sequence",
256
+ element: {
257
+ type: {
258
+ name: "Composite",
259
+ className: "EmailAddress"
260
+ }
261
+ }
262
+ }
263
+ }
264
+ }
265
+ }
266
+ };
267
+ export const EmailAddress = {
268
+ type: {
269
+ name: "Composite",
270
+ className: "EmailAddress",
271
+ modelProperties: {
272
+ address: {
273
+ serializedName: "address",
274
+ required: true,
275
+ type: {
276
+ name: "String"
277
+ }
278
+ },
279
+ displayName: {
280
+ serializedName: "displayName",
281
+ type: {
282
+ name: "String"
283
+ }
284
+ }
285
+ }
286
+ }
287
+ };
288
+ export const EmailAttachment = {
289
+ type: {
290
+ name: "Composite",
291
+ className: "EmailAttachment",
292
+ modelProperties: {
293
+ name: {
294
+ serializedName: "name",
295
+ required: true,
296
+ type: {
297
+ name: "String"
298
+ }
299
+ },
300
+ contentType: {
301
+ serializedName: "contentType",
302
+ required: true,
303
+ type: {
304
+ name: "String"
305
+ }
306
+ },
307
+ contentInBase64: {
308
+ serializedName: "contentInBase64",
309
+ required: true,
310
+ type: {
311
+ name: "String"
312
+ }
313
+ },
314
+ contentId: {
315
+ serializedName: "contentId",
316
+ type: {
317
+ name: "String"
318
+ }
319
+ }
320
+ }
321
+ }
322
+ };
323
+ export const EmailGetSendResultHeaders = {
324
+ type: {
325
+ name: "Composite",
326
+ className: "EmailGetSendResultHeaders",
327
+ modelProperties: {
328
+ retryAfter: {
329
+ serializedName: "retry-after",
330
+ type: {
331
+ name: "Number"
332
+ }
333
+ }
334
+ }
335
+ }
336
+ };
337
+ export const EmailGetSendResultExceptionHeaders = {
338
+ type: {
339
+ name: "Composite",
340
+ className: "EmailGetSendResultExceptionHeaders",
341
+ modelProperties: {
342
+ xMsErrorCode: {
343
+ serializedName: "x-ms-error-code",
344
+ type: {
345
+ name: "String"
346
+ }
347
+ }
348
+ }
349
+ }
350
+ };
351
+ export const EmailSendHeaders = {
352
+ type: {
353
+ name: "Composite",
354
+ className: "EmailSendHeaders",
355
+ modelProperties: {
356
+ operationLocation: {
357
+ serializedName: "operation-location",
358
+ type: {
359
+ name: "String"
360
+ }
361
+ },
362
+ retryAfter: {
363
+ serializedName: "retry-after",
364
+ type: {
365
+ name: "Number"
366
+ }
367
+ }
368
+ }
369
+ }
370
+ };
371
+ export const EmailSendExceptionHeaders = {
372
+ type: {
373
+ name: "Composite",
374
+ className: "EmailSendExceptionHeaders",
375
+ modelProperties: {
376
+ xMsErrorCode: {
377
+ serializedName: "x-ms-error-code",
378
+ type: {
379
+ name: "String"
380
+ }
381
+ }
382
+ }
383
+ }
384
+ };
385
+ //# sourceMappingURL=mappers.js.map