gotrip-fx-transaction-form 1.0.75 → 1.0.77

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.
Files changed (37) hide show
  1. package/index.js +47671 -45098
  2. package/package.json +1 -1
  3. package/types/components/Apps/EmbededIndividualApp.d.ts +2 -3
  4. package/types/components/CountrySelector/CountrySelector.d.ts +3 -0
  5. package/types/components/ESIM/ProductCard.d.ts +2 -1
  6. package/types/components/ImageReader/ImageReaderContainer.d.ts +6 -0
  7. package/types/components/MemberList/SearchTextInput.d.ts +1 -0
  8. package/types/components/Modal/DepositModal.d.ts +7 -0
  9. package/types/components/Modal/ESimPurchaseModal.d.ts +10 -0
  10. package/types/components/Modal/UpdateCommissionPolicy.d.ts +11 -0
  11. package/types/components/Modal/UpdateTenantCommissionPolicyModal.d.ts +10 -0
  12. package/types/components/OrganizationFlow/DepartmentNode.d.ts +3 -0
  13. package/types/components/OrganizationFlow/LayoutFlow.d.ts +3 -0
  14. package/types/components/SortSelector/SortSelector.d.ts +5 -1
  15. package/types/components/TransactionList/CurrencySelectionInput.d.ts +1 -2
  16. package/types/components/TransactionStatusBadge/TransactionStatusBadge.d.ts +6 -3
  17. package/types/components/UpdateUser/UpdateBalanceForm.d.ts +7 -0
  18. package/types/components/UserList/ActionMenu.d.ts +9 -0
  19. package/types/constants/api-urls.d.ts +9 -1
  20. package/types/constants/business-codes.d.ts +4 -1
  21. package/types/constants/env.d.ts +1 -0
  22. package/types/constants/validation-code.d.ts +2 -1
  23. package/types/embeded-main.d.ts +9 -5
  24. package/types/hooks/useComissionPolicies.d.ts +5 -1
  25. package/types/hooks/useConfirmTransaction.d.ts +2 -2
  26. package/types/hooks/useESimList.d.ts +2 -2
  27. package/types/hooks/useGroupCustomers.d.ts +40 -40
  28. package/types/hooks/useTransactionList.d.ts +2 -2
  29. package/types/index.d.ts +2 -4
  30. package/types/pages/admin/esim-listing/ESimListing.d.ts +6 -0
  31. package/types/pages/agency/esim-listing/ESIMListing.d.ts +1 -1
  32. package/types/pages/agency/image-reader/ImageReader.d.ts +1 -0
  33. package/types/store/useAuthStore.d.ts +3 -0
  34. package/types/types/enum.d.ts +36 -0
  35. package/types/types/response.dto.d.ts +38 -4
  36. package/types/util/string.d.ts +1 -0
  37. package/types/components/Modal/UpdateCommissionPolicyModal.d.ts +0 -9
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gotrip-fx-transaction-form",
3
- "version": "1.0.75",
3
+ "version": "1.0.77",
4
4
  "description": "FX Transaction Form ES6 module",
5
5
  "main": "index.js",
6
6
  "types": "types/index.d.ts",
@@ -1,6 +1,5 @@
1
1
  export type EmbededIndividualAppProps = {
2
- clientId: string;
3
- secret: string;
2
+ apiKey: string;
4
3
  externalCssUrl?: string;
5
4
  };
