@alicloud/ccc20200701 2.17.0 → 2.18.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 +59 -0
- package/dist/client.js +132 -14
- package/dist/client.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +145 -0
package/package.json
CHANGED
package/src/client.ts
CHANGED
|
@@ -7093,6 +7093,93 @@ export class ImportAdminsResponse extends $tea.Model {
|
|
|
7093
7093
|
}
|
|
7094
7094
|
}
|
|
7095
7095
|
|
|
7096
|
+
export class ImportCorpNumbersRequest extends $tea.Model {
|
|
7097
|
+
city?: string;
|
|
7098
|
+
corpName?: string;
|
|
7099
|
+
numberList?: string;
|
|
7100
|
+
provider?: string;
|
|
7101
|
+
province?: string;
|
|
7102
|
+
tagList?: string;
|
|
7103
|
+
static names(): { [key: string]: string } {
|
|
7104
|
+
return {
|
|
7105
|
+
city: 'City',
|
|
7106
|
+
corpName: 'CorpName',
|
|
7107
|
+
numberList: 'NumberList',
|
|
7108
|
+
provider: 'Provider',
|
|
7109
|
+
province: 'Province',
|
|
7110
|
+
tagList: 'TagList',
|
|
7111
|
+
};
|
|
7112
|
+
}
|
|
7113
|
+
|
|
7114
|
+
static types(): { [key: string]: any } {
|
|
7115
|
+
return {
|
|
7116
|
+
city: 'string',
|
|
7117
|
+
corpName: 'string',
|
|
7118
|
+
numberList: 'string',
|
|
7119
|
+
provider: 'string',
|
|
7120
|
+
province: 'string',
|
|
7121
|
+
tagList: 'string',
|
|
7122
|
+
};
|
|
7123
|
+
}
|
|
7124
|
+
|
|
7125
|
+
constructor(map?: { [key: string]: any }) {
|
|
7126
|
+
super(map);
|
|
7127
|
+
}
|
|
7128
|
+
}
|
|
7129
|
+
|
|
7130
|
+
export class ImportCorpNumbersResponseBody extends $tea.Model {
|
|
7131
|
+
code?: string;
|
|
7132
|
+
httpStatusCode?: number;
|
|
7133
|
+
message?: string;
|
|
7134
|
+
requestId?: string;
|
|
7135
|
+
static names(): { [key: string]: string } {
|
|
7136
|
+
return {
|
|
7137
|
+
code: 'Code',
|
|
7138
|
+
httpStatusCode: 'HttpStatusCode',
|
|
7139
|
+
message: 'Message',
|
|
7140
|
+
requestId: 'RequestId',
|
|
7141
|
+
};
|
|
7142
|
+
}
|
|
7143
|
+
|
|
7144
|
+
static types(): { [key: string]: any } {
|
|
7145
|
+
return {
|
|
7146
|
+
code: 'string',
|
|
7147
|
+
httpStatusCode: 'number',
|
|
7148
|
+
message: 'string',
|
|
7149
|
+
requestId: 'string',
|
|
7150
|
+
};
|
|
7151
|
+
}
|
|
7152
|
+
|
|
7153
|
+
constructor(map?: { [key: string]: any }) {
|
|
7154
|
+
super(map);
|
|
7155
|
+
}
|
|
7156
|
+
}
|
|
7157
|
+
|
|
7158
|
+
export class ImportCorpNumbersResponse extends $tea.Model {
|
|
7159
|
+
headers?: { [key: string]: string };
|
|
7160
|
+
statusCode?: number;
|
|
7161
|
+
body?: ImportCorpNumbersResponseBody;
|
|
7162
|
+
static names(): { [key: string]: string } {
|
|
7163
|
+
return {
|
|
7164
|
+
headers: 'headers',
|
|
7165
|
+
statusCode: 'statusCode',
|
|
7166
|
+
body: 'body',
|
|
7167
|
+
};
|
|
7168
|
+
}
|
|
7169
|
+
|
|
7170
|
+
static types(): { [key: string]: any } {
|
|
7171
|
+
return {
|
|
7172
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
7173
|
+
statusCode: 'number',
|
|
7174
|
+
body: ImportCorpNumbersResponseBody,
|
|
7175
|
+
};
|
|
7176
|
+
}
|
|
7177
|
+
|
|
7178
|
+
constructor(map?: { [key: string]: any }) {
|
|
7179
|
+
super(map);
|
|
7180
|
+
}
|
|
7181
|
+
}
|
|
7182
|
+
|
|
7096
7183
|
export class ImportCustomCallTaggingRequest extends $tea.Model {
|
|
7097
7184
|
filePath?: string;
|
|
7098
7185
|
instanceId?: string;
|
|
@@ -35833,6 +35920,64 @@ export default class Client extends OpenApi {
|
|
|
35833
35920
|
return await this.importAdminsWithOptions(request, runtime);
|
|
35834
35921
|
}
|
|
35835
35922
|
|
|
35923
|
+
/**
|
|
35924
|
+
* @param request ImportCorpNumbersRequest
|
|
35925
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
35926
|
+
* @return ImportCorpNumbersResponse
|
|
35927
|
+
*/
|
|
35928
|
+
async importCorpNumbersWithOptions(request: ImportCorpNumbersRequest, runtime: $Util.RuntimeOptions): Promise<ImportCorpNumbersResponse> {
|
|
35929
|
+
Util.validateModel(request);
|
|
35930
|
+
let query = { };
|
|
35931
|
+
if (!Util.isUnset(request.city)) {
|
|
35932
|
+
query["City"] = request.city;
|
|
35933
|
+
}
|
|
35934
|
+
|
|
35935
|
+
if (!Util.isUnset(request.corpName)) {
|
|
35936
|
+
query["CorpName"] = request.corpName;
|
|
35937
|
+
}
|
|
35938
|
+
|
|
35939
|
+
if (!Util.isUnset(request.numberList)) {
|
|
35940
|
+
query["NumberList"] = request.numberList;
|
|
35941
|
+
}
|
|
35942
|
+
|
|
35943
|
+
if (!Util.isUnset(request.provider)) {
|
|
35944
|
+
query["Provider"] = request.provider;
|
|
35945
|
+
}
|
|
35946
|
+
|
|
35947
|
+
if (!Util.isUnset(request.province)) {
|
|
35948
|
+
query["Province"] = request.province;
|
|
35949
|
+
}
|
|
35950
|
+
|
|
35951
|
+
if (!Util.isUnset(request.tagList)) {
|
|
35952
|
+
query["TagList"] = request.tagList;
|
|
35953
|
+
}
|
|
35954
|
+
|
|
35955
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
35956
|
+
query: OpenApiUtil.query(query),
|
|
35957
|
+
});
|
|
35958
|
+
let params = new $OpenApi.Params({
|
|
35959
|
+
action: "ImportCorpNumbers",
|
|
35960
|
+
version: "2020-07-01",
|
|
35961
|
+
protocol: "HTTPS",
|
|
35962
|
+
pathname: "/",
|
|
35963
|
+
method: "POST",
|
|
35964
|
+
authType: "AK",
|
|
35965
|
+
style: "RPC",
|
|
35966
|
+
reqBodyType: "formData",
|
|
35967
|
+
bodyType: "json",
|
|
35968
|
+
});
|
|
35969
|
+
return $tea.cast<ImportCorpNumbersResponse>(await this.callApi(params, req, runtime), new ImportCorpNumbersResponse({}));
|
|
35970
|
+
}
|
|
35971
|
+
|
|
35972
|
+
/**
|
|
35973
|
+
* @param request ImportCorpNumbersRequest
|
|
35974
|
+
* @return ImportCorpNumbersResponse
|
|
35975
|
+
*/
|
|
35976
|
+
async importCorpNumbers(request: ImportCorpNumbersRequest): Promise<ImportCorpNumbersResponse> {
|
|
35977
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
35978
|
+
return await this.importCorpNumbersWithOptions(request, runtime);
|
|
35979
|
+
}
|
|
35980
|
+
|
|
35836
35981
|
/**
|
|
35837
35982
|
* @deprecated OpenAPI ImportCustomCallTagging is deprecated, please use CCC::2020-07-01::ImportCustomCallTaggings instead.
|
|
35838
35983
|
*
|