@antchain/riskplus 1.16.12 → 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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@antchain/riskplus",
3
- "version": "1.16.12",
3
+ "version": "1.16.21",
4
4
  "description": "",
5
5
  "main": "dist/client.js",
6
6
  "scripts": {
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
  // 有效任务总数量
@@ -6424,6 +6469,8 @@ export class QueryDubbridgeCreditStatusResponse extends $tea.Model {
6424
6469
  fundCode?: string;
6425
6470
  // 冷静期结束日期
6426
6471
  coolingPeriod?: string;
6472
+ // 资金源编码
6473
+ loanInstCode?: string;
6427
6474
  static names(): { [key: string]: string } {
6428
6475
  return {
6429
6476
  reqMsgId: 'req_msg_id',
@@ -6439,6 +6486,7 @@ export class QueryDubbridgeCreditStatusResponse extends $tea.Model {
6439
6486
  applyNo: 'apply_no',
6440
6487
  fundCode: 'fund_code',
6441
6488
  coolingPeriod: 'cooling_period',
6489
+ loanInstCode: 'loan_inst_code',
6442
6490
  };
6443
6491
  }
6444
6492
 
@@ -6457,6 +6505,7 @@ export class QueryDubbridgeCreditStatusResponse extends $tea.Model {
6457
6505
  applyNo: 'string',
6458
6506
  fundCode: 'string',
6459
6507
  coolingPeriod: 'string',
6508
+ loanInstCode: 'string',
6460
6509
  };
6461
6510
  }
6462
6511
 
@@ -7973,6 +8022,8 @@ export class ApplyDubbridgeUsecreditRequest extends $tea.Model {
7973
8022
  customType?: string;
7974
8023
  // 风险数据对象(json字符串)
7975
8024
  riskData?: string;
8025
+ // 资金源编码
8026
+ loanInstCode?: string;
7976
8027
  static names(): { [key: string]: string } {
7977
8028
  return {
7978
8029
  authToken: 'auth_token',
@@ -7988,6 +8039,7 @@ export class ApplyDubbridgeUsecreditRequest extends $tea.Model {
7988
8039
  channelType: 'channel_type',
7989
8040
  customType: 'custom_type',
7990
8041
  riskData: 'risk_data',
8042
+ loanInstCode: 'loan_inst_code',
7991
8043
  };
7992
8044
  }
7993
8045
 
@@ -8006,6 +8058,7 @@ export class ApplyDubbridgeUsecreditRequest extends $tea.Model {
8006
8058
  channelType: 'string',
8007
8059
  customType: 'string',
8008
8060
  riskData: 'string',
8061
+ loanInstCode: 'string',
8009
8062
  };
8010
8063
  }
8011
8064
 
@@ -10088,6 +10141,67 @@ export class PushRbbCustomerCompanyinfoResponse extends $tea.Model {
10088
10141
  }
10089
10142
  }
10090
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
+
10091
10205
  export class QueryRpgwSignUrlRequest extends $tea.Model {
10092
10206
  // OAuth模式下的授权token
10093
10207
  authToken?: string;
@@ -14388,6 +14502,85 @@ export class QueryUmktRobotcallStatisticinfoResponse extends $tea.Model {
14388
14502
  }
14389
14503
  }
14390
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
+
14391
14584
  export class CreateAntcloudGatewayxFileUploadRequest extends $tea.Model {
14392
14585
  // OAuth模式下的授权token
14393
14586
  authToken?: string;
@@ -14589,7 +14782,7 @@ export default class Client {
14589
14782
  req_msg_id: AntchainUtil.getNonce(),
14590
14783
  access_key: this._accessKeyId,
14591
14784
  base_sdk_version: "TeaSDK-2.0",
14592
- sdk_version: "1.16.12",
14785
+ sdk_version: "1.16.21",
14593
14786
  _prod_code: "RISKPLUS",
14594
14787
  _prod_channel: "undefined",
14595
14788
  };
@@ -16239,6 +16432,46 @@ export default class Client {
16239
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({}));
16240
16433
  }
16241
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
+
16242
16475
  /**
16243
16476
  * Description: 获取签约接口
16244
16477
  * Summary: 获取签约接口
@@ -17269,6 +17502,25 @@ export default class Client {
17269
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({}));
17270
17503
  }
17271
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
+
17272
17524
  /**
17273
17525
  * Description: 创建HTTP PUT提交的文件上传
17274
17526
  * Summary: 文件上传创建