6
- export declare const EmbededIndividualApp: ({ clientId, secret, externalCssUrl, }: EmbededIndividualAppProps) => import("react/jsx-runtime").JSX.Element;
5
+ export declare const EmbededIndividualApp: ({ apiKey, externalCssUrl }: EmbededIndividualAppProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,5 +1,8 @@
1
1
  type CountrySelectorProps = {
2
2
  onCountrySelect: (country: string) => void;
3
+ placeholder?: string;
4
+ searchPlaceholder?: string;
5
+ noResultsText?: string;
3
6
  };
4
7
  declare const CountrySelector: ({ onCountrySelect }: CountrySelectorProps) => import("react/jsx-runtime").JSX.Element;
5
8
  export default CountrySelector;
@@ -4,6 +4,7 @@ type ProductCardProps = {
4
4
  product: ESimPackage;
5
5
  primaryBlue: string;
6
6
  badgeBg: string;
7
+ onSelect?: (amount: number) => void;
7
8
  };
8
- declare const ProductCard: ({ product, primaryBlue, badgeBg, selectedCountries }: ProductCardProps) => import("react/jsx-runtime").JSX.Element;
9
+ declare const ProductCard: ({ product, primaryBlue, badgeBg, selectedCountries, onSelect, }: ProductCardProps) => import("react/jsx-runtime").JSX.Element;
9
10
  export default ProductCard;
@@ -0,0 +1,6 @@
1
+ export declare enum EDocumentType {
2
+ CITIZEN_IDENTITY_CARD = "citizen-identity-card",
3
+ PASSPORT = "passport",
4
+ US_VISA = "us-visa"
5
+ }
6
+ export declare const ImageReaderContainer: () => import("react/jsx-runtime").JSX.Element;
@@ -4,6 +4,7 @@ interface SearchTextInputProps {
4
4
  onChange: (newValue: string) => void;
5
5
  placeholder?: string;
6
6
  debounceTime?: number;
7
+ size?: 'sm' | 'md' | 'lg' | 'xs';
7
8
  }
8
9
  declare const SearchTextInput: React.FC<SearchTextInputProps>;
9
10
  export default SearchTextInput;
@@ -0,0 +1,7 @@
1
+ import { default as React } from 'react';
2
+ interface DepositModalProps {
3
+ open: boolean;
4
+ onClose: () => void;
5
+ }
6
+ declare const DepositModal: React.FC<DepositModalProps>;
7
+ export default DepositModal;
@@ -0,0 +1,10 @@
1
+ import { ESimPackage } from '../../types/response.dto';
2
+ import { default as React } from 'react';
3
+ interface ESimPurchaseModalProps {
4
+ selectedPackage: ESimPackage;
5
+ amount: number;
6
+ open: boolean;
7
+ onClose: () => void;
8
+ }
9
+ declare const ESimPurchaseModal: React.FC<ESimPurchaseModalProps>;
10
+ export default ESimPurchaseModal;
@@ -0,0 +1,11 @@
1
+ type Props = {
2
+ canEdit?: boolean;
3
+ objectId: number;
4
+ objectType: 'department' | 'member';
5
+ objectName?: string;
6
+ isOpen: boolean;
7
+ onClose: () => void;
8
+ onSuccess?: () => void;
9
+ };
10
+ export declare const UpdateCommissionPolicyModal: ({ canEdit, objectId, objectType, isOpen, onClose, onSuccess, }: Props) => import("react/jsx-runtime").JSX.Element;
11
+ export {};
@@ -0,0 +1,10 @@
1
+ import { ITenant } from '../../types/response.dto';
2
+ type Props = {
3
+ canEdit?: boolean;
4
+ isOpen: boolean;
5
+ onClose: () => void;
6
+ tenant: ITenant;
7
+ onSuccess?: () => void;
8
+ };
9
+ export declare const UpdateTenantCommissionPolicyModal: ({ canEdit, isOpen, onClose, tenant, onSuccess, }: Props) => import("react/jsx-runtime").JSX.Element;
10
+ export {};
@@ -11,6 +11,9 @@ interface DepartmentNodeProps {
11
11
  canAddDepartment?: boolean;
12
12
  canAddMember?: boolean;
13
13
  canRemoveMember?: boolean;
14
+ canViewTenantCommissionPolicy?: boolean;
15
+ canUpdateDepartmentCommissionPolicy?: boolean;
16
+ canUpdateMemberCommissionPolicy?: boolean;
14
17
  };
15
18
  };
16
19
  id: string;
@@ -13,6 +13,9 @@ export interface INode {
13
13
  canAddDepartment?: boolean;
14
14
  canAddMember?: boolean;
15
15
  canRemoveMember?: boolean;
16
+ canViewTenantCommissionPolicy?: boolean;
17
+ canUpdateDepartmentCommissionPolicy?: boolean;
18
+ canUpdateMemberCommissionPolicy?: boolean;
16
19
  };
