gotrip-fx-transaction-form 1.0.52 → 1.0.53

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.52",
3
+ "version": "1.0.53",
4
4
  "description": "FX Transaction Form ES6 module",
5
5
  "main": "index.js",
6
6
  "types": "types/index.d.ts",
@@ -1,4 +1,5 @@
1
1
  import { TransactionStatus } from '../types/enum';
2
+ import { ITransaction, IUser } from '../types/response.dto';
2
3
  export type ConfirmTransactionData = {
3
4
  code: string;
4
5
  data: {
@@ -11,6 +12,8 @@ export type ConfirmTransactionData = {
11
12
  confirmationToken: string;
12
13
  status: TransactionStatus;
13
14
  customerCode: string;
15
+ agent?: IUser;
16
+ groupTransactions?: ITransaction[];
14
17
  };
15
18
  message: string;
16
19
  };
@@ -25,7 +28,11 @@ export declare const useConfirmTransaction: () => {
25
28
  confirmationToken: string;
26
29
  status: TransactionStatus;
27
30
  customerCode: string;
31
+ agent?: IUser;
32
+ groupTransactions?: ITransaction[];
28
33
  } | null;
34
+ agent: IUser | null;
35
+ groupTransactions: ITransaction[];
29
36
  isLoading: boolean;
30
37
  confirmTransaction: () => Promise<void>;
31
38
  customerCode: string | undefined;
@@ -11,7 +11,6 @@ declare const onePersonSchema: yup.ObjectSchema<{
11
11
  bankCode: string | undefined;
12
12
  bankName: string | undefined;
13
13
  amount: number;
14
- reservationNumber: string;
15
14
  }, yup.AnyObject, {
16
15
  ticketCode: undefined;
17
16
  customerName: undefined;
@@ -22,7 +21,6 @@ declare const onePersonSchema: yup.ObjectSchema<{
22
21
  bankCode: undefined;
23
22
  bankName: undefined;
24
23
  amount: undefined;
25
- reservationNumber: undefined;
26
24
  }, "">;
27
25
  export declare const useGroupCustomers: (onFinish: () => void) => {
28
26
  showAuthorizationLetter: boolean;
@@ -41,7 +39,6 @@ export declare const useGroupCustomers: (onFinish: () => void) => {
41
39
  currencyCode?: string | undefined;
42
40
  bankCode?: string | undefined;
43
41
  bankName?: string | undefined;
44
- reservationNumber: string;
45
42
  customerName: string;
46
43
  passportNo: string;
47
44
  idNo: string;
@@ -49,12 +46,18 @@ export declare const useGroupCustomers: (onFinish: () => void) => {
49
46
  amount: number;
50
47
  }[] | undefined;
51
48
  lastName?: string | undefined;
49
+ reservationNumber: string;
52
50
  airlineCode: string;
53
51
  airlineName: string;
54
52
  departureDate: string;
55
53
  countryCodeDes: string;
56
54
  countryNameDes: string;
57
55
  agreeTerms: NonNullable<boolean | undefined>;
56
+ agent: {
57
+ name?: string | undefined;
58
+ idNo?: string | undefined;
59
+ mobileNo?: string | undefined;
60
+ };
58
61
  }>;
59
62
  setValue: import('react-hook-form').UseFormSetValue<{
60
63
  customers?: {
@@ -62,7 +65,6 @@ export declare const useGroupCustomers: (onFinish: () => void) => {
62
65
  currencyCode?: string | undefined;
63
66
  bankCode?: string | undefined;
64
67
  bankName?: string | undefined;
65
- reservationNumber: string;
66
68
  customerName: string;
67
69
  passportNo: string;
68
70
  idNo: string;
@@ -70,12 +72,18 @@ export declare const useGroupCustomers: (onFinish: () => void) => {
70
72
  amount: number;
71
73
  }[] | undefined;
72
74
  lastName?: string | undefined;
75
+ reservationNumber: string;
73
76
  airlineCode: string;
74
77
  airlineName: string;
75
78
  departureDate: string;
76
79
  countryCodeDes: string;
77
80
  countryNameDes: string;
78
81
  agreeTerms: NonNullable<boolean | undefined>;
82
+ agent: {
83
+ name?: string | undefined;
84
+ idNo?: string | undefined;
85
+ mobileNo?: string | undefined;
86
+ };
79
87
  }>;
80
88
  watch: import('react-hook-form').UseFormWatch<{
81
89
  customers?: {
@@ -83,7 +91,6 @@ export declare const useGroupCustomers: (onFinish: () => void) => {
83
91
  currencyCode?: string | undefined;
84
92
  bankCode?: string | undefined;
85
93
  bankName?: string | undefined;
86
- reservationNumber: string;
87
94
  customerName: string;
88
95
  passportNo: string;
89
96
  idNo: string;
@@ -91,12 +98,18 @@ export declare const useGroupCustomers: (onFinish: () => void) => {
91
98
  amount: number;
92
99
  }[] | undefined;
93
100
  lastName?: string | undefined;
101
+ reservationNumber: string;
94
102
  airlineCode: string;
95
103
  airlineName: string;
96
104
  departureDate: string;
97
105
  countryCodeDes: string;
98
106
  countryNameDes: string;
99
107
  agreeTerms: NonNullable<boolean | undefined>;
108
+ agent: {
109
+ name?: string | undefined;
110
+ idNo?: string | undefined;
111
+ mobileNo?: string | undefined;
112
+ };
100
113
  }>;
101
114
  trigger: import('react-hook-form').UseFormTrigger<{
102
115
  customers?: {
@@ -104,7 +117,6 @@ export declare const useGroupCustomers: (onFinish: () => void) => {
104
117
  currencyCode?: string | undefined;
105
118
  bankCode?: string | undefined;
106
119
  bankName?: string | undefined;
107
- reservationNumber: string;
108
120
  customerName: string;
109
121
  passportNo: string;
110
122
  idNo: string;
@@ -112,12 +124,18 @@ export declare const useGroupCustomers: (onFinish: () => void) => {
112
124
  amount: number;
113
125
  }[] | undefined;
114
126
  lastName?: string | undefined;
127
+ reservationNumber: string;
115
128
  airlineCode: string;
116
129
  airlineName: string;
117
130
  departureDate: string;
118
131
  countryCodeDes: string;
119
132
  countryNameDes: string;
120
133
  agreeTerms: NonNullable<boolean | undefined>;
134
+ agent: {
135
+ name?: string | undefined;
136
+ idNo?: string | undefined;
137
+ mobileNo?: string | undefined;
138
+ };
121
139
  }>;
122
140
  reset: import('react-hook-form').UseFormReset<{
123
141
  customers?: {
@@ -125,7 +143,6 @@ export declare const useGroupCustomers: (onFinish: () => void) => {
125
143
  currencyCode?: string | undefined;
126
144
  bankCode?: string | undefined;
127
145
  bankName?: string | undefined;
128
- reservationNumber: string;
129
146
  customerName: string;
130
147
  passportNo: string;
131
148
  idNo: string;
@@ -133,16 +150,23 @@ export declare const useGroupCustomers: (onFinish: () => void) => {
133
150
  amount: number;
134
151
  }[] | undefined;
135
152
  lastName?: string | undefined;
153
+ reservationNumber: string;
136
154
  airlineCode: string;
137
155
  airlineName: string;
138
156
  departureDate: string;
139
157
  countryCodeDes: string;
140
158
  countryNameDes: string;
141
159
  agreeTerms: NonNullable<boolean | undefined>;
160
+ agent: {
161
+ name?: string | undefined;
162
+ idNo?: string | undefined;
163
+ mobileNo?: string | undefined;
164
+ };
142
165
  }>;
143
166
  onSelectFile: (event: ChangeEvent<HTMLInputElement>) => Promise<void>;
144
167
  onSubmit: (data: yup.InferType<yup.ObjectSchema<{
145
168
  lastName: string | undefined;
169
+ reservationNumber: string;
146
170
  airlineCode: string;
147
171
  airlineName: string;
148
172
  departureDate: string;
@@ -153,22 +177,32 @@ export declare const useGroupCustomers: (onFinish: () => void) => {
153
177
  currencyCode?: string | undefined;
154
178
  bankCode?: string | undefined;
155
179
  bankName?: string | undefined;
156
- reservationNumber: string;
157
180
  customerName: string;
158
181
  passportNo: string;
159
182
  idNo: string;
160
183
  mobileNo: string;
161
184
  amount: number;
162
185
  }[] | undefined;
186
+ agent: {
187
+ name?: string | undefined;
188
+ idNo?: string | undefined;
189
+ mobileNo?: string | undefined;
190
+ };
163
191
  agreeTerms: NonNullable<boolean | undefined>;
164
192
  }, yup.AnyObject, {
165
193
  lastName: undefined;
194
+ reservationNumber: undefined;
166
195
  airlineCode: undefined;
167
196
  airlineName: undefined;
168
197
  departureDate: undefined;
169
198
  countryCodeDes: undefined;
170
199
  countryNameDes: undefined;
171
200
  customers: "";
201
+ agent: {
202
+ name: undefined;
203
+ idNo: undefined;
204
+ mobileNo: undefined;
205
+ };
172
206
  agreeTerms: undefined;
173
207
  }, "">>) => Promise<void>;
174
208
  handleSubmit: import('react-hook-form').UseFormHandleSubmit<{
@@ -177,7 +211,6 @@ export declare const useGroupCustomers: (onFinish: () => void) => {
177
211
  currencyCode?: string | undefined;
178
212
  bankCode?: string | undefined;
179
213
  bankName?: string | undefined;
180
- reservationNumber: string;
181
214
  customerName: string;
182
215
  passportNo: string;
183
216
  idNo: string;
@@ -185,12 +218,18 @@ export declare const useGroupCustomers: (onFinish: () => void) => {
185
218
  amount: number;
186
219
  }[] | undefined;
187
220
  lastName?: string | undefined;
221
+ reservationNumber: string;
188
222
  airlineCode: string;
189
223
  airlineName: string;
190
224
  departureDate: string;
191
225
  countryCodeDes: string;
192
226
  countryNameDes: string;
193
227
  agreeTerms: NonNullable<boolean | undefined>;
228
+ agent: {
229
+ name?: string | undefined;
230
+ idNo?: string | undefined;
231
+ mobileNo?: string | undefined;
232
+ };
194
233
  }, undefined>;
195
234
  errors: import('react-hook-form').FieldErrors<{
196
235
  customers?: {
@@ -198,7 +237,6 @@ export declare const useGroupCustomers: (onFinish: () => void) => {
198
237
  currencyCode?: string | undefined;
199
238
  bankCode?: string | undefined;
200
239
  bankName?: string | undefined;
201
- reservationNumber: string;
202
240
  customerName: string;
203
241
  passportNo: string;
204
242
  idNo: string;
@@ -206,12 +244,18 @@ export declare const useGroupCustomers: (onFinish: () => void) => {
206
244
  amount: number;
207
245
  }[] | undefined;
208
246
  lastName?: string | undefined;
247
+ reservationNumber: string;
209
248
  airlineCode: string;
210
249
  airlineName: string;
211
250
  departureDate: string;
212
251
  countryCodeDes: string;
213
252
  countryNameDes: string;
214
253
  agreeTerms: NonNullable<boolean | undefined>;
254
+ agent: {
255
+ name?: string | undefined;
256
+ idNo?: string | undefined;
257
+ mobileNo?: string | undefined;
258
+ };
215
259
  }>;
216
260
  register: import('react-hook-form').UseFormRegister<{
217
261
  customers?: {
@@ -219,7 +263,6 @@ export declare const useGroupCustomers: (onFinish: () => void) => {
219
263
  currencyCode?: string | undefined;
220
264
  bankCode?: string | undefined;
221
265
  bankName?: string | undefined;
222
- reservationNumber: string;
223
266
  customerName: string;
224
267
  passportNo: string;
225
268
  idNo: string;
@@ -227,17 +270,23 @@ export declare const useGroupCustomers: (onFinish: () => void) => {
227
270
  amount: number;
228
271
  }[] | undefined;
229
272
  lastName?: string | undefined;
273
+ reservationNumber: string;
230
274
  airlineCode: string;
231
275
  airlineName: string;
232
276
  departureDate: string;
233
277
  countryCodeDes: string;
234
278
  countryNameDes: string;
235
279
  agreeTerms: NonNullable<boolean | undefined>;
280
+ agent: {
281
+ name?: string | undefined;
282
+ idNo?: string | undefined;
283
+ mobileNo?: string | undefined;
284
+ };
236
285
  }>;
237
286
  removeCustomer: (index: number) => void;
238
287
  addCustomer: () => void;
239
288
  isGettingFlightInfo: boolean;
240
- disabled: Record<"airlineCode" | "airlineName" | "departureDate" | "countryCodeDes" | "countryNameDes" | "agreeTerms" | ("customers" | "lastName"), boolean>;
289
+ disabled: Record<string, boolean>;
241
290
  authorizationLetterFiles: File[];
242
291
  setAuthorizationLetterFiles: import('react').Dispatch<import('react').SetStateAction<File[]>>;
243
292
  isLoading: boolean;
@@ -250,5 +299,8 @@ export declare const useGroupCustomers: (onFinish: () => void) => {
250
299
  }>;
251
300
  handleSelectCurrency: (currency: string) => void;
252
301
  selectedCurrency: string | null;
302
+ showConfirmationDialog: boolean;
303
+ setShowConfirmationDialog: import('react').Dispatch<import('react').SetStateAction<boolean>>;
304
+ onConfirmationDialog: () => void;
253
305
  };
254
306
  export {};
@@ -6,6 +6,8 @@ export type LoginRespDto = {
6
6
  email: string;
7
7
  firstName?: string;
8
8
  lastName?: string;
9
+ identityNumber?: string;
10
+ phone?: string;
9
11
  role: EUserRole;
10
12
  refCode: string;
11
13
  tenant?: ITenant;
@@ -62,6 +64,7 @@ export type ITransaction = {
62
64
  ticket?: ITicket;
63
65
  bank?: ITenant;
64
66
  user?: IUser;
67
+ agent?: IUser;
65
68
  totalSubTransaction?: number;
66
69
  groupPublicId?: string;
67
70
  documents: any[];