@freelog/tools-lib 0.1.194 → 0.1.196
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/service-API/payment.d.ts +14 -0
- package/dist/service-API/policies.d.ts +2 -0
- package/dist/tools-lib.cjs.development.js +53 -26
- package/dist/tools-lib.cjs.development.js.map +1 -1
- package/dist/tools-lib.cjs.production.min.js +1 -1
- package/dist/tools-lib.cjs.production.min.js.map +1 -1
- package/dist/tools-lib.esm.js +53 -26
- package/dist/tools-lib.esm.js.map +1 -1
- package/dist/utils/linkTo.d.ts +12 -4
- package/package.json +1 -1
- package/src/service-API/payment.ts +35 -1
- package/src/service-API/policies.ts +95 -93
- package/src/utils/linkTo.ts +26 -7
package/dist/tools-lib.esm.js
CHANGED
|
@@ -595,46 +595,52 @@ function globalSearch(_ref49) {
|
|
|
595
595
|
search: search
|
|
596
596
|
});
|
|
597
597
|
}
|
|
598
|
-
function
|
|
598
|
+
function settlementInfoCreator(_ref50) {
|
|
599
599
|
var nodeID = _ref50.nodeID;
|
|
600
|
-
return "/
|
|
600
|
+
return "/settlementCreator" + handleQuery({
|
|
601
601
|
nodeID: nodeID
|
|
602
602
|
});
|
|
603
603
|
}
|
|
604
|
-
function
|
|
605
|
-
var
|
|
606
|
-
return "/
|
|
607
|
-
|
|
608
|
-
|
|
604
|
+
function settlementInfo(_ref51) {
|
|
605
|
+
var accountID = _ref51.accountID;
|
|
606
|
+
return "/settlementInfo/" + accountID;
|
|
607
|
+
}
|
|
608
|
+
function settlementInfoEditor(_ref52) {
|
|
609
|
+
var accountID = _ref52.accountID;
|
|
610
|
+
return "/settlementEditor/" + accountID;
|
|
611
|
+
}
|
|
612
|
+
function settlementBankCardEditor(_ref53) {
|
|
613
|
+
var accountID = _ref53.accountID;
|
|
614
|
+
return "/settlementBankCardEditor/" + accountID;
|
|
609
615
|
}
|
|
610
616
|
function login(_temp19) {
|
|
611
|
-
var
|
|
612
|
-
goTo =
|
|
617
|
+
var _ref54 = _temp19 === void 0 ? {} : _temp19,
|
|
618
|
+
goTo = _ref54.goTo;
|
|
613
619
|
return "/login" + handleQuery({
|
|
614
620
|
goTo: goTo ? encodeURIComponent(goTo) : undefined
|
|
615
621
|
});
|
|
616
622
|
}
|
|
617
623
|
function logon(_temp20) {
|
|
618
|
-
var
|
|
619
|
-
goTo =
|
|
620
|
-
params = _objectWithoutPropertiesLoose(
|
|
624
|
+
var _ref55 = _temp20 === void 0 ? {} : _temp20,
|
|
625
|
+
goTo = _ref55.goTo,
|
|
626
|
+
params = _objectWithoutPropertiesLoose(_ref55, _excluded6);
|
|
621
627
|
return "/logon" + handleQuery(_extends({
|
|
622
628
|
goTo: goTo ? encodeURIComponent(goTo) : undefined
|
|
623
629
|
}, params));
|
|
624
630
|
}
|
|
625
631
|
function bind(_temp21) {
|
|
626
|
-
var
|
|
627
|
-
goTo =
|
|
628
|
-
returnUrl =
|
|
629
|
-
params = _objectWithoutPropertiesLoose(
|
|
632
|
+
var _ref56 = _temp21 === void 0 ? {} : _temp21,
|
|
633
|
+
goTo = _ref56.goTo,
|
|
634
|
+
returnUrl = _ref56.returnUrl,
|
|
635
|
+
params = _objectWithoutPropertiesLoose(_ref56, _excluded7);
|
|
630
636
|
return "/bind" + handleQuery(_extends({
|
|
631
637
|
goTo: goTo ? encodeURIComponent(goTo) : undefined,
|
|
632
638
|
returnUrl: returnUrl ? encodeURIComponent(returnUrl) : undefined
|
|
633
639
|
}, params));
|
|
634
640
|
}
|
|
635
641
|
function retrieveUserPassword(_temp22) {
|
|
636
|
-
var
|
|
637
|
-
goTo =
|
|
642
|
+
var _ref57 = _temp22 === void 0 ? {} : _temp22,
|
|
643
|
+
goTo = _ref57.goTo;
|
|
638
644
|
return "/retrieve" + handleQuery({
|
|
639
645
|
goTo: goTo ? encodeURIComponent(goTo) : undefined
|
|
640
646
|
});
|
|
@@ -656,8 +662,8 @@ function reward(_temp26) {
|
|
|
656
662
|
return "/logged/reward";
|
|
657
663
|
}
|
|
658
664
|
function contract(_temp27) {
|
|
659
|
-
var
|
|
660
|
-
params = _extends({}, (_objectDestructuringEmpty(
|
|
665
|
+
var _ref62 = _temp27 === void 0 ? {} : _temp27,
|
|
666
|
+
params = _extends({}, (_objectDestructuringEmpty(_ref62), _ref62));
|
|
661
667
|
return "/logged/contract" + handleQuery(_extends({}, params));
|
|
662
668
|
}
|
|
663
669
|
function setting(_temp28) {
|
|
@@ -740,8 +746,10 @@ var LinkTo = {
|
|
|
740
746
|
nodeFreeze: nodeFreeze,
|
|
741
747
|
resourceFreeze: resourceFreeze,
|
|
742
748
|
globalSearch: globalSearch,
|
|
749
|
+
settlementInfoCreator: settlementInfoCreator,
|
|
743
750
|
settlementInfo: settlementInfo,
|
|
744
751
|
settlementInfoEditor: settlementInfoEditor,
|
|
752
|
+
settlementBankCardEditor: settlementBankCardEditor,
|
|
745
753
|
login: login,
|
|
746
754
|
logon: logon,
|
|
747
755
|
bind: bind,
|
|
@@ -3061,9 +3069,9 @@ function policyTemplates(params) {
|
|
|
3061
3069
|
params = {};
|
|
3062
3070
|
}
|
|
3063
3071
|
return FUtil.Request({
|
|
3064
|
-
method: '
|
|
3072
|
+
method: 'POST',
|
|
3065
3073
|
url: "/v2/translate/translate-config/list4Client",
|
|
3066
|
-
|
|
3074
|
+
data: params
|
|
3067
3075
|
});
|
|
3068
3076
|
}
|
|
3069
3077
|
function policyReCompile(data) {
|
|
@@ -3388,7 +3396,8 @@ var ResourceType = {
|
|
|
3388
3396
|
getInfoByCodeOrName: getInfoByCodeOrName
|
|
3389
3397
|
};
|
|
3390
3398
|
|
|
3391
|
-
var _excluded$a = ["accountId"]
|
|
3399
|
+
var _excluded$a = ["accountId"],
|
|
3400
|
+
_excluded2$7 = ["accountId"];
|
|
3392
3401
|
function uploadIDCard(params, config) {
|
|
3393
3402
|
var formData = new FormData();
|
|
3394
3403
|
for (var _i = 0, _Object$entries = Object.entries(params); _i < _Object$entries.length; _i++) {
|
|
@@ -3412,9 +3421,18 @@ function openFinancialAccount(params, config) {
|
|
|
3412
3421
|
data: params
|
|
3413
3422
|
}, config));
|
|
3414
3423
|
}
|
|
3415
|
-
function
|
|
3424
|
+
function updateFinancialAccount(_ref, config) {
|
|
3416
3425
|
var accountId = _ref.accountId,
|
|
3417
3426
|
params = _objectWithoutPropertiesLoose(_ref, _excluded$a);
|
|
3427
|
+
return FUtil.Request(_extends({
|
|
3428
|
+
method: 'PUT',
|
|
3429
|
+
url: "/v3/transactions/accounts/" + accountId,
|
|
3430
|
+
data: params
|
|
3431
|
+
}, config));
|
|
3432
|
+
}
|
|
3433
|
+
function bindWithdrawCard(_ref2, config) {
|
|
3434
|
+
var accountId = _ref2.accountId,
|
|
3435
|
+
params = _objectWithoutPropertiesLoose(_ref2, _excluded2$7);
|
|
3418
3436
|
return FUtil.Request(_extends({
|
|
3419
3437
|
method: 'POST',
|
|
3420
3438
|
url: "/v3/transactions/accounts/" + accountId + "/bindCashCard",
|
|
@@ -3428,8 +3446,15 @@ function queryFinancialAccountInfo(params, config) {
|
|
|
3428
3446
|
params: params
|
|
3429
3447
|
}, config));
|
|
3430
3448
|
}
|
|
3431
|
-
function
|
|
3432
|
-
var accountId =
|
|
3449
|
+
function queryFinancialAccountInfo2(_ref3, config) {
|
|
3450
|
+
var accountId = _ref3.accountId;
|
|
3451
|
+
return FUtil.Request(_extends({
|
|
3452
|
+
method: 'GET',
|
|
3453
|
+
url: "/v3/transactions/accounts/" + accountId
|
|
3454
|
+
}, config));
|
|
3455
|
+
}
|
|
3456
|
+
function queryBindWithdrawCard(_ref4, config) {
|
|
3457
|
+
var accountId = _ref4.accountId;
|
|
3433
3458
|
return FUtil.Request(_extends({
|
|
3434
3459
|
method: 'GET',
|
|
3435
3460
|
url: "/v3/transactions/accounts/" + accountId + "/cashCard"
|
|
@@ -3468,8 +3493,10 @@ var Payment = {
|
|
|
3468
3493
|
__proto__: null,
|
|
3469
3494
|
uploadIDCard: uploadIDCard,
|
|
3470
3495
|
openFinancialAccount: openFinancialAccount,
|
|
3496
|
+
updateFinancialAccount: updateFinancialAccount,
|
|
3471
3497
|
bindWithdrawCard: bindWithdrawCard,
|
|
3472
3498
|
queryFinancialAccountInfo: queryFinancialAccountInfo,
|
|
3499
|
+
queryFinancialAccountInfo2: queryFinancialAccountInfo2,
|
|
3473
3500
|
queryBindWithdrawCard: queryBindWithdrawCard,
|
|
3474
3501
|
withdrawCash: withdrawCash,
|
|
3475
3502
|
queryWithdrawCashList: queryWithdrawCashList
|