@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,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":"AAQA,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AAEjD,2CAA2C;AAC3C,MAAM,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AAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,wEAAwE;AACxE,oBAAY,oBAAoB;IAC9B,iBAAiB;IACjB,UAAU,eAAe;IACzB,cAAc;IACd,OAAO,YAAY;IACnB,gBAAgB;IAChB,SAAS,cAAc;IACvB,aAAa;IACb,MAAM,WAAW;IACjB,eAAe;IACf,QAAQ,aAAa;CACtB;AAED;;;;;;;;;;GAUG;AACH,MAAM,MAAM,eAAe,GAAG,MAAM,CAAC;AAErC,2BAA2B;AAC3B,MAAM,WAAW,gCACf,SAAQ,UAAU,CAAC,gBAAgB;CAAG;AAExC,8DAA8D;AAC9D,MAAM,MAAM,0BAA0B,GAAG,yBAAyB,GAChE,eAAe,CAAC;AAElB,2BAA2B;AAC3B,MAAM,WAAW,uBAAwB,SAAQ,UAAU,CAAC,gBAAgB;IAC1E,+JAA+J;IAC/J,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,gEAAgE;IAChE,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,sDAAsD;IACtD,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,iGAAiG;IACjG,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,qDAAqD;AACrD,MAAM,MAAM,iBAAiB,GAAG,gBAAgB,GAAG,eAAe,CAAC;AAEnE,2BAA2B;AAC3B,MAAM,WAAW,gCACf,SAAQ,UAAU,CAAC,oBAAoB;IACvC,kBAAkB;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,iCAAiC;IACjC,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB"}
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ /*
3
+ * Copyright (c) Microsoft Corporation.
4
+ * Licensed under the MIT License.
5
+ *
6
+ * Code generated by Microsoft (R) AutoRest Code Generator.
7
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
8
+ */
9
+ Object.defineProperty(exports, "__esModule", { value: true });
10
+ exports.KnownEmailSendStatus = void 0;
11
+ /** Known values of {@link EmailSendStatus} that the service accepts. */
12
+ var KnownEmailSendStatus;
13
+ (function (KnownEmailSendStatus) {
14
+ /** NotStarted */
15
+ KnownEmailSendStatus["NotStarted"] = "NotStarted";
16
+ /** Running */
17
+ KnownEmailSendStatus["Running"] = "Running";
18
+ /** Succeeded */
19
+ KnownEmailSendStatus["Succeeded"] = "Succeeded";
20
+ /** Failed */
21
+ KnownEmailSendStatus["Failed"] = "Failed";
22
+ /** Canceled */
23
+ KnownEmailSendStatus["Canceled"] = "Canceled";
24
+ })(KnownEmailSendStatus || (exports.KnownEmailSendStatus = KnownEmailSendStatus = {}));
25
+ //# 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,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,oCAApB,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,388 @@
1
+ "use strict";
2
+ /*
3
+ * Copyright (c) Microsoft Corporation.
4
+ * Licensed under the MIT License.
5
+ *
6
+ * Code generated by Microsoft (R) AutoRest Code Generator.
7
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
8
+ */
9
+ Object.defineProperty(exports, "__esModule", { value: true });
10
+ exports.EmailSendExceptionHeaders = exports.EmailSendHeaders = exports.EmailGetSendResultExceptionHeaders = exports.EmailGetSendResultHeaders = exports.EmailAttachment = exports.EmailAddress = exports.EmailRecipients = exports.EmailContent = exports.EmailMessage = exports.ErrorResponse = exports.ErrorAdditionalInfo = exports.ErrorDetail = exports.EmailSendResult = void 0;
11
+ exports.EmailSendResult = {
12
+ type: {
13
+ name: "Composite",
14
+ className: "EmailSendResult",
15
+ modelProperties: {
16
+ id: {
17
+ serializedName: "id",
18
+ required: true,
19
+ type: {
20
+ name: "String"
21
+ }
22
+ },
23
+ status: {
24
+ serializedName: "status",
25
+ required: true,
26
+ type: {
27
+ name: "String"
28
+ }
29
+ },
30
+ error: {
31
+ serializedName: "error",
32
+ type: {
33
+ name: "Composite",
34
+ className: "ErrorDetail"
35
+ }
36
+ }
37
+ }
38
+ }
39
+ };
40
+ exports.ErrorDetail = {
41
+ type: {
42
+ name: "Composite",
43
+ className: "ErrorDetail",
44
+ modelProperties: {
45
+ code: {
46
+ serializedName: "code",
47
+ readOnly: true,
48
+ type: {
49
+ name: "String"
50
+ }
51
+ },
52
+ message: {
53
+ serializedName: "message",
54
+ readOnly: true,
55
+ type: {
56
+ name: "String"
57
+ }
58
+ },
59
+ target: {
60
+ serializedName: "target",
61
+ readOnly: true,
62
+ type: {
63
+ name: "String"
64
+ }
65
+ },
66
+ details: {
67
+ serializedName: "details",
68
+ readOnly: true,
69
+ type: {
70
+ name: "Sequence",
71
+ element: {
72
+ type: {
73
+ name: "Composite",
74
+ className: "ErrorDetail"
75
+ }
76
+ }
77
+ }
78
+ },
79
+ additionalInfo: {
80
+ serializedName: "additionalInfo",
81
+ readOnly: true,
82
+ type: {
83
+ name: "Sequence",
84
+ element: {
85
+ type: {
86
+ name: "Composite",
87
+ className: "ErrorAdditionalInfo"
88
+ }
89
+ }
90
+ }
91
+ }
92
+ }
93
+ }
94
+ };
95
+ exports.ErrorAdditionalInfo = {
96
+ type: {
97
+ name: "Composite",
98
+ className: "ErrorAdditionalInfo",
99
+ modelProperties: {
100
+ type: {
101
+ serializedName: "type",
102
+ readOnly: true,
103
+ type: {
104
+ name: "String"
105
+ }
106
+ },
107
+ info: {
108
+ serializedName: "info",
109
+ readOnly: true,
110
+ type: {
111
+ name: "Dictionary",
112
+ value: { type: { name: "any" } }
113
+ }
114
+ }
115
+ }
116
+ }
117
+ };
118
+ exports.ErrorResponse = {
119
+ type: {
120
+ name: "Composite",
121
+ className: "ErrorResponse",
122
+ modelProperties: {
123
+ error: {
124
+ serializedName: "error",
125
+ type: {
126
+ name: "Composite",
127
+ className: "ErrorDetail"
128
+ }
129
+ }
130
+ }
131
+ }
132
+ };
133
+ exports.EmailMessage = {
134
+ type: {
135
+ name: "Composite",
136
+ className: "EmailMessage",
137
+ modelProperties: {
138
+ headers: {
139
+ serializedName: "headers",
140
+ type: {
141
+ name: "Dictionary",
142
+ value: { type: { name: "String" } }
143
+ }
144
+ },
145
+ senderAddress: {
146
+ serializedName: "senderAddress",
147
+ required: true,
148
+ type: {
149
+ name: "String"
150
+ }
151
+ },
152
+ content: {
153
+ serializedName: "content",
154
+ type: {
155
+ name: "Composite",
156
+ className: "EmailContent"
157
+ }
158
+ },
159
+ recipients: {
160
+ serializedName: "recipients",
161
+ type: {
162
+ name: "Composite",
163
+ className: "EmailRecipients"
164
+ }
165
+ },
166
+ attachments: {
167
+ serializedName: "attachments",
168
+ type: {
169
+ name: "Sequence",
170
+ element: {
171
+ type: {
172
+ name: "Composite",
173
+ className: "EmailAttachment"
174
+ }
175
+ }
176
+ }
177
+ },
178
+ replyTo: {
179
+ serializedName: "replyTo",
180
+ type: {
181
+ name: "Sequence",
182
+ element: {
183
+ type: {
184
+ name: "Composite",
185
+ className: "EmailAddress"
186
+ }
187
+ }
188
+ }
189
+ },
190
+ disableUserEngagementTracking: {
191
+ serializedName: "userEngagementTrackingDisabled",
192
+ type: {
193
+ name: "Boolean"
194
+ }
195
+ }
196
+ }
197
+ }
198
+ };
199
+ exports.EmailContent = {
200
+ type: {
201
+ name: "Composite",
202
+ className: "EmailContent",
203
+ modelProperties: {
204
+ subject: {
205
+ serializedName: "subject",
206
+ required: true,
207
+ type: {
208
+ name: "String"
209
+ }
210
+ },
211
+ plainText: {
212
+ serializedName: "plainText",
213
+ type: {
214
+ name: "String"
215
+ }
216
+ },
217
+ html: {
218
+ serializedName: "html",
219
+ type: {
220
+ name: "String"
221
+ }
222
+ }
223
+ }
224
+ }
225
+ };
226
+ exports.EmailRecipients = {
227
+ type: {
228
+ name: "Composite",
229
+ className: "EmailRecipients",
230
+ modelProperties: {
231
+ to: {
232
+ serializedName: "to",
233
+ type: {
234
+ name: "Sequence",
235
+ element: {
236
+ type: {
237
+ name: "Composite",
238
+ className: "EmailAddress"
239
+ }
240
+ }
241
+ }
242
+ },
243
+ cc: {
244
+ serializedName: "cc",
245
+ type: {
246
+ name: "Sequence",
247
+ element: {
248
+ type: {
249
+ name: "Composite",
250
+ className: "EmailAddress"
251
+ }
252
+ }
253
+ }
254
+ },
255
+ bcc: {
256
+ serializedName: "bcc",
257
+ type: {
258
+ name: "Sequence",
259
+ element: {
260
+ type: {
261
+ name: "Composite",
262
+ className: "EmailAddress"
263
+ }
264
+ }
265
+ }
266
+ }
267
+ }
268
+ }
269
+ };
270
+ exports.EmailAddress = {
271
+ type: {
272
+ name: "Composite",
273
+ className: "EmailAddress",
274
+ modelProperties: {
275
+ address: {
276
+ serializedName: "address",
277
+ required: true,
278
+ type: {
279
+ name: "String"
280
+ }
281
+ },
282
+ displayName: {
283
+ serializedName: "displayName",
284
+ type: {
285
+ name: "String"
286
+ }
287
+ }
288
+ }
289
+ }
290
+ };
291
+ exports.EmailAttachment = {
292
+ type: {
293
+ name: "Composite",
294
+ className: "EmailAttachment",
295
+ modelProperties: {
296
+ name: {
297
+ serializedName: "name",
298
+ required: true,
299
+ type: {
300
+ name: "String"
301
+ }
302
+ },
303
+ contentType: {
304
+ serializedName: "contentType",
305
+ required: true,
306
+ type: {
307
+ name: "String"
308
+ }
309
+ },
310
+ contentInBase64: {
311
+ serializedName: "contentInBase64",
312
+ required: true,
313
+ type: {
314
+ name: "String"
315
+ }
316
+ },
317
+ contentId: {
318
+ serializedName: "contentId",
319
+ type: {
320
+ name: "String"
321
+ }
322
+ }
323
+ }
324
+ }
325
+ };
326
+ exports.EmailGetSendResultHeaders = {
327
+ type: {
328
+ name: "Composite",
329
+ className: "EmailGetSendResultHeaders",
330
+ modelProperties: {
331
+ retryAfter: {
332
+ serializedName: "retry-after",
333
+ type: {
334
+ name: "Number"
335
+ }
336
+ }
337
+ }
338
+ }
339
+ };
340
+ exports.EmailGetSendResultExceptionHeaders = {
341
+ type: {
342
+ name: "Composite",
343
+ className: "EmailGetSendResultExceptionHeaders",
344
+ modelProperties: {
345
+ xMsErrorCode: {
346
+ serializedName: "x-ms-error-code",
347
+ type: {
348
+ name: "String"
349
+ }
350
+ }
351
+ }
352
+ }
353
+ };
354
+ exports.EmailSendHeaders = {
355
+ type: {
356
+ name: "Composite",
357
+ className: "EmailSendHeaders",
358
+ modelProperties: {
359
+ operationLocation: {
360
+ serializedName: "operation-location",
361
+ type: {
362
+ name: "String"
363
+ }
364
+ },
365
+ retryAfter: {
366
+ serializedName: "retry-after",
367
+ type: {
368
+ name: "Number"
369
+ }
370
+ }
371
+ }
372
+ }
373
+ };
374
+ exports.EmailSendExceptionHeaders = {
375
+ type: {
376
+ name: "Composite",
377
+ className: "EmailSendExceptionHeaders",
378
+ modelProperties: {
379
+ xMsErrorCode: {
380
+ serializedName: "x-ms-error-code",
381
+ type: {
382
+ name: "String"
383
+ }
384
+ }
385
+ }
386
+ }
387
+ };
388
+ //# sourceMappingURL=mappers.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mappers.js","sourceRoot":"","sources":["../../../../../src/generated/src/models/mappers.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAIU,QAAA,eAAe,GAA+B;IACzD,IAAI,EAAE;QACJ,IAAI,EAAE,WAAW;QACjB,SAAS,EAAE,iBAAiB;QAC5B,eAAe,EAAE;YACf,EAAE,EAAE;gBACF,cAAc,EAAE,IAAI;gBACpB,QAAQ,EAAE,IAAI;gBACd,IAAI,EAAE;oBACJ,IAAI,EAAE,QAAQ;iBACf;aACF;YACD,MAAM,EAAE;gBACN,cAAc,EAAE,QAAQ;gBACxB,QAAQ,EAAE,IAAI;gBACd,IAAI,EAAE;oBACJ,IAAI,EAAE,QAAQ;iBACf;aACF;YACD,KAAK,EAAE;gBACL,cAAc,EAAE,OAAO;gBACvB,IAAI,EAAE;oBACJ,IAAI,EAAE,WAAW;oBACjB,SA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ACT,cAAc,EAAE,WAAW;gBAC3B,IAAI,EAAE;oBACJ,IAAI,EAAE,QAAQ;iBACf;aACF;SACF;KACF;CACF,CAAC;AAEW,QAAA,yBAAyB,GAA+B;IACnE,IAAI,EAAE;QACJ,IAAI,EAAE,WAAW;QACjB,SAAS,EAAE,2BAA2B;QACtC,eAAe,EAAE;YACf,UAAU,EAAE;gBACV,cAAc,EAAE,aAAa;gBAC7B,IAAI,EAAE;oBACJ,IAAI,EAAE,QAAQ;iBACf;aACF;SACF;KACF;CACF,CAAC;AAEW,QAAA,kCAAkC,GAA+B;IAC5E,IAAI,EAAE;QACJ,IAAI,EAAE,WAAW;QACjB,SAAS,EAAE,oCAAoC;QAC/C,eAAe,EAAE;YACf,YAAY,EAAE;gBACZ,cAAc,EAAE,iBAAiB;gBACjC,IAAI,EAAE;oBACJ,IAAI,EAAE,QAAQ;iBACf;aACF;SACF;KACF;CACF,CAAC;AAEW,QAAA,gBAAgB,GAA+B;IAC1D,IAAI,EAAE;QACJ,IAAI,EAAE,WAAW;QACjB,SAAS,EAAE,kBAAkB;QAC7B,eAAe,EAAE;YACf,iBAAiB,EAAE;gBACjB,cAAc,EAAE,oBAAoB;gBACpC,IAAI,EAAE;oBACJ,IAAI,EAAE,QAAQ;iBACf;aACF;YACD,UAAU,EAAE;gBACV,cAAc,EAAE,aAAa;gBAC7B,IAAI,EAAE;oBACJ,IAAI,EAAE,QAAQ;iBACf;aACF;SACF;KACF;CACF,CAAC;AAEW,QAAA,yBAAyB,GAA+B;IACnE,IAAI,EAAE;QACJ,IAAI,EAAE,WAAW;QACjB,SAAS,EAAE,2BAA2B;QACtC,eAAe,EAAE;YACf,YAAY,EAAE;gBACZ,cAAc,EAAE,iBAAiB;gBACjC,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 EmailSendResult: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"EmailSendResult\",\n modelProperties: {\n id: {\n serializedName: \"id\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n status: {\n serializedName: \"status\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n error: {\n serializedName: \"error\",\n type: {\n name: \"Composite\",\n className: \"ErrorDetail\"\n }\n }\n }\n }\n};\n\nexport const ErrorDetail: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ErrorDetail\",\n modelProperties: {\n code: {\n serializedName: \"code\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n message: {\n serializedName: \"message\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n target: {\n serializedName: \"target\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n details: {\n serializedName: \"details\",\n readOnly: true,\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"ErrorDetail\"\n }\n }\n }\n },\n additionalInfo: {\n serializedName: \"additionalInfo\",\n readOnly: true,\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"ErrorAdditionalInfo\"\n }\n }\n }\n }\n }\n }\n};\n\nexport const ErrorAdditionalInfo: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ErrorAdditionalInfo\",\n modelProperties: {\n type: {\n serializedName: \"type\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n info: {\n serializedName: \"info\",\n readOnly: true,\n type: {\n name: \"Dictionary\",\n value: { type: { name: \"any\" } }\n }\n }\n }\n }\n};\n\nexport const ErrorResponse: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ErrorResponse\",\n modelProperties: {\n error: {\n serializedName: \"error\",\n type: {\n name: \"Composite\",\n className: \"ErrorDetail\"\n }\n }\n }\n }\n};\n\nexport const EmailMessage: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"EmailMessage\",\n modelProperties: {\n headers: {\n serializedName: \"headers\",\n type: {\n name: \"Dictionary\",\n value: { type: { name: \"String\" } }\n }\n },\n senderAddress: {\n serializedName: \"senderAddress\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n content: {\n serializedName: \"content\",\n type: {\n name: \"Composite\",\n className: \"EmailContent\"\n }\n },\n recipients: {\n serializedName: \"recipients\",\n type: {\n name: \"Composite\",\n className: \"EmailRecipients\"\n }\n },\n attachments: {\n serializedName: \"attachments\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"EmailAttachment\"\n }\n }\n }\n },\n replyTo: {\n serializedName: \"replyTo\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"EmailAddress\"\n }\n }\n }\n },\n disableUserEngagementTracking: {\n serializedName: \"userEngagementTrackingDisabled\",\n type: {\n name: \"Boolean\"\n }\n }\n }\n }\n};\n\nexport const EmailContent: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"EmailContent\",\n modelProperties: {\n subject: {\n serializedName: \"subject\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n plainText: {\n serializedName: \"plainText\",\n type: {\n name: \"String\"\n }\n },\n html: {\n serializedName: \"html\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const EmailRecipients: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"EmailRecipients\",\n modelProperties: {\n to: {\n serializedName: \"to\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"EmailAddress\"\n }\n }\n }\n },\n cc: {\n serializedName: \"cc\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"EmailAddress\"\n }\n }\n }\n },\n bcc: {\n serializedName: \"bcc\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"EmailAddress\"\n }\n }\n }\n }\n }\n }\n};\n\nexport const EmailAddress: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"EmailAddress\",\n modelProperties: {\n address: {\n serializedName: \"address\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n displayName: {\n serializedName: \"displayName\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const EmailAttachment: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"EmailAttachment\",\n modelProperties: {\n name: {\n serializedName: \"name\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n contentType: {\n serializedName: \"contentType\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n contentInBase64: {\n serializedName: \"contentInBase64\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n contentId: {\n serializedName: \"contentId\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const EmailGetSendResultHeaders: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"EmailGetSendResultHeaders\",\n modelProperties: {\n retryAfter: {\n serializedName: \"retry-after\",\n type: {\n name: \"Number\"\n }\n }\n }\n }\n};\n\nexport const EmailGetSendResultExceptionHeaders: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"EmailGetSendResultExceptionHeaders\",\n modelProperties: {\n xMsErrorCode: {\n serializedName: \"x-ms-error-code\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const EmailSendHeaders: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"EmailSendHeaders\",\n modelProperties: {\n operationLocation: {\n serializedName: \"operation-location\",\n type: {\n name: \"String\"\n }\n },\n retryAfter: {\n serializedName: \"retry-after\",\n type: {\n name: \"Number\"\n }\n }\n }\n }\n};\n\nexport const EmailSendExceptionHeaders: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"EmailSendExceptionHeaders\",\n modelProperties: {\n xMsErrorCode: {\n serializedName: \"x-ms-error-code\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n"]}