@alicloud/ccc20200701 2.26.1 → 2.27.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 +214 -0
- package/dist/client.js +235 -18
- package/dist/client.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +349 -0
package/package.json
CHANGED
package/src/client.ts
CHANGED
|
@@ -8199,6 +8199,100 @@ export class GetChatMediaUrlResponse extends $tea.Model {
|
|
|
8199
8199
|
}
|
|
8200
8200
|
}
|
|
8201
8201
|
|
|
8202
|
+
export class GetChatRoutingProfileRequest extends $tea.Model {
|
|
8203
|
+
/**
|
|
8204
|
+
* @remarks
|
|
8205
|
+
* This parameter is required.
|
|
8206
|
+
*
|
|
8207
|
+
* @example
|
|
8208
|
+
* ccc-test
|
|
8209
|
+
*/
|
|
8210
|
+
instanceId?: string;
|
|
8211
|
+
static names(): { [key: string]: string } {
|
|
8212
|
+
return {
|
|
8213
|
+
instanceId: 'InstanceId',
|
|
8214
|
+
};
|
|
8215
|
+
}
|
|
8216
|
+
|
|
8217
|
+
static types(): { [key: string]: any } {
|
|
8218
|
+
return {
|
|
8219
|
+
instanceId: 'string',
|
|
8220
|
+
};
|
|
8221
|
+
}
|
|
8222
|
+
|
|
8223
|
+
constructor(map?: { [key: string]: any }) {
|
|
8224
|
+
super(map);
|
|
8225
|
+
}
|
|
8226
|
+
}
|
|
8227
|
+
|
|
8228
|
+
export class GetChatRoutingProfileResponseBody extends $tea.Model {
|
|
8229
|
+
/**
|
|
8230
|
+
* @example
|
|
8231
|
+
* OK
|
|
8232
|
+
*/
|
|
8233
|
+
code?: string;
|
|
8234
|
+
data?: GetChatRoutingProfileResponseBodyData;
|
|
8235
|
+
/**
|
|
8236
|
+
* @example
|
|
8237
|
+
* 200
|
|
8238
|
+
*/
|
|
8239
|
+
httpStatusCode?: number;
|
|
8240
|
+
message?: string;
|
|
8241
|
+
/**
|
|
8242
|
+
* @example
|
|
8243
|
+
* 30C7D235-DDCF-4C7F-A462-5E2598252C2B
|
|
8244
|
+
*/
|
|
8245
|
+
requestId?: string;
|
|
8246
|
+
static names(): { [key: string]: string } {
|
|
8247
|
+
return {
|
|
8248
|
+
code: 'Code',
|
|
8249
|
+
data: 'Data',
|
|
8250
|
+
httpStatusCode: 'HttpStatusCode',
|
|
8251
|
+
message: 'Message',
|
|
8252
|
+
requestId: 'RequestId',
|
|
8253
|
+
};
|
|
8254
|
+
}
|
|
8255
|
+
|
|
8256
|
+
static types(): { [key: string]: any } {
|
|
8257
|
+
return {
|
|
8258
|
+
code: 'string',
|
|
8259
|
+
data: GetChatRoutingProfileResponseBodyData,
|
|
8260
|
+
httpStatusCode: 'number',
|
|
8261
|
+
message: 'string',
|
|
8262
|
+
requestId: 'string',
|
|
8263
|
+
};
|
|
8264
|
+
}
|
|
8265
|
+
|
|
8266
|
+
constructor(map?: { [key: string]: any }) {
|
|
8267
|
+
super(map);
|
|
8268
|
+
}
|
|
8269
|
+
}
|
|
8270
|
+
|
|
8271
|
+
export class GetChatRoutingProfileResponse extends $tea.Model {
|
|
8272
|
+
headers?: { [key: string]: string };
|
|
8273
|
+
statusCode?: number;
|
|
8274
|
+
body?: GetChatRoutingProfileResponseBody;
|
|
8275
|
+
static names(): { [key: string]: string } {
|
|
8276
|
+
return {
|
|
8277
|
+
headers: 'headers',
|
|
8278
|
+
statusCode: 'statusCode',
|
|
8279
|
+
body: 'body',
|
|
8280
|
+
};
|
|
8281
|
+
}
|
|
8282
|
+
|
|
8283
|
+
static types(): { [key: string]: any } {
|
|
8284
|
+
return {
|
|
8285
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
8286
|
+
statusCode: 'number',
|
|
8287
|
+
body: GetChatRoutingProfileResponseBody,
|
|
8288
|
+
};
|
|
8289
|
+
}
|
|
8290
|
+
|
|
8291
|
+
constructor(map?: { [key: string]: any }) {
|
|
8292
|
+
super(map);
|
|
8293
|
+
}
|
|
8294
|
+
}
|
|
8295
|
+
|
|
8202
8296
|
export class GetContactFlowRequest extends $tea.Model {
|
|
8203
8297
|
/**
|
|
8204
8298
|
* @remarks
|
|
@@ -28392,6 +28486,127 @@ export class UpdateCampaignResponse extends $tea.Model {
|
|
|
28392
28486
|
}
|
|
28393
28487
|
}
|
|
28394
28488
|
|
|
28489
|
+
export class UpdateChatRoutingProfileRequest extends $tea.Model {
|
|
28490
|
+
/**
|
|
28491
|
+
* @remarks
|
|
28492
|
+
* This parameter is required.
|
|
28493
|
+
*
|
|
28494
|
+
* @example
|
|
28495
|
+
* 9cfad875-6260-4a53-ab6e-b13e3fb31f7d
|
|
28496
|
+
*/
|
|
28497
|
+
instanceId?: string;
|
|
28498
|
+
/**
|
|
28499
|
+
* @remarks
|
|
28500
|
+
* This parameter is required.
|
|
28501
|
+
*
|
|
28502
|
+
* @example
|
|
28503
|
+
* {
|
|
28504
|
+
* "RoutingType": "Automatic",
|
|
28505
|
+
* "AgentConcurrencySettings": {
|
|
28506
|
+
* "AllowExceedingLimitWhenTransferring": false,
|
|
28507
|
+
* "ConcurrencyLimit": 4,
|
|
28508
|
+
* "AllowExceedingLimitWhenClaiming": true,
|
|
28509
|
+
* "Enabled": true
|
|
28510
|
+
* },
|
|
28511
|
+
* "ChatSettings": {
|
|
28512
|
+
* "IdleChatTimeoutSeconds": 300
|
|
28513
|
+
* },
|
|
28514
|
+
* "DistributionSettings": {
|
|
28515
|
+
* "Enabled": true,
|
|
28516
|
+
* "AgentRingTimeoutSeconds": 119,
|
|
28517
|
+
* "MaxNumberOfConversationsAgentCanMiss": 5,
|
|
28518
|
+
* "PostAgentMissingConversionsAction": "Nothing"
|
|
28519
|
+
* }
|
|
28520
|
+
* }
|
|
28521
|
+
*/
|
|
28522
|
+
routingProfiles?: string;
|
|
28523
|
+
static names(): { [key: string]: string } {
|
|
28524
|
+
return {
|
|
28525
|
+
instanceId: 'InstanceId',
|
|
28526
|
+
routingProfiles: 'RoutingProfiles',
|
|
28527
|
+
};
|
|
28528
|
+
}
|
|
28529
|
+
|
|
28530
|
+
static types(): { [key: string]: any } {
|
|
28531
|
+
return {
|
|
28532
|
+
instanceId: 'string',
|
|
28533
|
+
routingProfiles: 'string',
|
|
28534
|
+
};
|
|
28535
|
+
}
|
|
28536
|
+
|
|
28537
|
+
constructor(map?: { [key: string]: any }) {
|
|
28538
|
+
super(map);
|
|
28539
|
+
}
|
|
28540
|
+
}
|
|
28541
|
+
|
|
28542
|
+
export class UpdateChatRoutingProfileResponseBody extends $tea.Model {
|
|
28543
|
+
/**
|
|
28544
|
+
* @example
|
|
28545
|
+
* OK
|
|
28546
|
+
*/
|
|
28547
|
+
code?: string;
|
|
28548
|
+
/**
|
|
28549
|
+
* @example
|
|
28550
|
+
* 200
|
|
28551
|
+
*/
|
|
28552
|
+
httpStatusCode?: number;
|
|
28553
|
+
message?: string;
|
|
28554
|
+
params?: string[];
|
|
28555
|
+
/**
|
|
28556
|
+
* @example
|
|
28557
|
+
* BC976D32-AC4C-4E0F-8AA9-F4BC6C4E2B3E
|
|
28558
|
+
*/
|
|
28559
|
+
requestId?: string;
|
|
28560
|
+
static names(): { [key: string]: string } {
|
|
28561
|
+
return {
|
|
28562
|
+
code: 'Code',
|
|
28563
|
+
httpStatusCode: 'HttpStatusCode',
|
|
28564
|
+
message: 'Message',
|
|
28565
|
+
params: 'Params',
|
|
28566
|
+
requestId: 'RequestId',
|
|
28567
|
+
};
|
|
28568
|
+
}
|
|
28569
|
+
|
|
28570
|
+
static types(): { [key: string]: any } {
|
|
28571
|
+
return {
|
|
28572
|
+
code: 'string',
|
|
28573
|
+
httpStatusCode: 'number',
|
|
28574
|
+
message: 'string',
|
|
28575
|
+
params: { 'type': 'array', 'itemType': 'string' },
|
|
28576
|
+
requestId: 'string',
|
|
28577
|
+
};
|
|
28578
|
+
}
|
|
28579
|
+
|
|
28580
|
+
constructor(map?: { [key: string]: any }) {
|
|
28581
|
+
super(map);
|
|
28582
|
+
}
|
|
28583
|
+
}
|
|
28584
|
+
|
|
28585
|
+
export class UpdateChatRoutingProfileResponse extends $tea.Model {
|
|
28586
|
+
headers?: { [key: string]: string };
|
|
28587
|
+
statusCode?: number;
|
|
28588
|
+
body?: UpdateChatRoutingProfileResponseBody;
|
|
28589
|
+
static names(): { [key: string]: string } {
|
|
28590
|
+
return {
|
|
28591
|
+
headers: 'headers',
|
|
28592
|
+
statusCode: 'statusCode',
|
|
28593
|
+
body: 'body',
|
|
28594
|
+
};
|
|
28595
|
+
}
|
|
28596
|
+
|
|
28597
|
+
static types(): { [key: string]: any } {
|
|
28598
|
+
return {
|
|
28599
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
28600
|
+
statusCode: 'number',
|
|
28601
|
+
body: UpdateChatRoutingProfileResponseBody,
|
|
28602
|
+
};
|
|
28603
|
+
}
|
|
28604
|
+
|
|
28605
|
+
constructor(map?: { [key: string]: any }) {
|
|
28606
|
+
super(map);
|
|
28607
|
+
}
|
|
28608
|
+
}
|
|
28609
|
+
|
|
28395
28610
|
export class UpdateConfigItemsRequest extends $tea.Model {
|
|
28396
28611
|
/**
|
|
28397
28612
|
* @remarks
|
|
@@ -32515,6 +32730,60 @@ export class GetCaseFileUploadUrlResponseBodyData extends $tea.Model {
|
|
|
32515
32730
|
}
|
|
32516
32731
|
}
|
|
32517
32732
|
|
|
32733
|
+
export class GetChatRoutingProfileResponseBodyData extends $tea.Model {
|
|
32734
|
+
/**
|
|
32735
|
+
* @example
|
|
32736
|
+
* {
|
|
32737
|
+
* "AllowExceedingLimitWhenTransferring": false,
|
|
32738
|
+
* "ConcurrencyLimit": 4,
|
|
32739
|
+
* "AllowExceedingLimitWhenClaiming": true,
|
|
32740
|
+
* "Enabled": true
|
|
32741
|
+
* }
|
|
32742
|
+
*/
|
|
32743
|
+
agentConcurrencySettings?: string;
|
|
32744
|
+
/**
|
|
32745
|
+
* @example
|
|
32746
|
+
* {"IdleChatTimeoutSeconds":300}
|
|
32747
|
+
*/
|
|
32748
|
+
chatSettings?: string;
|
|
32749
|
+
/**
|
|
32750
|
+
* @example
|
|
32751
|
+
* {
|
|
32752
|
+
* "AgentRingTimeoutSeconds": 30,
|
|
32753
|
+
* "Enabled": true,
|
|
32754
|
+
* "MaxNumberOfConversationsAgentCanMiss": 5,
|
|
32755
|
+
* "PostAgentMissingConversionsAction": "Nothing"
|
|
32756
|
+
* }
|
|
32757
|
+
*/
|
|
32758
|
+
distributionSettings?: string;
|
|
32759
|
+
/**
|
|
32760
|
+
* @example
|
|
32761
|
+
* Automatic
|
|
32762
|
+
*/
|
|
32763
|
+
routingType?: string;
|
|
32764
|
+
static names(): { [key: string]: string } {
|
|
32765
|
+
return {
|
|
32766
|
+
agentConcurrencySettings: 'AgentConcurrencySettings',
|
|
32767
|
+
chatSettings: 'ChatSettings',
|
|
32768
|
+
distributionSettings: 'DistributionSettings',
|
|
32769
|
+
routingType: 'RoutingType',
|
|
32770
|
+
};
|
|
32771
|
+
}
|
|
32772
|
+
|
|
32773
|
+
static types(): { [key: string]: any } {
|
|
32774
|
+
return {
|
|
32775
|
+
agentConcurrencySettings: 'string',
|
|
32776
|
+
chatSettings: 'string',
|
|
32777
|
+
distributionSettings: 'string',
|
|
32778
|
+
routingType: 'string',
|
|
32779
|
+
};
|
|
32780
|
+
}
|
|
32781
|
+
|
|
32782
|
+
constructor(map?: { [key: string]: any }) {
|
|
32783
|
+
super(map);
|
|
32784
|
+
}
|
|
32785
|
+
}
|
|
32786
|
+
|
|
32518
32787
|
export class GetContactFlowResponseBodyData extends $tea.Model {
|
|
32519
32788
|
/**
|
|
32520
32789
|
* @example
|
|
@@ -58616,6 +58885,44 @@ export default class Client extends OpenApi {
|
|
|
58616
58885
|
return await this.getChatMediaUrlWithOptions(request, runtime);
|
|
58617
58886
|
}
|
|
58618
58887
|
|
|
58888
|
+
/**
|
|
58889
|
+
* @param request - GetChatRoutingProfileRequest
|
|
58890
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
58891
|
+
* @returns GetChatRoutingProfileResponse
|
|
58892
|
+
*/
|
|
58893
|
+
async getChatRoutingProfileWithOptions(request: GetChatRoutingProfileRequest, runtime: $Util.RuntimeOptions): Promise<GetChatRoutingProfileResponse> {
|
|
58894
|
+
Util.validateModel(request);
|
|
58895
|
+
let query = { };
|
|
58896
|
+
if (!Util.isUnset(request.instanceId)) {
|
|
58897
|
+
query["InstanceId"] = request.instanceId;
|
|
58898
|
+
}
|
|
58899
|
+
|
|
58900
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
58901
|
+
query: OpenApiUtil.query(query),
|
|
58902
|
+
});
|
|
58903
|
+
let params = new $OpenApi.Params({
|
|
58904
|
+
action: "GetChatRoutingProfile",
|
|
58905
|
+
version: "2020-07-01",
|
|
58906
|
+
protocol: "HTTPS",
|
|
58907
|
+
pathname: "/",
|
|
58908
|
+
method: "POST",
|
|
58909
|
+
authType: "AK",
|
|
58910
|
+
style: "RPC",
|
|
58911
|
+
reqBodyType: "formData",
|
|
58912
|
+
bodyType: "json",
|
|
58913
|
+
});
|
|
58914
|
+
return $tea.cast<GetChatRoutingProfileResponse>(await this.callApi(params, req, runtime), new GetChatRoutingProfileResponse({}));
|
|
58915
|
+
}
|
|
58916
|
+
|
|
58917
|
+
/**
|
|
58918
|
+
* @param request - GetChatRoutingProfileRequest
|
|
58919
|
+
* @returns GetChatRoutingProfileResponse
|
|
58920
|
+
*/
|
|
58921
|
+
async getChatRoutingProfile(request: GetChatRoutingProfileRequest): Promise<GetChatRoutingProfileResponse> {
|
|
58922
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
58923
|
+
return await this.getChatRoutingProfileWithOptions(request, runtime);
|
|
58924
|
+
}
|
|
58925
|
+
|
|
58619
58926
|
/**
|
|
58620
58927
|
* @param request - GetContactFlowRequest
|
|
58621
58928
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -67268,6 +67575,48 @@ export default class Client extends OpenApi {
|
|
|
67268
67575
|
return await this.updateCampaignWithOptions(request, runtime);
|
|
67269
67576
|
}
|
|
67270
67577
|
|
|
67578
|
+
/**
|
|
67579
|
+
* @param request - UpdateChatRoutingProfileRequest
|
|
67580
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
67581
|
+
* @returns UpdateChatRoutingProfileResponse
|
|
67582
|
+
*/
|
|
67583
|
+
async updateChatRoutingProfileWithOptions(request: UpdateChatRoutingProfileRequest, runtime: $Util.RuntimeOptions): Promise<UpdateChatRoutingProfileResponse> {
|
|
67584
|
+
Util.validateModel(request);
|
|
67585
|
+
let query = { };
|
|
67586
|
+
if (!Util.isUnset(request.instanceId)) {
|
|
67587
|
+
query["InstanceId"] = request.instanceId;
|
|
67588
|
+
}
|
|
67589
|
+
|
|
67590
|
+
if (!Util.isUnset(request.routingProfiles)) {
|
|
67591
|
+
query["RoutingProfiles"] = request.routingProfiles;
|
|
67592
|
+
}
|
|
67593
|
+
|
|
67594
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
67595
|
+
query: OpenApiUtil.query(query),
|
|
67596
|
+
});
|
|
67597
|
+
let params = new $OpenApi.Params({
|
|
67598
|
+
action: "UpdateChatRoutingProfile",
|
|
67599
|
+
version: "2020-07-01",
|
|
67600
|
+
protocol: "HTTPS",
|
|
67601
|
+
pathname: "/",
|
|
67602
|
+
method: "POST",
|
|
67603
|
+
authType: "AK",
|
|
67604
|
+
style: "RPC",
|
|
67605
|
+
reqBodyType: "formData",
|
|
67606
|
+
bodyType: "json",
|
|
67607
|
+
});
|
|
67608
|
+
return $tea.cast<UpdateChatRoutingProfileResponse>(await this.callApi(params, req, runtime), new UpdateChatRoutingProfileResponse({}));
|
|
67609
|
+
}
|
|
67610
|
+
|
|
67611
|
+
/**
|
|
67612
|
+
* @param request - UpdateChatRoutingProfileRequest
|
|
67613
|
+
* @returns UpdateChatRoutingProfileResponse
|
|
67614
|
+
*/
|
|
67615
|
+
async updateChatRoutingProfile(request: UpdateChatRoutingProfileRequest): Promise<UpdateChatRoutingProfileResponse> {
|
|
67616
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
67617
|
+
return await this.updateChatRoutingProfileWithOptions(request, runtime);
|
|
67618
|
+
}
|
|
67619
|
+
|
|
67271
67620
|
/**
|
|
67272
67621
|
* @param request - UpdateConfigItemsRequest
|
|
67273
67622
|
* @param runtime - runtime options for this request RuntimeOptions
|