@azure/communication-email 1.0.0-beta.1 → 1.0.0-beta.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (43) hide show
  1. package/README.md +51 -45
  2. package/dist/index.js +341 -214
  3. package/dist/index.js.map +1 -1
  4. package/dist-esm/samples-dev/sendEmailMultipleRecipients.js +11 -24
  5. package/dist-esm/samples-dev/sendEmailMultipleRecipients.js.map +1 -1
  6. package/dist-esm/samples-dev/sendEmailSingleRecipient.js +7 -10
  7. package/dist-esm/samples-dev/sendEmailSingleRecipient.js.map +1 -1
  8. package/dist-esm/samples-dev/sendEmailWithAttachments.js +9 -12
  9. package/dist-esm/samples-dev/sendEmailWithAttachments.js.map +1 -1
  10. package/dist-esm/src/emailClient.js +8 -34
  11. package/dist-esm/src/emailClient.js.map +1 -1
  12. package/dist-esm/src/generated/src/emailRestApiClient.js +53 -10
  13. package/dist-esm/src/generated/src/emailRestApiClient.js.map +1 -1
  14. package/dist-esm/src/generated/src/index.js +11 -0
  15. package/dist-esm/src/generated/src/index.js.map +1 -0
  16. package/dist-esm/src/generated/src/lroImpl.js +25 -0
  17. package/dist-esm/src/generated/src/lroImpl.js.map +1 -0
  18. package/dist-esm/src/generated/src/models/index.js +14 -1
  19. package/dist-esm/src/generated/src/models/index.js.map +1 -1
  20. package/dist-esm/src/generated/src/models/mappers.js +134 -86
  21. package/dist-esm/src/generated/src/models/mappers.js.map +1 -1
  22. package/dist-esm/src/generated/src/models/parameters.js +25 -16
  23. package/dist-esm/src/generated/src/models/parameters.js.map +1 -1
  24. package/dist-esm/src/generated/src/operations/email.js +79 -40
  25. package/dist-esm/src/generated/src/operations/email.js.map +1 -1
  26. package/dist-esm/src/generated/src/operationsInterfaces/email.js +9 -0
  27. package/dist-esm/src/generated/src/operationsInterfaces/email.js.map +1 -0
  28. package/dist-esm/src/generated/src/operationsInterfaces/index.js +9 -0
  29. package/dist-esm/src/generated/src/operationsInterfaces/index.js.map +1 -0
  30. package/dist-esm/src/models.js +1 -1
  31. package/dist-esm/src/models.js.map +1 -1
  32. package/dist-esm/test/public/emailClient.spec.js +98 -127
  33. package/dist-esm/test/public/emailClient.spec.js.map +1 -1
  34. package/dist-esm/test/public/utils/recordedClient.js +46 -32
  35. package/dist-esm/test/public/utils/recordedClient.js.map +1 -1
  36. package/package.json +16 -15
  37. package/types/communication-email.d.ts +147 -134
  38. package/dist-esm/samples-dev/checkMessageStatus.js +0 -46
  39. package/dist-esm/samples-dev/checkMessageStatus.js.map +0 -1
  40. package/dist-esm/src/constants.js +0 -4
  41. package/dist-esm/src/constants.js.map +0 -1
  42. package/dist-esm/src/generated/src/emailRestApiClientContext.js +0 -38
  43. package/dist-esm/src/generated/src/emailRestApiClientContext.js.map +0 -1
