@azure/communication-email 1.0.0-alpha.20220524.1 → 1.0.0-alpha.20220803.3
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +15 -21
- package/dist/index.js +138 -76
- package/dist/index.js.map +1 -1
- package/dist-esm/samples-dev/checkMessageStatus.js +1 -6
- package/dist-esm/samples-dev/checkMessageStatus.js.map +1 -1
- package/dist-esm/samples-dev/sendEmailMultipleRecipients.js +5 -20
- package/dist-esm/samples-dev/sendEmailMultipleRecipients.js.map +1 -1
- package/dist-esm/samples-dev/sendEmailSingleRecipient.js +1 -6
- package/dist-esm/samples-dev/sendEmailSingleRecipient.js.map +1 -1
- package/dist-esm/samples-dev/sendEmailWithAttachments.js +1 -6
- package/dist-esm/samples-dev/sendEmailWithAttachments.js.map +1 -1
- package/dist-esm/src/emailClient.js +4 -16
- package/dist-esm/src/emailClient.js.map +1 -1
- package/dist-esm/src/generated/src/emailRestApiClient.js +53 -10
- package/dist-esm/src/generated/src/emailRestApiClient.js.map +1 -1
- package/dist-esm/src/generated/src/index.js +11 -0
- package/dist-esm/src/generated/src/index.js.map +1 -0
- package/dist-esm/src/generated/src/models/index.js +80 -1
- package/dist-esm/src/generated/src/models/index.js.map +1 -1
- package/dist-esm/src/generated/src/models/mappers.js +69 -10
- package/dist-esm/src/generated/src/models/mappers.js.map +1 -1
- package/dist-esm/src/generated/src/models/parameters.js +11 -0
- package/dist-esm/src/generated/src/models/parameters.js.map +1 -1
- package/dist-esm/src/generated/src/operations/email.js +10 -17
- package/dist-esm/src/generated/src/operations/email.js.map +1 -1
- package/dist-esm/src/generated/src/operationsInterfaces/email.js +9 -0
- package/dist-esm/src/generated/src/operationsInterfaces/email.js.map +1 -0
- package/dist-esm/src/generated/src/operationsInterfaces/index.js +9 -0
- package/dist-esm/src/generated/src/operationsInterfaces/index.js.map +1 -0
- package/dist-esm/src/models.js.map +1 -1
- package/dist-esm/test/public/emailClient.spec.js +122 -127
- package/dist-esm/test/public/emailClient.spec.js.map +1 -1
- package/dist-esm/test/public/utils/recordedClient.js +49 -31
- package/dist-esm/test/public/utils/recordedClient.js.map +1 -1
- package/package.json +11 -8
- package/types/communication-email.d.ts +84 -101
- package/dist-esm/src/constants.js +0 -4
- package/dist-esm/src/constants.js.map +0 -1
- package/dist-esm/src/generated/src/emailRestApiClientContext.js +0 -38
- package/dist-esm/src/generated/src/emailRestApiClientContext.js.map +0 -1
@@ -5,5 +5,84 @@
|
|
5
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
7
7
|
*/
|
8
|
-
|
8
|
+
/** Known values of {@link SendStatus} that the service accepts. */
|
9
|
+
export var KnownSendStatus;
|
10
|
+
(function (KnownSendStatus) {
|
11
|
+
/** The message has passed basic validations and has been queued to be processed further. */
|
12
|
+
KnownSendStatus["Queued"] = "queued";
|
13
|
+
/** The message has been processed and is now out for delivery. */
|
14
|
+
KnownSendStatus["OutForDelivery"] = "outForDelivery";
|
15
|
+
/** The message could not be processed and was dropped. */
|
16
|
+
KnownSendStatus["Dropped"] = "dropped";
|
17
|
+
})(KnownSendStatus || (KnownSendStatus = {}));
|
18
|
+
/** Known values of {@link EmailImportance} that the service accepts. */
|
19
|
+
export var KnownEmailImportance;
|
20
|
+
(function (KnownEmailImportance) {
|
21
|
+
/** High */
|
22
|
+
KnownEmailImportance["High"] = "high";
|
23
|
+
/** Normal */
|
24
|
+
KnownEmailImportance["Normal"] = "normal";
|
25
|
+
/** Low */
|
26
|
+
KnownEmailImportance["Low"] = "low";
|
27
|
+
})(KnownEmailImportance || (KnownEmailImportance = {}));
|
28
|
+
/** Known values of {@link EmailAttachmentType} that the service accepts. */
|
29
|
+
export var KnownEmailAttachmentType;
|
30
|
+
(function (KnownEmailAttachmentType) {
|
31
|
+
/** Avi */
|
32
|
+
KnownEmailAttachmentType["Avi"] = "avi";
|
33
|
+
/** Bmp */
|
34
|
+
KnownEmailAttachmentType["Bmp"] = "bmp";
|
35
|
+
/** Doc */
|
36
|
+
KnownEmailAttachmentType["Doc"] = "doc";
|
37
|
+
/** Docm */
|
38
|
+
KnownEmailAttachmentType["Docm"] = "docm";
|
39
|
+
/** Docx */
|
40
|
+
KnownEmailAttachmentType["Docx"] = "docx";
|
41
|
+
/** Gif */
|
42
|
+
KnownEmailAttachmentType["Gif"] = "gif";
|
43
|
+
/** Jpeg */
|
44
|
+
KnownEmailAttachmentType["Jpeg"] = "jpeg";
|
45
|
+
/** Mp3 */
|
46
|
+
KnownEmailAttachmentType["Mp3"] = "mp3";
|
47
|
+
/** One */
|
48
|
+
KnownEmailAttachmentType["One"] = "one";
|
49
|
+
/** Pdf */
|
50
|
+
KnownEmailAttachmentType["Pdf"] = "pdf";
|
51
|
+
/** Png */
|
52
|
+
KnownEmailAttachmentType["Png"] = "png";
|
53
|
+
/** Ppsm */
|
54
|
+
KnownEmailAttachmentType["Ppsm"] = "ppsm";
|
55
|
+
/** Ppsx */
|
56
|
+
KnownEmailAttachmentType["Ppsx"] = "ppsx";
|
57
|
+
/** Ppt */
|
58
|
+
KnownEmailAttachmentType["Ppt"] = "ppt";
|
59
|
+
/** Pptm */
|
60
|
+
KnownEmailAttachmentType["Pptm"] = "pptm";
|
61
|
+
/** Pptx */
|
62
|
+
KnownEmailAttachmentType["Pptx"] = "pptx";
|
63
|
+
/** Pub */
|
64
|
+
KnownEmailAttachmentType["Pub"] = "pub";
|
65
|
+
/** Rpmsg */
|
66
|
+
KnownEmailAttachmentType["Rpmsg"] = "rpmsg";
|
67
|
+
/** Rtf */
|
68
|
+
KnownEmailAttachmentType["Rtf"] = "rtf";
|
69
|
+
/** Tif */
|
70
|
+
KnownEmailAttachmentType["Tif"] = "tif";
|
71
|
+
/** Txt */
|
72
|
+
KnownEmailAttachmentType["Txt"] = "txt";
|
73
|
+
/** Vsd */
|
74
|
+
KnownEmailAttachmentType["Vsd"] = "vsd";
|
75
|
+
/** Wav */
|
76
|
+
KnownEmailAttachmentType["Wav"] = "wav";
|
77
|
+
/** Wma */
|
78
|
+
KnownEmailAttachmentType["Wma"] = "wma";
|
79
|
+
/** Xls */
|
80
|
+
KnownEmailAttachmentType["Xls"] = "xls";
|
81
|
+
/** Xlsb */
|
82
|
+
KnownEmailAttachmentType["Xlsb"] = "xlsb";
|
83
|
+
/** Xlsm */
|
84
|
+
KnownEmailAttachmentType["Xlsm"] = "xlsm";
|
85
|
+
/** Xlsx */
|
86
|
+
KnownEmailAttachmentType["Xlsx"] = "xlsx";
|
87
|
+
})(KnownEmailAttachmentType || (KnownEmailAttachmentType = {}));
|
9
88
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/generated/src/models/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreHttp from \"@azure/core-http\";\n\n/**\n * Status of an email message that was sent previously.\n */\nexport interface SendStatusResult {\n /**\n * System generated id of an email message sent.\n */\n messageId: string;\n /**\n * The type indicating the status of a request.\n */\n status: SendStatus;\n}\n\n/**\n * The Communication Services error.\n */\nexport interface CommunicationErrorResponse {\n /**\n * The Communication Services error.\n */\n error: CommunicationError;\n}\n\n/**\n * The Communication Services error.\n */\nexport interface CommunicationError {\n /**\n * The error code.\n */\n code: string;\n /**\n * The error message.\n */\n message: string;\n /**\n * The error target.\n */\n readonly target?: string;\n /**\n * Further details about specific errors that led to this error.\n */\n readonly details?: CommunicationError[];\n /**\n * The inner error if any.\n */\n readonly innerError?: CommunicationError;\n}\n\n/**\n * Message payload for sending an email\n */\nexport interface EmailMessage {\n /**\n * Custom email headers to be passed.\n */\n customHeaders?: EmailCustomHeader[];\n /**\n * Sender email address from a verified domain.\n */\n sender: string;\n /**\n * Email content to be sent.\n */\n content: EmailContent;\n /**\n * The importance type for the email.\n */\n importance?: EmailImportance;\n /**\n * Recipients for the email.\n */\n recipients: EmailRecipients;\n /**\n * list of attachments\n */\n attachments?: EmailAttachment[];\n /**\n * Email addresses where recipients' replies will be sent to.\n */\n replyTo?: EmailAddress[];\n /**\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 */\n disableUserEngagementTracking?: boolean;\n}\n\n/**\n * Custom header for email.\n */\nexport interface EmailCustomHeader {\n /**\n * Header name.\n */\n name: string;\n /**\n * Header value.\n */\n value: string;\n}\n\n/**\n * Content of the email.\n */\nexport interface EmailContent {\n /**\n * Subject of the email message\n */\n subject: string;\n /**\n * Plain text version of the email message.\n */\n plainText?: string;\n /**\n * Html version of the email message.\n */\n html?: string;\n}\n\n/**\n * Recipients of the email\n */\nexport interface EmailRecipients {\n /**\n * Email to recipients\n */\n to: EmailAddress[];\n /**\n * Email cc recipients\n */\n cC?: EmailAddress[];\n /**\n * Email bcc recipients\n */\n bCC?: EmailAddress[];\n}\n\n/**\n * An object representing the email address and its display name\n */\nexport interface EmailAddress {\n /**\n * Email address.\n */\n email: string;\n /**\n * Email display name.\n */\n displayName?: string;\n}\n\n/**\n * Attachment to the email.\n */\nexport interface EmailAttachment {\n /**\n * Name of the attachment\n */\n name: string;\n /**\n * The type of attachment file.\n */\n attachmentType: EmailAttachmentType;\n /**\n * Base64 encoded contents of the attachment\n */\n contentBytesBase64: string;\n}\n\n/**\n * Defines headers for Email_getSendStatus operation.\n */\nexport interface EmailGetSendStatusHeaders {\n retryAfter?: number;\n}\n\n/**\n * Defines headers for Email_send operation.\n */\nexport interface EmailSendHeaders {\n repeatabilityResult?: string;\n operationLocation?: string;\n retryAfter?: number;\n xMsRequestId?: string;\n}\n\n/**\n * Defines values for SendStatus.\n */\nexport type SendStatus = \"queued\" | \"outForDelivery\" | \"dropped\";\n/**\n * Defines values for EmailImportance.\n */\nexport type EmailImportance = \"high\" | \"normal\" | \"low\";\n/**\n * Defines values for EmailAttachmentType.\n */\nexport type EmailAttachmentType =\n | \"avi\"\n | \"bmp\"\n | \"doc\"\n | \"docm\"\n | \"docx\"\n | \"gif\"\n | \"jpeg\"\n | \"mp3\"\n | \"one\"\n | \"pdf\"\n | \"png\"\n | \"ppsm\"\n | \"ppsx\"\n | \"ppt\"\n | \"pptm\"\n | \"pptx\"\n | \"pub\"\n | \"rpmsg\"\n | \"rtf\"\n | \"tif\"\n | \"txt\"\n | \"vsd\"\n | \"wav\"\n | \"wma\"\n | \"xls\"\n | \"xlsb\"\n | \"xlsm\"\n | \"xlsx\";\n\n/**\n * Contains response data for the getSendStatus operation.\n */\nexport type EmailGetSendStatusResponse = EmailGetSendStatusHeaders &\n SendStatusResult & {\n /**\n * The underlying HTTP response.\n */\n _response: coreHttp.HttpResponse & {\n /**\n * The response body as text (string format)\n */\n bodyAsText: string;\n\n /**\n * The response body as parsed JSON or XML\n */\n parsedBody: SendStatusResult;\n /**\n * The parsed HTTP response headers.\n */\n parsedHeaders: EmailGetSendStatusHeaders;\n };\n };\n\n/**\n * Contains response data for the send operation.\n */\nexport type EmailSendResponse = EmailSendHeaders & {\n /**\n * The underlying HTTP response.\n */\n _response: coreHttp.HttpResponse & {\n /**\n * The parsed HTTP response headers.\n */\n parsedHeaders: EmailSendHeaders;\n };\n};\n\n/**\n * Optional parameters.\n */\nexport interface EmailRestApiClientOptionalParams\n extends coreHttp.ServiceClientOptions {\n /**\n * Api Version\n */\n apiVersion?: string;\n /**\n * Overrides client endpoint.\n */\n endpoint?: string;\n}\n"]}
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/generated/src/models/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAyIH,mEAAmE;AACnE,MAAM,CAAN,IAAY,eAOX;AAPD,WAAY,eAAe;IACzB,4FAA4F;IAC5F,oCAAiB,CAAA;IACjB,kEAAkE;IAClE,oDAAiC,CAAA;IACjC,0DAA0D;IAC1D,sCAAmB,CAAA;AACrB,CAAC,EAPW,eAAe,KAAf,eAAe,QAO1B;AAaD,wEAAwE;AACxE,MAAM,CAAN,IAAY,oBAOX;AAPD,WAAY,oBAAoB;IAC9B,WAAW;IACX,qCAAa,CAAA;IACb,aAAa;IACb,yCAAiB,CAAA;IACjB,UAAU;IACV,mCAAW,CAAA;AACb,CAAC,EAPW,oBAAoB,KAApB,oBAAoB,QAO/B;AAaD,4EAA4E;AAC5E,MAAM,CAAN,IAAY,wBAyDX;AAzDD,WAAY,wBAAwB;IAClC,UAAU;IACV,uCAAW,CAAA;IACX,UAAU;IACV,uCAAW,CAAA;IACX,UAAU;IACV,uCAAW,CAAA;IACX,WAAW;IACX,yCAAa,CAAA;IACb,WAAW;IACX,yCAAa,CAAA;IACb,UAAU;IACV,uCAAW,CAAA;IACX,WAAW;IACX,yCAAa,CAAA;IACb,UAAU;IACV,uCAAW,CAAA;IACX,UAAU;IACV,uCAAW,CAAA;IACX,UAAU;IACV,uCAAW,CAAA;IACX,UAAU;IACV,uCAAW,CAAA;IACX,WAAW;IACX,yCAAa,CAAA;IACb,WAAW;IACX,yCAAa,CAAA;IACb,UAAU;IACV,uCAAW,CAAA;IACX,WAAW;IACX,yCAAa,CAAA;IACb,WAAW;IACX,yCAAa,CAAA;IACb,UAAU;IACV,uCAAW,CAAA;IACX,YAAY;IACZ,2CAAe,CAAA;IACf,UAAU;IACV,uCAAW,CAAA;IACX,UAAU;IACV,uCAAW,CAAA;IACX,UAAU;IACV,uCAAW,CAAA;IACX,UAAU;IACV,uCAAW,CAAA;IACX,UAAU;IACV,uCAAW,CAAA;IACX,UAAU;IACV,uCAAW,CAAA;IACX,UAAU;IACV,uCAAW,CAAA;IACX,WAAW;IACX,yCAAa,CAAA;IACb,WAAW;IACX,yCAAa,CAAA;IACb,WAAW;IACX,yCAAa,CAAA;AACf,CAAC,EAzDW,wBAAwB,KAAxB,wBAAwB,QAyDnC","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 an email message that was sent previously. */\nexport interface SendStatusResult {\n /** System generated id of an email message sent. */\n messageId: string;\n /** The type indicating the status of a request. */\n status: SendStatus;\n}\n\n/** The Communication Services error. */\nexport interface CommunicationErrorResponse {\n /** The Communication Services error. */\n error: CommunicationError;\n}\n\n/** The Communication Services error. */\nexport interface CommunicationError {\n /** The error code. */\n code: string;\n /** The error message. */\n 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 * Further details about specific errors that led to this error.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly details?: CommunicationError[];\n /**\n * The inner error if any.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly innerError?: CommunicationError;\n}\n\n/** Message payload for sending an email */\nexport interface EmailMessage {\n /** Custom email headers to be passed. */\n customHeaders?: EmailCustomHeader[];\n /** Sender email address from a verified domain. */\n sender: string;\n /** Email content to be sent. */\n content: EmailContent;\n /** The importance type for the email. */\n importance?: EmailImportance;\n /** Recipients for the email. */\n recipients: EmailRecipients;\n /** list of attachments */\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/** Custom header for email. */\nexport interface EmailCustomHeader {\n /** Header name. */\n name: string;\n /** Header value. */\n value: string;\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 email: 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 /** The type of attachment file. */\n attachmentType: EmailAttachmentType;\n /** Base64 encoded contents of the attachment */\n contentBytesBase64: string;\n}\n\n/** Defines headers for Email_getSendStatus operation. */\nexport interface EmailGetSendStatusHeaders {\n /** Amount of time client should wait before retrying the request, specified in seconds */\n retryAfter?: number;\n}\n\n/** Defines headers for Email_getSendStatus operation. */\nexport interface EmailGetSendStatusExceptionHeaders {\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 /** Status of a repeatable request. */\n repeatabilityResult?: string;\n /** Location url of where to poll the status of this message from. */\n operationLocation?: string;\n /** Amount of time client should wait before retrying the request, specified in seconds */\n retryAfter?: number;\n /** System generated GUID indicating the id of this specific message, to be used for tracking purposes. */\n xMsRequestId?: string;\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 SendStatus} that the service accepts. */\nexport enum KnownSendStatus {\n /** The message has passed basic validations and has been queued to be processed further. */\n Queued = \"queued\",\n /** The message has been processed and is now out for delivery. */\n OutForDelivery = \"outForDelivery\",\n /** The message could not be processed and was dropped. */\n Dropped = \"dropped\"\n}\n\n/**\n * Defines values for SendStatus. \\\n * {@link KnownSendStatus} can be used interchangeably with SendStatus,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **queued**: The message has passed basic validations and has been queued to be processed further. \\\n * **outForDelivery**: The message has been processed and is now out for delivery. \\\n * **dropped**: The message could not be processed and was dropped.\n */\nexport type SendStatus = string;\n\n/** Known values of {@link EmailImportance} that the service accepts. */\nexport enum KnownEmailImportance {\n /** High */\n High = \"high\",\n /** Normal */\n Normal = \"normal\",\n /** Low */\n Low = \"low\"\n}\n\n/**\n * Defines values for EmailImportance. \\\n * {@link KnownEmailImportance} can be used interchangeably with EmailImportance,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **high** \\\n * **normal** \\\n * **low**\n */\nexport type EmailImportance = string;\n\n/** Known values of {@link EmailAttachmentType} that the service accepts. */\nexport enum KnownEmailAttachmentType {\n /** Avi */\n Avi = \"avi\",\n /** Bmp */\n Bmp = \"bmp\",\n /** Doc */\n Doc = \"doc\",\n /** Docm */\n Docm = \"docm\",\n /** Docx */\n Docx = \"docx\",\n /** Gif */\n Gif = \"gif\",\n /** Jpeg */\n Jpeg = \"jpeg\",\n /** Mp3 */\n Mp3 = \"mp3\",\n /** One */\n One = \"one\",\n /** Pdf */\n Pdf = \"pdf\",\n /** Png */\n Png = \"png\",\n /** Ppsm */\n Ppsm = \"ppsm\",\n /** Ppsx */\n Ppsx = \"ppsx\",\n /** Ppt */\n Ppt = \"ppt\",\n /** Pptm */\n Pptm = \"pptm\",\n /** Pptx */\n Pptx = \"pptx\",\n /** Pub */\n Pub = \"pub\",\n /** Rpmsg */\n Rpmsg = \"rpmsg\",\n /** Rtf */\n Rtf = \"rtf\",\n /** Tif */\n Tif = \"tif\",\n /** Txt */\n Txt = \"txt\",\n /** Vsd */\n Vsd = \"vsd\",\n /** Wav */\n Wav = \"wav\",\n /** Wma */\n Wma = \"wma\",\n /** Xls */\n Xls = \"xls\",\n /** Xlsb */\n Xlsb = \"xlsb\",\n /** Xlsm */\n Xlsm = \"xlsm\",\n /** Xlsx */\n Xlsx = \"xlsx\"\n}\n\n/**\n * Defines values for EmailAttachmentType. \\\n * {@link KnownEmailAttachmentType} can be used interchangeably with EmailAttachmentType,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **avi** \\\n * **bmp** \\\n * **doc** \\\n * **docm** \\\n * **docx** \\\n * **gif** \\\n * **jpeg** \\\n * **mp3** \\\n * **one** \\\n * **pdf** \\\n * **png** \\\n * **ppsm** \\\n * **ppsx** \\\n * **ppt** \\\n * **pptm** \\\n * **pptx** \\\n * **pub** \\\n * **rpmsg** \\\n * **rtf** \\\n * **tif** \\\n * **txt** \\\n * **vsd** \\\n * **wav** \\\n * **wma** \\\n * **xls** \\\n * **xlsb** \\\n * **xlsm** \\\n * **xlsx**\n */\nexport type EmailAttachmentType = string;\n\n/** Optional parameters. */\nexport interface EmailGetSendStatusOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the getSendStatus operation. */\nexport type EmailGetSendStatusResponse = EmailGetSendStatusHeaders &\n SendStatusResult;\n\n/** Optional parameters. */\nexport interface EmailSendOptionalParams extends coreClient.OperationOptions {}\n\n/** Contains response data for the send operation. */\nexport type EmailSendResponse = EmailSendHeaders;\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"]}
|
@@ -74,7 +74,10 @@ export const CommunicationError = {
|
|
74
74
|
type: {
|
75
75
|
name: "Sequence",
|
76
76
|
element: {
|
77
|
-
type: {
|
77
|
+
type: {
|
78
|
+
name: "Composite",
|
79
|
+
className: "CommunicationError"
|
80
|
+
}
|
78
81
|
}
|
79
82
|
}
|
80
83
|
},
|
@@ -98,7 +101,10 @@ export const EmailMessage = {
|
|
98
101
|
type: {
|
99
102
|
name: "Sequence",
|
100
103
|
element: {
|
101
|
-
type: {
|
104
|
+
type: {
|
105
|
+
name: "Composite",
|
106
|
+
className: "EmailCustomHeader"
|
107
|
+
}
|
102
108
|
}
|
103
109
|
}
|
104
110
|
},
|
@@ -134,14 +140,24 @@ export const EmailMessage = {
|
|
134
140
|
serializedName: "attachments",
|
135
141
|
type: {
|
136
142
|
name: "Sequence",
|
137
|
-
element: {
|
143
|
+
element: {
|
144
|
+
type: {
|
145
|
+
name: "Composite",
|
146
|
+
className: "EmailAttachment"
|
147
|
+
}
|
148
|
+
}
|
138
149
|
}
|
139
150
|
},
|
140
151
|
replyTo: {
|
141
152
|
serializedName: "replyTo",
|
142
153
|
type: {
|
143
154
|
name: "Sequence",
|
144
|
-
element: {
|
155
|
+
element: {
|
156
|
+
type: {
|
157
|
+
name: "Composite",
|
158
|
+
className: "EmailAddress"
|
159
|
+
}
|
160
|
+
}
|
145
161
|
}
|
146
162
|
},
|
147
163
|
disableUserEngagementTracking: {
|
@@ -212,21 +228,36 @@ export const EmailRecipients = {
|
|
212
228
|
required: true,
|
213
229
|
type: {
|
214
230
|
name: "Sequence",
|
215
|
-
element: {
|
231
|
+
element: {
|
232
|
+
type: {
|
233
|
+
name: "Composite",
|
234
|
+
className: "EmailAddress"
|
235
|
+
}
|
236
|
+
}
|
216
237
|
}
|
217
238
|
},
|
218
|
-
|
219
|
-
serializedName: "
|
239
|
+
cc: {
|
240
|
+
serializedName: "CC",
|
220
241
|
type: {
|
221
242
|
name: "Sequence",
|
222
|
-
element: {
|
243
|
+
element: {
|
244
|
+
type: {
|
245
|
+
name: "Composite",
|
246
|
+
className: "EmailAddress"
|
247
|
+
}
|
248
|
+
}
|
223
249
|
}
|
224
250
|
},
|
225
|
-
|
251
|
+
bcc: {
|
226
252
|
serializedName: "bCC",
|
227
253
|
type: {
|
228
254
|
name: "Sequence",
|
229
|
-
element: {
|
255
|
+
element: {
|
256
|
+
type: {
|
257
|
+
name: "Composite",
|
258
|
+
className: "EmailAddress"
|
259
|
+
}
|
260
|
+
}
|
230
261
|
}
|
231
262
|
}
|
232
263
|
}
|
@@ -296,6 +327,20 @@ export const EmailGetSendStatusHeaders = {
|
|
296
327
|
}
|
297
328
|
}
|
298
329
|
};
|
330
|
+
export const EmailGetSendStatusExceptionHeaders = {
|
331
|
+
type: {
|
332
|
+
name: "Composite",
|
333
|
+
className: "EmailGetSendStatusExceptionHeaders",
|
334
|
+
modelProperties: {
|
335
|
+
xMsErrorCode: {
|
336
|
+
serializedName: "x-ms-error-code",
|
337
|
+
type: {
|
338
|
+
name: "String"
|
339
|
+
}
|
340
|
+
}
|
341
|
+
}
|
342
|
+
}
|
343
|
+
};
|
299
344
|
export const EmailSendHeaders = {
|
300
345
|
type: {
|
301
346
|
name: "Composite",
|
@@ -328,4 +373,18 @@ export const EmailSendHeaders = {
|
|
328
373
|
}
|
329
374
|
}
|
330
375
|
};
|
376
|
+
export const EmailSendExceptionHeaders = {
|
377
|
+
type: {
|
378
|
+
name: "Composite",
|
379
|
+
className: "EmailSendExceptionHeaders",
|
380
|
+
modelProperties: {
|
381
|
+
xMsErrorCode: {
|
382
|
+
serializedName: "x-ms-error-code",
|
383
|
+
type: {
|
384
|
+
name: "String"
|
385
|
+
}
|
386
|
+
}
|
387
|
+
}
|
388
|
+
}
|
389
|
+
};
|
331
390
|
//# sourceMappingURL=mappers.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"mappers.js","sourceRoot":"","sources":["../../../../../src/generated/src/models/mappers.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,MAAM,CAAC,MAAM,gBAAgB,GAA6B;IACxD,IAAI,EAAE;QACJ,IAAI,EAAE,WAAW;QACjB,SAAS,EAAE,kBAAkB;QAC7B,eAAe,EAAE;YACf,SAAS,EAAE;gBACT,cAAc,EAAE,WAAW;gBAC3B,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;SACF;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,0BAA0B,GAA6B;IAClE,IAAI,EAAE;QACJ,IAAI,EAAE,WAAW;QACjB,SAAS,EAAE,4BAA4B;QACvC,eAAe,EAAE;YACf,KAAK,EAAE;gBACL,cAAc,EAAE,OAAO;gBACvB,IAAI,EAAE;oBACJ,IAAI,EAAE,W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,EAAE,aAAa;gBAC7B,IAAI,EAAE;oBACJ,IAAI,EAAE,QAAQ;iBACf;aACF;SACF;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,gBAAgB,GAA6B;IACxD,IAAI,EAAE;QACJ,IAAI,EAAE,WAAW;QACjB,SAAS,EAAE,kBAAkB;QAC7B,eAAe,EAAE;YACf,mBAAmB,EAAE;gBACnB,cAAc,EAAE,sBAAsB;gBACtC,IAAI,EAAE;oBACJ,IAAI,EAAE,QAAQ;iBACf;aACF;YACD,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;YACD,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 coreHttp from \"@azure/core-http\";\n\nexport const SendStatusResult: coreHttp.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"SendStatusResult\",\n modelProperties: {\n messageId: {\n serializedName: \"messageId\",\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 }\n }\n};\n\nexport const CommunicationErrorResponse: coreHttp.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"CommunicationErrorResponse\",\n modelProperties: {\n error: {\n serializedName: \"error\",\n type: {\n name: \"Composite\",\n className: \"CommunicationError\"\n }\n }\n }\n }\n};\n\nexport const CommunicationError: coreHttp.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"CommunicationError\",\n modelProperties: {\n code: {\n serializedName: \"code\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n message: {\n serializedName: \"message\",\n required: 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: { name: \"Composite\", className: \"CommunicationError\" }\n }\n }\n },\n innerError: {\n serializedName: \"innererror\",\n type: {\n name: \"Composite\",\n className: \"CommunicationError\"\n }\n }\n }\n }\n};\n\nexport const EmailMessage: coreHttp.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"EmailMessage\",\n modelProperties: {\n customHeaders: {\n serializedName: \"headers\",\n type: {\n name: \"Sequence\",\n element: {\n type: { name: \"Composite\", className: \"EmailCustomHeader\" }\n }\n }\n },\n sender: {\n serializedName: \"sender\",\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 importance: {\n defaultValue: \"normal\",\n serializedName: \"importance\",\n type: {\n name: \"String\"\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: { type: { name: \"Composite\", className: \"EmailAttachment\" } }\n }\n },\n replyTo: {\n serializedName: \"replyTo\",\n type: {\n name: \"Sequence\",\n element: { type: { name: \"Composite\", className: \"EmailAddress\" } }\n }\n },\n disableUserEngagementTracking: {\n serializedName: \"disableUserEngagementTracking\",\n type: {\n name: \"Boolean\"\n }\n }\n }\n }\n};\n\nexport const EmailCustomHeader: coreHttp.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"EmailCustomHeader\",\n modelProperties: {\n name: {\n serializedName: \"name\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n value: {\n serializedName: \"value\",\n required: true,\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const EmailContent: coreHttp.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: coreHttp.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"EmailRecipients\",\n modelProperties: {\n to: {\n serializedName: \"to\",\n required: true,\n type: {\n name: \"Sequence\",\n element: { type: { name: \"Composite\", className: \"EmailAddress\" } }\n }\n },\n cC: {\n serializedName: \"cC\",\n type: {\n name: \"Sequence\",\n element: { type: { name: \"Composite\", className: \"EmailAddress\" } }\n }\n },\n bCC: {\n serializedName: \"bCC\",\n type: {\n name: \"Sequence\",\n element: { type: { name: \"Composite\", className: \"EmailAddress\" } }\n }\n }\n }\n }\n};\n\nexport const EmailAddress: coreHttp.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"EmailAddress\",\n modelProperties: {\n email: {\n serializedName: \"email\",\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: coreHttp.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 attachmentType: {\n serializedName: \"attachmentType\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n contentBytesBase64: {\n serializedName: \"contentBytesBase64\",\n required: true,\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const EmailGetSendStatusHeaders: coreHttp.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"EmailGetSendStatusHeaders\",\n modelProperties: {\n retryAfter: {\n serializedName: \"retry-after\",\n type: {\n name: \"Number\"\n }\n }\n }\n }\n};\n\nexport const EmailSendHeaders: coreHttp.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"EmailSendHeaders\",\n modelProperties: {\n repeatabilityResult: {\n serializedName: \"repeatability-result\",\n type: {\n name: \"String\"\n }\n },\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 xMsRequestId: {\n serializedName: \"x-ms-request-id\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n"]}
|
1
|
+
{"version":3,"file":"mappers.js","sourceRoot":"","sources":["../../../../../src/generated/src/models/mappers.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,MAAM,CAAC,MAAM,gBAAgB,GAA+B;IAC1D,IAAI,EAAE;QACJ,IAAI,EAAE,WAAW;QACjB,SAAS,EAAE,kBAAkB;QAC7B,eAAe,EAAE;YACf,SAAS,EAAE;gBACT,cAAc,EAAE,WAAW;gBAC3B,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;SACF;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,0BAA0B,GAA+B;IACpE,IAAI,EAAE;QACJ,IAAI,EAAE,WAAW;QACjB,SAAS,EAAE,4BAA4B;QACvC,eAAe,EAAE;YACf,KAAK,EAAE;gBACL,cAAc,EAAE,OAAO;gBACvB,IAAI,EAAE;oBACJ,IAAI,EAAE,WAAW;oBACjB,SAAS,EAAE,oBAAoB;iBAChC;aACF;SACF;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,kBAAkB,GAA+B;IAC5D,IAAI,EAAE;QACJ,IAAI,EAAE,WAAW;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AA+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;AAEF,MAAM,CAAC,MAAM,gBAAgB,GAA+B;IAC1D,IAAI,EAAE;QACJ,IAAI,EAAE,WAAW;QACjB,SAAS,EAAE,kBAAkB;QAC7B,eAAe,EAAE;YACf,mBAAmB,EAAE;gBACnB,cAAc,EAAE,sBAAsB;gBACtC,IAAI,EAAE;oBACJ,IAAI,EAAE,QAAQ;iBACf;aACF;YACD,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;YACD,YAAY,EAAE;gBACZ,cAAc,EAAE,iBAAiB;gBACjC,IAAI,EAAE;oBACJ,IAAI,EAAE,QAAQ;iBACf;aACF;SACF;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,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 SendStatusResult: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"SendStatusResult\",\n modelProperties: {\n messageId: {\n serializedName: \"messageId\",\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 }\n }\n};\n\nexport const CommunicationErrorResponse: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"CommunicationErrorResponse\",\n modelProperties: {\n error: {\n serializedName: \"error\",\n type: {\n name: \"Composite\",\n className: \"CommunicationError\"\n }\n }\n }\n }\n};\n\nexport const CommunicationError: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"CommunicationError\",\n modelProperties: {\n code: {\n serializedName: \"code\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n message: {\n serializedName: \"message\",\n required: 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: \"CommunicationError\"\n }\n }\n }\n },\n innerError: {\n serializedName: \"innererror\",\n type: {\n name: \"Composite\",\n className: \"CommunicationError\"\n }\n }\n }\n }\n};\n\nexport const EmailMessage: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"EmailMessage\",\n modelProperties: {\n customHeaders: {\n serializedName: \"headers\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"EmailCustomHeader\"\n }\n }\n }\n },\n sender: {\n serializedName: \"sender\",\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 importance: {\n defaultValue: \"normal\",\n serializedName: \"importance\",\n type: {\n name: \"String\"\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: \"disableUserEngagementTracking\",\n type: {\n name: \"Boolean\"\n }\n }\n }\n }\n};\n\nexport const EmailCustomHeader: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"EmailCustomHeader\",\n modelProperties: {\n name: {\n serializedName: \"name\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n value: {\n serializedName: \"value\",\n required: true,\n type: {\n name: \"String\"\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 required: true,\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 email: {\n serializedName: \"email\",\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 attachmentType: {\n serializedName: \"attachmentType\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n contentBytesBase64: {\n serializedName: \"contentBytesBase64\",\n required: true,\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const EmailGetSendStatusHeaders: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"EmailGetSendStatusHeaders\",\n modelProperties: {\n retryAfter: {\n serializedName: \"retry-after\",\n type: {\n name: \"Number\"\n }\n }\n }\n }\n};\n\nexport const EmailGetSendStatusExceptionHeaders: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"EmailGetSendStatusExceptionHeaders\",\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 repeatabilityResult: {\n serializedName: \"repeatability-result\",\n type: {\n name: \"String\"\n }\n },\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 xMsRequestId: {\n serializedName: \"x-ms-request-id\",\n type: {\n name: \"String\"\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"]}
|
@@ -6,6 +6,17 @@
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
7
7
|
*/
|
8
8
|
import { EmailMessage as EmailMessageMapper } from "../models/mappers";
|
9
|
+
export const accept = {
|
10
|
+
parameterPath: "accept",
|
11
|
+
mapper: {
|
12
|
+
defaultValue: "application/json",
|
13
|
+
isConstant: true,
|
14
|
+
serializedName: "Accept",
|
15
|
+
type: {
|
16
|
+
name: "String"
|
17
|
+
}
|
18
|
+
}
|
19
|
+
};
|
9
20
|
export const endpoint = {
|
10
21
|
parameterPath: "endpoint",
|
11
22
|
mapper: {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"parameters.js","sourceRoot":"","sources":["../../../../../src/generated/src/models/parameters.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAOH,OAAO,EAAE,YAAY,IAAI,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAEvE,MAAM,CAAC,MAAM,QAAQ,GAA0B;IAC7C,aAAa,EAAE,UAAU;IACzB,MAAM,EAAE;QACN,cAAc,EAAE,UAAU;QAC1B,QAAQ,EAAE,IAAI;QACd,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;SACf;KACF;IACD,YAAY,EAAE,IAAI;CACnB,CAAC;AAEF,MAAM,CAAC,MAAM,SAAS,GAA0B;IAC9C,aAAa,EAAE,WAAW;IAC1B,MAAM,EAAE;QACN,cAAc,EAAE,WAAW;QAC3B,QAAQ,EAAE,IAAI;QACd,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;SACf;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,UAAU,GAA4B;IACjD,aAAa,EAAE,YAAY;IAC3B,MAAM,EAAE;QACN,YAAY,EAAE,oBAAoB;QAClC,UAAU,EAAE,IAAI;QAChB,cAAc,EAAE,aAAa;QAC7B,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;SACf;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,WAAW,GAAuB;IAC7C,aAAa,EAAE,CAAC,SAAS,EAAE,aAAa,CAAC;IACzC,MAAM,EAAE;QACN,YAAY,EAAE,kBAAkB;QAChC,UAAU,EAAE,IAAI;QAChB,cAAc,EAAE,cAAc;QAC9B,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;SACf;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,YAAY,GAAuB;IAC9C,aAAa,EAAE,cAAc;IAC7B,MAAM,EAAE,kBAAkB;CAC3B,CAAC;AAEF,MAAM,CAAC,MAAM,sBAAsB,GAAuB;IACxD,aAAa,EAAE,wBAAwB;IACvC,MAAM,EAAE;QACN,cAAc,EAAE,0BAA0B;QAC1C,QAAQ,EAAE,IAAI;QACd,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;SACf;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,sBAAsB,GAAuB;IACxD,aAAa,EAAE,wBAAwB;IACvC,MAAM,EAAE;QACN,cAAc,EAAE,0BAA0B;QAC1C,QAAQ,EAAE,IAAI;QACd,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;SACf;KACF;CACF,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport {\n
|
1
|
+
{"version":3,"file":"parameters.js","sourceRoot":"","sources":["../../../../../src/generated/src/models/parameters.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAOH,OAAO,EAAE,YAAY,IAAI,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAEvE,MAAM,CAAC,MAAM,MAAM,GAAuB;IACxC,aAAa,EAAE,QAAQ;IACvB,MAAM,EAAE;QACN,YAAY,EAAE,kBAAkB;QAChC,UAAU,EAAE,IAAI;QAChB,cAAc,EAAE,QAAQ;QACxB,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;SACf;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,QAAQ,GAA0B;IAC7C,aAAa,EAAE,UAAU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AQ,EAAE,IAAI;QACd,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;SACf;KACF;CACF,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport {\n OperationParameter,\n OperationURLParameter,\n OperationQueryParameter\n} from \"@azure/core-client\";\nimport { EmailMessage as EmailMessageMapper } from \"../models/mappers\";\n\nexport const accept: OperationParameter = {\n parameterPath: \"accept\",\n mapper: {\n defaultValue: \"application/json\",\n isConstant: true,\n serializedName: \"Accept\",\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const endpoint: OperationURLParameter = {\n parameterPath: \"endpoint\",\n mapper: {\n serializedName: \"endpoint\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n skipEncoding: true\n};\n\nexport const messageId: OperationURLParameter = {\n parameterPath: \"messageId\",\n mapper: {\n serializedName: \"messageId\",\n required: true,\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const apiVersion: OperationQueryParameter = {\n parameterPath: \"apiVersion\",\n mapper: {\n defaultValue: \"2021-10-01-preview\",\n isConstant: true,\n serializedName: \"api-version\",\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const contentType: OperationParameter = {\n parameterPath: [\"options\", \"contentType\"],\n mapper: {\n defaultValue: \"application/json\",\n isConstant: true,\n serializedName: \"Content-Type\",\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const emailMessage: OperationParameter = {\n parameterPath: \"emailMessage\",\n mapper: EmailMessageMapper\n};\n\nexport const repeatabilityRequestId: OperationParameter = {\n parameterPath: \"repeatabilityRequestId\",\n mapper: {\n serializedName: \"repeatability-request-id\",\n required: true,\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const repeatabilityFirstSent: OperationParameter = {\n parameterPath: \"repeatabilityFirstSent\",\n mapper: {\n serializedName: \"repeatability-first-sent\",\n required: true,\n type: {\n name: \"String\"\n }\n }\n};\n"]}
|
@@ -5,13 +5,11 @@
|
|
5
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
7
7
|
*/
|
8
|
-
import * as
|
8
|
+
import * as coreClient from "@azure/core-client";
|
9
9
|
import * as Mappers from "../models/mappers";
|
10
10
|
import * as Parameters from "../models/parameters";
|
11
|
-
/**
|
12
|
-
|
13
|
-
*/
|
14
|
-
export class Email {
|
11
|
+
/** Class containing Email operations. */
|
12
|
+
export class EmailImpl {
|
15
13
|
/**
|
16
14
|
* Initialize a new instance of the class Email class.
|
17
15
|
* @param client Reference to the service client
|
@@ -25,8 +23,7 @@ export class Email {
|
|
25
23
|
* @param options The options parameters.
|
26
24
|
*/
|
27
25
|
getSendStatus(messageId, options) {
|
28
|
-
|
29
|
-
return this.client.sendOperationRequest({ messageId, options: operationOptions }, getSendStatusOperationSpec);
|
26
|
+
return this.client.sendOperationRequest({ messageId, options }, getSendStatusOperationSpec);
|
30
27
|
}
|
31
28
|
/**
|
32
29
|
* Queues an email message to be sent to one or more recipients
|
@@ -42,17 +39,11 @@ export class Email {
|
|
42
39
|
* @param options The options parameters.
|
43
40
|
*/
|
44
41
|
send(repeatabilityRequestId, repeatabilityFirstSent, emailMessage, options) {
|
45
|
-
|
46
|
-
return this.client.sendOperationRequest({
|
47
|
-
repeatabilityRequestId,
|
48
|
-
repeatabilityFirstSent,
|
49
|
-
emailMessage,
|
50
|
-
options: operationOptions
|
51
|
-
}, sendOperationSpec);
|
42
|
+
return this.client.sendOperationRequest({ repeatabilityRequestId, repeatabilityFirstSent, emailMessage, options }, sendOperationSpec);
|
52
43
|
}
|
53
44
|
}
|
54
45
|
// Operation Specifications
|
55
|
-
const serializer =
|
46
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
56
47
|
const getSendStatusOperationSpec = {
|
57
48
|
path: "/emails/{messageId}/status",
|
58
49
|
httpMethod: "GET",
|
@@ -63,11 +54,12 @@ const getSendStatusOperationSpec = {
|
|
63
54
|
},
|
64
55
|
default: {
|
65
56
|
bodyMapper: Mappers.CommunicationErrorResponse,
|
66
|
-
headersMapper: Mappers.
|
57
|
+
headersMapper: Mappers.EmailGetSendStatusExceptionHeaders
|
67
58
|
}
|
68
59
|
},
|
69
60
|
queryParameters: [Parameters.apiVersion],
|
70
61
|
urlParameters: [Parameters.endpoint, Parameters.messageId],
|
62
|
+
headerParameters: [Parameters.accept],
|
71
63
|
serializer
|
72
64
|
};
|
73
65
|
const sendOperationSpec = {
|
@@ -79,13 +71,14 @@ const sendOperationSpec = {
|
|
79
71
|
},
|
80
72
|
default: {
|
81
73
|
bodyMapper: Mappers.CommunicationErrorResponse,
|
82
|
-
headersMapper: Mappers.
|
74
|
+
headersMapper: Mappers.EmailSendExceptionHeaders
|
83
75
|
}
|
84
76
|
},
|
85
77
|
requestBody: Parameters.emailMessage,
|
86
78
|
queryParameters: [Parameters.apiVersion],
|
87
79
|
urlParameters: [Parameters.endpoint],
|
88
80
|
headerParameters: [
|
81
|
+
Parameters.accept,
|
89
82
|
Parameters.contentType,
|
90
83
|
Parameters.repeatabilityRequestId,
|
91
84
|
Parameters.repeatabilityFirstSent
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"email.js","sourceRoot":"","sources":["../../../../../src/generated/src/operations/email.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;
|
1
|
+
{"version":3,"file":"email.js","sourceRoot":"","sources":["../../../../../src/generated/src/operations/email.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,mBAAmB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,sBAAsB,CAAC;AAUnD,yCAAyC;AACzC,MAAM,OAAO,SAAS;IAGpB;;;OAGG;IACH,YAAY,MAA0B;QACpC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB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AA0B;YAC9C,aAAa,EAAE,OAAO,CAAC,yBAAyB;SACjD;KACF;IACD,WAAW,EAAE,UAAU,CAAC,YAAY;IACpC,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE,CAAC,UAAU,CAAC,QAAQ,CAAC;IACpC,gBAAgB,EAAE;QAChB,UAAU,CAAC,MAAM;QACjB,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,sBAAsB;QACjC,UAAU,CAAC,sBAAsB;KAClC;IACD,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { Email } from \"../operationsInterfaces\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers\";\nimport * as Parameters from \"../models/parameters\";\nimport { EmailRestApiClient } from \"../emailRestApiClient\";\nimport {\n EmailGetSendStatusOptionalParams,\n EmailGetSendStatusResponse,\n EmailMessage,\n EmailSendOptionalParams,\n EmailSendResponse\n} from \"../models\";\n\n/** Class containing Email operations. */\nexport class EmailImpl implements Email {\n private readonly client: EmailRestApiClient;\n\n /**\n * Initialize a new instance of the class Email class.\n * @param client Reference to the service client\n */\n constructor(client: EmailRestApiClient) {\n this.client = client;\n }\n\n /**\n * Gets the status of a message sent previously.\n * @param messageId System generated message id (GUID) returned from a previous call to send email\n * @param options The options parameters.\n */\n getSendStatus(\n messageId: string,\n options?: EmailGetSendStatusOptionalParams\n ): Promise<EmailGetSendStatusResponse> {\n return this.client.sendOperationRequest(\n { messageId, options },\n getSendStatusOperationSpec\n );\n }\n\n /**\n * Queues an email message to be sent to one or more recipients\n * @param repeatabilityRequestId If specified, the client directs that the request is repeatable; that\n * is, that the client can make the request multiple times with the same Repeatability-Request-Id and\n * get back an appropriate response without the server executing the request multiple times. The value\n * of the Repeatability-Request-Id is an opaque string representing a client-generated, globally unique\n * for all time, identifier for the request. It is recommended to use version 4 (random) UUIDs.\n * @param repeatabilityFirstSent Must be sent by clients to specify that a request is repeatable.\n * Repeatability-First-Sent is used to specify the date and time at which the request was first created\n * in the IMF-fix date form of HTTP-date as defined in RFC7231. eg- Tue, 26 Mar 2019 16:06:51 GMT\n * @param emailMessage Message payload for sending an email\n * @param options The options parameters.\n */\n send(\n repeatabilityRequestId: string,\n repeatabilityFirstSent: string,\n emailMessage: EmailMessage,\n options?: EmailSendOptionalParams\n ): Promise<EmailSendResponse> {\n return this.client.sendOperationRequest(\n { repeatabilityRequestId, repeatabilityFirstSent, emailMessage, options },\n sendOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst getSendStatusOperationSpec: coreClient.OperationSpec = {\n path: \"/emails/{messageId}/status\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.SendStatusResult,\n headersMapper: Mappers.EmailGetSendStatusHeaders\n },\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n headersMapper: Mappers.EmailGetSendStatusExceptionHeaders\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.messageId],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst sendOperationSpec: coreClient.OperationSpec = {\n path: \"/emails:send\",\n httpMethod: \"POST\",\n responses: {\n 202: {\n headersMapper: Mappers.EmailSendHeaders\n },\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n headersMapper: Mappers.EmailSendExceptionHeaders\n }\n },\n requestBody: Parameters.emailMessage,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint],\n headerParameters: [\n Parameters.accept,\n Parameters.contentType,\n Parameters.repeatabilityRequestId,\n Parameters.repeatabilityFirstSent\n ],\n mediaType: \"json\",\n serializer\n};\n"]}
|
@@ -0,0 +1,9 @@
|
|
1
|
+
/*
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
3
|
+
* Licensed under the MIT License.
|
4
|
+
*
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
7
|
+
*/
|
8
|
+
export {};
|
9
|
+
//# sourceMappingURL=email.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"email.js","sourceRoot":"","sources":["../../../../../src/generated/src/operationsInterfaces/email.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport {\n EmailGetSendStatusOptionalParams,\n EmailGetSendStatusResponse,\n EmailMessage,\n EmailSendOptionalParams,\n EmailSendResponse\n} from \"../models\";\n\n/** Interface representing a Email. */\nexport interface Email {\n /**\n * Gets the status of a message sent previously.\n * @param messageId System generated message id (GUID) returned from a previous call to send email\n * @param options The options parameters.\n */\n getSendStatus(\n messageId: string,\n options?: EmailGetSendStatusOptionalParams\n ): Promise<EmailGetSendStatusResponse>;\n /**\n * Queues an email message to be sent to one or more recipients\n * @param repeatabilityRequestId If specified, the client directs that the request is repeatable; that\n * is, that the client can make the request multiple times with the same Repeatability-Request-Id and\n * get back an appropriate response without the server executing the request multiple times. The value\n * of the Repeatability-Request-Id is an opaque string representing a client-generated, globally unique\n * for all time, identifier for the request. It is recommended to use version 4 (random) UUIDs.\n * @param repeatabilityFirstSent Must be sent by clients to specify that a request is repeatable.\n * Repeatability-First-Sent is used to specify the date and time at which the request was first created\n * in the IMF-fix date form of HTTP-date as defined in RFC7231. eg- Tue, 26 Mar 2019 16:06:51 GMT\n * @param emailMessage Message payload for sending an email\n * @param options The options parameters.\n */\n send(\n repeatabilityRequestId: string,\n repeatabilityFirstSent: string,\n emailMessage: EmailMessage,\n options?: EmailSendOptionalParams\n ): Promise<EmailSendResponse>;\n}\n"]}
|
@@ -0,0 +1,9 @@
|
|
1
|
+
/*
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
3
|
+
* Licensed under the MIT License.
|
4
|
+
*
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
7
|
+
*/
|
8
|
+
export * from "./email";
|
9
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/generated/src/operationsInterfaces/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,SAAS,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nexport * from \"./email\";\n"]}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"models.js","sourceRoot":"","sources":["../../src/models.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport {
|
1
|
+
{"version":3,"file":"models.js","sourceRoot":"","sources":["../../src/models.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport { CommonClientOptions } from \"@azure/core-client\";\n\n/**\n * Client options used to configure SMS Client API requests.\n */\nexport interface EmailClientOptions extends CommonClientOptions {}\n\n/**\n * Results of a sent email.\n */\nexport interface SendEmailResult {\n /**\n * MessageId of the sent email.\n */\n messageId: string;\n}\n\nexport {\n EmailMessage,\n EmailCustomHeader,\n EmailContent,\n EmailImportance,\n EmailRecipients,\n EmailAddress,\n EmailAttachment,\n EmailAttachmentType,\n SendStatus,\n SendStatusResult,\n} from \"./generated/src/models\";\n"]}
|