gotrip-fx-transaction-form 1.0.11 → 1.0.13

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.11",
3
+ "version": "1.0.13",
4
4
  "description": "FX Transaction Form ES6 module",
5
5
  "main": "index.js",
6
6
  "types": "types/index.d.ts",
@@ -0,0 +1,6 @@
1
+ import { default as React } from 'react';
2
+ interface MaintenanceAppProps {
3
+ children: React.ReactNode;
4
+ }
5
+ export declare const MaintenanceApp: React.FC<MaintenanceAppProps>;
6
+ export {};
@@ -3,6 +3,9 @@ export declare const ApiUrls: {
3
3
  login: string;
4
4
  register: string;
5
5
  registerSupervisor: string;
6
+ forgotPassword: string;
7
+ resetPassword: string;
8
+ verifyResetToken: string;
6
9
  };
7
10
  transactionHandlers: {
8
11
  list: string;
@@ -2,6 +2,7 @@ export declare enum BusinessCodes {
2
2
  OK = "B_000",
3
3
  FAIL = "B_001",
4
4
  CONFIRM_ON_SAT_OR_SUN = "B_002",
5
+ COMFIRM_OUT_OF_WORKING_HOURS = "B_012",
5
6
  TRANSACTION_NOT_FOUND = "B_003",
6
7
  TRANSACTION_SENT_TO_BANK = "B_004",
7
8
  TICKET_CANCELLED = "B_005",
@@ -10,5 +11,8 @@ export declare enum BusinessCodes {
10
11
  EMAIL_ALREADY_EXISTS = "B_008",
11
12
  PHONE_ALREADY_EXISTS = "B_009",
12
13
  INVALID_PASSWORD = "B_010",
13
- USER_NOT_ACTIVE = "B_011"
14
+ USER_NOT_ACTIVE = "B_011",
15
+ TOKEN_INVALID_OR_EXPIRED = "B_013",
16
+ TOKEN_VERIFY_CONFIRMED = "B_014",
17
+ CUSTOMER_NO_BANK_ACCOUNT = "B_015"
14
18
  }
@@ -2,4 +2,5 @@ export declare const Env: {
2
2
  API_URL: any;
3
3
  BUILD_FOR: any;
4
4
  BOOKER_URL: any;
5
+ MAINTENANCE_MODE: boolean;
5
6
  };
@@ -1,5 +1,5 @@
1
- import { Currency } from '../types/response.dto';
2
1
  import { ChangeEvent } from 'react';
2
+ import { Bank } from '../components/AddTransaction/BankList';
3
3
  import * as yup from 'yup';
4
4
  declare const onePersonSchema: yup.ObjectSchema<{
5
5
  ticketCode: string | undefined;
@@ -7,8 +7,8 @@ declare const onePersonSchema: yup.ObjectSchema<{
7
7
  passportNo: string;
8
8
  idNo: string;
9
9
  mobileNo: string;
10
- currencyCode: string;
11
- bankCode: string;
10
+ currencyCode: string | undefined;
11
+ bankCode: string | undefined;
12
12
  bankName: string | undefined;
13
13
  amount: number;
14
14
  reservationNumber: string;
@@ -24,38 +24,12 @@ declare const onePersonSchema: yup.ObjectSchema<{
24
24
  amount: undefined;
25
25
  reservationNumber: undefined;
26
26
  }, "">;
27
- declare const groupOfPeopleSchema: yup.ObjectSchema<{
28
- lastName: string | undefined;
29
- airlineCode: string;
30
- airlineName: string;
31
- departureDate: string;
32
- countryCodeDes: string;
33
- countryNameDes: string;
34
- customers: {
35
- ticketCode?: string | undefined;
36
- bankName?: string | undefined;
37
- reservationNumber: string;
38
- customerName: string;
39
- passportNo: string;
40
- idNo: string;
41
- mobileNo: string;
42
- amount: number;
43
- currencyCode: string;
44
- bankCode: string;
45
- }[] | undefined;
46
- }, yup.AnyObject, {
47
- lastName: undefined;
48
- airlineCode: undefined;
49
- airlineName: undefined;
50
- departureDate: undefined;
51
- countryCodeDes: undefined;
52
- countryNameDes: undefined;
53
- customers: "";
54
- }, "">;
55
27
  export declare const useGroupCustomers: (onFinish: () => void) => {
28
+ showAuthorizationLetter: boolean;
29
+ setShowAuthorizationLetter: import('react').Dispatch<import('react').SetStateAction<boolean>>;
56
30
  onFindFlightInfo: (customer: yup.InferType<typeof onePersonSchema>) => Promise<void>;
57
31
  inputFileRef: import('react').RefObject<HTMLInputElement>;
58
- currencies: Currency[];
32
+ currencies: string[];
59
33
  file: File | null;
60
34
  currencyOptions: {
61
35
  label: string;
@@ -64,6 +38,8 @@ export declare const useGroupCustomers: (onFinish: () => void) => {
64
38
  getValues: import('react-hook-form').UseFormGetValues<{
65
39
  customers?: {
66
40
  ticketCode?: string | undefined;
41
+ currencyCode?: string | undefined;
42
+ bankCode?: string | undefined;
67
43
  bankName?: string | undefined;
68
44
  reservationNumber: string;
69
45
  customerName: string;
@@ -71,8 +47,6 @@ export declare const useGroupCustomers: (onFinish: () => void) => {
71
47
  idNo: string;
72
48
  mobileNo: string;
73
49
  amount: number;
74
- currencyCode: string;
75
- bankCode: string;
76
50
  }[] | undefined;
77
51
  lastName?: string | undefined;
78
52
  airlineCode: string;
@@ -84,6 +58,8 @@ export declare const useGroupCustomers: (onFinish: () => void) => {
84
58
  setValue: import('react-hook-form').UseFormSetValue<{
85
59
  customers?: {
86
60
  ticketCode?: string | undefined;
61
+ currencyCode?: string | undefined;
62
+ bankCode?: string | undefined;
87
63
  bankName?: string | undefined;
88
64
  reservationNumber: string;
89
65
  customerName: string;
@@ -91,8 +67,6 @@ export declare const useGroupCustomers: (onFinish: () => void) => {
91
67
  idNo: string;
92
68
  mobileNo: string;
93
69
  amount: number;
94
- currencyCode: string;
95
- bankCode: string;
96
70
  }[] | undefined;
97
71
  lastName?: string | undefined;
98
72
  airlineCode: string;
@@ -104,6 +78,8 @@ export declare const useGroupCustomers: (onFinish: () => void) => {
104
78
  watch: import('react-hook-form').UseFormWatch<{
105
79
  customers?: {
106
80
  ticketCode?: string | undefined;
81
+ currencyCode?: string | undefined;
82
+ bankCode?: string | undefined;
107
83
  bankName?: string | undefined;
108
84
  reservationNumber: string;
109
85
  customerName: string;
@@ -111,8 +87,6 @@ export declare const useGroupCustomers: (onFinish: () => void) => {
111
87
  idNo: string;
112
88
  mobileNo: string;
113
89
  amount: number;
114
- currencyCode: string;
115
- bankCode: string;
116
90
  }[] | undefined;
117
91
  lastName?: string | undefined;
118
92
  airlineCode: string;
@@ -124,6 +98,8 @@ export declare const useGroupCustomers: (onFinish: () => void) => {
124
98
  trigger: import('react-hook-form').UseFormTrigger<{
125
99
  customers?: {
126
100
  ticketCode?: string | undefined;
101
+ currencyCode?: string | undefined;
102
+ bankCode?: string | undefined;
127
103
  bankName?: string | undefined;
128
104
  reservationNumber: string;
129
105
  customerName: string;
@@ -131,8 +107,6 @@ export declare const useGroupCustomers: (onFinish: () => void) => {
131
107
  idNo: string;
132
108
  mobileNo: string;
133
109
  amount: number;
134
- currencyCode: string;
135
- bankCode: string;
136
110
  }[] | undefined;
137
111
  lastName?: string | undefined;
138
112
  airlineCode: string;
@@ -144,6 +118,8 @@ export declare const useGroupCustomers: (onFinish: () => void) => {
144
118
  reset: import('react-hook-form').UseFormReset<{
145
119
  customers?: {
146
120
  ticketCode?: string | undefined;
121
+ currencyCode?: string | undefined;
122
+ bankCode?: string | undefined;
147
123
  bankName?: string | undefined;
148
124
  reservationNumber: string;
149
125
  customerName: string;
@@ -151,8 +127,6 @@ export declare const useGroupCustomers: (onFinish: () => void) => {
151
127
  idNo: string;
152
128
  mobileNo: string;
153
129
  amount: number;
154
- currencyCode: string;
155
- bankCode: string;
156
130
  }[] | undefined;
157
131
  lastName?: string | undefined;
158
132
  airlineCode: string;
@@ -162,10 +136,39 @@ export declare const useGroupCustomers: (onFinish: () => void) => {
162
136
  countryNameDes: string;
163
137
  }>;
164
138
  onSelectFile: (event: ChangeEvent<HTMLInputElement>) => Promise<void>;
165
- onSubmit: (data: yup.InferType<typeof groupOfPeopleSchema>) => Promise<void>;
139
+ onSubmit: (data: yup.InferType<yup.ObjectSchema<{
140
+ lastName: string | undefined;
141
+ airlineCode: string;
142
+ airlineName: string;
143
+ departureDate: string;
144
+ countryCodeDes: string;
145
+ countryNameDes: string;
146
+ customers: {
147
+ ticketCode?: string | undefined;
148
+ currencyCode?: string | undefined;
149
+ bankCode?: string | undefined;
150
+ bankName?: string | undefined;
151
+ reservationNumber: string;
152
+ customerName: string;
153
+ passportNo: string;
154
+ idNo: string;
155
+ mobileNo: string;
156
+ amount: number;
157
+ }[] | undefined;
158
+ }, yup.AnyObject, {
159
+ lastName: undefined;
160
+ airlineCode: undefined;
161
+ airlineName: undefined;
162
+ departureDate: undefined;
163
+ countryCodeDes: undefined;
164
+ countryNameDes: undefined;
165
+ customers: "";
166
+ }, "">>) => Promise<void>;
166
167
  handleSubmit: import('react-hook-form').UseFormHandleSubmit<{
167
168
  customers?: {
168
169
  ticketCode?: string | undefined;
170
+ currencyCode?: string | undefined;
171
+ bankCode?: string | undefined;
169
172
  bankName?: string | undefined;
170
173
  reservationNumber: string;
171
174
  customerName: string;
@@ -173,8 +176,6 @@ export declare const useGroupCustomers: (onFinish: () => void) => {
173
176
  idNo: string;
174
177
  mobileNo: string;
175
178
  amount: number;
176
- currencyCode: string;
177
- bankCode: string;
178
179
  }[] | undefined;
179
180
  lastName?: string | undefined;
180
181
  airlineCode: string;
@@ -186,6 +187,8 @@ export declare const useGroupCustomers: (onFinish: () => void) => {
186
187
  errors: import('react-hook-form').FieldErrors<{
187
188
  customers?: {
188
189
  ticketCode?: string | undefined;
190
+ currencyCode?: string | undefined;
191
+ bankCode?: string | undefined;
189
192
  bankName?: string | undefined;
190
193
  reservationNumber: string;
191
194
  customerName: string;
@@ -193,8 +196,6 @@ export declare const useGroupCustomers: (onFinish: () => void) => {
193
196
  idNo: string;
194
197
  mobileNo: string;
195
198
  amount: number;
196
- currencyCode: string;
197
- bankCode: string;
198
199
  }[] | undefined;
199
200
  lastName?: string | undefined;
200
201
  airlineCode: string;
@@ -206,6 +207,8 @@ export declare const useGroupCustomers: (onFinish: () => void) => {
206
207
  register: import('react-hook-form').UseFormRegister<{
207
208
  customers?: {
208
209
  ticketCode?: string | undefined;
210
+ currencyCode?: string | undefined;
211
+ bankCode?: string | undefined;
209
212
  bankName?: string | undefined;
210
213
  reservationNumber: string;
211
214
  customerName: string;
@@ -213,8 +216,6 @@ export declare const useGroupCustomers: (onFinish: () => void) => {
213
216
  idNo: string;
214
217
  mobileNo: string;
215
218
  amount: number;
216
- currencyCode: string;
217
- bankCode: string;
218
219
  }[] | undefined;
219
220
  lastName?: string | undefined;
220
221
  airlineCode: string;
@@ -230,5 +231,14 @@ export declare const useGroupCustomers: (onFinish: () => void) => {
230
231
  authorizationLetterFiles: File[];
231
232
  setAuthorizationLetterFiles: import('react').Dispatch<import('react').SetStateAction<File[]>>;
232
233
  isLoading: boolean;
234
+ selectedBank: Bank | null;
235
+ onSelectBank: (bank: Bank) => void;
236
+ hasError: boolean;
237
+ currencyCollection: import('@zag-js/collection').ListCollection<{
238
+ label: string;
239
+ value: string;
240
+ }>;
241
+ handleSelectCurrency: (currency: string) => void;
242
+ selectedCurrency: string | null;
233
243
  };
234
244
  export {};
@@ -2,6 +2,7 @@ import { ChangeEvent } from 'react';
2
2
  import * as yup from 'yup';
3
3
  declare const groupOfBookerSchema: yup.ObjectSchema<{
4
4
  bookers: {
5
+ uuid?: string | undefined;
5
6
  status: string;
6
7
  phone: string;
7
8
  lastName: string;
@@ -19,6 +20,7 @@ export declare const useImportBookers: (onFinish: () => void) => {
19
20
  onSelectFile: (event: ChangeEvent<HTMLInputElement>) => Promise<void>;
20
21
  register: import('react-hook-form').UseFormRegister<{
21
22
  bookers?: {
23
+ uuid?: string | undefined;
22
24
  status: string;
23
25
  phone: string;
24
26
  lastName: string;
@@ -29,6 +31,7 @@ export declare const useImportBookers: (onFinish: () => void) => {
29
31
  }>;
30
32
  handleSubmit: import('react-hook-form').UseFormHandleSubmit<{
31
33
  bookers?: {
34
+ uuid?: string | undefined;
32
35
  status: string;
33
36
  phone: string;
34
37
  lastName: string;
@@ -39,6 +42,7 @@ export declare const useImportBookers: (onFinish: () => void) => {
39
42
  }, undefined>;
40
43
  errors: import('react-hook-form').FieldErrors<{
41
44
  bookers?: {
45
+ uuid?: string | undefined;
42
46
  status: string;
43
47
  phone: string;
44
48
  lastName: string;
@@ -49,6 +53,7 @@ export declare const useImportBookers: (onFinish: () => void) => {
49
53
  }>;
50
54
  getValues: import('react-hook-form').UseFormGetValues<{
51
55
  bookers?: {
56
+ uuid?: string | undefined;
52
57
  status: string;
53
58
  phone: string;
54
59
  lastName: string;
@@ -59,6 +64,7 @@ export declare const useImportBookers: (onFinish: () => void) => {
59
64
  }>;
60
65
  setValue: import('react-hook-form').UseFormSetValue<{
61
66
  bookers?: {
67
+ uuid?: string | undefined;
62
68
  status: string;
63
69
  phone: string;
64
70
  lastName: string;
@@ -69,6 +75,7 @@ export declare const useImportBookers: (onFinish: () => void) => {
69
75
  }>;
70
76
  watch: import('react-hook-form').UseFormWatch<{
71
77
  bookers?: {
78
+ uuid?: string | undefined;
72
79
  status: string;
73
80
  phone: string;
74
81
  lastName: string;
@@ -79,6 +86,7 @@ export declare const useImportBookers: (onFinish: () => void) => {
79
86
  }>;
80
87
  trigger: import('react-hook-form').UseFormTrigger<{
81
88
  bookers?: {
89
+ uuid?: string | undefined;
82
90
  status: string;
83
91
  phone: string;
84
92
  lastName: string;
@@ -89,6 +97,7 @@ export declare const useImportBookers: (onFinish: () => void) => {
89
97
  }>;
90
98
  reset: import('react-hook-form').UseFormReset<{
91
99
  bookers?: {
100
+ uuid?: string | undefined;
92
101
  status: string;
93
102
  phone: string;
94
103
  lastName: string;
@@ -1,8 +1,10 @@
1
1
  import { SignedUrl } from '../types/response.dto';
2
+ import { TransactionStatus } from '../types/enum';
2
3
  export declare const useRequestCustomers: () => {
3
4
  getValues: import('react-hook-form').UseFormGetValues<{
4
5
  customers?: {
5
6
  name: string;
7
+ status: TransactionStatus;
6
8
  passportNo: string;
7
9
  idNo: string;
8
10
  amount: number;
@@ -14,6 +16,7 @@ export declare const useRequestCustomers: () => {
14
16
  setValue: import('react-hook-form').UseFormSetValue<{
15
17
  customers?: {
16
18
  name: string;
19
+ status: TransactionStatus;
17
20
  passportNo: string;
18
21
  idNo: string;
19
22
  amount: number;
@@ -25,6 +28,7 @@ export declare const useRequestCustomers: () => {
25
28
  watch: import('react-hook-form').UseFormWatch<{
26
29
  customers?: {
27
30
  name: string;
31
+ status: TransactionStatus;
28
32
  passportNo: string;
29
33
  idNo: string;
30
34
  amount: number;
@@ -36,6 +40,7 @@ export declare const useRequestCustomers: () => {
36
40
  trigger: import('react-hook-form').UseFormTrigger<{
37
41
  customers?: {
38
42
  name: string;
43
+ status: TransactionStatus;
39
44
  passportNo: string;
40
45
  idNo: string;
41
46
  amount: number;
@@ -47,6 +52,7 @@ export declare const useRequestCustomers: () => {
47
52
  reset: import('react-hook-form').UseFormReset<{
48
53
  customers?: {
49
54
  name: string;
55
+ status: TransactionStatus;
50
56
  passportNo: string;
51
57
  idNo: string;
52
58
  amount: number;
@@ -58,6 +64,7 @@ export declare const useRequestCustomers: () => {
58
64
  handleSubmit: import('react-hook-form').UseFormHandleSubmit<{
59
65
  customers?: {
60
66
  name: string;
67
+ status: TransactionStatus;
61
68
  passportNo: string;
62
69
  idNo: string;
63
70
  amount: number;
@@ -69,6 +76,7 @@ export declare const useRequestCustomers: () => {
69
76
  errors: import('react-hook-form').FieldErrors<{
70
77
  customers?: {
71
78
  name: string;
79
+ status: TransactionStatus;
72
80
  passportNo: string;
73
81
  idNo: string;
74
82
  amount: number;
@@ -80,6 +88,7 @@ export declare const useRequestCustomers: () => {
80
88
  register: import('react-hook-form').UseFormRegister<{
81
89
  customers?: {
82
90
  name: string;
91
+ status: TransactionStatus;
83
92
  passportNo: string;
84
93
  idNo: string;
85
94
  amount: number;
@@ -93,6 +102,7 @@ export declare const useRequestCustomers: () => {
93
102
  setError: import('react-hook-form').UseFormSetError<{
94
103
  customers?: {
95
104
  name: string;
105
+ status: TransactionStatus;
96
106
  passportNo: string;
97
107
  idNo: string;
98
108
  amount: number;
@@ -104,6 +114,7 @@ export declare const useRequestCustomers: () => {
104
114
  clearErrors: import('react-hook-form').UseFormClearErrors<{
105
115
  customers?: {
106
116
  name: string;
117
+ status: TransactionStatus;
107
118
  passportNo: string;
108
119
  idNo: string;
109
120
  amount: number;
@@ -1,6 +1,5 @@
1
1
  import { Currency, IBank, ITransaction } from '../types/response.dto';
2
2
  import { GetTransactionListReqDto } from '../types/request.dto';
3
- import { TransactionStatus } from '../types/enum';
4
3
  type Props = {
5
4
  defaultLimit?: number;
6
5
  defaultFilter?: GetTransactionListReqDto | null;
@@ -16,7 +15,7 @@ export declare const useTransactionList: ({ defaultLimit, defaultFilter }: Props
16
15
  refetchData: () => void;
17
16
  sendBankTransaction: (transaction: ITransaction) => Promise<void>;
18
17
  checkTicketStatus: (transaction: ITransaction) => Promise<void>;
19
- updateGroupTransactionStatus: (groupPublicId: string, transactions: ITransaction[], status: TransactionStatus) => Promise<boolean>;
18
+ updateGroupTransactionStatus: (groupPublicId: string, transactions: ITransaction[]) => Promise<boolean>;
20
19
  setPage: import('react').Dispatch<import('react').SetStateAction<number>>;
21
20
  setLimit: (limit: number) => void;
22
21
  setFilter: import('react').Dispatch<import('react').SetStateAction<GetTransactionListReqDto>>;
@@ -0,0 +1 @@
1
+ export declare const ForgotPasswordPage: () => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare const ResetPasswordPage: () => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ declare const MaintenancePage: () => import("react/jsx-runtime").JSX.Element;
2
+ export default MaintenancePage;
@@ -0,0 +1 @@
1
+ export declare const ForgotPasswordPage: () => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare const ResetPasswordPage: () => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare const sortCurrencies: (currencies: string[]) => string[];