@antchain/riskplus 1.16.13 → 1.16.22
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
|
@@ -3742,6 +3742,51 @@ export class CustomStatus extends $tea.Model {
|
|
|
3742
3742
|
}
|
|
3743
3743
|
}
|
|
3744
3744
|
|
|
3745
|
+
// 营销盾租户触达策略计划信息
|
|
3746
|
+
export class TenantActionPlanInfo extends $tea.Model {
|
|
3747
|
+
// 场景策略id
|
|
3748
|
+
sceneStrategyId: number;
|
|
3749
|
+
// 营销名称
|
|
3750
|
+
sceneStrategyName: string;
|
|
3751
|
+
// 营销状态
|
|
3752
|
+
sceneStrategyStatus: string;
|
|
3753
|
+
// 渠道id
|
|
3754
|
+
actionDriverCode: number;
|
|
3755
|
+
// 渠道类型
|
|
3756
|
+
channelCode: string;
|
|
3757
|
+
// 创建时间
|
|
3758
|
+
gmtCreate: string;
|
|
3759
|
+
// 修改时间
|
|
3760
|
+
gmtModified: string;
|
|
3761
|
+
static names(): { [key: string]: string } {
|
|
3762
|
+
return {
|
|
3763
|
+
sceneStrategyId: 'scene_strategy_id',
|
|
3764
|
+
sceneStrategyName: 'scene_strategy_name',
|
|
3765
|
+
sceneStrategyStatus: 'scene_strategy_status',
|
|
3766
|
+
actionDriverCode: 'action_driver_code',
|
|
3767
|
+
channelCode: 'channel_code',
|
|
3768
|
+
gmtCreate: 'gmt_create',
|
|
3769
|
+
gmtModified: 'gmt_modified',
|
|
3770
|
+
};
|
|
3771
|
+
}
|
|
3772
|
+
|
|
3773
|
+
static types(): { [key: string]: any } {
|
|
3774
|
+
return {
|
|
3775
|
+
sceneStrategyId: 'number',
|
|
3776
|
+
sceneStrategyName: 'string',
|
|
3777
|
+
sceneStrategyStatus: 'string',
|
|
3778
|
+
actionDriverCode: 'number',
|
|
3779
|
+
channelCode: 'string',
|
|
3780
|
+
gmtCreate: 'string',
|
|
3781
|
+
gmtModified: 'string',
|
|
3782
|
+
};
|
|
3783
|
+
}
|
|
3784
|
+
|
|
3785
|
+
constructor(map?: { [key: string]: any }) {
|
|
3786
|
+
super(map);
|
|
3787
|
+
}
|
|
3788
|
+
}
|
|
3789
|
+
|
|
3745
3790
|
// 键值对
|
|
3746
3791
|
export class XNameValuePair extends $tea.Model {
|
|
3747
3792
|
// 键名
|
|
@@ -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 QueryUmktTenantActionplaninfoRequest 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 QueryUmktTenantActionplaninfoResponse extends $tea.Model {
|
|
14541
|
+
// 请求唯一ID,用于链路跟踪和问题排查
|
|
14542
|
+
reqMsgId?: string;
|
|
14543
|
+
// 结果码,一般OK表示调用成功
|
|
14544
|
+
resultCode?: string;
|
|
14545
|
+
// 异常信息的文本描述
|
|
14546
|
+
resultMsg?: string;
|
|
14547
|
+
// 租户策略信息列表
|
|
14548
|
+
queryResult?: TenantActionPlanInfo[];
|
|
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': TenantActionPlanInfo },
|
|
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.22",
|
|
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 queryUmktTenantActionplaninfo(request: QueryUmktTenantActionplaninfoRequest): Promise<QueryUmktTenantActionplaninfoResponse> {
|
|
17510
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
17511
|
+
let headers : {[key: string ]: string} = { };
|
|
17512
|
+
return await this.queryUmktTenantActionplaninfoEx(request, headers, runtime);
|
|
17513
|
+
}
|
|
17514
|
+
|
|
17515
|
+
/**
|
|
17516
|
+
* Description: 营销盾租户场景信息查询
|
|
17517
|
+
* Summary: 营销盾租户场景信息查询
|
|
17518
|
+
*/
|
|
17519
|
+
async queryUmktTenantActionplaninfoEx(request: QueryUmktTenantActionplaninfoRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<QueryUmktTenantActionplaninfoResponse> {
|
|
17520
|
+
Util.validateModel(request);
|
|
17521
|
+
return $tea.cast<QueryUmktTenantActionplaninfoResponse>(await this.doRequest("1.0", "riskplus.umkt.tenant.actionplaninfo.query", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new QueryUmktTenantActionplaninfoResponse({}));
|
|
17522
|
+
}
|
|
17523
|
+
|
|
17280
17524
|
/**
|
|
17281
17525
|
* Description: 创建HTTP PUT提交的文件上传
|
|
17282
17526
|
* Summary: 文件上传创建
|