@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 CHANGED
@@ -1504,6 +1504,24 @@ export declare class CustomStatus extends $tea.Model {
1504
1504
  [key: string]: any;
1505
1505
  });
1506
1506
  }
1507
+ export declare class TenantActionPlanInfo extends $tea.Model {
1508
+ sceneStrategyId: number;
1509
+ sceneStrategyName: string;
1510
+ sceneStrategyStatus: string;
1511
+ actionDriverCode: number;
1512
+ channelCode: string;
1513
+ gmtCreate: string;
1514
+ gmtModified: string;
1515
+ static names(): {
1516
+ [key: string]: string;
1517
+ };
1518
+ static types(): {
1519
+ [key: string]: any;
1520
+ };
1521
+ constructor(map?: {
1522
+ [key: string]: any;
1523
+ });
1524
+ }
1507
1525
  export declare class XNameValuePair extends $tea.Model {
1508
1526
  name: string;
1509
1527
  value: string;
@@ -4250,6 +4268,36 @@ export declare class PushRbbCustomerCompanyinfoResponse extends $tea.Model {
4250
4268
  [key: string]: any;
4251
4269
  });
4252
4270
  }
4271
+ export declare class UploadRbbFileAmapRequest extends $tea.Model {
4272
+ authToken?: string;
4273
+ productInstanceId?: string;
4274
+ fileObject?: Readable;
4275
+ fileObjectName?: string;
4276
+ fileId: string;
4277
+ static names(): {
4278
+ [key: string]: string;
4279
+ };
4280
+ static types(): {
4281
+ [key: string]: any;
4282
+ };
4283
+ constructor(map?: {
4284
+ [key: string]: any;
4285
+ });
4286
+ }
4287
+ export declare class UploadRbbFileAmapResponse extends $tea.Model {
4288
+ reqMsgId?: string;
4289
+ resultCode?: string;
4290
+ resultMsg?: string;
4291
+ static names(): {
4292
+ [key: string]: string;
4293
+ };
4294
+ static types(): {
4295
+ [key: string]: any;
4296
+ };
4297
+ constructor(map?: {
4298
+ [key: string]: any;
4299
+ });
4300
+ }
4253
4301
  export declare class QueryRpgwSignUrlRequest extends $tea.Model {
4254
4302
  authToken?: string;
4255
4303
  productInstanceId?: string;
@@ -6079,6 +6127,40 @@ export declare class QueryUmktRobotcallStatisticinfoResponse extends $tea.Model
6079
6127
  [key: string]: any;
6080
6128
  });
6081
6129
  }
