@azure/communication-email 1.0.0-alpha.20230303.2 → 1.0.0-alpha.20230303.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (34) hide show
  1. package/README.md +32 -24
  2. package/dist/index.js +155 -220
  3. package/dist/index.js.map +1 -1
  4. package/dist-esm/samples-dev/checkMessageStatus.js +41 -0
  5. package/dist-esm/samples-dev/checkMessageStatus.js.map +1 -0
  6. package/dist-esm/samples-dev/sendEmailMultipleRecipients.js +8 -10
  7. package/dist-esm/samples-dev/sendEmailMultipleRecipients.js.map +1 -1
  8. package/dist-esm/samples-dev/sendEmailSingleRecipient.js +5 -7
  9. package/dist-esm/samples-dev/sendEmailSingleRecipient.js.map +1 -1
  10. package/dist-esm/samples-dev/sendEmailWithAttachments.js +7 -9
  11. package/dist-esm/samples-dev/sendEmailWithAttachments.js.map +1 -1
  12. package/dist-esm/src/emailClient.js +19 -4
  13. package/dist-esm/src/emailClient.js.map +1 -1
  14. package/dist-esm/src/generated/src/emailRestApiClient.js +1 -1
  15. package/dist-esm/src/generated/src/emailRestApiClient.js.map +1 -1
  16. package/dist-esm/src/generated/src/models/index.js +80 -14
  17. package/dist-esm/src/generated/src/models/index.js.map +1 -1
  18. package/dist-esm/src/generated/src/models/mappers.js +87 -77
  19. package/dist-esm/src/generated/src/models/mappers.js.map +1 -1
  20. package/dist-esm/src/generated/src/models/parameters.js +16 -14
  21. package/dist-esm/src/generated/src/models/parameters.js.map +1 -1
  22. package/dist-esm/src/generated/src/operations/email.js +26 -72
  23. package/dist-esm/src/generated/src/operations/email.js.map +1 -1
  24. package/dist-esm/src/generated/src/operationsInterfaces/email.js.map +1 -1
  25. package/dist-esm/src/models.js +1 -1
  26. package/dist-esm/src/models.js.map +1 -1
  27. package/dist-esm/test/public/emailClient.spec.js +74 -24
  28. package/dist-esm/test/public/emailClient.spec.js.map +1 -1
  29. package/dist-esm/test/public/utils/recordedClient.js +13 -9
  30. package/dist-esm/test/public/utils/recordedClient.js.map +1 -1
  31. package/package.json +2 -3
  32. package/types/communication-email.d.ts +110 -132
  33. package/dist-esm/src/generated/src/lroImpl.js +0 -25
  34. package/dist-esm/src/generated/src/lroImpl.js.map +0 -1
