@alicloud/cams20200606 4.0.0 → 4.1.1
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 +15 -0
- package/dist/client.js +74 -0
- package/dist/client.js.map +1 -1
- package/dist/models/ChatappSyncPhoneNumberResponseBody.d.ts +130 -0
- package/dist/models/ChatappSyncPhoneNumberResponseBody.js +137 -1
- package/dist/models/ChatappSyncPhoneNumberResponseBody.js.map +1 -1
- package/dist/models/CreateFlowRequest.d.ts +5 -0
- package/dist/models/CreateFlowRequest.js +2 -0
- package/dist/models/CreateFlowRequest.js.map +1 -1
- package/dist/models/CreateFlowShrinkRequest.d.ts +5 -0
- package/dist/models/CreateFlowShrinkRequest.js +2 -0
- package/dist/models/CreateFlowShrinkRequest.js.map +1 -1
- package/dist/models/GetFlowResponseBody.d.ts +5 -0
- package/dist/models/GetFlowResponseBody.js +2 -0
- package/dist/models/GetFlowResponseBody.js.map +1 -1
- package/dist/models/ModifyFlowRequest.d.ts +5 -0
- package/dist/models/ModifyFlowRequest.js +2 -0
- package/dist/models/ModifyFlowRequest.js.map +1 -1
- package/dist/models/ModifyFlowResponseBody.d.ts +5 -0
- package/dist/models/ModifyFlowResponseBody.js +2 -0
- package/dist/models/ModifyFlowResponseBody.js.map +1 -1
- package/dist/models/ModifyFlowShrinkRequest.d.ts +5 -0
- package/dist/models/ModifyFlowShrinkRequest.js +2 -0
- package/dist/models/ModifyFlowShrinkRequest.js.map +1 -1
- package/dist/models/QueryChatappPhoneNumbersResponseBody.d.ts +135 -0
- package/dist/models/QueryChatappPhoneNumbersResponseBody.js +139 -1
- package/dist/models/QueryChatappPhoneNumbersResponseBody.js.map +1 -1
- package/dist/models/WhatsappCallRequest.d.ts +73 -0
- package/dist/models/WhatsappCallRequest.js +98 -0
- package/dist/models/WhatsappCallRequest.js.map +1 -0
- package/dist/models/WhatsappCallResponse.d.ts +19 -0
- package/dist/models/WhatsappCallResponse.js +69 -0
- package/dist/models/WhatsappCallResponse.js.map +1 -0
- package/dist/models/WhatsappCallResponseBody.d.ts +52 -0
- package/dist/models/WhatsappCallResponseBody.js +90 -0
- package/dist/models/WhatsappCallResponseBody.js.map +1 -0
- package/dist/models/WhatsappCallShrinkRequest.d.ts +51 -0
- package/dist/models/WhatsappCallShrinkRequest.js +74 -0
- package/dist/models/WhatsappCallShrinkRequest.js.map +1 -0
- package/dist/models/model.d.ts +16 -0
- package/dist/models/model.js +52 -20
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +88 -0
- package/src/models/ChatappSyncPhoneNumberResponseBody.ts +221 -0
- package/src/models/CreateFlowRequest.ts +7 -0
- package/src/models/CreateFlowShrinkRequest.ts +7 -0
- package/src/models/GetFlowResponseBody.ts +7 -0
- package/src/models/ModifyFlowRequest.ts +7 -0
- package/src/models/ModifyFlowResponseBody.ts +7 -0
- package/src/models/ModifyFlowShrinkRequest.ts +7 -0
- package/src/models/QueryChatappPhoneNumbersResponseBody.ts +228 -0
- package/src/models/WhatsappCallRequest.ts +117 -0
- package/src/models/WhatsappCallResponse.ts +40 -0
- package/src/models/WhatsappCallResponseBody.ts +88 -0
- package/src/models/WhatsappCallShrinkRequest.ts +80 -0
- package/src/models/model.ts +16 -0
|
@@ -2,7 +2,223 @@
|
|
|
2
2
|
import * as $dara from '@darabonba/typescript';
|
|
3
3
|
|
|
4
4
|
|
|
5
|
+
export class QueryChatappPhoneNumbersResponseBodyPhoneNumbersCallingConfigureCallingCallHoursHolidaySchedule extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @example
|
|
8
|
+
* 2026-01-01
|
|
9
|
+
*/
|
|
10
|
+
date?: string;
|
|
11
|
+
/**
|
|
12
|
+
* @example
|
|
13
|
+
* 2359
|
|
14
|
+
*/
|
|
15
|
+
endTime?: string;
|
|
16
|
+
/**
|
|
17
|
+
* @example
|
|
18
|
+
* 0000
|
|
19
|
+
*/
|
|
20
|
+
startTime?: string;
|
|
21
|
+
static names(): { [key: string]: string } {
|
|
22
|
+
return {
|
|
23
|
+
date: 'Date',
|
|
24
|
+
endTime: 'EndTime',
|
|
25
|
+
startTime: 'StartTime',
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
static types(): { [key: string]: any } {
|
|
30
|
+
return {
|
|
31
|
+
date: 'string',
|
|
32
|
+
endTime: 'string',
|
|
33
|
+
startTime: 'string',
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
validate() {
|
|
38
|
+
super.validate();
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
constructor(map?: { [key: string]: any }) {
|
|
42
|
+
super(map);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export class QueryChatappPhoneNumbersResponseBodyPhoneNumbersCallingConfigureCallingCallHoursWeeklyOperatingHours extends $dara.Model {
|
|
47
|
+
/**
|
|
48
|
+
* @example
|
|
49
|
+
* 2359
|
|
50
|
+
*/
|
|
51
|
+
closeTime?: string;
|
|
52
|
+
/**
|
|
53
|
+
* @example
|
|
54
|
+
* 示例值示例值示例值
|
|
55
|
+
*/
|
|
56
|
+
dayOfWeek?: string;
|
|
57
|
+
/**
|
|
58
|
+
* @example
|
|
59
|
+
* 0000
|
|
60
|
+
*/
|
|
61
|
+
openTime?: string;
|
|
62
|
+
static names(): { [key: string]: string } {
|
|
63
|
+
return {
|
|
64
|
+
closeTime: 'CloseTime',
|
|
65
|
+
dayOfWeek: 'DayOfWeek',
|
|
66
|
+
openTime: 'OpenTime',
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
static types(): { [key: string]: any } {
|
|
71
|
+
return {
|
|
72
|
+
closeTime: 'string',
|
|
73
|
+
dayOfWeek: 'string',
|
|
74
|
+
openTime: 'string',
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
validate() {
|
|
79
|
+
super.validate();
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
constructor(map?: { [key: string]: any }) {
|
|
83
|
+
super(map);
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export class QueryChatappPhoneNumbersResponseBodyPhoneNumbersCallingConfigureCallingCallHours extends $dara.Model {
|
|
88
|
+
/**
|
|
89
|
+
* @example
|
|
90
|
+
* DEFAULT
|
|
91
|
+
*/
|
|
92
|
+
callIconVisibility?: string;
|
|
93
|
+
/**
|
|
94
|
+
* @example
|
|
95
|
+
* ENABLED
|
|
96
|
+
*/
|
|
97
|
+
callbackPermissionStatus?: string;
|
|
98
|
+
holidaySchedule?: QueryChatappPhoneNumbersResponseBodyPhoneNumbersCallingConfigureCallingCallHoursHolidaySchedule[];
|
|
99
|
+
/**
|
|
100
|
+
* @example
|
|
101
|
+
* ENABLED
|
|
102
|
+
*/
|
|
103
|
+
status?: string;
|
|
104
|
+
/**
|
|
105
|
+
* @example
|
|
106
|
+
* Asia/Shanghai
|
|
107
|
+
*/
|
|
108
|
+
timezoneId?: string;
|
|
109
|
+
weeklyOperatingHours?: QueryChatappPhoneNumbersResponseBodyPhoneNumbersCallingConfigureCallingCallHoursWeeklyOperatingHours[];
|
|
110
|
+
static names(): { [key: string]: string } {
|
|
111
|
+
return {
|
|
112
|
+
callIconVisibility: 'CallIconVisibility',
|
|
113
|
+
callbackPermissionStatus: 'CallbackPermissionStatus',
|
|
114
|
+
holidaySchedule: 'HolidaySchedule',
|
|
115
|
+
status: 'Status',
|
|
116
|
+
timezoneId: 'TimezoneId',
|
|
117
|
+
weeklyOperatingHours: 'WeeklyOperatingHours',
|
|
118
|
+
};
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
static types(): { [key: string]: any } {
|
|
122
|
+
return {
|
|
123
|
+
callIconVisibility: 'string',
|
|
124
|
+
callbackPermissionStatus: 'string',
|
|
125
|
+
holidaySchedule: { 'type': 'array', 'itemType': QueryChatappPhoneNumbersResponseBodyPhoneNumbersCallingConfigureCallingCallHoursHolidaySchedule },
|
|
126
|
+
status: 'string',
|
|
127
|
+
timezoneId: 'string',
|
|
128
|
+
weeklyOperatingHours: { 'type': 'array', 'itemType': QueryChatappPhoneNumbersResponseBodyPhoneNumbersCallingConfigureCallingCallHoursWeeklyOperatingHours },
|
|
129
|
+
};
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
validate() {
|
|
133
|
+
if(Array.isArray(this.holidaySchedule)) {
|
|
134
|
+
$dara.Model.validateArray(this.holidaySchedule);
|
|
135
|
+
}
|
|
136
|
+
if(Array.isArray(this.weeklyOperatingHours)) {
|
|
137
|
+
$dara.Model.validateArray(this.weeklyOperatingHours);
|
|
138
|
+
}
|
|
139
|
+
super.validate();
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
constructor(map?: { [key: string]: any }) {
|
|
143
|
+
super(map);
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
export class QueryChatappPhoneNumbersResponseBodyPhoneNumbersCallingConfigureCalling extends $dara.Model {
|
|
148
|
+
callHours?: QueryChatappPhoneNumbersResponseBodyPhoneNumbersCallingConfigureCallingCallHours;
|
|
149
|
+
/**
|
|
150
|
+
* @example
|
|
151
|
+
* ENABLED
|
|
152
|
+
*/
|
|
153
|
+
status?: string;
|
|
154
|
+
static names(): { [key: string]: string } {
|
|
155
|
+
return {
|
|
156
|
+
callHours: 'CallHours',
|
|
157
|
+
status: 'Status',
|
|
158
|
+
};
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
static types(): { [key: string]: any } {
|
|
162
|
+
return {
|
|
163
|
+
callHours: QueryChatappPhoneNumbersResponseBodyPhoneNumbersCallingConfigureCallingCallHours,
|
|
164
|
+
status: 'string',
|
|
165
|
+
};
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
validate() {
|
|
169
|
+
if(this.callHours && typeof (this.callHours as any).validate === 'function') {
|
|
170
|
+
(this.callHours as any).validate();
|
|
171
|
+
}
|
|
172
|
+
super.validate();
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
constructor(map?: { [key: string]: any }) {
|
|
176
|
+
super(map);
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
export class QueryChatappPhoneNumbersResponseBodyPhoneNumbersCallingConfigure extends $dara.Model {
|
|
181
|
+
calling?: QueryChatappPhoneNumbersResponseBodyPhoneNumbersCallingConfigureCalling;
|
|
182
|
+
/**
|
|
183
|
+
* @example
|
|
184
|
+
* https://aliyun.com
|
|
185
|
+
*/
|
|
186
|
+
callingCallbackUrl?: string;
|
|
187
|
+
/**
|
|
188
|
+
* @example
|
|
189
|
+
* 1000
|
|
190
|
+
*/
|
|
191
|
+
maxTalkTime?: number;
|
|
192
|
+
static names(): { [key: string]: string } {
|
|
193
|
+
return {
|
|
194
|
+
calling: 'Calling',
|
|
195
|
+
callingCallbackUrl: 'CallingCallbackUrl',
|
|
196
|
+
maxTalkTime: 'MaxTalkTime',
|
|
197
|
+
};
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
static types(): { [key: string]: any } {
|
|
201
|
+
return {
|
|
202
|
+
calling: QueryChatappPhoneNumbersResponseBodyPhoneNumbersCallingConfigureCalling,
|
|
203
|
+
callingCallbackUrl: 'string',
|
|
204
|
+
maxTalkTime: 'number',
|
|
205
|
+
};
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
validate() {
|
|
209
|
+
if(this.calling && typeof (this.calling as any).validate === 'function') {
|
|
210
|
+
(this.calling as any).validate();
|
|
211
|
+
}
|
|
212
|
+
super.validate();
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
constructor(map?: { [key: string]: any }) {
|
|
216
|
+
super(map);
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
|
|
5
220
|
export class QueryChatappPhoneNumbersResponseBodyPhoneNumbers extends $dara.Model {
|
|
221
|
+
callingConfigure?: QueryChatappPhoneNumbersResponseBodyPhoneNumbersCallingConfigure;
|
|
6
222
|
/**
|
|
7
223
|
* @remarks
|
|
8
224
|
* The verification status of the phone number.
|
|
@@ -146,6 +362,7 @@ export class QueryChatappPhoneNumbersResponseBodyPhoneNumbers extends $dara.Mode
|
|
|
146
362
|
verifiedName?: string;
|
|
147
363
|
static names(): { [key: string]: string } {
|
|
148
364
|
return {
|
|
365
|
+
callingConfigure: 'CallingConfigure',
|
|
149
366
|
codeVerificationStatus: 'CodeVerificationStatus',
|
|
150
367
|
isOfficial: 'IsOfficial',
|
|
151
368
|
messagingLimitTier: 'MessagingLimitTier',
|
|
@@ -164,6 +381,7 @@ export class QueryChatappPhoneNumbersResponseBodyPhoneNumbers extends $dara.Mode
|
|
|
164
381
|
|
|
165
382
|
static types(): { [key: string]: any } {
|
|
166
383
|
return {
|
|
384
|
+
callingConfigure: QueryChatappPhoneNumbersResponseBodyPhoneNumbersCallingConfigure,
|
|
167
385
|
codeVerificationStatus: 'string',
|
|
168
386
|
isOfficial: 'string',
|
|
169
387
|
messagingLimitTier: 'string',
|
|
@@ -181,6 +399,9 @@ export class QueryChatappPhoneNumbersResponseBodyPhoneNumbers extends $dara.Mode
|
|
|
181
399
|
}
|
|
182
400
|
|
|
183
401
|
validate() {
|
|
402
|
+
if(this.callingConfigure && typeof (this.callingConfigure as any).validate === 'function') {
|
|
403
|
+
(this.callingConfigure as any).validate();
|
|
404
|
+
}
|
|
184
405
|
super.validate();
|
|
185
406
|
}
|
|
186
407
|
|
|
@@ -209,6 +430,11 @@ export class QueryChatappPhoneNumbersResponseBody extends $dara.Model {
|
|
|
209
430
|
* OK
|
|
210
431
|
*/
|
|
211
432
|
code?: string;
|
|
433
|
+
/**
|
|
434
|
+
* @example
|
|
435
|
+
* 示例值示例值
|
|
436
|
+
*/
|
|
437
|
+
data?: string;
|
|
212
438
|
/**
|
|
213
439
|
* @remarks
|
|
214
440
|
* The message returned.
|
|
@@ -245,6 +471,7 @@ export class QueryChatappPhoneNumbersResponseBody extends $dara.Model {
|
|
|
245
471
|
return {
|
|
246
472
|
accessDeniedDetail: 'AccessDeniedDetail',
|
|
247
473
|
code: 'Code',
|
|
474
|
+
data: 'Data',
|
|
248
475
|
message: 'Message',
|
|
249
476
|
phoneNumbers: 'PhoneNumbers',
|
|
250
477
|
requestId: 'RequestId',
|
|
@@ -256,6 +483,7 @@ export class QueryChatappPhoneNumbersResponseBody extends $dara.Model {
|
|
|
256
483
|
return {
|
|
257
484
|
accessDeniedDetail: 'string',
|
|
258
485
|
code: 'string',
|
|
486
|
+
data: 'string',
|
|
259
487
|
message: 'string',
|
|
260
488
|
phoneNumbers: { 'type': 'array', 'itemType': QueryChatappPhoneNumbersResponseBodyPhoneNumbers },
|
|
261
489
|
requestId: 'string',
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class WhatsappCallRequestSession extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @example
|
|
8
|
+
* 示例值
|
|
9
|
+
*/
|
|
10
|
+
sdp?: string;
|
|
11
|
+
/**
|
|
12
|
+
* @example
|
|
13
|
+
* 示例值
|
|
14
|
+
*/
|
|
15
|
+
sdpType?: string;
|
|
16
|
+
static names(): { [key: string]: string } {
|
|
17
|
+
return {
|
|
18
|
+
sdp: 'Sdp',
|
|
19
|
+
sdpType: 'SdpType',
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
static types(): { [key: string]: any } {
|
|
24
|
+
return {
|
|
25
|
+
sdp: 'string',
|
|
26
|
+
sdpType: 'string',
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
validate() {
|
|
31
|
+
super.validate();
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
constructor(map?: { [key: string]: any }) {
|
|
35
|
+
super(map);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export class WhatsappCallRequest extends $dara.Model {
|
|
40
|
+
/**
|
|
41
|
+
* @remarks
|
|
42
|
+
* This parameter is required.
|
|
43
|
+
*
|
|
44
|
+
* @example
|
|
45
|
+
* 示例值示例值
|
|
46
|
+
*/
|
|
47
|
+
businessNumber?: string;
|
|
48
|
+
/**
|
|
49
|
+
* @remarks
|
|
50
|
+
* This parameter is required.
|
|
51
|
+
*
|
|
52
|
+
* @example
|
|
53
|
+
* 示例值示例值示例值
|
|
54
|
+
*/
|
|
55
|
+
callAction?: string;
|
|
56
|
+
/**
|
|
57
|
+
* @example
|
|
58
|
+
* 示例值示例值
|
|
59
|
+
*/
|
|
60
|
+
callId?: string;
|
|
61
|
+
/**
|
|
62
|
+
* @remarks
|
|
63
|
+
* This parameter is required.
|
|
64
|
+
*
|
|
65
|
+
* @example
|
|
66
|
+
* 示例值
|
|
67
|
+
*/
|
|
68
|
+
custSpaceId?: string;
|
|
69
|
+
ownerId?: number;
|
|
70
|
+
resourceOwnerAccount?: string;
|
|
71
|
+
resourceOwnerId?: number;
|
|
72
|
+
session?: WhatsappCallRequestSession;
|
|
73
|
+
/**
|
|
74
|
+
* @example
|
|
75
|
+
* 示例值示例值
|
|
76
|
+
*/
|
|
77
|
+
userNumber?: string;
|
|
78
|
+
static names(): { [key: string]: string } {
|
|
79
|
+
return {
|
|
80
|
+
businessNumber: 'BusinessNumber',
|
|
81
|
+
callAction: 'CallAction',
|
|
82
|
+
callId: 'CallId',
|
|
83
|
+
custSpaceId: 'CustSpaceId',
|
|
84
|
+
ownerId: 'OwnerId',
|
|
85
|
+
resourceOwnerAccount: 'ResourceOwnerAccount',
|
|
86
|
+
resourceOwnerId: 'ResourceOwnerId',
|
|
87
|
+
session: 'Session',
|
|
88
|
+
userNumber: 'UserNumber',
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
static types(): { [key: string]: any } {
|
|
93
|
+
return {
|
|
94
|
+
businessNumber: 'string',
|
|
95
|
+
callAction: 'string',
|
|
96
|
+
callId: 'string',
|
|
97
|
+
custSpaceId: 'string',
|
|
98
|
+
ownerId: 'number',
|
|
99
|
+
resourceOwnerAccount: 'string',
|
|
100
|
+
resourceOwnerId: 'number',
|
|
101
|
+
session: WhatsappCallRequestSession,
|
|
102
|
+
userNumber: 'string',
|
|
103
|
+
};
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
validate() {
|
|
107
|
+
if(this.session && typeof (this.session as any).validate === 'function') {
|
|
108
|
+
(this.session as any).validate();
|
|
109
|
+
}
|
|
110
|
+
super.validate();
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
constructor(map?: { [key: string]: any }) {
|
|
114
|
+
super(map);
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
import { WhatsappCallResponseBody } from "./WhatsappCallResponseBody";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class WhatsappCallResponse extends $dara.Model {
|
|
7
|
+
headers?: { [key: string]: string };
|
|
8
|
+
statusCode?: number;
|
|
9
|
+
body?: WhatsappCallResponseBody;
|
|
10
|
+
static names(): { [key: string]: string } {
|
|
11
|
+
return {
|
|
12
|
+
headers: 'headers',
|
|
13
|
+
statusCode: 'statusCode',
|
|
14
|
+
body: 'body',
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
static types(): { [key: string]: any } {
|
|
19
|
+
return {
|
|
20
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
21
|
+
statusCode: 'number',
|
|
22
|
+
body: WhatsappCallResponseBody,
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
validate() {
|
|
27
|
+
if(this.headers) {
|
|
28
|
+
$dara.Model.validateMap(this.headers);
|
|
29
|
+
}
|
|
30
|
+
if(this.body && typeof (this.body as any).validate === 'function') {
|
|
31
|
+
(this.body as any).validate();
|
|
32
|
+
}
|
|
33
|
+
super.validate();
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
constructor(map?: { [key: string]: any }) {
|
|
37
|
+
super(map);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class WhatsappCallResponseBodyModel extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @example
|
|
8
|
+
* 示例值示例值
|
|
9
|
+
*/
|
|
10
|
+
callId?: string;
|
|
11
|
+
static names(): { [key: string]: string } {
|
|
12
|
+
return {
|
|
13
|
+
callId: 'CallId',
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
static types(): { [key: string]: any } {
|
|
18
|
+
return {
|
|
19
|
+
callId: 'string',
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
validate() {
|
|
24
|
+
super.validate();
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
constructor(map?: { [key: string]: any }) {
|
|
28
|
+
super(map);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export class WhatsappCallResponseBody extends $dara.Model {
|
|
33
|
+
accessDeniedDetail?: string;
|
|
34
|
+
/**
|
|
35
|
+
* @example
|
|
36
|
+
* 示例值示例值示例值
|
|
37
|
+
*/
|
|
38
|
+
code?: string;
|
|
39
|
+
/**
|
|
40
|
+
* @example
|
|
41
|
+
* 示例值示例值示例值
|
|
42
|
+
*/
|
|
43
|
+
message?: string;
|
|
44
|
+
model?: WhatsappCallResponseBodyModel;
|
|
45
|
+
/**
|
|
46
|
+
* @example
|
|
47
|
+
* 示例值示例值
|
|
48
|
+
*/
|
|
49
|
+
requestId?: string;
|
|
50
|
+
/**
|
|
51
|
+
* @example
|
|
52
|
+
* false
|
|
53
|
+
*/
|
|
54
|
+
success?: boolean;
|
|
55
|
+
static names(): { [key: string]: string } {
|
|
56
|
+
return {
|
|
57
|
+
accessDeniedDetail: 'AccessDeniedDetail',
|
|
58
|
+
code: 'Code',
|
|
59
|
+
message: 'Message',
|
|
60
|
+
model: 'Model',
|
|
61
|
+
requestId: 'RequestId',
|
|
62
|
+
success: 'Success',
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
static types(): { [key: string]: any } {
|
|
67
|
+
return {
|
|
68
|
+
accessDeniedDetail: 'string',
|
|
69
|
+
code: 'string',
|
|
70
|
+
message: 'string',
|
|
71
|
+
model: WhatsappCallResponseBodyModel,
|
|
72
|
+
requestId: 'string',
|
|
73
|
+
success: 'boolean',
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
validate() {
|
|
78
|
+
if(this.model && typeof (this.model as any).validate === 'function') {
|
|
79
|
+
(this.model as any).validate();
|
|
80
|
+
}
|
|
81
|
+
super.validate();
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
constructor(map?: { [key: string]: any }) {
|
|
85
|
+
super(map);
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class WhatsappCallShrinkRequest extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* This parameter is required.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* 示例值示例值
|
|
12
|
+
*/
|
|
13
|
+
businessNumber?: string;
|
|
14
|
+
/**
|
|
15
|
+
* @remarks
|
|
16
|
+
* This parameter is required.
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* 示例值示例值示例值
|
|
20
|
+
*/
|
|
21
|
+
callAction?: string;
|
|
22
|
+
/**
|
|
23
|
+
* @example
|
|
24
|
+
* 示例值示例值
|
|
25
|
+
*/
|
|
26
|
+
callId?: string;
|
|
27
|
+
/**
|
|
28
|
+
* @remarks
|
|
29
|
+
* This parameter is required.
|
|
30
|
+
*
|
|
31
|
+
* @example
|
|
32
|
+
* 示例值
|
|
33
|
+
*/
|
|
34
|
+
custSpaceId?: string;
|
|
35
|
+
ownerId?: number;
|
|
36
|
+
resourceOwnerAccount?: string;
|
|
37
|
+
resourceOwnerId?: number;
|
|
38
|
+
sessionShrink?: string;
|
|
39
|
+
/**
|
|
40
|
+
* @example
|
|
41
|
+
* 示例值示例值
|
|
42
|
+
*/
|
|
43
|
+
userNumber?: string;
|
|
44
|
+
static names(): { [key: string]: string } {
|
|
45
|
+
return {
|
|
46
|
+
businessNumber: 'BusinessNumber',
|
|
47
|
+
callAction: 'CallAction',
|
|
48
|
+
callId: 'CallId',
|
|
49
|
+
custSpaceId: 'CustSpaceId',
|
|
50
|
+
ownerId: 'OwnerId',
|
|
51
|
+
resourceOwnerAccount: 'ResourceOwnerAccount',
|
|
52
|
+
resourceOwnerId: 'ResourceOwnerId',
|
|
53
|
+
sessionShrink: 'Session',
|
|
54
|
+
userNumber: 'UserNumber',
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
static types(): { [key: string]: any } {
|
|
59
|
+
return {
|
|
60
|
+
businessNumber: 'string',
|
|
61
|
+
callAction: 'string',
|
|
62
|
+
callId: 'string',
|
|
63
|
+
custSpaceId: 'string',
|
|
64
|
+
ownerId: 'number',
|
|
65
|
+
resourceOwnerAccount: 'string',
|
|
66
|
+
resourceOwnerId: 'number',
|
|
67
|
+
sessionShrink: 'string',
|
|
68
|
+
userNumber: 'string',
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
validate() {
|
|
73
|
+
super.validate();
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
constructor(map?: { [key: string]: any }) {
|
|
77
|
+
super(map);
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
|
package/src/models/model.ts
CHANGED
|
@@ -8,6 +8,11 @@ export { BindInstagramPageResponseBodyData } from './BindInstagramPageResponseBo
|
|
|
8
8
|
export { BindMessengerPageResponseBodyData } from './BindMessengerPageResponseBody';
|
|
9
9
|
export { ChatappBindWabaResponseBodyData } from './ChatappBindWabaResponseBody';
|
|
10
10
|
export { ChatappMigrationVerifiedResponseBodyData } from './ChatappMigrationVerifiedResponseBody';
|
|
11
|
+
export { ChatappSyncPhoneNumberResponseBodyPhoneNumbersCallingConfigureCallingCallHoursHolidaySchedule } from './ChatappSyncPhoneNumberResponseBody';
|
|
12
|
+
export { ChatappSyncPhoneNumberResponseBodyPhoneNumbersCallingConfigureCallingCallHoursWeeklyOperatingHours } from './ChatappSyncPhoneNumberResponseBody';
|
|
13
|
+
export { ChatappSyncPhoneNumberResponseBodyPhoneNumbersCallingConfigureCallingCallHours } from './ChatappSyncPhoneNumberResponseBody';
|
|
14
|
+
export { ChatappSyncPhoneNumberResponseBodyPhoneNumbersCallingConfigureCalling } from './ChatappSyncPhoneNumberResponseBody';
|
|
15
|
+
export { ChatappSyncPhoneNumberResponseBodyPhoneNumbersCallingConfigure } from './ChatappSyncPhoneNumberResponseBody';
|
|
11
16
|
export { ChatappSyncPhoneNumberResponseBodyPhoneNumbers } from './ChatappSyncPhoneNumberResponseBody';
|
|
12
17
|
export { CopyTemplateResponseBodyData } from './CopyTemplateResponseBody';
|
|
13
18
|
export { CreateChatappMigrationInitiateResponseBodyData } from './CreateChatappMigrationInitiateResponseBody';
|
|
@@ -115,6 +120,11 @@ export { ModifyChatappTemplateRequestComponents } from './ModifyChatappTemplateR
|
|
|
115
120
|
export { ModifyChatappTemplateResponseBodyData } from './ModifyChatappTemplateResponseBody';
|
|
116
121
|
export { ModifyFlowResponseBodyData } from './ModifyFlowResponseBody';
|
|
117
122
|
export { QueryChatappBindWabaResponseBodyData } from './QueryChatappBindWabaResponseBody';
|
|
123
|
+
export { QueryChatappPhoneNumbersResponseBodyPhoneNumbersCallingConfigureCallingCallHoursHolidaySchedule } from './QueryChatappPhoneNumbersResponseBody';
|
|
124
|
+
export { QueryChatappPhoneNumbersResponseBodyPhoneNumbersCallingConfigureCallingCallHoursWeeklyOperatingHours } from './QueryChatappPhoneNumbersResponseBody';
|
|
125
|
+
export { QueryChatappPhoneNumbersResponseBodyPhoneNumbersCallingConfigureCallingCallHours } from './QueryChatappPhoneNumbersResponseBody';
|
|
126
|
+
export { QueryChatappPhoneNumbersResponseBodyPhoneNumbersCallingConfigureCalling } from './QueryChatappPhoneNumbersResponseBody';
|
|
127
|
+
export { QueryChatappPhoneNumbersResponseBodyPhoneNumbersCallingConfigure } from './QueryChatappPhoneNumbersResponseBody';
|
|
118
128
|
export { QueryChatappPhoneNumbersResponseBodyPhoneNumbers } from './QueryChatappPhoneNumbersResponseBody';
|
|
119
129
|
export { QueryInstanceResponseBodyData } from './QueryInstanceResponseBody';
|
|
120
130
|
export { QueryPhoneBusinessProfileResponseBodyData } from './QueryPhoneBusinessProfileResponseBody';
|
|
@@ -136,6 +146,8 @@ export { UpdateConversationalAutomationRequestCommands } from './UpdateConversat
|
|
|
136
146
|
export { UpdateFlowJSONAssetResponseBodyData } from './UpdateFlowJsonassetResponseBody';
|
|
137
147
|
export { UpdateInstanceResponseBodyData } from './UpdateInstanceResponseBody';
|
|
138
148
|
export { UpdatePhoneMessageQrdlResponseBodyData } from './UpdatePhoneMessageQrdlResponseBody';
|
|
149
|
+
export { WhatsappCallRequestSession } from './WhatsappCallRequest';
|
|
150
|
+
export { WhatsappCallResponseBodyModel } from './WhatsappCallResponseBody';
|
|
139
151
|
export { AddAddressRecoverSuspendRequest } from './AddAddressRecoverSuspendRequest';
|
|
140
152
|
export { AddAddressRecoverSuspendShrinkRequest } from './AddAddressRecoverSuspendShrinkRequest';
|
|
141
153
|
export { AddAddressRecoverSuspendResponseBody } from './AddAddressRecoverSuspendResponseBody';
|
|
@@ -676,3 +688,7 @@ export { UpdatePhoneWebhookResponse } from './UpdatePhoneWebhookResponse';
|
|
|
676
688
|
export { UpdateWabaMmlStatusRequest } from './UpdateWabaMmlStatusRequest';
|
|
677
689
|
export { UpdateWabaMmlStatusResponseBody } from './UpdateWabaMmlStatusResponseBody';
|
|
678
690
|
export { UpdateWabaMmlStatusResponse } from './UpdateWabaMmlStatusResponse';
|
|
691
|
+
export { WhatsappCallRequest } from './WhatsappCallRequest';
|
|
692
|
+
export { WhatsappCallShrinkRequest } from './WhatsappCallShrinkRequest';
|
|
693
|
+
export { WhatsappCallResponseBody } from './WhatsappCallResponseBody';
|
|
694
|
+
export { WhatsappCallResponse } from './WhatsappCallResponse';
|