@alicloud/cams20200606 1.0.6 → 1.0.9
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/dist/client.d.ts +25 -136
- package/dist/client.js +74 -311
- package/dist/client.js.map +1 -1
- package/package.json +3 -3
- package/src/client.ts +107 -394
package/dist/client.js
CHANGED
|
@@ -27,6 +27,7 @@ class CheckChatappContactsRequest extends $tea.Model {
|
|
|
27
27
|
return {
|
|
28
28
|
channelType: 'ChannelType',
|
|
29
29
|
contacts: 'Contacts',
|
|
30
|
+
custWabaId: 'CustWabaId',
|
|
30
31
|
from: 'From',
|
|
31
32
|
};
|
|
32
33
|
}
|
|
@@ -34,6 +35,7 @@ class CheckChatappContactsRequest extends $tea.Model {
|
|
|
34
35
|
return {
|
|
35
36
|
channelType: 'string',
|
|
36
37
|
contacts: { 'type': 'array', 'itemType': 'string' },
|
|
38
|
+
custWabaId: 'string',
|
|
37
39
|
from: 'string',
|
|
38
40
|
};
|
|
39
41
|
}
|
|
@@ -47,6 +49,7 @@ class CheckChatappContactsShrinkRequest extends $tea.Model {
|
|
|
47
49
|
return {
|
|
48
50
|
channelType: 'ChannelType',
|
|
49
51
|
contactsShrink: 'Contacts',
|
|
52
|
+
custWabaId: 'CustWabaId',
|
|
50
53
|
from: 'From',
|
|
51
54
|
};
|
|
52
55
|
}
|
|
@@ -54,6 +57,7 @@ class CheckChatappContactsShrinkRequest extends $tea.Model {
|
|
|
54
57
|
return {
|
|
55
58
|
channelType: 'string',
|
|
56
59
|
contactsShrink: 'string',
|
|
60
|
+
custWabaId: 'string',
|
|
57
61
|
from: 'string',
|
|
58
62
|
};
|
|
59
63
|
}
|
|
@@ -88,83 +92,19 @@ class CheckChatappContactsResponse extends $tea.Model {
|
|
|
88
92
|
static names() {
|
|
89
93
|
return {
|
|
90
94
|
headers: 'headers',
|
|
95
|
+
statusCode: 'statusCode',
|
|
91
96
|
body: 'body',
|
|
92
97
|
};
|
|
93
98
|
}
|
|
94
99
|
static types() {
|
|
95
100
|
return {
|
|
96
101
|
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
102
|
+
statusCode: 'number',
|
|
97
103
|
body: CheckChatappContactsResponseBody,
|
|
98
104
|
};
|
|
99
105
|
}
|
|
100
106
|
}
|
|
101
107
|
exports.CheckChatappContactsResponse = CheckChatappContactsResponse;
|
|
102
|
-
class CheckContactsRequest extends $tea.Model {
|
|
103
|
-
constructor(map) {
|
|
104
|
-
super(map);
|
|
105
|
-
}
|
|
106
|
-
static names() {
|
|
107
|
-
return {
|
|
108
|
-
channelType: 'ChannelType',
|
|
109
|
-
contacts: 'Contacts',
|
|
110
|
-
from: 'From',
|
|
111
|
-
ownerId: 'OwnerId',
|
|
112
|
-
resourceOwnerAccount: 'ResourceOwnerAccount',
|
|
113
|
-
resourceOwnerId: 'ResourceOwnerId',
|
|
114
|
-
};
|
|
115
|
-
}
|
|
116
|
-
static types() {
|
|
117
|
-
return {
|
|
118
|
-
channelType: 'string',
|
|
119
|
-
contacts: 'string',
|
|
120
|
-
from: 'string',
|
|
121
|
-
ownerId: 'number',
|
|
122
|
-
resourceOwnerAccount: 'string',
|
|
123
|
-
resourceOwnerId: 'number',
|
|
124
|
-
};
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
exports.CheckContactsRequest = CheckContactsRequest;
|
|
128
|
-
class CheckContactsResponseBody extends $tea.Model {
|
|
129
|
-
constructor(map) {
|
|
130
|
-
super(map);
|
|
131
|
-
}
|
|
132
|
-
static names() {
|
|
133
|
-
return {
|
|
134
|
-
contacts: 'Contacts',
|
|
135
|
-
requestId: 'RequestId',
|
|
136
|
-
resultCode: 'ResultCode',
|
|
137
|
-
resultMessage: 'ResultMessage',
|
|
138
|
-
};
|
|
139
|
-
}
|
|
140
|
-
static types() {
|
|
141
|
-
return {
|
|
142
|
-
contacts: { 'type': 'array', 'itemType': CheckContactsResponseBodyContacts },
|
|
143
|
-
requestId: 'string',
|
|
144
|
-
resultCode: 'string',
|
|
145
|
-
resultMessage: 'string',
|
|
146
|
-
};
|
|
147
|
-
}
|
|
148
|
-
}
|
|
149
|
-
exports.CheckContactsResponseBody = CheckContactsResponseBody;
|
|
150
|
-
class CheckContactsResponse extends $tea.Model {
|
|
151
|
-
constructor(map) {
|
|
152
|
-
super(map);
|
|
153
|
-
}
|
|
154
|
-
static names() {
|
|
155
|
-
return {
|
|
156
|
-
headers: 'headers',
|
|
157
|
-
body: 'body',
|
|
158
|
-
};
|
|
159
|
-
}
|
|
160
|
-
static types() {
|
|
161
|
-
return {
|
|
162
|
-
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
163
|
-
body: CheckContactsResponseBody,
|
|
164
|
-
};
|
|
165
|
-
}
|
|
166
|
-
}
|
|
167
|
-
exports.CheckContactsResponse = CheckContactsResponse;
|
|
168
108
|
class CreateChatappTemplateRequest extends $tea.Model {
|
|
169
109
|
constructor(map) {
|
|
170
110
|
super(map);
|
|
@@ -173,6 +113,7 @@ class CreateChatappTemplateRequest extends $tea.Model {
|
|
|
173
113
|
return {
|
|
174
114
|
category: 'Category',
|
|
175
115
|
components: 'Components',
|
|
116
|
+
custWabaId: 'CustWabaId',
|
|
176
117
|
example: 'Example',
|
|
177
118
|
language: 'Language',
|
|
178
119
|
name: 'Name',
|
|
@@ -183,6 +124,7 @@ class CreateChatappTemplateRequest extends $tea.Model {
|
|
|
183
124
|
return {
|
|
184
125
|
category: 'string',
|
|
185
126
|
components: { 'type': 'array', 'itemType': CreateChatappTemplateRequestComponents },
|
|
127
|
+
custWabaId: 'string',
|
|
186
128
|
example: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
187
129
|
language: 'string',
|
|
188
130
|
name: 'string',
|
|
@@ -199,6 +141,7 @@ class CreateChatappTemplateShrinkRequest extends $tea.Model {
|
|
|
199
141
|
return {
|
|
200
142
|
category: 'Category',
|
|
201
143
|
componentsShrink: 'Components',
|
|
144
|
+
custWabaId: 'CustWabaId',
|
|
202
145
|
exampleShrink: 'Example',
|
|
203
146
|
language: 'Language',
|
|
204
147
|
name: 'Name',
|
|
@@ -209,6 +152,7 @@ class CreateChatappTemplateShrinkRequest extends $tea.Model {
|
|
|
209
152
|
return {
|
|
210
153
|
category: 'string',
|
|
211
154
|
componentsShrink: 'string',
|
|
155
|
+
custWabaId: 'string',
|
|
212
156
|
exampleShrink: 'string',
|
|
213
157
|
language: 'string',
|
|
214
158
|
name: 'string',
|
|
@@ -246,12 +190,14 @@ class CreateChatappTemplateResponse extends $tea.Model {
|
|
|
246
190
|
static names() {
|
|
247
191
|
return {
|
|
248
192
|
headers: 'headers',
|
|
193
|
+
statusCode: 'statusCode',
|
|
249
194
|
body: 'body',
|
|
250
195
|
};
|
|
251
196
|
}
|
|
252
197
|
static types() {
|
|
253
198
|
return {
|
|
254
199
|
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
200
|
+
statusCode: 'number',
|
|
255
201
|
body: CreateChatappTemplateResponseBody,
|
|
256
202
|
};
|
|
257
203
|
}
|
|
@@ -263,11 +209,13 @@ class DeleteChatappTemplateRequest extends $tea.Model {
|
|
|
263
209
|
}
|
|
264
210
|
static names() {
|
|
265
211
|
return {
|
|
212
|
+
custWabaId: 'CustWabaId',
|
|
266
213
|
templateCode: 'TemplateCode',
|
|
267
214
|
};
|
|
268
215
|
}
|
|
269
216
|
static types() {
|
|
270
217
|
return {
|
|
218
|
+
custWabaId: 'string',
|
|
271
219
|
templateCode: 'string',
|
|
272
220
|
};
|
|
273
221
|
}
|
|
@@ -300,12 +248,14 @@ class DeleteChatappTemplateResponse extends $tea.Model {
|
|
|
300
248
|
static names() {
|
|
301
249
|
return {
|
|
302
250
|
headers: 'headers',
|
|
251
|
+
statusCode: 'statusCode',
|
|
303
252
|
body: 'body',
|
|
304
253
|
};
|
|
305
254
|
}
|
|
306
255
|
static types() {
|
|
307
256
|
return {
|
|
308
257
|
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
258
|
+
statusCode: 'number',
|
|
309
259
|
body: DeleteChatappTemplateResponseBody,
|
|
310
260
|
};
|
|
311
261
|
}
|
|
@@ -317,15 +267,15 @@ class GetChatappTemplateDetailRequest extends $tea.Model {
|
|
|
317
267
|
}
|
|
318
268
|
static names() {
|
|
319
269
|
return {
|
|
270
|
+
custWabaId: 'CustWabaId',
|
|
320
271
|
language: 'Language',
|
|
321
|
-
ownerId: 'OwnerId',
|
|
322
272
|
templateCode: 'TemplateCode',
|
|
323
273
|
};
|
|
324
274
|
}
|
|
325
275
|
static types() {
|
|
326
276
|
return {
|
|
277
|
+
custWabaId: 'string',
|
|
327
278
|
language: 'string',
|
|
328
|
-
ownerId: 'number',
|
|
329
279
|
templateCode: 'string',
|
|
330
280
|
};
|
|
331
281
|
}
|
|
@@ -360,12 +310,14 @@ class GetChatappTemplateDetailResponse extends $tea.Model {
|
|
|
360
310
|
static names() {
|
|
361
311
|
return {
|
|
362
312
|
headers: 'headers',
|
|
313
|
+
statusCode: 'statusCode',
|
|
363
314
|
body: 'body',
|
|
364
315
|
};
|
|
365
316
|
}
|
|
366
317
|
static types() {
|
|
367
318
|
return {
|
|
368
319
|
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
320
|
+
statusCode: 'number',
|
|
369
321
|
body: GetChatappTemplateDetailResponseBody,
|
|
370
322
|
};
|
|
371
323
|
}
|
|
@@ -378,6 +330,7 @@ class ListChatappTemplateRequest extends $tea.Model {
|
|
|
378
330
|
static names() {
|
|
379
331
|
return {
|
|
380
332
|
auditStatus: 'AuditStatus',
|
|
333
|
+
custWabaId: 'CustWabaId',
|
|
381
334
|
language: 'Language',
|
|
382
335
|
name: 'Name',
|
|
383
336
|
page: 'Page',
|
|
@@ -386,6 +339,7 @@ class ListChatappTemplateRequest extends $tea.Model {
|
|
|
386
339
|
static types() {
|
|
387
340
|
return {
|
|
388
341
|
auditStatus: 'string',
|
|
342
|
+
custWabaId: 'string',
|
|
389
343
|
language: 'string',
|
|
390
344
|
name: 'string',
|
|
391
345
|
page: ListChatappTemplateRequestPage,
|
|
@@ -400,6 +354,7 @@ class ListChatappTemplateShrinkRequest extends $tea.Model {
|
|
|
400
354
|
static names() {
|
|
401
355
|
return {
|
|
402
356
|
auditStatus: 'AuditStatus',
|
|
357
|
+
custWabaId: 'CustWabaId',
|
|
403
358
|
language: 'Language',
|
|
404
359
|
name: 'Name',
|
|
405
360
|
pageShrink: 'Page',
|
|
@@ -408,6 +363,7 @@ class ListChatappTemplateShrinkRequest extends $tea.Model {
|
|
|
408
363
|
static types() {
|
|
409
364
|
return {
|
|
410
365
|
auditStatus: 'string',
|
|
366
|
+
custWabaId: 'string',
|
|
411
367
|
language: 'string',
|
|
412
368
|
name: 'string',
|
|
413
369
|
pageShrink: 'string',
|
|
@@ -444,12 +400,14 @@ class ListChatappTemplateResponse extends $tea.Model {
|
|
|
444
400
|
static names() {
|
|
445
401
|
return {
|
|
446
402
|
headers: 'headers',
|
|
403
|
+
statusCode: 'statusCode',
|
|
447
404
|
body: 'body',
|
|
448
405
|
};
|
|
449
406
|
}
|
|
450
407
|
static types() {
|
|
451
408
|
return {
|
|
452
409
|
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
410
|
+
statusCode: 'number',
|
|
453
411
|
body: ListChatappTemplateResponseBody,
|
|
454
412
|
};
|
|
455
413
|
}
|
|
@@ -463,6 +421,9 @@ class SendChatappMessageRequest extends $tea.Model {
|
|
|
463
421
|
return {
|
|
464
422
|
channelType: 'ChannelType',
|
|
465
423
|
content: 'Content',
|
|
424
|
+
custWabaId: 'CustWabaId',
|
|
425
|
+
fallBackContent: 'FallBackContent',
|
|
426
|
+
fallBackId: 'FallBackId',
|
|
466
427
|
from: 'From',
|
|
467
428
|
language: 'Language',
|
|
468
429
|
messageType: 'MessageType',
|
|
@@ -477,6 +438,9 @@ class SendChatappMessageRequest extends $tea.Model {
|
|
|
477
438
|
return {
|
|
478
439
|
channelType: 'string',
|
|
479
440
|
content: 'string',
|
|
441
|
+
custWabaId: 'string',
|
|
442
|
+
fallBackContent: 'string',
|
|
443
|
+
fallBackId: 'string',
|
|
480
444
|
from: 'string',
|
|
481
445
|
language: 'string',
|
|
482
446
|
messageType: 'string',
|
|
@@ -497,6 +461,9 @@ class SendChatappMessageShrinkRequest extends $tea.Model {
|
|
|
497
461
|
return {
|
|
498
462
|
channelType: 'ChannelType',
|
|
499
463
|
content: 'Content',
|
|
464
|
+
custWabaId: 'CustWabaId',
|
|
465
|
+
fallBackContent: 'FallBackContent',
|
|
466
|
+
fallBackId: 'FallBackId',
|
|
500
467
|
from: 'From',
|
|
501
468
|
language: 'Language',
|
|
502
469
|
messageType: 'MessageType',
|
|
@@ -511,6 +478,9 @@ class SendChatappMessageShrinkRequest extends $tea.Model {
|
|
|
511
478
|
return {
|
|
512
479
|
channelType: 'string',
|
|
513
480
|
content: 'string',
|
|
481
|
+
custWabaId: 'string',
|
|
482
|
+
fallBackContent: 'string',
|
|
483
|
+
fallBackId: 'string',
|
|
514
484
|
from: 'string',
|
|
515
485
|
language: 'string',
|
|
516
486
|
messageType: 'string',
|
|
@@ -552,103 +522,19 @@ class SendChatappMessageResponse extends $tea.Model {
|
|
|
552
522
|
static names() {
|
|
553
523
|
return {
|
|
554
524
|
headers: 'headers',
|
|
525
|
+
statusCode: 'statusCode',
|
|
555
526
|
body: 'body',
|
|
556
527
|
};
|
|
557
528
|
}
|
|
558
529
|
static types() {
|
|
559
530
|
return {
|
|
560
531
|
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
532
|
+
statusCode: 'number',
|
|
561
533
|
body: SendChatappMessageResponseBody,
|
|
562
534
|
};
|
|
563
535
|
}
|
|
564
536
|
}
|
|
565
537
|
exports.SendChatappMessageResponse = SendChatappMessageResponse;
|
|
566
|
-
class SendMessageRequest extends $tea.Model {
|
|
567
|
-
constructor(map) {
|
|
568
|
-
super(map);
|
|
569
|
-
}
|
|
570
|
-
static names() {
|
|
571
|
-
return {
|
|
572
|
-
caption: 'Caption',
|
|
573
|
-
channelType: 'ChannelType',
|
|
574
|
-
fileName: 'FileName',
|
|
575
|
-
from: 'From',
|
|
576
|
-
link: 'Link',
|
|
577
|
-
messageType: 'MessageType',
|
|
578
|
-
ownerId: 'OwnerId',
|
|
579
|
-
resourceOwnerAccount: 'ResourceOwnerAccount',
|
|
580
|
-
resourceOwnerId: 'ResourceOwnerId',
|
|
581
|
-
templateBodyParams: 'TemplateBodyParams',
|
|
582
|
-
templateButtonParams: 'TemplateButtonParams',
|
|
583
|
-
templateCode: 'TemplateCode',
|
|
584
|
-
templateHeaderParams: 'TemplateHeaderParams',
|
|
585
|
-
text: 'Text',
|
|
586
|
-
to: 'To',
|
|
587
|
-
type: 'Type',
|
|
588
|
-
};
|
|
589
|
-
}
|
|
590
|
-
static types() {
|
|
591
|
-
return {
|
|
592
|
-
caption: 'string',
|
|
593
|
-
channelType: 'string',
|
|
594
|
-
fileName: 'string',
|
|
595
|
-
from: 'string',
|
|
596
|
-
link: 'string',
|
|
597
|
-
messageType: 'string',
|
|
598
|
-
ownerId: 'number',
|
|
599
|
-
resourceOwnerAccount: 'string',
|
|
600
|
-
resourceOwnerId: 'number',
|
|
601
|
-
templateBodyParams: 'string',
|
|
602
|
-
templateButtonParams: 'string',
|
|
603
|
-
templateCode: 'string',
|
|
604
|
-
templateHeaderParams: 'string',
|
|
605
|
-
text: 'string',
|
|
606
|
-
to: 'string',
|
|
607
|
-
type: 'string',
|
|
608
|
-
};
|
|
609
|
-
}
|
|
610
|
-
}
|
|
611
|
-
exports.SendMessageRequest = SendMessageRequest;
|
|
612
|
-
class SendMessageResponseBody extends $tea.Model {
|
|
613
|
-
constructor(map) {
|
|
614
|
-
super(map);
|
|
615
|
-
}
|
|
616
|
-
static names() {
|
|
617
|
-
return {
|
|
618
|
-
module: 'Module',
|
|
619
|
-
requestId: 'RequestId',
|
|
620
|
-
resultCode: 'ResultCode',
|
|
621
|
-
resultMessage: 'ResultMessage',
|
|
622
|
-
};
|
|
623
|
-
}
|
|
624
|
-
static types() {
|
|
625
|
-
return {
|
|
626
|
-
module: SendMessageResponseBodyModule,
|
|
627
|
-
requestId: 'string',
|
|
628
|
-
resultCode: 'string',
|
|
629
|
-
resultMessage: 'string',
|
|
630
|
-
};
|
|
631
|
-
}
|
|
632
|
-
}
|
|
633
|
-
exports.SendMessageResponseBody = SendMessageResponseBody;
|
|
634
|
-
class SendMessageResponse extends $tea.Model {
|
|
635
|
-
constructor(map) {
|
|
636
|
-
super(map);
|
|
637
|
-
}
|
|
638
|
-
static names() {
|
|
639
|
-
return {
|
|
640
|
-
headers: 'headers',
|
|
641
|
-
body: 'body',
|
|
642
|
-
};
|
|
643
|
-
}
|
|
644
|
-
static types() {
|
|
645
|
-
return {
|
|
646
|
-
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
647
|
-
body: SendMessageResponseBody,
|
|
648
|
-
};
|
|
649
|
-
}
|
|
650
|
-
}
|
|
651
|
-
exports.SendMessageResponse = SendMessageResponse;
|
|
652
538
|
class CheckChatappContactsResponseBodyData extends $tea.Model {
|
|
653
539
|
constructor(map) {
|
|
654
540
|
super(map);
|
|
@@ -667,24 +553,6 @@ class CheckChatappContactsResponseBodyData extends $tea.Model {
|
|
|
667
553
|
}
|
|
668
554
|
}
|
|
669
555
|
exports.CheckChatappContactsResponseBodyData = CheckChatappContactsResponseBodyData;
|
|
670
|
-
class CheckContactsResponseBodyContacts extends $tea.Model {
|
|
671
|
-
constructor(map) {
|
|
672
|
-
super(map);
|
|
673
|
-
}
|
|
674
|
-
static names() {
|
|
675
|
-
return {
|
|
676
|
-
phoneNumber: 'PhoneNumber',
|
|
677
|
-
status: 'Status',
|
|
678
|
-
};
|
|
679
|
-
}
|
|
680
|
-
static types() {
|
|
681
|
-
return {
|
|
682
|
-
phoneNumber: 'string',
|
|
683
|
-
status: 'string',
|
|
684
|
-
};
|
|
685
|
-
}
|
|
686
|
-
}
|
|
687
|
-
exports.CheckContactsResponseBodyContacts = CheckContactsResponseBodyContacts;
|
|
688
556
|
class CreateChatappTemplateRequestComponentsButtons extends $tea.Model {
|
|
689
557
|
constructor(map) {
|
|
690
558
|
super(map);
|
|
@@ -716,6 +584,8 @@ class CreateChatappTemplateRequestComponents extends $tea.Model {
|
|
|
716
584
|
static names() {
|
|
717
585
|
return {
|
|
718
586
|
buttons: 'Buttons',
|
|
587
|
+
caption: 'Caption',
|
|
588
|
+
fileName: 'FileName',
|
|
719
589
|
format: 'Format',
|
|
720
590
|
text: 'Text',
|
|
721
591
|
type: 'Type',
|
|
@@ -725,6 +595,8 @@ class CreateChatappTemplateRequestComponents extends $tea.Model {
|
|
|
725
595
|
static types() {
|
|
726
596
|
return {
|
|
727
597
|
buttons: { 'type': 'array', 'itemType': CreateChatappTemplateRequestComponentsButtons },
|
|
598
|
+
caption: 'string',
|
|
599
|
+
fileName: 'string',
|
|
728
600
|
format: 'string',
|
|
729
601
|
text: 'string',
|
|
730
602
|
type: 'string',
|
|
@@ -782,6 +654,9 @@ class GetChatappTemplateDetailResponseBodyDataComponents extends $tea.Model {
|
|
|
782
654
|
static names() {
|
|
783
655
|
return {
|
|
784
656
|
buttons: 'Buttons',
|
|
657
|
+
caption: 'Caption',
|
|
658
|
+
fileName: 'FileName',
|
|
659
|
+
format: 'Format',
|
|
785
660
|
text: 'Text',
|
|
786
661
|
type: 'Type',
|
|
787
662
|
url: 'Url',
|
|
@@ -790,6 +665,9 @@ class GetChatappTemplateDetailResponseBodyDataComponents extends $tea.Model {
|
|
|
790
665
|
static types() {
|
|
791
666
|
return {
|
|
792
667
|
buttons: { 'type': 'array', 'itemType': GetChatappTemplateDetailResponseBodyDataComponentsButtons },
|
|
668
|
+
caption: 'string',
|
|
669
|
+
fileName: 'string',
|
|
670
|
+
format: 'string',
|
|
793
671
|
text: 'string',
|
|
794
672
|
type: 'string',
|
|
795
673
|
url: 'string',
|
|
@@ -867,26 +745,6 @@ class ListChatappTemplateResponseBodyListTemplate extends $tea.Model {
|
|
|
867
745
|
}
|
|
868
746
|
}
|
|
869
747
|
exports.ListChatappTemplateResponseBodyListTemplate = ListChatappTemplateResponseBodyListTemplate;
|
|
870
|
-
class SendMessageResponseBodyModule extends $tea.Model {
|
|
871
|
-
constructor(map) {
|
|
872
|
-
super(map);
|
|
873
|
-
}
|
|
874
|
-
static names() {
|
|
875
|
-
return {
|
|
876
|
-
fromId: 'FromId',
|
|
877
|
-
messageId: 'MessageId',
|
|
878
|
-
toId: 'ToId',
|
|
879
|
-
};
|
|
880
|
-
}
|
|
881
|
-
static types() {
|
|
882
|
-
return {
|
|
883
|
-
fromId: 'string',
|
|
884
|
-
messageId: 'string',
|
|
885
|
-
toId: 'string',
|
|
886
|
-
};
|
|
887
|
-
}
|
|
888
|
-
}
|
|
889
|
-
exports.SendMessageResponseBodyModule = SendMessageResponseBodyModule;
|
|
890
748
|
class Client extends openapi_client_1.default {
|
|
891
749
|
constructor(config) {
|
|
892
750
|
super(config);
|
|
@@ -917,6 +775,9 @@ class Client extends openapi_client_1.default {
|
|
|
917
775
|
if (!tea_util_1.default.isUnset(request.contactsShrink)) {
|
|
918
776
|
body["Contacts"] = request.contactsShrink;
|
|
919
777
|
}
|
|
778
|
+
if (!tea_util_1.default.isUnset(request.custWabaId)) {
|
|
779
|
+
body["CustWabaId"] = request.custWabaId;
|
|
780
|
+
}
|
|
920
781
|
if (!tea_util_1.default.isUnset(request.from)) {
|
|
921
782
|
body["From"] = request.from;
|
|
922
783
|
}
|
|
@@ -940,49 +801,6 @@ class Client extends openapi_client_1.default {
|
|
|
940
801
|
let runtime = new $Util.RuntimeOptions({});
|
|
941
802
|
return await this.checkChatappContactsWithOptions(request, runtime);
|
|
942
803
|
}
|
|
943
|
-
async checkContactsWithOptions(request, runtime) {
|
|
944
|
-
tea_util_1.default.validateModel(request);
|
|
945
|
-
let query = {};
|
|
946
|
-
if (!tea_util_1.default.isUnset(request.ownerId)) {
|
|
947
|
-
query["OwnerId"] = request.ownerId;
|
|
948
|
-
}
|
|
949
|
-
if (!tea_util_1.default.isUnset(request.resourceOwnerAccount)) {
|
|
950
|
-
query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
|
|
951
|
-
}
|
|
952
|
-
if (!tea_util_1.default.isUnset(request.resourceOwnerId)) {
|
|
953
|
-
query["ResourceOwnerId"] = request.resourceOwnerId;
|
|
954
|
-
}
|
|
955
|
-
let body = {};
|
|
956
|
-
if (!tea_util_1.default.isUnset(request.channelType)) {
|
|
957
|
-
body["ChannelType"] = request.channelType;
|
|
958
|
-
}
|
|
959
|
-
if (!tea_util_1.default.isUnset(request.contacts)) {
|
|
960
|
-
body["Contacts"] = request.contacts;
|
|
961
|
-
}
|
|
962
|
-
if (!tea_util_1.default.isUnset(request.from)) {
|
|
963
|
-
body["From"] = request.from;
|
|
964
|
-
}
|
|
965
|
-
let req = new $OpenApi.OpenApiRequest({
|
|
966
|
-
query: openapi_util_1.default.query(query),
|
|
967
|
-
body: openapi_util_1.default.parseToMap(body),
|
|
968
|
-
});
|
|
969
|
-
let params = new $OpenApi.Params({
|
|
970
|
-
action: "CheckContacts",
|
|
971
|
-
version: "2020-06-06",
|
|
972
|
-
protocol: "HTTPS",
|
|
973
|
-
pathname: "/",
|
|
974
|
-
method: "POST",
|
|
975
|
-
authType: "AK",
|
|
976
|
-
style: "RPC",
|
|
977
|
-
reqBodyType: "formData",
|
|
978
|
-
bodyType: "json",
|
|
979
|
-
});
|
|
980
|
-
return $tea.cast(await this.callApi(params, req, runtime), new CheckContactsResponse({}));
|
|
981
|
-
}
|
|
982
|
-
async checkContacts(request) {
|
|
983
|
-
let runtime = new $Util.RuntimeOptions({});
|
|
984
|
-
return await this.checkContactsWithOptions(request, runtime);
|
|
985
|
-
}
|
|
986
804
|
async createChatappTemplateWithOptions(tmpReq, runtime) {
|
|
987
805
|
tea_util_1.default.validateModel(tmpReq);
|
|
988
806
|
let request = new CreateChatappTemplateShrinkRequest({});
|
|
@@ -1000,6 +818,9 @@ class Client extends openapi_client_1.default {
|
|
|
1000
818
|
if (!tea_util_1.default.isUnset(request.componentsShrink)) {
|
|
1001
819
|
body["Components"] = request.componentsShrink;
|
|
1002
820
|
}
|
|
821
|
+
if (!tea_util_1.default.isUnset(request.custWabaId)) {
|
|
822
|
+
body["CustWabaId"] = request.custWabaId;
|
|
823
|
+
}
|
|
1003
824
|
if (!tea_util_1.default.isUnset(request.exampleShrink)) {
|
|
1004
825
|
body["Example"] = request.exampleShrink;
|
|
1005
826
|
}
|
|
@@ -1035,6 +856,9 @@ class Client extends openapi_client_1.default {
|
|
|
1035
856
|
async deleteChatappTemplateWithOptions(request, runtime) {
|
|
1036
857
|
tea_util_1.default.validateModel(request);
|
|
1037
858
|
let query = {};
|
|
859
|
+
if (!tea_util_1.default.isUnset(request.custWabaId)) {
|
|
860
|
+
query["CustWabaId"] = request.custWabaId;
|
|
861
|
+
}
|
|
1038
862
|
if (!tea_util_1.default.isUnset(request.templateCode)) {
|
|
1039
863
|
query["TemplateCode"] = request.templateCode;
|
|
1040
864
|
}
|
|
@@ -1061,12 +885,12 @@ class Client extends openapi_client_1.default {
|
|
|
1061
885
|
async getChatappTemplateDetailWithOptions(request, runtime) {
|
|
1062
886
|
tea_util_1.default.validateModel(request);
|
|
1063
887
|
let query = {};
|
|
888
|
+
if (!tea_util_1.default.isUnset(request.custWabaId)) {
|
|
889
|
+
query["CustWabaId"] = request.custWabaId;
|
|
890
|
+
}
|
|
1064
891
|
if (!tea_util_1.default.isUnset(request.language)) {
|
|
1065
892
|
query["Language"] = request.language;
|
|
1066
893
|
}
|
|
1067
|
-
if (!tea_util_1.default.isUnset(request.ownerId)) {
|
|
1068
|
-
query["OwnerId"] = request.ownerId;
|
|
1069
|
-
}
|
|
1070
894
|
if (!tea_util_1.default.isUnset(request.templateCode)) {
|
|
1071
895
|
query["TemplateCode"] = request.templateCode;
|
|
1072
896
|
}
|
|
@@ -1101,6 +925,9 @@ class Client extends openapi_client_1.default {
|
|
|
1101
925
|
if (!tea_util_1.default.isUnset(request.auditStatus)) {
|
|
1102
926
|
query["AuditStatus"] = request.auditStatus;
|
|
1103
927
|
}
|
|
928
|
+
if (!tea_util_1.default.isUnset(request.custWabaId)) {
|
|
929
|
+
query["CustWabaId"] = request.custWabaId;
|
|
930
|
+
}
|
|
1104
931
|
if (!tea_util_1.default.isUnset(request.language)) {
|
|
1105
932
|
query["Language"] = request.language;
|
|
1106
933
|
}
|
|
@@ -1151,6 +978,15 @@ class Client extends openapi_client_1.default {
|
|
|
1151
978
|
if (!tea_util_1.default.isUnset(request.channelType)) {
|
|
1152
979
|
body["ChannelType"] = request.channelType;
|
|
1153
980
|
}
|
|
981
|
+
if (!tea_util_1.default.isUnset(request.custWabaId)) {
|
|
982
|
+
body["CustWabaId"] = request.custWabaId;
|
|
983
|
+
}
|
|
984
|
+
if (!tea_util_1.default.isUnset(request.fallBackContent)) {
|
|
985
|
+
body["FallBackContent"] = request.fallBackContent;
|
|
986
|
+
}
|
|
987
|
+
if (!tea_util_1.default.isUnset(request.fallBackId)) {
|
|
988
|
+
body["FallBackId"] = request.fallBackId;
|
|
989
|
+
}
|
|
1154
990
|
if (!tea_util_1.default.isUnset(request.from)) {
|
|
1155
991
|
body["From"] = request.from;
|
|
1156
992
|
}
|
|
@@ -1193,79 +1029,6 @@ class Client extends openapi_client_1.default {
|
|
|
1193
1029
|
let runtime = new $Util.RuntimeOptions({});
|
|
1194
1030
|
return await this.sendChatappMessageWithOptions(request, runtime);
|
|
1195
1031
|
}
|
|
1196
|
-
async sendMessageWithOptions(request, runtime) {
|
|
1197
|
-
tea_util_1.default.validateModel(request);
|
|
1198
|
-
let query = {};
|
|
1199
|
-
if (!tea_util_1.default.isUnset(request.ownerId)) {
|
|
1200
|
-
query["OwnerId"] = request.ownerId;
|
|
1201
|
-
}
|
|
1202
|
-
if (!tea_util_1.default.isUnset(request.resourceOwnerAccount)) {
|
|
1203
|
-
query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
|
|
1204
|
-
}
|
|
1205
|
-
if (!tea_util_1.default.isUnset(request.resourceOwnerId)) {
|
|
1206
|
-
query["ResourceOwnerId"] = request.resourceOwnerId;
|
|
1207
|
-
}
|
|
1208
|
-
let body = {};
|
|
1209
|
-
if (!tea_util_1.default.isUnset(request.caption)) {
|
|
1210
|
-
body["Caption"] = request.caption;
|
|
1211
|
-
}
|
|
1212
|
-
if (!tea_util_1.default.isUnset(request.channelType)) {
|
|
1213
|
-
body["ChannelType"] = request.channelType;
|
|
1214
|
-
}
|
|
1215
|
-
if (!tea_util_1.default.isUnset(request.fileName)) {
|
|
1216
|
-
body["FileName"] = request.fileName;
|
|
1217
|
-
}
|
|
1218
|
-
if (!tea_util_1.default.isUnset(request.from)) {
|
|
1219
|
-
body["From"] = request.from;
|
|
1220
|
-
}
|
|
1221
|
-
if (!tea_util_1.default.isUnset(request.link)) {
|
|
1222
|
-
body["Link"] = request.link;
|
|
1223
|
-
}
|
|
1224
|
-
if (!tea_util_1.default.isUnset(request.messageType)) {
|
|
1225
|
-
body["MessageType"] = request.messageType;
|
|
1226
|
-
}
|
|
1227
|
-
if (!tea_util_1.default.isUnset(request.templateBodyParams)) {
|
|
1228
|
-
body["TemplateBodyParams"] = request.templateBodyParams;
|
|
1229
|
-
}
|
|
1230
|
-
if (!tea_util_1.default.isUnset(request.templateButtonParams)) {
|
|
1231
|
-
body["TemplateButtonParams"] = request.templateButtonParams;
|
|
1232
|
-
}
|
|
1233
|
-
if (!tea_util_1.default.isUnset(request.templateCode)) {
|
|
1234
|
-
body["TemplateCode"] = request.templateCode;
|
|
1235
|
-
}
|
|
1236
|
-
if (!tea_util_1.default.isUnset(request.templateHeaderParams)) {
|
|
1237
|
-
body["TemplateHeaderParams"] = request.templateHeaderParams;
|
|
1238
|
-
}
|
|
1239
|
-
if (!tea_util_1.default.isUnset(request.text)) {
|
|
1240
|
-
body["Text"] = request.text;
|
|
1241
|
-
}
|
|
1242
|
-
if (!tea_util_1.default.isUnset(request.to)) {
|
|
1243
|
-
body["To"] = request.to;
|
|
1244
|
-
}
|
|
1245
|
-
if (!tea_util_1.default.isUnset(request.type)) {
|
|
1246
|
-
body["Type"] = request.type;
|
|
1247
|
-
}
|
|
1248
|
-
let req = new $OpenApi.OpenApiRequest({
|
|
1249
|
-
query: openapi_util_1.default.query(query),
|
|
1250
|
-
body: openapi_util_1.default.parseToMap(body),
|
|
1251
|
-
});
|
|
1252
|
-
let params = new $OpenApi.Params({
|
|
1253
|
-
action: "SendMessage",
|
|
1254
|
-
version: "2020-06-06",
|
|
1255
|
-
protocol: "HTTPS",
|
|
1256
|
-
pathname: "/",
|
|
1257
|
-
method: "POST",
|
|
1258
|
-
authType: "AK",
|
|
1259
|
-
style: "RPC",
|
|
1260
|
-
reqBodyType: "formData",
|
|
1261
|
-
bodyType: "json",
|
|
1262
|
-
});
|
|
1263
|
-
return $tea.cast(await this.callApi(params, req, runtime), new SendMessageResponse({}));
|
|
1264
|
-
}
|
|
1265
|
-
async sendMessage(request) {
|
|
1266
|
-
let runtime = new $Util.RuntimeOptions({});
|
|
1267
|
-
return await this.sendMessageWithOptions(request, runtime);
|
|
1268
|
-
}
|
|
1269
1032
|
}
|
|
1270
1033
|
exports.default = Client;
|
|
1271
1034
|
//# sourceMappingURL=client.js.map
|