@alicloud/ccc20200701 2.28.0 → 2.29.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 +179 -0
- package/dist/client.js +231 -19
- package/dist/client.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +321 -0
package/package.json
CHANGED
package/src/client.ts
CHANGED
|
@@ -7051,6 +7051,124 @@ export class EndConferenceResponse extends $tea.Model {
|
|
|
7051
7051
|
}
|
|
7052
7052
|
}
|
|
7053
7053
|
|
|
7054
|
+
export class ExportContactFlowRequest extends $tea.Model {
|
|
7055
|
+
/**
|
|
7056
|
+
* @remarks
|
|
7057
|
+
* This parameter is required.
|
|
7058
|
+
*
|
|
7059
|
+
* @example
|
|
7060
|
+
* lc-uf61xdtm0mf73k
|
|
7061
|
+
*/
|
|
7062
|
+
flowId?: string;
|
|
7063
|
+
/**
|
|
7064
|
+
* @remarks
|
|
7065
|
+
* This parameter is required.
|
|
7066
|
+
*
|
|
7067
|
+
* @example
|
|
7068
|
+
* 9cfad875-6260-4a53-ab6e-b13e3fb3xxxx
|
|
7069
|
+
*/
|
|
7070
|
+
instanceId?: string;
|
|
7071
|
+
/**
|
|
7072
|
+
* @example
|
|
7073
|
+
* AF9834D8-6D09-4A1B-BADB-B019D9D444C8
|
|
7074
|
+
*/
|
|
7075
|
+
requestId?: string;
|
|
7076
|
+
static names(): { [key: string]: string } {
|
|
7077
|
+
return {
|
|
7078
|
+
flowId: 'FlowId',
|
|
7079
|
+
instanceId: 'InstanceId',
|
|
7080
|
+
requestId: 'RequestId',
|
|
7081
|
+
};
|
|
7082
|
+
}
|
|
7083
|
+
|
|
7084
|
+
static types(): { [key: string]: any } {
|
|
7085
|
+
return {
|
|
7086
|
+
flowId: 'string',
|
|
7087
|
+
instanceId: 'string',
|
|
7088
|
+
requestId: 'string',
|
|
7089
|
+
};
|
|
7090
|
+
}
|
|
7091
|
+
|
|
7092
|
+
constructor(map?: { [key: string]: any }) {
|
|
7093
|
+
super(map);
|
|
7094
|
+
}
|
|
7095
|
+
}
|
|
7096
|
+
|
|
7097
|
+
export class ExportContactFlowResponseBody extends $tea.Model {
|
|
7098
|
+
/**
|
|
7099
|
+
* @example
|
|
7100
|
+
* OK
|
|
7101
|
+
*/
|
|
7102
|
+
code?: string;
|
|
7103
|
+
/**
|
|
7104
|
+
* @example
|
|
7105
|
+
* {}
|
|
7106
|
+
*/
|
|
7107
|
+
flowPackageData?: string;
|
|
7108
|
+
/**
|
|
7109
|
+
* @example
|
|
7110
|
+
* 200
|
|
7111
|
+
*/
|
|
7112
|
+
httpStatusCode?: number;
|
|
7113
|
+
message?: string;
|
|
7114
|
+
params?: string[];
|
|
7115
|
+
/**
|
|
7116
|
+
* @example
|
|
7117
|
+
* DE803553-8AA9-4B9D-9E4E-A82BC69EDCEE
|
|
7118
|
+
*/
|
|
7119
|
+
requestId?: string;
|
|
7120
|
+
static names(): { [key: string]: string } {
|
|
7121
|
+
return {
|
|
7122
|
+
code: 'Code',
|
|
7123
|
+
flowPackageData: 'FlowPackageData',
|
|
7124
|
+
httpStatusCode: 'HttpStatusCode',
|
|
7125
|
+
message: 'Message',
|
|
7126
|
+
params: 'Params',
|
|
7127
|
+
requestId: 'RequestId',
|
|
7128
|
+
};
|
|
7129
|
+
}
|
|
7130
|
+
|
|
7131
|
+
static types(): { [key: string]: any } {
|
|
7132
|
+
return {
|
|
7133
|
+
code: 'string',
|
|
7134
|
+
flowPackageData: 'string',
|
|
7135
|
+
httpStatusCode: 'number',
|
|
7136
|
+
message: 'string',
|
|
7137
|
+
params: { 'type': 'array', 'itemType': 'string' },
|
|
7138
|
+
requestId: 'string',
|
|
7139
|
+
};
|
|
7140
|
+
}
|
|
7141
|
+
|
|
7142
|
+
constructor(map?: { [key: string]: any }) {
|
|
7143
|
+
super(map);
|
|
7144
|
+
}
|
|
7145
|
+
}
|
|
7146
|
+
|
|
7147
|
+
export class ExportContactFlowResponse extends $tea.Model {
|
|
7148
|
+
headers?: { [key: string]: string };
|
|
7149
|
+
statusCode?: number;
|
|
7150
|
+
body?: ExportContactFlowResponseBody;
|
|
7151
|
+
static names(): { [key: string]: string } {
|
|
7152
|
+
return {
|
|
7153
|
+
headers: 'headers',
|
|
7154
|
+
statusCode: 'statusCode',
|
|
7155
|
+
body: 'body',
|
|
7156
|
+
};
|
|
7157
|
+
}
|
|
7158
|
+
|
|
7159
|
+
static types(): { [key: string]: any } {
|
|
7160
|
+
return {
|
|
7161
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
7162
|
+
statusCode: 'number',
|
|
7163
|
+
body: ExportContactFlowResponseBody,
|
|
7164
|
+
};
|
|
7165
|
+
}
|
|
7166
|
+
|
|
7167
|
+
constructor(map?: { [key: string]: any }) {
|
|
7168
|
+
super(map);
|
|
7169
|
+
}
|
|
7170
|
+
}
|
|
7171
|
+
|
|
7054
7172
|
export class ExportCustomCallTaggingRequest extends $tea.Model {
|
|
7055
7173
|
/**
|
|
7056
7174
|
* @remarks
|
|
@@ -11763,6 +11881,117 @@ export class ImportAdminsResponse extends $tea.Model {
|
|
|
11763
11881
|
}
|
|
11764
11882
|
}
|
|
11765
11883
|
|
|
11884
|
+
export class ImportContactFlowRequest extends $tea.Model {
|
|
11885
|
+
/**
|
|
11886
|
+
* @remarks
|
|
11887
|
+
* This parameter is required.
|
|
11888
|
+
*
|
|
11889
|
+
* @example
|
|
11890
|
+
* {}
|
|
11891
|
+
*/
|
|
11892
|
+
flowPackageData?: string;
|
|
11893
|
+
/**
|
|
11894
|
+
* @remarks
|
|
11895
|
+
* This parameter is required.
|
|
11896
|
+
*
|
|
11897
|
+
* @example
|
|
11898
|
+
* 9cfad875-6260-4a53-ab6e-b13e3fb31f7d
|
|
11899
|
+
*/
|
|
11900
|
+
instanceId?: string;
|
|
11901
|
+
/**
|
|
11902
|
+
* @example
|
|
11903
|
+
* DE803553-8AA9-4B9D-9E4E-A82BC69EDCEE
|
|
11904
|
+
*/
|
|
11905
|
+
requestId?: string;
|
|
11906
|
+
static names(): { [key: string]: string } {
|
|
11907
|
+
return {
|
|
11908
|
+
flowPackageData: 'FlowPackageData',
|
|
11909
|
+
instanceId: 'InstanceId',
|
|
11910
|
+
requestId: 'RequestId',
|
|
11911
|
+
};
|
|
11912
|
+
}
|
|
11913
|
+
|
|
11914
|
+
static types(): { [key: string]: any } {
|
|
11915
|
+
return {
|
|
11916
|
+
flowPackageData: 'string',
|
|
11917
|
+
instanceId: 'string',
|
|
11918
|
+
requestId: 'string',
|
|
11919
|
+
};
|
|
11920
|
+
}
|
|
11921
|
+
|
|
11922
|
+
constructor(map?: { [key: string]: any }) {
|
|
11923
|
+
super(map);
|
|
11924
|
+
}
|
|
11925
|
+
}
|
|
11926
|
+
|
|
11927
|
+
export class ImportContactFlowResponseBody extends $tea.Model {
|
|
11928
|
+
/**
|
|
11929
|
+
* @example
|
|
11930
|
+
* OK
|
|
11931
|
+
*/
|
|
11932
|
+
code?: string;
|
|
11933
|
+
/**
|
|
11934
|
+
* @example
|
|
11935
|
+
* 200
|
|
11936
|
+
*/
|
|
11937
|
+
httpStatusCode?: number;
|
|
11938
|
+
message?: string;
|
|
11939
|
+
params?: string[];
|
|
11940
|
+
/**
|
|
11941
|
+
* @example
|
|
11942
|
+
* 27DD30C4-CAE2-481A-97CC-D3C54625341D
|
|
11943
|
+
*/
|
|
11944
|
+
requestId?: string;
|
|
11945
|
+
static names(): { [key: string]: string } {
|
|
11946
|
+
return {
|
|
11947
|
+
code: 'Code',
|
|
11948
|
+
httpStatusCode: 'HttpStatusCode',
|
|
11949
|
+
message: 'Message',
|
|
11950
|
+
params: 'Params',
|
|
11951
|
+
requestId: 'RequestId',
|
|
11952
|
+
};
|
|
11953
|
+
}
|
|
11954
|
+
|
|
11955
|
+
static types(): { [key: string]: any } {
|
|
11956
|
+
return {
|
|
11957
|
+
code: 'string',
|
|
11958
|
+
httpStatusCode: 'number',
|
|
11959
|
+
message: 'string',
|
|
11960
|
+
params: { 'type': 'array', 'itemType': 'string' },
|
|
11961
|
+
requestId: 'string',
|
|
11962
|
+
};
|
|
11963
|
+
}
|
|
11964
|
+
|
|
11965
|
+
constructor(map?: { [key: string]: any }) {
|
|
11966
|
+
super(map);
|
|
11967
|
+
}
|
|
11968
|
+
}
|
|
11969
|
+
|
|
11970
|
+
export class ImportContactFlowResponse extends $tea.Model {
|
|
11971
|
+
headers?: { [key: string]: string };
|
|
11972
|
+
statusCode?: number;
|
|
11973
|
+
body?: ImportContactFlowResponseBody;
|
|
11974
|
+
static names(): { [key: string]: string } {
|
|
11975
|
+
return {
|
|
11976
|
+
headers: 'headers',
|
|
11977
|
+
statusCode: 'statusCode',
|
|
11978
|
+
body: 'body',
|
|
11979
|
+
};
|
|
11980
|
+
}
|
|
11981
|
+
|
|
11982
|
+
static types(): { [key: string]: any } {
|
|
11983
|
+
return {
|
|
11984
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
11985
|
+
statusCode: 'number',
|
|
11986
|
+
body: ImportContactFlowResponseBody,
|
|
11987
|
+
};
|
|
11988
|
+
}
|
|
11989
|
+
|
|
11990
|
+
constructor(map?: { [key: string]: any }) {
|
|
11991
|
+
super(map);
|
|
11992
|
+
}
|
|
11993
|
+
}
|
|
11994
|
+
|
|
11766
11995
|
export class ImportCorpNumbersRequest extends $tea.Model {
|
|
11767
11996
|
city?: string;
|
|
11768
11997
|
corpName?: string;
|
|
@@ -58809,6 +59038,52 @@ export default class Client extends OpenApi {
|
|
|
58809
59038
|
return await this.endConferenceWithOptions(request, runtime);
|
|
58810
59039
|
}
|
|
58811
59040
|
|
|
59041
|
+
/**
|
|
59042
|
+
* @param request - ExportContactFlowRequest
|
|
59043
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
59044
|
+
* @returns ExportContactFlowResponse
|
|
59045
|
+
*/
|
|
59046
|
+
async exportContactFlowWithOptions(request: ExportContactFlowRequest, runtime: $Util.RuntimeOptions): Promise<ExportContactFlowResponse> {
|
|
59047
|
+
Util.validateModel(request);
|
|
59048
|
+
let body : {[key: string ]: any} = { };
|
|
59049
|
+
if (!Util.isUnset(request.flowId)) {
|
|
59050
|
+
body["FlowId"] = request.flowId;
|
|
59051
|
+
}
|
|
59052
|
+
|
|
59053
|
+
if (!Util.isUnset(request.instanceId)) {
|
|
59054
|
+
body["InstanceId"] = request.instanceId;
|
|
59055
|
+
}
|
|
59056
|
+
|
|
59057
|
+
if (!Util.isUnset(request.requestId)) {
|
|
59058
|
+
body["RequestId"] = request.requestId;
|
|
59059
|
+
}
|
|
59060
|
+
|
|
59061
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
59062
|
+
body: OpenApiUtil.parseToMap(body),
|
|
59063
|
+
});
|
|
59064
|
+
let params = new $OpenApi.Params({
|
|
59065
|
+
action: "ExportContactFlow",
|
|
59066
|
+
version: "2020-07-01",
|
|
59067
|
+
protocol: "HTTPS",
|
|
59068
|
+
pathname: "/",
|
|
59069
|
+
method: "POST",
|
|
59070
|
+
authType: "AK",
|
|
59071
|
+
style: "RPC",
|
|
59072
|
+
reqBodyType: "formData",
|
|
59073
|
+
bodyType: "json",
|
|
59074
|
+
});
|
|
59075
|
+
return $tea.cast<ExportContactFlowResponse>(await this.callApi(params, req, runtime), new ExportContactFlowResponse({}));
|
|
59076
|
+
}
|
|
59077
|
+
|
|
59078
|
+
/**
|
|
59079
|
+
* @param request - ExportContactFlowRequest
|
|
59080
|
+
* @returns ExportContactFlowResponse
|
|
59081
|
+
*/
|
|
59082
|
+
async exportContactFlow(request: ExportContactFlowRequest): Promise<ExportContactFlowResponse> {
|
|
59083
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
59084
|
+
return await this.exportContactFlowWithOptions(request, runtime);
|
|
59085
|
+
}
|
|
59086
|
+
|
|
58812
59087
|
/**
|
|
58813
59088
|
* 导出全部呼入号码标签
|
|
58814
59089
|
*
|
|
@@ -60787,6 +61062,52 @@ export default class Client extends OpenApi {
|
|
|
60787
61062
|
return await this.importAdminsWithOptions(request, runtime);
|
|
60788
61063
|
}
|
|
60789
61064
|
|
|
61065
|
+
/**
|
|
61066
|
+
* @param request - ImportContactFlowRequest
|
|
61067
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
61068
|
+
* @returns ImportContactFlowResponse
|
|
61069
|
+
*/
|
|
61070
|
+
async importContactFlowWithOptions(request: ImportContactFlowRequest, runtime: $Util.RuntimeOptions): Promise<ImportContactFlowResponse> {
|
|
61071
|
+
Util.validateModel(request);
|
|
61072
|
+
let body : {[key: string ]: any} = { };
|
|
61073
|
+
if (!Util.isUnset(request.flowPackageData)) {
|
|
61074
|
+
body["FlowPackageData"] = request.flowPackageData;
|
|
61075
|
+
}
|
|
61076
|
+
|
|
61077
|
+
if (!Util.isUnset(request.instanceId)) {
|
|
61078
|
+
body["InstanceId"] = request.instanceId;
|
|
61079
|
+
}
|
|
61080
|
+
|
|
61081
|
+
if (!Util.isUnset(request.requestId)) {
|
|
61082
|
+
body["RequestId"] = request.requestId;
|
|
61083
|
+
}
|
|
61084
|
+
|
|
61085
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
61086
|
+
body: OpenApiUtil.parseToMap(body),
|
|
61087
|
+
});
|
|
61088
|
+
let params = new $OpenApi.Params({
|
|
61089
|
+
action: "ImportContactFlow",
|
|
61090
|
+
version: "2020-07-01",
|
|
61091
|
+
protocol: "HTTPS",
|
|
61092
|
+
pathname: "/",
|
|
61093
|
+
method: "POST",
|
|
61094
|
+
authType: "AK",
|
|
61095
|
+
style: "RPC",
|
|
61096
|
+
reqBodyType: "formData",
|
|
61097
|
+
bodyType: "json",
|
|
61098
|
+
});
|
|
61099
|
+
return $tea.cast<ImportContactFlowResponse>(await this.callApi(params, req, runtime), new ImportContactFlowResponse({}));
|
|
61100
|
+
}
|
|
61101
|
+
|
|
61102
|
+
/**
|
|
61103
|
+
* @param request - ImportContactFlowRequest
|
|
61104
|
+
* @returns ImportContactFlowResponse
|
|
61105
|
+
*/
|
|
61106
|
+
async importContactFlow(request: ImportContactFlowRequest): Promise<ImportContactFlowResponse> {
|
|
61107
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
61108
|
+
return await this.importContactFlowWithOptions(request, runtime);
|
|
61109
|
+
}
|
|
61110
|
+
|
|
60790
61111
|
/**
|
|
60791
61112
|
* @param request - ImportCorpNumbersRequest
|
|
60792
61113
|
* @param runtime - runtime options for this request RuntimeOptions
|