@antchain/riskplus 1.16.8 → 1.16.12
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 +49 -5
- package/dist/client.js +88 -4
- package/dist/client.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +118 -9
package/package.json
CHANGED
package/src/client.ts
CHANGED
|
@@ -5813,7 +5813,7 @@ export class QueryDubbridgeRouterFundrouterRequest extends $tea.Model {
|
|
|
5813
5813
|
// 姓名
|
|
5814
5814
|
customName: string;
|
|
5815
5815
|
// 合作方产品编号
|
|
5816
|
-
prodNo
|
|
5816
|
+
prodNo?: string;
|
|
5817
5817
|
// 渠道类型
|
|
5818
5818
|
channelType?: string;
|
|
5819
5819
|
// 客户类型
|
|
@@ -5928,7 +5928,7 @@ export class ApplyDubbridgeCreditRequest extends $tea.Model {
|
|
|
5928
5928
|
// 工作信息
|
|
5929
5929
|
borrowerEmpInfo?: JobInfo;
|
|
5930
5930
|
// 产品编号
|
|
5931
|
-
prodNo
|
|
5931
|
+
prodNo?: string;
|
|
5932
5932
|
// 风险数据对象json字符串
|
|
5933
5933
|
riskData: string;
|
|
5934
5934
|
// 借款用途
|
|
@@ -7636,7 +7636,7 @@ export class CountDubbridgeRepayReftrialRequest extends $tea.Model {
|
|
|
7636
7636
|
// 授信申请订单号
|
|
7637
7637
|
originalOrderNo: string;
|
|
7638
7638
|
// 产品编号
|
|
7639
|
-
prodNo
|
|
7639
|
+
prodNo?: string;
|
|
7640
7640
|
// 借款金额
|
|
7641
7641
|
applyAmount: number;
|
|
7642
7642
|
// 借款期数
|
|
@@ -8894,6 +8894,75 @@ export class ReceiveMdipParamsFileResponse extends $tea.Model {
|
|
|
8894
8894
|
}
|
|
8895
8895
|
}
|
|
8896
8896
|
|
|
8897
|
+
export class ReceiveMdipParamsRbbfileRequest extends $tea.Model {
|
|
8898
|
+
// OAuth模式下的授权token
|
|
8899
|
+
authToken?: string;
|
|
8900
|
+
productInstanceId?: string;
|
|
8901
|
+
// file_id
|
|
8902
|
+
fileObject?: Readable;
|
|
8903
|
+
fileObjectName?: string;
|
|
8904
|
+
fileId: string;
|
|
8905
|
+
// 文件名
|
|
8906
|
+
fileName: string;
|
|
8907
|
+
// 租户code
|
|
8908
|
+
tenantCode: string;
|
|
8909
|
+
static names(): { [key: string]: string } {
|
|
8910
|
+
return {
|
|
8911
|
+
authToken: 'auth_token',
|
|
8912
|
+
productInstanceId: 'product_instance_id',
|
|
8913
|
+
fileObject: 'fileObject',
|
|
8914
|
+
fileObjectName: 'fileObjectName',
|
|
8915
|
+
fileId: 'file_id',
|
|
8916
|
+
fileName: 'file_name',
|
|
8917
|
+
tenantCode: 'tenant_code',
|
|
8918
|
+
};
|
|
8919
|
+
}
|
|
8920
|
+
|
|
8921
|
+
static types(): { [key: string]: any } {
|
|
8922
|
+
return {
|
|
8923
|
+
authToken: 'string',
|
|
8924
|
+
productInstanceId: 'string',
|
|
8925
|
+
fileObject: 'Readable',
|
|
8926
|
+
fileObjectName: 'string',
|
|
8927
|
+
fileId: 'string',
|
|
8928
|
+
fileName: 'string',
|
|
8929
|
+
tenantCode: 'string',
|
|
8930
|
+
};
|
|
8931
|
+
}
|
|
8932
|
+
|
|
8933
|
+
constructor(map?: { [key: string]: any }) {
|
|
8934
|
+
super(map);
|
|
8935
|
+
}
|
|
8936
|
+
}
|
|
8937
|
+
|
|
8938
|
+
export class ReceiveMdipParamsRbbfileResponse extends $tea.Model {
|
|
8939
|
+
// 请求唯一ID,用于链路跟踪和问题排查
|
|
8940
|
+
reqMsgId?: string;
|
|
8941
|
+
// 结果码,一般OK表示调用成功
|
|
8942
|
+
resultCode?: string;
|
|
8943
|
+
// 异常信息的文本描述
|
|
8944
|
+
resultMsg?: string;
|
|
8945
|
+
static names(): { [key: string]: string } {
|
|
8946
|
+
return {
|
|
8947
|
+
reqMsgId: 'req_msg_id',
|
|
8948
|
+
resultCode: 'result_code',
|
|
8949
|
+
resultMsg: 'result_msg',
|
|
8950
|
+
};
|
|
8951
|
+
}
|
|
8952
|
+
|
|
8953
|
+
static types(): { [key: string]: any } {
|
|
8954
|
+
return {
|
|
8955
|
+
reqMsgId: 'string',
|
|
8956
|
+
resultCode: 'string',
|
|
8957
|
+
resultMsg: 'string',
|
|
8958
|
+
};
|
|
8959
|
+
}
|
|
8960
|
+
|
|
8961
|
+
constructor(map?: { [key: string]: any }) {
|
|
8962
|
+
super(map);
|
|
8963
|
+
}
|
|
8964
|
+
}
|
|
8965
|
+
|
|
8897
8966
|
export class QueryRbbGenericInvokeRequest extends $tea.Model {
|
|
8898
8967
|
// OAuth模式下的授权token
|
|
8899
8968
|
authToken?: string;
|
|
@@ -14283,9 +14352,9 @@ export class QueryUmktRobotcallStatisticinfoResponse extends $tea.Model {
|
|
|
14283
14352
|
// 已拨打次数中接通的数量
|
|
14284
14353
|
connectCount?: number;
|
|
14285
14354
|
// 拨打率
|
|
14286
|
-
callRate?:
|
|
14355
|
+
callRate?: string;
|
|
14287
14356
|
// 接通率
|
|
14288
|
-
connectRate?:
|
|
14357
|
+
connectRate?: string;
|
|
14289
14358
|
static names(): { [key: string]: string } {
|
|
14290
14359
|
return {
|
|
14291
14360
|
reqMsgId: 'req_msg_id',
|
|
@@ -14309,8 +14378,8 @@ export class QueryUmktRobotcallStatisticinfoResponse extends $tea.Model {
|
|
|
14309
14378
|
callCount: 'number',
|
|
14310
14379
|
calleeCount: 'number',
|
|
14311
14380
|
connectCount: 'number',
|
|
14312
|
-
callRate: '
|
|
14313
|
-
connectRate: '
|
|
14381
|
+
callRate: 'string',
|
|
14382
|
+
connectRate: 'string',
|
|
14314
14383
|
};
|
|
14315
14384
|
}
|
|
14316
14385
|
|
|
@@ -14481,7 +14550,7 @@ export default class Client {
|
|
|
14481
14550
|
noProxy: Util.defaultString(runtime.noProxy, this._noProxy),
|
|
14482
14551
|
maxIdleConns: Util.defaultNumber(runtime.maxIdleConns, this._maxIdleConns),
|
|
14483
14552
|
maxIdleTimeMillis: this._maxIdleTimeMillis,
|
|
14484
|
-
|
|
14553
|
+
keepAliveDuration: this._keepAliveDurationMillis,
|
|
14485
14554
|
maxRequests: this._maxRequests,
|
|
14486
14555
|
maxRequestsPerHost: this._maxRequestsPerHost,
|
|
14487
14556
|
retry: {
|
|
@@ -14520,7 +14589,7 @@ export default class Client {
|
|
|
14520
14589
|
req_msg_id: AntchainUtil.getNonce(),
|
|
14521
14590
|
access_key: this._accessKeyId,
|
|
14522
14591
|
base_sdk_version: "TeaSDK-2.0",
|
|
14523
|
-
sdk_version: "1.16.
|
|
14592
|
+
sdk_version: "1.16.12",
|
|
14524
14593
|
_prod_code: "RISKPLUS",
|
|
14525
14594
|
_prod_channel: "undefined",
|
|
14526
14595
|
};
|
|
@@ -15807,6 +15876,46 @@ export default class Client {
|
|
|
15807
15876
|
return $tea.cast<ReceiveMdipParamsFileResponse>(await this.doRequest("1.0", "riskplus.mdip.params.file.receive", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new ReceiveMdipParamsFileResponse({}));
|
|
15808
15877
|
}
|
|
15809
15878
|
|
|
15879
|
+
/**
|
|
15880
|
+
* Description: 接受op的文件id,支持风险大脑文件上传
|
|
15881
|
+
* Summary: 接受op的文件id,支持风险大脑文件上传
|
|
15882
|
+
*/
|
|
15883
|
+
async receiveMdipParamsRbbfile(request: ReceiveMdipParamsRbbfileRequest): Promise<ReceiveMdipParamsRbbfileResponse> {
|
|
15884
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
15885
|
+
let headers : {[key: string ]: string} = { };
|
|
15886
|
+
return await this.receiveMdipParamsRbbfileEx(request, headers, runtime);
|
|
15887
|
+
}
|
|
15888
|
+
|
|
15889
|
+
/**
|
|
15890
|
+
* Description: 接受op的文件id,支持风险大脑文件上传
|
|
15891
|
+
* Summary: 接受op的文件id,支持风险大脑文件上传
|
|
15892
|
+
*/
|
|
15893
|
+
async receiveMdipParamsRbbfileEx(request: ReceiveMdipParamsRbbfileRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<ReceiveMdipParamsRbbfileResponse> {
|
|
15894
|
+
if (!Util.isUnset(request.fileObject)) {
|
|
15895
|
+
let uploadReq = new CreateAntcloudGatewayxFileUploadRequest({
|
|
15896
|
+
authToken: request.authToken,
|
|
15897
|
+
apiCode: "riskplus.mdip.params.rbbfile.receive",
|
|
15898
|
+
fileName: request.fileObjectName,
|
|
15899
|
+
});
|
|
15900
|
+
let uploadResp = await this.createAntcloudGatewayxFileUploadEx(uploadReq, headers, runtime);
|
|
15901
|
+
if (!AntchainUtil.isSuccess(uploadResp.resultCode, "ok")) {
|
|
15902
|
+
let receiveMdipParamsRbbfileResponse = new ReceiveMdipParamsRbbfileResponse({
|
|
15903
|
+
reqMsgId: uploadResp.reqMsgId,
|
|
15904
|
+
resultCode: uploadResp.resultCode,
|
|
15905
|
+
resultMsg: uploadResp.resultMsg,
|
|
15906
|
+
});
|
|
15907
|
+
return receiveMdipParamsRbbfileResponse;
|
|
15908
|
+
}
|
|
15909
|
+
|
|
15910
|
+
let uploadHeaders = AntchainUtil.parseUploadHeaders(uploadResp.uploadHeaders);
|
|
15911
|
+
await AntchainUtil.putObject(request.fileObject, uploadHeaders, uploadResp.uploadUrl);
|
|
15912
|
+
request.fileId = uploadResp.fileId;
|
|
15913
|
+
}
|
|
15914
|
+
|
|
15915
|
+
Util.validateModel(request);
|
|
15916
|
+
return $tea.cast<ReceiveMdipParamsRbbfileResponse>(await this.doRequest("1.0", "riskplus.mdip.params.rbbfile.receive", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new ReceiveMdipParamsRbbfileResponse({}));
|
|
15917
|
+
}
|
|
15918
|
+
|
|
15810
15919
|
/**
|
|
15811
15920
|
* Description: 风险大脑企业版通用查询接口
|
|
15812
15921
|
* Summary: 【已废弃】
|