@azure/communication-email 1.0.1-alpha.20241122.8 → 1.0.1-alpha.20241205.1
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/browser/emailClient.d.ts +31 -0
- package/dist/browser/emailClient.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/emailClient.js +2 -2
- package/dist/browser/emailClient.js.map +1 -0
- package/dist/browser/generated/src/emailRestApiClient.d.ts +17 -0
- package/dist/browser/generated/src/emailRestApiClient.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/generated/src/emailRestApiClient.js +1 -1
- package/dist/browser/generated/src/emailRestApiClient.js.map +1 -0
- package/dist/browser/generated/src/index.d.ts +4 -0
- package/dist/browser/generated/src/index.d.ts.map +1 -0
- package/dist/browser/generated/src/index.js +11 -0
- package/dist/browser/generated/src/index.js.map +1 -0
- package/dist/browser/generated/src/lroImpl.d.ts +16 -0
- package/dist/browser/generated/src/lroImpl.d.ts.map +1 -0
- package/{types/communication-email.d.ts → dist/browser/generated/src/models/index.d.ts} +184 -215
- package/dist/browser/generated/src/models/index.d.ts.map +1 -0
- package/dist/browser/generated/src/models/mappers.d.ts +15 -0
- package/dist/browser/generated/src/models/mappers.d.ts.map +1 -0
- package/dist/browser/generated/src/models/parameters.d.ts +10 -0
- package/dist/browser/generated/src/models/parameters.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/generated/src/models/parameters.js +1 -1
- package/{dist-esm/src → dist/browser}/generated/src/models/parameters.js.map +1 -1
- package/dist/browser/generated/src/operations/email.d.ts +33 -0
- package/dist/browser/generated/src/operations/email.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/generated/src/operations/email.js +3 -3
- package/dist/browser/generated/src/operations/email.js.map +1 -0
- package/dist/browser/generated/src/operations/index.d.ts +2 -0
- package/dist/browser/generated/src/operations/index.d.ts.map +1 -0
- package/{dist-esm/src/generated/src → dist/browser/generated/src/operations}/index.js +1 -3
- package/{dist-esm/src → dist/browser}/generated/src/operations/index.js.map +1 -1
- package/dist/browser/generated/src/operationsInterfaces/email.d.ts +25 -0
- package/dist/browser/generated/src/operationsInterfaces/email.d.ts.map +1 -0
- package/dist/browser/generated/src/operationsInterfaces/email.js.map +1 -0
- package/dist/browser/generated/src/operationsInterfaces/index.d.ts +2 -0
- package/dist/browser/generated/src/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/browser/generated/src/operationsInterfaces/index.js +9 -0
- package/{dist-esm/src → dist/browser}/generated/src/operationsInterfaces/index.js.map +1 -1
- package/dist/browser/index.d.ts +3 -0
- package/dist/browser/index.d.ts.map +1 -0
- package/dist/browser/index.js +5 -0
- package/dist/browser/index.js.map +1 -0
- package/dist/browser/logger.d.ts +5 -0
- package/dist/browser/logger.d.ts.map +1 -0
- package/dist/browser/models.d.ts +57 -0
- package/dist/browser/models.d.ts.map +1 -0
- package/dist/browser/models.js +4 -0
- package/dist/browser/models.js.map +1 -0
- package/dist/browser/package.json +3 -0
- package/dist/commonjs/emailClient.d.ts +31 -0
- package/dist/commonjs/emailClient.d.ts.map +1 -0
- package/dist/commonjs/emailClient.js +42 -0
- package/dist/commonjs/emailClient.js.map +1 -0
- package/dist/commonjs/generated/src/emailRestApiClient.d.ts +17 -0
- package/dist/commonjs/generated/src/emailRestApiClient.d.ts.map +1 -0
- package/dist/commonjs/generated/src/emailRestApiClient.js +74 -0
- package/dist/commonjs/generated/src/emailRestApiClient.js.map +1 -0
- package/dist/commonjs/generated/src/index.d.ts +4 -0
- package/dist/commonjs/generated/src/index.d.ts.map +1 -0
- package/dist/commonjs/generated/src/index.js +16 -0
- package/dist/commonjs/generated/src/index.js.map +1 -0
- package/dist/commonjs/generated/src/lroImpl.d.ts +16 -0
- package/dist/commonjs/generated/src/lroImpl.d.ts.map +1 -0
- package/dist/commonjs/generated/src/lroImpl.js +29 -0
- package/dist/commonjs/generated/src/lroImpl.js.map +1 -0
- package/dist/commonjs/generated/src/models/index.d.ts +184 -0
- package/dist/commonjs/generated/src/models/index.d.ts.map +1 -0
- package/dist/commonjs/generated/src/models/index.js +25 -0
- package/dist/commonjs/generated/src/models/index.js.map +1 -0
- package/dist/commonjs/generated/src/models/mappers.d.ts +15 -0
- package/dist/commonjs/generated/src/models/mappers.d.ts.map +1 -0
- package/dist/commonjs/generated/src/models/mappers.js +388 -0
- package/dist/commonjs/generated/src/models/mappers.js.map +1 -0
- package/dist/commonjs/generated/src/models/parameters.d.ts +10 -0
- package/dist/commonjs/generated/src/models/parameters.d.ts.map +1 -0
- package/dist/commonjs/generated/src/models/parameters.js +88 -0
- package/dist/commonjs/generated/src/models/parameters.js.map +1 -0
- package/dist/commonjs/generated/src/operations/email.d.ts +33 -0
- package/dist/commonjs/generated/src/operations/email.d.ts.map +1 -0
- package/dist/commonjs/generated/src/operations/email.js +140 -0
- package/dist/commonjs/generated/src/operations/email.js.map +1 -0
- package/dist/commonjs/generated/src/operations/index.d.ts +2 -0
- package/dist/commonjs/generated/src/operations/index.d.ts.map +1 -0
- package/dist/commonjs/generated/src/operations/index.js +12 -0
- package/dist/commonjs/generated/src/operations/index.js.map +1 -0
- package/dist/commonjs/generated/src/operationsInterfaces/email.d.ts +25 -0
- package/dist/commonjs/generated/src/operationsInterfaces/email.d.ts.map +1 -0
- package/dist/commonjs/generated/src/operationsInterfaces/email.js +10 -0
- package/dist/commonjs/generated/src/operationsInterfaces/email.js.map +1 -0
- package/dist/commonjs/generated/src/operationsInterfaces/index.d.ts +2 -0
- package/dist/commonjs/generated/src/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/commonjs/generated/src/operationsInterfaces/index.js +12 -0
- package/dist/commonjs/generated/src/operationsInterfaces/index.js.map +1 -0
- package/dist/commonjs/index.d.ts +3 -0
- package/dist/commonjs/index.d.ts.map +1 -0
- package/dist/commonjs/index.js +8 -0
- package/dist/commonjs/index.js.map +1 -0
- package/dist/commonjs/logger.d.ts +5 -0
- package/dist/commonjs/logger.d.ts.map +1 -0
- package/dist/commonjs/logger.js +11 -0
- package/dist/commonjs/logger.js.map +1 -0
- package/dist/commonjs/models.d.ts +57 -0
- package/dist/commonjs/models.d.ts.map +1 -0
- package/dist/commonjs/models.js +8 -0
- package/dist/commonjs/models.js.map +1 -0
- package/dist/commonjs/package.json +3 -0
- package/dist/commonjs/tsdoc-metadata.json +11 -0
- package/dist/esm/emailClient.d.ts +31 -0
- package/dist/esm/emailClient.d.ts.map +1 -0
- package/dist/esm/emailClient.js +38 -0
- package/dist/esm/emailClient.js.map +1 -0
- package/dist/esm/generated/src/emailRestApiClient.d.ts +17 -0
- package/dist/esm/generated/src/emailRestApiClient.d.ts.map +1 -0
- package/dist/esm/generated/src/emailRestApiClient.js +69 -0
- package/dist/esm/generated/src/emailRestApiClient.js.map +1 -0
- package/dist/esm/generated/src/index.d.ts +4 -0
- package/dist/esm/generated/src/index.d.ts.map +1 -0
- package/dist/esm/generated/src/index.js +11 -0
- package/dist/esm/generated/src/index.js.map +1 -0
- package/dist/esm/generated/src/lroImpl.d.ts +16 -0
- package/dist/esm/generated/src/lroImpl.d.ts.map +1 -0
- package/dist/esm/generated/src/lroImpl.js +25 -0
- package/dist/esm/generated/src/lroImpl.js.map +1 -0
- package/dist/esm/generated/src/models/index.d.ts +184 -0
- package/dist/esm/generated/src/models/index.d.ts.map +1 -0
- package/dist/esm/generated/src/models/index.js +22 -0
- package/dist/esm/generated/src/models/index.js.map +1 -0
- package/dist/esm/generated/src/models/mappers.d.ts +15 -0
- package/dist/esm/generated/src/models/mappers.d.ts.map +1 -0
- package/dist/esm/generated/src/models/mappers.js +385 -0
- package/dist/esm/generated/src/models/mappers.js.map +1 -0
- package/dist/esm/generated/src/models/parameters.d.ts +10 -0
- package/dist/esm/generated/src/models/parameters.d.ts.map +1 -0
- package/dist/esm/generated/src/models/parameters.js +85 -0
- package/dist/esm/generated/src/models/parameters.js.map +1 -0
- package/dist/esm/generated/src/operations/email.d.ts +33 -0
- package/dist/esm/generated/src/operations/email.d.ts.map +1 -0
- package/dist/esm/generated/src/operations/email.js +135 -0
- package/dist/esm/generated/src/operations/email.js.map +1 -0
- package/dist/esm/generated/src/operations/index.d.ts +2 -0
- package/dist/esm/generated/src/operations/index.d.ts.map +1 -0
- package/dist/esm/generated/src/operations/index.js +9 -0
- package/dist/esm/generated/src/operations/index.js.map +1 -0
- package/dist/esm/generated/src/operationsInterfaces/email.d.ts +25 -0
- package/dist/esm/generated/src/operationsInterfaces/email.d.ts.map +1 -0
- package/{dist-esm/src/generated/src/operationsInterfaces/index.js → dist/esm/generated/src/operationsInterfaces/email.js} +2 -2
- package/dist/esm/generated/src/operationsInterfaces/email.js.map +1 -0
- package/dist/esm/generated/src/operationsInterfaces/index.d.ts +2 -0
- package/dist/esm/generated/src/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/esm/generated/src/operationsInterfaces/index.js +9 -0
- package/dist/esm/generated/src/operationsInterfaces/index.js.map +1 -0
- package/dist/esm/index.d.ts +3 -0
- package/dist/esm/index.d.ts.map +1 -0
- package/dist/esm/index.js +5 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/logger.d.ts +5 -0
- package/dist/esm/logger.d.ts.map +1 -0
- package/dist/esm/logger.js +8 -0
- package/dist/esm/logger.js.map +1 -0
- package/dist/esm/models.d.ts +57 -0
- package/dist/esm/models.d.ts.map +1 -0
- package/dist/esm/models.js +4 -0
- package/dist/esm/models.js.map +1 -0
- package/dist/esm/package.json +3 -0
- package/dist/react-native/emailClient.d.ts +31 -0
- package/dist/react-native/emailClient.d.ts.map +1 -0
- package/dist/react-native/emailClient.js +38 -0
- package/dist/react-native/emailClient.js.map +1 -0
- package/dist/react-native/generated/src/emailRestApiClient.d.ts +17 -0
- package/dist/react-native/generated/src/emailRestApiClient.d.ts.map +1 -0
- package/dist/react-native/generated/src/emailRestApiClient.js +69 -0
- package/dist/react-native/generated/src/emailRestApiClient.js.map +1 -0
- package/dist/react-native/generated/src/index.d.ts +4 -0
- package/dist/react-native/generated/src/index.d.ts.map +1 -0
- package/dist/react-native/generated/src/index.js +11 -0
- package/dist/react-native/generated/src/index.js.map +1 -0
- package/dist/react-native/generated/src/lroImpl.d.ts +16 -0
- package/dist/react-native/generated/src/lroImpl.d.ts.map +1 -0
- package/dist/react-native/generated/src/lroImpl.js +25 -0
- package/dist/react-native/generated/src/lroImpl.js.map +1 -0
- package/dist/react-native/generated/src/models/index.d.ts +184 -0
- package/dist/react-native/generated/src/models/index.d.ts.map +1 -0
- package/dist/react-native/generated/src/models/index.js +22 -0
- package/dist/react-native/generated/src/models/index.js.map +1 -0
- package/dist/react-native/generated/src/models/mappers.d.ts +15 -0
- package/dist/react-native/generated/src/models/mappers.d.ts.map +1 -0
- package/dist/react-native/generated/src/models/mappers.js +385 -0
- package/dist/react-native/generated/src/models/mappers.js.map +1 -0
- package/dist/react-native/generated/src/models/parameters.d.ts +10 -0
- package/dist/react-native/generated/src/models/parameters.d.ts.map +1 -0
- package/dist/react-native/generated/src/models/parameters.js +85 -0
- package/dist/react-native/generated/src/models/parameters.js.map +1 -0
- package/dist/react-native/generated/src/operations/email.d.ts +33 -0
- package/dist/react-native/generated/src/operations/email.d.ts.map +1 -0
- package/dist/react-native/generated/src/operations/email.js +135 -0
- package/dist/react-native/generated/src/operations/email.js.map +1 -0
- package/dist/react-native/generated/src/operations/index.d.ts +2 -0
- package/dist/react-native/generated/src/operations/index.d.ts.map +1 -0
- package/dist/react-native/generated/src/operations/index.js +9 -0
- package/dist/react-native/generated/src/operations/index.js.map +1 -0
- package/dist/react-native/generated/src/operationsInterfaces/email.d.ts +25 -0
- package/dist/react-native/generated/src/operationsInterfaces/email.d.ts.map +1 -0
- package/{dist-esm/src/generated/src/operations/index.js → dist/react-native/generated/src/operationsInterfaces/email.js} +2 -2
- package/dist/react-native/generated/src/operationsInterfaces/email.js.map +1 -0
- package/dist/react-native/generated/src/operationsInterfaces/index.d.ts +2 -0
- package/dist/react-native/generated/src/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/react-native/generated/src/operationsInterfaces/index.js +9 -0
- package/dist/react-native/generated/src/operationsInterfaces/index.js.map +1 -0
- package/dist/react-native/index.d.ts +3 -0
- package/dist/react-native/index.d.ts.map +1 -0
- package/dist/react-native/index.js +5 -0
- package/dist/react-native/index.js.map +1 -0
- package/dist/react-native/logger.d.ts +5 -0
- package/dist/react-native/logger.d.ts.map +1 -0
- package/dist/react-native/logger.js +8 -0
- package/dist/react-native/logger.js.map +1 -0
- package/dist/react-native/models.d.ts +57 -0
- package/dist/react-native/models.d.ts.map +1 -0
- package/dist/react-native/models.js +4 -0
- package/dist/react-native/models.js.map +1 -0
- package/dist/react-native/package.json +3 -0
- package/package.json +64 -41
- package/dist/index.js +0 -802
- package/dist/index.js.map +0 -1
- package/dist-esm/samples-dev/sendEmailMultipleRecipients.js +0 -46
- package/dist-esm/samples-dev/sendEmailMultipleRecipients.js.map +0 -1
- package/dist-esm/samples-dev/sendEmailSingleRecipient.js +0 -40
- package/dist-esm/samples-dev/sendEmailSingleRecipient.js.map +0 -1
- package/dist-esm/samples-dev/sendEmailWithAttachments.js +0 -47
- package/dist-esm/samples-dev/sendEmailWithAttachments.js.map +0 -1
- package/dist-esm/samples-dev/sendEmailWithInlineAttachments.js +0 -48
- package/dist-esm/samples-dev/sendEmailWithInlineAttachments.js.map +0 -1
- package/dist-esm/src/emailClient.js.map +0 -1
- package/dist-esm/src/generated/src/emailRestApiClient.js.map +0 -1
- package/dist-esm/src/generated/src/index.js.map +0 -1
- package/dist-esm/src/generated/src/operations/email.js.map +0 -1
- package/dist-esm/src/generated/src/operationsInterfaces/email.js.map +0 -1
- package/dist-esm/src/index.js +0 -5
- package/dist-esm/src/index.js.map +0 -1
- package/dist-esm/src/models.js +0 -4
- package/dist-esm/src/models.js.map +0 -1
- package/dist-esm/test/public/emailClient.spec.js +0 -138
- package/dist-esm/test/public/emailClient.spec.js.map +0 -1
- package/dist-esm/test/public/utils/recordedClient.js +0 -59
- package/dist-esm/test/public/utils/recordedClient.js.map +0 -1
- /package/{dist-esm/src → dist/browser}/generated/src/lroImpl.js +0 -0
- /package/{dist-esm/src → dist/browser}/generated/src/lroImpl.js.map +0 -0
- /package/{dist-esm/src → dist/browser}/generated/src/models/index.js +0 -0
- /package/{dist-esm/src → dist/browser}/generated/src/models/index.js.map +0 -0
- /package/{dist-esm/src → dist/browser}/generated/src/models/mappers.js +0 -0
- /package/{dist-esm/src → dist/browser}/generated/src/models/mappers.js.map +0 -0
- /package/{dist-esm/src → dist/browser}/generated/src/operationsInterfaces/email.js +0 -0
- /package/{dist-esm/src → dist/browser}/logger.js +0 -0
- /package/{dist-esm/src → dist/browser}/logger.js.map +0 -0
package/dist/index.js
DELETED
@@ -1,802 +0,0 @@
|
|
1
|
-
'use strict';
|
2
|
-
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
4
|
-
|
5
|
-
var coreAuth = require('@azure/core-auth');
|
6
|
-
var communicationCommon = require('@azure/communication-common');
|
7
|
-
var coreClient = require('@azure/core-client');
|
8
|
-
var coreLro = require('@azure/core-lro');
|
9
|
-
var tslib = require('tslib');
|
10
|
-
var logger$1 = require('@azure/logger');
|
11
|
-
|
12
|
-
function _interopNamespaceDefault(e) {
|
13
|
-
var n = Object.create(null);
|
14
|
-
if (e) {
|
15
|
-
Object.keys(e).forEach(function (k) {
|
16
|
-
if (k !== 'default') {
|
17
|
-
var d = Object.getOwnPropertyDescriptor(e, k);
|
18
|
-
Object.defineProperty(n, k, d.get ? d : {
|
19
|
-
enumerable: true,
|
20
|
-
get: function () { return e[k]; }
|
21
|
-
});
|
22
|
-
}
|
23
|
-
});
|
24
|
-
}
|
25
|
-
n.default = e;
|
26
|
-
return Object.freeze(n);
|
27
|
-
}
|
28
|
-
|
29
|
-
var coreClient__namespace = /*#__PURE__*/_interopNamespaceDefault(coreClient);
|
30
|
-
|
31
|
-
/*
|
32
|
-
* Copyright (c) Microsoft Corporation.
|
33
|
-
* Licensed under the MIT License.
|
34
|
-
*
|
35
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
36
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
37
|
-
*/
|
38
|
-
const EmailSendResult = {
|
39
|
-
type: {
|
40
|
-
name: "Composite",
|
41
|
-
className: "EmailSendResult",
|
42
|
-
modelProperties: {
|
43
|
-
id: {
|
44
|
-
serializedName: "id",
|
45
|
-
required: true,
|
46
|
-
type: {
|
47
|
-
name: "String"
|
48
|
-
}
|
49
|
-
},
|
50
|
-
status: {
|
51
|
-
serializedName: "status",
|
52
|
-
required: true,
|
53
|
-
type: {
|
54
|
-
name: "String"
|
55
|
-
}
|
56
|
-
},
|
57
|
-
error: {
|
58
|
-
serializedName: "error",
|
59
|
-
type: {
|
60
|
-
name: "Composite",
|
61
|
-
className: "ErrorDetail"
|
62
|
-
}
|
63
|
-
}
|
64
|
-
}
|
65
|
-
}
|
66
|
-
};
|
67
|
-
const ErrorDetail = {
|
68
|
-
type: {
|
69
|
-
name: "Composite",
|
70
|
-
className: "ErrorDetail",
|
71
|
-
modelProperties: {
|
72
|
-
code: {
|
73
|
-
serializedName: "code",
|
74
|
-
readOnly: true,
|
75
|
-
type: {
|
76
|
-
name: "String"
|
77
|
-
}
|
78
|
-
},
|
79
|
-
message: {
|
80
|
-
serializedName: "message",
|
81
|
-
readOnly: true,
|
82
|
-
type: {
|
83
|
-
name: "String"
|
84
|
-
}
|
85
|
-
},
|
86
|
-
target: {
|
87
|
-
serializedName: "target",
|
88
|
-
readOnly: true,
|
89
|
-
type: {
|
90
|
-
name: "String"
|
91
|
-
}
|
92
|
-
},
|
93
|
-
details: {
|
94
|
-
serializedName: "details",
|
95
|
-
readOnly: true,
|
96
|
-
type: {
|
97
|
-
name: "Sequence",
|
98
|
-
element: {
|
99
|
-
type: {
|
100
|
-
name: "Composite",
|
101
|
-
className: "ErrorDetail"
|
102
|
-
}
|
103
|
-
}
|
104
|
-
}
|
105
|
-
},
|
106
|
-
additionalInfo: {
|
107
|
-
serializedName: "additionalInfo",
|
108
|
-
readOnly: true,
|
109
|
-
type: {
|
110
|
-
name: "Sequence",
|
111
|
-
element: {
|
112
|
-
type: {
|
113
|
-
name: "Composite",
|
114
|
-
className: "ErrorAdditionalInfo"
|
115
|
-
}
|
116
|
-
}
|
117
|
-
}
|
118
|
-
}
|
119
|
-
}
|
120
|
-
}
|
121
|
-
};
|
122
|
-
const ErrorAdditionalInfo = {
|
123
|
-
type: {
|
124
|
-
name: "Composite",
|
125
|
-
className: "ErrorAdditionalInfo",
|
126
|
-
modelProperties: {
|
127
|
-
type: {
|
128
|
-
serializedName: "type",
|
129
|
-
readOnly: true,
|
130
|
-
type: {
|
131
|
-
name: "String"
|
132
|
-
}
|
133
|
-
},
|
134
|
-
info: {
|
135
|
-
serializedName: "info",
|
136
|
-
readOnly: true,
|
137
|
-
type: {
|
138
|
-
name: "Dictionary",
|
139
|
-
value: { type: { name: "any" } }
|
140
|
-
}
|
141
|
-
}
|
142
|
-
}
|
143
|
-
}
|
144
|
-
};
|
145
|
-
const ErrorResponse = {
|
146
|
-
type: {
|
147
|
-
name: "Composite",
|
148
|
-
className: "ErrorResponse",
|
149
|
-
modelProperties: {
|
150
|
-
error: {
|
151
|
-
serializedName: "error",
|
152
|
-
type: {
|
153
|
-
name: "Composite",
|
154
|
-
className: "ErrorDetail"
|
155
|
-
}
|
156
|
-
}
|
157
|
-
}
|
158
|
-
}
|
159
|
-
};
|
160
|
-
const EmailMessage = {
|
161
|
-
type: {
|
162
|
-
name: "Composite",
|
163
|
-
className: "EmailMessage",
|
164
|
-
modelProperties: {
|
165
|
-
headers: {
|
166
|
-
serializedName: "headers",
|
167
|
-
type: {
|
168
|
-
name: "Dictionary",
|
169
|
-
value: { type: { name: "String" } }
|
170
|
-
}
|
171
|
-
},
|
172
|
-
senderAddress: {
|
173
|
-
serializedName: "senderAddress",
|
174
|
-
required: true,
|
175
|
-
type: {
|
176
|
-
name: "String"
|
177
|
-
}
|
178
|
-
},
|
179
|
-
content: {
|
180
|
-
serializedName: "content",
|
181
|
-
type: {
|
182
|
-
name: "Composite",
|
183
|
-
className: "EmailContent"
|
184
|
-
}
|
185
|
-
},
|
186
|
-
recipients: {
|
187
|
-
serializedName: "recipients",
|
188
|
-
type: {
|
189
|
-
name: "Composite",
|
190
|
-
className: "EmailRecipients"
|
191
|
-
}
|
192
|
-
},
|
193
|
-
attachments: {
|
194
|
-
serializedName: "attachments",
|
195
|
-
type: {
|
196
|
-
name: "Sequence",
|
197
|
-
element: {
|
198
|
-
type: {
|
199
|
-
name: "Composite",
|
200
|
-
className: "EmailAttachment"
|
201
|
-
}
|
202
|
-
}
|
203
|
-
}
|
204
|
-
},
|
205
|
-
replyTo: {
|
206
|
-
serializedName: "replyTo",
|
207
|
-
type: {
|
208
|
-
name: "Sequence",
|
209
|
-
element: {
|
210
|
-
type: {
|
211
|
-
name: "Composite",
|
212
|
-
className: "EmailAddress"
|
213
|
-
}
|
214
|
-
}
|
215
|
-
}
|
216
|
-
},
|
217
|
-
disableUserEngagementTracking: {
|
218
|
-
serializedName: "userEngagementTrackingDisabled",
|
219
|
-
type: {
|
220
|
-
name: "Boolean"
|
221
|
-
}
|
222
|
-
}
|
223
|
-
}
|
224
|
-
}
|
225
|
-
};
|
226
|
-
const EmailContent = {
|
227
|
-
type: {
|
228
|
-
name: "Composite",
|
229
|
-
className: "EmailContent",
|
230
|
-
modelProperties: {
|
231
|
-
subject: {
|
232
|
-
serializedName: "subject",
|
233
|
-
required: true,
|
234
|
-
type: {
|
235
|
-
name: "String"
|
236
|
-
}
|
237
|
-
},
|
238
|
-
plainText: {
|
239
|
-
serializedName: "plainText",
|
240
|
-
type: {
|
241
|
-
name: "String"
|
242
|
-
}
|
243
|
-
},
|
244
|
-
html: {
|
245
|
-
serializedName: "html",
|
246
|
-
type: {
|
247
|
-
name: "String"
|
248
|
-
}
|
249
|
-
}
|
250
|
-
}
|
251
|
-
}
|
252
|
-
};
|
253
|
-
const EmailRecipients = {
|
254
|
-
type: {
|
255
|
-
name: "Composite",
|
256
|
-
className: "EmailRecipients",
|
257
|
-
modelProperties: {
|
258
|
-
to: {
|
259
|
-
serializedName: "to",
|
260
|
-
type: {
|
261
|
-
name: "Sequence",
|
262
|
-
element: {
|
263
|
-
type: {
|
264
|
-
name: "Composite",
|
265
|
-
className: "EmailAddress"
|
266
|
-
}
|
267
|
-
}
|
268
|
-
}
|
269
|
-
},
|
270
|
-
cc: {
|
271
|
-
serializedName: "cc",
|
272
|
-
type: {
|
273
|
-
name: "Sequence",
|
274
|
-
element: {
|
275
|
-
type: {
|
276
|
-
name: "Composite",
|
277
|
-
className: "EmailAddress"
|
278
|
-
}
|
279
|
-
}
|
280
|
-
}
|
281
|
-
},
|
282
|
-
bcc: {
|
283
|
-
serializedName: "bcc",
|
284
|
-
type: {
|
285
|
-
name: "Sequence",
|
286
|
-
element: {
|
287
|
-
type: {
|
288
|
-
name: "Composite",
|
289
|
-
className: "EmailAddress"
|
290
|
-
}
|
291
|
-
}
|
292
|
-
}
|
293
|
-
}
|
294
|
-
}
|
295
|
-
}
|
296
|
-
};
|
297
|
-
const EmailAddress = {
|
298
|
-
type: {
|
299
|
-
name: "Composite",
|
300
|
-
className: "EmailAddress",
|
301
|
-
modelProperties: {
|
302
|
-
address: {
|
303
|
-
serializedName: "address",
|
304
|
-
required: true,
|
305
|
-
type: {
|
306
|
-
name: "String"
|
307
|
-
}
|
308
|
-
},
|
309
|
-
displayName: {
|
310
|
-
serializedName: "displayName",
|
311
|
-
type: {
|
312
|
-
name: "String"
|
313
|
-
}
|
314
|
-
}
|
315
|
-
}
|
316
|
-
}
|
317
|
-
};
|
318
|
-
const EmailAttachment = {
|
319
|
-
type: {
|
320
|
-
name: "Composite",
|
321
|
-
className: "EmailAttachment",
|
322
|
-
modelProperties: {
|
323
|
-
name: {
|
324
|
-
serializedName: "name",
|
325
|
-
required: true,
|
326
|
-
type: {
|
327
|
-
name: "String"
|
328
|
-
}
|
329
|
-
},
|
330
|
-
contentType: {
|
331
|
-
serializedName: "contentType",
|
332
|
-
required: true,
|
333
|
-
type: {
|
334
|
-
name: "String"
|
335
|
-
}
|
336
|
-
},
|
337
|
-
contentInBase64: {
|
338
|
-
serializedName: "contentInBase64",
|
339
|
-
required: true,
|
340
|
-
type: {
|
341
|
-
name: "String"
|
342
|
-
}
|
343
|
-
},
|
344
|
-
contentId: {
|
345
|
-
serializedName: "contentId",
|
346
|
-
type: {
|
347
|
-
name: "String"
|
348
|
-
}
|
349
|
-
}
|
350
|
-
}
|
351
|
-
}
|
352
|
-
};
|
353
|
-
const EmailGetSendResultHeaders = {
|
354
|
-
type: {
|
355
|
-
name: "Composite",
|
356
|
-
className: "EmailGetSendResultHeaders",
|
357
|
-
modelProperties: {
|
358
|
-
retryAfter: {
|
359
|
-
serializedName: "retry-after",
|
360
|
-
type: {
|
361
|
-
name: "Number"
|
362
|
-
}
|
363
|
-
}
|
364
|
-
}
|
365
|
-
}
|
366
|
-
};
|
367
|
-
const EmailGetSendResultExceptionHeaders = {
|
368
|
-
type: {
|
369
|
-
name: "Composite",
|
370
|
-
className: "EmailGetSendResultExceptionHeaders",
|
371
|
-
modelProperties: {
|
372
|
-
xMsErrorCode: {
|
373
|
-
serializedName: "x-ms-error-code",
|
374
|
-
type: {
|
375
|
-
name: "String"
|
376
|
-
}
|
377
|
-
}
|
378
|
-
}
|
379
|
-
}
|
380
|
-
};
|
381
|
-
const EmailSendHeaders = {
|
382
|
-
type: {
|
383
|
-
name: "Composite",
|
384
|
-
className: "EmailSendHeaders",
|
385
|
-
modelProperties: {
|
386
|
-
operationLocation: {
|
387
|
-
serializedName: "operation-location",
|
388
|
-
type: {
|
389
|
-
name: "String"
|
390
|
-
}
|
391
|
-
},
|
392
|
-
retryAfter: {
|
393
|
-
serializedName: "retry-after",
|
394
|
-
type: {
|
395
|
-
name: "Number"
|
396
|
-
}
|
397
|
-
}
|
398
|
-
}
|
399
|
-
}
|
400
|
-
};
|
401
|
-
const EmailSendExceptionHeaders = {
|
402
|
-
type: {
|
403
|
-
name: "Composite",
|
404
|
-
className: "EmailSendExceptionHeaders",
|
405
|
-
modelProperties: {
|
406
|
-
xMsErrorCode: {
|
407
|
-
serializedName: "x-ms-error-code",
|
408
|
-
type: {
|
409
|
-
name: "String"
|
410
|
-
}
|
411
|
-
}
|
412
|
-
}
|
413
|
-
}
|
414
|
-
};
|
415
|
-
|
416
|
-
var Mappers = /*#__PURE__*/Object.freeze({
|
417
|
-
__proto__: null,
|
418
|
-
EmailAddress: EmailAddress,
|
419
|
-
EmailAttachment: EmailAttachment,
|
420
|
-
EmailContent: EmailContent,
|
421
|
-
EmailGetSendResultExceptionHeaders: EmailGetSendResultExceptionHeaders,
|
422
|
-
EmailGetSendResultHeaders: EmailGetSendResultHeaders,
|
423
|
-
EmailMessage: EmailMessage,
|
424
|
-
EmailRecipients: EmailRecipients,
|
425
|
-
EmailSendExceptionHeaders: EmailSendExceptionHeaders,
|
426
|
-
EmailSendHeaders: EmailSendHeaders,
|
427
|
-
EmailSendResult: EmailSendResult,
|
428
|
-
ErrorAdditionalInfo: ErrorAdditionalInfo,
|
429
|
-
ErrorDetail: ErrorDetail,
|
430
|
-
ErrorResponse: ErrorResponse
|
431
|
-
});
|
432
|
-
|
433
|
-
/*
|
434
|
-
* Copyright (c) Microsoft Corporation.
|
435
|
-
* Licensed under the MIT License.
|
436
|
-
*
|
437
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
438
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
439
|
-
*/
|
440
|
-
const accept = {
|
441
|
-
parameterPath: "accept",
|
442
|
-
mapper: {
|
443
|
-
defaultValue: "application/json",
|
444
|
-
isConstant: true,
|
445
|
-
serializedName: "Accept",
|
446
|
-
type: {
|
447
|
-
name: "String"
|
448
|
-
}
|
449
|
-
}
|
450
|
-
};
|
451
|
-
const endpoint = {
|
452
|
-
parameterPath: "endpoint",
|
453
|
-
mapper: {
|
454
|
-
serializedName: "endpoint",
|
455
|
-
required: true,
|
456
|
-
type: {
|
457
|
-
name: "String"
|
458
|
-
}
|
459
|
-
},
|
460
|
-
skipEncoding: true
|
461
|
-
};
|
462
|
-
const operationId = {
|
463
|
-
parameterPath: "operationId",
|
464
|
-
mapper: {
|
465
|
-
serializedName: "operationId",
|
466
|
-
required: true,
|
467
|
-
type: {
|
468
|
-
name: "String"
|
469
|
-
}
|
470
|
-
}
|
471
|
-
};
|
472
|
-
const apiVersion = {
|
473
|
-
parameterPath: "apiVersion",
|
474
|
-
mapper: {
|
475
|
-
defaultValue: "2024-07-01-preview",
|
476
|
-
isConstant: true,
|
477
|
-
serializedName: "api-version",
|
478
|
-
type: {
|
479
|
-
name: "String"
|
480
|
-
}
|
481
|
-
}
|
482
|
-
};
|
483
|
-
const contentType = {
|
484
|
-
parameterPath: ["options", "contentType"],
|
485
|
-
mapper: {
|
486
|
-
defaultValue: "application/json",
|
487
|
-
isConstant: true,
|
488
|
-
serializedName: "Content-Type",
|
489
|
-
type: {
|
490
|
-
name: "String"
|
491
|
-
}
|
492
|
-
}
|
493
|
-
};
|
494
|
-
const message = {
|
495
|
-
parameterPath: "message",
|
496
|
-
mapper: EmailMessage
|
497
|
-
};
|
498
|
-
const operationId1 = {
|
499
|
-
parameterPath: ["options", "operationId"],
|
500
|
-
mapper: {
|
501
|
-
serializedName: "Operation-Id",
|
502
|
-
type: {
|
503
|
-
name: "Uuid"
|
504
|
-
}
|
505
|
-
}
|
506
|
-
};
|
507
|
-
const clientRequestId = {
|
508
|
-
parameterPath: ["options", "clientRequestId"],
|
509
|
-
mapper: {
|
510
|
-
serializedName: "x-ms-client-request-id",
|
511
|
-
type: {
|
512
|
-
name: "Uuid"
|
513
|
-
}
|
514
|
-
}
|
515
|
-
};
|
516
|
-
|
517
|
-
/*
|
518
|
-
* Copyright (c) Microsoft Corporation.
|
519
|
-
* Licensed under the MIT License.
|
520
|
-
*
|
521
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
522
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
523
|
-
*/
|
524
|
-
class LroImpl {
|
525
|
-
constructor(sendOperationFn, args, spec, requestPath = spec.path, requestMethod = spec.httpMethod) {
|
526
|
-
this.sendOperationFn = sendOperationFn;
|
527
|
-
this.args = args;
|
528
|
-
this.spec = spec;
|
529
|
-
this.requestPath = requestPath;
|
530
|
-
this.requestMethod = requestMethod;
|
531
|
-
}
|
532
|
-
async sendInitialRequest() {
|
533
|
-
return this.sendOperationFn(this.args, this.spec);
|
534
|
-
}
|
535
|
-
async sendPollRequest(path) {
|
536
|
-
const _a = this.spec, restSpec = tslib.__rest(_a, ["requestBody"]);
|
537
|
-
return this.sendOperationFn(this.args, Object.assign(Object.assign({}, restSpec), { path, httpMethod: "GET" }));
|
538
|
-
}
|
539
|
-
}
|
540
|
-
|
541
|
-
/*
|
542
|
-
* Copyright (c) Microsoft Corporation.
|
543
|
-
* Licensed under the MIT License.
|
544
|
-
*
|
545
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
546
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
547
|
-
*/
|
548
|
-
/** Class containing Email operations. */
|
549
|
-
class EmailImpl {
|
550
|
-
/**
|
551
|
-
* Initialize a new instance of the class Email class.
|
552
|
-
* @param client Reference to the service client
|
553
|
-
*/
|
554
|
-
constructor(client) {
|
555
|
-
this.client = client;
|
556
|
-
}
|
557
|
-
/**
|
558
|
-
* Gets the status of the email send operation.
|
559
|
-
* @param operationId ID of the long running operation (GUID) returned from a previous call to send
|
560
|
-
* email
|
561
|
-
* @param options The options parameters.
|
562
|
-
*/
|
563
|
-
getSendResult(operationId, options) {
|
564
|
-
return this.client.sendOperationRequest({ operationId, options }, getSendResultOperationSpec);
|
565
|
-
}
|
566
|
-
/**
|
567
|
-
* Queues an email message to be sent to one or more recipients
|
568
|
-
* @param message Message payload for sending an email
|
569
|
-
* @param options The options parameters.
|
570
|
-
*/
|
571
|
-
async beginSend(message, options) {
|
572
|
-
const directSendOperation = async (args, spec) => {
|
573
|
-
return this.client.sendOperationRequest(args, spec);
|
574
|
-
};
|
575
|
-
const sendOperation = async (args, spec) => {
|
576
|
-
var _a;
|
577
|
-
let currentRawResponse = undefined;
|
578
|
-
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
579
|
-
const callback = (rawResponse, flatResponse) => {
|
580
|
-
currentRawResponse = rawResponse;
|
581
|
-
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
582
|
-
};
|
583
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
584
|
-
const flatResponse = await directSendOperation(updatedArgs, spec);
|
585
|
-
return {
|
586
|
-
flatResponse,
|
587
|
-
rawResponse: {
|
588
|
-
statusCode: currentRawResponse.status,
|
589
|
-
body: currentRawResponse.parsedBody,
|
590
|
-
headers: currentRawResponse.headers.toJSON()
|
591
|
-
}
|
592
|
-
};
|
593
|
-
};
|
594
|
-
const lro = new LroImpl(sendOperation, { message, options }, sendOperationSpec);
|
595
|
-
const poller = new coreLro.LroEngine(lro, {
|
596
|
-
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
597
|
-
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
598
|
-
lroResourceLocationConfig: "azure-async-operation"
|
599
|
-
});
|
600
|
-
await poller.poll();
|
601
|
-
return poller;
|
602
|
-
}
|
603
|
-
/**
|
604
|
-
* Queues an email message to be sent to one or more recipients
|
605
|
-
* @param message Message payload for sending an email
|
606
|
-
* @param options The options parameters.
|
607
|
-
*/
|
608
|
-
async beginSendAndWait(message, options) {
|
609
|
-
const poller = await this.beginSend(message, options);
|
610
|
-
return poller.pollUntilDone();
|
611
|
-
}
|
612
|
-
}
|
613
|
-
// Operation Specifications
|
614
|
-
const serializer = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
615
|
-
const getSendResultOperationSpec = {
|
616
|
-
path: "/emails/operations/{operationId}",
|
617
|
-
httpMethod: "GET",
|
618
|
-
responses: {
|
619
|
-
200: {
|
620
|
-
bodyMapper: EmailSendResult,
|
621
|
-
headersMapper: EmailGetSendResultHeaders
|
622
|
-
},
|
623
|
-
default: {
|
624
|
-
bodyMapper: ErrorResponse,
|
625
|
-
headersMapper: EmailGetSendResultExceptionHeaders
|
626
|
-
}
|
627
|
-
},
|
628
|
-
queryParameters: [apiVersion],
|
629
|
-
urlParameters: [endpoint, operationId],
|
630
|
-
headerParameters: [accept],
|
631
|
-
serializer
|
632
|
-
};
|
633
|
-
const sendOperationSpec = {
|
634
|
-
path: "/emails:send",
|
635
|
-
httpMethod: "POST",
|
636
|
-
responses: {
|
637
|
-
200: {
|
638
|
-
bodyMapper: EmailSendResult,
|
639
|
-
headersMapper: EmailSendHeaders
|
640
|
-
},
|
641
|
-
201: {
|
642
|
-
bodyMapper: EmailSendResult,
|
643
|
-
headersMapper: EmailSendHeaders
|
644
|
-
},
|
645
|
-
202: {
|
646
|
-
bodyMapper: EmailSendResult,
|
647
|
-
headersMapper: EmailSendHeaders
|
648
|
-
},
|
649
|
-
204: {
|
650
|
-
bodyMapper: EmailSendResult,
|
651
|
-
headersMapper: EmailSendHeaders
|
652
|
-
},
|
653
|
-
default: {
|
654
|
-
bodyMapper: ErrorResponse,
|
655
|
-
headersMapper: EmailSendExceptionHeaders
|
656
|
-
}
|
657
|
-
},
|
658
|
-
requestBody: message,
|
659
|
-
queryParameters: [apiVersion],
|
660
|
-
urlParameters: [endpoint],
|
661
|
-
headerParameters: [
|
662
|
-
accept,
|
663
|
-
contentType,
|
664
|
-
operationId1,
|
665
|
-
clientRequestId
|
666
|
-
],
|
667
|
-
mediaType: "json",
|
668
|
-
serializer
|
669
|
-
};
|
670
|
-
|
671
|
-
/*
|
672
|
-
* Copyright (c) Microsoft Corporation.
|
673
|
-
* Licensed under the MIT License.
|
674
|
-
*
|
675
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
676
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
677
|
-
*/
|
678
|
-
class EmailRestApiClient extends coreClient__namespace.ServiceClient {
|
679
|
-
/**
|
680
|
-
* Initializes a new instance of the EmailRestApiClient class.
|
681
|
-
* @param endpoint The communication resource, for example https://my-resource.communication.azure.com
|
682
|
-
* @param options The parameter options
|
683
|
-
*/
|
684
|
-
constructor(endpoint, options) {
|
685
|
-
var _a, _b;
|
686
|
-
if (endpoint === undefined) {
|
687
|
-
throw new Error("'endpoint' cannot be null");
|
688
|
-
}
|
689
|
-
// Initializing default values for options
|
690
|
-
if (!options) {
|
691
|
-
options = {};
|
692
|
-
}
|
693
|
-
const defaults = {
|
694
|
-
requestContentType: "application/json; charset=utf-8"
|
695
|
-
};
|
696
|
-
const packageDetails = `azsdk-js-communication-email/1.0.0`;
|
697
|
-
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
698
|
-
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
699
|
-
: `${packageDetails}`;
|
700
|
-
const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
|
701
|
-
userAgentPrefix
|
702
|
-
}, baseUri: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "{endpoint}" });
|
703
|
-
super(optionsWithDefaults);
|
704
|
-
// Parameter assignments
|
705
|
-
this.endpoint = endpoint;
|
706
|
-
// Assigning values to Constant parameters
|
707
|
-
this.apiVersion = options.apiVersion || "2024-07-01-preview";
|
708
|
-
this.email = new EmailImpl(this);
|
709
|
-
this.addCustomApiVersionPolicy(options.apiVersion);
|
710
|
-
}
|
711
|
-
/** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
|
712
|
-
addCustomApiVersionPolicy(apiVersion) {
|
713
|
-
if (!apiVersion) {
|
714
|
-
return;
|
715
|
-
}
|
716
|
-
const apiVersionPolicy = {
|
717
|
-
name: "CustomApiVersionPolicy",
|
718
|
-
async sendRequest(request, next) {
|
719
|
-
const param = request.url.split("?");
|
720
|
-
if (param.length > 1) {
|
721
|
-
const newParams = param[1].split("&").map((item) => {
|
722
|
-
if (item.indexOf("api-version") > -1) {
|
723
|
-
return "api-version=" + apiVersion;
|
724
|
-
}
|
725
|
-
else {
|
726
|
-
return item;
|
727
|
-
}
|
728
|
-
});
|
729
|
-
request.url = param[0] + "?" + newParams.join("&");
|
730
|
-
}
|
731
|
-
return next(request);
|
732
|
-
}
|
733
|
-
};
|
734
|
-
this.pipeline.addPolicy(apiVersionPolicy);
|
735
|
-
}
|
736
|
-
}
|
737
|
-
|
738
|
-
// Copyright (c) Microsoft Corporation.
|
739
|
-
// Licensed under the MIT License.
|
740
|
-
/**
|
741
|
-
* The \@azure/logger configuration for this package.
|
742
|
-
*/
|
743
|
-
const logger = logger$1.createClientLogger("communication-email");
|
744
|
-
|
745
|
-
// Copyright (c) Microsoft Corporation.
|
746
|
-
// Licensed under the MIT License.
|
747
|
-
/**
|
748
|
-
* Checks whether the type of a value is EmailClientOptions or not.
|
749
|
-
*
|
750
|
-
* @param options - The value being checked.
|
751
|
-
*/
|
752
|
-
const isEmailClientOptions = (options) => !!options && !coreAuth.isTokenCredential(options) && !communicationCommon.isKeyCredential(options);
|
753
|
-
/**
|
754
|
-
* The Email service client.
|
755
|
-
*/
|
756
|
-
class EmailClient {
|
757
|
-
constructor(connectionStringOrUrl, credentialOrOptions, maybeOptions = {}) {
|
758
|
-
const { url, credential } = communicationCommon.parseClientArguments(connectionStringOrUrl, credentialOrOptions);
|
759
|
-
const options = isEmailClientOptions(credentialOrOptions) ? credentialOrOptions : maybeOptions;
|
760
|
-
const internalPipelineOptions = Object.assign(Object.assign({}, options), {
|
761
|
-
loggingOptions: {
|
762
|
-
logger: logger.info,
|
763
|
-
},
|
764
|
-
});
|
765
|
-
const authPolicy = communicationCommon.createCommunicationAuthPolicy(credential);
|
766
|
-
this.generatedClient = new EmailRestApiClient(url, internalPipelineOptions);
|
767
|
-
this.generatedClient.pipeline.addPolicy(authPolicy);
|
768
|
-
}
|
769
|
-
/**
|
770
|
-
* Queues an email message to be sent to one or more recipients
|
771
|
-
* @param message - Message payload for sending an email
|
772
|
-
* @param options - The options parameters.
|
773
|
-
*/
|
774
|
-
beginSend(message, options) {
|
775
|
-
return this.generatedClient.email.beginSend(message, options);
|
776
|
-
}
|
777
|
-
}
|
778
|
-
|
779
|
-
/*
|
780
|
-
* Copyright (c) Microsoft Corporation.
|
781
|
-
* Licensed under the MIT License.
|
782
|
-
*
|
783
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
784
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
785
|
-
*/
|
786
|
-
/** Known values of {@link EmailSendStatus} that the service accepts. */
|
787
|
-
exports.KnownEmailSendStatus = void 0;
|
788
|
-
(function (KnownEmailSendStatus) {
|
789
|
-
/** NotStarted */
|
790
|
-
KnownEmailSendStatus["NotStarted"] = "NotStarted";
|
791
|
-
/** Running */
|
792
|
-
KnownEmailSendStatus["Running"] = "Running";
|
793
|
-
/** Succeeded */
|
794
|
-
KnownEmailSendStatus["Succeeded"] = "Succeeded";
|
795
|
-
/** Failed */
|
796
|
-
KnownEmailSendStatus["Failed"] = "Failed";
|
797
|
-
/** Canceled */
|
798
|
-
KnownEmailSendStatus["Canceled"] = "Canceled";
|
799
|
-
})(exports.KnownEmailSendStatus || (exports.KnownEmailSendStatus = {}));
|
800
|
-
|
801
|
-
exports.EmailClient = EmailClient;
|
802
|
-
//# sourceMappingURL=index.js.map
|