@alicloud/ccc20200701 2.11.5 → 2.12.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 +122 -0
- package/dist/client.js +192 -0
- package/dist/client.js.map +1 -1
- package/package.json +2 -2
- package/src/client.ts +227 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alicloud/ccc20200701",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.12.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/client.js",
|
|
6
6
|
"scripts": {
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@alicloud/tea-typescript": "^1.7.1",
|
|
23
23
|
"@alicloud/tea-util": "^1.4.7",
|
|
24
|
-
"@alicloud/openapi-client": "^0.4.
|
|
24
|
+
"@alicloud/openapi-client": "^0.4.7",
|
|
25
25
|
"@alicloud/openapi-util": "^0.3.2",
|
|
26
26
|
"@alicloud/endpoint-util": "^0.0.1"
|
|
27
27
|
},
|
package/src/client.ts
CHANGED
|
@@ -1342,6 +1342,90 @@ export class CancelAttendedTransferResponse extends $tea.Model {
|
|
|
1342
1342
|
}
|
|
1343
1343
|
}
|
|
1344
1344
|
|
|
1345
|
+
export class ChangeVisibilityRequest extends $tea.Model {
|
|
1346
|
+
instanceId?: string;
|
|
1347
|
+
invisible?: boolean;
|
|
1348
|
+
userId?: string;
|
|
1349
|
+
static names(): { [key: string]: string } {
|
|
1350
|
+
return {
|
|
1351
|
+
instanceId: 'InstanceId',
|
|
1352
|
+
invisible: 'Invisible',
|
|
1353
|
+
userId: 'UserId',
|
|
1354
|
+
};
|
|
1355
|
+
}
|
|
1356
|
+
|
|
1357
|
+
static types(): { [key: string]: any } {
|
|
1358
|
+
return {
|
|
1359
|
+
instanceId: 'string',
|
|
1360
|
+
invisible: 'boolean',
|
|
1361
|
+
userId: 'string',
|
|
1362
|
+
};
|
|
1363
|
+
}
|
|
1364
|
+
|
|
1365
|
+
constructor(map?: { [key: string]: any }) {
|
|
1366
|
+
super(map);
|
|
1367
|
+
}
|
|
1368
|
+
}
|
|
1369
|
+
|
|
1370
|
+
export class ChangeVisibilityResponseBody extends $tea.Model {
|
|
1371
|
+
code?: string;
|
|
1372
|
+
data?: ChangeVisibilityResponseBodyData;
|
|
1373
|
+
httpStatusCode?: number;
|
|
1374
|
+
message?: string;
|
|
1375
|
+
params?: string[];
|
|
1376
|
+
requestId?: string;
|
|
1377
|
+
static names(): { [key: string]: string } {
|
|
1378
|
+
return {
|
|
1379
|
+
code: 'Code',
|
|
1380
|
+
data: 'Data',
|
|
1381
|
+
httpStatusCode: 'HttpStatusCode',
|
|
1382
|
+
message: 'Message',
|
|
1383
|
+
params: 'Params',
|
|
1384
|
+
requestId: 'RequestId',
|
|
1385
|
+
};
|
|
1386
|
+
}
|
|
1387
|
+
|
|
1388
|
+
static types(): { [key: string]: any } {
|
|
1389
|
+
return {
|
|
1390
|
+
code: 'string',
|
|
1391
|
+
data: ChangeVisibilityResponseBodyData,
|
|
1392
|
+
httpStatusCode: 'number',
|
|
1393
|
+
message: 'string',
|
|
1394
|
+
params: { 'type': 'array', 'itemType': 'string' },
|
|
1395
|
+
requestId: 'string',
|
|
1396
|
+
};
|
|
1397
|
+
}
|
|
1398
|
+
|
|
1399
|
+
constructor(map?: { [key: string]: any }) {
|
|
1400
|
+
super(map);
|
|
1401
|
+
}
|
|
1402
|
+
}
|
|
1403
|
+
|
|
1404
|
+
export class ChangeVisibilityResponse extends $tea.Model {
|
|
1405
|
+
headers: { [key: string]: string };
|
|
1406
|
+
statusCode: number;
|
|
1407
|
+
body: ChangeVisibilityResponseBody;
|
|
1408
|
+
static names(): { [key: string]: string } {
|
|
1409
|
+
return {
|
|
1410
|
+
headers: 'headers',
|
|
1411
|
+
statusCode: 'statusCode',
|
|
1412
|
+
body: 'body',
|
|
1413
|
+
};
|
|
1414
|
+
}
|
|
1415
|
+
|
|
1416
|
+
static types(): { [key: string]: any } {
|
|
1417
|
+
return {
|
|
1418
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
1419
|
+
statusCode: 'number',
|
|
1420
|
+
body: ChangeVisibilityResponseBody,
|
|
1421
|
+
};
|
|
1422
|
+
}
|
|
1423
|
+
|
|
1424
|
+
constructor(map?: { [key: string]: any }) {
|
|
1425
|
+
super(map);
|
|
1426
|
+
}
|
|
1427
|
+
}
|
|
1428
|
+
|
|
1345
1429
|
export class ChangeWorkModeRequest extends $tea.Model {
|
|
1346
1430
|
deviceId?: string;
|
|
1347
1431
|
instanceId?: string;
|
|
@@ -16062,6 +16146,52 @@ export class CancelAttendedTransferResponseBodyData extends $tea.Model {
|
|
|
16062
16146
|
}
|
|
16063
16147
|
}
|
|
16064
16148
|
|
|
16149
|
+
export class ChangeVisibilityResponseBodyData extends $tea.Model {
|
|
16150
|
+
breakCode?: string;
|
|
16151
|
+
deviceId?: string;
|
|
16152
|
+
extension?: string;
|
|
16153
|
+
instanceId?: string;
|
|
16154
|
+
jobId?: string;
|
|
16155
|
+
outboundScenario?: boolean;
|
|
16156
|
+
signedSkillGroupIdList?: string[];
|
|
16157
|
+
userId?: string;
|
|
16158
|
+
userState?: string;
|
|
16159
|
+
workMode?: string;
|
|
16160
|
+
static names(): { [key: string]: string } {
|
|
16161
|
+
return {
|
|
16162
|
+
breakCode: 'BreakCode',
|
|
16163
|
+
deviceId: 'DeviceId',
|
|
16164
|
+
extension: 'Extension',
|
|
16165
|
+
instanceId: 'InstanceId',
|
|
16166
|
+
jobId: 'JobId',
|
|
16167
|
+
outboundScenario: 'OutboundScenario',
|
|
16168
|
+
signedSkillGroupIdList: 'SignedSkillGroupIdList',
|
|
16169
|
+
userId: 'UserId',
|
|
16170
|
+
userState: 'UserState',
|
|
16171
|
+
workMode: 'WorkMode',
|
|
16172
|
+
};
|
|
16173
|
+
}
|
|
16174
|
+
|
|
16175
|
+
static types(): { [key: string]: any } {
|
|
16176
|
+
return {
|
|
16177
|
+
breakCode: 'string',
|
|
16178
|
+
deviceId: 'string',
|
|
16179
|
+
extension: 'string',
|
|
16180
|
+
instanceId: 'string',
|
|
16181
|
+
jobId: 'string',
|
|
16182
|
+
outboundScenario: 'boolean',
|
|
16183
|
+
signedSkillGroupIdList: { 'type': 'array', 'itemType': 'string' },
|
|
16184
|
+
userId: 'string',
|
|
16185
|
+
userState: 'string',
|
|
16186
|
+
workMode: 'string',
|
|
16187
|
+
};
|
|
16188
|
+
}
|
|
16189
|
+
|
|
16190
|
+
constructor(map?: { [key: string]: any }) {
|
|
16191
|
+
super(map);
|
|
16192
|
+
}
|
|
16193
|
+
}
|
|
16194
|
+
|
|
16065
16195
|
export class ChangeWorkModeResponseBodyData extends $tea.Model {
|
|
16066
16196
|
breakCode?: string;
|
|
16067
16197
|
deviceId?: string;
|
|
@@ -30083,6 +30213,43 @@ export default class Client extends OpenApi {
|
|
|
30083
30213
|
return await this.cancelAttendedTransferWithOptions(request, runtime);
|
|
30084
30214
|
}
|
|
30085
30215
|
|
|
30216
|
+
async changeVisibilityWithOptions(request: ChangeVisibilityRequest, runtime: $Util.RuntimeOptions): Promise<ChangeVisibilityResponse> {
|
|
30217
|
+
Util.validateModel(request);
|
|
30218
|
+
let query = { };
|
|
30219
|
+
if (!Util.isUnset(request.instanceId)) {
|
|
30220
|
+
query["InstanceId"] = request.instanceId;
|
|
30221
|
+
}
|
|
30222
|
+
|
|
30223
|
+
if (!Util.isUnset(request.invisible)) {
|
|
30224
|
+
query["Invisible"] = request.invisible;
|
|
30225
|
+
}
|
|
30226
|
+
|
|
30227
|
+
if (!Util.isUnset(request.userId)) {
|
|
30228
|
+
query["UserId"] = request.userId;
|
|
30229
|
+
}
|
|
30230
|
+
|
|
30231
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
30232
|
+
query: OpenApiUtil.query(query),
|
|
30233
|
+
});
|
|
30234
|
+
let params = new $OpenApi.Params({
|
|
30235
|
+
action: "ChangeVisibility",
|
|
30236
|
+
version: "2020-07-01",
|
|
30237
|
+
protocol: "HTTPS",
|
|
30238
|
+
pathname: "/",
|
|
30239
|
+
method: "POST",
|
|
30240
|
+
authType: "AK",
|
|
30241
|
+
style: "RPC",
|
|
30242
|
+
reqBodyType: "formData",
|
|
30243
|
+
bodyType: "json",
|
|
30244
|
+
});
|
|
30245
|
+
return $tea.cast<ChangeVisibilityResponse>(await this.callApi(params, req, runtime), new ChangeVisibilityResponse({}));
|
|
30246
|
+
}
|
|
30247
|
+
|
|
30248
|
+
async changeVisibility(request: ChangeVisibilityRequest): Promise<ChangeVisibilityResponse> {
|
|
30249
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
30250
|
+
return await this.changeVisibilityWithOptions(request, runtime);
|
|
30251
|
+
}
|
|
30252
|
+
|
|
30086
30253
|
async changeWorkModeWithOptions(request: ChangeWorkModeRequest, runtime: $Util.RuntimeOptions): Promise<ChangeWorkModeResponse> {
|
|
30087
30254
|
Util.validateModel(request);
|
|
30088
30255
|
let query = { };
|
|
@@ -32419,6 +32586,14 @@ export default class Client extends OpenApi {
|
|
|
32419
32586
|
return await this.listAgentStateLogsWithOptions(request, runtime);
|
|
32420
32587
|
}
|
|
32421
32588
|
|
|
32589
|
+
/**
|
|
32590
|
+
* @deprecated : ListAgentStates is deprecated, please use CCC::2020-07-01::ListRealtimeAgentStates instead.
|
|
32591
|
+
*
|
|
32592
|
+
* @param request ListAgentStatesRequest
|
|
32593
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
32594
|
+
* @return ListAgentStatesResponse
|
|
32595
|
+
*/
|
|
32596
|
+
// Deprecated
|
|
32422
32597
|
async listAgentStatesWithOptions(request: ListAgentStatesRequest, runtime: $Util.RuntimeOptions): Promise<ListAgentStatesResponse> {
|
|
32423
32598
|
Util.validateModel(request);
|
|
32424
32599
|
let query = { };
|
|
@@ -32467,11 +32642,26 @@ export default class Client extends OpenApi {
|
|
|
32467
32642
|
return $tea.cast<ListAgentStatesResponse>(await this.callApi(params, req, runtime), new ListAgentStatesResponse({}));
|
|
32468
32643
|
}
|
|
32469
32644
|
|
|
32645
|
+
/**
|
|
32646
|
+
* @deprecated : ListAgentStates is deprecated, please use CCC::2020-07-01::ListRealtimeAgentStates instead.
|
|
32647
|
+
*
|
|
32648
|
+
* @param request ListAgentStatesRequest
|
|
32649
|
+
* @return ListAgentStatesResponse
|
|
32650
|
+
*/
|
|
32651
|
+
// Deprecated
|
|
32470
32652
|
async listAgentStates(request: ListAgentStatesRequest): Promise<ListAgentStatesResponse> {
|
|
32471
32653
|
let runtime = new $Util.RuntimeOptions({ });
|
|
32472
32654
|
return await this.listAgentStatesWithOptions(request, runtime);
|
|
32473
32655
|
}
|
|
32474
32656
|
|
|
32657
|
+
/**
|
|
32658
|
+
* @deprecated : ListAgentSummaryReportsSinceMidnight is deprecated, please use CCC::2020-07-01::ListHistoricalAgentReport instead.
|
|
32659
|
+
*
|
|
32660
|
+
* @param request ListAgentSummaryReportsSinceMidnightRequest
|
|
32661
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
32662
|
+
* @return ListAgentSummaryReportsSinceMidnightResponse
|
|
32663
|
+
*/
|
|
32664
|
+
// Deprecated
|
|
32475
32665
|
async listAgentSummaryReportsSinceMidnightWithOptions(request: ListAgentSummaryReportsSinceMidnightRequest, runtime: $Util.RuntimeOptions): Promise<ListAgentSummaryReportsSinceMidnightResponse> {
|
|
32476
32666
|
Util.validateModel(request);
|
|
32477
32667
|
let query = OpenApiUtil.query(Util.toMap(request));
|
|
@@ -32492,6 +32682,13 @@ export default class Client extends OpenApi {
|
|
|
32492
32682
|
return $tea.cast<ListAgentSummaryReportsSinceMidnightResponse>(await this.callApi(params, req, runtime), new ListAgentSummaryReportsSinceMidnightResponse({}));
|
|
32493
32683
|
}
|
|
32494
32684
|
|
|
32685
|
+
/**
|
|
32686
|
+
* @deprecated : ListAgentSummaryReportsSinceMidnight is deprecated, please use CCC::2020-07-01::ListHistoricalAgentReport instead.
|
|
32687
|
+
*
|
|
32688
|
+
* @param request ListAgentSummaryReportsSinceMidnightRequest
|
|
32689
|
+
* @return ListAgentSummaryReportsSinceMidnightResponse
|
|
32690
|
+
*/
|
|
32691
|
+
// Deprecated
|
|
32495
32692
|
async listAgentSummaryReportsSinceMidnight(request: ListAgentSummaryReportsSinceMidnightRequest): Promise<ListAgentSummaryReportsSinceMidnightResponse> {
|
|
32496
32693
|
let runtime = new $Util.RuntimeOptions({ });
|
|
32497
32694
|
return await this.listAgentSummaryReportsSinceMidnightWithOptions(request, runtime);
|
|
@@ -34283,6 +34480,14 @@ export default class Client extends OpenApi {
|
|
|
34283
34480
|
return await this.listRolesWithOptions(request, runtime);
|
|
34284
34481
|
}
|
|
34285
34482
|
|
|
34483
|
+
/**
|
|
34484
|
+
* @deprecated : ListSkillGroupStates is deprecated, please use CCC::2020-07-01::ListRealtimeSkillGroupStates instead.
|
|
34485
|
+
*
|
|
34486
|
+
* @param request ListSkillGroupStatesRequest
|
|
34487
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
34488
|
+
* @return ListSkillGroupStatesResponse
|
|
34489
|
+
*/
|
|
34490
|
+
// Deprecated
|
|
34286
34491
|
async listSkillGroupStatesWithOptions(request: ListSkillGroupStatesRequest, runtime: $Util.RuntimeOptions): Promise<ListSkillGroupStatesResponse> {
|
|
34287
34492
|
Util.validateModel(request);
|
|
34288
34493
|
let query = OpenApiUtil.query(Util.toMap(request));
|
|
@@ -34303,11 +34508,26 @@ export default class Client extends OpenApi {
|
|
|
34303
34508
|
return $tea.cast<ListSkillGroupStatesResponse>(await this.callApi(params, req, runtime), new ListSkillGroupStatesResponse({}));
|
|
34304
34509
|
}
|
|
34305
34510
|
|
|
34511
|
+
/**
|
|
34512
|
+
* @deprecated : ListSkillGroupStates is deprecated, please use CCC::2020-07-01::ListRealtimeSkillGroupStates instead.
|
|
34513
|
+
*
|
|
34514
|
+
* @param request ListSkillGroupStatesRequest
|
|
34515
|
+
* @return ListSkillGroupStatesResponse
|
|
34516
|
+
*/
|
|
34517
|
+
// Deprecated
|
|
34306
34518
|
async listSkillGroupStates(request: ListSkillGroupStatesRequest): Promise<ListSkillGroupStatesResponse> {
|
|
34307
34519
|
let runtime = new $Util.RuntimeOptions({ });
|
|
34308
34520
|
return await this.listSkillGroupStatesWithOptions(request, runtime);
|
|
34309
34521
|
}
|
|
34310
34522
|
|
|
34523
|
+
/**
|
|
34524
|
+
* @deprecated : ListSkillGroupSummaryReportsSinceMidnight is deprecated, please use CCC::2020-07-01::ListHistoricalSkillGroupReport instead.
|
|
34525
|
+
*
|
|
34526
|
+
* @param request ListSkillGroupSummaryReportsSinceMidnightRequest
|
|
34527
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
34528
|
+
* @return ListSkillGroupSummaryReportsSinceMidnightResponse
|
|
34529
|
+
*/
|
|
34530
|
+
// Deprecated
|
|
34311
34531
|
async listSkillGroupSummaryReportsSinceMidnightWithOptions(request: ListSkillGroupSummaryReportsSinceMidnightRequest, runtime: $Util.RuntimeOptions): Promise<ListSkillGroupSummaryReportsSinceMidnightResponse> {
|
|
34312
34532
|
Util.validateModel(request);
|
|
34313
34533
|
let query = OpenApiUtil.query(Util.toMap(request));
|
|
@@ -34328,6 +34548,13 @@ export default class Client extends OpenApi {
|
|
|
34328
34548
|
return $tea.cast<ListSkillGroupSummaryReportsSinceMidnightResponse>(await this.callApi(params, req, runtime), new ListSkillGroupSummaryReportsSinceMidnightResponse({}));
|
|
34329
34549
|
}
|
|
34330
34550
|
|
|
34551
|
+
/**
|
|
34552
|
+
* @deprecated : ListSkillGroupSummaryReportsSinceMidnight is deprecated, please use CCC::2020-07-01::ListHistoricalSkillGroupReport instead.
|
|
34553
|
+
*
|
|
34554
|
+
* @param request ListSkillGroupSummaryReportsSinceMidnightRequest
|
|
34555
|
+
* @return ListSkillGroupSummaryReportsSinceMidnightResponse
|
|
34556
|
+
*/
|
|
34557
|
+
// Deprecated
|
|
34331
34558
|
async listSkillGroupSummaryReportsSinceMidnight(request: ListSkillGroupSummaryReportsSinceMidnightRequest): Promise<ListSkillGroupSummaryReportsSinceMidnightResponse> {
|
|
34332
34559
|
let runtime = new $Util.RuntimeOptions({ });
|
|
34333
34560
|
return await this.listSkillGroupSummaryReportsSinceMidnightWithOptions(request, runtime);
|