@@ -5,18 +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
- /** 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 = {}));
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 = {}));
22
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;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"]}
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"]}
@@ -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 EmailSendResult = {
8
+ export const SendStatusResult = {
9
9
  type: {
10
10
  name: "Composite",
11
- className: "EmailSendResult",
11
+ className: "SendStatusResult",
12
12
  modelProperties: {
13
- id: {
14
- serializedName: "id",
13
+ messageId: {
14
+ serializedName: "messageId",
15
15
  required: true,
16
16
  type: {
17
17
  name: "String"
@@ -23,32 +23,40 @@ export const EmailSendResult = {
23
23
  type: {
24
24
  name: "String"
25
25
  }
26
- },
26
+ }
27
+ }
28
+ }
29
+ };
30
+ export const CommunicationErrorResponse = {
31
+ type: {
32
+ name: "Composite",
33
+ className: "CommunicationErrorResponse",
34
+ modelProperties: {
27
35
  error: {
28
36
  serializedName: "error",
29
37
  type: {
30
38
  name: "Composite",
31
- className: "ErrorDetail"
39
+ className: "CommunicationError"
32
40
  }
33
41
  }
34
42
  }
35
43
  }
36
44
  };
37
- export const ErrorDetail = {
45
+ export const CommunicationError = {
38
46
  type: {
39
47
  name: "Composite",
40
- className: "ErrorDetail",
48
+ className: "CommunicationError",
41
49
  modelProperties: {
42
50
  code: {
43
51
  serializedName: "code",
44
- readOnly: true,
52
+ required: true,
45
53
  type: {
46
54
  name: "String"
47
55
  }
48
56
  },
49
57
  message: {
50
58
  serializedName: "message",
51
- readOnly: true,
59
+ required: true,
52
60
  type: {
53
61
  name: "String"
54
62
  }
@@ -68,60 +76,16 @@ export const ErrorDetail = {
68
76
  element: {
69
77
  type: {
70
78
  name: "Composite",
71
- className: "ErrorDetail"
79
+ className: "CommunicationError"
72
80
  }
73
81
  }
74
82
  }
75
83
  },
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",
84
+ innerError: {
85
+ serializedName: "innererror",
122
86
  type: {
123
87
  name: "Composite",
124
- className: "ErrorDetail"
88
+ className: "CommunicationError"
125
89
  }
126
90
  }
127
91
  }
@@ -132,15 +96,20 @@ export const EmailMessage = {
132
96
  name: "Composite",
133
97
  className: "EmailMessage",
134
98
  modelProperties: {
135
- headers: {
99
+ customHeaders: {
136
100
  serializedName: "headers",
137
101
  type: {
138
- name: "Dictionary",
139
- value: { type: { name: "String" } }
102
+ name: "Sequence",
103
+ element: {
104
+ type: {
105
+ name: "Composite",
106
+ className: "EmailCustomHeader"
107
+ }
108
+ }
140
109
  }
141
110
  },
142
- senderAddress: {
143
- serializedName: "senderAddress",
111
+ sender: {
112
+ serializedName: "sender",
144
113
  required: true,
145
114
  type: {
146
115
  name: "String"
@@ -153,6 +122,13 @@ export const EmailMessage = {
153
122
  className: "EmailContent"
154
123
  }
155
124
  },
125
+ importance: {
126
+ defaultValue: "normal",
127
+ serializedName: "importance",
128
+ type: {
129
+ name: "String"
130
+ }
131
+ },
156
132
  recipients: {
157
133
  serializedName: "recipients",
158
134
  type: {
@@ -184,8 +160,8 @@ export const EmailMessage = {
184
160
  }
185
161
  }
186
162
  },
187
- userEngagementTrackingDisabled: {
188
- serializedName: "userEngagementTrackingDisabled",
163
+ disableUserEngagementTracking: {
164
+ serializedName: "disableUserEngagementTracking",
189
165
  type: {
190
166
  name: "Boolean"
191
167
  }
@@ -193,6 +169,28 @@ export const EmailMessage = {
193
169
  }
194
170
  }
195
171
  };
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
+ };
196
194
  export const EmailContent = {
197
195
  type: {
198
196
  name: "Composite",
@@ -238,7 +236,7 @@ export const EmailRecipients = {
238
236
  }
239
237
  },
240
238
  cc: {
241
- serializedName: "cc",
239
+ serializedName: "CC",
242
240
  type: {
243
241
  name: "Sequence",
244
242
  element: {
@@ -250,7 +248,7 @@ export const EmailRecipients = {
250
248
  }
251
249
  },
252
250
  bcc: {
253
- serializedName: "bcc",
251
+ serializedName: "bCC",
254
252
  type: {
255
253
  name: "Sequence",
256
254
  element: {
@@ -269,8 +267,8 @@ export const EmailAddress = {
269
267
  name: "Composite",
270
268
  className: "EmailAddress",
271
269
  modelProperties: {
272
- address: {
273
- serializedName: "address",
270
+ email: {
271
+ serializedName: "email",
274
272
  required: true,
275
273
  type: {
276
274
  name: "String"
@@ -297,15 +295,15 @@ export const EmailAttachment = {
297
295
  name: "String"
298
296
  }
299
297
  },
300
- contentType: {
301
- serializedName: "contentType",
298
+ attachmentType: {
299
+ serializedName: "attachmentType",
302
300
  required: true,
303
301
  type: {
304
302
  name: "String"
305
303
  }
306
304
  },
307
- contentInBase64: {
308
- serializedName: "contentInBase64",
305
+ contentBytesBase64: {
306
+ serializedName: "contentBytesBase64",
309
307
  required: true,
310
308
  type: {
311
309
  name: "String"
@@ -314,10 +312,10 @@ export const EmailAttachment = {
314
312
  }
315
313
  }
316
314
  };
317
- export const EmailGetSendResultHeaders = {
315
+ export const EmailGetSendStatusHeaders = {
318
316
  type: {
319
317
  name: "Composite",
320
- className: "EmailGetSendResultHeaders",
318
+ className: "EmailGetSendStatusHeaders",
321
319
  modelProperties: {
322
320
  retryAfter: {
323
321
  serializedName: "retry-after",
@@ -328,10 +326,10 @@ export const EmailGetSendResultHeaders = {
328
326
  }
329
327
  }
330
328
  };
331
- export const EmailGetSendResultExceptionHeaders = {
329
+ export const EmailGetSendStatusExceptionHeaders = {
332
330
  type: {
333
331
  name: "Composite",
334
- className: "EmailGetSendResultExceptionHeaders",
332
+ className: "EmailGetSendStatusExceptionHeaders",
335
333
  modelProperties: {
336
334
  xMsErrorCode: {
337
335
  serializedName: "x-ms-error-code",
@@ -347,6 +345,12 @@ export const EmailSendHeaders = {
347
345
  name: "Composite",
348
346
  className: "EmailSendHeaders",
349
347
  modelProperties: {
348
+ repeatabilityResult: {
349
+ serializedName: "repeatability-result",
350
+ type: {
351
+ name: "String"
352
+ }
353
+ },
350
354
  operationLocation: {
351
355
  serializedName: "operation-location",
352
356
  type: {
@@ -358,6 +362,12 @@ export const EmailSendHeaders = {
358
362
  type: {
359
363
  name: "Number"
360
364
  }
365
+ },
366
+ xMsRequestId: {
367
+ serializedName: "x-ms-request-id",
368
+ type: {
369
+ name: "String"
370
+ }
361
371
  }
362
372
  }
363
373
  }
@@ -1 +1 @@
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,EAA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M,yBAAyB,GAA+B;IACnE,IAAI,EAAE;QACJ,IAAI,EAAE,WAAW;QACjB,SAAS,EAAE,2BAA2B;QACtC,eAAe,EAAE;YACf,UAAU,EAAE;gBACV,cAAc,EAAE,aAAa;gBAC7B,IAAI,EAAE;oBACJ,IAAI,EAAE,QAAQ;iBACf;aACF;SACF;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,kCAAkC,GAA+B;IAC5E,IAAI,EAAE;QACJ,IAAI,EAAE,WAAW;QACjB,SAAS,EAAE,oCAAoC;QAC/C,eAAe,EAAE;YACf,YAAY,EAAE;gBACZ,cAAc,EAAE,iBAAiB;gBACjC,IAAI,EAAE;oBACJ,IAAI,EAAE,QAAQ;iBACf;aACF;SACF;KACF;CACF,CAAC;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"]}
1
+ {"version":3,"file":"mappers.js","sourceRoot":"","sources":["../../../../../src/generated/src/models/mappers.ts"],"names":[],"mappings":"AA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AAoB;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 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"]}
@@ -28,10 +28,10 @@ export const endpoint = {
28
28
  },
29
29
  skipEncoding: true
30
30
  };
31
- export const operationId = {
32
- parameterPath: "operationId",
31
+ export const messageId = {
32
+ parameterPath: "messageId",
33
33
  mapper: {
34
- serializedName: "operationId",
34
+ serializedName: "messageId",
35
35
  required: true,
36
36
  type: {
37
37
  name: "String"
@@ -41,7 +41,7 @@ export const operationId = {
41
41
  export const apiVersion = {
42
42
  parameterPath: "apiVersion",
43
43
  mapper: {
44
- defaultValue: "2023-01-15-preview",
44
+ defaultValue: "2021-10-01-preview",
45
45
  isConstant: true,
46
46
  serializedName: "api-version",
47
47
  type: {
@@ -60,25 +60,27 @@ export const contentType = {
60
60
  }
61
61
  }
62
62
  };
63
- export const message = {
64
- parameterPath: "message",
63
+ export const emailMessage = {
64
+ parameterPath: "emailMessage",
65
65
  mapper: EmailMessageMapper
66
66
  };
67
- export const operationId1 = {
68
- parameterPath: ["options", "operationId"],
67
+ export const repeatabilityRequestId = {
68
+ parameterPath: "repeatabilityRequestId",
69
69
  mapper: {
70
- serializedName: "Operation-Id",
70
+ serializedName: "repeatability-request-id",
71
+ required: true,
71
72
  type: {
72
- name: "Uuid"
73
+ name: "String"
73
74
  }
74
75
  }
75
76
  };
76
- export const clientRequestId = {
77
- parameterPath: ["options", "clientRequestId"],
77
+ export const repeatabilityFirstSent = {
78
+ parameterPath: "repeatabilityFirstSent",
78
79
  mapper: {
79
- serializedName: "x-ms-client-request-id",
80
+ serializedName: "repeatability-first-sent",
81
+ required: true,
80
82
  type: {
81
- name: "Uuid"
83
+ name: "String"
82
84
  }
83
85
  }
84
86
  };
@@ -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,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"]}
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;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uB;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 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"]}