@alicloud/ccc20200701 2.4.0 → 2.4.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 +68 -2
- package/dist/client.js +136 -3
- package/dist/client.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +172 -5
package/dist/client.d.ts
CHANGED
|
@@ -2132,6 +2132,50 @@ export declare class HoldCallResponse extends $tea.Model {
|
|
|
2132
2132
|
[key: string]: any;
|
|
2133
2133
|
});
|
|
2134
2134
|
}
|
|
2135
|
+
export declare class ImportAdminsRequest extends $tea.Model {
|
|
2136
|
+
instanceId?: string;
|
|
2137
|
+
ramIdList?: string;
|
|
2138
|
+
static names(): {
|
|
2139
|
+
[key: string]: string;
|
|
2140
|
+
};
|
|
2141
|
+
static types(): {
|
|
2142
|
+
[key: string]: any;
|
|
2143
|
+
};
|
|
2144
|
+
constructor(map?: {
|
|
2145
|
+
[key: string]: any;
|
|
2146
|
+
});
|
|
2147
|
+
}
|
|
2148
|
+
export declare class ImportAdminsResponseBody extends $tea.Model {
|
|
2149
|
+
code?: string;
|
|
2150
|
+
data?: ImportAdminsResponseBodyData[];
|
|
2151
|
+
httpStatusCode?: number;
|
|
2152
|
+
message?: string;
|
|
2153
|
+
requestId?: string;
|
|
2154
|
+
static names(): {
|
|
2155
|
+
[key: string]: string;
|
|
2156
|
+
};
|
|
2157
|
+
static types(): {
|
|
2158
|
+
[key: string]: any;
|
|
2159
|
+
};
|
|
2160
|
+
constructor(map?: {
|
|
2161
|
+
[key: string]: any;
|
|
2162
|
+
});
|
|
2163
|
+
}
|
|
2164
|
+
export declare class ImportAdminsResponse extends $tea.Model {
|
|
2165
|
+
headers: {
|
|
2166
|
+
[key: string]: string;
|
|
2167
|
+
};
|
|
2168
|
+
body: ImportAdminsResponseBody;
|
|
2169
|
+
static names(): {
|
|
2170
|
+
[key: string]: string;
|
|
2171
|
+
};
|
|
2172
|
+
static types(): {
|
|
2173
|
+
[key: string]: any;
|
|
2174
|
+
};
|
|
2175
|
+
constructor(map?: {
|
|
2176
|
+
[key: string]: any;
|
|
2177
|
+
});
|
|
2178
|
+
}
|
|
2135
2179
|
export declare class ImportCustomCallTaggingRequest extends $tea.Model {
|
|
2136
2180
|
filePath?: string;
|
|
2137
2181
|
instanceId?: string;
|
|
@@ -2323,6 +2367,7 @@ export declare class InterceptCallResponse extends $tea.Model {
|
|
|
2323
2367
|
}
|
|
2324
2368
|
export declare class LaunchAuthenticationRequest extends $tea.Model {
|
|
2325
2369
|
contactFlowId?: string;
|
|
2370
|
+
contactFlowVariables?: string;
|
|
2326
2371
|
deviceId?: string;
|
|
2327
2372
|
instanceId?: string;
|
|
2328
2373
|
jobId?: string;
|
|
@@ -2371,9 +2416,12 @@ export declare class LaunchAuthenticationResponse extends $tea.Model {
|
|
|
2371
2416
|
}
|
|
2372
2417
|
export declare class LaunchSurveyRequest extends $tea.Model {
|
|
2373
2418
|
contactFlowId?: string;
|
|
2419
|
+
contactFlowVariables?: string;
|
|
2374
2420
|
deviceId?: string;
|
|
2375
2421
|
instanceId?: string;
|
|
2376
2422
|
jobId?: string;
|
|
2423
|
+
smsMetadataId?: string;
|
|
2424
|
+
surveyChannel?: string;
|
|
2377
2425
|
userId?: string;
|
|
2378
2426
|
static names(): {
|
|
2379
2427
|
[key: string]: string;
|
|
@@ -5432,8 +5480,7 @@ export declare class RemovePhoneNumbersRequest extends $tea.Model {
|
|
|
5432
5480
|
}
|
|
5433
5481
|
export declare class RemovePhoneNumbersResponseBody extends $tea.Model {
|
|
5434
5482
|
code?: string;
|
|
5435
|
-
data?: string;
|
|
5436
|
-
failureList?: string[];
|
|
5483
|
+
data?: string[];
|
|
5437
5484
|
httpStatusCode?: number;
|
|
5438
5485
|
message?: string;
|
|
5439
5486
|
params?: string[];
|
|
@@ -7813,6 +7860,22 @@ export declare class HoldCallResponseBodyData extends $tea.Model {
|
|
|
7813
7860
|
[key: string]: any;
|
|
7814
7861
|
});
|
|
7815
7862
|
}
|
|
7863
|
+
export declare class ImportAdminsResponseBodyData extends $tea.Model {
|
|
7864
|
+
extension?: string;
|
|
7865
|
+
instanceId?: string;
|
|
7866
|
+
ramId?: string;
|
|
7867
|
+
roleId?: string;
|
|
7868
|
+
userId?: string;
|
|
7869
|
+
static names(): {
|
|
7870
|
+
[key: string]: string;
|
|
7871
|
+
};
|
|
7872
|
+
static types(): {
|
|
7873
|
+
[key: string]: any;
|
|
7874
|
+
};
|
|
7875
|
+
constructor(map?: {
|
|
7876
|
+
[key: string]: any;
|
|
7877
|
+
});
|
|
7878
|
+
}
|
|
7816
7879
|
export declare class ImportCustomCallTaggingResponseBodyData extends $tea.Model {
|
|
7817
7880
|
item?: string;
|
|
7818
7881
|
reason?: string;
|
|
@@ -9666,6 +9729,7 @@ export declare class ListMonoRecordingsResponseBodyData extends $tea.Model {
|
|
|
9666
9729
|
});
|
|
9667
9730
|
}
|
|
9668
9731
|
export declare class ListMultiChannelRecordingsResponseBodyData extends $tea.Model {
|
|
9732
|
+
agentChannelId?: string;
|
|
9669
9733
|
agentId?: string;
|
|
9670
9734
|
agentName?: string;
|
|
9671
9735
|
contactId?: string;
|
|
@@ -11443,6 +11507,8 @@ export default class Client extends OpenApi {
|
|
|
11443
11507
|
getUser(request: GetUserRequest): Promise<GetUserResponse>;
|
|
11444
11508
|
holdCallWithOptions(request: HoldCallRequest, runtime: $Util.RuntimeOptions): Promise<HoldCallResponse>;
|
|
11445
11509
|
holdCall(request: HoldCallRequest): Promise<HoldCallResponse>;
|
|
11510
|
+
importAdminsWithOptions(request: ImportAdminsRequest, runtime: $Util.RuntimeOptions): Promise<ImportAdminsResponse>;
|
|
11511
|
+
importAdmins(request: ImportAdminsRequest): Promise<ImportAdminsResponse>;
|
|
11446
11512
|
importCustomCallTaggingWithOptions(request: ImportCustomCallTaggingRequest, runtime: $Util.RuntimeOptions): Promise<ImportCustomCallTaggingResponse>;
|
|
11447
11513
|
importCustomCallTagging(request: ImportCustomCallTaggingRequest): Promise<ImportCustomCallTaggingResponse>;
|
|
11448
11514
|
importDoNotCallNumbersWithOptions(request: ImportDoNotCallNumbersRequest, runtime: $Util.RuntimeOptions): Promise<ImportDoNotCallNumbersResponse>;
|
package/dist/client.js
CHANGED
|
@@ -2979,6 +2979,66 @@ class HoldCallResponse extends $tea.Model {
|
|
|
2979
2979
|
}
|
|
2980
2980
|
}
|
|
2981
2981
|
exports.HoldCallResponse = HoldCallResponse;
|
|
2982
|
+
class ImportAdminsRequest extends $tea.Model {
|
|
2983
|
+
constructor(map) {
|
|
2984
|
+
super(map);
|
|
2985
|
+
}
|
|
2986
|
+
static names() {
|
|
2987
|
+
return {
|
|
2988
|
+
instanceId: 'InstanceId',
|
|
2989
|
+
ramIdList: 'RamIdList',
|
|
2990
|
+
};
|
|
2991
|
+
}
|
|
2992
|
+
static types() {
|
|
2993
|
+
return {
|
|
2994
|
+
instanceId: 'string',
|
|
2995
|
+
ramIdList: 'string',
|
|
2996
|
+
};
|
|
2997
|
+
}
|
|
2998
|
+
}
|
|
2999
|
+
exports.ImportAdminsRequest = ImportAdminsRequest;
|
|
3000
|
+
class ImportAdminsResponseBody extends $tea.Model {
|
|
3001
|
+
constructor(map) {
|
|
3002
|
+
super(map);
|
|
3003
|
+
}
|
|
3004
|
+
static names() {
|
|
3005
|
+
return {
|
|
3006
|
+
code: 'Code',
|
|
3007
|
+
data: 'Data',
|
|
3008
|
+
httpStatusCode: 'HttpStatusCode',
|
|
3009
|
+
message: 'Message',
|
|
3010
|
+
requestId: 'RequestId',
|
|
3011
|
+
};
|
|
3012
|
+
}
|
|
3013
|
+
static types() {
|
|
3014
|
+
return {
|
|
3015
|
+
code: 'string',
|
|
3016
|
+
data: { 'type': 'array', 'itemType': ImportAdminsResponseBodyData },
|
|
3017
|
+
httpStatusCode: 'number',
|
|
3018
|
+
message: 'string',
|
|
3019
|
+
requestId: 'string',
|
|
3020
|
+
};
|
|
3021
|
+
}
|
|
3022
|
+
}
|
|
3023
|
+
exports.ImportAdminsResponseBody = ImportAdminsResponseBody;
|
|
3024
|
+
class ImportAdminsResponse extends $tea.Model {
|
|
3025
|
+
constructor(map) {
|
|
3026
|
+
super(map);
|
|
3027
|
+
}
|
|
3028
|
+
static names() {
|
|
3029
|
+
return {
|
|
3030
|
+
headers: 'headers',
|
|
3031
|
+
body: 'body',
|
|
3032
|
+
};
|
|
3033
|
+
}
|
|
3034
|
+
static types() {
|
|
3035
|
+
return {
|
|
3036
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
3037
|
+
body: ImportAdminsResponseBody,
|
|
3038
|
+
};
|
|
3039
|
+
}
|
|
3040
|
+
}
|
|
3041
|
+
exports.ImportAdminsResponse = ImportAdminsResponse;
|
|
2982
3042
|
class ImportCustomCallTaggingRequest extends $tea.Model {
|
|
2983
3043
|
constructor(map) {
|
|
2984
3044
|
super(map);
|
|
@@ -3252,6 +3312,7 @@ class LaunchAuthenticationRequest extends $tea.Model {
|
|
|
3252
3312
|
static names() {
|
|
3253
3313
|
return {
|
|
3254
3314
|
contactFlowId: 'ContactFlowId',
|
|
3315
|
+
contactFlowVariables: 'ContactFlowVariables',
|
|
3255
3316
|
deviceId: 'DeviceId',
|
|
3256
3317
|
instanceId: 'InstanceId',
|
|
3257
3318
|
jobId: 'JobId',
|
|
@@ -3261,6 +3322,7 @@ class LaunchAuthenticationRequest extends $tea.Model {
|
|
|
3261
3322
|
static types() {
|
|
3262
3323
|
return {
|
|
3263
3324
|
contactFlowId: 'string',
|
|
3325
|
+
contactFlowVariables: 'string',
|
|
3264
3326
|
deviceId: 'string',
|
|
3265
3327
|
instanceId: 'string',
|
|
3266
3328
|
jobId: 'string',
|
|
@@ -3320,18 +3382,24 @@ class LaunchSurveyRequest extends $tea.Model {
|
|
|
3320
3382
|
static names() {
|
|
3321
3383
|
return {
|
|
3322
3384
|
contactFlowId: 'ContactFlowId',
|
|
3385
|
+
contactFlowVariables: 'ContactFlowVariables',
|
|
3323
3386
|
deviceId: 'DeviceId',
|
|
3324
3387
|
instanceId: 'InstanceId',
|
|
3325
3388
|
jobId: 'JobId',
|
|
3389
|
+
smsMetadataId: 'SmsMetadataId',
|
|
3390
|
+
surveyChannel: 'SurveyChannel',
|
|
3326
3391
|
userId: 'UserId',
|
|
3327
3392
|
};
|
|
3328
3393
|
}
|
|
3329
3394
|
static types() {
|
|
3330
3395
|
return {
|
|
3331
3396
|
contactFlowId: 'string',
|
|
3397
|
+
contactFlowVariables: 'string',
|
|
3332
3398
|
deviceId: 'string',
|
|
3333
3399
|
instanceId: 'string',
|
|
3334
3400
|
jobId: 'string',
|
|
3401
|
+
smsMetadataId: 'string',
|
|
3402
|
+
surveyChannel: 'string',
|
|
3335
3403
|
userId: 'string',
|
|
3336
3404
|
};
|
|
3337
3405
|
}
|
|
@@ -7615,7 +7683,6 @@ class RemovePhoneNumbersResponseBody extends $tea.Model {
|
|
|
7615
7683
|
return {
|
|
7616
7684
|
code: 'Code',
|
|
7617
7685
|
data: 'Data',
|
|
7618
|
-
failureList: 'FailureList',
|
|
7619
7686
|
httpStatusCode: 'HttpStatusCode',
|
|
7620
7687
|
message: 'Message',
|
|
7621
7688
|
params: 'Params',
|
|
@@ -7625,8 +7692,7 @@ class RemovePhoneNumbersResponseBody extends $tea.Model {
|
|
|
7625
7692
|
static types() {
|
|
7626
7693
|
return {
|
|
7627
7694
|
code: 'string',
|
|
7628
|
-
data: 'string',
|
|
7629
|
-
failureList: { 'type': 'array', 'itemType': 'string' },
|
|
7695
|
+
data: { 'type': 'array', 'itemType': 'string' },
|
|
7630
7696
|
httpStatusCode: 'number',
|
|
7631
7697
|
message: 'string',
|
|
7632
7698
|
params: { 'type': 'array', 'itemType': 'string' },
|
|
@@ -11165,6 +11231,30 @@ class HoldCallResponseBodyData extends $tea.Model {
|
|
|
11165
11231
|
}
|
|
11166
11232
|
}
|
|
11167
11233
|
exports.HoldCallResponseBodyData = HoldCallResponseBodyData;
|
|
11234
|
+
class ImportAdminsResponseBodyData extends $tea.Model {
|
|
11235
|
+
constructor(map) {
|
|
11236
|
+
super(map);
|
|
11237
|
+
}
|
|
11238
|
+
static names() {
|
|
11239
|
+
return {
|
|
11240
|
+
extension: 'Extension',
|
|
11241
|
+
instanceId: 'InstanceId',
|
|
11242
|
+
ramId: 'RamId',
|
|
11243
|
+
roleId: 'RoleId',
|
|
11244
|
+
userId: 'UserId',
|
|
11245
|
+
};
|
|
11246
|
+
}
|
|
11247
|
+
static types() {
|
|
11248
|
+
return {
|
|
11249
|
+
extension: 'string',
|
|
11250
|
+
instanceId: 'string',
|
|
11251
|
+
ramId: 'string',
|
|
11252
|
+
roleId: 'string',
|
|
11253
|
+
userId: 'string',
|
|
11254
|
+
};
|
|
11255
|
+
}
|
|
11256
|
+
}
|
|
11257
|
+
exports.ImportAdminsResponseBodyData = ImportAdminsResponseBodyData;
|
|
11168
11258
|
class ImportCustomCallTaggingResponseBodyData extends $tea.Model {
|
|
11169
11259
|
constructor(map) {
|
|
11170
11260
|
super(map);
|
|
@@ -14203,6 +14293,7 @@ class ListMultiChannelRecordingsResponseBodyData extends $tea.Model {
|
|
|
14203
14293
|
}
|
|
14204
14294
|
static names() {
|
|
14205
14295
|
return {
|
|
14296
|
+
agentChannelId: 'AgentChannelId',
|
|
14206
14297
|
agentId: 'AgentId',
|
|
14207
14298
|
agentName: 'AgentName',
|
|
14208
14299
|
contactId: 'ContactId',
|
|
@@ -14216,6 +14307,7 @@ class ListMultiChannelRecordingsResponseBodyData extends $tea.Model {
|
|
|
14216
14307
|
}
|
|
14217
14308
|
static types() {
|
|
14218
14309
|
return {
|
|
14310
|
+
agentChannelId: 'string',
|
|
14219
14311
|
agentId: 'string',
|
|
14220
14312
|
agentName: 'string',
|
|
14221
14313
|
contactId: 'string',
|
|
@@ -18369,6 +18461,35 @@ class Client extends openapi_client_1.default {
|
|
|
18369
18461
|
let runtime = new $Util.RuntimeOptions({});
|
|
18370
18462
|
return await this.holdCallWithOptions(request, runtime);
|
|
18371
18463
|
}
|
|
18464
|
+
async importAdminsWithOptions(request, runtime) {
|
|
18465
|
+
tea_util_1.default.validateModel(request);
|
|
18466
|
+
let query = {};
|
|
18467
|
+
if (!tea_util_1.default.isUnset(request.instanceId)) {
|
|
18468
|
+
query["InstanceId"] = request.instanceId;
|
|
18469
|
+
}
|
|
18470
|
+
if (!tea_util_1.default.isUnset(request.ramIdList)) {
|
|
18471
|
+
query["RamIdList"] = request.ramIdList;
|
|
18472
|
+
}
|
|
18473
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
18474
|
+
query: openapi_util_1.default.query(query),
|
|
18475
|
+
});
|
|
18476
|
+
let params = new $OpenApi.Params({
|
|
18477
|
+
action: "ImportAdmins",
|
|
18478
|
+
version: "2020-07-01",
|
|
18479
|
+
protocol: "HTTPS",
|
|
18480
|
+
pathname: "/",
|
|
18481
|
+
method: "POST",
|
|
18482
|
+
authType: "AK",
|
|
18483
|
+
style: "RPC",
|
|
18484
|
+
reqBodyType: "formData",
|
|
18485
|
+
bodyType: "json",
|
|
18486
|
+
});
|
|
18487
|
+
return $tea.cast(await this.callApi(params, req, runtime), new ImportAdminsResponse({}));
|
|
18488
|
+
}
|
|
18489
|
+
async importAdmins(request) {
|
|
18490
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
18491
|
+
return await this.importAdminsWithOptions(request, runtime);
|
|
18492
|
+
}
|
|
18372
18493
|
async importCustomCallTaggingWithOptions(request, runtime) {
|
|
18373
18494
|
tea_util_1.default.validateModel(request);
|
|
18374
18495
|
let query = {};
|
|
@@ -18524,6 +18645,9 @@ class Client extends openapi_client_1.default {
|
|
|
18524
18645
|
if (!tea_util_1.default.isUnset(request.contactFlowId)) {
|
|
18525
18646
|
query["ContactFlowId"] = request.contactFlowId;
|
|
18526
18647
|
}
|
|
18648
|
+
if (!tea_util_1.default.isUnset(request.contactFlowVariables)) {
|
|
18649
|
+
query["ContactFlowVariables"] = request.contactFlowVariables;
|
|
18650
|
+
}
|
|
18527
18651
|
if (!tea_util_1.default.isUnset(request.deviceId)) {
|
|
18528
18652
|
query["DeviceId"] = request.deviceId;
|
|
18529
18653
|
}
|
|
@@ -18562,6 +18686,9 @@ class Client extends openapi_client_1.default {
|
|
|
18562
18686
|
if (!tea_util_1.default.isUnset(request.contactFlowId)) {
|
|
18563
18687
|
query["ContactFlowId"] = request.contactFlowId;
|
|
18564
18688
|
}
|
|
18689
|
+
if (!tea_util_1.default.isUnset(request.contactFlowVariables)) {
|
|
18690
|
+
query["ContactFlowVariables"] = request.contactFlowVariables;
|
|
18691
|
+
}
|
|
18565
18692
|
if (!tea_util_1.default.isUnset(request.deviceId)) {
|
|
18566
18693
|
query["DeviceId"] = request.deviceId;
|
|
18567
18694
|
}
|
|
@@ -18571,6 +18698,12 @@ class Client extends openapi_client_1.default {
|
|
|
18571
18698
|
if (!tea_util_1.default.isUnset(request.jobId)) {
|
|
18572
18699
|
query["JobId"] = request.jobId;
|
|
18573
18700
|
}
|
|
18701
|
+
if (!tea_util_1.default.isUnset(request.smsMetadataId)) {
|
|
18702
|
+
query["SmsMetadataId"] = request.smsMetadataId;
|
|
18703
|
+
}
|
|
18704
|
+
if (!tea_util_1.default.isUnset(request.surveyChannel)) {
|
|
18705
|
+
query["SurveyChannel"] = request.surveyChannel;
|
|
18706
|
+
}
|
|
18574
18707
|
if (!tea_util_1.default.isUnset(request.userId)) {
|
|
18575
18708
|
query["UserId"] = request.userId;
|
|
18576
18709
|
}
|