gotrip-fx-transaction-form 1.0.94 → 1.0.95
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 +34838 -33907
- package/package.json +1 -1
- package/types/components/AddDepartment/AddDepartmentForm.d.ts +2 -1
- package/types/components/AddTransaction/SingularCustomer.d.ts +1 -2
- package/types/components/AddUser/AddMemberForm.d.ts +2 -1
- package/types/components/Department/AddDepartmentMemberForm.d.ts +2 -1
- package/types/components/Menu/Menu.d.ts +6 -1
- package/types/components/Menu/MenuItem.d.ts +5 -4
- package/types/components/Modal/AddDepartmentMemberModal.d.ts +1 -0
- package/types/components/Modal/AddDepartmentModal.d.ts +1 -0
- package/types/components/Modal/UpdateCommissionPolicy.d.ts +2 -1
- package/types/components/Modal/UpdateTenantCommissionInputCell.d.ts +31 -0
- package/types/components/Modal/UpdateTenantCommissionPolicyModal.d.ts +4 -1
- package/types/components/OrganizationFlow/DepartmentNode.d.ts +3 -0
- package/types/components/OrganizationFlow/LayoutFlow.d.ts +3 -0
- package/types/components/OrganizationFlow/OrganizationLayoutFlow.d.ts +1 -1
- package/types/components/Pagination/LimitDropdown.d.ts +2 -1
- package/types/constants/api-urls.d.ts +12 -0
- package/types/constants/organization-flow.constants.d.ts +33 -0
- package/types/design-systems/Select/SelectSearchable.d.ts +17 -0
- package/types/hooks/transactions/useEducation.hook.d.ts +8 -8
- package/types/hooks/transactions/useImmigration.hook.d.ts +8 -8
- package/types/hooks/useBankList.d.ts +5 -1
- package/types/hooks/useComissionPolicies.d.ts +4 -2
- package/types/hooks/useHeaderMenu.d.ts +2 -2
- package/types/hooks/useImportBookers.d.ts +47 -19
- package/types/hooks/useImportMembers.d.ts +18 -18
- package/types/hooks/useMemberList.d.ts +2 -1
- package/types/hooks/useMenuState.d.ts +11 -0
- package/types/hooks/useRoleList.d.ts +3 -1
- package/types/pages/agency/esim-listing/ESIMListing.d.ts +1 -6
- package/types/pages/agency/tracsaction-list/TransactionList.d.ts +1 -1
- package/types/pages/agency/transaction-detail/TransactionDetail.d.ts +1 -3
- package/types/types/response.dto.d.ts +9 -0
|
@@ -1,14 +1,18 @@
|
|
|
1
1
|
import { ChangeEvent } from 'react';
|
|
2
|
+
import { IRole } from '../types/response.dto';
|
|
2
3
|
import * as yup from 'yup';
|
|
3
4
|
declare const groupOfBookerSchema: yup.ObjectSchema<{
|
|
4
5
|
bookers: {
|
|
6
|
+
department?: string | null | undefined;
|
|
7
|
+
agent?: string | null | undefined;
|
|
5
8
|
uuid?: string | undefined;
|
|
9
|
+
role_id?: number | null | undefined;
|
|
6
10
|
status: string;
|
|
7
11
|
phone: string;
|
|
8
|
-
email: string;
|
|
9
|
-
firstName: string;
|
|
10
12
|
lastName: string;
|
|
13
|
+
email: string;
|
|
11
14
|
password: string;
|
|
15
|
+
firstName: string;
|
|
12
16
|
}[] | undefined;
|
|
13
17
|
}, yup.AnyObject, {
|
|
14
18
|
bookers: "";
|
|
@@ -17,93 +21,117 @@ export declare const useImportBookers: (onFinish: () => void) => {
|
|
|
17
21
|
isLoading: boolean;
|
|
18
22
|
file: File | null;
|
|
19
23
|
inputFileRef: import('react').RefObject<HTMLInputElement>;
|
|
20
|
-
onSelectFile: (event: ChangeEvent<HTMLInputElement
|
|
24
|
+
onSelectFile: (event: ChangeEvent<HTMLInputElement>, roles?: IRole[]) => Promise<void>;
|
|
21
25
|
register: import('react-hook-form').UseFormRegister<{
|
|
22
26
|
bookers?: {
|
|
27
|
+
department?: string | null | undefined;
|
|
28
|
+
agent?: string | null | undefined;
|
|
23
29
|
uuid?: string | undefined;
|
|
30
|
+
role_id?: number | null | undefined;
|
|
24
31
|
status: string;
|
|
25
32
|
phone: string;
|
|
26
|
-
email: string;
|
|
27
|
-
firstName: string;
|
|
28
33
|
lastName: string;
|
|
34
|
+
email: string;
|
|
29
35
|
password: string;
|
|
36
|
+
firstName: string;
|
|
30
37
|
}[] | undefined;
|
|
31
38
|
}>;
|
|
32
39
|
handleSubmit: import('react-hook-form').UseFormHandleSubmit<{
|
|
33
40
|
bookers?: {
|
|
41
|
+
department?: string | null | undefined;
|
|
42
|
+
agent?: string | null | undefined;
|
|
34
43
|
uuid?: string | undefined;
|
|
44
|
+
role_id?: number | null | undefined;
|
|
35
45
|
status: string;
|
|
36
46
|
phone: string;
|
|
37
|
-
email: string;
|
|
38
|
-
firstName: string;
|
|
39
47
|
lastName: string;
|
|
48
|
+
email: string;
|
|
40
49
|
password: string;
|
|
50
|
+
firstName: string;
|
|
41
51
|
}[] | undefined;
|
|
42
52
|
}, undefined>;
|
|
43
53
|
errors: import('react-hook-form').FieldErrors<{
|
|
44
54
|
bookers?: {
|
|
55
|
+
department?: string | null | undefined;
|
|
56
|
+
agent?: string | null | undefined;
|
|
45
57
|
uuid?: string | undefined;
|
|
58
|
+
role_id?: number | null | undefined;
|
|
46
59
|
status: string;
|
|
47
60
|
phone: string;
|
|
48
|
-
email: string;
|
|
49
|
-
firstName: string;
|
|
50
61
|
lastName: string;
|
|
62
|
+
email: string;
|
|
51
63
|
password: string;
|
|
64
|
+
firstName: string;
|
|
52
65
|
}[] | undefined;
|
|
53
66
|
}>;
|
|
54
67
|
getValues: import('react-hook-form').UseFormGetValues<{
|
|
55
68
|
bookers?: {
|
|
69
|
+
department?: string | null | undefined;
|
|
70
|
+
agent?: string | null | undefined;
|
|
56
71
|
uuid?: string | undefined;
|
|
72
|
+
role_id?: number | null | undefined;
|
|
57
73
|
status: string;
|
|
58
74
|
phone: string;
|
|
59
|
-
email: string;
|
|
60
|
-
firstName: string;
|
|
61
75
|
lastName: string;
|
|
76
|
+
email: string;
|
|
62
77
|
password: string;
|
|
78
|
+
firstName: string;
|
|
63
79
|
}[] | undefined;
|
|
64
80
|
}>;
|
|
65
81
|
setValue: import('react-hook-form').UseFormSetValue<{
|
|
66
82
|
bookers?: {
|
|
83
|
+
department?: string | null | undefined;
|
|
84
|
+
agent?: string | null | undefined;
|
|
67
85
|
uuid?: string | undefined;
|
|
86
|
+
role_id?: number | null | undefined;
|
|
68
87
|
status: string;
|
|
69
88
|
phone: string;
|
|
70
|
-
email: string;
|
|
71
|
-
firstName: string;
|
|
72
89
|
lastName: string;
|
|
90
|
+
email: string;
|
|
73
91
|
password: string;
|
|
92
|
+
firstName: string;
|
|
74
93
|
}[] | undefined;
|
|
75
94
|
}>;
|
|
76
95
|
watch: import('react-hook-form').UseFormWatch<{
|
|
77
96
|
bookers?: {
|
|
97
|
+
department?: string | null | undefined;
|
|
98
|
+
agent?: string | null | undefined;
|
|
78
99
|
uuid?: string | undefined;
|
|
100
|
+
role_id?: number | null | undefined;
|
|
79
101
|
status: string;
|
|
80
102
|
phone: string;
|
|
81
|
-
email: string;
|
|
82
|
-
firstName: string;
|
|
83
103
|
lastName: string;
|
|
104
|
+
email: string;
|
|
84
105
|
password: string;
|
|
106
|
+
firstName: string;
|
|
85
107
|
}[] | undefined;
|
|
86
108
|
}>;
|
|
87
109
|
trigger: import('react-hook-form').UseFormTrigger<{
|
|
88
110
|
bookers?: {
|
|
111
|
+
department?: string | null | undefined;
|
|
112
|
+
agent?: string | null | undefined;
|
|
89
113
|
uuid?: string | undefined;
|
|
114
|
+
role_id?: number | null | undefined;
|
|
90
115
|
status: string;
|
|
91
116
|
phone: string;
|
|
92
|
-
email: string;
|
|
93
|
-
firstName: string;
|
|
94
117
|
lastName: string;
|
|
118
|
+
email: string;
|
|
95
119
|
password: string;
|
|
120
|
+
firstName: string;
|
|
96
121
|
}[] | undefined;
|
|
97
122
|
}>;
|
|
98
123
|
reset: import('react-hook-form').UseFormReset<{
|
|
99
124
|
bookers?: {
|
|
125
|
+
department?: string | null | undefined;
|
|
126
|
+
agent?: string | null | undefined;
|
|
100
127
|
uuid?: string | undefined;
|
|
128
|
+
role_id?: number | null | undefined;
|
|
101
129
|
status: string;
|
|
102
130
|
phone: string;
|
|
103
|
-
email: string;
|
|
104
|
-
firstName: string;
|
|
105
131
|
lastName: string;
|
|
132
|
+
email: string;
|
|
106
133
|
password: string;
|
|
134
|
+
firstName: string;
|
|
107
135
|
}[] | undefined;
|
|
108
136
|
}>;
|
|
109
137
|
onSubmit: (data: yup.InferType<typeof groupOfBookerSchema>) => Promise<void>;
|
|
@@ -5,10 +5,10 @@ declare const groupOfMemberSchema: yup.ObjectSchema<{
|
|
|
5
5
|
uuid?: string | undefined;
|
|
6
6
|
status: string;
|
|
7
7
|
phone: string;
|
|
8
|
-
email: string;
|
|
9
|
-
firstName: string;
|
|
10
8
|
lastName: string;
|
|
9
|
+
email: string;
|
|
11
10
|
password: string;
|
|
11
|
+
firstName: string;
|
|
12
12
|
}[] | undefined;
|
|
13
13
|
}, yup.AnyObject, {
|
|
14
14
|
members: "";
|
|
@@ -23,10 +23,10 @@ export declare const useImportMembers: (onFinish: () => void) => {
|
|
|
23
23
|
uuid?: string | undefined;
|
|
24
24
|
status: string;
|
|
25
25
|
phone: string;
|
|
26
|
-
email: string;
|
|
27
|
-
firstName: string;
|
|
28
26
|
lastName: string;
|
|
27
|
+
email: string;
|
|
29
28
|
password: string;
|
|
29
|
+
firstName: string;
|
|
30
30
|
}[] | undefined;
|
|
31
31
|
}>;
|
|
32
32
|
handleSubmit: import('react-hook-form').UseFormHandleSubmit<{
|
|
@@ -34,10 +34,10 @@ export declare const useImportMembers: (onFinish: () => void) => {
|
|
|
34
34
|
uuid?: string | undefined;
|
|
35
35
|
status: string;
|
|
36
36
|
phone: string;
|
|
37
|
-
email: string;
|
|
38
|
-
firstName: string;
|
|
39
37
|
lastName: string;
|
|
38
|
+
email: string;
|
|
40
39
|
password: string;
|
|
40
|
+
firstName: string;
|
|
41
41
|
}[] | undefined;
|
|
42
42
|
}, undefined>;
|
|
43
43
|
errors: import('react-hook-form').FieldErrors<{
|
|
@@ -45,10 +45,10 @@ export declare const useImportMembers: (onFinish: () => void) => {
|
|
|
45
45
|
uuid?: string | undefined;
|
|
46
46
|
status: string;
|
|
47
47
|
phone: string;
|
|
48
|
-
email: string;
|
|
49
|
-
firstName: string;
|
|
50
48
|
lastName: string;
|
|
49
|
+
email: string;
|
|
51
50
|
password: string;
|
|
51
|
+
firstName: string;
|
|
52
52
|
}[] | undefined;
|
|
53
53
|
}>;
|
|
54
54
|
getValues: import('react-hook-form').UseFormGetValues<{
|
|
@@ -56,10 +56,10 @@ export declare const useImportMembers: (onFinish: () => void) => {
|
|
|
56
56
|
uuid?: string | undefined;
|
|
57
57
|
status: string;
|
|
58
58
|
phone: string;
|
|
59
|
-
email: string;
|
|
60
|
-
firstName: string;
|
|
61
59
|
lastName: string;
|
|
60
|
+
email: string;
|
|
62
61
|
password: string;
|
|
62
|
+
firstName: string;
|
|
63
63
|
}[] | undefined;
|
|
64
64
|
}>;
|
|
65
65
|
setValue: import('react-hook-form').UseFormSetValue<{
|
|
@@ -67,10 +67,10 @@ export declare const useImportMembers: (onFinish: () => void) => {
|
|
|
67
67
|
uuid?: string | undefined;
|
|
68
68
|
status: string;
|
|
69
69
|
phone: string;
|
|
70
|
-
email: string;
|
|
71
|
-
firstName: string;
|
|
72
70
|
lastName: string;
|
|
71
|
+
email: string;
|
|
73
72
|
password: string;
|
|
73
|
+
firstName: string;
|
|
74
74
|
}[] | undefined;
|
|
75
75
|
}>;
|
|
76
76
|
watch: import('react-hook-form').UseFormWatch<{
|
|
@@ -78,10 +78,10 @@ export declare const useImportMembers: (onFinish: () => void) => {
|
|
|
78
78
|
uuid?: string | undefined;
|
|
79
79
|
status: string;
|
|
80
80
|
phone: string;
|
|
81
|
-
email: string;
|
|
82
|
-
firstName: string;
|
|
83
81
|
lastName: string;
|
|
82
|
+
email: string;
|
|
84
83
|
password: string;
|
|
84
|
+
firstName: string;
|
|
85
85
|
}[] | undefined;
|
|
86
86
|
}>;
|
|
87
87
|
trigger: import('react-hook-form').UseFormTrigger<{
|
|
@@ -89,10 +89,10 @@ export declare const useImportMembers: (onFinish: () => void) => {
|
|
|
89
89
|
uuid?: string | undefined;
|
|
90
90
|
status: string;
|
|
91
91
|
phone: string;
|
|
92
|
-
email: string;
|
|
93
|
-
firstName: string;
|
|
94
92
|
lastName: string;
|
|
93
|
+
email: string;
|
|
95
94
|
password: string;
|
|
95
|
+
firstName: string;
|
|
96
96
|
}[] | undefined;
|
|
97
97
|
}>;
|
|
98
98
|
reset: import('react-hook-form').UseFormReset<{
|
|
@@ -100,10 +100,10 @@ export declare const useImportMembers: (onFinish: () => void) => {
|
|
|
100
100
|
uuid?: string | undefined;
|
|
101
101
|
status: string;
|
|
102
102
|
phone: string;
|
|
103
|
-
email: string;
|
|
104
|
-
firstName: string;
|
|
105
103
|
lastName: string;
|
|
104
|
+
email: string;
|
|
106
105
|
password: string;
|
|
106
|
+
firstName: string;
|
|
107
107
|
}[] | undefined;
|
|
108
108
|
}>;
|
|
109
109
|
onSubmit: (data: yup.InferType<typeof groupOfMemberSchema>) => Promise<void>;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { IUser } from '../types/response.dto';
|
|
2
|
-
export declare const useMemberList: ({ defaultPage, defaultLimit, }?: {
|
|
2
|
+
export declare const useMemberList: ({ defaultPage, defaultLimit, tenantId, }?: {
|
|
3
3
|
defaultPage?: number;
|
|
4
4
|
defaultLimit?: number;
|
|
5
|
+
tenantId?: number;
|
|
5
6
|
}) => {
|
|
6
7
|
members: IUser[];
|
|
7
8
|
total: number;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
interface MenuState {
|
|
2
|
+
[key: string]: boolean;
|
|
3
|
+
}
|
|
4
|
+
export declare const useMenuState: () => {
|
|
5
|
+
menuStates: MenuState;
|
|
6
|
+
saveAccordionState: (key: string, isOpen: boolean) => void;
|
|
7
|
+
getAccordionState: (key: string) => boolean;
|
|
8
|
+
toggleAccordionState: (key: string) => void;
|
|
9
|
+
clearAccordionState: (key: string) => void;
|
|
10
|
+
};
|
|
11
|
+
export {};
|
|
@@ -5,5 +5,5 @@ type Props = {
|
|
|
5
5
|
endDate?: string | null;
|
|
6
6
|
startDate?: string | null;
|
|
7
7
|
};
|
|
8
|
-
export declare const TransactionList: ({
|
|
8
|
+
export declare const TransactionList: ({ hideAddButton, defaultLimit, endDate, startDate, }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
9
9
|
export {};
|
|
@@ -51,6 +51,11 @@ export type IAgent = {
|
|
|
51
51
|
phone: string;
|
|
52
52
|
identityNumber: string;
|
|
53
53
|
};
|
|
54
|
+
export declare enum ETicketEntryType {
|
|
55
|
+
MANUAL = "manual",
|
|
56
|
+
IMAGE = "image",
|
|
57
|
+
CODE = "code"
|
|
58
|
+
}
|
|
54
59
|
export type IZNSInfo = {
|
|
55
60
|
msgId: string;
|
|
56
61
|
status?: string;
|
|
@@ -284,6 +289,10 @@ export type IUser = {
|
|
|
284
289
|
roles?: IRole[];
|
|
285
290
|
tenant?: ITenant;
|
|
286
291
|
permissions?: EPermissionKey[];
|
|
292
|
+
balance?: {
|
|
293
|
+
amount: number;
|
|
294
|
+
};
|
|
295
|
+
createdAt?: string;
|
|
287
296
|
source?: string;
|
|
288
297
|
};
|
|
289
298
|
export type IBid = {
|