@alicloud/ccc20200701 2.2.1 → 2.3.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 +119 -0
- package/dist/client.js +230 -0
- package/dist/client.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +288 -0
package/package.json
CHANGED
package/src/client.ts
CHANGED
|
@@ -1911,6 +1911,81 @@ export class GetCampaignResponse extends $tea.Model {
|
|
|
1911
1911
|
}
|
|
1912
1912
|
}
|
|
1913
1913
|
|
|
1914
|
+
export class GetCaseFileUploadUrlRequest extends $tea.Model {
|
|
1915
|
+
fileName?: string;
|
|
1916
|
+
instanceId?: string;
|
|
1917
|
+
static names(): { [key: string]: string } {
|
|
1918
|
+
return {
|
|
1919
|
+
fileName: 'FileName',
|
|
1920
|
+
instanceId: 'InstanceId',
|
|
1921
|
+
};
|
|
1922
|
+
}
|
|
1923
|
+
|
|
1924
|
+
static types(): { [key: string]: any } {
|
|
1925
|
+
return {
|
|
1926
|
+
fileName: 'string',
|
|
1927
|
+
instanceId: 'string',
|
|
1928
|
+
};
|
|
1929
|
+
}
|
|
1930
|
+
|
|
1931
|
+
constructor(map?: { [key: string]: any }) {
|
|
1932
|
+
super(map);
|
|
1933
|
+
}
|
|
1934
|
+
}
|
|
1935
|
+
|
|
1936
|
+
export class GetCaseFileUploadUrlResponseBody extends $tea.Model {
|
|
1937
|
+
code?: string;
|
|
1938
|
+
data?: GetCaseFileUploadUrlResponseBodyData;
|
|
1939
|
+
httpStatusCode?: number;
|
|
1940
|
+
message?: string;
|
|
1941
|
+
requestId?: string;
|
|
1942
|
+
static names(): { [key: string]: string } {
|
|
1943
|
+
return {
|
|
1944
|
+
code: 'Code',
|
|
1945
|
+
data: 'Data',
|
|
1946
|
+
httpStatusCode: 'HttpStatusCode',
|
|
1947
|
+
message: 'Message',
|
|
1948
|
+
requestId: 'RequestId',
|
|
1949
|
+
};
|
|
1950
|
+
}
|
|
1951
|
+
|
|
1952
|
+
static types(): { [key: string]: any } {
|
|
1953
|
+
return {
|
|
1954
|
+
code: 'string',
|
|
1955
|
+
data: GetCaseFileUploadUrlResponseBodyData,
|
|
1956
|
+
httpStatusCode: 'number',
|
|
1957
|
+
message: 'string',
|
|
1958
|
+
requestId: 'string',
|
|
1959
|
+
};
|
|
1960
|
+
}
|
|
1961
|
+
|
|
1962
|
+
constructor(map?: { [key: string]: any }) {
|
|
1963
|
+
super(map);
|
|
1964
|
+
}
|
|
1965
|
+
}
|
|
1966
|
+
|
|
1967
|
+
export class GetCaseFileUploadUrlResponse extends $tea.Model {
|
|
1968
|
+
headers: { [key: string]: string };
|
|
1969
|
+
body: GetCaseFileUploadUrlResponseBody;
|
|
1970
|
+
static names(): { [key: string]: string } {
|
|
1971
|
+
return {
|
|
1972
|
+
headers: 'headers',
|
|
1973
|
+
body: 'body',
|
|
1974
|
+
};
|
|
1975
|
+
}
|
|
1976
|
+
|
|
1977
|
+
static types(): { [key: string]: any } {
|
|
1978
|
+
return {
|
|
1979
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
1980
|
+
body: GetCaseFileUploadUrlResponseBody,
|
|
1981
|
+
};
|
|
1982
|
+
}
|
|
1983
|
+
|
|
1984
|
+
constructor(map?: { [key: string]: any }) {
|
|
1985
|
+
super(map);
|
|
1986
|
+
}
|
|
1987
|
+
}
|
|
1988
|
+
|
|
1914
1989
|
export class GetHistoricalCallerReportRequest extends $tea.Model {
|
|
1915
1990
|
callingNumber?: string;
|
|
1916
1991
|
instanceId?: string;
|
|
@@ -7401,6 +7476,87 @@ export class RegisterDeviceResponse extends $tea.Model {
|
|
|
7401
7476
|
}
|
|
7402
7477
|
}
|
|
7403
7478
|
|
|
7479
|
+
export class RegisterDevicesRequest extends $tea.Model {
|
|
7480
|
+
deviceId?: string;
|
|
7481
|
+
instanceId?: string;
|
|
7482
|
+
password?: string;
|
|
7483
|
+
userIdListJson?: string;
|
|
7484
|
+
static names(): { [key: string]: string } {
|
|
7485
|
+
return {
|
|
7486
|
+
deviceId: 'DeviceId',
|
|
7487
|
+
instanceId: 'InstanceId',
|
|
7488
|
+
password: 'Password',
|
|
7489
|
+
userIdListJson: 'UserIdListJson',
|
|
7490
|
+
};
|
|
7491
|
+
}
|
|
7492
|
+
|
|
7493
|
+
static types(): { [key: string]: any } {
|
|
7494
|
+
return {
|
|
7495
|
+
deviceId: 'string',
|
|
7496
|
+
instanceId: 'string',
|
|
7497
|
+
password: 'string',
|
|
7498
|
+
userIdListJson: 'string',
|
|
7499
|
+
};
|
|
7500
|
+
}
|
|
7501
|
+
|
|
7502
|
+
constructor(map?: { [key: string]: any }) {
|
|
7503
|
+
super(map);
|
|
7504
|
+
}
|
|
7505
|
+
}
|
|
7506
|
+
|
|
7507
|
+
export class RegisterDevicesResponseBody extends $tea.Model {
|
|
7508
|
+
code?: string;
|
|
7509
|
+
httpStatusCode?: number;
|
|
7510
|
+
message?: string;
|
|
7511
|
+
params?: string[];
|
|
7512
|
+
requestId?: string;
|
|
7513
|
+
static names(): { [key: string]: string } {
|
|
7514
|
+
return {
|
|
7515
|
+
code: 'Code',
|
|
7516
|
+
httpStatusCode: 'HttpStatusCode',
|
|
7517
|
+
message: 'Message',
|
|
7518
|
+
params: 'Params',
|
|
7519
|
+
requestId: 'RequestId',
|
|
7520
|
+
};
|
|
7521
|
+
}
|
|
7522
|
+
|
|
7523
|
+
static types(): { [key: string]: any } {
|
|
7524
|
+
return {
|
|
7525
|
+
code: 'string',
|
|
7526
|
+
httpStatusCode: 'number',
|
|
7527
|
+
message: 'string',
|
|
7528
|
+
params: { 'type': 'array', 'itemType': 'string' },
|
|
7529
|
+
requestId: 'string',
|
|
7530
|
+
};
|
|
7531
|
+
}
|
|
7532
|
+
|
|
7533
|
+
constructor(map?: { [key: string]: any }) {
|
|
7534
|
+
super(map);
|
|
7535
|
+
}
|
|
7536
|
+
}
|
|
7537
|
+
|
|
7538
|
+
export class RegisterDevicesResponse extends $tea.Model {
|
|
7539
|
+
headers: { [key: string]: string };
|
|
7540
|
+
body: RegisterDevicesResponseBody;
|
|
7541
|
+
static names(): { [key: string]: string } {
|
|
7542
|
+
return {
|
|
7543
|
+
headers: 'headers',
|
|
7544
|
+
body: 'body',
|
|
7545
|
+
};
|
|
7546
|
+
}
|
|
7547
|
+
|
|
7548
|
+
static types(): { [key: string]: any } {
|
|
7549
|
+
return {
|
|
7550
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
7551
|
+
body: RegisterDevicesResponseBody,
|
|
7552
|
+
};
|
|
7553
|
+
}
|
|
7554
|
+
|
|
7555
|
+
constructor(map?: { [key: string]: any }) {
|
|
7556
|
+
super(map);
|
|
7557
|
+
}
|
|
7558
|
+
}
|
|
7559
|
+
|
|
7404
7560
|
export class ReleaseCallRequest extends $tea.Model {
|
|
7405
7561
|
channelId?: string;
|
|
7406
7562
|
deviceId?: string;
|
|
@@ -10970,6 +11126,28 @@ export class GetCampaignResponseBodyData extends $tea.Model {
|
|
|
10970
11126
|
}
|
|
10971
11127
|
}
|
|
10972
11128
|
|
|
11129
|
+
export class GetCaseFileUploadUrlResponseBodyData extends $tea.Model {
|
|
11130
|
+
caseFileKey?: string;
|
|
11131
|
+
url?: string;
|
|
11132
|
+
static names(): { [key: string]: string } {
|
|
11133
|
+
return {
|
|
11134
|
+
caseFileKey: 'CaseFileKey',
|
|
11135
|
+
url: 'Url',
|
|
11136
|
+
};
|
|
11137
|
+
}
|
|
11138
|
+
|
|
11139
|
+
static types(): { [key: string]: any } {
|
|
11140
|
+
return {
|
|
11141
|
+
caseFileKey: 'string',
|
|
11142
|
+
url: 'string',
|
|
11143
|
+
};
|
|
11144
|
+
}
|
|
11145
|
+
|
|
11146
|
+
constructor(map?: { [key: string]: any }) {
|
|
11147
|
+
super(map);
|
|
11148
|
+
}
|
|
11149
|
+
}
|
|
11150
|
+
|
|
10973
11151
|
export class GetHistoricalCallerReportResponseBodyData extends $tea.Model {
|
|
10974
11152
|
lastCallingTime?: number;
|
|
10975
11153
|
totalCalls?: number;
|
|
@@ -11620,24 +11798,32 @@ export class GetInstanceTrendingReportResponseBodyData extends $tea.Model {
|
|
|
11620
11798
|
|
|
11621
11799
|
export class GetLoginDetailsResponseBodyData extends $tea.Model {
|
|
11622
11800
|
agentServerUrl?: string;
|
|
11801
|
+
deviceExt?: string;
|
|
11623
11802
|
deviceId?: string;
|
|
11803
|
+
deviceState?: string;
|
|
11624
11804
|
displayName?: string;
|
|
11625
11805
|
extension?: string;
|
|
11626
11806
|
signature?: string;
|
|
11807
|
+
signature2?: string;
|
|
11627
11808
|
sipServerUrl?: string;
|
|
11628
11809
|
userId?: string;
|
|
11629
11810
|
userKey?: string;
|
|
11811
|
+
userKey2?: string;
|
|
11630
11812
|
workMode?: string;
|
|
11631
11813
|
static names(): { [key: string]: string } {
|
|
11632
11814
|
return {
|
|
11633
11815
|
agentServerUrl: 'AgentServerUrl',
|
|
11816
|
+
deviceExt: 'DeviceExt',
|
|
11634
11817
|
deviceId: 'DeviceId',
|
|
11818
|
+
deviceState: 'DeviceState',
|
|
11635
11819
|
displayName: 'DisplayName',
|
|
11636
11820
|
extension: 'Extension',
|
|
11637
11821
|
signature: 'Signature',
|
|
11822
|
+
signature2: 'Signature2',
|
|
11638
11823
|
sipServerUrl: 'SipServerUrl',
|
|
11639
11824
|
userId: 'UserId',
|
|
11640
11825
|
userKey: 'UserKey',
|
|
11826
|
+
userKey2: 'UserKey2',
|
|
11641
11827
|
workMode: 'WorkMode',
|
|
11642
11828
|
};
|
|
11643
11829
|
}
|
|
@@ -11645,13 +11831,17 @@ export class GetLoginDetailsResponseBodyData extends $tea.Model {
|
|
|
11645
11831
|
static types(): { [key: string]: any } {
|
|
11646
11832
|
return {
|
|
11647
11833
|
agentServerUrl: 'string',
|
|
11834
|
+
deviceExt: 'string',
|
|
11648
11835
|
deviceId: 'string',
|
|
11836
|
+
deviceState: 'string',
|
|
11649
11837
|
displayName: 'string',
|
|
11650
11838
|
extension: 'string',
|
|
11651
11839
|
signature: 'string',
|
|
11840
|
+
signature2: 'string',
|
|
11652
11841
|
sipServerUrl: 'string',
|
|
11653
11842
|
userId: 'string',
|
|
11654
11843
|
userKey: 'string',
|
|
11844
|
+
userKey2: 'string',
|
|
11655
11845
|
workMode: 'string',
|
|
11656
11846
|
};
|
|
11657
11847
|
}
|
|
@@ -11799,6 +11989,9 @@ export class GetTurnCredentialsResponseBodyData extends $tea.Model {
|
|
|
11799
11989
|
}
|
|
11800
11990
|
|
|
11801
11991
|
export class GetUserResponseBodyData extends $tea.Model {
|
|
11992
|
+
deviceExt?: string;
|
|
11993
|
+
deviceId?: string;
|
|
11994
|
+
deviceState?: string;
|
|
11802
11995
|
displayName?: string;
|
|
11803
11996
|
email?: string;
|
|
11804
11997
|
extension?: string;
|
|
@@ -11811,6 +12004,9 @@ export class GetUserResponseBodyData extends $tea.Model {
|
|
|
11811
12004
|
workMode?: string;
|
|
11812
12005
|
static names(): { [key: string]: string } {
|
|
11813
12006
|
return {
|
|
12007
|
+
deviceExt: 'DeviceExt',
|
|
12008
|
+
deviceId: 'DeviceId',
|
|
12009
|
+
deviceState: 'DeviceState',
|
|
11814
12010
|
displayName: 'DisplayName',
|
|
11815
12011
|
email: 'Email',
|
|
11816
12012
|
extension: 'Extension',
|
|
@@ -11826,6 +12022,9 @@ export class GetUserResponseBodyData extends $tea.Model {
|
|
|
11826
12022
|
|
|
11827
12023
|
static types(): { [key: string]: any } {
|
|
11828
12024
|
return {
|
|
12025
|
+
deviceExt: 'string',
|
|
12026
|
+
deviceId: 'string',
|
|
12027
|
+
deviceState: 'string',
|
|
11829
12028
|
displayName: 'string',
|
|
11830
12029
|
email: 'string',
|
|
11831
12030
|
extension: 'string',
|
|
@@ -16580,9 +16779,13 @@ export class ListUsersResponseBodyDataListSkillLevelList extends $tea.Model {
|
|
|
16580
16779
|
}
|
|
16581
16780
|
|
|
16582
16781
|
export class ListUsersResponseBodyDataList extends $tea.Model {
|
|
16782
|
+
deviceExt?: string;
|
|
16783
|
+
deviceId?: string;
|
|
16784
|
+
deviceState?: string;
|
|
16583
16785
|
displayId?: string;
|
|
16584
16786
|
displayName?: string;
|
|
16585
16787
|
email?: string;
|
|
16788
|
+
extension?: string;
|
|
16586
16789
|
loginName?: string;
|
|
16587
16790
|
mobile?: string;
|
|
16588
16791
|
personalOutboundNumberList?: ListUsersResponseBodyDataListPersonalOutboundNumberList[];
|
|
@@ -16595,9 +16798,13 @@ export class ListUsersResponseBodyDataList extends $tea.Model {
|
|
|
16595
16798
|
workMode?: string;
|
|
16596
16799
|
static names(): { [key: string]: string } {
|
|
16597
16800
|
return {
|
|
16801
|
+
deviceExt: 'DeviceExt',
|
|
16802
|
+
deviceId: 'DeviceId',
|
|
16803
|
+
deviceState: 'DeviceState',
|
|
16598
16804
|
displayId: 'DisplayId',
|
|
16599
16805
|
displayName: 'DisplayName',
|
|
16600
16806
|
email: 'Email',
|
|
16807
|
+
extension: 'Extension',
|
|
16601
16808
|
loginName: 'LoginName',
|
|
16602
16809
|
mobile: 'Mobile',
|
|
16603
16810
|
personalOutboundNumberList: 'PersonalOutboundNumberList',
|
|
@@ -16613,9 +16820,13 @@ export class ListUsersResponseBodyDataList extends $tea.Model {
|
|
|
16613
16820
|
|
|
16614
16821
|
static types(): { [key: string]: any } {
|
|
16615
16822
|
return {
|
|
16823
|
+
deviceExt: 'string',
|
|
16824
|
+
deviceId: 'string',
|
|
16825
|
+
deviceState: 'string',
|
|
16616
16826
|
displayId: 'string',
|
|
16617
16827
|
displayName: 'string',
|
|
16618
16828
|
email: 'string',
|
|
16829
|
+
extension: 'string',
|
|
16619
16830
|
loginName: 'string',
|
|
16620
16831
|
mobile: 'string',
|
|
16621
16832
|
personalOutboundNumberList: { 'type': 'array', 'itemType': ListUsersResponseBodyDataListPersonalOutboundNumberList },
|
|
@@ -17560,10 +17771,12 @@ export class ReleaseCallResponseBodyDataUserContext extends $tea.Model {
|
|
|
17560
17771
|
|
|
17561
17772
|
export class ReleaseCallResponseBodyData extends $tea.Model {
|
|
17562
17773
|
callContext?: ReleaseCallResponseBodyDataCallContext;
|
|
17774
|
+
contextId?: number;
|
|
17563
17775
|
userContext?: ReleaseCallResponseBodyDataUserContext;
|
|
17564
17776
|
static names(): { [key: string]: string } {
|
|
17565
17777
|
return {
|
|
17566
17778
|
callContext: 'CallContext',
|
|
17779
|
+
contextId: 'ContextId',
|
|
17567
17780
|
userContext: 'UserContext',
|
|
17568
17781
|
};
|
|
17569
17782
|
}
|
|
@@ -17571,6 +17784,7 @@ export class ReleaseCallResponseBodyData extends $tea.Model {
|
|
|
17571
17784
|
static types(): { [key: string]: any } {
|
|
17572
17785
|
return {
|
|
17573
17786
|
callContext: ReleaseCallResponseBodyDataCallContext,
|
|
17787
|
+
contextId: 'number',
|
|
17574
17788
|
userContext: ReleaseCallResponseBodyDataUserContext,
|
|
17575
17789
|
};
|
|
17576
17790
|
}
|
|
@@ -19611,6 +19825,39 @@ export default class Client extends OpenApi {
|
|
|
19611
19825
|
return await this.getCampaignWithOptions(request, runtime);
|
|
19612
19826
|
}
|
|
19613
19827
|
|
|
19828
|
+
async getCaseFileUploadUrlWithOptions(request: GetCaseFileUploadUrlRequest, runtime: $Util.RuntimeOptions): Promise<GetCaseFileUploadUrlResponse> {
|
|
19829
|
+
Util.validateModel(request);
|
|
19830
|
+
let query = { };
|
|
19831
|
+
if (!Util.isUnset(request.fileName)) {
|
|
19832
|
+
query["FileName"] = request.fileName;
|
|
19833
|
+
}
|
|
19834
|
+
|
|
19835
|
+
if (!Util.isUnset(request.instanceId)) {
|
|
19836
|
+
query["InstanceId"] = request.instanceId;
|
|
19837
|
+
}
|
|
19838
|
+
|
|
19839
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
19840
|
+
query: OpenApiUtil.query(query),
|
|
19841
|
+
});
|
|
19842
|
+
let params = new $OpenApi.Params({
|
|
19843
|
+
action: "GetCaseFileUploadUrl",
|
|
19844
|
+
version: "2020-07-01",
|
|
19845
|
+
protocol: "HTTPS",
|
|
19846
|
+
pathname: "/",
|
|
19847
|
+
method: "POST",
|
|
19848
|
+
authType: "AK",
|
|
19849
|
+
style: "RPC",
|
|
19850
|
+
reqBodyType: "formData",
|
|
19851
|
+
bodyType: "json",
|
|
19852
|
+
});
|
|
19853
|
+
return $tea.cast<GetCaseFileUploadUrlResponse>(await this.callApi(params, req, runtime), new GetCaseFileUploadUrlResponse({}));
|
|
19854
|
+
}
|
|
19855
|
+
|
|
19856
|
+
async getCaseFileUploadUrl(request: GetCaseFileUploadUrlRequest): Promise<GetCaseFileUploadUrlResponse> {
|
|
19857
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
19858
|
+
return await this.getCaseFileUploadUrlWithOptions(request, runtime);
|
|
19859
|
+
}
|
|
19860
|
+
|
|
19614
19861
|
async getHistoricalCallerReportWithOptions(request: GetHistoricalCallerReportRequest, runtime: $Util.RuntimeOptions): Promise<GetHistoricalCallerReportResponse> {
|
|
19615
19862
|
Util.validateModel(request);
|
|
19616
19863
|
let query = { };
|
|
@@ -22355,6 +22602,47 @@ export default class Client extends OpenApi {
|
|
|
22355
22602
|
return await this.registerDeviceWithOptions(request, runtime);
|
|
22356
22603
|
}
|
|
22357
22604
|
|
|
22605
|
+
async registerDevicesWithOptions(request: RegisterDevicesRequest, runtime: $Util.RuntimeOptions): Promise<RegisterDevicesResponse> {
|
|
22606
|
+
Util.validateModel(request);
|
|
22607
|
+
let query = { };
|
|
22608
|
+
if (!Util.isUnset(request.deviceId)) {
|
|
22609
|
+
query["DeviceId"] = request.deviceId;
|
|
22610
|
+
}
|
|
22611
|
+
|
|
22612
|
+
if (!Util.isUnset(request.instanceId)) {
|
|
22613
|
+
query["InstanceId"] = request.instanceId;
|
|
22614
|
+
}
|
|
22615
|
+
|
|
22616
|
+
if (!Util.isUnset(request.password)) {
|
|
22617
|
+
query["Password"] = request.password;
|
|
22618
|
+
}
|
|
22619
|
+
|
|
22620
|
+
if (!Util.isUnset(request.userIdListJson)) {
|
|
22621
|
+
query["UserIdListJson"] = request.userIdListJson;
|
|
22622
|
+
}
|
|
22623
|
+
|
|
22624
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
22625
|
+
query: OpenApiUtil.query(query),
|
|
22626
|
+
});
|
|
22627
|
+
let params = new $OpenApi.Params({
|
|
22628
|
+
action: "RegisterDevices",
|
|
22629
|
+
version: "2020-07-01",
|
|
22630
|
+
protocol: "HTTPS",
|
|
22631
|
+
pathname: "/",
|
|
22632
|
+
method: "POST",
|
|
22633
|
+
authType: "AK",
|
|
22634
|
+
style: "RPC",
|
|
22635
|
+
reqBodyType: "formData",
|
|
22636
|
+
bodyType: "json",
|
|
22637
|
+
});
|
|
22638
|
+
return $tea.cast<RegisterDevicesResponse>(await this.callApi(params, req, runtime), new RegisterDevicesResponse({}));
|
|
22639
|
+
}
|
|
22640
|
+
|
|
22641
|
+
async registerDevices(request: RegisterDevicesRequest): Promise<RegisterDevicesResponse> {
|
|
22642
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
22643
|
+
return await this.registerDevicesWithOptions(request, runtime);
|
|
22644
|
+
}
|
|
22645
|
+
|
|
22358
22646
|
async releaseCallWithOptions(request: ReleaseCallRequest, runtime: $Util.RuntimeOptions): Promise<ReleaseCallResponse> {
|
|
22359
22647
|
Util.validateModel(request);
|
|
22360
22648
|
let query = { };
|