@alicloud/cams20200606 1.0.9 → 1.0.11
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 +99 -76
- package/dist/client.js +219 -144
- package/dist/client.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +285 -178
package/dist/client.d.ts
CHANGED
|
@@ -4,67 +4,6 @@
|
|
|
4
4
|
import * as $Util from '@alicloud/tea-util';
|
|
5
5
|
import OpenApi, * as $OpenApi from '@alicloud/openapi-client';
|
|
6
6
|
import * as $tea from '@alicloud/tea-typescript';
|
|
7
|
-
export declare class CheckChatappContactsRequest extends $tea.Model {
|
|
8
|
-
channelType?: string;
|
|
9
|
-
contacts?: string[];
|
|
10
|
-
custWabaId?: string;
|
|
11
|
-
from?: string;
|
|
12
|
-
static names(): {
|
|
13
|
-
[key: string]: string;
|
|
14
|
-
};
|
|
15
|
-
static types(): {
|
|
16
|
-
[key: string]: any;
|
|
17
|
-
};
|
|
18
|
-
constructor(map?: {
|
|
19
|
-
[key: string]: any;
|
|
20
|
-
});
|
|
21
|
-
}
|
|
22
|
-
export declare class CheckChatappContactsShrinkRequest extends $tea.Model {
|
|
23
|
-
channelType?: string;
|
|
24
|
-
contactsShrink?: string;
|
|
25
|
-
custWabaId?: string;
|
|
26
|
-
from?: string;
|
|
27
|
-
static names(): {
|
|
28
|
-
[key: string]: string;
|
|
29
|
-
};
|
|
30
|
-
static types(): {
|
|
31
|
-
[key: string]: any;
|
|
32
|
-
};
|
|
33
|
-
constructor(map?: {
|
|
34
|
-
[key: string]: any;
|
|
35
|
-
});
|
|
36
|
-
}
|
|
37
|
-
export declare class CheckChatappContactsResponseBody extends $tea.Model {
|
|
38
|
-
code?: string;
|
|
39
|
-
data?: CheckChatappContactsResponseBodyData[];
|
|
40
|
-
message?: string;
|
|
41
|
-
requestId?: string;
|
|
42
|
-
static names(): {
|
|
43
|
-
[key: string]: string;
|
|
44
|
-
};
|
|
45
|
-
static types(): {
|
|
46
|
-
[key: string]: any;
|
|
47
|
-
};
|
|
48
|
-
constructor(map?: {
|
|
49
|
-
[key: string]: any;
|
|
50
|
-
});
|
|
51
|
-
}
|
|
52
|
-
export declare class CheckChatappContactsResponse extends $tea.Model {
|
|
53
|
-
headers: {
|
|
54
|
-
[key: string]: string;
|
|
55
|
-
};
|
|
56
|
-
statusCode: number;
|
|
57
|
-
body: CheckChatappContactsResponseBody;
|
|
58
|
-
static names(): {
|
|
59
|
-
[key: string]: string;
|
|
60
|
-
};
|
|
61
|
-
static types(): {
|
|
62
|
-
[key: string]: any;
|
|
63
|
-
};
|
|
64
|
-
constructor(map?: {
|
|
65
|
-
[key: string]: any;
|
|
66
|
-
});
|
|
67
|
-
}
|
|
68
7
|
export declare class CreateChatappTemplateRequest extends $tea.Model {
|
|
69
8
|
category?: string;
|
|
70
9
|
components?: CreateChatappTemplateRequestComponents[];
|
|
@@ -72,6 +11,7 @@ export declare class CreateChatappTemplateRequest extends $tea.Model {
|
|
|
72
11
|
example?: {
|
|
73
12
|
[key: string]: string;
|
|
74
13
|
};
|
|
14
|
+
isvCode?: string;
|
|
75
15
|
language?: string;
|
|
76
16
|
name?: string;
|
|
77
17
|
templateType?: string;
|
|
@@ -90,6 +30,7 @@ export declare class CreateChatappTemplateShrinkRequest extends $tea.Model {
|
|
|
90
30
|
componentsShrink?: string;
|
|
91
31
|
custWabaId?: string;
|
|
92
32
|
exampleShrink?: string;
|
|
33
|
+
isvCode?: string;
|
|
93
34
|
language?: string;
|
|
94
35
|
name?: string;
|
|
95
36
|
templateType?: string;
|
|
@@ -136,6 +77,7 @@ export declare class CreateChatappTemplateResponse extends $tea.Model {
|
|
|
136
77
|
}
|
|
137
78
|
export declare class DeleteChatappTemplateRequest extends $tea.Model {
|
|
138
79
|
custWabaId?: string;
|
|
80
|
+
isvCode?: string;
|
|
139
81
|
templateCode?: string;
|
|
140
82
|
static names(): {
|
|
141
83
|
[key: string]: string;
|
|
@@ -179,6 +121,7 @@ export declare class DeleteChatappTemplateResponse extends $tea.Model {
|
|
|
179
121
|
}
|
|
180
122
|
export declare class GetChatappTemplateDetailRequest extends $tea.Model {
|
|
181
123
|
custWabaId?: string;
|
|
124
|
+
isvCode?: string;
|
|
182
125
|
language?: string;
|
|
183
126
|
templateCode?: string;
|
|
184
127
|
static names(): {
|
|
@@ -225,6 +168,7 @@ export declare class GetChatappTemplateDetailResponse extends $tea.Model {
|
|
|
225
168
|
export declare class ListChatappTemplateRequest extends $tea.Model {
|
|
226
169
|
auditStatus?: string;
|
|
227
170
|
custWabaId?: string;
|
|
171
|
+
isvCode?: string;
|
|
228
172
|
language?: string;
|
|
229
173
|
name?: string;
|
|
230
174
|
page?: ListChatappTemplateRequestPage;
|
|
@@ -241,6 +185,7 @@ export declare class ListChatappTemplateRequest extends $tea.Model {
|
|
|
241
185
|
export declare class ListChatappTemplateShrinkRequest extends $tea.Model {
|
|
242
186
|
auditStatus?: string;
|
|
243
187
|
custWabaId?: string;
|
|
188
|
+
isvCode?: string;
|
|
244
189
|
language?: string;
|
|
245
190
|
name?: string;
|
|
246
191
|
pageShrink?: string;
|
|
@@ -285,6 +230,79 @@ export declare class ListChatappTemplateResponse extends $tea.Model {
|
|
|
285
230
|
[key: string]: any;
|
|
286
231
|
});
|
|
287
232
|
}
|
|
233
|
+
export declare class SendChatappMassMessageRequest extends $tea.Model {
|
|
234
|
+
channelType?: string;
|
|
235
|
+
custWabaId?: string;
|
|
236
|
+
fallBackContent?: string;
|
|
237
|
+
fallBackId?: string;
|
|
238
|
+
from?: string;
|
|
239
|
+
isvCode?: string;
|
|
240
|
+
language?: string;
|
|
241
|
+
senderList?: SendChatappMassMessageRequestSenderList[];
|
|
242
|
+
taskId?: string;
|
|
243
|
+
templateCode?: string;
|
|
244
|
+
static names(): {
|
|
245
|
+
[key: string]: string;
|
|
246
|
+
};
|
|
247
|
+
static types(): {
|
|
248
|
+
[key: string]: any;
|
|
249
|
+
};
|
|
250
|
+
constructor(map?: {
|
|
251
|
+
[key: string]: any;
|
|
252
|
+
});
|
|
253
|
+
}
|
|
254
|
+
export declare class SendChatappMassMessageShrinkRequest extends $tea.Model {
|
|
255
|
+
channelType?: string;
|
|
256
|
+
custWabaId?: string;
|
|
257
|
+
fallBackContent?: string;
|
|
258
|
+
fallBackId?: string;
|
|
259
|
+
from?: string;
|
|
260
|
+
isvCode?: string;
|
|
261
|
+
language?: string;
|
|
262
|
+
senderListShrink?: string;
|
|
263
|
+
taskId?: string;
|
|
264
|
+
templateCode?: string;
|
|
265
|
+
static names(): {
|
|
266
|
+
[key: string]: string;
|
|
267
|
+
};
|
|
268
|
+
static types(): {
|
|
269
|
+
[key: string]: any;
|
|
270
|
+
};
|
|
271
|
+
constructor(map?: {
|
|
272
|
+
[key: string]: any;
|
|
273
|
+
});
|
|
274
|
+
}
|
|
275
|
+
export declare class SendChatappMassMessageResponseBody extends $tea.Model {
|
|
276
|
+
code?: string;
|
|
277
|
+
groupMessageId?: string;
|
|
278
|
+
message?: string;
|
|
279
|
+
requestId?: string;
|
|
280
|
+
static names(): {
|
|
281
|
+
[key: string]: string;
|
|
282
|
+
};
|
|
283
|
+
static types(): {
|
|
284
|
+
[key: string]: any;
|
|
285
|
+
};
|
|
286
|
+
constructor(map?: {
|
|
287
|
+
[key: string]: any;
|
|
288
|
+
});
|
|
289
|
+
}
|
|
290
|
+
export declare class SendChatappMassMessageResponse extends $tea.Model {
|
|
291
|
+
headers: {
|
|
292
|
+
[key: string]: string;
|
|
293
|
+
};
|
|
294
|
+
statusCode: number;
|
|
295
|
+
body: SendChatappMassMessageResponseBody;
|
|
296
|
+
static names(): {
|
|
297
|
+
[key: string]: string;
|
|
298
|
+
};
|
|
299
|
+
static types(): {
|
|
300
|
+
[key: string]: any;
|
|
301
|
+
};
|
|
302
|
+
constructor(map?: {
|
|
303
|
+
[key: string]: any;
|
|
304
|
+
});
|
|
305
|
+
}
|
|
288
306
|
export declare class SendChatappMessageRequest extends $tea.Model {
|
|
289
307
|
channelType?: string;
|
|
290
308
|
content?: string;
|
|
@@ -292,6 +310,7 @@ export declare class SendChatappMessageRequest extends $tea.Model {
|
|
|
292
310
|
fallBackContent?: string;
|
|
293
311
|
fallBackId?: string;
|
|
294
312
|
from?: string;
|
|
313
|
+
isvCode?: string;
|
|
295
314
|
language?: string;
|
|
296
315
|
messageType?: string;
|
|
297
316
|
payload?: string[];
|
|
@@ -318,6 +337,7 @@ export declare class SendChatappMessageShrinkRequest extends $tea.Model {
|
|
|
318
337
|
fallBackContent?: string;
|
|
319
338
|
fallBackId?: string;
|
|
320
339
|
from?: string;
|
|
340
|
+
isvCode?: string;
|
|
321
341
|
language?: string;
|
|
322
342
|
messageType?: string;
|
|
323
343
|
payloadShrink?: string;
|
|
@@ -366,19 +386,6 @@ export declare class SendChatappMessageResponse extends $tea.Model {
|
|
|
366
386
|
[key: string]: any;
|
|
367
387
|
});
|
|
368
388
|
}
|
|
369
|
-
export declare class CheckChatappContactsResponseBodyData extends $tea.Model {
|
|
370
|
-
phoneNumber?: string;
|
|
371
|
-
status?: string;
|
|
372
|
-
static names(): {
|
|
373
|
-
[key: string]: string;
|
|
374
|
-
};
|
|
375
|
-
static types(): {
|
|
376
|
-
[key: string]: any;
|
|
377
|
-
};
|
|
378
|
-
constructor(map?: {
|
|
379
|
-
[key: string]: any;
|
|
380
|
-
});
|
|
381
|
-
}
|
|
382
389
|
export declare class CreateChatappTemplateRequestComponentsButtons extends $tea.Model {
|
|
383
390
|
phoneNumber?: string;
|
|
384
391
|
text?: string;
|
|
@@ -509,13 +516,27 @@ export declare class ListChatappTemplateResponseBodyListTemplate extends $tea.Mo
|
|
|
509
516
|
[key: string]: any;
|
|
510
517
|
});
|
|
511
518
|
}
|
|
519
|
+
export declare class SendChatappMassMessageRequestSenderList extends $tea.Model {
|
|
520
|
+
payload?: string[];
|
|
521
|
+
templateParams?: {
|
|
522
|
+
[key: string]: string;
|
|
523
|
+
};
|
|
524
|
+
to?: string;
|
|
525
|
+
static names(): {
|
|
526
|
+
[key: string]: string;
|
|
527
|
+
};
|
|
528
|
+
static types(): {
|
|
529
|
+
[key: string]: any;
|
|
530
|
+
};
|
|
531
|
+
constructor(map?: {
|
|
532
|
+
[key: string]: any;
|
|
533
|
+
});
|
|
534
|
+
}
|
|
512
535
|
export default class Client extends OpenApi {
|
|
513
536
|
constructor(config: $OpenApi.Config);
|
|
514
537
|
getEndpoint(productId: string, regionId: string, endpointRule: string, network: string, suffix: string, endpointMap: {
|
|
515
538
|
[key: string]: string;
|
|
516
539
|
}, endpoint: string): string;
|
|
517
|
-
checkChatappContactsWithOptions(tmpReq: CheckChatappContactsRequest, runtime: $Util.RuntimeOptions): Promise<CheckChatappContactsResponse>;
|
|
518
|
-
checkChatappContacts(request: CheckChatappContactsRequest): Promise<CheckChatappContactsResponse>;
|
|
519
540
|
createChatappTemplateWithOptions(tmpReq: CreateChatappTemplateRequest, runtime: $Util.RuntimeOptions): Promise<CreateChatappTemplateResponse>;
|
|
520
541
|
createChatappTemplate(request: CreateChatappTemplateRequest): Promise<CreateChatappTemplateResponse>;
|
|
521
542
|
deleteChatappTemplateWithOptions(request: DeleteChatappTemplateRequest, runtime: $Util.RuntimeOptions): Promise<DeleteChatappTemplateResponse>;
|
|
@@ -524,6 +545,8 @@ export default class Client extends OpenApi {
|
|
|
524
545
|
getChatappTemplateDetail(request: GetChatappTemplateDetailRequest): Promise<GetChatappTemplateDetailResponse>;
|
|
525
546
|
listChatappTemplateWithOptions(tmpReq: ListChatappTemplateRequest, runtime: $Util.RuntimeOptions): Promise<ListChatappTemplateResponse>;
|
|
526
547
|
listChatappTemplate(request: ListChatappTemplateRequest): Promise<ListChatappTemplateResponse>;
|
|
548
|
+
sendChatappMassMessageWithOptions(tmpReq: SendChatappMassMessageRequest, runtime: $Util.RuntimeOptions): Promise<SendChatappMassMessageResponse>;
|
|
549
|
+
sendChatappMassMessage(request: SendChatappMassMessageRequest): Promise<SendChatappMassMessageResponse>;
|
|
527
550
|
sendChatappMessageWithOptions(tmpReq: SendChatappMessageRequest, runtime: $Util.RuntimeOptions): Promise<SendChatappMessageResponse>;
|
|
528
551
|
sendChatappMessage(request: SendChatappMessageRequest): Promise<SendChatappMessageResponse>;
|
|
529
552
|
}
|