@@ -0,0 +1,11 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ export * from "./models";
9
+ export { EmailRestApiClient } from "./emailRestApiClient";
10
+ export * from "./operationsInterfaces";
11
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/generated/src/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,UAAU,CAAC;AACzB,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,cAAc,wBAAwB,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nexport * from \"./models\";\nexport { EmailRestApiClient } from \"./emailRestApiClient\";\nexport * from \"./operationsInterfaces\";\n"]}
@@ -0,0 +1,25 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import { __rest } from "tslib";
9
+ export class LroImpl {
10
+ constructor(sendOperationFn, args, spec, requestPath = spec.path, requestMethod = spec.httpMethod) {
11
+ this.sendOperationFn = sendOperationFn;
12
+ this.args = args;
13
+ this.spec = spec;
14
+ this.requestPath = requestPath;
15
+ this.requestMethod = requestMethod;
16
+ }
17
+ async sendInitialRequest() {
18
+ return this.sendOperationFn(this.args, this.spec);
19
+ }
20
+ async sendPollRequest(path) {
21
+ const _a = this.spec, { requestBody } = _a, restSpec = __rest(_a, ["requestBody"]);
22
+ return this.sendOperationFn(this.args, Object.assign(Object.assign({}, restSpec), { path, httpMethod: "GET" }));
23
+ }
24
+ }
25
+ //# sourceMappingURL=lroImpl.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lroImpl.js","sourceRoot":"","sources":["../../../../src/generated/src/lroImpl.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAIH,MAAM,OAAO,OAAO;IAClB,YACU,eAAkE,EAClE,IAA6B,EAC7B,IAIe,EAChB,cAAsB,IAAI,CAAC,IAAK,EAChC,gBAAwB,IAAI,CAAC,UAAU;QARtC,oBAAe,GAAf,eAAe,CAAmD;QAClE,SAAI,GAAJ,IAAI,CAAyB;QAC7B,SAAI,GAAJ,IAAI,CAIW;QAChB,gBAAW,GAAX,WAAW,CAAqB;QAChC,kBAAa,GAAb,aAAa,CAA0B;IAC7C,CAAC;IACG,KAAK,CAAC,kBAAkB;QAC7B,OAAO,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC;IACpD,CAAC;IACM,KAAK,CAAC,eAAe,CAAC,IAAY;QACvC,MAAM,KAA+B,IAAI,CAAC,IAAI,EAAxC,EAAE,WAAW,OAA2B,EAAtB,QAAQ,cAA1B,eAA4B,CAAY,CAAC;QAC/C,OAAO,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,IAAI,kCAChC,QAAQ,KACX,IAAI,EACJ,UAAU,EAAE,KAAK,IACjB,CAAC;IACL,CAAC;CACF","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { LongRunningOperation, LroResponse } from \"@azure/core-lro\";\n\nexport class LroImpl<T> implements LongRunningOperation<T> {\n constructor(\n private sendOperationFn: (args: any, spec: any) => Promise<LroResponse<T>>,\n private args: Record<string, unknown>,\n private spec: {\n readonly requestBody?: unknown;\n readonly path?: string;\n readonly httpMethod: string;\n } & Record<string, any>,\n public requestPath: string = spec.path!,\n public requestMethod: string = spec.httpMethod\n ) {}\n public async sendInitialRequest(): Promise<LroResponse<T>> {\n return this.sendOperationFn(this.args, this.spec);\n }\n public async sendPollRequest(path: string): Promise<LroResponse<T>> {\n const { requestBody, ...restSpec } = this.spec;\n return this.sendOperationFn(this.args, {\n ...restSpec,\n path,\n httpMethod: \"GET\"\n });\n }\n}\n"]}
@@ -5,5 +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
- export {};
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 = {}));
9
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","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreHttp from \"@azure/core-http\";\n\n/**\n * Status of an email message that was sent previously.\n */\nexport interface SendStatusResult {\n /**\n * System generated id of an email message sent.\n */\n messageId: string;\n /**\n * The type indicating the status of a request.\n */\n status: SendStatus;\n}\n\n/**\n * The Communication Services error.\n */\nexport interface CommunicationErrorResponse {\n /**\n * The Communication Services error.\n */\n error: CommunicationError;\n}\n\n/**\n * The Communication Services error.\n */\nexport interface CommunicationError {\n /**\n * The error code.\n */\n code: string;\n /**\n * The error message.\n */\n message: string;\n /**\n * The error target.\n */\n readonly target?: string;\n /**\n * Further details about specific errors that led to this error.\n */\n readonly details?: CommunicationError[];\n /**\n * The inner error if any.\n */\n readonly innerError?: CommunicationError;\n}\n\n/**\n * Message payload for sending an email\n */\nexport interface EmailMessage {\n /**\n * Custom email headers to be passed.\n */\n customHeaders?: EmailCustomHeader[];\n /**\n * Sender email address from a verified domain.\n */\n sender: string;\n /**\n * Email content to be sent.\n */\n content: EmailContent;\n /**\n * The importance type for the email.\n */\n importance?: EmailImportance;\n /**\n * Recipients for the email.\n */\n recipients: EmailRecipients;\n /**\n * list of attachments\n */\n attachments?: EmailAttachment[];\n /**\n * Email addresses where recipients' replies will be sent to.\n */\n replyTo?: EmailAddress[];\n /**\n * Indicates whether user engagement tracking should be disabled for this request if the resource-level user engagement tracking setting was already enabled in the control plane.\n */\n disableUserEngagementTracking?: boolean;\n}\n\n/**\n * Custom header for email.\n */\nexport interface EmailCustomHeader {\n /**\n * Header name.\n */\n name: string;\n /**\n * Header value.\n */\n value: string;\n}\n\n/**\n * Content of the email.\n */\nexport interface EmailContent {\n /**\n * Subject of the email message\n */\n subject: string;\n /**\n * Plain text version of the email message.\n */\n plainText?: string;\n /**\n * Html version of the email message.\n */\n html?: string;\n}\n\n/**\n * Recipients of the email\n */\nexport interface EmailRecipients {\n /**\n * Email to recipients\n */\n to: EmailAddress[];\n /**\n * Email cc recipients\n */\n cC?: EmailAddress[];\n /**\n * Email bcc recipients\n */\n bCC?: EmailAddress[];\n}\n\n/**\n * An object representing the email address and its display name\n */\nexport interface EmailAddress {\n /**\n * Email address.\n */\n email: string;\n /**\n * Email display name.\n */\n displayName?: string;\n}\n\n/**\n * Attachment to the email.\n */\nexport interface EmailAttachment {\n /**\n * Name of the attachment\n */\n name: string;\n /**\n * The type of attachment file.\n */\n attachmentType: EmailAttachmentType;\n /**\n * Base64 encoded contents of the attachment\n */\n contentBytesBase64: string;\n}\n\n/**\n * Defines headers for Email_getSendStatus operation.\n */\nexport interface EmailGetSendStatusHeaders {\n retryAfter?: number;\n}\n\n/**\n * Defines headers for Email_send operation.\n */\nexport interface EmailSendHeaders {\n repeatabilityResult?: string;\n operationLocation?: string;\n retryAfter?: number;\n xMsRequestId?: string;\n}\n\n/**\n * Defines values for SendStatus.\n */\nexport type SendStatus = \"queued\" | \"outForDelivery\" | \"dropped\";\n/**\n * Defines values for EmailImportance.\n */\nexport type EmailImportance = \"high\" | \"normal\" | \"low\";\n/**\n * Defines values for EmailAttachmentType.\n */\nexport type EmailAttachmentType =\n | \"avi\"\n | \"bmp\"\n | \"doc\"\n | \"docm\"\n | \"docx\"\n | \"gif\"\n | \"jpeg\"\n | \"mp3\"\n | \"one\"\n | \"pdf\"\n | \"png\"\n | \"ppsm\"\n | \"ppsx\"\n | \"ppt\"\n | \"pptm\"\n | \"pptx\"\n | \"pub\"\n | \"rpmsg\"\n | \"rtf\"\n | \"tif\"\n | \"txt\"\n | \"vsd\"\n | \"wav\"\n | \"wma\"\n | \"xls\"\n | \"xlsb\"\n | \"xlsm\"\n | \"xlsx\";\n\n/**\n * Contains response data for the getSendStatus operation.\n */\nexport type EmailGetSendStatusResponse = EmailGetSendStatusHeaders &\n SendStatusResult & {\n /**\n * The underlying HTTP response.\n */\n _response: coreHttp.HttpResponse & {\n /**\n * The response body as text (string format)\n */\n bodyAsText: string;\n\n /**\n * The response body as parsed JSON or XML\n */\n parsedBody: SendStatusResult;\n /**\n * The parsed HTTP response headers.\n */\n parsedHeaders: EmailGetSendStatusHeaders;\n };\n };\n\n/**\n * Contains response data for the send operation.\n */\nexport type EmailSendResponse = EmailSendHeaders & {\n /**\n * The underlying HTTP response.\n */\n _response: coreHttp.HttpResponse & {\n /**\n * The parsed HTTP response headers.\n */\n parsedHeaders: EmailSendHeaders;\n };\n};\n\n/**\n * Optional parameters.\n */\nexport interface EmailRestApiClientOptionalParams\n extends coreHttp.ServiceClientOptions {\n /**\n * Api Version\n */\n apiVersion?: string;\n /**\n * Overrides client endpoint.\n */\n endpoint?: string;\n}\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/generated/src/models/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;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 SendStatusResult = {
8
+ export const EmailSendResult = {
9
9
  type: {
10
10
  name: "Composite",
11
- className: "SendStatusResult",
11
+ className: "EmailSendResult",
12
12
  modelProperties: {
13
- messageId: {
14
- serializedName: "messageId",
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: "CommunicationError"
31
+ className: "ErrorDetail"
40
32
  }
41
33
  }
42
34
  }
43
35
  }
