@azure/communication-email 1.0.0-alpha.20230303.3 → 1.0.0-alpha.20230306.4
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +24 -32
- package/dist/index.js +220 -155
- package/dist/index.js.map +1 -1
- package/dist-esm/samples-dev/sendEmailMultipleRecipients.js +10 -8
- package/dist-esm/samples-dev/sendEmailMultipleRecipients.js.map +1 -1
- package/dist-esm/samples-dev/sendEmailSingleRecipient.js +7 -5
- package/dist-esm/samples-dev/sendEmailSingleRecipient.js.map +1 -1
- package/dist-esm/samples-dev/sendEmailWithAttachments.js +9 -7
- package/dist-esm/samples-dev/sendEmailWithAttachments.js.map +1 -1
- package/dist-esm/src/emailClient.js +4 -19
- package/dist-esm/src/emailClient.js.map +1 -1
- package/dist-esm/src/generated/src/emailRestApiClient.js +1 -1
- package/dist-esm/src/generated/src/emailRestApiClient.js.map +1 -1
- package/dist-esm/src/generated/src/lroImpl.js +25 -0
- package/dist-esm/src/generated/src/lroImpl.js.map +1 -0
- package/dist-esm/src/generated/src/models/index.js +14 -80
- package/dist-esm/src/generated/src/models/index.js.map +1 -1
- package/dist-esm/src/generated/src/models/mappers.js +77 -87
- package/dist-esm/src/generated/src/models/mappers.js.map +1 -1
- package/dist-esm/src/generated/src/models/parameters.js +14 -16
- package/dist-esm/src/generated/src/models/parameters.js.map +1 -1
- package/dist-esm/src/generated/src/operations/email.js +72 -26
- package/dist-esm/src/generated/src/operations/email.js.map +1 -1
- package/dist-esm/src/generated/src/operationsInterfaces/email.js.map +1 -1
- package/dist-esm/src/models.js +1 -1
- package/dist-esm/src/models.js.map +1 -1
- package/dist-esm/test/public/emailClient.spec.js +24 -74
- package/dist-esm/test/public/emailClient.spec.js.map +1 -1
- package/dist-esm/test/public/utils/recordedClient.js +9 -13
- package/dist-esm/test/public/utils/recordedClient.js.map +1 -1
- package/package.json +3 -4
- package/types/communication-email.d.ts +132 -110
- package/dist-esm/samples-dev/checkMessageStatus.js +0 -41
- package/dist-esm/samples-dev/checkMessageStatus.js.map +0 -1
@@ -5,84 +5,18 @@
|
|
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
|
-
/** Known values of {@link
|
9
|
-
export var
|
10
|
-
(function (
|
11
|
-
/**
|
12
|
-
|
13
|
-
/**
|
14
|
-
|
15
|
-
/**
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
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 = {}));
|
8
|
+
/** Known values of {@link EmailSendStatus} that the service accepts. */
|
9
|
+
export var KnownEmailSendStatus;
|
10
|
+
(function (KnownEmailSendStatus) {
|
11
|
+
/** NotStarted */
|
12
|
+
KnownEmailSendStatus["NotStarted"] = "NotStarted";
|
13
|
+
/** Running */
|
14
|
+
KnownEmailSendStatus["Running"] = "Running";
|
15
|
+
/** Succeeded */
|
16
|
+
KnownEmailSendStatus["Succeeded"] = "Succeeded";
|
17
|
+
/** Failed */
|
18
|
+
KnownEmailSendStatus["Failed"] = "Failed";
|
19
|
+
/** Canceled */
|
20
|
+
KnownEmailSendStatus["Canceled"] = "Canceled";
|
21
|
+
})(KnownEmailSendStatus || (KnownEmailSendStatus = {}));
|
88
22
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
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"]}
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/generated/src/models/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAiJH,wEAAwE;AACxE,MAAM,CAAN,IAAY,oBAWX;AAXD,WAAY,oBAAoB;IAC9B,iBAAiB;IACjB,iDAAyB,CAAA;IACzB,cAAc;IACd,2CAAmB,CAAA;IACnB,gBAAgB;IAChB,+CAAuB,CAAA;IACvB,aAAa;IACb,yCAAiB,CAAA;IACjB,eAAe;IACf,6CAAqB,CAAA;AACvB,CAAC,EAXW,oBAAoB,KAApB,oBAAoB,QAW/B","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreClient from \"@azure/core-client\";\n\n/** Status of the long running operation */\nexport interface EmailSendResult {\n /** The unique id of the operation. Use a UUID. */\n id: string;\n /** Status of operation. */\n status: EmailSendStatus;\n /** Error details when status is a non-success terminal state. */\n error?: ErrorDetail;\n}\n\n/** The error detail. */\nexport interface ErrorDetail {\n /**\n * The error code.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly code?: string;\n /**\n * The error message.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly message?: string;\n /**\n * The error target.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly target?: string;\n /**\n * The error details.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly details?: ErrorDetail[];\n /**\n * The error additional info.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly additionalInfo?: ErrorAdditionalInfo[];\n}\n\n/** The resource management error additional info. */\nexport interface ErrorAdditionalInfo {\n /**\n * The additional info type.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly type?: string;\n /**\n * The additional info.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly info?: Record<string, unknown>;\n}\n\n/** Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.). */\nexport interface ErrorResponse {\n /** The error object. */\n error?: ErrorDetail;\n}\n\n/** Message payload for sending an email */\nexport interface EmailMessage {\n /** Custom email headers to be passed. */\n headers?: { [propertyName: string]: string };\n /** Sender email address from a verified domain. */\n senderAddress: string;\n /** Email content to be sent. */\n content: EmailContent;\n /** Recipients for the email. */\n recipients: EmailRecipients;\n /** List of attachments. Please note that we limit the total size of an email request (which includes 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 userEngagementTrackingDisabled?: 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}\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 used by the status monitor for this long running operation. */\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"]}
|
@@ -5,13 +5,13 @@
|
|
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
|
-
export const
|
8
|
+
export const EmailSendResult = {
|
9
9
|
type: {
|
10
10
|
name: "Composite",
|
11
|
-
className: "
|
11
|
+
className: "EmailSendResult",
|
12
12
|
modelProperties: {
|
13
|
-
|
14
|
-
serializedName: "
|
13
|
+
id: {
|
14
|
+
serializedName: "id",
|
15
15
|
required: true,
|
16
16
|
type: {
|
17
17
|
name: "String"
|
@@ -23,40 +23,32 @@ export const SendStatusResult = {
|
|
23
23
|
type: {
|
24
24
|
name: "String"
|
25
25
|
}
|
26
|
-
}
|
27
|
-
}
|
28
|
-
}
|
29
|
-
};
|
30
|
-
export const CommunicationErrorResponse = {
|
31
|
-
type: {
|
32
|
-
name: "Composite",
|
33
|
-
className: "CommunicationErrorResponse",
|
34
|
-
modelProperties: {
|
26
|
+
},
|
35
27
|
error: {
|
36
28
|
serializedName: "error",
|
37
29
|
type: {
|
38
30
|
name: "Composite",
|
39
|
-
className: "
|
31
|
+
className: "ErrorDetail"
|
40
32
|
}
|
41
33
|
}
|
42
34
|
}
|
43
35
|
}
|
44
36
|
};
|
45
|
-
export const
|
37
|
+
export const ErrorDetail = {
|
46
38
|
type: {
|
47
39
|
name: "Composite",
|
48
|
-
className: "
|
40
|
+
className: "ErrorDetail",
|
49
41
|
modelProperties: {
|
50
42
|
code: {
|
51
43
|
serializedName: "code",
|
52
|
-
|
44
|
+
readOnly: true,
|
53
45
|
type: {
|
54
46
|
name: "String"
|
55
47
|
}
|
56
48
|
},
|
57
49
|
message: {
|
58
50
|
serializedName: "message",
|
59
|
-
|
51
|
+
readOnly: true,
|
60
52
|
type: {
|
61
53
|
name: "String"
|
62
54
|
}
|
@@ -76,16 +68,60 @@ export const CommunicationError = {
|
|
76
68
|
element: {
|
77
69
|
type: {
|
78
70
|
name: "Composite",
|
79
|
-
className: "
|
71
|
+
className: "ErrorDetail"
|
80
72
|
}
|
81
73
|
}
|
82
74
|
}
|
83
75
|
},
|
84
|
-
|
85
|
-
serializedName: "
|
76
|
+
additionalInfo: {
|
77
|
+
serializedName: "additionalInfo",
|
78
|
+
readOnly: true,
|
79
|
+
type: {
|
80
|
+
name: "Sequence",
|
81
|
+
element: {
|
82
|
+
type: {
|
83
|
+
name: "Composite",
|
84
|
+
className: "ErrorAdditionalInfo"
|
85
|
+
}
|
86
|
+
}
|
87
|
+
}
|
88
|
+
}
|
89
|
+
}
|
90
|
+
}
|
91
|
+
};
|
92
|
+
export const ErrorAdditionalInfo = {
|
93
|
+
type: {
|
94
|
+
name: "Composite",
|
95
|
+
className: "ErrorAdditionalInfo",
|
96
|
+
modelProperties: {
|
97
|
+
type: {
|
98
|
+
serializedName: "type",
|
99
|
+
readOnly: true,
|
100
|
+
type: {
|
101
|
+
name: "String"
|
102
|
+
}
|
103
|
+
},
|
104
|
+
info: {
|
105
|
+
serializedName: "info",
|
106
|
+
readOnly: true,
|
107
|
+
type: {
|
108
|
+
name: "Dictionary",
|
109
|
+
value: { type: { name: "any" } }
|
110
|
+
}
|
111
|
+
}
|
112
|
+
}
|
113
|
+
}
|
114
|
+
};
|
115
|
+
export const ErrorResponse = {
|
116
|
+
type: {
|
117
|
+
name: "Composite",
|
118
|
+
className: "ErrorResponse",
|
119
|
+
modelProperties: {
|
120
|
+
error: {
|
121
|
+
serializedName: "error",
|
86
122
|
type: {
|
87
123
|
name: "Composite",
|
88
|
-
className: "
|
124
|
+
className: "ErrorDetail"
|
89
125
|
}
|
90
126
|
}
|
91
127
|
}
|
@@ -96,20 +132,15 @@ export const EmailMessage = {
|
|
96
132
|
name: "Composite",
|
97
133
|
className: "EmailMessage",
|
98
134
|
modelProperties: {
|
99
|
-
|
135
|
+
headers: {
|
100
136
|
serializedName: "headers",
|
101
137
|
type: {
|
102
|
-
name: "
|
103
|
-
|
104
|
-
type: {
|
105
|
-
name: "Composite",
|
106
|
-
className: "EmailCustomHeader"
|
107
|
-
}
|
108
|
-
}
|
138
|
+
name: "Dictionary",
|
139
|
+
value: { type: { name: "String" } }
|
109
140
|
}
|
110
141
|
},
|
111
|
-
|
112
|
-
serializedName: "
|
142
|
+
senderAddress: {
|
143
|
+
serializedName: "senderAddress",
|
113
144
|
required: true,
|
114
145
|
type: {
|
115
146
|
name: "String"
|
@@ -122,13 +153,6 @@ export const EmailMessage = {
|
|
122
153
|
className: "EmailContent"
|
123
154
|
}
|
124
155
|
},
|
125
|
-
importance: {
|
126
|
-
defaultValue: "normal",
|
127
|
-
serializedName: "importance",
|
128
|
-
type: {
|
129
|
-
name: "String"
|
130
|
-
}
|
131
|
-
},
|
132
156
|
recipients: {
|
133
157
|
serializedName: "recipients",
|
134
158
|
type: {
|
@@ -160,8 +184,8 @@ export const EmailMessage = {
|
|
160
184
|
}
|
161
185
|
}
|
162
186
|
},
|
163
|
-
|
164
|
-
serializedName: "
|
187
|
+
userEngagementTrackingDisabled: {
|
188
|
+
serializedName: "userEngagementTrackingDisabled",
|
165
189
|
type: {
|
166
190
|
name: "Boolean"
|
167
191
|
}
|
@@ -169,28 +193,6 @@ export const EmailMessage = {
|
|
169
193
|
}
|
170
194
|
}
|
171
195
|
};
|
172
|
-
export const EmailCustomHeader = {
|
173
|
-
type: {
|
174
|
-
name: "Composite",
|
175
|
-
className: "EmailCustomHeader",
|
176
|
-
modelProperties: {
|
177
|
-
name: {
|
178
|
-
serializedName: "name",
|
179
|
-
required: true,
|
180
|
-
type: {
|
181
|
-
name: "String"
|
182
|
-
}
|
183
|
-
},
|
184
|
-
value: {
|
185
|
-
serializedName: "value",
|
186
|
-
required: true,
|
187
|
-
type: {
|
188
|
-
name: "String"
|
189
|
-
}
|
190
|
-
}
|
191
|
-
}
|
192
|
-
}
|
193
|
-
};
|
194
196
|
export const EmailContent = {
|
195
197
|
type: {
|
196
198
|
name: "Composite",
|
@@ -236,7 +238,7 @@ export const EmailRecipients = {
|
|
236
238
|
}
|
237
239
|
},
|
238
240
|
cc: {
|
239
|
-
serializedName: "
|
241
|
+
serializedName: "cc",
|
240
242
|
type: {
|
241
243
|
name: "Sequence",
|
242
244
|
element: {
|
@@ -248,7 +250,7 @@ export const EmailRecipients = {
|
|
248
250
|
}
|
249
251
|
},
|
250
252
|
bcc: {
|
251
|
-
serializedName: "
|
253
|
+
serializedName: "bcc",
|
252
254
|
type: {
|
253
255
|
name: "Sequence",
|
254
256
|
element: {
|
@@ -267,8 +269,8 @@ export const EmailAddress = {
|
|
267
269
|
name: "Composite",
|
268
270
|
className: "EmailAddress",
|
269
271
|
modelProperties: {
|
270
|
-
|
271
|
-
serializedName: "
|
272
|
+
address: {
|
273
|
+
serializedName: "address",
|
272
274
|
required: true,
|
273
275
|
type: {
|
274
276
|
name: "String"
|
@@ -295,15 +297,15 @@ export const EmailAttachment = {
|
|
295
297
|
name: "String"
|
296
298
|
}
|
297
299
|
},
|
298
|
-
|
299
|
-
serializedName: "
|
300
|
+
contentType: {
|
301
|
+
serializedName: "contentType",
|
300
302
|
required: true,
|
301
303
|
type: {
|
302
304
|
name: "String"
|
303
305
|
}
|
304
306
|
},
|
305
|
-
|
306
|
-
serializedName: "
|
307
|
+
contentInBase64: {
|
308
|
+
serializedName: "contentInBase64",
|
307
309
|
required: true,
|
308
310
|
type: {
|
309
311
|
name: "String"
|
@@ -312,10 +314,10 @@ export const EmailAttachment = {
|
|
312
314
|
}
|
313
315
|
}
|
314
316
|
};
|
315
|
-
export const
|
317
|
+
export const EmailGetSendResultHeaders = {
|
316
318
|
type: {
|
317
319
|
name: "Composite",
|
318
|
-
className: "
|
320
|
+
className: "EmailGetSendResultHeaders",
|
319
321
|
modelProperties: {
|
320
322
|
retryAfter: {
|
321
323
|
serializedName: "retry-after",
|
@@ -326,10 +328,10 @@ export const EmailGetSendStatusHeaders = {
|
|
326
328
|
}
|
327
329
|
}
|
328
330
|
};
|
329
|
-
export const
|
331
|
+
export const EmailGetSendResultExceptionHeaders = {
|
330
332
|
type: {
|
331
333
|
name: "Composite",
|
332
|
-
className: "
|
334
|
+
className: "EmailGetSendResultExceptionHeaders",
|
333
335
|
modelProperties: {
|
334
336
|
xMsErrorCode: {
|
335
337
|
serializedName: "x-ms-error-code",
|
@@ -345,12 +347,6 @@ export const EmailSendHeaders = {
|
|
345
347
|
name: "Composite",
|
346
348
|
className: "EmailSendHeaders",
|
347
349
|
modelProperties: {
|
348
|
-
repeatabilityResult: {
|
349
|
-
serializedName: "repeatability-result",
|
350
|
-
type: {
|
351
|
-
name: "String"
|
352
|
-
}
|
353
|
-
},
|
354
350
|
operationLocation: {
|
355
351
|
serializedName: "operation-location",
|
356
352
|
type: {
|
@@ -362,12 +358,6 @@ export const EmailSendHeaders = {
|
|
362
358
|
type: {
|
363
359
|
name: "Number"
|
364
360
|
}
|
365
|
-
},
|
366
|
-
xMsRequestId: {
|
367
|
-
serializedName: "x-ms-request-id",
|
368
|
-
type: {
|
369
|
-
name: "String"
|
370
|
-
}
|
371
361
|
}
|
372
362
|
}
|
373
363
|
}
|
@@ -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,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,EA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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 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"]}
|
1
|
+
{"version":3,"file":"mappers.js","sourceRoot":"","sources":["../../../../../src/generated/src/models/mappers.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,MAAM,CAAC,MAAM,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,SAAS,EAAE,aAAa;iBACzB;aACF;SACF;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,WAAW,GAA+B;IACrD,IAAI,EAAE;QACJ,IAAI,EAAE,WAAW;QACjB,SAAS,EAAE,aAAa;QACxB,eAAe,EAAE;YACf,IAAI,EAAE;gBACJ,cAAc,EAAE,MAAM;gBACtB,QAAQ,EAAE,IAAI;gBACd,IAAI,EAAE;oBACJ,IAAI,EAAE,QAAQ;iBACf;aACF;YACD,OAAO,EAAE;gBACP,cAAc,EAAE,SAAS;gBACzB,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,OAAO,EAAE;gBACP,cAA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;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,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;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 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 userEngagementTrackingDisabled: {\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 }\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"]}
|
@@ -28,10 +28,10 @@ export const endpoint = {
|
|
28
28
|
},
|
29
29
|
skipEncoding: true
|
30
30
|
};
|
31
|
-
export const
|
32
|
-
parameterPath: "
|
31
|
+
export const operationId = {
|
32
|
+
parameterPath: "operationId",
|
33
33
|
mapper: {
|
34
|
-
serializedName: "
|
34
|
+
serializedName: "operationId",
|
35
35
|
required: true,
|
36
36
|
type: {
|
37
37
|
name: "String"
|
@@ -41,7 +41,7 @@ export const messageId = {
|
|
41
41
|
export const apiVersion = {
|
42
42
|
parameterPath: "apiVersion",
|
43
43
|
mapper: {
|
44
|
-
defaultValue: "
|
44
|
+
defaultValue: "2023-01-15-preview",
|
45
45
|
isConstant: true,
|
46
46
|
serializedName: "api-version",
|
47
47
|
type: {
|
@@ -60,27 +60,25 @@ export const contentType = {
|
|
60
60
|
}
|
61
61
|
}
|
62
62
|
};
|
63
|
-
export const
|
64
|
-
parameterPath: "
|
63
|
+
export const message = {
|
64
|
+
parameterPath: "message",
|
65
65
|
mapper: EmailMessageMapper
|
66
66
|
};
|
67
|
-
export const
|
68
|
-
parameterPath: "
|
67
|
+
export const operationId1 = {
|
68
|
+
parameterPath: ["options", "operationId"],
|
69
69
|
mapper: {
|
70
|
-
serializedName: "
|
71
|
-
required: true,
|
70
|
+
serializedName: "Operation-Id",
|
72
71
|
type: {
|
73
|
-
name: "
|
72
|
+
name: "Uuid"
|
74
73
|
}
|
75
74
|
}
|
76
75
|
};
|
77
|
-
export const
|
78
|
-
parameterPath: "
|
76
|
+
export const clientRequestId = {
|
77
|
+
parameterPath: ["options", "clientRequestId"],
|
79
78
|
mapper: {
|
80
|
-
serializedName: "
|
81
|
-
required: true,
|
79
|
+
serializedName: "x-ms-client-request-id",
|
82
80
|
type: {
|
83
|
-
name: "
|
81
|
+
name: "Uuid"
|
84
82
|
}
|
85
83
|
}
|
86
84
|
};
|
@@ -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,MAAM,GAAuB;IACxC,aAAa,EAAE,QAAQ;IACvB,MAAM,EAAE;QACN,YAAY,EAAE,kBAAkB;QAChC,UAAU,EAAE,IAAI;QAChB,cAAc,EAAE,QAAQ;QACxB,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;SACf;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,QAAQ,GAA0B;IAC7C,aAAa,EAAE,UAAU;IACzB,MAAM,EAAE;QACN,cAAc,EAAE,UAAU;QAC1B,QAAQ,EAAE,IAAI;QACd,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;SACf;KACF;IACD,YAAY,EAAE,IAAI;CACnB,CAAC;AAEF,MAAM,CAAC,MAAM,
|
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;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,WAAW,GAA0B;IAChD,aAAa,EAAE,aAAa;IAC5B,MAAM,EAAE;QACN,cAAc,EAAE,aAAa;QAC7B,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,OAAO,GAAuB;IACzC,aAAa,EAAE,SAAS;IACxB,MAAM,EAAE,kBAAkB;CAC3B,CAAC;AAEF,MAAM,CAAC,MAAM,YAAY,GAAuB;IAC9C,aAAa,EAAE,CAAC,SAAS,EAAE,aAAa,CAAC;IACzC,MAAM,EAAE;QACN,cAAc,EAAE,cAAc;QAC9B,IAAI,EAAE;YACJ,IAAI,EAAE,MAAM;SACb;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,eAAe,GAAuB;IACjD,aAAa,EAAE,CAAC,SAAS,EAAE,iBAAiB,CAAC;IAC7C,MAAM,EAAE;QACN,cAAc,EAAE,wBAAwB;QACxC,IAAI,EAAE;YACJ,IAAI,EAAE,MAAM;SACb;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 operationId: OperationURLParameter = {\n parameterPath: \"operationId\",\n mapper: {\n serializedName: \"operationId\",\n required: true,\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const apiVersion: OperationQueryParameter = {\n parameterPath: \"apiVersion\",\n mapper: {\n defaultValue: \"2023-01-15-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 message: OperationParameter = {\n parameterPath: \"message\",\n mapper: EmailMessageMapper\n};\n\nexport const operationId1: OperationParameter = {\n parameterPath: [\"options\", \"operationId\"],\n mapper: {\n serializedName: \"Operation-Id\",\n type: {\n name: \"Uuid\"\n }\n }\n};\n\nexport const clientRequestId: OperationParameter = {\n parameterPath: [\"options\", \"clientRequestId\"],\n mapper: {\n serializedName: \"x-ms-client-request-id\",\n type: {\n name: \"Uuid\"\n }\n }\n};\n"]}
|