@freelog/tools-lib 0.1.198 → 0.1.201

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,9 @@ declare class I18nNext {
16
16
  tJSXElement(this: I18nNext, key: string, options?: {
17
17
  [key: string]: any;
18
18
  }): string | JSX.Element | JSX.Element[];
19
+ tAuto(this: I18nNext, key: string, options?: {
20
+ [key: string]: any;
21
+ }): string | JSX.Element | JSX.Element[];
19
22
  changeLanguage(this: I18nNext, lng: LanguageKeyType): void;
20
23
  getAllLanguage(this: I18nNext): typeof allLanguage;
21
24
  getCurrentLanguage(this: I18nNext): LanguageKeyType;
@@ -1,12 +1,12 @@
1
1
  interface SendVerificationCodeParamsType {
2
2
  loginName: string;
3
- authCodeType: 'register' | 'resetPassword' | 'activateTransactionAccount' | 'updateTransactionAccountPwd' | 'updateMobileOrEmail';
3
+ authCodeType: 'register' | 'resetPassword' | 'activateTransactionAccount' | 'updateTransactionAccountPwd' | 'updateMobileOrEmail' | 'activateTransactionAccount';
4
4
  }
5
5
  export declare function sendVerificationCode(params: SendVerificationCodeParamsType): Promise<any>;
6
6
  interface VerifyVerificationCodeParamsType {
7
7
  authCode: string;
8
8
  address: string;
9
- authCodeType: 'register' | 'resetPassword' | 'activateTransactionAccount' | 'updateTransactionAccountPwd' | 'updateMobileOrEmail';
9
+ authCodeType: 'register' | 'resetPassword' | 'activateTransactionAccount' | 'updateTransactionAccountPwd' | 'updateMobileOrEmail' | 'activateTransactionAccount';
10
10
  }
11
11
  export declare function verifyVerificationCode(params: VerifyVerificationCodeParamsType): Promise<any>;
12
12
  export {};
@@ -29,7 +29,6 @@ export declare function updateFinancialAccount({ accountId, ...params }: UpdateF
29
29
  interface BindWithdrawCardParamsType {
30
30
  accountId: string;
31
31
  cardType: 0 | 1 | 2 | 4;
32
- bankName: string;
33
32
  cardNo: string;
34
33
  provId: string;
35
34
  areaId: string;
@@ -69,8 +68,8 @@ interface QueryTransactionListParamsType {
69
68
  skip?: number;
70
69
  limit?: number;
71
70
  ownerId: number;
72
- ownerType: 1 | 2;
73
- transactionStatus?: 1 | 2 | 3;
71
+ ownerType: 1 | 2 | 3;
72
+ transactionStatus?: 1 | 2;
74
73
  businessType?: 'ContractRoutinePayment';
75
74
  minTransactionAmount?: number;
76
75
  maxTransactionAmount?: number;
@@ -79,4 +78,11 @@ interface QueryTransactionListParamsType {
79
78
  keywords?: string;
80
79
  }
81
80
  export declare function queryTransactionList(params: QueryTransactionListParamsType, config?: AxiosRequestConfig): Promise<any>;
81
+ interface QueryStatisticsParamsType {
82
+ ownerId: number;
83
+ ownerType: 1 | 2;
84
+ startTransactionDate: string;
85
+ endTransactionDate: string;
86
+ }
87
+ export declare function queryStatistics(params: QueryStatisticsParamsType, config?: AxiosRequestConfig): Promise<any>;
82
88
  export {};
@@ -3494,6 +3494,13 @@ function queryTransactionList(params, config) {
3494
3494
  params: params
3495
3495
  }, config));
3496
3496
  }
3497
+ function queryStatistics(params, config) {
3498
+ return FUtil.Request(_extends({
3499
+ method: 'GET',
3500
+ url: "/v3/transactions/statistics",
3501
+ params: params
3502
+ }, config));
3503
+ }
3497
3504
 
3498
3505
  var Payment = {
3499
3506
  __proto__: null,
@@ -3507,7 +3514,8 @@ var Payment = {
3507
3514
  queryWithdrawStatus: queryWithdrawStatus,
3508
3515
  withdrawCash: withdrawCash,
3509
3516
  queryWithdrawCashList: queryWithdrawCashList,
3510
- queryTransactionList: queryTransactionList
3517
+ queryTransactionList: queryTransactionList,
3518
+ queryStatistics: queryStatistics
3511
3519
  };
3512
3520
 
3513
3521
  var FServiceAPI = {
@@ -3792,6 +3800,13 @@ var I18nNext = /*#__PURE__*/function () {
3792
3800
  _proto.tJSXElement = function tJSXElement(key, options) {
3793
3801
  return htmlReactParser(i18next.t(key.trim(), options));
3794
3802
  };
3803
+ _proto.tAuto = function tAuto(key, options) {
3804
+ var i18n_str = i18next.t(key.trim(), options);
3805
+ if (!i18n_str.startsWith('<div class="i18n"')) {
3806
+ return i18n_str;
3807
+ }
3808
+ return htmlReactParser(i18n_str);
3809
+ };
3795
3810
  _proto.changeLanguage = function changeLanguage(lng) {
3796
3811
  // return i18next.changeLanguage(lng);
3797
3812
  // window.localStorage.setItem(localStorage_i18nextLng_key, lng)