@azure/communication-email 1.0.0-alpha.20230224.2 → 1.0.0-alpha.20230303.2
Sign up to get free protection for your applications and to get access to all the features.
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"models.js","sourceRoot":"","sources":["../../src/models.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;
|
1
|
+
{"version":3,"file":"models.js","sourceRoot":"","sources":["../../src/models.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AA6DlC,OAAO,EAUL,oBAAoB,GACrB,MAAM,wBAAwB,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport { CommonClientOptions, OperationOptions } from \"@azure/core-client\";\nimport { EmailRecipients, EmailAttachment, EmailAddress } from \"./models\";\n\n/**\n * Client options used to configure Email Client API requests.\n */\nexport interface EmailClientOptions extends CommonClientOptions {}\n\n/** Content of the email. */\nexport type EmailContent = HtmlEmailContent | PlainTextEmailContent;\n\n/** Content of the email with a required html property. */\nexport interface HtmlEmailContent {\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/** Content of the email with a required plainText property. */\nexport interface PlainTextEmailContent {\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/** 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/** Optional parameters for the beginSend method. */\nexport interface EmailSendOptionalParams extends OperationOptions {\n /** This is the ID used by the status monitor for this long running operation. */\n operationId?: 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\nexport {\n EmailRecipients,\n EmailAddress,\n EmailAttachment,\n EmailSendResponse,\n EmailSendHeaders,\n EmailSendResult,\n EmailSendStatus,\n ErrorDetail,\n ErrorAdditionalInfo,\n KnownEmailSendStatus,\n} from \"./generated/src/models\";\n"]}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@azure/communication-email",
|
3
|
-
"version": "1.0.0-alpha.
|
3
|
+
"version": "1.0.0-alpha.20230303.2",
|
4
4
|
"description": "The is the JS Client SDK for email. This SDK enables users to send emails and get the status of sent email message.",
|
5
5
|
"author": "Microsoft Corporation",
|
6
6
|
"license": "MIT",
|
@@ -60,7 +60,7 @@
|
|
60
60
|
"@azure/dev-tool": ">=1.0.0-alpha <1.0.0-alphb",
|
61
61
|
"@azure/eslint-plugin-azure-sdk": ">=3.0.0-alpha <3.0.0-alphb",
|
62
62
|
"@azure/test-utils": ">=1.0.0-alpha <1.0.0-alphb",
|
63
|
-
"@azure-tools/test-recorder": "
|
63
|
+
"@azure-tools/test-recorder": ">=3.0.0-alpha <3.0.0-alphb",
|
64
64
|
"@microsoft/api-extractor": "^7.31.1",
|
65
65
|
"@types/node": "^14.0.0",
|
66
66
|
"@types/uuid": "^8.3.2",
|
@@ -59,16 +59,6 @@ export declare interface EmailClientOptions extends CommonClientOptions {
|
|
59
59
|
/** Content of the email. */
|
60
60
|
export declare type EmailContent = HtmlEmailContent | PlainTextEmailContent;
|
61
61
|
|
62
|
-
/** Content of the email. */
|
63
|
-
declare interface EmailContent_2 {
|
64
|
-
/** Subject of the email message */
|
65
|
-
subject: string;
|
66
|
-
/** Plain text version of the email message. */
|
67
|
-
plainText?: string;
|
68
|
-
/** Html version of the email message. */
|
69
|
-
html?: string;
|
70
|
-
}
|
71
|
-
|
72
62
|
/** Message payload for sending an email */
|
73
63
|
export declare interface EmailMessage {
|
74
64
|
/** Custom email headers to be passed. */
|
@@ -78,7 +68,7 @@ export declare interface EmailMessage {
|
|
78
68
|
/** Sender email address from a verified domain. */
|
79
69
|
senderAddress: string;
|
80
70
|
/** Email content to be sent. */
|
81
|
-
content:
|
71
|
+
content: EmailContent;
|
82
72
|
/** Recipients for the email. */
|
83
73
|
recipients: EmailRecipients;
|
84
74
|
/** List of attachments. Please note that we limit the total size of an email request (which includes attachments) to 10MB. */
|