gotrip-fx-transaction-form 1.0.139 → 1.0.141

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gotrip-fx-transaction-form",
3
- "version": "1.0.139",
3
+ "version": "1.0.141",
4
4
  "description": "FX Transaction Form ES6 module",
5
5
  "main": "index.js",
6
6
  "types": "types/index.d.ts",
@@ -0,0 +1,13 @@
1
+ type FileViewerProps = {
2
+ file: {
3
+ url: string;
4
+ originalName?: string;
5
+ type?: string;
6
+ };
7
+ width?: string | number;
8
+ height?: string | number;
9
+ showOpenButton?: boolean;
10
+ onClick?: () => void;
11
+ };
12
+ export declare const FileViewer: ({ file, width, height, showOpenButton, onClick, }: FileViewerProps) => import("react/jsx-runtime").JSX.Element;
13
+ export {};
@@ -0,0 +1,9 @@
1
+ type SortField = 'travellerLastName' | 'travellerPhone' | 'passport' | 'ticketNumber' | 'reservationNumber' | 'airlineName' | 'departureDate' | 'amount' | 'createdAt';
2
+ type SortDirection = 'asc' | 'desc' | null;
3
+ type Props = {
4
+ onSortChange: (field: SortField | null, direction: SortDirection) => void;
5
+ currentField?: SortField | null;
6
+ currentDirection?: SortDirection;
7
+ };
8
+ export declare const SortDropdown: ({ onSortChange, currentField, currentDirection }: Props) => import("react/jsx-runtime").JSX.Element;
9
+ export {};
@@ -96,6 +96,8 @@ export declare const ApiUrls: {
96
96
  userProfile: string;
97
97
  uploadIdentityCardImages: string;
98
98
  changePassword: string;
99
+ requestOtp: string;
100
+ changePasswordWithOtp: string;
99
101
  list: string;
100
102
  approveUser: string;
101
103
  bookerList: string;
@@ -15,6 +15,10 @@ export declare enum BusinessCodes {
15
15
  TOKEN_INVALID_OR_EXPIRED = "B_013",
16
16
  TOKEN_VERIFY_CONFIRMED = "B_014",
17
17
  EMAIL_ALREADY_VERIFIED = "B_053",
18
+ INVALID_OTP = "B_054",
19
+ OTP_EXPIRED = "B_055",
20
+ EMAIL_SEND_FAILED = "B_056",
21
+ PASSWORD_MISMATCH = "B_057",
18
22
  CUSTOMER_NO_BANK_ACCOUNT = "B_015",
19
23
  TENANT_NOT_FOUND = "B_100",
20
24
  TENANT_ALREADY_EXISTS = "B_101",
@@ -3,6 +3,7 @@ import { TransactionStatus } from '../../types/enum';
3
3
  export declare const useGroupTransactions: () => {
4
4
  getValues: import('react-hook-form').UseFormGetValues<{
5
5
  customers?: {
6
+ maxAmount?: number | undefined;
6
7
  name: string;
7
8
  status: TransactionStatus;
8
9
  amount: number;
@@ -17,6 +18,7 @@ export declare const useGroupTransactions: () => {
17
18
  }>;
18
19
  setValue: import('react-hook-form').UseFormSetValue<{
19
20
  customers?: {
21
+ maxAmount?: number | undefined;
20
22
  name: string;
21
23
  status: TransactionStatus;
22
24
  amount: number;
@@ -31,6 +33,7 @@ export declare const useGroupTransactions: () => {
31
33
  }>;
32
34
  watch: import('react-hook-form').UseFormWatch<{
33
35
  customers?: {
36
+ maxAmount?: number | undefined;
34
37
  name: string;
35
38
  status: TransactionStatus;
36
39
  amount: number;
@@ -45,6 +48,7 @@ export declare const useGroupTransactions: () => {
45
48
  }>;
46
49
  trigger: import('react-hook-form').UseFormTrigger<{
47
50
  customers?: {
51
+ maxAmount?: number | undefined;
48
52
  name: string;
49
53
  status: TransactionStatus;
50
54
  amount: number;
@@ -59,6 +63,7 @@ export declare const useGroupTransactions: () => {
59
63
  }>;
60
64
  reset: import('react-hook-form').UseFormReset<{
61
65
  customers?: {
66
+ maxAmount?: number | undefined;
62
67
  name: string;
63
68
  status: TransactionStatus;
64
69
  amount: number;
@@ -73,6 +78,7 @@ export declare const useGroupTransactions: () => {
73
78
  }>;
74
79
  handleSubmit: import('react-hook-form').UseFormHandleSubmit<{
75
80
  customers?: {
81
+ maxAmount?: number | undefined;
76
82
  name: string;
77
83
  status: TransactionStatus;
78
84
  amount: number;
@@ -87,6 +93,7 @@ export declare const useGroupTransactions: () => {
87
93
  }, undefined>;
88
94
  errors: import('react-hook-form').FieldErrors<{
89
95
  customers?: {
96
+ maxAmount?: number | undefined;
90
97
  name: string;
91
98
  status: TransactionStatus;
92
99
  amount: number;
@@ -101,6 +108,7 @@ export declare const useGroupTransactions: () => {
101
108
  }>;
102
109
  register: import('react-hook-form').UseFormRegister<{
103
110
  customers?: {
111
+ maxAmount?: number | undefined;
104
112
  name: string;
105
113
  status: TransactionStatus;
106
114
  amount: number;
@@ -123,6 +131,7 @@ export declare const useGroupTransactions: () => {
123
131
  loading: boolean;
124
132
  setError: import('react-hook-form').UseFormSetError<{
125
133
  customers?: {
134
+ maxAmount?: number | undefined;
126
135
  name: string;
127
136
  status: TransactionStatus;
128
137
  amount: number;
@@ -137,6 +146,7 @@ export declare const useGroupTransactions: () => {
137
146
  }>;
138
147
  clearErrors: import('react-hook-form').UseFormClearErrors<{
139
148
  customers?: {
149
+ maxAmount?: number | undefined;
140
150
  name: string;
141
151
  status: TransactionStatus;
142
152
  amount: number;
@@ -1,66 +1,25 @@
1
1
  import { ITransaction } from '../../types/response.dto';
2
2
  import { TransactionStatus } from '../../types/enum';
3
+ type TransactionFormData = {
4
+ amount: number;
5
+ maxAmount?: number;
6
+ exchangeRate: number;
7
+ status: TransactionStatus;
8
+ receiptCreatedAt?: string;
9
+ bankTransactionId?: string;
10
+ };
3
11
  export declare const useGuestTransaction: () => {
4
12
  loading: boolean;
5
- getValues: import('react-hook-form').UseFormGetValues<{
6
- receiptCreatedAt?: string | undefined;
7
- status: TransactionStatus;
8
- amount: number;
9
- exchangeRate: number;
10
- }>;
11
- setValue: import('react-hook-form').UseFormSetValue<{
12
- receiptCreatedAt?: string | undefined;
13
- status: TransactionStatus;
14
- amount: number;
15
- exchangeRate: number;
16
- }>;
17
- watch: import('react-hook-form').UseFormWatch<{
18
- receiptCreatedAt?: string | undefined;
19
- status: TransactionStatus;
20
- amount: number;
21
- exchangeRate: number;
22
- }>;
23
- trigger: import('react-hook-form').UseFormTrigger<{
24
- receiptCreatedAt?: string | undefined;
25
- status: TransactionStatus;
26
- amount: number;
27
- exchangeRate: number;
28
- }>;
29
- reset: import('react-hook-form').UseFormReset<{
30
- receiptCreatedAt?: string | undefined;
31
- status: TransactionStatus;
32
- amount: number;
33
- exchangeRate: number;
34
- }>;
35
- handleSubmit: import('react-hook-form').UseFormHandleSubmit<{
36
- receiptCreatedAt?: string | undefined;
37
- status: TransactionStatus;
38
- amount: number;
39
- exchangeRate: number;
40
- }, undefined>;
41
- errors: import('react-hook-form').FieldErrors<{
42
- receiptCreatedAt?: string | undefined;
43
- status: TransactionStatus;
44
- amount: number;
45
- exchangeRate: number;
46
- }>;
47
- register: import('react-hook-form').UseFormRegister<{
48
- receiptCreatedAt?: string | undefined;
49
- status: TransactionStatus;
50
- amount: number;
51
- exchangeRate: number;
52
- }>;
53
- setError: import('react-hook-form').UseFormSetError<{
54
- receiptCreatedAt?: string | undefined;
55
- status: TransactionStatus;
56
- amount: number;
57
- exchangeRate: number;
58
- }>;
59
- clearErrors: import('react-hook-form').UseFormClearErrors<{
60
- receiptCreatedAt?: string | undefined;
61
- status: TransactionStatus;
62
- amount: number;
63
- exchangeRate: number;
64
- }>;
13
+ getValues: import('react-hook-form').UseFormGetValues<TransactionFormData>;
14
+ setValue: import('react-hook-form').UseFormSetValue<TransactionFormData>;
15
+ watch: import('react-hook-form').UseFormWatch<TransactionFormData>;
16
+ trigger: import('react-hook-form').UseFormTrigger<TransactionFormData>;
17
+ reset: import('react-hook-form').UseFormReset<TransactionFormData>;
18
+ handleSubmit: import('react-hook-form').UseFormHandleSubmit<TransactionFormData, undefined>;
19
+ errors: import('react-hook-form').FieldErrors<TransactionFormData>;
20
+ register: import('react-hook-form').UseFormRegister<TransactionFormData>;
21
+ setError: import('react-hook-form').UseFormSetError<TransactionFormData>;
22
+ clearErrors: import('react-hook-form').UseFormClearErrors<TransactionFormData>;
65
23
  updateTransactionInfo: (transactionId: number, transaction: ITransaction) => Promise<boolean>;
66
24
  };
25
+ export {};
@@ -20,5 +20,7 @@ export declare const useTransactionList: ({ defaultLimit, defaultFilter, startDa
20
20
  setLimit: (limit: number) => void;
21
21
  setFilter: import('react').Dispatch<import('react').SetStateAction<GetTransactionListReqDto>>;
22
22
  setLoading: import('react').Dispatch<import('react').SetStateAction<boolean>>;
23
+ setSelectedTransaction: import('react').Dispatch<import('react').SetStateAction<ITransaction | null>>;
24
+ selectedTransaction: ITransaction | null;
23
25
  };
24
26
  export {};
@@ -0,0 +1 @@
1
+ export declare const ChangePasswordPage: () => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,8 @@
1
+ import { ITransaction } from '../../../types/response.dto';
2
+ type Props = {
3
+ transaction: ITransaction;
4
+ setLoading?: (loading: boolean) => void;
5
+ refetchData?: () => void;
6
+ };
7
+ export declare const Actions: ({ transaction, setLoading, refetchData }: Props) => import("react/jsx-runtime").JSX.Element;
8
+ export {};
@@ -0,0 +1,6 @@
1
+ type Props = {
2
+ type: 'hidden' | 'checking' | 'not-yet';
3
+ checkerName: string;
4
+ };
5
+ export declare const CheckingTicketIndicator: ({ type, checkerName }: Props) => import("react/jsx-runtime").JSX.Element;
6
+ export {};
@@ -0,0 +1,8 @@
1
+ import { ITransaction } from '../../../types/response.dto';
2
+ type Props = {
3
+ transaction?: ITransaction | null;
4
+ onClose?: () => void;
5
+ refetchData?: () => void;
6
+ };
7
+ export declare const DetailPanel: ({ transaction, onClose, refetchData }: Props) => import("react/jsx-runtime").JSX.Element;
8
+ export {};
@@ -0,0 +1,6 @@
1
+ import { ITransaction } from '../../../types/response.dto';
2
+ type Props = {
3
+ transaction: ITransaction;
4
+ };
5
+ export declare const FxType: ({ transaction }: Props) => import("react/jsx-runtime").JSX.Element;
6
+ export {};
@@ -0,0 +1,12 @@
1
+ import { ReactNode } from 'react';
2
+ type Props = {
3
+ number: number;
4
+ title: string;
5
+ data: any;
6
+ color: string;
7
+ bgColor?: string;
8
+ borderColor?: string;
9
+ extraContent?: ReactNode;
10
+ };
11
+ export declare const LogBox: ({ number, title, data, color, bgColor, borderColor, extraContent, }: Props) => import("react/jsx-runtime").JSX.Element;
12
+ export {};
@@ -0,0 +1,9 @@
1
+ import { ITransaction } from '../../../types/response.dto';
2
+ type Props = {
3
+ transaction: ITransaction;
4
+ selected?: boolean;
5
+ onSelect?: () => void;
6
+ onViewFiles?: () => void;
7
+ };
8
+ export declare const TransactionCard: ({ transaction, selected, onSelect, onViewFiles, }: Props) => import("react/jsx-runtime").JSX.Element;
9
+ export {};
@@ -1,5 +1 @@
1
- type Props = {
2
- defaultLimit?: number;
3
- };
4
- export declare const TransactionList: ({ defaultLimit }: Props) => import("react/jsx-runtime").JSX.Element;
5
- export {};
1
+ export declare const TransactionList: () => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,9 @@
1
+ import { ETenantType, TransactionStatus } from '../../../types/enum';
2
+ type Props = {
3
+ status: TransactionStatus;
4
+ bankStatus?: string;
5
+ onClick?: () => void;
6
+ type?: ETenantType;
7
+ };
8
+ export declare const TransactionStatusBadge: ({ status, bankStatus, onClick, type }: Props) => import("react/jsx-runtime").JSX.Element;
9
+ export {};
@@ -70,6 +70,7 @@ export type ITransaction = {
70
70
  fxTransactionId?: number;
71
71
  publicId: string;
72
72
  amount: number;
73
+ maxAmount?: number;
73
74
  comission: number;
74
75
  exchangeRate: number;
75
76
  receiptCreatedAt?: Date;
@@ -102,6 +103,8 @@ export type ITransaction = {
102
103
  bids?: IBid[];
103
104
  znsInfo?: IZNSInfo;
104
105
  fileUrls?: IFileUrls;
106
+ cancelledAt?: string;
107
+ cancelledResponse?: Record<string, any>;
105
108
  };
106
109
  export type IESimTransaction = {
107
110
  id: number;