@antchain/riskplus 1.16.10 → 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 +47 -3
- package/dist/client.js +86 -2
- package/dist/client.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +114 -5
package/dist/client.d.ts
CHANGED
|
@@ -2401,7 +2401,7 @@ export declare class QueryDubbridgeRouterFundrouterRequest extends $tea.Model {
|
|
|
2401
2401
|
cardNo: string;
|
|
2402
2402
|
mobile: string;
|
|
2403
2403
|
customName: string;
|
|
2404
|
-
prodNo
|
|
2404
|
+
prodNo?: string;
|
|
2405
2405
|
channelType?: string;
|
|
2406
2406
|
customType?: string;
|
|
2407
2407
|
trafficPlatform?: string;
|
|
@@ -2445,7 +2445,7 @@ export declare class ApplyDubbridgeCreditRequest extends $tea.Model {
|
|
|
2445
2445
|
orderNo: string;
|
|
2446
2446
|
borrowerLiveInfo?: LiveInfo;
|
|
2447
2447
|
borrowerEmpInfo?: JobInfo;
|
|
2448
|
-
prodNo
|
|
2448
|
+
prodNo?: string;
|
|
2449
2449
|
riskData: string;
|
|
2450
2450
|
loanReason?: string;
|
|
2451
2451
|
materials?: Material[];
|
|
@@ -3156,7 +3156,7 @@ export declare class CountDubbridgeRepayReftrialRequest extends $tea.Model {
|
|
|
3156
3156
|
productInstanceId?: string;
|
|
3157
3157
|
orderNo: string;
|
|
3158
3158
|
originalOrderNo: string;
|
|
3159
|
-
prodNo
|
|
3159
|
+
prodNo?: string;
|
|
3160
3160
|
applyAmount: number;
|
|
3161
3161
|
applyPeriod: number;
|
|
3162
3162
|
repayType: string;
|
|
@@ -3693,6 +3693,38 @@ export declare class ReceiveMdipParamsFileResponse extends $tea.Model {
|
|
|
3693
3693
|
[key: string]: any;
|
|
3694
3694
|
});
|
|
3695
3695
|
}
|
|
3696
|
+
export declare class ReceiveMdipParamsRbbfileRequest extends $tea.Model {
|
|
3697
|
+
authToken?: string;
|
|
3698
|
+
productInstanceId?: string;
|
|
3699
|
+
fileObject?: Readable;
|
|
3700
|
+
fileObjectName?: string;
|
|
3701
|
+
fileId: string;
|
|
3702
|
+
fileName: string;
|
|
3703
|
+
tenantCode: string;
|
|
3704
|
+
static names(): {
|
|
3705
|
+
[key: string]: string;
|
|
3706
|
+
};
|
|
3707
|
+
static types(): {
|
|
3708
|
+
[key: string]: any;
|
|
3709
|
+
};
|
|
3710
|
+
constructor(map?: {
|
|
3711
|
+
[key: string]: any;
|
|
3712
|
+
});
|
|
3713
|
+
}
|
|
3714
|
+
export declare class ReceiveMdipParamsRbbfileResponse extends $tea.Model {
|
|
3715
|
+
reqMsgId?: string;
|
|
3716
|
+
resultCode?: string;
|
|
3717
|
+
resultMsg?: string;
|
|
3718
|
+
static names(): {
|
|
3719
|
+
[key: string]: string;
|
|
3720
|
+
};
|
|
3721
|
+
static types(): {
|
|
3722
|
+
[key: string]: any;
|
|
3723
|
+
};
|
|
3724
|
+
constructor(map?: {
|
|
3725
|
+
[key: string]: any;
|
|
3726
|
+
});
|
|
3727
|
+
}
|
|
3696
3728
|
export declare class QueryRbbGenericInvokeRequest extends $tea.Model {
|
|
3697
3729
|
authToken?: string;
|
|
3698
3730
|
productInstanceId?: string;
|
|
@@ -6879,6 +6911,18 @@ export default class Client {
|
|
|
6879
6911
|
receiveMdipParamsFileEx(request: ReceiveMdipParamsFileRequest, headers: {
|
|
6880
6912
|
[key: string]: string;
|
|
6881
6913
|
}, runtime: $Util.RuntimeOptions): Promise<ReceiveMdipParamsFileResponse>;
|
|
6914
|
+
/**
|
|
6915
|
+
* Description: 接受op的文件id,支持风险大脑文件上传
|
|
6916
|
+
* Summary: 接受op的文件id,支持风险大脑文件上传
|
|
6917
|
+
*/
|
|
6918
|
+
receiveMdipParamsRbbfile(request: ReceiveMdipParamsRbbfileRequest): Promise<ReceiveMdipParamsRbbfileResponse>;
|
|
6919
|
+
/**
|
|
6920
|
+
* Description: 接受op的文件id,支持风险大脑文件上传
|
|
6921
|
+
* Summary: 接受op的文件id,支持风险大脑文件上传
|
|
6922
|
+
*/
|
|
6923
|
+
receiveMdipParamsRbbfileEx(request: ReceiveMdipParamsRbbfileRequest, headers: {
|
|
6924
|
+
[key: string]: string;
|
|
6925
|
+
}, runtime: $Util.RuntimeOptions): Promise<ReceiveMdipParamsRbbfileResponse>;
|
|
6882
6926
|
/**
|
|
6883
6927
|
* Description: 风险大脑企业版通用查询接口
|
|
6884
6928
|
* Summary: 【已废弃】
|
package/dist/client.js
CHANGED
|
@@ -5793,6 +5793,54 @@ class ReceiveMdipParamsFileResponse extends $tea.Model {
|
|
|
5793
5793
|
}
|
|
5794
5794
|
}
|
|
5795
5795
|
exports.ReceiveMdipParamsFileResponse = ReceiveMdipParamsFileResponse;
|
|
5796
|
+
class ReceiveMdipParamsRbbfileRequest extends $tea.Model {
|
|
5797
|
+
constructor(map) {
|
|
5798
|
+
super(map);
|
|
5799
|
+
}
|
|
5800
|
+
static names() {
|
|
5801
|
+
return {
|
|
5802
|
+
authToken: 'auth_token',
|
|
5803
|
+
productInstanceId: 'product_instance_id',
|
|
5804
|
+
fileObject: 'fileObject',
|
|
5805
|
+
fileObjectName: 'fileObjectName',
|
|
5806
|
+
fileId: 'file_id',
|
|
5807
|
+
fileName: 'file_name',
|
|
5808
|
+
tenantCode: 'tenant_code',
|
|
5809
|
+
};
|
|
5810
|
+
}
|
|
5811
|
+
static types() {
|
|
5812
|
+
return {
|
|
5813
|
+
authToken: 'string',
|
|
5814
|
+
productInstanceId: 'string',
|
|
5815
|
+
fileObject: 'Readable',
|
|
5816
|
+
fileObjectName: 'string',
|
|
5817
|
+
fileId: 'string',
|
|
5818
|
+
fileName: 'string',
|
|
5819
|
+
tenantCode: 'string',
|
|
5820
|
+
};
|
|
5821
|
+
}
|
|
5822
|
+
}
|
|
5823
|
+
exports.ReceiveMdipParamsRbbfileRequest = ReceiveMdipParamsRbbfileRequest;
|
|
5824
|
+
class ReceiveMdipParamsRbbfileResponse extends $tea.Model {
|
|
5825
|
+
constructor(map) {
|
|
5826
|
+
super(map);
|
|
5827
|
+
}
|
|
5828
|
+
static names() {
|
|
5829
|
+
return {
|
|
5830
|
+
reqMsgId: 'req_msg_id',
|
|
5831
|
+
resultCode: 'result_code',
|
|
5832
|
+
resultMsg: 'result_msg',
|
|
5833
|
+
};
|
|
5834
|
+
}
|
|
5835
|
+
static types() {
|
|
5836
|
+
return {
|
|
5837
|
+
reqMsgId: 'string',
|
|
5838
|
+
resultCode: 'string',
|
|
5839
|
+
resultMsg: 'string',
|
|
5840
|
+
};
|
|
5841
|
+
}
|
|
5842
|
+
}
|
|
5843
|
+
exports.ReceiveMdipParamsRbbfileResponse = ReceiveMdipParamsRbbfileResponse;
|
|
5796
5844
|
class QueryRbbGenericInvokeRequest extends $tea.Model {
|
|
5797
5845
|
constructor(map) {
|
|
5798
5846
|
super(map);
|
|
@@ -9484,7 +9532,7 @@ class Client {
|
|
|
9484
9532
|
noProxy: tea_util_1.default.defaultString(runtime.noProxy, this._noProxy),
|
|
9485
9533
|
maxIdleConns: tea_util_1.default.defaultNumber(runtime.maxIdleConns, this._maxIdleConns),
|
|
9486
9534
|
maxIdleTimeMillis: this._maxIdleTimeMillis,
|
|
9487
|
-
|
|
9535
|
+
keepAliveDuration: this._keepAliveDurationMillis,
|
|
9488
9536
|
maxRequests: this._maxRequests,
|
|
9489
9537
|
maxRequestsPerHost: this._maxRequestsPerHost,
|
|
9490
9538
|
retry: {
|
|
@@ -9521,7 +9569,7 @@ class Client {
|
|
|
9521
9569
|
req_msg_id: alipay_util_1.default.getNonce(),
|
|
9522
9570
|
access_key: this._accessKeyId,
|
|
9523
9571
|
base_sdk_version: "TeaSDK-2.0",
|
|
9524
|
-
sdk_version: "1.16.
|
|
9572
|
+
sdk_version: "1.16.12",
|
|
9525
9573
|
_prod_code: "RISKPLUS",
|
|
9526
9574
|
_prod_channel: "undefined",
|
|
9527
9575
|
};
|
|
@@ -10667,6 +10715,42 @@ class Client {
|
|
|
10667
10715
|
tea_util_1.default.validateModel(request);
|
|
10668
10716
|
return $tea.cast(await this.doRequest("1.0", "riskplus.mdip.params.file.receive", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new ReceiveMdipParamsFileResponse({}));
|
|
10669
10717
|
}
|
|
10718
|
+
/**
|
|
10719
|
+
* Description: 接受op的文件id,支持风险大脑文件上传
|
|
10720
|
+
* Summary: 接受op的文件id,支持风险大脑文件上传
|
|
10721
|
+
*/
|
|
10722
|
+
async receiveMdipParamsRbbfile(request) {
|
|
10723
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
10724
|
+
let headers = {};
|
|
10725
|
+
return await this.receiveMdipParamsRbbfileEx(request, headers, runtime);
|
|
10726
|
+
}
|
|
10727
|
+
/**
|
|
10728
|
+
* Description: 接受op的文件id,支持风险大脑文件上传
|
|
10729
|
+
* Summary: 接受op的文件id,支持风险大脑文件上传
|
|
10730
|
+
*/
|
|
10731
|
+
async receiveMdipParamsRbbfileEx(request, headers, runtime) {
|
|
10732
|
+
if (!tea_util_1.default.isUnset(request.fileObject)) {
|
|
10733
|
+
let uploadReq = new CreateAntcloudGatewayxFileUploadRequest({
|
|
10734
|
+
authToken: request.authToken,
|
|
10735
|
+
apiCode: "riskplus.mdip.params.rbbfile.receive",
|
|
10736
|
+
fileName: request.fileObjectName,
|
|
10737
|
+
});
|
|
10738
|
+
let uploadResp = await this.createAntcloudGatewayxFileUploadEx(uploadReq, headers, runtime);
|
|
10739
|
+
if (!alipay_util_1.default.isSuccess(uploadResp.resultCode, "ok")) {
|
|
10740
|
+
let receiveMdipParamsRbbfileResponse = new ReceiveMdipParamsRbbfileResponse({
|
|
10741
|
+
reqMsgId: uploadResp.reqMsgId,
|
|
10742
|
+
resultCode: uploadResp.resultCode,
|
|
10743
|
+
resultMsg: uploadResp.resultMsg,
|
|
10744
|
+
});
|
|
10745
|
+
return receiveMdipParamsRbbfileResponse;
|
|
10746
|
+
}
|
|
10747
|
+
let uploadHeaders = alipay_util_1.default.parseUploadHeaders(uploadResp.uploadHeaders);
|
|
10748
|
+
await alipay_util_1.default.putObject(request.fileObject, uploadHeaders, uploadResp.uploadUrl);
|
|
10749
|
+
request.fileId = uploadResp.fileId;
|
|
10750
|
+
}
|
|
10751
|
+
tea_util_1.default.validateModel(request);
|
|
10752
|
+
return $tea.cast(await this.doRequest("1.0", "riskplus.mdip.params.rbbfile.receive", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new ReceiveMdipParamsRbbfileResponse({}));
|
|
10753
|
+
}
|
|
10670
10754
|
/**
|
|
10671
10755
|
* Description: 风险大脑企业版通用查询接口
|
|
10672
10756
|
* Summary: 【已废弃】
|