gotrip-fx-transaction-form 1.0.76 → 1.0.78
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/index.js +16703 -16764
- package/package.json +1 -1
- package/types/components/TransactionList/CurrencySelectionInput.d.ts +1 -2
- package/types/constants/api-urls.d.ts +1 -1
- package/types/hooks/useConfirmTransaction.d.ts +2 -2
- package/types/hooks/useTransactionList.d.ts +2 -2
- package/types/types/response.dto.d.ts +16 -1
package/package.json
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { Currency } from '../../types/response.dto';
|
|
2
1
|
type Props = {
|
|
3
|
-
currencies:
|
|
2
|
+
currencies: string[];
|
|
4
3
|
onSelectCurrency: (v: string) => void;
|
|
5
4
|
};
|
|
6
5
|
export declare const CurrencySelectionInput: ({ currencies, onSelectCurrency }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TransactionStatus } from '../types/enum';
|
|
2
|
-
import { ITransaction, IUser } from '../types/response.dto';
|
|
2
|
+
import { IAgent, ITransaction, IUser } from '../types/response.dto';
|
|
3
3
|
export type ConfirmTransactionData = {
|
|
4
4
|
code: string;
|
|
5
5
|
data: {
|
|
@@ -31,7 +31,7 @@ export declare const useConfirmTransaction: () => {
|
|
|
31
31
|
agent?: IUser;
|
|
32
32
|
groupTransactions?: ITransaction[];
|
|
33
33
|
} | null;
|
|
34
|
-
agent:
|
|
34
|
+
agent: IAgent | null;
|
|
35
35
|
groupTransactions: ITransaction[];
|
|
36
36
|
isLoading: boolean;
|
|
37
37
|
confirmTransaction: () => Promise<void>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ITenant, ITransaction } from '../types/response.dto';
|
|
2
2
|
import { GetTransactionListReqDto } from '../types/request.dto';
|
|
3
3
|
type Props = {
|
|
4
4
|
defaultLimit?: number;
|
|
@@ -6,7 +6,7 @@ type Props = {
|
|
|
6
6
|
};
|
|
7
7
|
export declare const useTransactionList: ({ defaultLimit, defaultFilter }: Props) => {
|
|
8
8
|
transactions: ITransaction[];
|
|
9
|
-
currencies:
|
|
9
|
+
currencies: string[];
|
|
10
10
|
banks: ITenant[];
|
|
11
11
|
total: number;
|
|
12
12
|
loading: boolean;
|
|
@@ -46,6 +46,11 @@ export declare enum ETransactionType {
|
|
|
46
46
|
BUSINESS = "BUSINESS",
|
|
47
47
|
IMMIGRATION = "IMMIGRATION"
|
|
48
48
|
}
|
|
49
|
+
export type IAgent = {
|
|
50
|
+
name: string;
|
|
51
|
+
phone: string;
|
|
52
|
+
identityNumber: string;
|
|
53
|
+
};
|
|
49
54
|
export type ITransaction = {
|
|
50
55
|
id: number;
|
|
51
56
|
fxTransactionId?: number;
|
|
@@ -72,7 +77,7 @@ export type ITransaction = {
|
|
|
72
77
|
ticket?: ITicket;
|
|
73
78
|
bank?: ITenant;
|
|
74
79
|
user?: IUser;
|
|
75
|
-
agent?:
|
|
80
|
+
agent?: IAgent;
|
|
76
81
|
totalSubTransaction?: number;
|
|
77
82
|
totalApprovedTransaction?: number;
|
|
78
83
|
totalRejectedTransaction?: number;
|
|
@@ -285,4 +290,14 @@ export declare enum EBalanceHistoryType {
|
|
|
285
290
|
REFUND = "REFUND",// hoàn tiền
|
|
286
291
|
USE = "USE"
|
|
287
292
|
}
|
|
293
|
+
export type ExchangeRateHistoryItem = {
|
|
294
|
+
bankShortName: string;
|
|
295
|
+
name: string;
|
|
296
|
+
exchangeRate: number;
|
|
297
|
+
date: string;
|
|
298
|
+
currencyCode: string;
|
|
299
|
+
};
|
|
300
|
+
export type ExchangeRateHistoryResponse = {
|
|
301
|
+
[key: string]: ExchangeRateHistoryItem[];
|
|
302
|
+
};
|
|
288
303
|
export {};
|