6130
+ export declare class QueryUmktTenantActionplaninfoRequest extends $tea.Model {
6131
+ authToken?: string;
6132
+ productInstanceId?: string;
6133
+ pageNum?: number;
6134
+ pageSize?: number;
6135
+ channelType: string;
6136
+ static names(): {
6137
+ [key: string]: string;
6138
+ };
6139
+ static types(): {
6140
+ [key: string]: any;
6141
+ };
6142
+ constructor(map?: {
6143
+ [key: string]: any;
6144
+ });
6145
+ }
6146
+ export declare class QueryUmktTenantActionplaninfoResponse extends $tea.Model {
6147
+ reqMsgId?: string;
6148
+ resultCode?: string;
6149
+ resultMsg?: string;
6150
+ queryResult?: TenantActionPlanInfo[];
6151
+ pageNum?: number;
6152
+ pageSize?: number;
6153
+ totalCount?: number;
6154
+ static names(): {
6155
+ [key: string]: string;
6156
+ };
6157
+ static types(): {
6158
+ [key: string]: any;
6159
+ };
6160
+ constructor(map?: {
6161
+ [key: string]: any;
6162
+ });
6163
+ }
6082
6164
  export declare class CreateAntcloudGatewayxFileUploadRequest extends $tea.Model {
6083
6165
  authToken?: string;
6084
6166
  apiCode: string;
@@ -7129,6 +7211,18 @@ export default class Client {
7129
7211
  pushRbbCustomerCompanyinfoEx(request: PushRbbCustomerCompanyinfoRequest, headers: {
7130
7212
  [key: string]: string;
7131
7213
  }, runtime: $Util.RuntimeOptions): Promise<PushRbbCustomerCompanyinfoResponse>;
7214
+ /**
7215
+ * Description: 企管盾给高德的文件上传,用于小微店铺分
7216
+ * Summary: 企管盾给高德的文件上传,用于小微店铺分
7217
+ */
7218
+ uploadRbbFileAmap(request: UploadRbbFileAmapRequest): Promise<UploadRbbFileAmapResponse>;
7219
+ /**
7220
+ * Description: 企管盾给高德的文件上传,用于小微店铺分
7221
+ * Summary: 企管盾给高德的文件上传,用于小微店铺分
7222
+ */
7223
+ uploadRbbFileAmapEx(request: UploadRbbFileAmapRequest, headers: {
7224
+ [key: string]: string;
7225
+ }, runtime: $Util.RuntimeOptions): Promise<UploadRbbFileAmapResponse>;
7132
7226
  /**
7133
7227
  * Description: 获取签约接口
7134
7228
  * Summary: 获取签约接口
@@ -7767,6 +7861,18 @@ export default class Client {
7767
7861
  queryUmktRobotcallStatisticinfoEx(request: QueryUmktRobotcallStatisticinfoRequest, headers: {
7768
7862
  [key: string]: string;
7769
7863
  }, runtime: $Util.RuntimeOptions): Promise<QueryUmktRobotcallStatisticinfoResponse>;
7864
+ /**
7865
+ * Description: 营销盾租户场景信息查询
7866
+ * Summary: 营销盾租户场景信息查询
7867
+ */
7868
+ queryUmktTenantActionplaninfo(request: QueryUmktTenantActionplaninfoRequest): Promise<QueryUmktTenantActionplaninfoResponse>;
7869
+ /**
7870
+ * Description: 营销盾租户场景信息查询
7871
+ * Summary: 营销盾租户场景信息查询
7872
+ */
7873
+ queryUmktTenantActionplaninfoEx(request: QueryUmktTenantActionplaninfoRequest, headers: {
7874
+ [key: string]: string;
7875
+ }, runtime: $Util.RuntimeOptions): Promise<QueryUmktTenantActionplaninfoResponse>;
7770
7876
  /**
7771
7877
  * Description: 创建HTTP PUT提交的文件上传
7772
7878
  * Summary: 文件上传创建
package/dist/client.js CHANGED
@@ -2430,6 +2430,35 @@ class CustomStatus extends $tea.Model {
2430
2430
  }
2431
2431
  }
2432
2432
  exports.CustomStatus = CustomStatus;
2433
+ // 营销盾租户触达策略计划信息
2434
+ class TenantActionPlanInfo extends $tea.Model {
2435
+ constructor(map) {
2436
+ super(map);
2437
+ }
2438
+ static names() {
2439
+ return {
2440
+ sceneStrategyId: 'scene_strategy_id',
2441
+ sceneStrategyName: 'scene_strategy_name',
2442
+ sceneStrategyStatus: 'scene_strategy_status',
2443
+ actionDriverCode: 'action_driver_code',
2444
+ channelCode: 'channel_code',
2445
+ gmtCreate: 'gmt_create',
2446
+ gmtModified: 'gmt_modified',
2447
+ };
2448
+ }
2449
+ static types() {
2450
+ return {
2451
+ sceneStrategyId: 'number',
2452
+ sceneStrategyName: 'string',
2453
+ sceneStrategyStatus: 'string',
2454
+ actionDriverCode: 'number',
2455
+ channelCode: 'string',
2456
+ gmtCreate: 'string',
2457
+ gmtModified: 'string',
2458
+ };
2459
+ }
2460
+ }
2461
+ exports.TenantActionPlanInfo = TenantActionPlanInfo;
2433
2462
  // 键值对
2434
2463
  class XNameValuePair extends $tea.Model {
2435
2464
  constructor(map) {
@@ -6619,6 +6648,50 @@ class PushRbbCustomerCompanyinfoResponse extends $tea.Model {
6619
6648
  }
6620
6649
  }
6621
6650
  exports.PushRbbCustomerCompanyinfoResponse = PushRbbCustomerCompanyinfoResponse;
6651
+ class UploadRbbFileAmapRequest extends $tea.Model {
6652
+ constructor(map) {
6653
+ super(map);
6654
+ }
6655
+ static names() {
6656
+ return {
6657
+ authToken: 'auth_token',
6658
+ productInstanceId: 'product_instance_id',
6659
+ fileObject: 'fileObject',
6660
+ fileObjectName: 'fileObjectName',
6661
+ fileId: 'file_id',
6662
+ };
6663
+ }
6664
+ static types() {
6665
+ return {
6666
+ authToken: 'string',
6667
+ productInstanceId: 'string',
6668
+ fileObject: 'Readable',
6669
+ fileObjectName: 'string',
6670
+ fileId: 'string',
6671
+ };
6672
+ }
6673
+ }
6674
+ exports.UploadRbbFileAmapRequest = UploadRbbFileAmapRequest;
6675
+ class UploadRbbFileAmapResponse extends $tea.Model {
6676
+ constructor(map) {
6677
+ super(map);
6678
+ }
6679
+ static names() {
6680
+ return {
6681
+ reqMsgId: 'req_msg_id',
6682
+ resultCode: 'result_code',
6683
+ resultMsg: 'result_msg',
6684
+ };
6685
+ }
6686
+ static types() {
6687
+ return {
6688
+ reqMsgId: 'string',
6689
+ resultCode: 'string',
6690
+ resultMsg: 'string',
6691
+ };
6692
+ }
6693
+ }
6694
+ exports.UploadRbbFileAmapResponse = UploadRbbFileAmapResponse;
6622
6695
  class QueryRpgwSignUrlRequest extends $tea.Model {
6623
6696
  constructor(map) {
6624
6697
  super(map);
@@ -9429,6 +9502,58 @@ class QueryUmktRobotcallStatisticinfoResponse extends $tea.Model {
9429
9502
  }
9430
9503
  }
9431
9504
  exports.QueryUmktRobotcallStatisticinfoResponse = QueryUmktRobotcallStatisticinfoResponse;
9505
+ class QueryUmktTenantActionplaninfoRequest extends $tea.Model {
9506
+ constructor(map) {
9507
+ super(map);
9508
+ }
9509
+ static names() {
9510
+ return {
9511
+ authToken: 'auth_token',
9512
+ productInstanceId: 'product_instance_id',
9513
+ pageNum: 'page_num',
9514
+ pageSize: 'page_size',
9515
+ channelType: 'channel_type',
9516
+ };
9517
+ }
9518
+ static types() {
9519
+ return {
9520
+ authToken: 'string',
9521
+ productInstanceId: 'string',
9522
+ pageNum: 'number',
9523
+ pageSize: 'number',
9524
+ channelType: 'string',
9525
+ };
9526
+ }
9527
+ }
9528
+ exports.QueryUmktTenantActionplaninfoRequest = QueryUmktTenantActionplaninfoRequest;
9529
+ class QueryUmktTenantActionplaninfoResponse extends $tea.Model {
9530
+ constructor(map) {
9531
+ super(map);
9532
+ }
9533
+ static names() {
9534
+ return {
9535
+ reqMsgId: 'req_msg_id',
9536
+ resultCode: 'result_code',
9537
+ resultMsg: 'result_msg',
9538
+ queryResult: 'query_result',
9539
+ pageNum: 'page_num',
9540
+ pageSize: 'page_size',
9541
+ totalCount: 'total_count',
9542
+ };
9543
+ }
9544
+ static types() {
9545
+ return {
9546
+ reqMsgId: 'string',
9547
+ resultCode: 'string',
9548
+ resultMsg: 'string',
9549
+ queryResult: { 'type': 'array', 'itemType': TenantActionPlanInfo },
9550
+ pageNum: 'number',
9551
+ pageSize: 'number',
9552
+ totalCount: 'number',
9553
+ };
9554
+ }
9555
+ }
9556
+ exports.QueryUmktTenantActionplaninfoResponse = QueryUmktTenantActionplaninfoResponse;
9432
9557
  class CreateAntcloudGatewayxFileUploadRequest extends $tea.Model {
9433
9558
  constructor(map) {
9434
9559
  super(map);
@@ -9573,7 +9698,7 @@ class Client {
9573
9698
  req_msg_id: alipay_util_1.default.getNonce(),
9574
9699
  access_key: this._accessKeyId,
9575
9700
  base_sdk_version: "TeaSDK-2.0",
9576
- sdk_version: "1.16.13",
9701
+ sdk_version: "1.16.22",
9577
9702
  _prod_code: "RISKPLUS",
9578
9703
  _prod_channel: "undefined",
9579
9704
  };
@@ -11044,6 +11169,42 @@ class Client {
11044
11169
  tea_util_1.default.validateModel(request);
11045
11170
  return $tea.cast(await this.doRequest("1.0", "riskplus.rbb.customer.companyinfo.push", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new PushRbbCustomerCompanyinfoResponse({}));
11046
11171
  }
11172
+ /**
11173
+ * Description: 企管盾给高德的文件上传,用于小微店铺分
11174
+ * Summary: 企管盾给高德的文件上传,用于小微店铺分
11175
+ */
11176
+ async uploadRbbFileAmap(request) {
11177
+ let runtime = new $Util.RuntimeOptions({});
11178
+ let headers = {};
11179
+ return await this.uploadRbbFileAmapEx(request, headers, runtime);
11180
+ }
11181
+ /**
11182
+ * Description: 企管盾给高德的文件上传,用于小微店铺分
11183
+ * Summary: 企管盾给高德的文件上传,用于小微店铺分
11184
+ */
11185
+ async uploadRbbFileAmapEx(request, headers, runtime) {
11186
+ if (!tea_util_1.default.isUnset(request.fileObject)) {
11187
+ let uploadReq = new CreateAntcloudGatewayxFileUploadRequest({
11188
+ authToken: request.authToken,
11189
+ apiCode: "riskplus.rbb.file.amap.upload",
11190
+ fileName: request.fileObjectName,
11191
+ });
11192
+ let uploadResp = await this.createAntcloudGatewayxFileUploadEx(uploadReq, headers, runtime);
11193
+ if (!alipay_util_1.default.isSuccess(uploadResp.resultCode, "ok")) {
11194
+ let uploadRbbFileAmapResponse = new UploadRbbFileAmapResponse({
11195
+ reqMsgId: uploadResp.reqMsgId,
11196
+ resultCode: uploadResp.resultCode,
11197
+ resultMsg: uploadResp.resultMsg,
11198
+ });
11199
+ return uploadRbbFileAmapResponse;
11200
+ }
11201
+ let uploadHeaders = alipay_util_1.default.parseUploadHeaders(uploadResp.uploadHeaders);
11202
+ await alipay_util_1.default.putObject(request.fileObject, uploadHeaders, uploadResp.uploadUrl);
11203
+ request.fileId = uploadResp.fileId;
11204
+ }
11205
+ tea_util_1.default.validateModel(request);
11206
+ return $tea.cast(await this.doRequest("1.0", "riskplus.rbb.file.amap.upload", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new UploadRbbFileAmapResponse({}));
11207
+ }
11047
11208
  /**
11048
11209
  * Description: 获取签约接口
11049
11210
  * Summary: 获取签约接口
@@ -11966,6 +12127,23 @@ class Client {
11966
12127
  tea_util_1.default.validateModel(request);
11967
12128
  return $tea.cast(await this.doRequest("1.0", "riskplus.umkt.robotcall.statisticinfo.query", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new QueryUmktRobotcallStatisticinfoResponse({}));
11968
12129
  }
12130
+ /**
12131
+ * Description: 营销盾租户场景信息查询
12132
+ * Summary: 营销盾租户场景信息查询
12133
+ */
12134
+ async queryUmktTenantActionplaninfo(request) {
12135
+ let runtime = new $Util.RuntimeOptions({});
12136
+ let headers = {};
12137
+ return await this.queryUmktTenantActionplaninfoEx(request, headers, runtime);
12138
+ }
12139
+ /**
12140
+ * Description: 营销盾租户场景信息查询
12141
+ * Summary: 营销盾租户场景信息查询
12142
+ */
12143
+ async queryUmktTenantActionplaninfoEx(request, headers, runtime) {
12144
+ tea_util_1.default.validateModel(request);
12145
+ return $tea.cast(await this.doRequest("1.0", "riskplus.umkt.tenant.actionplaninfo.query", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new QueryUmktTenantActionplaninfoResponse({}));
12146
+ }
11969
12147
  /**
11970
12148
  * Description: 创建HTTP PUT提交的文件上传
11971
12149
  * Summary: 文件上传创建