17
20
  };
18
21
  position: {
@@ -9,6 +9,10 @@ type SortSelectorProps = {
9
9
  label?: string;
10
10
  minWidth?: number;
11
11
  maxWidth?: number;
12
+ mr?: number;
13
+ ml?: number;
14
+ mb?: number;
15
+ mt?: number;
12
16
  };
13
- declare const SortSelector: ({ options: inputOptions, onSortChange, defaultValue, minWidth, maxWidth, label: selectLabel, }: SortSelectorProps) => import("react/jsx-runtime").JSX.Element;
17
+ declare const SortSelector: ({ options: inputOptions, onSortChange, defaultValue, minWidth, maxWidth, label: selectLabel, mr, ml, mb, mt, }: SortSelectorProps) => import("react/jsx-runtime").JSX.Element;
14
18
  export default SortSelector;
@@ -1,6 +1,5 @@
1
- import { Currency } from '../../types/response.dto';
2
1
  type Props = {
3
- currencies: Currency[];
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,6 +1,9 @@
1
- import { TransactionStatus } from '../../types/enum';
2
- export declare const TransactionStatusBadge: ({ status, bankStatus, onClick, }: {
1
+ import { ETenantType, TransactionStatus } from '../../types/enum';
2
+ type Props = {
3
3
  status: TransactionStatus;
4
4
  bankStatus?: string;
5
5
  onClick?: () => void;
6
- }) => import("react/jsx-runtime").JSX.Element;
6
+ type?: ETenantType;
7
+ };
8
+ export declare const TransactionStatusBadge: ({ status, bankStatus, onClick, type }: Props) => import("react/jsx-runtime").JSX.Element;
9
+ export {};
@@ -0,0 +1,7 @@
1
+ type UpdateBalanceFormProps = {
2
+ userId: number;
3
+ onSubmitSuccess: () => void;
4
+ onClose: () => void;
5
+ };
6
+ export declare const UpdateBalanceForm: ({ userId, onSubmitSuccess, onClose }: UpdateBalanceFormProps) => import("react/jsx-runtime").JSX.Element;
7
+ export {};
@@ -0,0 +1,9 @@
1
+ import { IUser } from '../../types/response.dto';
2
+ type Props = {
3
+ user: IUser;
4
+ refetchData: () => void;
5
+ approveUser: (user: IUser) => void;
6
+ impersonateUser: (user: IUser) => void;
7
+ };
8
+ export declare const ActionMenu: ({ user, refetchData, approveUser, impersonateUser }: Props) => import("react/jsx-runtime").JSX.Element;
9
+ export {};
@@ -24,6 +24,7 @@ export declare const ApiUrls: {
24
24
  transferMoneyAbroad: string;
25
25
  updateTransactionBidding: string;
26
26
  updateTransaction: string;
27
+ createEsimTransaction: string;
27
28
  };
28
29
  role: {
29
30
  list: string;
@@ -34,7 +35,7 @@ export declare const ApiUrls: {
34
35
  updateRolePermissions: string;
35
36
  };
36
37
  currency: {
37
- list: string;
38
+ list: (bankCode?: string) => string;
38
39
  };
39
40
  bank: {
40
41
  list: string;
@@ -47,6 +48,7 @@ export declare const ApiUrls: {
47
48
  };
48
49
  image: {
49
50
  extractFlightTicket: string;
51
+ uploadIdentityDocuments: string;
50
52
  };
51
53
  bid: {
52
54
  list: string;
@@ -61,6 +63,11 @@ export declare const ApiUrls: {
61
63
  removeMembers: string;
62
64
  organizationTree: string;
63
65
  };
66
+ balance: {
67
+ getBalanceByUserId: (userId: number) => string;
68
+ updateBalance: (userId: number) => string;
69
+ generateTopUpQRCode: string;
70
+ };
64
71
  userHandlers: {
65
72
  userProfile: string;
66
73
  changePassword: string;
@@ -105,6 +112,7 @@ export declare const ApiUrls: {
105
112
  commissionPolicyHandlers: {
106
113
  getCommissionPolicies: string;
107
114
  updateCommissionPolicies: string;
115
+ getTenantCommissionPolicies: string;
108
116
  };
109
117
  esimHandlers: {
110
118
  list: string;
@@ -28,5 +28,8 @@ export declare enum BusinessCodes {
28
28
  DEPARTMENT_MEMBER_NOT_FOUND = "B_022",
29
29
  DEPARTMENT_MEMBER_ALREADY_EXISTS = "B_023",
30
30
  USER_ALREADY_IN_DEPARTMENT = "B_024",
31
- INVALID_BID = "B_125"
31
+ INVALID_BID = "B_125",
32
+ ESIM_PACKAGE_NOT_FOUND = "B_030",
33
+ CREATE_ESIM_TRANSACTION_FAILED = "B_031",
34
+ BALANCE_INSUFFICIENT = "B_040"
32
35
  }
@@ -18,4 +18,5 @@ export declare const Env: {
18
18
  CLARITY_KEY: any;
19
19
  USE_CASES: any;
20
20
  ENABLE_ESIM_FEATURE: boolean;
21
+ ENABLE_WEB_SOCKET: boolean;
21
22
  };
@@ -9,5 +9,6 @@ export declare enum ValidationErrorCodes {
9
9
  InvalidTicketCodeStatus = "V_008",
10
10
  VNCountryCodeIsNotAllowed = "V_009",
11
11
  InvalidTransactionStatus = "V_010",
12
- InvalidIdNumber = "V_011"
12
+ InvalidIdNumber = "V_011",
13
+ TypeArray = "V_012"
13
14
  }
@@ -1,6 +1,10 @@
1
- import { EmbededIndividualApp, EmbededIndividualAppProps } from './components/Apps/EmbededIndividualApp';
2
- interface FxTransactionFormType {
3
- init: (id: string, props: EmbededIndividualAppProps) => void;
1
+ type InitProps = {
2
+ containerId?: string;
3
+ container?: HTMLElement;
4
+ apiKey: string;
5
+ };
6
+ interface GoTripSDKProps {
7
+ init: (props: InitProps) => void;
4
8
  }
5
- export declare const FxTransactionForm: FxTransactionFormType;
6
- export default EmbededIndividualApp;
9
+ declare const GoTripSDK: GoTripSDKProps;
10
+ export default GoTripSDK;
@@ -1,6 +1,10 @@
1
1
  import { ICommissionPolicy } from '../types/response.dto';
2
- export declare const useComissionPolicies: () => {
2
+ export declare const useComissionPolicies: ({ isAdminView }: {
3
+ isAdminView?: boolean;
4
+ }) => {
3
5
  loading: boolean;
4
6
  commissionPolicies: ICommissionPolicy[];
5
7
  getCommissionPoliciesByTenantId: (tenantId: number) => Promise<ICommissionPolicy[]>;
8
+ getCommissionPoliciesByDepartmentId: (departmentId: number) => Promise<ICommissionPolicy[]>;
9
+ getCommissionPoliciesByMemberId: (memberId: number) => Promise<ICommissionPolicy[]>;
6
10
  };
@@ -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: IUser | null;
34
+ agent: IAgent | null;
35
35
  groupTransactions: ITransaction[];
36
36
  isLoading: boolean;
37
37
  confirmTransaction: () => Promise<void>;
@@ -13,8 +13,8 @@ export declare const useESimList: ({ defaultLimit, defaultFilter }: Props) => {
13
13
  limit: number;
14
14
  setPage: import('react').Dispatch<import('react').SetStateAction<number>>;
15
15
  setLimit: import('react').Dispatch<import('react').SetStateAction<number>>;
16
- setFilter: import('react').Dispatch<import('react').SetStateAction<GetESimPackageListReqDto>>;
17
- filter: GetESimPackageListReqDto;
16
+ setFilter: import('react').Dispatch<import('react').SetStateAction<Record<string, any> | undefined>>;
17
+ filter: Record<string, any> | undefined;
18
18
  setSortBy: import('react').Dispatch<import('react').SetStateAction<{
19
19
  [key: string]: "desc" | "asc";
20
20
  }>>;
@@ -46,6 +46,11 @@ export declare const useGroupCustomers: (onFinish: () => void) => {
46
46
  amount: number;
47
47
  }[] | undefined;
48
48
  lastName?: string | undefined;
49
+ agent: {
50
+ name?: string | undefined;
51
+ idNo?: string | undefined;
52
+ mobileNo?: string | undefined;
53
+ };
49
54
  reservationNumber: string;
50
55
  airlineCode: string;
51
56
  airlineName: string;
@@ -53,11 +58,6 @@ export declare const useGroupCustomers: (onFinish: () => void) => {
53
58
  countryCodeDes: string;
54
59
  countryNameDes: string;
55
60
  agreeTerms: NonNullable<boolean | undefined>;
56
- agent: {
57
- name?: string | undefined;
58
- idNo?: string | undefined;
59
- mobileNo?: string | undefined;
60
- };
61
61
  }>;
62
62
  setValue: import('react-hook-form').UseFormSetValue<{
63
63
  customers?: {
@@ -72,6 +72,11 @@ export declare const useGroupCustomers: (onFinish: () => void) => {
72
72
  amount: number;
73
73
  }[] | undefined;
74
74
  lastName?: string | undefined;
75
+ agent: {
76
+ name?: string | undefined;
77
+ idNo?: string | undefined;
78
+ mobileNo?: string | undefined;
79
+ };
75
80
  reservationNumber: string;
76
81
  airlineCode: string;
77
82
  airlineName: string;
@@ -79,11 +84,6 @@ export declare const useGroupCustomers: (onFinish: () => void) => {
79
84
  countryCodeDes: string;
80
85
  countryNameDes: string;
81
86
  agreeTerms: NonNullable<boolean | undefined>;
82
- agent: {
83
- name?: string | undefined;
84
- idNo?: string | undefined;
85
- mobileNo?: string | undefined;
86
- };
87
87
  }>;
88
88
  watch: import('react-hook-form').UseFormWatch<{
89
89
  customers?: {
@@ -98,6 +98,11 @@ export declare const useGroupCustomers: (onFinish: () => void) => {
98
98
  amount: number;
99
99
  }[] | undefined;
100
100
  lastName?: string | undefined;
101
+ agent: {
102
+ name?: string | undefined;
103
+ idNo?: string | undefined;
104
+ mobileNo?: string | undefined;
105
+ };
101
106
  reservationNumber: string;
102
107
  airlineCode: string;
103
108
  airlineName: string;
@@ -105,11 +110,6 @@ export declare const useGroupCustomers: (onFinish: () => void) => {
105
110
  countryCodeDes: string;
106
111
  countryNameDes: string;
107
112
  agreeTerms: NonNullable<boolean | undefined>;
108
- agent: {
109
- name?: string | undefined;
110
- idNo?: string | undefined;
111
- mobileNo?: string | undefined;
112
- };
113
113
  }>;
114
114
  trigger: import('react-hook-form').UseFormTrigger<{
115
115
  customers?: {
@@ -124,6 +124,11 @@ export declare const useGroupCustomers: (onFinish: () => void) => {
124
124
  amount: number;
125
125
  }[] | undefined;
126
126
  lastName?: string | undefined;
127
+ agent: {
128
+ name?: string | undefined;
129
+ idNo?: string | undefined;
130
+ mobileNo?: string | undefined;
131
+ };
127
132
  reservationNumber: string;
128
133
  airlineCode: string;
129
134
  airlineName: string;
@@ -131,11 +136,6 @@ export declare const useGroupCustomers: (onFinish: () => void) => {
131
136
  countryCodeDes: string;
132
137
  countryNameDes: string;
133
138
  agreeTerms: NonNullable<boolean | undefined>;
134
- agent: {
135
- name?: string | undefined;
136
- idNo?: string | undefined;
137
- mobileNo?: string | undefined;
138
- };
139
139
  }>;
140
140
  reset: import('react-hook-form').UseFormReset<{
141
141
  customers?: {
@@ -150,6 +150,11 @@ export declare const useGroupCustomers: (onFinish: () => void) => {
150
150
  amount: number;
151
151
  }[] | undefined;
152
152
  lastName?: string | undefined;
153
+ agent: {
154
+ name?: string | undefined;
155
+ idNo?: string | undefined;
156
+ mobileNo?: string | undefined;
157
+ };
153
158
  reservationNumber: string;
154
159
  airlineCode: string;
155
160
  airlineName: string;
@@ -157,11 +162,6 @@ export declare const useGroupCustomers: (onFinish: () => void) => {
157
162
  countryCodeDes: string;
158
163
  countryNameDes: string;
159
164
  agreeTerms: NonNullable<boolean | undefined>;
160
- agent: {
161
- name?: string | undefined;
162
- idNo?: string | undefined;
163
- mobileNo?: string | undefined;
164
- };
165
165
  }>;
166
166
  onSelectFile: (event: ChangeEvent<HTMLInputElement>) => Promise<void>;
167
167
  onSubmit: (data: yup.InferType<yup.ObjectSchema<{
@@ -218,6 +218,11 @@ export declare const useGroupCustomers: (onFinish: () => void) => {
218
218
  amount: number;
219
219
  }[] | undefined;
220
220
  lastName?: string | undefined;
221
+ agent: {
222
+ name?: string | undefined;
223
+ idNo?: string | undefined;
224
+ mobileNo?: string | undefined;
225
+ };
221
226
  reservationNumber: string;
222
227
  airlineCode: string;
223
228
  airlineName: string;
@@ -225,11 +230,6 @@ export declare const useGroupCustomers: (onFinish: () => void) => {
225
230
  countryCodeDes: string;
226
231
  countryNameDes: string;
227
232
  agreeTerms: NonNullable<boolean | undefined>;
228
- agent: {
229
- name?: string | undefined;
230
- idNo?: string | undefined;
231
- mobileNo?: string | undefined;
232
- };
233
233
  }, undefined>;
234
234
  errors: import('react-hook-form').FieldErrors<{
235
235
  customers?: {
@@ -244,6 +244,11 @@ export declare const useGroupCustomers: (onFinish: () => void) => {
244
244
  amount: number;
245
245
  }[] | undefined;
246
246
  lastName?: string | undefined;
247
+ agent: {
248
+ name?: string | undefined;
249
+ idNo?: string | undefined;
250
+ mobileNo?: string | undefined;
251
+ };
247
252
  reservationNumber: string;
248
253
  airlineCode: string;
249
254
  airlineName: string;
@@ -251,11 +256,6 @@ export declare const useGroupCustomers: (onFinish: () => void) => {
251
256
  countryCodeDes: string;
252
257
  countryNameDes: string;
253
258
  agreeTerms: NonNullable<boolean | undefined>;
254
- agent: {
255
- name?: string | undefined;
256
- idNo?: string | undefined;
257
- mobileNo?: string | undefined;
258
- };
259
259
  }>;
260
260
  register: import('react-hook-form').UseFormRegister<{
261
261
  customers?: {
@@ -270,6 +270,11 @@ export declare const useGroupCustomers: (onFinish: () => void) => {
270
270
  amount: number;
271
271
  }[] | undefined;
272
272
  lastName?: string | undefined;
273
+ agent: {
274
+ name?: string | undefined;
275
+ idNo?: string | undefined;
276
+ mobileNo?: string | undefined;
277
+ };
273
278
  reservationNumber: string;
274
279
  airlineCode: string;
275
280
  airlineName: string;
@@ -277,11 +282,6 @@ export declare const useGroupCustomers: (onFinish: () => void) => {
277
282
  countryCodeDes: string;
278
283
  countryNameDes: string;
279
284
  agreeTerms: NonNullable<boolean | undefined>;
280
- agent: {
281
- name?: string | undefined;
282
- idNo?: string | undefined;
283
- mobileNo?: string | undefined;
284
- };
285
285
  }>;
286
286
  removeCustomer: (index: number) => void;
287
287
  addCustomer: () => void;
@@ -1,4 +1,4 @@
1
- import { Currency, ITenant, ITransaction } from '../types/response.dto';
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: Currency[];
9
+ currencies: string[];
10
10
  banks: ITenant[];
11
11
  total: number;
12
12
  loading: boolean;
package/types/index.d.ts CHANGED
@@ -1,6 +1,4 @@
1
- export * from './embeded-main'
2
1
  export {}
3
- import FxTransaction from './embeded-main'
4
- export default FxTransaction
5
- export * from './embeded-main'
2
+ import GoTripSDK from './embeded-main'
3
+ export default GoTripSDK
6
4
  export {}
@@ -0,0 +1,6 @@
1
+ type Props = {
2
+ showLayout?: boolean;
3
+ defaultLimit?: number;
4
+ };
5
+ export declare const ESimListing: ({ showLayout }: Props) => import("react/jsx-runtime").JSX.Element;
6
+ export {};
@@ -2,5 +2,5 @@ type Props = {
2
2
  showLayout?: boolean;
3
3
  defaultLimit?: number;
4
4
  };
5
- export declare const ESIMListing: ({ showLayout }: Props) => import("react/jsx-runtime").JSX.Element;
5
+ export declare const ESimListing: ({ showLayout }: Props) => import("react/jsx-runtime").JSX.Element;
6
6
  export {};
@@ -0,0 +1 @@
1
+ export declare const ImageReader: () => import("react/jsx-runtime").JSX.Element;
@@ -5,8 +5,11 @@ export type AuthState = {
5
5
  loading: boolean;
6
6
  token: string | null;
7
7
  user: AuthUser | null;
8
+ apiKey: string | null;
9
+ setApiKey: (apiKey: string | null) => void;
8
10
  setToken: (token: string | null) => void;
9
11
  setUser: (user: AuthUser | null) => void;
12
+ setAmount: (amount: number) => void;
10
13
  checkPermission: (permissions: EPermissionKey[]) => boolean;
11
14
  fetchUserInfo: () => Promise<void>;
12
15
  isSupervisor: boolean;
@@ -39,3 +39,39 @@ export declare enum ECommissionPolicyCalculationType {
39
39
  FIXED = "FIXED_AMOUNT",
40
40
  PERCENT = "PERCENT"
41
41
  }
42
+ export declare enum ETopUpSymbol {
43
+ TOP_UP_A = "ZA",// 100.000
44
+ TOP_UP_B = "ZB",// 200.000
45
+ TOP_UP_C = "ZC",// 300.000
46
+ TOP_UP_D = "ZD",// 500.000
47
+ TOP_UP_E = "ZE",// 1.000.000
48
+ TOP_UP_F = "ZF",// 2.000.000
49
+ TOP_UP_G = "ZG",// 3.000.000
50
+ TOP_UP_H = "ZH",// 5.000.000
51
+ TOP_UP_I = "ZI",// 10.000.000
52
+ TOP_UP_J = "ZJ",// 20.000.000
53
+ TOP_UP_K = "ZK",// 30.000.000
54
+ TOP_UP_L = "ZL",// 50.000.000
55
+ TOP_UP_M = "ZM",// 100.000.000
56
+ TOP_UP_N = "ZN",// 200.000.000
57
+ TOP_UP_O = "ZO",// 300.000.000
58
+ TOP_UP_P = "ZP"
59
+ }
60
+ export declare const E_TOP_UP_VALUES: {
61
+ ZA: number;
62
+ ZB: number;
63
+ ZC: number;
64
+ ZD: number;
65
+ ZE: number;
66
+ ZF: number;
67
+ ZG: number;
68
+ ZH: number;
69
+ ZI: number;
70
+ ZJ: number;
71
+ ZK: number;
72
+ ZL: number;
73
+ ZM: number;
74
+ ZN: number;
75
+ ZO: number;
76
+ ZP: number;
77
+ };