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.
- package/index.js +47671 -45098
- 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/TransactionList/CurrencySelectionInput.d.ts +1 -2
- 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 +9 -1
- 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/useConfirmTransaction.d.ts +2 -2
- package/types/hooks/useESimList.d.ts +2 -2
- package/types/hooks/useGroupCustomers.d.ts +40 -40
- package/types/hooks/useTransactionList.d.ts +2 -2
- 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 +38 -4
- package/types/util/string.d.ts +1 -0
- package/types/components/Modal/UpdateCommissionPolicyModal.d.ts +0 -9
|
@@ -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 = {
|
|
@@ -43,6 +46,11 @@ export declare enum ETransactionType {
|
|
|
43
46
|
BUSINESS = "BUSINESS",
|
|
44
47
|
IMMIGRATION = "IMMIGRATION"
|
|
45
48
|
}
|
|
49
|
+
export type IAgent = {
|
|
50
|
+
name: string;
|
|
51
|
+
phone: string;
|
|
52
|
+
identityNumber: string;
|
|
53
|
+
};
|
|
46
54
|
export type ITransaction = {
|
|
47
55
|
id: number;
|
|
48
56
|
fxTransactionId?: number;
|
|
@@ -69,7 +77,7 @@ export type ITransaction = {
|
|
|
69
77
|
ticket?: ITicket;
|
|
70
78
|
bank?: ITenant;
|
|
71
79
|
user?: IUser;
|
|
72
|
-
agent?:
|
|
80
|
+
agent?: IAgent;
|
|
73
81
|
totalSubTransaction?: number;
|
|
74
82
|
totalApprovedTransaction?: number;
|
|
75
83
|
totalRejectedTransaction?: number;
|
|
@@ -107,6 +115,7 @@ export interface IBankTenantSettings {
|
|
|
107
115
|
}
|
|
108
116
|
export type ITenant = {
|
|
109
117
|
id: number;
|
|
118
|
+
apiKey: string;
|
|
110
119
|
shortName: string;
|
|
111
120
|
name: string;
|
|
112
121
|
type: ETenantType;
|
|
@@ -243,8 +252,9 @@ export interface ICommissionPolicy {
|
|
|
243
252
|
currencyCode?: string;
|
|
244
253
|
userId?: number;
|
|
245
254
|
tenantId?: number;
|
|
246
|
-
bankId?: number;
|
|
247
255
|
departmentId?: number;
|
|
256
|
+
memberId?: number;
|
|
257
|
+
bankId?: number;
|
|
248
258
|
type: ECommissionPolicyType;
|
|
249
259
|
directType: ECommissionPolicyCalculationType;
|
|
250
260
|
viaRefType: ECommissionPolicyCalculationType;
|
|
@@ -258,12 +268,36 @@ export interface ICommissionPolicy {
|
|
|
258
268
|
createdBy?: string;
|
|
259
269
|
updatedBy?: string;
|
|
260
270
|
}
|
|
271
|
+
export type ESimPackageDataLimitUnit = 'MB' | 'GB';
|
|
272
|
+
export type ESimPackageDataLimitTimeframe = 'daily' | 'weekly' | 'monthly' | 'yearly' | 'total' | 'unlimited';
|
|
273
|
+
export type ESimPackageValidityType = 'day' | 'week' | 'month' | 'year';
|
|
261
274
|
export type ESimPackage = {
|
|
262
275
|
planId: number;
|
|
263
276
|
name: string;
|
|
264
|
-
|
|
265
|
-
|
|
277
|
+
description: string;
|
|
278
|
+
apn: string;
|
|
279
|
+
isActive: boolean;
|
|
280
|
+
dataLimit: number;
|
|
281
|
+
dataLimitUnit: ESimPackageDataLimitUnit;
|
|
282
|
+
dataLimitTimeframe: ESimPackageDataLimitTimeframe;
|
|
283
|
+
validityType: ESimPackageValidityType;
|
|
284
|
+
validityPeriod: number;
|
|
266
285
|
countries: string[];
|
|
267
286
|
price: number;
|
|
268
287
|
};
|
|
288
|
+
export declare enum EBalanceHistoryType {
|
|
289
|
+
DEPOSIT = "DEPOSIT",// nạp tiền
|
|
290
|
+
REFUND = "REFUND",// hoàn tiền
|
|
291
|
+
USE = "USE"
|
|
292
|
+
}
|
|
293
|
+
export type ExchangeRateHistoryItem = {
|
|
294
|
+
bankShortName: string;
|
|
295
|
+
name: string;
|
|
296
|
+
exchangeRate: number;
|
|
297
|
+
date: string;
|
|
298
|
+
currencyCode: string;
|
|
299
|
+
};
|
|
300
|
+
export type ExchangeRateHistoryResponse = {
|
|
301
|
+
[key: string]: ExchangeRateHistoryItem[];
|
|
302
|
+
};
|
|
269
303
|
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 {};
|