@alicloud/ccc20200701 2.37.0 → 2.38.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.
@@ -0,0 +1,77 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class ClaimCallRequest extends $dara.Model {
6
+ /**
7
+ * @example
8
+ * [
9
+ * {
10
+ * "f0": "zeren001@report-test-2",
11
+ * "f1": "desktop-voip-box@report-test-2"
12
+ * }
13
+ * ]
14
+ */
15
+ candidateUserListJson?: string;
16
+ /**
17
+ * @remarks
18
+ * This parameter is required.
19
+ *
20
+ * @example
21
+ * ccc-test
22
+ */
23
+ instanceId?: string;
24
+ /**
25
+ * @remarks
26
+ * This parameter is required.
27
+ *
28
+ * @example
29
+ * job-6538214103685****
30
+ */
31
+ jobId?: string;
32
+ /**
33
+ * @example
34
+ * test_sg_****@ccc-test
35
+ */
36
+ skillGroupId?: string;
37
+ /**
38
+ * @example
39
+ * tags
40
+ */
41
+ tags?: string;
42
+ /**
43
+ * @example
44
+ * invoker@ccc-test
45
+ */
46
+ userId?: string;
47
+ static names(): { [key: string]: string } {
48
+ return {
49
+ candidateUserListJson: 'CandidateUserListJson',
50
+ instanceId: 'InstanceId',
51
+ jobId: 'JobId',
52
+ skillGroupId: 'SkillGroupId',
53
+ tags: 'Tags',
54
+ userId: 'UserId',
55
+ };
56
+ }
57
+
58
+ static types(): { [key: string]: any } {
59
+ return {
60
+ candidateUserListJson: 'string',
61
+ instanceId: 'string',
62
+ jobId: 'string',
63
+ skillGroupId: 'string',
64
+ tags: 'string',
65
+ userId: 'string',
66
+ };
67
+ }
68
+
69
+ validate() {
70
+ super.validate();
71
+ }
72
+
73
+ constructor(map?: { [key: string]: any }) {
74
+ super(map);
75
+ }
76
+ }
77
+
@@ -0,0 +1,40 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+ import { ClaimCallResponseBody } from "./ClaimCallResponseBody";
4
+
5
+
6
+ export class ClaimCallResponse extends $dara.Model {
7
+ headers?: { [key: string]: string };
8
+ statusCode?: number;
9
+ body?: ClaimCallResponseBody;
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: ClaimCallResponseBody,
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,328 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class ClaimCallResponseBodyDataCallContextChannelContexts extends $dara.Model {
6
+ /**
7
+ * @example
8
+ * OUTBOUND
9
+ */
10
+ callType?: string;
11
+ /**
12
+ * @example
13
+ * ch:user:1390501****->8032****:1609138902226:job-653821410368****
14
+ */
15
+ channelId?: string;
16
+ /**
17
+ * @example
18
+ * ANSWERED
19
+ */
20
+ channelState?: string;
21
+ /**
22
+ * @example
23
+ * a=b;c=d;
24
+ */
25
+ channelVariables?: string;
26
+ /**
27
+ * @example
28
+ * 1390501****
29
+ */
30
+ destination?: string;
31
+ /**
32
+ * @example
33
+ * job-6573574060089****
34
+ */
35
+ jobId?: string;
36
+ /**
37
+ * @example
38
+ * 0830019****
39
+ */
40
+ originator?: string;
41
+ /**
42
+ * @example
43
+ * 1390501****
44
+ */
45
+ releaseInitiator?: string;
46
+ releaseReason?: string;
47
+ /**
48
+ * @example
49
+ * 1609225718295
50
+ */
51
+ timestamp?: number;
52
+ /**
53
+ * @example
54
+ * 8059****
55
+ */
56
+ userExtension?: string;
57
+ /**
58
+ * @example
59
+ * invoker@ccc-test
60
+ */
61
+ userId?: string;
62
+ static names(): { [key: string]: string } {
63
+ return {
64
+ callType: 'CallType',
65
+ channelId: 'ChannelId',
66
+ channelState: 'ChannelState',
67
+ channelVariables: 'ChannelVariables',
68
+ destination: 'Destination',
69
+ jobId: 'JobId',
70
+ originator: 'Originator',
71
+ releaseInitiator: 'ReleaseInitiator',
72
+ releaseReason: 'ReleaseReason',
73
+ timestamp: 'Timestamp',
74
+ userExtension: 'UserExtension',
75
+ userId: 'UserId',
76
+ };
77
+ }
78
+
79
+ static types(): { [key: string]: any } {
80
+ return {
81
+ callType: 'string',
82
+ channelId: 'string',
83
+ channelState: 'string',
84
+ channelVariables: 'string',
85
+ destination: 'string',
86
+ jobId: 'string',
87
+ originator: 'string',
88
+ releaseInitiator: 'string',
89
+ releaseReason: 'string',
90
+ timestamp: 'number',
91
+ userExtension: 'string',
92
+ userId: 'string',
93
+ };
94
+ }
95
+
96
+ validate() {
97
+ super.validate();
98
+ }
99
+
100
+ constructor(map?: { [key: string]: any }) {
101
+ super(map);
102
+ }
103
+ }
104
+
105
+ export class ClaimCallResponseBodyDataCallContext extends $dara.Model {
106
+ channelContexts?: ClaimCallResponseBodyDataCallContextChannelContexts[];
107
+ /**
108
+ * @example
109
+ * ccc-test
110
+ */
111
+ instanceId?: string;
112
+ /**
113
+ * @example
114
+ * job-6538214103685****
115
+ */
116
+ jobId?: string;
117
+ static names(): { [key: string]: string } {
118
+ return {
119
+ channelContexts: 'ChannelContexts',
120
+ instanceId: 'InstanceId',
121
+ jobId: 'JobId',
122
+ };
123
+ }
124
+
125
+ static types(): { [key: string]: any } {
126
+ return {
127
+ channelContexts: { 'type': 'array', 'itemType': ClaimCallResponseBodyDataCallContextChannelContexts },
128
+ instanceId: 'string',
129
+ jobId: 'string',
130
+ };
131
+ }
132
+
133
+ validate() {
134
+ if(Array.isArray(this.channelContexts)) {
135
+ $dara.Model.validateArray(this.channelContexts);
136
+ }
137
+ super.validate();
138
+ }
139
+
140
+ constructor(map?: { [key: string]: any }) {
141
+ super(map);
142
+ }
143
+ }
144
+
145
+ export class ClaimCallResponseBodyDataUserContext extends $dara.Model {
146
+ /**
147
+ * @example
148
+ * Customized
149
+ */
150
+ breakCode?: string;
151
+ /**
152
+ * @example
153
+ * device-xxxx
154
+ */
155
+ deviceId?: string;
156
+ /**
157
+ * @example
158
+ * 0830019****
159
+ */
160
+ extension?: string;
161
+ /**
162
+ * @example
163
+ * ccc-test
164
+ */
165
+ instanceId?: string;
166
+ /**
167
+ * @example
168
+ * job-6573574060089****
169
+ */
170
+ jobId?: string;
171
+ /**
172
+ * @example
173
+ * false
174
+ */
175
+ outboundScenario?: boolean;
176
+ signedSkillGroupIdList?: string[];
177
+ /**
178
+ * @example
179
+ * user@ccc-test
180
+ */
181
+ userId?: string;
182
+ /**
183
+ * @example
184
+ * Dialing
185
+ */
186
+ userState?: string;
187
+ /**
188
+ * @example
189
+ * ON_SITE
190
+ */
191
+ workMode?: string;
192
+ static names(): { [key: string]: string } {
193
+ return {
194
+ breakCode: 'BreakCode',
195
+ deviceId: 'DeviceId',
196
+ extension: 'Extension',
197
+ instanceId: 'InstanceId',
198
+ jobId: 'JobId',
199
+ outboundScenario: 'OutboundScenario',
200
+ signedSkillGroupIdList: 'SignedSkillGroupIdList',
201
+ userId: 'UserId',
202
+ userState: 'UserState',
203
+ workMode: 'WorkMode',
204
+ };
205
+ }
206
+
207
+ static types(): { [key: string]: any } {
208
+ return {
209
+ breakCode: 'string',
210
+ deviceId: 'string',
211
+ extension: 'string',
212
+ instanceId: 'string',
213
+ jobId: 'string',
214
+ outboundScenario: 'boolean',
215
+ signedSkillGroupIdList: { 'type': 'array', 'itemType': 'string' },
216
+ userId: 'string',
217
+ userState: 'string',
218
+ workMode: 'string',
219
+ };
220
+ }
221
+
222
+ validate() {
223
+ if(Array.isArray(this.signedSkillGroupIdList)) {
224
+ $dara.Model.validateArray(this.signedSkillGroupIdList);
225
+ }
226
+ super.validate();
227
+ }
228
+
229
+ constructor(map?: { [key: string]: any }) {
230
+ super(map);
231
+ }
232
+ }
233
+
234
+ export class ClaimCallResponseBodyData extends $dara.Model {
235
+ callContext?: ClaimCallResponseBodyDataCallContext;
236
+ /**
237
+ * @example
238
+ * 123456
239
+ */
240
+ contextId?: number;
241
+ userContext?: ClaimCallResponseBodyDataUserContext;
242
+ static names(): { [key: string]: string } {
243
+ return {
244
+ callContext: 'CallContext',
245
+ contextId: 'ContextId',
246
+ userContext: 'UserContext',
247
+ };
248
+ }
249
+
250
+ static types(): { [key: string]: any } {
251
+ return {
252
+ callContext: ClaimCallResponseBodyDataCallContext,
253
+ contextId: 'number',
254
+ userContext: ClaimCallResponseBodyDataUserContext,
255
+ };
256
+ }
257
+
258
+ validate() {
259
+ if(this.callContext && typeof (this.callContext as any).validate === 'function') {
260
+ (this.callContext as any).validate();
261
+ }
262
+ if(this.userContext && typeof (this.userContext as any).validate === 'function') {
263
+ (this.userContext as any).validate();
264
+ }
265
+ super.validate();
266
+ }
267
+
268
+ constructor(map?: { [key: string]: any }) {
269
+ super(map);
270
+ }
271
+ }
272
+
273
+ export class ClaimCallResponseBody extends $dara.Model {
274
+ /**
275
+ * @example
276
+ * OK
277
+ */
278
+ code?: string;
279
+ data?: ClaimCallResponseBodyData;
280
+ /**
281
+ * @example
282
+ * 200
283
+ */
284
+ httpStatusCode?: number;
285
+ message?: string;
286
+ params?: string[];
287
+ /**
288
+ * @example
289
+ * 93CDC17E-3E8A-48F2-99E5-FA2E238DE8B4
290
+ */
291
+ requestId?: string;
292
+ static names(): { [key: string]: string } {
293
+ return {
294
+ code: 'Code',
295
+ data: 'Data',
296
+ httpStatusCode: 'HttpStatusCode',
297
+ message: 'Message',
298
+ params: 'Params',
299
+ requestId: 'RequestId',
300
+ };
301
+ }
302
+
303
+ static types(): { [key: string]: any } {
304
+ return {
305
+ code: 'string',
306
+ data: ClaimCallResponseBodyData,
307
+ httpStatusCode: 'number',
308
+ message: 'string',
309
+ params: { 'type': 'array', 'itemType': 'string' },
310
+ requestId: 'string',
311
+ };
312
+ }
313
+
314
+ validate() {
315
+ if(this.data && typeof (this.data as any).validate === 'function') {
316
+ (this.data as any).validate();
317
+ }
318
+ if(Array.isArray(this.params)) {
319
+ $dara.Model.validateArray(this.params);
320
+ }
321
+ super.validate();
322
+ }
323
+
324
+ constructor(map?: { [key: string]: any }) {
325
+ super(map);
326
+ }
327
+ }
328
+
@@ -21,6 +21,10 @@ export { CancelAttendedTransferResponseBodyDataUserContext } from './CancelAtten
21
21
  export { CancelAttendedTransferResponseBodyData } from './CancelAttendedTransferResponseBody';
22
22
  export { ChangeVisibilityResponseBodyData } from './ChangeVisibilityResponseBody';
23
23
  export { ChangeWorkModeResponseBodyData } from './ChangeWorkModeResponseBody';
24
+ export { ClaimCallResponseBodyDataCallContextChannelContexts } from './ClaimCallResponseBody';
25
+ export { ClaimCallResponseBodyDataCallContext } from './ClaimCallResponseBody';
26
+ export { ClaimCallResponseBodyDataUserContext } from './ClaimCallResponseBody';
27
+ export { ClaimCallResponseBodyData } from './ClaimCallResponseBody';
24
28
  export { ClaimChatResponseBodyDataChatContexts } from './ClaimChatResponseBody';
25
29
  export { ClaimChatResponseBodyDataUserContext } from './ClaimChatResponseBody';
26
30
  export { ClaimChatResponseBodyData } from './ClaimChatResponseBody';
@@ -454,6 +458,9 @@ export { ChangeVisibilityResponse } from './ChangeVisibilityResponse';
454
458
  export { ChangeWorkModeRequest } from './ChangeWorkModeRequest';
455
459
  export { ChangeWorkModeResponseBody } from './ChangeWorkModeResponseBody';
456
460
  export { ChangeWorkModeResponse } from './ChangeWorkModeResponse';
461
+ export { ClaimCallRequest } from './ClaimCallRequest';
462
+ export { ClaimCallResponseBody } from './ClaimCallResponseBody';
463
+ export { ClaimCallResponse } from './ClaimCallResponse';
457
464
  export { ClaimChatRequest } from './ClaimChatRequest';
458
465
  export { ClaimChatResponseBody } from './ClaimChatResponseBody';
459
466
  export { ClaimChatResponse } from './ClaimChatResponse';