44
36
  };
45
- export const CommunicationError = {
37
+ export const ErrorDetail = {
46
38
  type: {
47
39
  name: "Composite",
48
- className: "CommunicationError",
40
+ className: "ErrorDetail",
49
41
  modelProperties: {
50
42
  code: {
51
43
  serializedName: "code",
52
- required: true,
44
+ readOnly: true,
53
45
  type: {
54
46
  name: "String"
55
47
  }
56
48
  },
57
49
  message: {
58
50
  serializedName: "message",
59
- required: true,
51
+ readOnly: true,
60
52
  type: {
61
53
  name: "String"
62
54
  }
@@ -74,15 +66,62 @@ export const CommunicationError = {
74
66
  type: {
75
67
  name: "Sequence",
76
68
  element: {
77
- type: { name: "Composite", className: "CommunicationError" }
69
+ type: {
70
+ name: "Composite",
71
+ className: "ErrorDetail"
72
+ }
78
73
  }
79
74
  }
80
75
  },
81
- innerError: {
82
- serializedName: "innererror",
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",
83
122
  type: {
84
123
  name: "Composite",
85
- className: "CommunicationError"
124
+ className: "ErrorDetail"
86
125
  }
87
126
  }
88
127
  }
@@ -93,17 +132,15 @@ export const EmailMessage = {
93
132
  name: "Composite",
94
133
  className: "EmailMessage",
95
134
  modelProperties: {
96
- customHeaders: {
135
+ headers: {
97
136
  serializedName: "headers",
98
137
  type: {
99
- name: "Sequence",
100
- element: {
101
- type: { name: "Composite", className: "EmailCustomHeader" }
102
- }
138
+ name: "Dictionary",
139
+ value: { type: { name: "String" } }
103
140
  }
104
141
  },
105
- sender: {
106
- serializedName: "sender",
142
+ senderAddress: {
143
+ serializedName: "senderAddress",
107
144
  required: true,
108
145
  type: {
109
146
  name: "String"
@@ -116,13 +153,6 @@ export const EmailMessage = {
116
153
  className: "EmailContent"
117
154
  }
118
155
  },
119
- importance: {
120
- defaultValue: "normal",
121
- serializedName: "importance",
122
- type: {
123
- name: "String"
124
- }
125
- },
126
156
  recipients: {
127
157
  serializedName: "recipients",
128
158
  type: {
@@ -134,18 +164,28 @@ export const EmailMessage = {
134
164
  serializedName: "attachments",
135
165
  type: {
136
166
  name: "Sequence",
137
- element: { type: { name: "Composite", className: "EmailAttachment" } }
167
+ element: {
168
+ type: {
169
+ name: "Composite",
170
+ className: "EmailAttachment"
171
+ }
172
+ }
138
173
  }
139
174
  },
140
175
  replyTo: {
141
176
  serializedName: "replyTo",
142
177
  type: {
143
178
  name: "Sequence",
144
- element: { type: { name: "Composite", className: "EmailAddress" } }
179
+ element: {
180
+ type: {
181
+ name: "Composite",
182
+ className: "EmailAddress"
183
+ }
184
+ }
145
185
  }
146
186
  },
147
- disableUserEngagementTracking: {
148
- serializedName: "disableUserEngagementTracking",
187
+ userEngagementTrackingDisabled: {
188
+ serializedName: "userEngagementTrackingDisabled",
149
189
  type: {
150
190
  name: "Boolean"
151
191
  }
@@ -153,28 +193,6 @@ export const EmailMessage = {
153
193
  }
154
194
  }
155
195
  };
156
- export const EmailCustomHeader = {
157
- type: {
158
- name: "Composite",
159
- className: "EmailCustomHeader",
160
- modelProperties: {
161
- name: {
162
- serializedName: "name",
163
- required: true,
164
- type: {
165
- name: "String"
166
- }
167
- },
168
- value: {
169
- serializedName: "value",
170
- required: true,
171
- type: {
172
- name: "String"
173
- }
174
- }
175
- }
176
- }
177
- };
178
196
  export const EmailContent = {
179
197
  type: {
180
198
  name: "Composite",
@@ -209,24 +227,38 @@ export const EmailRecipients = {
209
227
  modelProperties: {
210
228
  to: {
211
229
  serializedName: "to",
212
- required: true,
213
230
  type: {
214
231
  name: "Sequence",
215
- element: { type: { name: "Composite", className: "EmailAddress" } }
232
+ element: {
233
+ type: {
234
+ name: "Composite",
235
+ className: "EmailAddress"
236
+ }
237
+ }
216
238
  }
217
239
  },
218
- cC: {
219
- serializedName: "cC",
240
+ cc: {
241
+ serializedName: "cc",
220
242
  type: {
221
243
  name: "Sequence",
222
- element: { type: { name: "Composite", className: "EmailAddress" } }
244
+ element: {
245
+ type: {
246
+ name: "Composite",
247
+ className: "EmailAddress"
248
+ }
249
+ }
223
250
  }
224
251
  },
225
- bCC: {
226
- serializedName: "bCC",
252
+ bcc: {
253
+ serializedName: "bcc",
227
254
  type: {
228
255
  name: "Sequence",
229
- element: { type: { name: "Composite", className: "EmailAddress" } }
256
+ element: {
257
+ type: {
258
+ name: "Composite",
259
+ className: "EmailAddress"
260
+ }
261
+ }
230
262
  }
231
263
  }
232
264
  }
@@ -237,8 +269,8 @@ export const EmailAddress = {
237
269
  name: "Composite",
238
270
  className: "EmailAddress",
239
271
  modelProperties: {
240
- email: {
241
- serializedName: "email",
272
+ address: {
273
+ serializedName: "address",
242
274
  required: true,
243
275
  type: {
244
276
  name: "String"
@@ -265,15 +297,15 @@ export const EmailAttachment = {
265
297
  name: "String"
266
298
  }
267
299
  },
268
- attachmentType: {
269
- serializedName: "attachmentType",
300
+ contentType: {
301
+ serializedName: "contentType",
270
302
  required: true,
271
303
  type: {
272
304
  name: "String"
273
305
  }
274
306
  },
275
- contentBytesBase64: {
276
- serializedName: "contentBytesBase64",
307
+ contentInBase64: {
308
+ serializedName: "contentInBase64",
277
309
  required: true,
278
310
  type: {
279
311
  name: "String"
@@ -282,10 +314,10 @@ export const EmailAttachment = {
282
314
  }
283
315
  }
284
316
  };
285
- export const EmailGetSendStatusHeaders = {
317
+ export const EmailGetSendResultHeaders = {
286
318
  type: {
287
319
  name: "Composite",
288
- className: "EmailGetSendStatusHeaders",
320
+ className: "EmailGetSendResultHeaders",
289
321
  modelProperties: {
290
322
  retryAfter: {
291
323
  serializedName: "retry-after",
@@ -296,17 +328,25 @@ export const EmailGetSendStatusHeaders = {
296
328
  }
297
329
  }
298
330
  };
299
- export const EmailSendHeaders = {
331
+ export const EmailGetSendResultExceptionHeaders = {
300
332
  type: {
301
333
  name: "Composite",
302
- className: "EmailSendHeaders",
334
+ className: "EmailGetSendResultExceptionHeaders",
303
335
  modelProperties: {
304
- repeatabilityResult: {
305
- serializedName: "repeatability-result",
336
+ xMsErrorCode: {
337
+ serializedName: "x-ms-error-code",
306
338
  type: {
307
339
  name: "String"
308
340
  }
309
- },
341
+ }
342
+ }
343
+ }
344
+ };
345
+ export const EmailSendHeaders = {
346
+ type: {
347
+ name: "Composite",
348
+ className: "EmailSendHeaders",
349
+ modelProperties: {
310
350
  operationLocation: {
311
351
  serializedName: "operation-location",
312
352
  type: {
@@ -318,9 +358,17 @@ export const EmailSendHeaders = {
318
358
  type: {
319
359
  name: "Number"
320
360
  }
321
- },
322
- xMsRequestId: {
323
- serializedName: "x-ms-request-id",
361
+ }
362
+ }
363
+ }
364
+ };
365
+ export const EmailSendExceptionHeaders = {
366
+ type: {
367
+ name: "Composite",
368
+ className: "EmailSendExceptionHeaders",
369
+ modelProperties: {
370
+ xMsErrorCode: {
371
+ serializedName: "x-ms-error-code",
324
372
  type: {
325
373
  name: "String"
326
374
  }
@@ -1 +1 @@
1
- {"version":3,"file":"mappers.js","sourceRoot":"","sources":["../../../../../src/generated/src/models/mappers.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,MAAM,CAAC,MAAM,gBAAgB,GAA6B;IACxD,IAAI,EAAE;QACJ,IAAI,EAAE,WAAW;QACjB,SAAS,EAAE,kBAAkB;QAC7B,eAAe,EAAE;YACf,SAAS,EAAE;gBACT,cAAc,EAAE,WAAW;gBAC3B,QAAQ,EAAE,IAAI;gBACd,IAAI,EAAE;oBACJ,IAAI,EAAE,QAAQ;iBACf;aACF;YACD,MAAM,EAAE;gBACN,cAAc,EAAE,QAA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BACf;aACF;YACD,kBAAkB,EAAE;gBAClB,cAAc,EAAE,oBAAoB;gBACpC,QAAQ,EAAE,IAAI;gBACd,IAAI,EAAE;oBACJ,IAAI,EAAE,QAAQ;iBACf;aACF;SACF;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,yBAAyB,GAA6B;IACjE,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,gBAAgB,GAA6B;IACxD,IAAI,EAAE;QACJ,IAAI,EAAE,WAAW;QACjB,SAAS,EAAE,kBAAkB;QAC7B,eAAe,EAAE;YACf,mBAAmB,EAAE;gBACnB,cAAc,EAAE,sBAAsB;gBACtC,IAAI,EAAE;oBACJ,IAAI,EAAE,QAAQ;iBACf;aACF;YACD,iBAAiB,EAAE;gBACjB,cAAc,EAAE,oBAAoB;gBACpC,IAAI,EAAE;oBACJ,IAAI,EAAE,QAAQ;iBACf;aACF;YACD,UAAU,EAAE;gBACV,cAAc,EAAE,aAAa;gBAC7B,IAAI,EAAE;oBACJ,IAAI,EAAE,QAAQ;iBACf;aACF;YACD,YAAY,EAAE;gBACZ,cAAc,EAAE,iBAAiB;gBACjC,IAAI,EAAE;oBACJ,IAAI,EAAE,QAAQ;iBACf;aACF;SACF;KACF;CACF,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreHttp from \"@azure/core-http\";\n\nexport const SendStatusResult: coreHttp.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"SendStatusResult\",\n modelProperties: {\n messageId: {\n serializedName: \"messageId\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n status: {\n serializedName: \"status\",\n required: true,\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const CommunicationErrorResponse: coreHttp.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"CommunicationErrorResponse\",\n modelProperties: {\n error: {\n serializedName: \"error\",\n type: {\n name: \"Composite\",\n className: \"CommunicationError\"\n }\n }\n }\n }\n};\n\nexport const CommunicationError: coreHttp.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"CommunicationError\",\n modelProperties: {\n code: {\n serializedName: \"code\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n message: {\n serializedName: \"message\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n target: {\n serializedName: \"target\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n details: {\n serializedName: \"details\",\n readOnly: true,\n type: {\n name: \"Sequence\",\n element: {\n type: { name: \"Composite\", className: \"CommunicationError\" }\n }\n }\n },\n innerError: {\n serializedName: \"innererror\",\n type: {\n name: \"Composite\",\n className: \"CommunicationError\"\n }\n }\n }\n }\n};\n\nexport const EmailMessage: coreHttp.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"EmailMessage\",\n modelProperties: {\n customHeaders: {\n serializedName: \"headers\",\n type: {\n name: \"Sequence\",\n element: {\n type: { name: \"Composite\", className: \"EmailCustomHeader\" }\n }\n }\n },\n sender: {\n serializedName: \"sender\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n content: {\n serializedName: \"content\",\n type: {\n name: \"Composite\",\n className: \"EmailContent\"\n }\n },\n importance: {\n defaultValue: \"normal\",\n serializedName: \"importance\",\n type: {\n name: \"String\"\n }\n },\n recipients: {\n serializedName: \"recipients\",\n type: {\n name: \"Composite\",\n className: \"EmailRecipients\"\n }\n },\n attachments: {\n serializedName: \"attachments\",\n type: {\n name: \"Sequence\",\n element: { type: { name: \"Composite\", className: \"EmailAttachment\" } }\n }\n },\n replyTo: {\n serializedName: \"replyTo\",\n type: {\n name: \"Sequence\",\n element: { type: { name: \"Composite\", className: \"EmailAddress\" } }\n }\n },\n disableUserEngagementTracking: {\n serializedName: \"disableUserEngagementTracking\",\n type: {\n name: \"Boolean\"\n }\n }\n }\n }\n};\n\nexport const EmailCustomHeader: coreHttp.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"EmailCustomHeader\",\n modelProperties: {\n name: {\n serializedName: \"name\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n value: {\n serializedName: \"value\",\n required: true,\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const EmailContent: coreHttp.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"EmailContent\",\n modelProperties: {\n subject: {\n serializedName: \"subject\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n plainText: {\n serializedName: \"plainText\",\n type: {\n name: \"String\"\n }\n },\n html: {\n serializedName: \"html\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const EmailRecipients: coreHttp.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"EmailRecipients\",\n modelProperties: {\n to: {\n serializedName: \"to\",\n required: true,\n type: {\n name: \"Sequence\",\n element: { type: { name: \"Composite\", className: \"EmailAddress\" } }\n }\n },\n cC: {\n serializedName: \"cC\",\n type: {\n name: \"Sequence\",\n element: { type: { name: \"Composite\", className: \"EmailAddress\" } }\n }\n },\n bCC: {\n serializedName: \"bCC\",\n type: {\n name: \"Sequence\",\n element: { type: { name: \"Composite\", className: \"EmailAddress\" } }\n }\n }\n }\n }\n};\n\nexport const EmailAddress: coreHttp.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"EmailAddress\",\n modelProperties: {\n email: {\n serializedName: \"email\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n displayName: {\n serializedName: \"displayName\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const EmailAttachment: coreHttp.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"EmailAttachment\",\n modelProperties: {\n name: {\n serializedName: \"name\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n attachmentType: {\n serializedName: \"attachmentType\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n contentBytesBase64: {\n serializedName: \"contentBytesBase64\",\n required: true,\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const EmailGetSendStatusHeaders: coreHttp.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"EmailGetSendStatusHeaders\",\n modelProperties: {\n retryAfter: {\n serializedName: \"retry-after\",\n type: {\n name: \"Number\"\n }\n }\n }\n }\n};\n\nexport const EmailSendHeaders: coreHttp.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"EmailSendHeaders\",\n modelProperties: {\n repeatabilityResult: {\n serializedName: \"repeatability-result\",\n type: {\n name: \"String\"\n }\n },\n operationLocation: {\n serializedName: \"operation-location\",\n type: {\n name: \"String\"\n }\n },\n retryAfter: {\n serializedName: \"retry-after\",\n type: {\n name: \"Number\"\n }\n },\n xMsRequestId: {\n serializedName: \"x-ms-request-id\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n"]}
1
+ {"version":3,"file":"mappers.js","sourceRoot":"","sources":["../../../../../src/generated/src/models/mappers.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,MAAM,CAAC,MAAM,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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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"]}
@@ -6,6 +6,17 @@
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
8
  import { EmailMessage as EmailMessageMapper } from "../models/mappers";
9
+ export const accept = {
10
+ parameterPath: "accept",
11
+ mapper: {
12
+ defaultValue: "application/json",
13
+ isConstant: true,
14
+ serializedName: "Accept",
15
+ type: {
16
+ name: "String"
17
+ }
18
+ }
19
+ };
9
20
  export const endpoint = {
10
21
  parameterPath: "endpoint",
11
22
  mapper: {
@@ -17,10 +28,10 @@ export const endpoint = {
17
28
  },
18
29
  skipEncoding: true
19
30
  };
20
- export const messageId = {
21
- parameterPath: "messageId",
31
+ export const operationId = {
32
+ parameterPath: "operationId",
22
33
  mapper: {
23
- serializedName: "messageId",
34
+ serializedName: "operationId",
24
35
  required: true,
25
36
  type: {
26
37
  name: "String"
@@ -30,7 +41,7 @@ export const messageId = {
30
41
  export const apiVersion = {
31
42
  parameterPath: "apiVersion",
32
43
  mapper: {
33
- defaultValue: "2021-10-01-preview",
44
+ defaultValue: "2023-01-15-preview",
34
45
  isConstant: true,
35
46
  serializedName: "api-version",
36
47
  type: {
@@ -49,27 +60,25 @@ export const contentType = {
49
60
  }
50
61
  }
51
62
  };
52
- export const emailMessage = {
53
- parameterPath: "emailMessage",
63
+ export const message = {
64
+ parameterPath: "message",
54
65
  mapper: EmailMessageMapper
55
66
  };
56
- export const repeatabilityRequestId = {
57
- parameterPath: "repeatabilityRequestId",
67
+ export const operationId1 = {
68
+ parameterPath: ["options", "operationId"],
58
69
  mapper: {
59
- serializedName: "repeatability-request-id",
60
- required: true,
70
+ serializedName: "Operation-Id",
61
71
  type: {
62
- name: "String"
72
+ name: "Uuid"
63
73
  }
64
74
  }
65
75
  };
66
- export const repeatabilityFirstSent = {
67
- parameterPath: "repeatabilityFirstSent",
76
+ export const clientRequestId = {
77
+ parameterPath: ["options", "clientRequestId"],
68
78
  mapper: {
69
- serializedName: "repeatability-first-sent",
70
- required: true,
79
+ serializedName: "x-ms-client-request-id",
71
80
  type: {
72
- name: "String"
81
+ name: "Uuid"
73
82
  }
74
83
  }
75
84
  };