tencentcloud-sdk-nodejs-intl-en 3.0.409 → 3.0.412
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/tencentcloud/batch/v20170312/batch_client.js +0 -14
- package/tencentcloud/batch/v20170312/models.js +0 -206
- package/tencentcloud/common/sdk_version.js +1 -1
- package/tencentcloud/es/v20180416/es_client.js +13 -0
- package/tencentcloud/es/v20180416/models.js +100 -0
- package/tencentcloud/live/v20180801/live_client.js +2 -29
- package/tencentcloud/live/v20180801/models.js +68 -476
- package/tencentcloud/ocr/v20181119/models.js +14 -0
- package/tencentcloud/privatedns/v20201028/models.js +199 -808
- package/tencentcloud/privatedns/v20201028/privatedns_client.js +26 -92
- package/tencentcloud/redis/v20180412/models.js +838 -8348
- package/tencentcloud/redis/v20180412/redis_client.js +85 -819
- package/tencentcloud/ses/v20201002/models.js +66 -619
- package/tencentcloud/ses/v20201002/ses_client.js +109 -163
- package/tencentcloud/vpc/v20170312/models.js +288 -1824
- package/tencentcloud/vpc/v20170312/vpc_client.js +58 -245
|
@@ -16,141 +16,6 @@
|
|
|
16
16
|
*/
|
|
17
17
|
const AbstractModel = require("../../common/abstract_model");
|
|
18
18
|
|
|
19
|
-
/**
|
|
20
|
-
* BatchSendEmail request structure.
|
|
21
|
-
* @class
|
|
22
|
-
*/
|
|
23
|
-
class BatchSendEmailRequest extends AbstractModel {
|
|
24
|
-
constructor(){
|
|
25
|
-
super();
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
* Sender address. Enter a sender address, for example, noreply@mail.qcloud.com. To display the sender name, enter the address in the following format:
|
|
29
|
-
Sender <email address>, for example:
|
|
30
|
-
Tencent Cloud team <noreply@mail.qcloud.com>
|
|
31
|
-
* @type {string || null}
|
|
32
|
-
*/
|
|
33
|
-
this.FromEmailAddress = null;
|
|
34
|
-
|
|
35
|
-
/**
|
|
36
|
-
* Recipient group ID
|
|
37
|
-
* @type {number || null}
|
|
38
|
-
*/
|
|
39
|
-
this.ReceiverId = null;
|
|
40
|
-
|
|
41
|
-
/**
|
|
42
|
-
* Email subject
|
|
43
|
-
* @type {string || null}
|
|
44
|
-
*/
|
|
45
|
-
this.Subject = null;
|
|
46
|
-
|
|
47
|
-
/**
|
|
48
|
-
* Task type. `1`: immediate; `2`: scheduled; `3`: recurring
|
|
49
|
-
* @type {number || null}
|
|
50
|
-
*/
|
|
51
|
-
this.TaskType = null;
|
|
52
|
-
|
|
53
|
-
/**
|
|
54
|
-
* Reply-to address. You can enter a valid personal email address that can receive emails. If this parameter is left empty, reply emails will be sent to Tencent Cloud.
|
|
55
|
-
* @type {string || null}
|
|
56
|
-
*/
|
|
57
|
-
this.ReplyToAddresses = null;
|
|
58
|
-
|
|
59
|
-
/**
|
|
60
|
-
* Template when emails are sent using a template
|
|
61
|
-
* @type {Template || null}
|
|
62
|
-
*/
|
|
63
|
-
this.Template = null;
|
|
64
|
-
|
|
65
|
-
/**
|
|
66
|
-
* Email content when emails are sent by calling the API. This parameter is currently unavailable.
|
|
67
|
-
* @type {Simple || null}
|
|
68
|
-
*/
|
|
69
|
-
this.Simple = null;
|
|
70
|
-
|
|
71
|
-
/**
|
|
72
|
-
* Attachment parameters to set when you need to send attachments. This parameter is currently unavailable.
|
|
73
|
-
* @type {Array.<Attachment> || null}
|
|
74
|
-
*/
|
|
75
|
-
this.Attachments = null;
|
|
76
|
-
|
|
77
|
-
/**
|
|
78
|
-
* Parameter required for a recurring sending task
|
|
79
|
-
* @type {CycleEmailParam || null}
|
|
80
|
-
*/
|
|
81
|
-
this.CycleParam = null;
|
|
82
|
-
|
|
83
|
-
/**
|
|
84
|
-
* Parameter required for a scheduled sending task
|
|
85
|
-
* @type {TimedEmailParam || null}
|
|
86
|
-
*/
|
|
87
|
-
this.TimedParam = null;
|
|
88
|
-
|
|
89
|
-
/**
|
|
90
|
-
* Unsubscribe option. `1`: provides an unsubscribe link; `0`: does not provide an unsubscribe link
|
|
91
|
-
* @type {string || null}
|
|
92
|
-
*/
|
|
93
|
-
this.Unsubscribe = null;
|
|
94
|
-
|
|
95
|
-
/**
|
|
96
|
-
*
|
|
97
|
-
* @type {number || null}
|
|
98
|
-
*/
|
|
99
|
-
this.ADLocation = null;
|
|
100
|
-
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
/**
|
|
104
|
-
* @private
|
|
105
|
-
*/
|
|
106
|
-
deserialize(params) {
|
|
107
|
-
if (!params) {
|
|
108
|
-
return;
|
|
109
|
-
}
|
|
110
|
-
this.FromEmailAddress = 'FromEmailAddress' in params ? params.FromEmailAddress : null;
|
|
111
|
-
this.ReceiverId = 'ReceiverId' in params ? params.ReceiverId : null;
|
|
112
|
-
this.Subject = 'Subject' in params ? params.Subject : null;
|
|
113
|
-
this.TaskType = 'TaskType' in params ? params.TaskType : null;
|
|
114
|
-
this.ReplyToAddresses = 'ReplyToAddresses' in params ? params.ReplyToAddresses : null;
|
|
115
|
-
|
|
116
|
-
if (params.Template) {
|
|
117
|
-
let obj = new Template();
|
|
118
|
-
obj.deserialize(params.Template)
|
|
119
|
-
this.Template = obj;
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
if (params.Simple) {
|
|
123
|
-
let obj = new Simple();
|
|
124
|
-
obj.deserialize(params.Simple)
|
|
125
|
-
this.Simple = obj;
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
if (params.Attachments) {
|
|
129
|
-
this.Attachments = new Array();
|
|
130
|
-
for (let z in params.Attachments) {
|
|
131
|
-
let obj = new Attachment();
|
|
132
|
-
obj.deserialize(params.Attachments[z]);
|
|
133
|
-
this.Attachments.push(obj);
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
if (params.CycleParam) {
|
|
138
|
-
let obj = new CycleEmailParam();
|
|
139
|
-
obj.deserialize(params.CycleParam)
|
|
140
|
-
this.CycleParam = obj;
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
if (params.TimedParam) {
|
|
144
|
-
let obj = new TimedEmailParam();
|
|
145
|
-
obj.deserialize(params.TimedParam)
|
|
146
|
-
this.TimedParam = obj;
|
|
147
|
-
}
|
|
148
|
-
this.Unsubscribe = 'Unsubscribe' in params ? params.Unsubscribe : null;
|
|
149
|
-
this.ADLocation = 'ADLocation' in params ? params.ADLocation : null;
|
|
150
|
-
|
|
151
|
-
}
|
|
152
|
-
}
|
|
153
|
-
|
|
154
19
|
/**
|
|
155
20
|
* GetEmailTemplate request structure.
|
|
156
21
|
* @class
|
|
@@ -179,56 +44,6 @@ class GetEmailTemplateRequest extends AbstractModel {
|
|
|
179
44
|
}
|
|
180
45
|
}
|
|
181
46
|
|
|
182
|
-
/**
|
|
183
|
-
* ListSendTasks response structure.
|
|
184
|
-
* @class
|
|
185
|
-
*/
|
|
186
|
-
class ListSendTasksResponse extends AbstractModel {
|
|
187
|
-
constructor(){
|
|
188
|
-
super();
|
|
189
|
-
|
|
190
|
-
/**
|
|
191
|
-
* Total number
|
|
192
|
-
* @type {number || null}
|
|
193
|
-
*/
|
|
194
|
-
this.TotalCount = null;
|
|
195
|
-
|
|
196
|
-
/**
|
|
197
|
-
* Data record
|
|
198
|
-
* @type {Array.<SendTaskData> || null}
|
|
199
|
-
*/
|
|
200
|
-
this.Data = null;
|
|
201
|
-
|
|
202
|
-
/**
|
|
203
|
-
* The unique request ID, which is returned for each request. RequestId is required for locating a problem.
|
|
204
|
-
* @type {string || null}
|
|
205
|
-
*/
|
|
206
|
-
this.RequestId = null;
|
|
207
|
-
|
|
208
|
-
}
|
|
209
|
-
|
|
210
|
-
/**
|
|
211
|
-
* @private
|
|
212
|
-
*/
|
|
213
|
-
deserialize(params) {
|
|
214
|
-
if (!params) {
|
|
215
|
-
return;
|
|
216
|
-
}
|
|
217
|
-
this.TotalCount = 'TotalCount' in params ? params.TotalCount : null;
|
|
218
|
-
|
|
219
|
-
if (params.Data) {
|
|
220
|
-
this.Data = new Array();
|
|
221
|
-
for (let z in params.Data) {
|
|
222
|
-
let obj = new SendTaskData();
|
|
223
|
-
obj.deserialize(params.Data[z]);
|
|
224
|
-
this.Data.push(obj);
|
|
225
|
-
}
|
|
226
|
-
}
|
|
227
|
-
this.RequestId = 'RequestId' in params ? params.RequestId : null;
|
|
228
|
-
|
|
229
|
-
}
|
|
230
|
-
}
|
|
231
|
-
|
|
232
47
|
/**
|
|
233
48
|
* CreateReceiver response structure.
|
|
234
49
|
* @class
|
|
@@ -265,24 +80,24 @@ class CreateReceiverResponse extends AbstractModel {
|
|
|
265
80
|
}
|
|
266
81
|
|
|
267
82
|
/**
|
|
268
|
-
*
|
|
83
|
+
* Email content, which can be plain text (TEXT), pure code (HTML), or a combination of TEXT and HTML (recommended).
|
|
269
84
|
* @class
|
|
270
85
|
*/
|
|
271
|
-
class
|
|
86
|
+
class Simple extends AbstractModel {
|
|
272
87
|
constructor(){
|
|
273
88
|
super();
|
|
274
89
|
|
|
275
90
|
/**
|
|
276
|
-
*
|
|
91
|
+
* HTML code after base64 encoding. To ensure correct display, this parameter should include all code information and cannot contain external CSS.
|
|
277
92
|
* @type {string || null}
|
|
278
93
|
*/
|
|
279
|
-
this.
|
|
94
|
+
this.Html = null;
|
|
280
95
|
|
|
281
96
|
/**
|
|
282
|
-
*
|
|
283
|
-
* @type {
|
|
97
|
+
* Plain text content after base64 encoding. If HTML is not involved, the plain text will be displayed in the email. Otherwise, this parameter represents the plain text style of the email.
|
|
98
|
+
* @type {string || null}
|
|
284
99
|
*/
|
|
285
|
-
this.
|
|
100
|
+
this.Text = null;
|
|
286
101
|
|
|
287
102
|
}
|
|
288
103
|
|
|
@@ -293,13 +108,8 @@ class CreateEmailTemplateRequest extends AbstractModel {
|
|
|
293
108
|
if (!params) {
|
|
294
109
|
return;
|
|
295
110
|
}
|
|
296
|
-
this.
|
|
297
|
-
|
|
298
|
-
if (params.TemplateContent) {
|
|
299
|
-
let obj = new TemplateContent();
|
|
300
|
-
obj.deserialize(params.TemplateContent)
|
|
301
|
-
this.TemplateContent = obj;
|
|
302
|
-
}
|
|
111
|
+
this.Html = 'Html' in params ? params.Html : null;
|
|
112
|
+
this.Text = 'Text' in params ? params.Text : null;
|
|
303
113
|
|
|
304
114
|
}
|
|
305
115
|
}
|
|
@@ -666,49 +476,6 @@ class ListSendTasksRequest extends AbstractModel {
|
|
|
666
476
|
}
|
|
667
477
|
}
|
|
668
478
|
|
|
669
|
-
/**
|
|
670
|
-
* GetSendEmailStatus response structure.
|
|
671
|
-
* @class
|
|
672
|
-
*/
|
|
673
|
-
class GetSendEmailStatusResponse extends AbstractModel {
|
|
674
|
-
constructor(){
|
|
675
|
-
super();
|
|
676
|
-
|
|
677
|
-
/**
|
|
678
|
-
* Email sending status list
|
|
679
|
-
* @type {Array.<SendEmailStatus> || null}
|
|
680
|
-
*/
|
|
681
|
-
this.EmailStatusList = null;
|
|
682
|
-
|
|
683
|
-
/**
|
|
684
|
-
* The unique request ID, which is returned for each request. RequestId is required for locating a problem.
|
|
685
|
-
* @type {string || null}
|
|
686
|
-
*/
|
|
687
|
-
this.RequestId = null;
|
|
688
|
-
|
|
689
|
-
}
|
|
690
|
-
|
|
691
|
-
/**
|
|
692
|
-
* @private
|
|
693
|
-
*/
|
|
694
|
-
deserialize(params) {
|
|
695
|
-
if (!params) {
|
|
696
|
-
return;
|
|
697
|
-
}
|
|
698
|
-
|
|
699
|
-
if (params.EmailStatusList) {
|
|
700
|
-
this.EmailStatusList = new Array();
|
|
701
|
-
for (let z in params.EmailStatusList) {
|
|
702
|
-
let obj = new SendEmailStatus();
|
|
703
|
-
obj.deserialize(params.EmailStatusList[z]);
|
|
704
|
-
this.EmailStatusList.push(obj);
|
|
705
|
-
}
|
|
706
|
-
}
|
|
707
|
-
this.RequestId = 'RequestId' in params ? params.RequestId : null;
|
|
708
|
-
|
|
709
|
-
}
|
|
710
|
-
}
|
|
711
|
-
|
|
712
479
|
/**
|
|
713
480
|
* SendEmail request structure.
|
|
714
481
|
* @class
|
|
@@ -857,41 +624,6 @@ Note: this field may return `null`, indicating that no valid values can be obtai
|
|
|
857
624
|
}
|
|
858
625
|
}
|
|
859
626
|
|
|
860
|
-
/**
|
|
861
|
-
* BatchSendEmail response structure.
|
|
862
|
-
* @class
|
|
863
|
-
*/
|
|
864
|
-
class BatchSendEmailResponse extends AbstractModel {
|
|
865
|
-
constructor(){
|
|
866
|
-
super();
|
|
867
|
-
|
|
868
|
-
/**
|
|
869
|
-
* Sending task ID
|
|
870
|
-
* @type {number || null}
|
|
871
|
-
*/
|
|
872
|
-
this.TaskId = null;
|
|
873
|
-
|
|
874
|
-
/**
|
|
875
|
-
* The unique request ID, which is returned for each request. RequestId is required for locating a problem.
|
|
876
|
-
* @type {string || null}
|
|
877
|
-
*/
|
|
878
|
-
this.RequestId = null;
|
|
879
|
-
|
|
880
|
-
}
|
|
881
|
-
|
|
882
|
-
/**
|
|
883
|
-
* @private
|
|
884
|
-
*/
|
|
885
|
-
deserialize(params) {
|
|
886
|
-
if (!params) {
|
|
887
|
-
return;
|
|
888
|
-
}
|
|
889
|
-
this.TaskId = 'TaskId' in params ? params.TaskId : null;
|
|
890
|
-
this.RequestId = 'RequestId' in params ? params.RequestId : null;
|
|
891
|
-
|
|
892
|
-
}
|
|
893
|
-
}
|
|
894
|
-
|
|
895
627
|
/**
|
|
896
628
|
* DeleteEmailIdentity request structure.
|
|
897
629
|
* @class
|
|
@@ -1216,75 +948,19 @@ Note: This field may return `null`, indicating that no valid value can be found.
|
|
|
1216
948
|
this.Template = obj;
|
|
1217
949
|
}
|
|
1218
950
|
|
|
1219
|
-
if (params.CycleParam) {
|
|
1220
|
-
let obj = new CycleEmailParam();
|
|
1221
|
-
obj.deserialize(params.CycleParam)
|
|
1222
|
-
this.CycleParam = obj;
|
|
1223
|
-
}
|
|
1224
|
-
|
|
1225
|
-
if (params.TimedParam) {
|
|
1226
|
-
let obj = new TimedEmailParam();
|
|
1227
|
-
obj.deserialize(params.TimedParam)
|
|
1228
|
-
this.TimedParam = obj;
|
|
1229
|
-
}
|
|
1230
|
-
this.ErrMsg = 'ErrMsg' in params ? params.ErrMsg : null;
|
|
1231
|
-
this.ReceiversName = 'ReceiversName' in params ? params.ReceiversName : null;
|
|
1232
|
-
|
|
1233
|
-
}
|
|
1234
|
-
}
|
|
1235
|
-
|
|
1236
|
-
/**
|
|
1237
|
-
* Template list structure.
|
|
1238
|
-
* @class
|
|
1239
|
-
*/
|
|
1240
|
-
class TemplatesMetadata extends AbstractModel {
|
|
1241
|
-
constructor(){
|
|
1242
|
-
super();
|
|
1243
|
-
|
|
1244
|
-
/**
|
|
1245
|
-
* Creation time.
|
|
1246
|
-
* @type {number || null}
|
|
1247
|
-
*/
|
|
1248
|
-
this.CreatedTimestamp = null;
|
|
1249
|
-
|
|
1250
|
-
/**
|
|
1251
|
-
* Template name.
|
|
1252
|
-
* @type {string || null}
|
|
1253
|
-
*/
|
|
1254
|
-
this.TemplateName = null;
|
|
1255
|
-
|
|
1256
|
-
/**
|
|
1257
|
-
* Template status. 1: under review; 0: approved; 2: rejected; other values: unavailable.
|
|
1258
|
-
* @type {number || null}
|
|
1259
|
-
*/
|
|
1260
|
-
this.TemplateStatus = null;
|
|
1261
|
-
|
|
1262
|
-
/**
|
|
1263
|
-
* Template ID.
|
|
1264
|
-
* @type {number || null}
|
|
1265
|
-
*/
|
|
1266
|
-
this.TemplateID = null;
|
|
1267
|
-
|
|
1268
|
-
/**
|
|
1269
|
-
* Review reply
|
|
1270
|
-
* @type {string || null}
|
|
1271
|
-
*/
|
|
1272
|
-
this.ReviewReason = null;
|
|
1273
|
-
|
|
1274
|
-
}
|
|
951
|
+
if (params.CycleParam) {
|
|
952
|
+
let obj = new CycleEmailParam();
|
|
953
|
+
obj.deserialize(params.CycleParam)
|
|
954
|
+
this.CycleParam = obj;
|
|
955
|
+
}
|
|
1275
956
|
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
if (!params) {
|
|
1281
|
-
return;
|
|
957
|
+
if (params.TimedParam) {
|
|
958
|
+
let obj = new TimedEmailParam();
|
|
959
|
+
obj.deserialize(params.TimedParam)
|
|
960
|
+
this.TimedParam = obj;
|
|
1282
961
|
}
|
|
1283
|
-
this.
|
|
1284
|
-
this.
|
|
1285
|
-
this.TemplateStatus = 'TemplateStatus' in params ? params.TemplateStatus : null;
|
|
1286
|
-
this.TemplateID = 'TemplateID' in params ? params.TemplateID : null;
|
|
1287
|
-
this.ReviewReason = 'ReviewReason' in params ? params.ReviewReason : null;
|
|
962
|
+
this.ErrMsg = 'ErrMsg' in params ? params.ErrMsg : null;
|
|
963
|
+
this.ReceiversName = 'ReceiversName' in params ? params.ReceiversName : null;
|
|
1288
964
|
|
|
1289
965
|
}
|
|
1290
966
|
}
|
|
@@ -1602,185 +1278,6 @@ class DeleteBlackListResponse extends AbstractModel {
|
|
|
1602
1278
|
}
|
|
1603
1279
|
}
|
|
1604
1280
|
|
|
1605
|
-
/**
|
|
1606
|
-
* UpdateEmailTemplate request structure.
|
|
1607
|
-
* @class
|
|
1608
|
-
*/
|
|
1609
|
-
class UpdateEmailTemplateRequest extends AbstractModel {
|
|
1610
|
-
constructor(){
|
|
1611
|
-
super();
|
|
1612
|
-
|
|
1613
|
-
/**
|
|
1614
|
-
* Template content.
|
|
1615
|
-
* @type {TemplateContent || null}
|
|
1616
|
-
*/
|
|
1617
|
-
this.TemplateContent = null;
|
|
1618
|
-
|
|
1619
|
-
/**
|
|
1620
|
-
* Template ID.
|
|
1621
|
-
* @type {number || null}
|
|
1622
|
-
*/
|
|
1623
|
-
this.TemplateID = null;
|
|
1624
|
-
|
|
1625
|
-
/**
|
|
1626
|
-
* Template name.
|
|
1627
|
-
* @type {string || null}
|
|
1628
|
-
*/
|
|
1629
|
-
this.TemplateName = null;
|
|
1630
|
-
|
|
1631
|
-
}
|
|
1632
|
-
|
|
1633
|
-
/**
|
|
1634
|
-
* @private
|
|
1635
|
-
*/
|
|
1636
|
-
deserialize(params) {
|
|
1637
|
-
if (!params) {
|
|
1638
|
-
return;
|
|
1639
|
-
}
|
|
1640
|
-
|
|
1641
|
-
if (params.TemplateContent) {
|
|
1642
|
-
let obj = new TemplateContent();
|
|
1643
|
-
obj.deserialize(params.TemplateContent)
|
|
1644
|
-
this.TemplateContent = obj;
|
|
1645
|
-
}
|
|
1646
|
-
this.TemplateID = 'TemplateID' in params ? params.TemplateID : null;
|
|
1647
|
-
this.TemplateName = 'TemplateName' in params ? params.TemplateName : null;
|
|
1648
|
-
|
|
1649
|
-
}
|
|
1650
|
-
}
|
|
1651
|
-
|
|
1652
|
-
/**
|
|
1653
|
-
* Describes the email sending status.
|
|
1654
|
-
* @class
|
|
1655
|
-
*/
|
|
1656
|
-
class SendEmailStatus extends AbstractModel {
|
|
1657
|
-
constructor(){
|
|
1658
|
-
super();
|
|
1659
|
-
|
|
1660
|
-
/**
|
|
1661
|
-
* `MessageId` field returned by the `SendEmail` API
|
|
1662
|
-
* @type {string || null}
|
|
1663
|
-
*/
|
|
1664
|
-
this.MessageId = null;
|
|
1665
|
-
|
|
1666
|
-
/**
|
|
1667
|
-
* Recipient email address
|
|
1668
|
-
* @type {string || null}
|
|
1669
|
-
*/
|
|
1670
|
-
this.ToEmailAddress = null;
|
|
1671
|
-
|
|
1672
|
-
/**
|
|
1673
|
-
* Sender email address
|
|
1674
|
-
* @type {string || null}
|
|
1675
|
-
*/
|
|
1676
|
-
this.FromEmailAddress = null;
|
|
1677
|
-
|
|
1678
|
-
/**
|
|
1679
|
-
* Tencent Cloud processing status:
|
|
1680
|
-
0: successful.
|
|
1681
|
-
1001: internal system exception.
|
|
1682
|
-
1002: internal system exception.
|
|
1683
|
-
1003: internal system exception.
|
|
1684
|
-
1003: internal system exception.
|
|
1685
|
-
1004: email sending timeout.
|
|
1686
|
-
1005: internal system exception.
|
|
1687
|
-
1006: you have sent too many emails to the same address in a short period.
|
|
1688
|
-
1007: the email address is in the blocklist.
|
|
1689
|
-
1009: internal system exception.
|
|
1690
|
-
1010: daily email sending limit exceeded.
|
|
1691
|
-
1011: no permission to send custom content. Use a template.
|
|
1692
|
-
2001: no results found.
|
|
1693
|
-
3007: invalid template ID or unavailable template.
|
|
1694
|
-
3008: template status exception.
|
|
1695
|
-
3009: no permission to use this template.
|
|
1696
|
-
3010: the format of the `TemplateData` field is incorrect.
|
|
1697
|
-
3014: unable to send the email because the sender domain is not verified.
|
|
1698
|
-
3020: the recipient email address is in the blocklist.
|
|
1699
|
-
3024: failed to pre-check the email address format.
|
|
1700
|
-
3030: email sending is restricted temporarily due to high bounce rate.
|
|
1701
|
-
3033: the account has insufficient balance or overdue payment.
|
|
1702
|
-
* @type {number || null}
|
|
1703
|
-
*/
|
|
1704
|
-
this.SendStatus = null;
|
|
1705
|
-
|
|
1706
|
-
/**
|
|
1707
|
-
* Recipient processing status:
|
|
1708
|
-
0: Tencent Cloud has accepted the request and added it to the send queue.
|
|
1709
|
-
1: the email is delivered successfully, `DeliverTime` indicates the time when the email is delivered successfully.
|
|
1710
|
-
2: the email is discarded. `DeliverMessage` indicates the reason for discarding.
|
|
1711
|
-
3: the recipient's ESP rejects the email, probably because the email address does not exist or due to other reasons.
|
|
1712
|
-
8: the email is delayed by the ESP. `DeliverMessage` indicates the reason for delay.
|
|
1713
|
-
* @type {number || null}
|
|
1714
|
-
*/
|
|
1715
|
-
this.DeliverStatus = null;
|
|
1716
|
-
|
|
1717
|
-
/**
|
|
1718
|
-
* Description of the recipient processing status
|
|
1719
|
-
* @type {string || null}
|
|
1720
|
-
*/
|
|
1721
|
-
this.DeliverMessage = null;
|
|
1722
|
-
|
|
1723
|
-
/**
|
|
1724
|
-
* Timestamp when the request arrives at Tencent Cloud
|
|
1725
|
-
* @type {number || null}
|
|
1726
|
-
*/
|
|
1727
|
-
this.RequestTime = null;
|
|
1728
|
-
|
|
1729
|
-
/**
|
|
1730
|
-
* Timestamp when Tencent Cloud delivers the email
|
|
1731
|
-
* @type {number || null}
|
|
1732
|
-
*/
|
|
1733
|
-
this.DeliverTime = null;
|
|
1734
|
-
|
|
1735
|
-
/**
|
|
1736
|
-
* Whether the recipient has opened the email
|
|
1737
|
-
* @type {boolean || null}
|
|
1738
|
-
*/
|
|
1739
|
-
this.UserOpened = null;
|
|
1740
|
-
|
|
1741
|
-
/**
|
|
1742
|
-
* Whether the recipient has clicked the links in the email
|
|
1743
|
-
* @type {boolean || null}
|
|
1744
|
-
*/
|
|
1745
|
-
this.UserClicked = null;
|
|
1746
|
-
|
|
1747
|
-
/**
|
|
1748
|
-
* Whether the recipient has unsubscribed from emails sent by the sender
|
|
1749
|
-
* @type {boolean || null}
|
|
1750
|
-
*/
|
|
1751
|
-
this.UserUnsubscribed = null;
|
|
1752
|
-
|
|
1753
|
-
/**
|
|
1754
|
-
* Whether the recipient has reported the sender
|
|
1755
|
-
* @type {boolean || null}
|
|
1756
|
-
*/
|
|
1757
|
-
this.UserComplainted = null;
|
|
1758
|
-
|
|
1759
|
-
}
|
|
1760
|
-
|
|
1761
|
-
/**
|
|
1762
|
-
* @private
|
|
1763
|
-
*/
|
|
1764
|
-
deserialize(params) {
|
|
1765
|
-
if (!params) {
|
|
1766
|
-
return;
|
|
1767
|
-
}
|
|
1768
|
-
this.MessageId = 'MessageId' in params ? params.MessageId : null;
|
|
1769
|
-
this.ToEmailAddress = 'ToEmailAddress' in params ? params.ToEmailAddress : null;
|
|
1770
|
-
this.FromEmailAddress = 'FromEmailAddress' in params ? params.FromEmailAddress : null;
|
|
1771
|
-
this.SendStatus = 'SendStatus' in params ? params.SendStatus : null;
|
|
1772
|
-
this.DeliverStatus = 'DeliverStatus' in params ? params.DeliverStatus : null;
|
|
1773
|
-
this.DeliverMessage = 'DeliverMessage' in params ? params.DeliverMessage : null;
|
|
1774
|
-
this.RequestTime = 'RequestTime' in params ? params.RequestTime : null;
|
|
1775
|
-
this.DeliverTime = 'DeliverTime' in params ? params.DeliverTime : null;
|
|
1776
|
-
this.UserOpened = 'UserOpened' in params ? params.UserOpened : null;
|
|
1777
|
-
this.UserClicked = 'UserClicked' in params ? params.UserClicked : null;
|
|
1778
|
-
this.UserUnsubscribed = 'UserUnsubscribed' in params ? params.UserUnsubscribed : null;
|
|
1779
|
-
this.UserComplainted = 'UserComplainted' in params ? params.UserComplainted : null;
|
|
1780
|
-
|
|
1781
|
-
}
|
|
1782
|
-
}
|
|
1783
|
-
|
|
1784
1281
|
/**
|
|
1785
1282
|
* ListEmailTemplates request structure.
|
|
1786
1283
|
* @class
|
|
@@ -2015,80 +1512,42 @@ class ListBlackEmailAddressResponse extends AbstractModel {
|
|
|
2015
1512
|
}
|
|
2016
1513
|
|
|
2017
1514
|
/**
|
|
2018
|
-
*
|
|
1515
|
+
* Template list structure.
|
|
2019
1516
|
* @class
|
|
2020
1517
|
*/
|
|
2021
|
-
class
|
|
1518
|
+
class TemplatesMetadata extends AbstractModel {
|
|
2022
1519
|
constructor(){
|
|
2023
1520
|
super();
|
|
2024
1521
|
|
|
2025
1522
|
/**
|
|
2026
|
-
*
|
|
2027
|
-
* @type {string || null}
|
|
2028
|
-
*/
|
|
2029
|
-
this.RequestDate = null;
|
|
2030
|
-
|
|
2031
|
-
/**
|
|
2032
|
-
* Offset. Default value: `0`
|
|
2033
|
-
* @type {number || null}
|
|
2034
|
-
*/
|
|
2035
|
-
this.Offset = null;
|
|
2036
|
-
|
|
2037
|
-
/**
|
|
2038
|
-
* Maximum number of pulled entries. The maximum value is `100`.
|
|
1523
|
+
* Creation time.
|
|
2039
1524
|
* @type {number || null}
|
|
2040
1525
|
*/
|
|
2041
|
-
this.
|
|
1526
|
+
this.CreatedTimestamp = null;
|
|
2042
1527
|
|
|
2043
1528
|
/**
|
|
2044
|
-
*
|
|
1529
|
+
* Template name.
|
|
2045
1530
|
* @type {string || null}
|
|
2046
1531
|
*/
|
|
2047
|
-
this.
|
|
1532
|
+
this.TemplateName = null;
|
|
2048
1533
|
|
|
2049
1534
|
/**
|
|
2050
|
-
*
|
|
2051
|
-
* @type {
|
|
1535
|
+
* Template status. 1: under review; 0: approved; 2: rejected; other values: unavailable.
|
|
1536
|
+
* @type {number || null}
|
|
2052
1537
|
*/
|
|
2053
|
-
this.
|
|
2054
|
-
|
|
2055
|
-
}
|
|
2056
|
-
|
|
2057
|
-
/**
|
|
2058
|
-
* @private
|
|
2059
|
-
*/
|
|
2060
|
-
deserialize(params) {
|
|
2061
|
-
if (!params) {
|
|
2062
|
-
return;
|
|
2063
|
-
}
|
|
2064
|
-
this.RequestDate = 'RequestDate' in params ? params.RequestDate : null;
|
|
2065
|
-
this.Offset = 'Offset' in params ? params.Offset : null;
|
|
2066
|
-
this.Limit = 'Limit' in params ? params.Limit : null;
|
|
2067
|
-
this.MessageId = 'MessageId' in params ? params.MessageId : null;
|
|
2068
|
-
this.ToEmailAddress = 'ToEmailAddress' in params ? params.ToEmailAddress : null;
|
|
2069
|
-
|
|
2070
|
-
}
|
|
2071
|
-
}
|
|
2072
|
-
|
|
2073
|
-
/**
|
|
2074
|
-
* Email content, which can be plain text (TEXT), pure code (HTML), or a combination of TEXT and HTML (recommended).
|
|
2075
|
-
* @class
|
|
2076
|
-
*/
|
|
2077
|
-
class Simple extends AbstractModel {
|
|
2078
|
-
constructor(){
|
|
2079
|
-
super();
|
|
1538
|
+
this.TemplateStatus = null;
|
|
2080
1539
|
|
|
2081
1540
|
/**
|
|
2082
|
-
*
|
|
2083
|
-
* @type {
|
|
1541
|
+
* Template ID.
|
|
1542
|
+
* @type {number || null}
|
|
2084
1543
|
*/
|
|
2085
|
-
this.
|
|
1544
|
+
this.TemplateID = null;
|
|
2086
1545
|
|
|
2087
1546
|
/**
|
|
2088
|
-
*
|
|
1547
|
+
* Review reply
|
|
2089
1548
|
* @type {string || null}
|
|
2090
1549
|
*/
|
|
2091
|
-
this.
|
|
1550
|
+
this.ReviewReason = null;
|
|
2092
1551
|
|
|
2093
1552
|
}
|
|
2094
1553
|
|
|
@@ -2099,8 +1558,11 @@ class Simple extends AbstractModel {
|
|
|
2099
1558
|
if (!params) {
|
|
2100
1559
|
return;
|
|
2101
1560
|
}
|
|
2102
|
-
this.
|
|
2103
|
-
this.
|
|
1561
|
+
this.CreatedTimestamp = 'CreatedTimestamp' in params ? params.CreatedTimestamp : null;
|
|
1562
|
+
this.TemplateName = 'TemplateName' in params ? params.TemplateName : null;
|
|
1563
|
+
this.TemplateStatus = 'TemplateStatus' in params ? params.TemplateStatus : null;
|
|
1564
|
+
this.TemplateID = 'TemplateID' in params ? params.TemplateID : null;
|
|
1565
|
+
this.ReviewReason = 'ReviewReason' in params ? params.ReviewReason : null;
|
|
2104
1566
|
|
|
2105
1567
|
}
|
|
2106
1568
|
}
|
|
@@ -2590,13 +2052,25 @@ class CreateReceiverDetailRequest extends AbstractModel {
|
|
|
2590
2052
|
}
|
|
2591
2053
|
|
|
2592
2054
|
/**
|
|
2593
|
-
*
|
|
2055
|
+
* ListSendTasks response structure.
|
|
2594
2056
|
* @class
|
|
2595
2057
|
*/
|
|
2596
|
-
class
|
|
2058
|
+
class ListSendTasksResponse extends AbstractModel {
|
|
2597
2059
|
constructor(){
|
|
2598
2060
|
super();
|
|
2599
2061
|
|
|
2062
|
+
/**
|
|
2063
|
+
* Total number
|
|
2064
|
+
* @type {number || null}
|
|
2065
|
+
*/
|
|
2066
|
+
this.TotalCount = null;
|
|
2067
|
+
|
|
2068
|
+
/**
|
|
2069
|
+
* Data record
|
|
2070
|
+
* @type {Array.<SendTaskData> || null}
|
|
2071
|
+
*/
|
|
2072
|
+
this.Data = null;
|
|
2073
|
+
|
|
2600
2074
|
/**
|
|
2601
2075
|
* The unique request ID, which is returned for each request. RequestId is required for locating a problem.
|
|
2602
2076
|
* @type {string || null}
|
|
@@ -2612,6 +2086,16 @@ class CreateEmailTemplateResponse extends AbstractModel {
|
|
|
2612
2086
|
if (!params) {
|
|
2613
2087
|
return;
|
|
2614
2088
|
}
|
|
2089
|
+
this.TotalCount = 'TotalCount' in params ? params.TotalCount : null;
|
|
2090
|
+
|
|
2091
|
+
if (params.Data) {
|
|
2092
|
+
this.Data = new Array();
|
|
2093
|
+
for (let z in params.Data) {
|
|
2094
|
+
let obj = new SendTaskData();
|
|
2095
|
+
obj.deserialize(params.Data[z]);
|
|
2096
|
+
this.Data.push(obj);
|
|
2097
|
+
}
|
|
2098
|
+
}
|
|
2615
2099
|
this.RequestId = 'RequestId' in params ? params.RequestId : null;
|
|
2616
2100
|
|
|
2617
2101
|
}
|
|
@@ -2695,34 +2179,6 @@ class CreateEmailAddressResponse extends AbstractModel {
|
|
|
2695
2179
|
}
|
|
2696
2180
|
}
|
|
2697
2181
|
|
|
2698
|
-
/**
|
|
2699
|
-
* UpdateEmailTemplate response structure.
|
|
2700
|
-
* @class
|
|
2701
|
-
*/
|
|
2702
|
-
class UpdateEmailTemplateResponse extends AbstractModel {
|
|
2703
|
-
constructor(){
|
|
2704
|
-
super();
|
|
2705
|
-
|
|
2706
|
-
/**
|
|
2707
|
-
* The unique request ID, which is returned for each request. RequestId is required for locating a problem.
|
|
2708
|
-
* @type {string || null}
|
|
2709
|
-
*/
|
|
2710
|
-
this.RequestId = null;
|
|
2711
|
-
|
|
2712
|
-
}
|
|
2713
|
-
|
|
2714
|
-
/**
|
|
2715
|
-
* @private
|
|
2716
|
-
*/
|
|
2717
|
-
deserialize(params) {
|
|
2718
|
-
if (!params) {
|
|
2719
|
-
return;
|
|
2720
|
-
}
|
|
2721
|
-
this.RequestId = 'RequestId' in params ? params.RequestId : null;
|
|
2722
|
-
|
|
2723
|
-
}
|
|
2724
|
-
}
|
|
2725
|
-
|
|
2726
2182
|
/**
|
|
2727
2183
|
* Time parameter required to create a scheduled sending task, such as the start time
|
|
2728
2184
|
* @class
|
|
@@ -2869,11 +2325,9 @@ class ListEmailIdentitiesRequest extends AbstractModel {
|
|
|
2869
2325
|
}
|
|
2870
2326
|
|
|
2871
2327
|
module.exports = {
|
|
2872
|
-
BatchSendEmailRequest: BatchSendEmailRequest,
|
|
2873
2328
|
GetEmailTemplateRequest: GetEmailTemplateRequest,
|
|
2874
|
-
ListSendTasksResponse: ListSendTasksResponse,
|
|
2875
2329
|
CreateReceiverResponse: CreateReceiverResponse,
|
|
2876
|
-
|
|
2330
|
+
Simple: Simple,
|
|
2877
2331
|
ListEmailAddressResponse: ListEmailAddressResponse,
|
|
2878
2332
|
ListEmailAddressRequest: ListEmailAddressRequest,
|
|
2879
2333
|
ListReceiversRequest: ListReceiversRequest,
|
|
@@ -2882,10 +2336,8 @@ module.exports = {
|
|
|
2882
2336
|
Attachment: Attachment,
|
|
2883
2337
|
Template: Template,
|
|
2884
2338
|
ListSendTasksRequest: ListSendTasksRequest,
|
|
2885
|
-
GetSendEmailStatusResponse: GetSendEmailStatusResponse,
|
|
2886
2339
|
SendEmailRequest: SendEmailRequest,
|
|
2887
2340
|
EmailSender: EmailSender,
|
|
2888
|
-
BatchSendEmailResponse: BatchSendEmailResponse,
|
|
2889
2341
|
DeleteEmailIdentityRequest: DeleteEmailIdentityRequest,
|
|
2890
2342
|
UpdateEmailIdentityRequest: UpdateEmailIdentityRequest,
|
|
2891
2343
|
GetEmailIdentityRequest: GetEmailIdentityRequest,
|
|
@@ -2893,7 +2345,6 @@ module.exports = {
|
|
|
2893
2345
|
GetStatisticsReportRequest: GetStatisticsReportRequest,
|
|
2894
2346
|
DeleteBlackListRequest: DeleteBlackListRequest,
|
|
2895
2347
|
SendTaskData: SendTaskData,
|
|
2896
|
-
TemplatesMetadata: TemplatesMetadata,
|
|
2897
2348
|
DeleteEmailTemplateResponse: DeleteEmailTemplateResponse,
|
|
2898
2349
|
Volume: Volume,
|
|
2899
2350
|
CreateEmailIdentityRequest: CreateEmailIdentityRequest,
|
|
@@ -2901,16 +2352,13 @@ module.exports = {
|
|
|
2901
2352
|
UpdateEmailIdentityResponse: UpdateEmailIdentityResponse,
|
|
2902
2353
|
DeleteEmailTemplateRequest: DeleteEmailTemplateRequest,
|
|
2903
2354
|
DeleteBlackListResponse: DeleteBlackListResponse,
|
|
2904
|
-
UpdateEmailTemplateRequest: UpdateEmailTemplateRequest,
|
|
2905
|
-
SendEmailStatus: SendEmailStatus,
|
|
2906
2355
|
ListEmailTemplatesRequest: ListEmailTemplatesRequest,
|
|
2907
2356
|
CreateReceiverRequest: CreateReceiverRequest,
|
|
2908
2357
|
CreateReceiverDetailResponse: CreateReceiverDetailResponse,
|
|
2909
2358
|
ListEmailTemplatesResponse: ListEmailTemplatesResponse,
|
|
2910
2359
|
SendEmailResponse: SendEmailResponse,
|
|
2911
2360
|
ListBlackEmailAddressResponse: ListBlackEmailAddressResponse,
|
|
2912
|
-
|
|
2913
|
-
Simple: Simple,
|
|
2361
|
+
TemplatesMetadata: TemplatesMetadata,
|
|
2914
2362
|
DeleteReceiverRequest: DeleteReceiverRequest,
|
|
2915
2363
|
ListEmailIdentitiesResponse: ListEmailIdentitiesResponse,
|
|
2916
2364
|
DeleteReceiverResponse: DeleteReceiverResponse,
|
|
@@ -2924,10 +2372,9 @@ module.exports = {
|
|
|
2924
2372
|
CreateEmailIdentityResponse: CreateEmailIdentityResponse,
|
|
2925
2373
|
CreateEmailAddressRequest: CreateEmailAddressRequest,
|
|
2926
2374
|
CreateReceiverDetailRequest: CreateReceiverDetailRequest,
|
|
2927
|
-
|
|
2375
|
+
ListSendTasksResponse: ListSendTasksResponse,
|
|
2928
2376
|
ListReceiversResponse: ListReceiversResponse,
|
|
2929
2377
|
CreateEmailAddressResponse: CreateEmailAddressResponse,
|
|
2930
|
-
UpdateEmailTemplateResponse: UpdateEmailTemplateResponse,
|
|
2931
2378
|
TimedEmailParam: TimedEmailParam,
|
|
2932
2379
|
DNSAttributes: DNSAttributes,
|
|
2933
2380
|
GetEmailTemplateResponse: GetEmailTemplateResponse,
|