gotrip-fx-transaction-form 1.0.75 → 1.0.76
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 +45480 -42846
- package/package.json +1 -1
- package/types/components/Apps/EmbededIndividualApp.d.ts +2 -3
- package/types/components/CountrySelector/CountrySelector.d.ts +3 -0
- package/types/components/ESIM/ProductCard.d.ts +2 -1
- package/types/components/ImageReader/ImageReaderContainer.d.ts +6 -0
- package/types/components/MemberList/SearchTextInput.d.ts +1 -0
- package/types/components/Modal/DepositModal.d.ts +7 -0
- package/types/components/Modal/ESimPurchaseModal.d.ts +10 -0
- package/types/components/Modal/UpdateCommissionPolicy.d.ts +11 -0
- package/types/components/Modal/UpdateTenantCommissionPolicyModal.d.ts +10 -0
- package/types/components/OrganizationFlow/DepartmentNode.d.ts +3 -0
- package/types/components/OrganizationFlow/LayoutFlow.d.ts +3 -0
- package/types/components/SortSelector/SortSelector.d.ts +5 -1
- package/types/components/TransactionStatusBadge/TransactionStatusBadge.d.ts +6 -3
- package/types/components/UpdateUser/UpdateBalanceForm.d.ts +7 -0
- package/types/components/UserList/ActionMenu.d.ts +9 -0
- package/types/constants/api-urls.d.ts +8 -0
- package/types/constants/business-codes.d.ts +4 -1
- package/types/constants/env.d.ts +1 -0
- package/types/constants/validation-code.d.ts +2 -1
- package/types/embeded-main.d.ts +9 -5
- package/types/hooks/useComissionPolicies.d.ts +5 -1
- package/types/hooks/useESimList.d.ts +2 -2
- package/types/hooks/useGroupCustomers.d.ts +40 -40
- package/types/index.d.ts +2 -4
- package/types/pages/admin/esim-listing/ESimListing.d.ts +6 -0
- package/types/pages/agency/esim-listing/ESIMListing.d.ts +1 -1
- package/types/pages/agency/image-reader/ImageReader.d.ts +1 -0
- package/types/store/useAuthStore.d.ts +3 -0
- package/types/types/enum.d.ts +36 -0
- package/types/types/response.dto.d.ts +22 -3
- package/types/util/string.d.ts +1 -0
- package/types/components/Modal/UpdateCommissionPolicyModal.d.ts +0 -9
package/package.json
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
export type EmbededIndividualAppProps = {
|
|
2
|
-
|
|
3
|
-
secret: string;
|
|
2
|
+
apiKey: string;
|
|
4
3
|
externalCssUrl?: string;
|
|
5
4
|
};
|
|
6
|
-
export declare const EmbededIndividualApp: ({
|
|
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,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,9 @@
|
|
|
1
|
-
import { TransactionStatus } from '../../types/enum';
|
|
2
|
-
|
|
1
|
+
import { ETenantType, TransactionStatus } from '../../types/enum';
|
|
2
|
+
type Props = {
|
|
3
3
|
status: TransactionStatus;
|
|
4
4
|
bankStatus?: string;
|
|
5
5
|
onClick?: () => void;
|
|
6
|
-
|
|
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;
|
|
@@ -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
|
}
|
package/types/constants/env.d.ts
CHANGED
package/types/embeded-main.d.ts
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
type InitProps = {
|
|
2
|
+
containerId?: string;
|
|
3
|
+
container?: HTMLElement;
|
|
4
|
+
apiKey: string;
|
|
5
|
+
};
|
|
6
|
+
interface GoTripSDKProps {
|
|
7
|
+
init: (props: InitProps) => void;
|
|
4
8
|
}
|
|
5
|
-
|
|
6
|
-
export default
|
|
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
|
};
|
|
@@ -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<
|
|
17
|
-
filter:
|
|
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;
|
package/types/index.d.ts
CHANGED
|
@@ -2,5 +2,5 @@ type Props = {
|
|
|
2
2
|
showLayout?: boolean;
|
|
3
3
|
defaultLimit?: number;
|
|
4
4
|
};
|
|
5
|
-
export declare const
|
|
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;
|
package/types/types/enum.d.ts
CHANGED
|
@@ -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
|
+
};
|
|
@@ -16,6 +16,9 @@ export type LoginRespDto = {
|
|
|
16
16
|
permissions?: EPermissionKey[];
|
|
17
17
|
department?: IDepartment;
|
|
18
18
|
isAgency?: boolean;
|
|
19
|
+
balance: {
|
|
20
|
+
amount: number;
|
|
21
|
+
};
|
|
19
22
|
};
|
|
20
23
|
};
|
|
21
24
|
export type ITicket = {
|
|
@@ -107,6 +110,7 @@ export interface IBankTenantSettings {
|
|
|
107
110
|
}
|
|
108
111
|
export type ITenant = {
|
|
109
112
|
id: number;
|
|
113
|
+
apiKey: string;
|
|
110
114
|
shortName: string;
|
|
111
115
|
name: string;
|
|
112
116
|
type: ETenantType;
|
|
@@ -243,8 +247,9 @@ export interface ICommissionPolicy {
|
|
|
243
247
|
currencyCode?: string;
|
|
244
248
|
userId?: number;
|
|
245
249
|
tenantId?: number;
|
|
246
|
-
bankId?: number;
|
|
247
250
|
departmentId?: number;
|
|
251
|
+
memberId?: number;
|
|
252
|
+
bankId?: number;
|
|
248
253
|
type: ECommissionPolicyType;
|
|
249
254
|
directType: ECommissionPolicyCalculationType;
|
|
250
255
|
viaRefType: ECommissionPolicyCalculationType;
|
|
@@ -258,12 +263,26 @@ export interface ICommissionPolicy {
|
|
|
258
263
|
createdBy?: string;
|
|
259
264
|
updatedBy?: string;
|
|
260
265
|
}
|
|
266
|
+
export type ESimPackageDataLimitUnit = 'MB' | 'GB';
|
|
267
|
+
export type ESimPackageDataLimitTimeframe = 'daily' | 'weekly' | 'monthly' | 'yearly' | 'total' | 'unlimited';
|
|
268
|
+
export type ESimPackageValidityType = 'day' | 'week' | 'month' | 'year';
|
|
261
269
|
export type ESimPackage = {
|
|
262
270
|
planId: number;
|
|
263
271
|
name: string;
|
|
264
|
-
|
|
265
|
-
|
|
272
|
+
description: string;
|
|
273
|
+
apn: string;
|
|
274
|
+
isActive: boolean;
|
|
275
|
+
dataLimit: number;
|
|
276
|
+
dataLimitUnit: ESimPackageDataLimitUnit;
|
|
277
|
+
dataLimitTimeframe: ESimPackageDataLimitTimeframe;
|
|
278
|
+
validityType: ESimPackageValidityType;
|
|
279
|
+
validityPeriod: number;
|
|
266
280
|
countries: string[];
|
|
267
281
|
price: number;
|
|
268
282
|
};
|
|
283
|
+
export declare enum EBalanceHistoryType {
|
|
284
|
+
DEPOSIT = "DEPOSIT",// nạp tiền
|
|
285
|
+
REFUND = "REFUND",// hoàn tiền
|
|
286
|
+
USE = "USE"
|
|
287
|
+
}
|
|
269
288
|
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const replaceVietnameseAccents: (str?: string) => string;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { ITenant } from '../../types/response.dto';
|
|
2
|
-
type Props = {
|
|
3
|
-
isOpen: boolean;
|
|
4
|
-
onClose: () => void;
|
|
5
|
-
tenant: ITenant;
|
|
6
|
-
onSuccess?: () => void;
|
|
7
|
-
};
|
|
8
|
-
export declare const UpdateCommissionPolicyModal: ({ isOpen, onClose, tenant, onSuccess }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
-
export {};
|