@alicloud/cams20200606 1.1.0 → 1.2.0
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 +545 -2
- package/dist/client.js +1102 -33
- package/dist/client.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +1455 -117
package/dist/client.js
CHANGED
|
@@ -19,6 +19,72 @@ const openapi_client_1 = __importStar(require("@alicloud/openapi-client")), $Ope
|
|
|
19
19
|
const openapi_util_1 = __importDefault(require("@alicloud/openapi-util"));
|
|
20
20
|
const endpoint_util_1 = __importDefault(require("@alicloud/endpoint-util"));
|
|
21
21
|
const $tea = __importStar(require("@alicloud/tea-typescript"));
|
|
22
|
+
class AddChatappPhoneNumberRequest extends $tea.Model {
|
|
23
|
+
constructor(map) {
|
|
24
|
+
super(map);
|
|
25
|
+
}
|
|
26
|
+
static names() {
|
|
27
|
+
return {
|
|
28
|
+
cc: 'Cc',
|
|
29
|
+
custSpaceId: 'CustSpaceId',
|
|
30
|
+
phoneNumber: 'PhoneNumber',
|
|
31
|
+
preValidateId: 'PreValidateId',
|
|
32
|
+
verifiedName: 'VerifiedName',
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
static types() {
|
|
36
|
+
return {
|
|
37
|
+
cc: 'string',
|
|
38
|
+
custSpaceId: 'string',
|
|
39
|
+
phoneNumber: 'string',
|
|
40
|
+
preValidateId: 'string',
|
|
41
|
+
verifiedName: 'string',
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
exports.AddChatappPhoneNumberRequest = AddChatappPhoneNumberRequest;
|
|
46
|
+
class AddChatappPhoneNumberResponseBody extends $tea.Model {
|
|
47
|
+
constructor(map) {
|
|
48
|
+
super(map);
|
|
49
|
+
}
|
|
50
|
+
static names() {
|
|
51
|
+
return {
|
|
52
|
+
accessDeniedDetail: 'AccessDeniedDetail',
|
|
53
|
+
code: 'Code',
|
|
54
|
+
message: 'Message',
|
|
55
|
+
requestId: 'RequestId',
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
static types() {
|
|
59
|
+
return {
|
|
60
|
+
accessDeniedDetail: 'string',
|
|
61
|
+
code: 'string',
|
|
62
|
+
message: 'string',
|
|
63
|
+
requestId: 'string',
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
exports.AddChatappPhoneNumberResponseBody = AddChatappPhoneNumberResponseBody;
|
|
68
|
+
class AddChatappPhoneNumberResponse extends $tea.Model {
|
|
69
|
+
constructor(map) {
|
|
70
|
+
super(map);
|
|
71
|
+
}
|
|
72
|
+
static names() {
|
|
73
|
+
return {
|
|
74
|
+
headers: 'headers',
|
|
75
|
+
statusCode: 'statusCode',
|
|
76
|
+
body: 'body',
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
static types() {
|
|
80
|
+
return {
|
|
81
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
82
|
+
statusCode: 'number',
|
|
83
|
+
body: AddChatappPhoneNumberResponseBody,
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
exports.AddChatappPhoneNumberResponse = AddChatappPhoneNumberResponse;
|
|
22
88
|
class BeeBotAssociateRequest extends $tea.Model {
|
|
23
89
|
constructor(map) {
|
|
24
90
|
super(map);
|
|
@@ -479,6 +545,66 @@ class ChatappMigrationVerifiedResponse extends $tea.Model {
|
|
|
479
545
|
}
|
|
480
546
|
}
|
|
481
547
|
exports.ChatappMigrationVerifiedResponse = ChatappMigrationVerifiedResponse;
|
|
548
|
+
class ChatappPhoneNumberDeregisterRequest extends $tea.Model {
|
|
549
|
+
constructor(map) {
|
|
550
|
+
super(map);
|
|
551
|
+
}
|
|
552
|
+
static names() {
|
|
553
|
+
return {
|
|
554
|
+
custSpaceId: 'CustSpaceId',
|
|
555
|
+
phoneNumber: 'PhoneNumber',
|
|
556
|
+
};
|
|
557
|
+
}
|
|
558
|
+
static types() {
|
|
559
|
+
return {
|
|
560
|
+
custSpaceId: 'string',
|
|
561
|
+
phoneNumber: 'string',
|
|
562
|
+
};
|
|
563
|
+
}
|
|
564
|
+
}
|
|
565
|
+
exports.ChatappPhoneNumberDeregisterRequest = ChatappPhoneNumberDeregisterRequest;
|
|
566
|
+
class ChatappPhoneNumberDeregisterResponseBody extends $tea.Model {
|
|
567
|
+
constructor(map) {
|
|
568
|
+
super(map);
|
|
569
|
+
}
|
|
570
|
+
static names() {
|
|
571
|
+
return {
|
|
572
|
+
accessDeniedDetail: 'AccessDeniedDetail',
|
|
573
|
+
code: 'Code',
|
|
574
|
+
message: 'Message',
|
|
575
|
+
requestId: 'RequestId',
|
|
576
|
+
};
|
|
577
|
+
}
|
|
578
|
+
static types() {
|
|
579
|
+
return {
|
|
580
|
+
accessDeniedDetail: 'string',
|
|
581
|
+
code: 'string',
|
|
582
|
+
message: 'string',
|
|
583
|
+
requestId: 'string',
|
|
584
|
+
};
|
|
585
|
+
}
|
|
586
|
+
}
|
|
587
|
+
exports.ChatappPhoneNumberDeregisterResponseBody = ChatappPhoneNumberDeregisterResponseBody;
|
|
588
|
+
class ChatappPhoneNumberDeregisterResponse extends $tea.Model {
|
|
589
|
+
constructor(map) {
|
|
590
|
+
super(map);
|
|
591
|
+
}
|
|
592
|
+
static names() {
|
|
593
|
+
return {
|
|
594
|
+
headers: 'headers',
|
|
595
|
+
statusCode: 'statusCode',
|
|
596
|
+
body: 'body',
|
|
597
|
+
};
|
|
598
|
+
}
|
|
599
|
+
static types() {
|
|
600
|
+
return {
|
|
601
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
602
|
+
statusCode: 'number',
|
|
603
|
+
body: ChatappPhoneNumberDeregisterResponseBody,
|
|
604
|
+
};
|
|
605
|
+
}
|
|
606
|
+
}
|
|
607
|
+
exports.ChatappPhoneNumberDeregisterResponse = ChatappPhoneNumberDeregisterResponse;
|
|
482
608
|
class ChatappPhoneNumberRegisterRequest extends $tea.Model {
|
|
483
609
|
constructor(map) {
|
|
484
610
|
super(map);
|
|
@@ -905,6 +1031,136 @@ class DeleteChatappTemplateResponse extends $tea.Model {
|
|
|
905
1031
|
}
|
|
906
1032
|
}
|
|
907
1033
|
exports.DeleteChatappTemplateResponse = DeleteChatappTemplateResponse;
|
|
1034
|
+
class EnableWhatsappROIMetricRequest extends $tea.Model {
|
|
1035
|
+
constructor(map) {
|
|
1036
|
+
super(map);
|
|
1037
|
+
}
|
|
1038
|
+
static names() {
|
|
1039
|
+
return {
|
|
1040
|
+
custSpaceId: 'CustSpaceId',
|
|
1041
|
+
isvCode: 'IsvCode',
|
|
1042
|
+
};
|
|
1043
|
+
}
|
|
1044
|
+
static types() {
|
|
1045
|
+
return {
|
|
1046
|
+
custSpaceId: 'string',
|
|
1047
|
+
isvCode: 'string',
|
|
1048
|
+
};
|
|
1049
|
+
}
|
|
1050
|
+
}
|
|
1051
|
+
exports.EnableWhatsappROIMetricRequest = EnableWhatsappROIMetricRequest;
|
|
1052
|
+
class EnableWhatsappROIMetricResponseBody extends $tea.Model {
|
|
1053
|
+
constructor(map) {
|
|
1054
|
+
super(map);
|
|
1055
|
+
}
|
|
1056
|
+
static names() {
|
|
1057
|
+
return {
|
|
1058
|
+
accessDeniedDetail: 'AccessDeniedDetail',
|
|
1059
|
+
code: 'Code',
|
|
1060
|
+
message: 'Message',
|
|
1061
|
+
requestId: 'RequestId',
|
|
1062
|
+
};
|
|
1063
|
+
}
|
|
1064
|
+
static types() {
|
|
1065
|
+
return {
|
|
1066
|
+
accessDeniedDetail: 'string',
|
|
1067
|
+
code: 'string',
|
|
1068
|
+
message: 'string',
|
|
1069
|
+
requestId: 'string',
|
|
1070
|
+
};
|
|
1071
|
+
}
|
|
1072
|
+
}
|
|
1073
|
+
exports.EnableWhatsappROIMetricResponseBody = EnableWhatsappROIMetricResponseBody;
|
|
1074
|
+
class EnableWhatsappROIMetricResponse extends $tea.Model {
|
|
1075
|
+
constructor(map) {
|
|
1076
|
+
super(map);
|
|
1077
|
+
}
|
|
1078
|
+
static names() {
|
|
1079
|
+
return {
|
|
1080
|
+
headers: 'headers',
|
|
1081
|
+
statusCode: 'statusCode',
|
|
1082
|
+
body: 'body',
|
|
1083
|
+
};
|
|
1084
|
+
}
|
|
1085
|
+
static types() {
|
|
1086
|
+
return {
|
|
1087
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
1088
|
+
statusCode: 'number',
|
|
1089
|
+
body: EnableWhatsappROIMetricResponseBody,
|
|
1090
|
+
};
|
|
1091
|
+
}
|
|
1092
|
+
}
|
|
1093
|
+
exports.EnableWhatsappROIMetricResponse = EnableWhatsappROIMetricResponse;
|
|
1094
|
+
class GetChatappPhoneNumberMetricRequest extends $tea.Model {
|
|
1095
|
+
constructor(map) {
|
|
1096
|
+
super(map);
|
|
1097
|
+
}
|
|
1098
|
+
static names() {
|
|
1099
|
+
return {
|
|
1100
|
+
custSpaceId: 'CustSpaceId',
|
|
1101
|
+
end: 'End',
|
|
1102
|
+
granularity: 'Granularity',
|
|
1103
|
+
isvCode: 'IsvCode',
|
|
1104
|
+
phoneNumber: 'PhoneNumber',
|
|
1105
|
+
start: 'Start',
|
|
1106
|
+
};
|
|
1107
|
+
}
|
|
1108
|
+
static types() {
|
|
1109
|
+
return {
|
|
1110
|
+
custSpaceId: 'string',
|
|
1111
|
+
end: 'number',
|
|
1112
|
+
granularity: 'string',
|
|
1113
|
+
isvCode: 'string',
|
|
1114
|
+
phoneNumber: 'string',
|
|
1115
|
+
start: 'number',
|
|
1116
|
+
};
|
|
1117
|
+
}
|
|
1118
|
+
}
|
|
1119
|
+
exports.GetChatappPhoneNumberMetricRequest = GetChatappPhoneNumberMetricRequest;
|
|
1120
|
+
class GetChatappPhoneNumberMetricResponseBody extends $tea.Model {
|
|
1121
|
+
constructor(map) {
|
|
1122
|
+
super(map);
|
|
1123
|
+
}
|
|
1124
|
+
static names() {
|
|
1125
|
+
return {
|
|
1126
|
+
accessDeniedDetail: 'AccessDeniedDetail',
|
|
1127
|
+
code: 'Code',
|
|
1128
|
+
data: 'Data',
|
|
1129
|
+
message: 'Message',
|
|
1130
|
+
requestId: 'RequestId',
|
|
1131
|
+
};
|
|
1132
|
+
}
|
|
1133
|
+
static types() {
|
|
1134
|
+
return {
|
|
1135
|
+
accessDeniedDetail: 'string',
|
|
1136
|
+
code: 'string',
|
|
1137
|
+
data: { 'type': 'array', 'itemType': GetChatappPhoneNumberMetricResponseBodyData },
|
|
1138
|
+
message: 'string',
|
|
1139
|
+
requestId: 'string',
|
|
1140
|
+
};
|
|
1141
|
+
}
|
|
1142
|
+
}
|
|
1143
|
+
exports.GetChatappPhoneNumberMetricResponseBody = GetChatappPhoneNumberMetricResponseBody;
|
|
1144
|
+
class GetChatappPhoneNumberMetricResponse extends $tea.Model {
|
|
1145
|
+
constructor(map) {
|
|
1146
|
+
super(map);
|
|
1147
|
+
}
|
|
1148
|
+
static names() {
|
|
1149
|
+
return {
|
|
1150
|
+
headers: 'headers',
|
|
1151
|
+
statusCode: 'statusCode',
|
|
1152
|
+
body: 'body',
|
|
1153
|
+
};
|
|
1154
|
+
}
|
|
1155
|
+
static types() {
|
|
1156
|
+
return {
|
|
1157
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
1158
|
+
statusCode: 'number',
|
|
1159
|
+
body: GetChatappPhoneNumberMetricResponseBody,
|
|
1160
|
+
};
|
|
1161
|
+
}
|
|
1162
|
+
}
|
|
1163
|
+
exports.GetChatappPhoneNumberMetricResponse = GetChatappPhoneNumberMetricResponse;
|
|
908
1164
|
class GetChatappTemplateDetailRequest extends $tea.Model {
|
|
909
1165
|
constructor(map) {
|
|
910
1166
|
super(map);
|
|
@@ -975,6 +1231,80 @@ class GetChatappTemplateDetailResponse extends $tea.Model {
|
|
|
975
1231
|
}
|
|
976
1232
|
}
|
|
977
1233
|
exports.GetChatappTemplateDetailResponse = GetChatappTemplateDetailResponse;
|
|
1234
|
+
class GetChatappTemplateMetricRequest extends $tea.Model {
|
|
1235
|
+
constructor(map) {
|
|
1236
|
+
super(map);
|
|
1237
|
+
}
|
|
1238
|
+
static names() {
|
|
1239
|
+
return {
|
|
1240
|
+
custSpaceId: 'CustSpaceId',
|
|
1241
|
+
end: 'End',
|
|
1242
|
+
granularity: 'Granularity',
|
|
1243
|
+
isvCode: 'IsvCode',
|
|
1244
|
+
language: 'Language',
|
|
1245
|
+
start: 'Start',
|
|
1246
|
+
templateCode: 'TemplateCode',
|
|
1247
|
+
templateType: 'TemplateType',
|
|
1248
|
+
};
|
|
1249
|
+
}
|
|
1250
|
+
static types() {
|
|
1251
|
+
return {
|
|
1252
|
+
custSpaceId: 'string',
|
|
1253
|
+
end: 'number',
|
|
1254
|
+
granularity: 'string',
|
|
1255
|
+
isvCode: 'string',
|
|
1256
|
+
language: 'string',
|
|
1257
|
+
start: 'number',
|
|
1258
|
+
templateCode: 'string',
|
|
1259
|
+
templateType: 'string',
|
|
1260
|
+
};
|
|
1261
|
+
}
|
|
1262
|
+
}
|
|
1263
|
+
exports.GetChatappTemplateMetricRequest = GetChatappTemplateMetricRequest;
|
|
1264
|
+
class GetChatappTemplateMetricResponseBody extends $tea.Model {
|
|
1265
|
+
constructor(map) {
|
|
1266
|
+
super(map);
|
|
1267
|
+
}
|
|
1268
|
+
static names() {
|
|
1269
|
+
return {
|
|
1270
|
+
accessDeniedDetail: 'AccessDeniedDetail',
|
|
1271
|
+
code: 'Code',
|
|
1272
|
+
data: 'Data',
|
|
1273
|
+
message: 'Message',
|
|
1274
|
+
requestId: 'RequestId',
|
|
1275
|
+
};
|
|
1276
|
+
}
|
|
1277
|
+
static types() {
|
|
1278
|
+
return {
|
|
1279
|
+
accessDeniedDetail: 'string',
|
|
1280
|
+
code: 'string',
|
|
1281
|
+
data: { 'type': 'array', 'itemType': GetChatappTemplateMetricResponseBodyData },
|
|
1282
|
+
message: 'string',
|
|
1283
|
+
requestId: 'string',
|
|
1284
|
+
};
|
|
1285
|
+
}
|
|
1286
|
+
}
|
|
1287
|
+
exports.GetChatappTemplateMetricResponseBody = GetChatappTemplateMetricResponseBody;
|
|
1288
|
+
class GetChatappTemplateMetricResponse extends $tea.Model {
|
|
1289
|
+
constructor(map) {
|
|
1290
|
+
super(map);
|
|
1291
|
+
}
|
|
1292
|
+
static names() {
|
|
1293
|
+
return {
|
|
1294
|
+
headers: 'headers',
|
|
1295
|
+
statusCode: 'statusCode',
|
|
1296
|
+
body: 'body',
|
|
1297
|
+
};
|
|
1298
|
+
}
|
|
1299
|
+
static types() {
|
|
1300
|
+
return {
|
|
1301
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
1302
|
+
statusCode: 'number',
|
|
1303
|
+
body: GetChatappTemplateMetricResponseBody,
|
|
1304
|
+
};
|
|
1305
|
+
}
|
|
1306
|
+
}
|
|
1307
|
+
exports.GetChatappTemplateMetricResponse = GetChatappTemplateMetricResponse;
|
|
978
1308
|
class GetChatappUploadAuthorizationRequest extends $tea.Model {
|
|
979
1309
|
constructor(map) {
|
|
980
1310
|
super(map);
|
|
@@ -1242,30 +1572,100 @@ class GetPreValidatePhoneIdRequest extends $tea.Model {
|
|
|
1242
1572
|
};
|
|
1243
1573
|
}
|
|
1244
1574
|
}
|
|
1245
|
-
exports.GetPreValidatePhoneIdRequest = GetPreValidatePhoneIdRequest;
|
|
1246
|
-
class GetPreValidatePhoneIdResponseBody extends $tea.Model {
|
|
1575
|
+
exports.GetPreValidatePhoneIdRequest = GetPreValidatePhoneIdRequest;
|
|
1576
|
+
class GetPreValidatePhoneIdResponseBody extends $tea.Model {
|
|
1577
|
+
constructor(map) {
|
|
1578
|
+
super(map);
|
|
1579
|
+
}
|
|
1580
|
+
static names() {
|
|
1581
|
+
return {
|
|
1582
|
+
code: 'Code',
|
|
1583
|
+
data: 'Data',
|
|
1584
|
+
message: 'Message',
|
|
1585
|
+
requestId: 'RequestId',
|
|
1586
|
+
};
|
|
1587
|
+
}
|
|
1588
|
+
static types() {
|
|
1589
|
+
return {
|
|
1590
|
+
code: 'string',
|
|
1591
|
+
data: GetPreValidatePhoneIdResponseBodyData,
|
|
1592
|
+
message: 'string',
|
|
1593
|
+
requestId: 'string',
|
|
1594
|
+
};
|
|
1595
|
+
}
|
|
1596
|
+
}
|
|
1597
|
+
exports.GetPreValidatePhoneIdResponseBody = GetPreValidatePhoneIdResponseBody;
|
|
1598
|
+
class GetPreValidatePhoneIdResponse extends $tea.Model {
|
|
1599
|
+
constructor(map) {
|
|
1600
|
+
super(map);
|
|
1601
|
+
}
|
|
1602
|
+
static names() {
|
|
1603
|
+
return {
|
|
1604
|
+
headers: 'headers',
|
|
1605
|
+
statusCode: 'statusCode',
|
|
1606
|
+
body: 'body',
|
|
1607
|
+
};
|
|
1608
|
+
}
|
|
1609
|
+
static types() {
|
|
1610
|
+
return {
|
|
1611
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
1612
|
+
statusCode: 'number',
|
|
1613
|
+
body: GetPreValidatePhoneIdResponseBody,
|
|
1614
|
+
};
|
|
1615
|
+
}
|
|
1616
|
+
}
|
|
1617
|
+
exports.GetPreValidatePhoneIdResponse = GetPreValidatePhoneIdResponse;
|
|
1618
|
+
class GetWhatsappConnectionCatalogRequest extends $tea.Model {
|
|
1619
|
+
constructor(map) {
|
|
1620
|
+
super(map);
|
|
1621
|
+
}
|
|
1622
|
+
static names() {
|
|
1623
|
+
return {
|
|
1624
|
+
custSpaceId: 'CustSpaceId',
|
|
1625
|
+
ownerId: 'OwnerId',
|
|
1626
|
+
resourceOwnerAccount: 'ResourceOwnerAccount',
|
|
1627
|
+
resourceOwnerId: 'ResourceOwnerId',
|
|
1628
|
+
wabaId: 'WabaId',
|
|
1629
|
+
};
|
|
1630
|
+
}
|
|
1631
|
+
static types() {
|
|
1632
|
+
return {
|
|
1633
|
+
custSpaceId: 'string',
|
|
1634
|
+
ownerId: 'number',
|
|
1635
|
+
resourceOwnerAccount: 'string',
|
|
1636
|
+
resourceOwnerId: 'number',
|
|
1637
|
+
wabaId: 'string',
|
|
1638
|
+
};
|
|
1639
|
+
}
|
|
1640
|
+
}
|
|
1641
|
+
exports.GetWhatsappConnectionCatalogRequest = GetWhatsappConnectionCatalogRequest;
|
|
1642
|
+
class GetWhatsappConnectionCatalogResponseBody extends $tea.Model {
|
|
1247
1643
|
constructor(map) {
|
|
1248
1644
|
super(map);
|
|
1249
1645
|
}
|
|
1250
1646
|
static names() {
|
|
1251
1647
|
return {
|
|
1648
|
+
accessDeniedDetail: 'AccessDeniedDetail',
|
|
1252
1649
|
code: 'Code',
|
|
1253
|
-
data: 'Data',
|
|
1254
1650
|
message: 'Message',
|
|
1651
|
+
model: 'Model',
|
|
1255
1652
|
requestId: 'RequestId',
|
|
1653
|
+
success: 'Success',
|
|
1256
1654
|
};
|
|
1257
1655
|
}
|
|
1258
1656
|
static types() {
|
|
1259
1657
|
return {
|
|
1658
|
+
accessDeniedDetail: 'string',
|
|
1260
1659
|
code: 'string',
|
|
1261
|
-
data: GetPreValidatePhoneIdResponseBodyData,
|
|
1262
1660
|
message: 'string',
|
|
1661
|
+
model: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
|
|
1263
1662
|
requestId: 'string',
|
|
1663
|
+
success: 'boolean',
|
|
1264
1664
|
};
|
|
1265
1665
|
}
|
|
1266
1666
|
}
|
|
1267
|
-
exports.
|
|
1268
|
-
class
|
|
1667
|
+
exports.GetWhatsappConnectionCatalogResponseBody = GetWhatsappConnectionCatalogResponseBody;
|
|
1668
|
+
class GetWhatsappConnectionCatalogResponse extends $tea.Model {
|
|
1269
1669
|
constructor(map) {
|
|
1270
1670
|
super(map);
|
|
1271
1671
|
}
|
|
@@ -1280,11 +1680,11 @@ class GetPreValidatePhoneIdResponse extends $tea.Model {
|
|
|
1280
1680
|
return {
|
|
1281
1681
|
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
1282
1682
|
statusCode: 'number',
|
|
1283
|
-
body:
|
|
1683
|
+
body: GetWhatsappConnectionCatalogResponseBody,
|
|
1284
1684
|
};
|
|
1285
1685
|
}
|
|
1286
1686
|
}
|
|
1287
|
-
exports.
|
|
1687
|
+
exports.GetWhatsappConnectionCatalogResponse = GetWhatsappConnectionCatalogResponse;
|
|
1288
1688
|
class IsvGetAppIdRequest extends $tea.Model {
|
|
1289
1689
|
constructor(map) {
|
|
1290
1690
|
super(map);
|
|
@@ -1451,6 +1851,164 @@ class ListChatappTemplateResponse extends $tea.Model {
|
|
|
1451
1851
|
}
|
|
1452
1852
|
}
|
|
1453
1853
|
exports.ListChatappTemplateResponse = ListChatappTemplateResponse;
|
|
1854
|
+
class ListProductRequest extends $tea.Model {
|
|
1855
|
+
constructor(map) {
|
|
1856
|
+
super(map);
|
|
1857
|
+
}
|
|
1858
|
+
static names() {
|
|
1859
|
+
return {
|
|
1860
|
+
after: 'After',
|
|
1861
|
+
before: 'Before',
|
|
1862
|
+
catalogId: 'CatalogId',
|
|
1863
|
+
custSpaceId: 'CustSpaceId',
|
|
1864
|
+
fields: 'Fields',
|
|
1865
|
+
limit: 'Limit',
|
|
1866
|
+
ownerId: 'OwnerId',
|
|
1867
|
+
resourceOwnerAccount: 'ResourceOwnerAccount',
|
|
1868
|
+
resourceOwnerId: 'ResourceOwnerId',
|
|
1869
|
+
wabaId: 'WabaId',
|
|
1870
|
+
};
|
|
1871
|
+
}
|
|
1872
|
+
static types() {
|
|
1873
|
+
return {
|
|
1874
|
+
after: 'string',
|
|
1875
|
+
before: 'string',
|
|
1876
|
+
catalogId: 'string',
|
|
1877
|
+
custSpaceId: 'string',
|
|
1878
|
+
fields: 'string',
|
|
1879
|
+
limit: 'number',
|
|
1880
|
+
ownerId: 'number',
|
|
1881
|
+
resourceOwnerAccount: 'string',
|
|
1882
|
+
resourceOwnerId: 'number',
|
|
1883
|
+
wabaId: 'string',
|
|
1884
|
+
};
|
|
1885
|
+
}
|
|
1886
|
+
}
|
|
1887
|
+
exports.ListProductRequest = ListProductRequest;
|
|
1888
|
+
class ListProductResponseBody extends $tea.Model {
|
|
1889
|
+
constructor(map) {
|
|
1890
|
+
super(map);
|
|
1891
|
+
}
|
|
1892
|
+
static names() {
|
|
1893
|
+
return {
|
|
1894
|
+
accessDeniedDetail: 'AccessDeniedDetail',
|
|
1895
|
+
code: 'Code',
|
|
1896
|
+
message: 'Message',
|
|
1897
|
+
model: 'Model',
|
|
1898
|
+
requestId: 'RequestId',
|
|
1899
|
+
success: 'Success',
|
|
1900
|
+
};
|
|
1901
|
+
}
|
|
1902
|
+
static types() {
|
|
1903
|
+
return {
|
|
1904
|
+
accessDeniedDetail: 'string',
|
|
1905
|
+
code: 'string',
|
|
1906
|
+
message: 'string',
|
|
1907
|
+
model: ListProductResponseBodyModel,
|
|
1908
|
+
requestId: 'string',
|
|
1909
|
+
success: 'boolean',
|
|
1910
|
+
};
|
|
1911
|
+
}
|
|
1912
|
+
}
|
|
1913
|
+
exports.ListProductResponseBody = ListProductResponseBody;
|
|
1914
|
+
class ListProductResponse extends $tea.Model {
|
|
1915
|
+
constructor(map) {
|
|
1916
|
+
super(map);
|
|
1917
|
+
}
|
|
1918
|
+
static names() {
|
|
1919
|
+
return {
|
|
1920
|
+
headers: 'headers',
|
|
1921
|
+
statusCode: 'statusCode',
|
|
1922
|
+
body: 'body',
|
|
1923
|
+
};
|
|
1924
|
+
}
|
|
1925
|
+
static types() {
|
|
1926
|
+
return {
|
|
1927
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
1928
|
+
statusCode: 'number',
|
|
1929
|
+
body: ListProductResponseBody,
|
|
1930
|
+
};
|
|
1931
|
+
}
|
|
1932
|
+
}
|
|
1933
|
+
exports.ListProductResponse = ListProductResponse;
|
|
1934
|
+
class ListProductCatalogRequest extends $tea.Model {
|
|
1935
|
+
constructor(map) {
|
|
1936
|
+
super(map);
|
|
1937
|
+
}
|
|
1938
|
+
static names() {
|
|
1939
|
+
return {
|
|
1940
|
+
after: 'After',
|
|
1941
|
+
before: 'Before',
|
|
1942
|
+
businessId: 'BusinessId',
|
|
1943
|
+
custSpaceId: 'CustSpaceId',
|
|
1944
|
+
fields: 'Fields',
|
|
1945
|
+
limit: 'Limit',
|
|
1946
|
+
ownerId: 'OwnerId',
|
|
1947
|
+
resourceOwnerAccount: 'ResourceOwnerAccount',
|
|
1948
|
+
resourceOwnerId: 'ResourceOwnerId',
|
|
1949
|
+
};
|
|
1950
|
+
}
|
|
1951
|
+
static types() {
|
|
1952
|
+
return {
|
|
1953
|
+
after: 'string',
|
|
1954
|
+
before: 'string',
|
|
1955
|
+
businessId: 'number',
|
|
1956
|
+
custSpaceId: 'string',
|
|
1957
|
+
fields: 'string',
|
|
1958
|
+
limit: 'number',
|
|
1959
|
+
ownerId: 'number',
|
|
1960
|
+
resourceOwnerAccount: 'string',
|
|
1961
|
+
resourceOwnerId: 'number',
|
|
1962
|
+
};
|
|
1963
|
+
}
|
|
1964
|
+
}
|
|
1965
|
+
exports.ListProductCatalogRequest = ListProductCatalogRequest;
|
|
1966
|
+
class ListProductCatalogResponseBody extends $tea.Model {
|
|
1967
|
+
constructor(map) {
|
|
1968
|
+
super(map);
|
|
1969
|
+
}
|
|
1970
|
+
static names() {
|
|
1971
|
+
return {
|
|
1972
|
+
accessDeniedDetail: 'AccessDeniedDetail',
|
|
1973
|
+
code: 'Code',
|
|
1974
|
+
message: 'Message',
|
|
1975
|
+
model: 'Model',
|
|
1976
|
+
requestId: 'RequestId',
|
|
1977
|
+
success: 'Success',
|
|
1978
|
+
};
|
|
1979
|
+
}
|
|
1980
|
+
static types() {
|
|
1981
|
+
return {
|
|
1982
|
+
accessDeniedDetail: 'string',
|
|
1983
|
+
code: 'string',
|
|
1984
|
+
message: 'string',
|
|
1985
|
+
model: ListProductCatalogResponseBodyModel,
|
|
1986
|
+
requestId: 'string',
|
|
1987
|
+
success: 'boolean',
|
|
1988
|
+
};
|
|
1989
|
+
}
|
|
1990
|
+
}
|
|
1991
|
+
exports.ListProductCatalogResponseBody = ListProductCatalogResponseBody;
|
|
1992
|
+
class ListProductCatalogResponse extends $tea.Model {
|
|
1993
|
+
constructor(map) {
|
|
1994
|
+
super(map);
|
|
1995
|
+
}
|
|
1996
|
+
static names() {
|
|
1997
|
+
return {
|
|
1998
|
+
headers: 'headers',
|
|
1999
|
+
statusCode: 'statusCode',
|
|
2000
|
+
body: 'body',
|
|
2001
|
+
};
|
|
2002
|
+
}
|
|
2003
|
+
static types() {
|
|
2004
|
+
return {
|
|
2005
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
2006
|
+
statusCode: 'number',
|
|
2007
|
+
body: ListProductCatalogResponseBody,
|
|
2008
|
+
};
|
|
2009
|
+
}
|
|
2010
|
+
}
|
|
2011
|
+
exports.ListProductCatalogResponse = ListProductCatalogResponse;
|
|
1454
2012
|
class ModifyChatappTemplateRequest extends $tea.Model {
|
|
1455
2013
|
constructor(map) {
|
|
1456
2014
|
super(map);
|
|
@@ -2829,6 +3387,32 @@ class CreateChatappTemplateResponseBodyData extends $tea.Model {
|
|
|
2829
3387
|
}
|
|
2830
3388
|
}
|
|
2831
3389
|
exports.CreateChatappTemplateResponseBodyData = CreateChatappTemplateResponseBodyData;
|
|
3390
|
+
class GetChatappPhoneNumberMetricResponseBodyData extends $tea.Model {
|
|
3391
|
+
constructor(map) {
|
|
3392
|
+
super(map);
|
|
3393
|
+
}
|
|
3394
|
+
static names() {
|
|
3395
|
+
return {
|
|
3396
|
+
deliveredCount: 'DeliveredCount',
|
|
3397
|
+
end: 'End',
|
|
3398
|
+
granularity: 'Granularity',
|
|
3399
|
+
phoneNumber: 'PhoneNumber',
|
|
3400
|
+
sentCount: 'SentCount',
|
|
3401
|
+
start: 'Start',
|
|
3402
|
+
};
|
|
3403
|
+
}
|
|
3404
|
+
static types() {
|
|
3405
|
+
return {
|
|
3406
|
+
deliveredCount: 'number',
|
|
3407
|
+
end: 'number',
|
|
3408
|
+
granularity: 'string',
|
|
3409
|
+
phoneNumber: 'string',
|
|
3410
|
+
sentCount: 'number',
|
|
3411
|
+
start: 'number',
|
|
3412
|
+
};
|
|
3413
|
+
}
|
|
3414
|
+
}
|
|
3415
|
+
exports.GetChatappPhoneNumberMetricResponseBodyData = GetChatappPhoneNumberMetricResponseBodyData;
|
|
2832
3416
|
class GetChatappTemplateDetailResponseBodyDataComponentsButtonsExtendAttrs extends $tea.Model {
|
|
2833
3417
|
constructor(map) {
|
|
2834
3418
|
super(map);
|
|
@@ -2947,6 +3531,7 @@ class GetChatappTemplateDetailResponseBodyData extends $tea.Model {
|
|
|
2947
3531
|
messageSendTtlSeconds: 'MessageSendTtlSeconds',
|
|
2948
3532
|
name: 'Name',
|
|
2949
3533
|
qualityScore: 'QualityScore',
|
|
3534
|
+
reason: 'Reason',
|
|
2950
3535
|
templateCode: 'TemplateCode',
|
|
2951
3536
|
templateType: 'TemplateType',
|
|
2952
3537
|
};
|
|
@@ -2961,12 +3546,63 @@ class GetChatappTemplateDetailResponseBodyData extends $tea.Model {
|
|
|
2961
3546
|
messageSendTtlSeconds: 'number',
|
|
2962
3547
|
name: 'string',
|
|
2963
3548
|
qualityScore: 'string',
|
|
3549
|
+
reason: 'string',
|
|
2964
3550
|
templateCode: 'string',
|
|
2965
3551
|
templateType: 'string',
|
|
2966
3552
|
};
|
|
2967
3553
|
}
|
|
2968
3554
|
}
|
|
2969
3555
|
exports.GetChatappTemplateDetailResponseBodyData = GetChatappTemplateDetailResponseBodyData;
|
|
3556
|
+
class GetChatappTemplateMetricResponseBodyDataCliented extends $tea.Model {
|
|
3557
|
+
constructor(map) {
|
|
3558
|
+
super(map);
|
|
3559
|
+
}
|
|
3560
|
+
static names() {
|
|
3561
|
+
return {
|
|
3562
|
+
buttonContent: 'ButtonContent',
|
|
3563
|
+
count: 'Count',
|
|
3564
|
+
type: 'Type',
|
|
3565
|
+
};
|
|
3566
|
+
}
|
|
3567
|
+
static types() {
|
|
3568
|
+
return {
|
|
3569
|
+
buttonContent: 'string',
|
|
3570
|
+
count: 'number',
|
|
3571
|
+
type: 'string',
|
|
3572
|
+
};
|
|
3573
|
+
}
|
|
3574
|
+
}
|
|
3575
|
+
exports.GetChatappTemplateMetricResponseBodyDataCliented = GetChatappTemplateMetricResponseBodyDataCliented;
|
|
3576
|
+
class GetChatappTemplateMetricResponseBodyData extends $tea.Model {
|
|
3577
|
+
constructor(map) {
|
|
3578
|
+
super(map);
|
|
3579
|
+
}
|
|
3580
|
+
static names() {
|
|
3581
|
+
return {
|
|
3582
|
+
cliented: 'Cliented',
|
|
3583
|
+
deliveredCount: 'DeliveredCount',
|
|
3584
|
+
end: 'End',
|
|
3585
|
+
language: 'Language',
|
|
3586
|
+
readCount: 'ReadCount',
|
|
3587
|
+
sentCount: 'SentCount',
|
|
3588
|
+
start: 'Start',
|
|
3589
|
+
templateCode: 'TemplateCode',
|
|
3590
|
+
};
|
|
3591
|
+
}
|
|
3592
|
+
static types() {
|
|
3593
|
+
return {
|
|
3594
|
+
cliented: { 'type': 'array', 'itemType': GetChatappTemplateMetricResponseBodyDataCliented },
|
|
3595
|
+
deliveredCount: 'number',
|
|
3596
|
+
end: 'number',
|
|
3597
|
+
language: 'string',
|
|
3598
|
+
readCount: 'number',
|
|
3599
|
+
sentCount: 'number',
|
|
3600
|
+
start: 'number',
|
|
3601
|
+
templateCode: 'string',
|
|
3602
|
+
};
|
|
3603
|
+
}
|
|
3604
|
+
}
|
|
3605
|
+
exports.GetChatappTemplateMetricResponseBodyData = GetChatappTemplateMetricResponseBodyData;
|
|
2970
3606
|
class GetChatappUploadAuthorizationResponseBodyData extends $tea.Model {
|
|
2971
3607
|
constructor(map) {
|
|
2972
3608
|
super(map);
|
|
@@ -3045,56 +3681,162 @@ class GetPreValidatePhoneIdResponseBodyData extends $tea.Model {
|
|
|
3045
3681
|
}
|
|
3046
3682
|
static types() {
|
|
3047
3683
|
return {
|
|
3048
|
-
phoneNumber: 'string',
|
|
3049
|
-
phoneNumberId: 'string',
|
|
3684
|
+
phoneNumber: 'string',
|
|
3685
|
+
phoneNumberId: 'string',
|
|
3686
|
+
};
|
|
3687
|
+
}
|
|
3688
|
+
}
|
|
3689
|
+
exports.GetPreValidatePhoneIdResponseBodyData = GetPreValidatePhoneIdResponseBodyData;
|
|
3690
|
+
class ListChatappTemplateRequestPage extends $tea.Model {
|
|
3691
|
+
constructor(map) {
|
|
3692
|
+
super(map);
|
|
3693
|
+
}
|
|
3694
|
+
static names() {
|
|
3695
|
+
return {
|
|
3696
|
+
index: 'Index',
|
|
3697
|
+
size: 'Size',
|
|
3698
|
+
};
|
|
3699
|
+
}
|
|
3700
|
+
static types() {
|
|
3701
|
+
return {
|
|
3702
|
+
index: 'number',
|
|
3703
|
+
size: 'number',
|
|
3704
|
+
};
|
|
3705
|
+
}
|
|
3706
|
+
}
|
|
3707
|
+
exports.ListChatappTemplateRequestPage = ListChatappTemplateRequestPage;
|
|
3708
|
+
class ListChatappTemplateResponseBodyListTemplate extends $tea.Model {
|
|
3709
|
+
constructor(map) {
|
|
3710
|
+
super(map);
|
|
3711
|
+
}
|
|
3712
|
+
static names() {
|
|
3713
|
+
return {
|
|
3714
|
+
auditStatus: 'AuditStatus',
|
|
3715
|
+
category: 'Category',
|
|
3716
|
+
language: 'Language',
|
|
3717
|
+
reason: 'Reason',
|
|
3718
|
+
templateCode: 'TemplateCode',
|
|
3719
|
+
templateName: 'TemplateName',
|
|
3720
|
+
templateType: 'TemplateType',
|
|
3721
|
+
};
|
|
3722
|
+
}
|
|
3723
|
+
static types() {
|
|
3724
|
+
return {
|
|
3725
|
+
auditStatus: 'string',
|
|
3726
|
+
category: 'string',
|
|
3727
|
+
language: 'string',
|
|
3728
|
+
reason: 'string',
|
|
3729
|
+
templateCode: 'string',
|
|
3730
|
+
templateName: 'string',
|
|
3731
|
+
templateType: 'string',
|
|
3732
|
+
};
|
|
3733
|
+
}
|
|
3734
|
+
}
|
|
3735
|
+
exports.ListChatappTemplateResponseBodyListTemplate = ListChatappTemplateResponseBodyListTemplate;
|
|
3736
|
+
class ListProductResponseBodyModelPagingCursors extends $tea.Model {
|
|
3737
|
+
constructor(map) {
|
|
3738
|
+
super(map);
|
|
3739
|
+
}
|
|
3740
|
+
static names() {
|
|
3741
|
+
return {
|
|
3742
|
+
after: 'After',
|
|
3743
|
+
before: 'Before',
|
|
3744
|
+
};
|
|
3745
|
+
}
|
|
3746
|
+
static types() {
|
|
3747
|
+
return {
|
|
3748
|
+
after: 'string',
|
|
3749
|
+
before: 'string',
|
|
3750
|
+
};
|
|
3751
|
+
}
|
|
3752
|
+
}
|
|
3753
|
+
exports.ListProductResponseBodyModelPagingCursors = ListProductResponseBodyModelPagingCursors;
|
|
3754
|
+
class ListProductResponseBodyModelPaging extends $tea.Model {
|
|
3755
|
+
constructor(map) {
|
|
3756
|
+
super(map);
|
|
3757
|
+
}
|
|
3758
|
+
static names() {
|
|
3759
|
+
return {
|
|
3760
|
+
cursors: 'Cursors',
|
|
3761
|
+
};
|
|
3762
|
+
}
|
|
3763
|
+
static types() {
|
|
3764
|
+
return {
|
|
3765
|
+
cursors: ListProductResponseBodyModelPagingCursors,
|
|
3766
|
+
};
|
|
3767
|
+
}
|
|
3768
|
+
}
|
|
3769
|
+
exports.ListProductResponseBodyModelPaging = ListProductResponseBodyModelPaging;
|
|
3770
|
+
class ListProductResponseBodyModel extends $tea.Model {
|
|
3771
|
+
constructor(map) {
|
|
3772
|
+
super(map);
|
|
3773
|
+
}
|
|
3774
|
+
static names() {
|
|
3775
|
+
return {
|
|
3776
|
+
data: 'Data',
|
|
3777
|
+
paging: 'Paging',
|
|
3778
|
+
};
|
|
3779
|
+
}
|
|
3780
|
+
static types() {
|
|
3781
|
+
return {
|
|
3782
|
+
data: { 'type': 'array', 'itemType': { 'type': 'map', 'keyType': 'string', 'valueType': 'any' } },
|
|
3783
|
+
paging: ListProductResponseBodyModelPaging,
|
|
3784
|
+
};
|
|
3785
|
+
}
|
|
3786
|
+
}
|
|
3787
|
+
exports.ListProductResponseBodyModel = ListProductResponseBodyModel;
|
|
3788
|
+
class ListProductCatalogResponseBodyModelPagingCursors extends $tea.Model {
|
|
3789
|
+
constructor(map) {
|
|
3790
|
+
super(map);
|
|
3791
|
+
}
|
|
3792
|
+
static names() {
|
|
3793
|
+
return {
|
|
3794
|
+
after: 'After',
|
|
3795
|
+
before: 'Before',
|
|
3796
|
+
};
|
|
3797
|
+
}
|
|
3798
|
+
static types() {
|
|
3799
|
+
return {
|
|
3800
|
+
after: 'string',
|
|
3801
|
+
before: 'string',
|
|
3050
3802
|
};
|
|
3051
3803
|
}
|
|
3052
3804
|
}
|
|
3053
|
-
exports.
|
|
3054
|
-
class
|
|
3805
|
+
exports.ListProductCatalogResponseBodyModelPagingCursors = ListProductCatalogResponseBodyModelPagingCursors;
|
|
3806
|
+
class ListProductCatalogResponseBodyModelPaging extends $tea.Model {
|
|
3055
3807
|
constructor(map) {
|
|
3056
3808
|
super(map);
|
|
3057
3809
|
}
|
|
3058
3810
|
static names() {
|
|
3059
3811
|
return {
|
|
3060
|
-
|
|
3061
|
-
size: 'Size',
|
|
3812
|
+
cursors: 'Cursors',
|
|
3062
3813
|
};
|
|
3063
3814
|
}
|
|
3064
3815
|
static types() {
|
|
3065
3816
|
return {
|
|
3066
|
-
|
|
3067
|
-
size: 'number',
|
|
3817
|
+
cursors: ListProductCatalogResponseBodyModelPagingCursors,
|
|
3068
3818
|
};
|
|
3069
3819
|
}
|
|
3070
3820
|
}
|
|
3071
|
-
exports.
|
|
3072
|
-
class
|
|
3821
|
+
exports.ListProductCatalogResponseBodyModelPaging = ListProductCatalogResponseBodyModelPaging;
|
|
3822
|
+
class ListProductCatalogResponseBodyModel extends $tea.Model {
|
|
3073
3823
|
constructor(map) {
|
|
3074
3824
|
super(map);
|
|
3075
3825
|
}
|
|
3076
3826
|
static names() {
|
|
3077
3827
|
return {
|
|
3078
|
-
|
|
3079
|
-
|
|
3080
|
-
language: 'Language',
|
|
3081
|
-
templateCode: 'TemplateCode',
|
|
3082
|
-
templateName: 'TemplateName',
|
|
3083
|
-
templateType: 'TemplateType',
|
|
3828
|
+
data: 'Data',
|
|
3829
|
+
paging: 'Paging',
|
|
3084
3830
|
};
|
|
3085
3831
|
}
|
|
3086
3832
|
static types() {
|
|
3087
3833
|
return {
|
|
3088
|
-
|
|
3089
|
-
|
|
3090
|
-
language: 'string',
|
|
3091
|
-
templateCode: 'string',
|
|
3092
|
-
templateName: 'string',
|
|
3093
|
-
templateType: 'string',
|
|
3834
|
+
data: { 'type': 'array', 'itemType': { 'type': 'map', 'keyType': 'string', 'valueType': 'any' } },
|
|
3835
|
+
paging: ListProductCatalogResponseBodyModelPaging,
|
|
3094
3836
|
};
|
|
3095
3837
|
}
|
|
3096
3838
|
}
|
|
3097
|
-
exports.
|
|
3839
|
+
exports.ListProductCatalogResponseBodyModel = ListProductCatalogResponseBodyModel;
|
|
3098
3840
|
class ModifyChatappTemplateRequestComponentsButtons extends $tea.Model {
|
|
3099
3841
|
constructor(map) {
|
|
3100
3842
|
super(map);
|
|
@@ -3435,6 +4177,44 @@ class Client extends openapi_client_1.default {
|
|
|
3435
4177
|
}
|
|
3436
4178
|
return endpoint_util_1.default.getEndpointRules(productId, regionId, endpointRule, network, suffix);
|
|
3437
4179
|
}
|
|
4180
|
+
async addChatappPhoneNumberWithOptions(request, runtime) {
|
|
4181
|
+
tea_util_1.default.validateModel(request);
|
|
4182
|
+
let body = {};
|
|
4183
|
+
if (!tea_util_1.default.isUnset(request.cc)) {
|
|
4184
|
+
body["Cc"] = request.cc;
|
|
4185
|
+
}
|
|
4186
|
+
if (!tea_util_1.default.isUnset(request.custSpaceId)) {
|
|
4187
|
+
body["CustSpaceId"] = request.custSpaceId;
|
|
4188
|
+
}
|
|
4189
|
+
if (!tea_util_1.default.isUnset(request.phoneNumber)) {
|
|
4190
|
+
body["PhoneNumber"] = request.phoneNumber;
|
|
4191
|
+
}
|
|
4192
|
+
if (!tea_util_1.default.isUnset(request.preValidateId)) {
|
|
4193
|
+
body["PreValidateId"] = request.preValidateId;
|
|
4194
|
+
}
|
|
4195
|
+
if (!tea_util_1.default.isUnset(request.verifiedName)) {
|
|
4196
|
+
body["VerifiedName"] = request.verifiedName;
|
|
4197
|
+
}
|
|
4198
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
4199
|
+
body: openapi_util_1.default.parseToMap(body),
|
|
4200
|
+
});
|
|
4201
|
+
let params = new $OpenApi.Params({
|
|
4202
|
+
action: "AddChatappPhoneNumber",
|
|
4203
|
+
version: "2020-06-06",
|
|
4204
|
+
protocol: "HTTPS",
|
|
4205
|
+
pathname: "/",
|
|
4206
|
+
method: "POST",
|
|
4207
|
+
authType: "AK",
|
|
4208
|
+
style: "RPC",
|
|
4209
|
+
reqBodyType: "formData",
|
|
4210
|
+
bodyType: "json",
|
|
4211
|
+
});
|
|
4212
|
+
return $tea.cast(await this.callApi(params, req, runtime), new AddChatappPhoneNumberResponse({}));
|
|
4213
|
+
}
|
|
4214
|
+
async addChatappPhoneNumber(request) {
|
|
4215
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
4216
|
+
return await this.addChatappPhoneNumberWithOptions(request, runtime);
|
|
4217
|
+
}
|
|
3438
4218
|
/**
|
|
3439
4219
|
* You can call this operation up to 100 times per second per account. If the number of calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.
|
|
3440
4220
|
*
|
|
@@ -3739,6 +4519,35 @@ class Client extends openapi_client_1.default {
|
|
|
3739
4519
|
let runtime = new $Util.RuntimeOptions({});
|
|
3740
4520
|
return await this.chatappMigrationVerifiedWithOptions(request, runtime);
|
|
3741
4521
|
}
|
|
4522
|
+
async chatappPhoneNumberDeregisterWithOptions(request, runtime) {
|
|
4523
|
+
tea_util_1.default.validateModel(request);
|
|
4524
|
+
let body = {};
|
|
4525
|
+
if (!tea_util_1.default.isUnset(request.custSpaceId)) {
|
|
4526
|
+
body["CustSpaceId"] = request.custSpaceId;
|
|
4527
|
+
}
|
|
4528
|
+
if (!tea_util_1.default.isUnset(request.phoneNumber)) {
|
|
4529
|
+
body["PhoneNumber"] = request.phoneNumber;
|
|
4530
|
+
}
|
|
4531
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
4532
|
+
body: openapi_util_1.default.parseToMap(body),
|
|
4533
|
+
});
|
|
4534
|
+
let params = new $OpenApi.Params({
|
|
4535
|
+
action: "ChatappPhoneNumberDeregister",
|
|
4536
|
+
version: "2020-06-06",
|
|
4537
|
+
protocol: "HTTPS",
|
|
4538
|
+
pathname: "/",
|
|
4539
|
+
method: "POST",
|
|
4540
|
+
authType: "AK",
|
|
4541
|
+
style: "RPC",
|
|
4542
|
+
reqBodyType: "formData",
|
|
4543
|
+
bodyType: "json",
|
|
4544
|
+
});
|
|
4545
|
+
return $tea.cast(await this.callApi(params, req, runtime), new ChatappPhoneNumberDeregisterResponse({}));
|
|
4546
|
+
}
|
|
4547
|
+
async chatappPhoneNumberDeregister(request) {
|
|
4548
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
4549
|
+
return await this.chatappPhoneNumberDeregisterWithOptions(request, runtime);
|
|
4550
|
+
}
|
|
3742
4551
|
/**
|
|
3743
4552
|
* You can call this operation up to 10 times per second per account. If the number of calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.
|
|
3744
4553
|
*
|
|
@@ -4037,8 +4846,79 @@ class Client extends openapi_client_1.default {
|
|
|
4037
4846
|
let runtime = new $Util.RuntimeOptions({});
|
|
4038
4847
|
return await this.deleteChatappTemplateWithOptions(request, runtime);
|
|
4039
4848
|
}
|
|
4849
|
+
async enableWhatsappROIMetricWithOptions(request, runtime) {
|
|
4850
|
+
tea_util_1.default.validateModel(request);
|
|
4851
|
+
let query = {};
|
|
4852
|
+
if (!tea_util_1.default.isUnset(request.custSpaceId)) {
|
|
4853
|
+
query["CustSpaceId"] = request.custSpaceId;
|
|
4854
|
+
}
|
|
4855
|
+
if (!tea_util_1.default.isUnset(request.isvCode)) {
|
|
4856
|
+
query["IsvCode"] = request.isvCode;
|
|
4857
|
+
}
|
|
4858
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
4859
|
+
query: openapi_util_1.default.query(query),
|
|
4860
|
+
});
|
|
4861
|
+
let params = new $OpenApi.Params({
|
|
4862
|
+
action: "EnableWhatsappROIMetric",
|
|
4863
|
+
version: "2020-06-06",
|
|
4864
|
+
protocol: "HTTPS",
|
|
4865
|
+
pathname: "/",
|
|
4866
|
+
method: "POST",
|
|
4867
|
+
authType: "AK",
|
|
4868
|
+
style: "RPC",
|
|
4869
|
+
reqBodyType: "formData",
|
|
4870
|
+
bodyType: "json",
|
|
4871
|
+
});
|
|
4872
|
+
return $tea.cast(await this.callApi(params, req, runtime), new EnableWhatsappROIMetricResponse({}));
|
|
4873
|
+
}
|
|
4874
|
+
async enableWhatsappROIMetric(request) {
|
|
4875
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
4876
|
+
return await this.enableWhatsappROIMetricWithOptions(request, runtime);
|
|
4877
|
+
}
|
|
4878
|
+
async getChatappPhoneNumberMetricWithOptions(request, runtime) {
|
|
4879
|
+
tea_util_1.default.validateModel(request);
|
|
4880
|
+
let query = {};
|
|
4881
|
+
if (!tea_util_1.default.isUnset(request.custSpaceId)) {
|
|
4882
|
+
query["CustSpaceId"] = request.custSpaceId;
|
|
4883
|
+
}
|
|
4884
|
+
if (!tea_util_1.default.isUnset(request.end)) {
|
|
4885
|
+
query["End"] = request.end;
|
|
4886
|
+
}
|
|
4887
|
+
if (!tea_util_1.default.isUnset(request.granularity)) {
|
|
4888
|
+
query["Granularity"] = request.granularity;
|
|
4889
|
+
}
|
|
4890
|
+
if (!tea_util_1.default.isUnset(request.isvCode)) {
|
|
4891
|
+
query["IsvCode"] = request.isvCode;
|
|
4892
|
+
}
|
|
4893
|
+
if (!tea_util_1.default.isUnset(request.phoneNumber)) {
|
|
4894
|
+
query["PhoneNumber"] = request.phoneNumber;
|
|
4895
|
+
}
|
|
4896
|
+
if (!tea_util_1.default.isUnset(request.start)) {
|
|
4897
|
+
query["Start"] = request.start;
|
|
4898
|
+
}
|
|
4899
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
4900
|
+
query: openapi_util_1.default.query(query),
|
|
4901
|
+
});
|
|
4902
|
+
let params = new $OpenApi.Params({
|
|
4903
|
+
action: "GetChatappPhoneNumberMetric",
|
|
4904
|
+
version: "2020-06-06",
|
|
4905
|
+
protocol: "HTTPS",
|
|
4906
|
+
pathname: "/",
|
|
4907
|
+
method: "POST",
|
|
4908
|
+
authType: "AK",
|
|
4909
|
+
style: "RPC",
|
|
4910
|
+
reqBodyType: "formData",
|
|
4911
|
+
bodyType: "json",
|
|
4912
|
+
});
|
|
4913
|
+
return $tea.cast(await this.callApi(params, req, runtime), new GetChatappPhoneNumberMetricResponse({}));
|
|
4914
|
+
}
|
|
4915
|
+
async getChatappPhoneNumberMetric(request) {
|
|
4916
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
4917
|
+
return await this.getChatappPhoneNumberMetricWithOptions(request, runtime);
|
|
4918
|
+
}
|
|
4040
4919
|
/**
|
|
4041
|
-
*
|
|
4920
|
+
* ### QPS limit
|
|
4921
|
+
* You can call this API operation up to five times per second per account. If the number of calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.
|
|
4042
4922
|
*
|
|
4043
4923
|
* @param request GetChatappTemplateDetailRequest
|
|
4044
4924
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -4082,7 +4962,8 @@ class Client extends openapi_client_1.default {
|
|
|
4082
4962
|
return $tea.cast(await this.callApi(params, req, runtime), new GetChatappTemplateDetailResponse({}));
|
|
4083
4963
|
}
|
|
4084
4964
|
/**
|
|
4085
|
-
*
|
|
4965
|
+
* ### QPS limit
|
|
4966
|
+
* You can call this API operation up to five times per second per account. If the number of calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.
|
|
4086
4967
|
*
|
|
4087
4968
|
* @param request GetChatappTemplateDetailRequest
|
|
4088
4969
|
* @return GetChatappTemplateDetailResponse
|
|
@@ -4091,6 +4972,53 @@ class Client extends openapi_client_1.default {
|
|
|
4091
4972
|
let runtime = new $Util.RuntimeOptions({});
|
|
4092
4973
|
return await this.getChatappTemplateDetailWithOptions(request, runtime);
|
|
4093
4974
|
}
|
|
4975
|
+
async getChatappTemplateMetricWithOptions(request, runtime) {
|
|
4976
|
+
tea_util_1.default.validateModel(request);
|
|
4977
|
+
let query = {};
|
|
4978
|
+
if (!tea_util_1.default.isUnset(request.custSpaceId)) {
|
|
4979
|
+
query["CustSpaceId"] = request.custSpaceId;
|
|
4980
|
+
}
|
|
4981
|
+
if (!tea_util_1.default.isUnset(request.end)) {
|
|
4982
|
+
query["End"] = request.end;
|
|
4983
|
+
}
|
|
4984
|
+
if (!tea_util_1.default.isUnset(request.granularity)) {
|
|
4985
|
+
query["Granularity"] = request.granularity;
|
|
4986
|
+
}
|
|
4987
|
+
if (!tea_util_1.default.isUnset(request.isvCode)) {
|
|
4988
|
+
query["IsvCode"] = request.isvCode;
|
|
4989
|
+
}
|
|
4990
|
+
if (!tea_util_1.default.isUnset(request.language)) {
|
|
4991
|
+
query["Language"] = request.language;
|
|
4992
|
+
}
|
|
4993
|
+
if (!tea_util_1.default.isUnset(request.start)) {
|
|
4994
|
+
query["Start"] = request.start;
|
|
4995
|
+
}
|
|
4996
|
+
if (!tea_util_1.default.isUnset(request.templateCode)) {
|
|
4997
|
+
query["TemplateCode"] = request.templateCode;
|
|
4998
|
+
}
|
|
4999
|
+
if (!tea_util_1.default.isUnset(request.templateType)) {
|
|
5000
|
+
query["TemplateType"] = request.templateType;
|
|
5001
|
+
}
|
|
5002
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
5003
|
+
query: openapi_util_1.default.query(query),
|
|
5004
|
+
});
|
|
5005
|
+
let params = new $OpenApi.Params({
|
|
5006
|
+
action: "GetChatappTemplateMetric",
|
|
5007
|
+
version: "2020-06-06",
|
|
5008
|
+
protocol: "HTTPS",
|
|
5009
|
+
pathname: "/",
|
|
5010
|
+
method: "POST",
|
|
5011
|
+
authType: "AK",
|
|
5012
|
+
style: "RPC",
|
|
5013
|
+
reqBodyType: "formData",
|
|
5014
|
+
bodyType: "json",
|
|
5015
|
+
});
|
|
5016
|
+
return $tea.cast(await this.callApi(params, req, runtime), new GetChatappTemplateMetricResponse({}));
|
|
5017
|
+
}
|
|
5018
|
+
async getChatappTemplateMetric(request) {
|
|
5019
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
5020
|
+
return await this.getChatappTemplateMetricWithOptions(request, runtime);
|
|
5021
|
+
}
|
|
4094
5022
|
/**
|
|
4095
5023
|
* You can call this operation up to five times per second per account. If the number of calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.
|
|
4096
5024
|
*
|
|
@@ -4297,6 +5225,44 @@ class Client extends openapi_client_1.default {
|
|
|
4297
5225
|
let runtime = new $Util.RuntimeOptions({});
|
|
4298
5226
|
return await this.getPreValidatePhoneIdWithOptions(request, runtime);
|
|
4299
5227
|
}
|
|
5228
|
+
async getWhatsappConnectionCatalogWithOptions(request, runtime) {
|
|
5229
|
+
tea_util_1.default.validateModel(request);
|
|
5230
|
+
let query = {};
|
|
5231
|
+
if (!tea_util_1.default.isUnset(request.custSpaceId)) {
|
|
5232
|
+
query["CustSpaceId"] = request.custSpaceId;
|
|
5233
|
+
}
|
|
5234
|
+
if (!tea_util_1.default.isUnset(request.ownerId)) {
|
|
5235
|
+
query["OwnerId"] = request.ownerId;
|
|
5236
|
+
}
|
|
5237
|
+
if (!tea_util_1.default.isUnset(request.resourceOwnerAccount)) {
|
|
5238
|
+
query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
|
|
5239
|
+
}
|
|
5240
|
+
if (!tea_util_1.default.isUnset(request.resourceOwnerId)) {
|
|
5241
|
+
query["ResourceOwnerId"] = request.resourceOwnerId;
|
|
5242
|
+
}
|
|
5243
|
+
if (!tea_util_1.default.isUnset(request.wabaId)) {
|
|
5244
|
+
query["WabaId"] = request.wabaId;
|
|
5245
|
+
}
|
|
5246
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
5247
|
+
query: openapi_util_1.default.query(query),
|
|
5248
|
+
});
|
|
5249
|
+
let params = new $OpenApi.Params({
|
|
5250
|
+
action: "GetWhatsappConnectionCatalog",
|
|
5251
|
+
version: "2020-06-06",
|
|
5252
|
+
protocol: "HTTPS",
|
|
5253
|
+
pathname: "/",
|
|
5254
|
+
method: "POST",
|
|
5255
|
+
authType: "AK",
|
|
5256
|
+
style: "RPC",
|
|
5257
|
+
reqBodyType: "formData",
|
|
5258
|
+
bodyType: "json",
|
|
5259
|
+
});
|
|
5260
|
+
return $tea.cast(await this.callApi(params, req, runtime), new GetWhatsappConnectionCatalogResponse({}));
|
|
5261
|
+
}
|
|
5262
|
+
async getWhatsappConnectionCatalog(request) {
|
|
5263
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
5264
|
+
return await this.getWhatsappConnectionCatalogWithOptions(request, runtime);
|
|
5265
|
+
}
|
|
4300
5266
|
/**
|
|
4301
5267
|
* You can call this operation up to 10 times per second per account. If the number of calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.
|
|
4302
5268
|
*
|
|
@@ -4403,6 +5369,109 @@ class Client extends openapi_client_1.default {
|
|
|
4403
5369
|
let runtime = new $Util.RuntimeOptions({});
|
|
4404
5370
|
return await this.listChatappTemplateWithOptions(request, runtime);
|
|
4405
5371
|
}
|
|
5372
|
+
async listProductWithOptions(request, runtime) {
|
|
5373
|
+
tea_util_1.default.validateModel(request);
|
|
5374
|
+
let query = {};
|
|
5375
|
+
if (!tea_util_1.default.isUnset(request.after)) {
|
|
5376
|
+
query["After"] = request.after;
|
|
5377
|
+
}
|
|
5378
|
+
if (!tea_util_1.default.isUnset(request.before)) {
|
|
5379
|
+
query["Before"] = request.before;
|
|
5380
|
+
}
|
|
5381
|
+
if (!tea_util_1.default.isUnset(request.catalogId)) {
|
|
5382
|
+
query["CatalogId"] = request.catalogId;
|
|
5383
|
+
}
|
|
5384
|
+
if (!tea_util_1.default.isUnset(request.custSpaceId)) {
|
|
5385
|
+
query["CustSpaceId"] = request.custSpaceId;
|
|
5386
|
+
}
|
|
5387
|
+
if (!tea_util_1.default.isUnset(request.fields)) {
|
|
5388
|
+
query["Fields"] = request.fields;
|
|
5389
|
+
}
|
|
5390
|
+
if (!tea_util_1.default.isUnset(request.limit)) {
|
|
5391
|
+
query["Limit"] = request.limit;
|
|
5392
|
+
}
|
|
5393
|
+
if (!tea_util_1.default.isUnset(request.ownerId)) {
|
|
5394
|
+
query["OwnerId"] = request.ownerId;
|
|
5395
|
+
}
|
|
5396
|
+
if (!tea_util_1.default.isUnset(request.resourceOwnerAccount)) {
|
|
5397
|
+
query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
|
|
5398
|
+
}
|
|
5399
|
+
if (!tea_util_1.default.isUnset(request.resourceOwnerId)) {
|
|
5400
|
+
query["ResourceOwnerId"] = request.resourceOwnerId;
|
|
5401
|
+
}
|
|
5402
|
+
if (!tea_util_1.default.isUnset(request.wabaId)) {
|
|
5403
|
+
query["WabaId"] = request.wabaId;
|
|
5404
|
+
}
|
|
5405
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
5406
|
+
query: openapi_util_1.default.query(query),
|
|
5407
|
+
});
|
|
5408
|
+
let params = new $OpenApi.Params({
|
|
5409
|
+
action: "ListProduct",
|
|
5410
|
+
version: "2020-06-06",
|
|
5411
|
+
protocol: "HTTPS",
|
|
5412
|
+
pathname: "/",
|
|
5413
|
+
method: "POST",
|
|
5414
|
+
authType: "AK",
|
|
5415
|
+
style: "RPC",
|
|
5416
|
+
reqBodyType: "formData",
|
|
5417
|
+
bodyType: "json",
|
|
5418
|
+
});
|
|
5419
|
+
return $tea.cast(await this.callApi(params, req, runtime), new ListProductResponse({}));
|
|
5420
|
+
}
|
|
5421
|
+
async listProduct(request) {
|
|
5422
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
5423
|
+
return await this.listProductWithOptions(request, runtime);
|
|
5424
|
+
}
|
|
5425
|
+
async listProductCatalogWithOptions(request, runtime) {
|
|
5426
|
+
tea_util_1.default.validateModel(request);
|
|
5427
|
+
let query = {};
|
|
5428
|
+
if (!tea_util_1.default.isUnset(request.after)) {
|
|
5429
|
+
query["After"] = request.after;
|
|
5430
|
+
}
|
|
5431
|
+
if (!tea_util_1.default.isUnset(request.before)) {
|
|
5432
|
+
query["Before"] = request.before;
|
|
5433
|
+
}
|
|
5434
|
+
if (!tea_util_1.default.isUnset(request.businessId)) {
|
|
5435
|
+
query["BusinessId"] = request.businessId;
|
|
5436
|
+
}
|
|
5437
|
+
if (!tea_util_1.default.isUnset(request.custSpaceId)) {
|
|
5438
|
+
query["CustSpaceId"] = request.custSpaceId;
|
|
5439
|
+
}
|
|
5440
|
+
if (!tea_util_1.default.isUnset(request.fields)) {
|
|
5441
|
+
query["Fields"] = request.fields;
|
|
5442
|
+
}
|
|
5443
|
+
if (!tea_util_1.default.isUnset(request.limit)) {
|
|
5444
|
+
query["Limit"] = request.limit;
|
|
5445
|
+
}
|
|
5446
|
+
if (!tea_util_1.default.isUnset(request.ownerId)) {
|
|
5447
|
+
query["OwnerId"] = request.ownerId;
|
|
5448
|
+
}
|
|
5449
|
+
if (!tea_util_1.default.isUnset(request.resourceOwnerAccount)) {
|
|
5450
|
+
query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
|
|
5451
|
+
}
|
|
5452
|
+
if (!tea_util_1.default.isUnset(request.resourceOwnerId)) {
|
|
5453
|
+
query["ResourceOwnerId"] = request.resourceOwnerId;
|
|
5454
|
+
}
|
|
5455
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
5456
|
+
query: openapi_util_1.default.query(query),
|
|
5457
|
+
});
|
|
5458
|
+
let params = new $OpenApi.Params({
|
|
5459
|
+
action: "ListProductCatalog",
|
|
5460
|
+
version: "2020-06-06",
|
|
5461
|
+
protocol: "HTTPS",
|
|
5462
|
+
pathname: "/",
|
|
5463
|
+
method: "POST",
|
|
5464
|
+
authType: "AK",
|
|
5465
|
+
style: "RPC",
|
|
5466
|
+
reqBodyType: "formData",
|
|
5467
|
+
bodyType: "json",
|
|
5468
|
+
});
|
|
5469
|
+
return $tea.cast(await this.callApi(params, req, runtime), new ListProductCatalogResponse({}));
|
|
5470
|
+
}
|
|
5471
|
+
async listProductCatalog(request) {
|
|
5472
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
5473
|
+
return await this.listProductCatalogWithOptions(request, runtime);
|
|
5474
|
+
}
|
|
4406
5475
|
/**
|
|
4407
5476
|
* The name of the message template.
|
|
4408
5477
|
*
|