@antchain/riskplus 1.16.13 → 1.16.21
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 +106 -0
- package/dist/client.js +179 -1
- package/dist/client.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +245 -1
package/package.json
CHANGED
package/src/client.ts
CHANGED
|
@@ -2031,6 +2031,51 @@ export class RtopCrowdRiskSummaryResp extends $tea.Model {
|
|
|
2031
2031
|
}
|
|
2032
2032
|
}
|
|
2033
2033
|
|
|
2034
|
+
// 营销盾租户触达策略计划信息
|
|
2035
|
+
export class TenantActionTouchPlanInfo extends $tea.Model {
|
|
2036
|
+
// 场景策略id
|
|
2037
|
+
sceneStrategyId: number;
|
|
2038
|
+
// 营销名称
|
|
2039
|
+
sceneStrategyName: string;
|
|
2040
|
+
// 营销状态
|
|
2041
|
+
sceneStrategyStatus: string;
|
|
2042
|
+
// 渠道id
|
|
2043
|
+
actionDriverCode: number;
|
|
2044
|
+
// 渠道类型
|
|
2045
|
+
channelCode: string;
|
|
2046
|
+
// 创建时间
|
|
2047
|
+
gmtCreate: string;
|
|
2048
|
+
// 修改时间
|
|
2049
|
+
gmtModified: string;
|
|
2050
|
+
static names(): { [key: string]: string } {
|
|
2051
|
+
return {
|
|
2052
|
+
sceneStrategyId: 'scene_strategy_id',
|
|
2053
|
+
sceneStrategyName: 'scene_strategy_name',
|
|
2054
|
+
sceneStrategyStatus: 'scene_strategy_status',
|
|
2055
|
+
actionDriverCode: 'action_driver_code',
|
|
2056
|
+
channelCode: 'channel_code',
|
|
2057
|
+
gmtCreate: 'gmt_create',
|
|
2058
|
+
gmtModified: 'gmt_modified',
|
|
2059
|
+
};
|
|
2060
|
+
}
|
|
2061
|
+
|
|
2062
|
+
static types(): { [key: string]: any } {
|
|
2063
|
+
return {
|
|
2064
|
+
sceneStrategyId: 'number',
|
|
2065
|
+
sceneStrategyName: 'string',
|
|
2066
|
+
sceneStrategyStatus: 'string',
|
|
2067
|
+
actionDriverCode: 'number',
|
|
2068
|
+
channelCode: 'string',
|
|
2069
|
+
gmtCreate: 'string',
|
|
2070
|
+
gmtModified: 'string',
|
|
2071
|
+
};
|
|
2072
|
+
}
|
|
2073
|
+
|
|
2074
|
+
constructor(map?: { [key: string]: any }) {
|
|
2075
|
+
super(map);
|
|
2076
|
+
}
|
|
2077
|
+
}
|
|
2078
|
+
|
|
2034
2079
|
// 回执统计结果
|
|
2035
2080
|
export class StatisticResult extends $tea.Model {
|
|
2036
2081
|
// 有效任务总数量
|
|
@@ -10096,6 +10141,67 @@ export class PushRbbCustomerCompanyinfoResponse extends $tea.Model {
|
|
|
10096
10141
|
}
|
|
10097
10142
|
}
|
|
10098
10143
|
|
|
10144
|
+
export class UploadRbbFileAmapRequest extends $tea.Model {
|
|
10145
|
+
// OAuth模式下的授权token
|
|
10146
|
+
authToken?: string;
|
|
10147
|
+
productInstanceId?: string;
|
|
10148
|
+
// 文件id
|
|
10149
|
+
fileObject?: Readable;
|
|
10150
|
+
fileObjectName?: string;
|
|
10151
|
+
fileId: string;
|
|
10152
|
+
static names(): { [key: string]: string } {
|
|
10153
|
+
return {
|
|
10154
|
+
authToken: 'auth_token',
|
|
10155
|
+
productInstanceId: 'product_instance_id',
|
|
10156
|
+
fileObject: 'fileObject',
|
|
10157
|
+
fileObjectName: 'fileObjectName',
|
|
10158
|
+
fileId: 'file_id',
|
|
10159
|
+
};
|
|
10160
|
+
}
|
|
10161
|
+
|
|
10162
|
+
static types(): { [key: string]: any } {
|
|
10163
|
+
return {
|
|
10164
|
+
authToken: 'string',
|
|
10165
|
+
productInstanceId: 'string',
|
|
10166
|
+
fileObject: 'Readable',
|
|
10167
|
+
fileObjectName: 'string',
|
|
10168
|
+
fileId: 'string',
|
|
10169
|
+
};
|
|
10170
|
+
}
|
|
10171
|
+
|
|
10172
|
+
constructor(map?: { [key: string]: any }) {
|
|
10173
|
+
super(map);
|
|
10174
|
+
}
|
|
10175
|
+
}
|
|
10176
|
+
|
|
10177
|
+
export class UploadRbbFileAmapResponse extends $tea.Model {
|
|
10178
|
+
// 请求唯一ID,用于链路跟踪和问题排查
|
|
10179
|
+
reqMsgId?: string;
|
|
10180
|
+
// 结果码,一般OK表示调用成功
|
|
10181
|
+
resultCode?: string;
|
|
10182
|
+
// 异常信息的文本描述
|
|
10183
|
+
resultMsg?: string;
|
|
10184
|
+
static names(): { [key: string]: string } {
|
|
10185
|
+
return {
|
|
10186
|
+
reqMsgId: 'req_msg_id',
|
|
10187
|
+
resultCode: 'result_code',
|
|
10188
|
+
resultMsg: 'result_msg',
|
|
10189
|
+
};
|
|
10190
|
+
}
|
|
10191
|
+
|
|
10192
|
+
static types(): { [key: string]: any } {
|
|
10193
|
+
return {
|
|
10194
|
+
reqMsgId: 'string',
|
|
10195
|
+
resultCode: 'string',
|
|
10196
|
+
resultMsg: 'string',
|
|
10197
|
+
};
|
|
10198
|
+
}
|
|
10199
|
+
|
|
10200
|
+
constructor(map?: { [key: string]: any }) {
|
|
10201
|
+
super(map);
|
|
10202
|
+
}
|
|
10203
|
+
}
|
|
10204
|
+
|
|
10099
10205
|
export class QueryRpgwSignUrlRequest extends $tea.Model {
|
|
10100
10206
|
// OAuth模式下的授权token
|
|
10101
10207
|
authToken?: string;
|
|
@@ -14396,6 +14502,85 @@ export class QueryUmktRobotcallStatisticinfoResponse extends $tea.Model {
|
|
|
14396
14502
|
}
|
|
14397
14503
|
}
|
|
14398
14504
|
|
|
14505
|
+
export class QueryUmktTenantStrategyinfoRequest extends $tea.Model {
|
|
14506
|
+
// OAuth模式下的授权token
|
|
14507
|
+
authToken?: string;
|
|
14508
|
+
productInstanceId?: string;
|
|
14509
|
+
// 页码
|
|
14510
|
+
pageNum?: number;
|
|
14511
|
+
// 页容量
|
|
14512
|
+
pageSize?: number;
|
|
14513
|
+
// 渠道code
|
|
14514
|
+
channelType: string;
|
|
14515
|
+
static names(): { [key: string]: string } {
|
|
14516
|
+
return {
|
|
14517
|
+
authToken: 'auth_token',
|
|
14518
|
+
productInstanceId: 'product_instance_id',
|
|
14519
|
+
pageNum: 'page_num',
|
|
14520
|
+
pageSize: 'page_size',
|
|
14521
|
+
channelType: 'channel_type',
|
|
14522
|
+
};
|
|
14523
|
+
}
|
|
14524
|
+
|
|
14525
|
+
static types(): { [key: string]: any } {
|
|
14526
|
+
return {
|
|
14527
|
+
authToken: 'string',
|
|
14528
|
+
productInstanceId: 'string',
|
|
14529
|
+
pageNum: 'number',
|
|
14530
|
+
pageSize: 'number',
|
|
14531
|
+
channelType: 'string',
|
|
14532
|
+
};
|
|
14533
|
+
}
|
|
14534
|
+
|
|
14535
|
+
constructor(map?: { [key: string]: any }) {
|
|
14536
|
+
super(map);
|
|
14537
|
+
}
|
|
14538
|
+
}
|
|
14539
|
+
|
|
14540
|
+
export class QueryUmktTenantStrategyinfoResponse extends $tea.Model {
|
|
14541
|
+
// 请求唯一ID,用于链路跟踪和问题排查
|
|
14542
|
+
reqMsgId?: string;
|
|
14543
|
+
// 结果码,一般OK表示调用成功
|
|
14544
|
+
resultCode?: string;
|
|
14545
|
+
// 异常信息的文本描述
|
|
14546
|
+
resultMsg?: string;
|
|
14547
|
+
// 租户策略信息列表
|
|
14548
|
+
queryResult?: TenantActionTouchPlanInfo[];
|
|
14549
|
+
// 页码
|
|
14550
|
+
pageNum?: number;
|
|
14551
|
+
// 页容量
|
|
14552
|
+
pageSize?: number;
|
|
14553
|
+
// 总量
|
|
14554
|
+
totalCount?: number;
|
|
14555
|
+
static names(): { [key: string]: string } {
|
|
14556
|
+
return {
|
|
14557
|
+
reqMsgId: 'req_msg_id',
|
|
14558
|
+
resultCode: 'result_code',
|
|
14559
|
+
resultMsg: 'result_msg',
|
|
14560
|
+
queryResult: 'query_result',
|
|
14561
|
+
pageNum: 'page_num',
|
|
14562
|
+
pageSize: 'page_size',
|
|
14563
|
+
totalCount: 'total_count',
|
|
14564
|
+
};
|
|
14565
|
+
}
|
|
14566
|
+
|
|
14567
|
+
static types(): { [key: string]: any } {
|
|
14568
|
+
return {
|
|
14569
|
+
reqMsgId: 'string',
|
|
14570
|
+
resultCode: 'string',
|
|
14571
|
+
resultMsg: 'string',
|
|
14572
|
+
queryResult: { 'type': 'array', 'itemType': TenantActionTouchPlanInfo },
|
|
14573
|
+
pageNum: 'number',
|
|
14574
|
+
pageSize: 'number',
|
|
14575
|
+
totalCount: 'number',
|
|
14576
|
+
};
|
|
14577
|
+
}
|
|
14578
|
+
|
|
14579
|
+
constructor(map?: { [key: string]: any }) {
|
|
14580
|
+
super(map);
|
|
14581
|
+
}
|
|
14582
|
+
}
|
|
14583
|
+
|
|
14399
14584
|
export class CreateAntcloudGatewayxFileUploadRequest extends $tea.Model {
|
|
14400
14585
|
// OAuth模式下的授权token
|
|
14401
14586
|
authToken?: string;
|
|
@@ -14597,7 +14782,7 @@ export default class Client {
|
|
|
14597
14782
|
req_msg_id: AntchainUtil.getNonce(),
|
|
14598
14783
|
access_key: this._accessKeyId,
|
|
14599
14784
|
base_sdk_version: "TeaSDK-2.0",
|
|
14600
|
-
sdk_version: "1.16.
|
|
14785
|
+
sdk_version: "1.16.21",
|
|
14601
14786
|
_prod_code: "RISKPLUS",
|
|
14602
14787
|
_prod_channel: "undefined",
|
|
14603
14788
|
};
|
|
@@ -16247,6 +16432,46 @@ export default class Client {
|
|
|
16247
16432
|
return $tea.cast<PushRbbCustomerCompanyinfoResponse>(await this.doRequest("1.0", "riskplus.rbb.customer.companyinfo.push", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new PushRbbCustomerCompanyinfoResponse({}));
|
|
16248
16433
|
}
|
|
16249
16434
|
|
|
16435
|
+
/**
|
|
16436
|
+
* Description: 企管盾给高德的文件上传,用于小微店铺分
|
|
16437
|
+
* Summary: 企管盾给高德的文件上传,用于小微店铺分
|
|
16438
|
+
*/
|
|
16439
|
+
async uploadRbbFileAmap(request: UploadRbbFileAmapRequest): Promise<UploadRbbFileAmapResponse> {
|
|
16440
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
16441
|
+
let headers : {[key: string ]: string} = { };
|
|
16442
|
+
return await this.uploadRbbFileAmapEx(request, headers, runtime);
|
|
16443
|
+
}
|
|
16444
|
+
|
|
16445
|
+
/**
|
|
16446
|
+
* Description: 企管盾给高德的文件上传,用于小微店铺分
|
|
16447
|
+
* Summary: 企管盾给高德的文件上传,用于小微店铺分
|
|
16448
|
+
*/
|
|
16449
|
+
async uploadRbbFileAmapEx(request: UploadRbbFileAmapRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<UploadRbbFileAmapResponse> {
|
|
16450
|
+
if (!Util.isUnset(request.fileObject)) {
|
|
16451
|
+
let uploadReq = new CreateAntcloudGatewayxFileUploadRequest({
|
|
16452
|
+
authToken: request.authToken,
|
|
16453
|
+
apiCode: "riskplus.rbb.file.amap.upload",
|
|
16454
|
+
fileName: request.fileObjectName,
|
|
16455
|
+
});
|
|
16456
|
+
let uploadResp = await this.createAntcloudGatewayxFileUploadEx(uploadReq, headers, runtime);
|
|
16457
|
+
if (!AntchainUtil.isSuccess(uploadResp.resultCode, "ok")) {
|
|
16458
|
+
let uploadRbbFileAmapResponse = new UploadRbbFileAmapResponse({
|
|
16459
|
+
reqMsgId: uploadResp.reqMsgId,
|
|
16460
|
+
resultCode: uploadResp.resultCode,
|
|
16461
|
+
resultMsg: uploadResp.resultMsg,
|
|
16462
|
+
});
|
|
16463
|
+
return uploadRbbFileAmapResponse;
|
|
16464
|
+
}
|
|
16465
|
+
|
|
16466
|
+
let uploadHeaders = AntchainUtil.parseUploadHeaders(uploadResp.uploadHeaders);
|
|
16467
|
+
await AntchainUtil.putObject(request.fileObject, uploadHeaders, uploadResp.uploadUrl);
|
|
16468
|
+
request.fileId = uploadResp.fileId;
|
|
16469
|
+
}
|
|
16470
|
+
|
|
16471
|
+
Util.validateModel(request);
|
|
16472
|
+
return $tea.cast<UploadRbbFileAmapResponse>(await this.doRequest("1.0", "riskplus.rbb.file.amap.upload", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new UploadRbbFileAmapResponse({}));
|
|
16473
|
+
}
|
|
16474
|
+
|
|
16250
16475
|
/**
|
|
16251
16476
|
* Description: 获取签约接口
|
|
16252
16477
|
* Summary: 获取签约接口
|
|
@@ -17277,6 +17502,25 @@ export default class Client {
|
|
|
17277
17502
|
return $tea.cast<QueryUmktRobotcallStatisticinfoResponse>(await this.doRequest("1.0", "riskplus.umkt.robotcall.statisticinfo.query", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new QueryUmktRobotcallStatisticinfoResponse({}));
|
|
17278
17503
|
}
|
|
17279
17504
|
|
|
17505
|
+
/**
|
|
17506
|
+
* Description: 营销盾租户场景信息查询
|
|
17507
|
+
* Summary: 营销盾租户场景信息查询
|
|
17508
|
+
*/
|
|
17509
|
+
async queryUmktTenantStrategyinfo(request: QueryUmktTenantStrategyinfoRequest): Promise<QueryUmktTenantStrategyinfoResponse> {
|
|
17510
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
17511
|
+
let headers : {[key: string ]: string} = { };
|
|
17512
|
+
return await this.queryUmktTenantStrategyinfoEx(request, headers, runtime);
|
|
17513
|
+
}
|
|
17514
|
+
|
|
17515
|
+
/**
|
|
17516
|
+
* Description: 营销盾租户场景信息查询
|
|
17517
|
+
* Summary: 营销盾租户场景信息查询
|
|
17518
|
+
*/
|
|
17519
|
+
async queryUmktTenantStrategyinfoEx(request: QueryUmktTenantStrategyinfoRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<QueryUmktTenantStrategyinfoResponse> {
|
|
17520
|
+
Util.validateModel(request);
|
|
17521
|
+
return $tea.cast<QueryUmktTenantStrategyinfoResponse>(await this.doRequest("1.0", "riskplus.umkt.tenant.strategyinfo.query", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new QueryUmktTenantStrategyinfoResponse({}));
|
|
17522
|
+
}
|
|
17523
|
+
|
|
17280
17524
|
/**
|
|
17281
17525
|
* Description: 创建HTTP PUT提交的文件上传
|
|
17282
17526
|
* Summary: 文件上传创建
|