@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.
@@ -16,6 +16,16 @@ interface OpenFinancialAccountParamsType {
16
16
  certImagePaths: string[];
17
17
  }
18
18
  export declare function openFinancialAccount(params: OpenFinancialAccountParamsType, config?: AxiosRequestConfig): Promise<any>;
19
+ interface UpdateFinancialAccountParamsType {
20
+ accountId: string;
21
+ certNo: string;
22
+ name: string;
23
+ certValidityType: 1 | 2;
24
+ certBeginDate: string;
25
+ certEndDate?: string;
26
+ certImagePaths: string[];
27
+ }
28
+ export declare function updateFinancialAccount({ accountId, ...params }: UpdateFinancialAccountParamsType, config?: AxiosRequestConfig): Promise<any>;
19
29
  interface BindWithdrawCardParamsType {
20
30
  accountId: string;
21
31
  cardType: 0 | 1 | 2 | 4;
@@ -32,6 +42,10 @@ interface QueryFinancialAccountInfoParamsType {
32
42
  ownerId: number;
33
43
  }
34
44
  export declare function queryFinancialAccountInfo(params: QueryFinancialAccountInfoParamsType, config?: AxiosRequestConfig): Promise<any>;
45
+ interface QueryFinancialAccountInfo2ParamsType {
46
+ accountId: string;
47
+ }
48
+ export declare function queryFinancialAccountInfo2({ accountId }: QueryFinancialAccountInfo2ParamsType, config?: AxiosRequestConfig): Promise<any>;
35
49
  interface QueryBindWithdrawCardParamsType {
36
50
  accountId: string;
37
51
  }
@@ -13,6 +13,8 @@ interface PoliciesListParamsType {
13
13
  }
14
14
  export declare function policiesList(params: PoliciesListParamsType): Promise<any>;
15
15
  interface PolicyTemplatesParamsType {
16
+ resourceTypeCodes4Resource?: string[];
17
+ resourceTypeCodes4Presentable?: string[];
16
18
  }
17
19
  export declare function policyTemplates(params?: PolicyTemplatesParamsType): Promise<any>;
18
20
  interface PolicyReCompileParamsType {
@@ -601,46 +601,52 @@ function globalSearch(_ref49) {
601
601
  search: search
602
602
  });
603
603
  }
604
- function settlementInfo(_ref50) {
604
+ function settlementInfoCreator(_ref50) {
605
605
  var nodeID = _ref50.nodeID;
606
- return "/settlementInfo" + handleQuery({
606
+ return "/settlementCreator" + handleQuery({
607
607
  nodeID: nodeID
608
608
  });
609
609
  }
610
- function settlementInfoEditor(_ref51) {
611
- var nodeID = _ref51.nodeID;
612
- return "/settlementEditor" + handleQuery({
613
- nodeID: nodeID
614
- });
610
+ function settlementInfo(_ref51) {
611
+ var accountID = _ref51.accountID;
612
+ return "/settlementInfo/" + accountID;
613
+ }
614
+ function settlementInfoEditor(_ref52) {
615
+ var accountID = _ref52.accountID;
616
+ return "/settlementEditor/" + accountID;
617
+ }
618
+ function settlementBankCardEditor(_ref53) {
619
+ var accountID = _ref53.accountID;
620
+ return "/settlementBankCardEditor/" + accountID;
615
621
  }
616
622
  function login(_temp19) {
617
- var _ref52 = _temp19 === void 0 ? {} : _temp19,
618
- goTo = _ref52.goTo;
623
+ var _ref54 = _temp19 === void 0 ? {} : _temp19,
624
+ goTo = _ref54.goTo;
619
625
  return "/login" + handleQuery({
620
626
  goTo: goTo ? encodeURIComponent(goTo) : undefined
621
627
  });
622
628
  }
623
629
  function logon(_temp20) {
624
- var _ref53 = _temp20 === void 0 ? {} : _temp20,
625
- goTo = _ref53.goTo,
626
- params = _objectWithoutPropertiesLoose(_ref53, _excluded6);
630
+ var _ref55 = _temp20 === void 0 ? {} : _temp20,
631
+ goTo = _ref55.goTo,
632
+ params = _objectWithoutPropertiesLoose(_ref55, _excluded6);
627
633
  return "/logon" + handleQuery(_extends({
628
634
  goTo: goTo ? encodeURIComponent(goTo) : undefined
629
635
  }, params));
630
636
  }
631
637
  function bind(_temp21) {
632
- var _ref54 = _temp21 === void 0 ? {} : _temp21,
633
- goTo = _ref54.goTo,
634
- returnUrl = _ref54.returnUrl,
635
- params = _objectWithoutPropertiesLoose(_ref54, _excluded7);
638
+ var _ref56 = _temp21 === void 0 ? {} : _temp21,
639
+ goTo = _ref56.goTo,
640
+ returnUrl = _ref56.returnUrl,
641
+ params = _objectWithoutPropertiesLoose(_ref56, _excluded7);
636
642
  return "/bind" + handleQuery(_extends({
637
643
  goTo: goTo ? encodeURIComponent(goTo) : undefined,
638
644
  returnUrl: returnUrl ? encodeURIComponent(returnUrl) : undefined
639
645
  }, params));
640
646
  }
641
647
  function retrieveUserPassword(_temp22) {
642
- var _ref55 = _temp22 === void 0 ? {} : _temp22,
643
- goTo = _ref55.goTo;
648
+ var _ref57 = _temp22 === void 0 ? {} : _temp22,
649
+ goTo = _ref57.goTo;
644
650
  return "/retrieve" + handleQuery({
645
651
  goTo: goTo ? encodeURIComponent(goTo) : undefined
646
652
  });
@@ -662,8 +668,8 @@ function reward(_temp26) {
662
668
  return "/logged/reward";
663
669
  }
664
670
  function contract(_temp27) {
665
- var _ref60 = _temp27 === void 0 ? {} : _temp27,
666
- params = _extends({}, (_objectDestructuringEmpty(_ref60), _ref60));
671
+ var _ref62 = _temp27 === void 0 ? {} : _temp27,
672
+ params = _extends({}, (_objectDestructuringEmpty(_ref62), _ref62));
667
673
  return "/logged/contract" + handleQuery(_extends({}, params));
668
674
  }
669
675
  function setting(_temp28) {
@@ -746,8 +752,10 @@ var LinkTo = {
746
752
  nodeFreeze: nodeFreeze,
747
753
  resourceFreeze: resourceFreeze,
748
754
  globalSearch: globalSearch,
755
+ settlementInfoCreator: settlementInfoCreator,
749
756
  settlementInfo: settlementInfo,
750
757
  settlementInfoEditor: settlementInfoEditor,
758
+ settlementBankCardEditor: settlementBankCardEditor,
751
759
  login: login,
752
760
  logon: logon,
753
761
  bind: bind,
@@ -3067,9 +3075,9 @@ function policyTemplates(params) {
3067
3075
  params = {};
3068
3076
  }
3069
3077
  return FUtil.Request({
3070
- method: 'GET',
3078
+ method: 'POST',
3071
3079
  url: "/v2/translate/translate-config/list4Client",
3072
- params: params
3080
+ data: params
3073
3081
  });
3074
3082
  }
3075
3083
  function policyReCompile(data) {
@@ -3394,7 +3402,8 @@ var ResourceType = {
3394
3402
  getInfoByCodeOrName: getInfoByCodeOrName
3395
3403
  };
3396
3404
 
3397
- var _excluded$a = ["accountId"];
3405
+ var _excluded$a = ["accountId"],
3406
+ _excluded2$7 = ["accountId"];
3398
3407
  function uploadIDCard(params, config) {
3399
3408
  var formData = new FormData();
3400
3409
  for (var _i = 0, _Object$entries = Object.entries(params); _i < _Object$entries.length; _i++) {
@@ -3418,9 +3427,18 @@ function openFinancialAccount(params, config) {
3418
3427
  data: params
3419
3428
  }, config));
3420
3429
  }
3421
- function bindWithdrawCard(_ref, config) {
3430
+ function updateFinancialAccount(_ref, config) {
3422
3431
  var accountId = _ref.accountId,
3423
3432
  params = _objectWithoutPropertiesLoose(_ref, _excluded$a);
3433
+ return FUtil.Request(_extends({
3434
+ method: 'PUT',
3435
+ url: "/v3/transactions/accounts/" + accountId,
3436
+ data: params
3437
+ }, config));
3438
+ }
3439
+ function bindWithdrawCard(_ref2, config) {
3440
+ var accountId = _ref2.accountId,
3441
+ params = _objectWithoutPropertiesLoose(_ref2, _excluded2$7);
3424
3442
  return FUtil.Request(_extends({
3425
3443
  method: 'POST',
3426
3444
  url: "/v3/transactions/accounts/" + accountId + "/bindCashCard",
@@ -3434,8 +3452,15 @@ function queryFinancialAccountInfo(params, config) {
3434
3452
  params: params
3435
3453
  }, config));
3436
3454
  }
3437
- function queryBindWithdrawCard(_ref2, config) {
3438
- var accountId = _ref2.accountId;
3455
+ function queryFinancialAccountInfo2(_ref3, config) {
3456
+ var accountId = _ref3.accountId;
3457
+ return FUtil.Request(_extends({
3458
+ method: 'GET',
3459
+ url: "/v3/transactions/accounts/" + accountId
3460
+ }, config));
3461
+ }
3462
+ function queryBindWithdrawCard(_ref4, config) {
3463
+ var accountId = _ref4.accountId;
3439
3464
  return FUtil.Request(_extends({
3440
3465
  method: 'GET',
3441
3466
  url: "/v3/transactions/accounts/" + accountId + "/cashCard"
@@ -3474,8 +3499,10 @@ var Payment = {
3474
3499
  __proto__: null,
3475
3500
  uploadIDCard: uploadIDCard,
3476
3501
  openFinancialAccount: openFinancialAccount,
3502
+ updateFinancialAccount: updateFinancialAccount,
3477
3503
  bindWithdrawCard: bindWithdrawCard,
3478
3504
  queryFinancialAccountInfo: queryFinancialAccountInfo,
3505
+ queryFinancialAccountInfo2: queryFinancialAccountInfo2,
3479
3506
  queryBindWithdrawCard: queryBindWithdrawCard,
3480
3507
  withdrawCash: withdrawCash,
3481
3508
  queryWithdrawCashList: queryWithdrawCashList