gotrip-fx-transaction-form 1.0.93 → 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.
Files changed (34) hide show
  1. package/index.js +34838 -33906
  2. package/package.json +1 -1
  3. package/types/components/AddDepartment/AddDepartmentForm.d.ts +2 -1
  4. package/types/components/AddTransaction/SingularCustomer.d.ts +1 -2
  5. package/types/components/AddUser/AddMemberForm.d.ts +2 -1
  6. package/types/components/Department/AddDepartmentMemberForm.d.ts +2 -1
  7. package/types/components/Menu/Menu.d.ts +6 -1
  8. package/types/components/Menu/MenuItem.d.ts +5 -4
  9. package/types/components/Modal/AddDepartmentMemberModal.d.ts +1 -0
  10. package/types/components/Modal/AddDepartmentModal.d.ts +1 -0
  11. package/types/components/Modal/UpdateCommissionPolicy.d.ts +2 -1
  12. package/types/components/Modal/UpdateTenantCommissionInputCell.d.ts +31 -0
  13. package/types/components/Modal/UpdateTenantCommissionPolicyModal.d.ts +4 -1
  14. package/types/components/OrganizationFlow/DepartmentNode.d.ts +3 -0
  15. package/types/components/OrganizationFlow/LayoutFlow.d.ts +3 -0
  16. package/types/components/OrganizationFlow/OrganizationLayoutFlow.d.ts +1 -1
  17. package/types/components/Pagination/LimitDropdown.d.ts +2 -1
  18. package/types/constants/api-urls.d.ts +12 -0
  19. package/types/constants/organization-flow.constants.d.ts +33 -0
  20. package/types/design-systems/Select/SelectSearchable.d.ts +17 -0
  21. package/types/hooks/transactions/useEducation.hook.d.ts +8 -8
  22. package/types/hooks/transactions/useImmigration.hook.d.ts +8 -8
  23. package/types/hooks/useBankList.d.ts +5 -1
  24. package/types/hooks/useComissionPolicies.d.ts +4 -2
  25. package/types/hooks/useHeaderMenu.d.ts +2 -2
  26. package/types/hooks/useImportBookers.d.ts +47 -19
  27. package/types/hooks/useImportMembers.d.ts +18 -18
  28. package/types/hooks/useMemberList.d.ts +2 -1
  29. package/types/hooks/useMenuState.d.ts +11 -0
  30. package/types/hooks/useRoleList.d.ts +3 -1
  31. package/types/pages/agency/esim-listing/ESIMListing.d.ts +1 -6
  32. package/types/pages/agency/tracsaction-list/TransactionList.d.ts +1 -1
  33. package/types/pages/agency/transaction-detail/TransactionDetail.d.ts +1 -3
  34. package/types/types/response.dto.d.ts +9 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gotrip-fx-transaction-form",
3
- "version": "1.0.93",
3
+ "version": "1.0.95",
4
4
  "description": "FX Transaction Form ES6 module",
5
5
  "main": "index.js",
6
6
  "types": "types/index.d.ts",
@@ -4,6 +4,7 @@ type AddDepartmentFormProps = {
4
4
  parentId?: number | null;
5
5
  onSubmitSuccess: () => void;
6
6
  onClose: () => void;
7
+ tenantId?: number;
7
8
  };
8
- export declare const AddDepartmentForm: ({ type, parentId, onClose, onSubmitSuccess, }: AddDepartmentFormProps) => import("react/jsx-runtime").JSX.Element;
9
+ export declare const AddDepartmentForm: ({ type, parentId, onClose, onSubmitSuccess, tenantId, }: AddDepartmentFormProps) => import("react/jsx-runtime").JSX.Element;
9
10
  export {};
@@ -1,8 +1,7 @@
1
1
  type Props = {
2
2
  onFinish: () => void;
3
- ignoreLayout?: boolean;
4
3
  onBack?: () => void;
5
4
  showGetTicketInfo?: boolean;
6
5
  };
7
- export declare const SingularCustomer: ({ onFinish, ignoreLayout, showGetTicketInfo, }: Props) => import("react/jsx-runtime").JSX.Element;
6
+ export declare const SingularCustomer: ({ onFinish, showGetTicketInfo }: Props) => import("react/jsx-runtime").JSX.Element;
8
7
  export {};
@@ -2,6 +2,7 @@ type AddMemberFormProps = {
2
2
  departmentId?: number | null;
3
3
  onSubmitSuccess: () => void;
4
4
  onClose: () => void;
5
+ tenantId?: number;
5
6
  };
6
- export declare const AddMemberForm: ({ departmentId, onClose, onSubmitSuccess }: AddMemberFormProps) => import("react/jsx-runtime").JSX.Element;
7
+ export declare const AddMemberForm: ({ departmentId, onClose, onSubmitSuccess, tenantId, }: AddMemberFormProps) => import("react/jsx-runtime").JSX.Element;
7
8
  export {};
@@ -10,6 +10,7 @@ type AddDepartmentFormProps = {
10
10
  roleId: number;
11
11
  }>) => void;
12
12
  subForm?: boolean;
13
+ tenantId?: number;
13
14
  };
14
- export declare const AddDepartmentMemberForm: ({ onClose, onSubmitSuccess, departmentId, departmentType, joinedMemberIds, onChange, subForm, }: AddDepartmentFormProps) => import("react/jsx-runtime").JSX.Element;
15
+ export declare const AddDepartmentMemberForm: ({ onClose, onSubmitSuccess, departmentId, departmentType, joinedMemberIds, onChange, subForm, tenantId, }: AddDepartmentFormProps) => import("react/jsx-runtime").JSX.Element;
15
16
  export {};
@@ -1 +1,6 @@
1
- export declare const Menu: () => import("react/jsx-runtime").JSX.Element;
1
+ type Props = {
2
+ onRedirect?: () => void;
3
+ };
4
+ export declare const Menu: ({ onRedirect }: Props) => import("react/jsx-runtime").JSX.Element;
5
+ declare const _default: import('react').MemoExoticComponent<({ onRedirect }: Props) => import("react/jsx-runtime").JSX.Element>;
6
+ export default _default;
@@ -1,15 +1,16 @@
1
- import { IconDefinition } from '@fortawesome/free-solid-svg-icons';
2
1
  type Props = {
3
2
  label: string;
4
- icon: IconDefinition;
3
+ icon?: React.ReactNode;
5
4
  path: string;
6
5
  subMenuItems?: Array<{
7
6
  label: string;
8
- icon: IconDefinition;
7
+ icon?: React.ReactNode;
9
8
  path: string;
10
9
  display?: boolean;
11
10
  }>;
12
11
  active: boolean;
12
+ onClick?: () => void;
13
13
  };
14
- export declare const MenuItem: ({ label, icon, path, active, subMenuItems }: Props) => import("react/jsx-runtime").JSX.Element;
14
+ export declare const SubMenuItem: ({ label, icon, path, active, onClick }: Props) => import("react/jsx-runtime").JSX.Element;
15
+ export declare const MenuItem: ({ label, icon, path, active, onClick }: Props) => import("react/jsx-runtime").JSX.Element;
15
16
  export {};
@@ -8,6 +8,7 @@ type AddDepartmentMemberModalProps = {
8
8
  disabled?: boolean;
9
9
  }> | null;
10
10
  title: string;
11
+ tenantId?: number;
11
12
  };
12
13
  export interface AddDepartmentMemberModalRef {
13
14
  open: (departmentId: number | null, departmentType: EDepartmentType) => void;
@@ -8,6 +8,7 @@ type AddDepartmentModalProps = {
8
8
  disabled?: boolean;
9
9
  }> | null;
10
10
  title: string;
11
+ tenantId?: number;
11
12
  };
12
13
  export interface AddDepartmentModalRef {
13
14
  type: EDepartmentType;
@@ -2,10 +2,11 @@ type Props = {
2
2
  canEdit?: boolean;
3
3
  objectId: number;
4
4
  objectType: 'department' | 'member';
5
+ parentId?: number | null;
5
6
  objectName?: string;
6
7
  isOpen: boolean;
7
8
  onClose: () => void;
8
9
  onSuccess?: () => void;
9
10
  };
10
- export declare const UpdateCommissionPolicyModal: ({ canEdit, objectId, objectType, isOpen, onClose, onSuccess, }: Props) => import("react/jsx-runtime").JSX.Element;
11
+ export declare const UpdateCommissionPolicyModal: ({ canEdit, objectId, objectType, parentId, isOpen, onClose, onSuccess, }: Props) => import("react/jsx-runtime").JSX.Element;
11
12
  export {};
@@ -0,0 +1,31 @@
1
+ import { ITenant } from '../../types/response.dto';
2
+ import { ECommissionPolicyCalculationType } from '../../types/enum';
3
+ export type ICommissionPolicySettings = {
4
+ [key: string]: {
5
+ [currency: string]: {
6
+ [method: string]: {
7
+ type: ECommissionPolicyCalculationType;
8
+ value: string;
9
+ };
10
+ };
11
+ };
12
+ };
13
+ type Props = {
14
+ id: string;
15
+ bank: ITenant;
16
+ curr: string;
17
+ method: string;
18
+ type: ECommissionPolicyCalculationType;
19
+ value: string;
20
+ canEdit: boolean;
21
+ };
22
+ export type RefMethod = {
23
+ getId: () => string;
24
+ getCurrency: () => string;
25
+ getMethod: () => string;
26
+ getBank: () => ITenant;
27
+ getValue: () => string;
28
+ getType: () => ECommissionPolicyCalculationType;
29
+ };
30
+ declare const _default: import('react').MemoExoticComponent<import('react').ForwardRefExoticComponent<Props & import('react').RefAttributes<RefMethod>>>;
31
+ export default _default;
@@ -4,7 +4,10 @@ type Props = {
4
4
  isOpen: boolean;
5
5
  onClose: () => void;
6
6
  tenant: ITenant;
7
+ parentId?: number | null;
8
+ objectType?: 'tenant' | 'department' | 'member';
9
+ objectId?: number;
7
10
  onSuccess?: () => void;
8
11
  };
9
- export declare const UpdateTenantCommissionPolicyModal: ({ canEdit, isOpen, onClose, tenant, onSuccess, }: Props) => import("react/jsx-runtime").JSX.Element;
12
+ export declare const UpdateTenantCommissionPolicyModal: ({ canEdit, isOpen, onClose, tenant, parentId, objectType, objectId, onSuccess, }: Props) => import("react/jsx-runtime").JSX.Element;
10
13
  export {};
@@ -12,7 +12,10 @@ interface DepartmentNodeProps {
12
12
  canAddMember?: boolean;
13
13
  canRemoveMember?: boolean;
14
14
  canViewTenantCommissionPolicy?: boolean;
15
+ canUpdateTenantCommissionPolicy?: boolean;
16
+ canViewDepartmentCommissionPolicy?: boolean;
15
17
  canUpdateDepartmentCommissionPolicy?: boolean;
18
+ canViewMemberCommissionPolicy?: boolean;
16
19
  canUpdateMemberCommissionPolicy?: boolean;
17
20
  };
18
21
  };
@@ -14,7 +14,10 @@ export interface INode {
14
14
  canAddMember?: boolean;
15
15
  canRemoveMember?: boolean;
16
16
  canViewTenantCommissionPolicy?: boolean;
17
+ canUpdateTenantCommissionPolicy?: boolean;
18
+ canViewDepartmentCommissionPolicy?: boolean;
17
19
  canUpdateDepartmentCommissionPolicy?: boolean;
20
+ canViewMemberCommissionPolicy?: boolean;
18
21
  canUpdateMemberCommissionPolicy?: boolean;
19
22
  };
20
23
  };
@@ -1,7 +1,7 @@
1
1
  import { IDepartment, ITenant, IUser } from '../../types/response.dto';
2
2
  type LayoutFlowProps = {
3
3
  admin: IUser | null;
4
- tenant: ITenant;
4
+ tenant: ITenant | undefined;
5
5
  departments: IDepartment[];
6
6
  onMenuItemClick?: (action: string, value: string) => void;
7
7
  onOpen?: (value: string) => void;
@@ -1,6 +1,7 @@
1
1
  type Props = {
2
2
  limit: number;
3
3
  onLimitChange: (limit: number) => void;
4
+ options?: number[];
4
5
  };
5
- export declare const LimitDropdown: ({ limit, onLimitChange }: Props) => import("react/jsx-runtime").JSX.Element;
6
+ export declare const LimitDropdown: ({ limit, onLimitChange, options, }: Props) => import("react/jsx-runtime").JSX.Element;
6
7
  export {};
@@ -30,6 +30,7 @@ export declare const ApiUrls: {
30
30
  };
31
31
  role: {
32
32
  list: string;
33
+ listByTenant: (tenantId: number) => string;
33
34
  create: string;
34
35
  delete: string;
35
36
  permissions: string;
@@ -63,6 +64,9 @@ export declare const ApiUrls: {
63
64
  list: string;
64
65
  details: string;
65
66
  create: string;
67
+ createBySystem: (tenantId: number) => string;
68
+ removeMembersBySystem: (tenantId: number, departmentId: number) => string;
69
+ addMembersBySystem: (tenantId: number, departmentId: number) => string;
66
70
  update: string;
67
71
  addMembers: string;
68
72
  removeMembers: string;
@@ -90,6 +94,7 @@ export declare const ApiUrls: {
90
94
  getBookersOfSupervisor: string;
91
95
  memberList: string;
92
96
  createMember: string;
97
+ createMemberByAdmin: (tenantId: number) => string;
93
98
  createManyMember: string;
94
99
  getMember: string;
95
100
  updateMember: string;
@@ -98,6 +103,7 @@ export declare const ApiUrls: {
98
103
  updateUser: string;
99
104
  resetPassword: string;
100
105
  impersonateToken: string;
106
+ getMembersByTenantId: (tenantId: number) => string;
101
107
  };
102
108
  dashboardHandlers: {
103
109
  getTotalCommissionAmount: string;
@@ -120,6 +126,12 @@ export declare const ApiUrls: {
120
126
  getCommissionPolicies: string;
121
127
  updateCommissionPolicies: string;
122
128
  getTenantCommissionPolicies: string;
129
+ getTenantCommissionPoliciesByTenantId: (tenantId: number) => string;
130
+ getDepartmentCommissionPolicies: (departmentId: number) => string;
131
+ getMemberCommissionPolicies: (departmentId: number, memberId: number) => string;
132
+ updateTenantCommissionPolicies: (tenantId: number) => string;
133
+ updateDepartmentCommissionPolicies: (departmentId: number) => string;
134
+ updateMemberCommissionPolicies: (departmentId: number, memberId: number) => string;
123
135
  };
124
136
  esimHandlers: {
125
137
  list: string;
@@ -0,0 +1,33 @@
1
+ export declare const ORGANIZATION_FLOW_CONSTANTS: {
2
+ readonly TOAST_DURATION: {
3
+ readonly SUCCESS: 2000;
4
+ readonly ERROR: 2000;
5
+ };
6
+ readonly MODAL_TITLES: {
7
+ readonly ADD_DEPARTMENT: "Thêm phòng ban";
8
+ readonly ADD_MEMBER: "Thêm nhân viên";
9
+ };
10
+ readonly TOAST_MESSAGES: {
11
+ readonly REMOVE_MEMBER_SUCCESS: "Xóa thành viên thành công";
12
+ readonly REMOVE_MEMBER_ERROR: "Lỗi khi xóa thành viên";
13
+ };
14
+ readonly VALUE_PREFIXES: {
15
+ readonly DEPARTMENT: "dept-";
16
+ readonly TENANT: "tenant-";
17
+ readonly USER: "user-";
18
+ };
19
+ readonly SEPARATORS: {
20
+ readonly DEPARTMENT_USER: ":";
21
+ };
22
+ };
23
+ export declare const parseValueString: {
24
+ getDepartmentId: (value: string) => number | null;
25
+ getTenantId: (value: string) => number | null;
26
+ getUserId: (value: string) => number | null;
27
+ getDepartmentAndUserId: (value: string) => {
28
+ departmentId: number | null;
29
+ userId: number | null;
30
+ };
31
+ isTenantValue: (value: string) => boolean;
32
+ containsUser: (value: string) => boolean;
33
+ };
@@ -0,0 +1,17 @@
1
+ export type Option = {
2
+ label: string;
3
+ value: string;
4
+ };
5
+ type ChakraSelectSearchableProps = {
6
+ options: Option[];
7
+ value?: string;
8
+ onChange: (value: string) => void;
9
+ placeholder?: string;
10
+ styles?: {
11
+ container?: (base: React.CSSProperties) => React.CSSProperties;
12
+ menu?: (base: React.CSSProperties) => React.CSSProperties;
13
+ control?: (base: React.CSSProperties) => React.CSSProperties;
14
+ };
15
+ };
16
+ export declare const GTSelectSearchable: ({ options, value, onChange, placeholder, styles, }: ChakraSelectSearchableProps) => import("react/jsx-runtime").JSX.Element;
17
+ export {};
@@ -64,12 +64,12 @@ export declare const useEducation: ({ onFinish }: Props) => {
64
64
  type: string;
65
65
  link: string;
66
66
  }[] | undefined;
67
- email: string;
68
67
  customerName: string;
69
68
  mobileNo: string;
70
69
  amount: number;
71
70
  currencyCode: string;
72
71
  agreeTerms: NonNullable<boolean | undefined>;
72
+ email: string;
73
73
  province: string;
74
74
  bankShortNames: (string | undefined)[];
75
75
  document1: {
@@ -94,12 +94,12 @@ export declare const useEducation: ({ onFinish }: Props) => {
94
94
  type: string;
95
95
  link: string;
96
96
  }[] | undefined;
97
- email: string;
98
97
  customerName: string;
99
98
  mobileNo: string;
100
99
  amount: number;
101
100
  currencyCode: string;
102
101
  agreeTerms: NonNullable<boolean | undefined>;
102
+ email: string;
103
103
  province: string;
104
104
  bankShortNames: (string | undefined)[];
105
105
  document1: {
@@ -125,12 +125,12 @@ export declare const useEducation: ({ onFinish }: Props) => {
125
125
  type: string;
126
126
  link: string;
127
127
  }[] | undefined;
128
- email: string;
129
128
  customerName: string;
130
129
  mobileNo: string;
131
130
  amount: number;
132
131
  currencyCode: string;
133
132
  agreeTerms: NonNullable<boolean | undefined>;
133
+ email: string;
134
134
  province: string;
135
135
  bankShortNames: (string | undefined)[];
136
136
  document1: {
@@ -156,12 +156,12 @@ export declare const useEducation: ({ onFinish }: Props) => {
156
156
  type: string;
157
157
  link: string;
158
158
  }[] | undefined;
159
- email: string;
160
159
  customerName: string;
161
160
  mobileNo: string;
162
161
  amount: number;
163
162
  currencyCode: string;
164
163
  agreeTerms: NonNullable<boolean | undefined>;
164
+ email: string;
165
165
  province: string;
166
166
  bankShortNames: (string | undefined)[];
167
167
  document1: {
@@ -186,12 +186,12 @@ export declare const useEducation: ({ onFinish }: Props) => {
186
186
  type: string;
187
187
  link: string;
188
188
  }[] | undefined;
189
- email: string;
190
189
  customerName: string;
191
190
  mobileNo: string;
192
191
  amount: number;
193
192
  currencyCode: string;
194
193
  agreeTerms: NonNullable<boolean | undefined>;
194
+ email: string;
195
195
  province: string;
196
196
  bankShortNames: (string | undefined)[];
197
197
  document1: {
@@ -217,12 +217,12 @@ export declare const useEducation: ({ onFinish }: Props) => {
217
217
  type: string;
218
218
  link: string;
219
219
  }[] | undefined;
220
- email: string;
221
220
  customerName: string;
222
221
  mobileNo: string;
223
222
  amount: number;
224
223
  currencyCode: string;
225
224
  agreeTerms: NonNullable<boolean | undefined>;
225
+ email: string;
226
226
  province: string;
227
227
  bankShortNames: (string | undefined)[];
228
228
  document1: {
@@ -247,12 +247,12 @@ export declare const useEducation: ({ onFinish }: Props) => {
247
247
  type: string;
248
248
  link: string;
249
249
  }[] | undefined;
250
- email: string;
251
250
  customerName: string;
252
251
  mobileNo: string;
253
252
  amount: number;
254
253
  currencyCode: string;
255
254
  agreeTerms: NonNullable<boolean | undefined>;
255
+ email: string;
256
256
  province: string;
257
257
  bankShortNames: (string | undefined)[];
258
258
  document1: {
@@ -294,12 +294,12 @@ export declare const useEducation: ({ onFinish }: Props) => {
294
294
  type: string;
295
295
  link: string;
296
296
  }[] | undefined;
297
- email: string;
298
297
  customerName: string;
299
298
  mobileNo: string;
300
299
  amount: number;
301
300
  currencyCode: string;
302
301
  agreeTerms: NonNullable<boolean | undefined>;
302
+ email: string;
303
303
  province: string;
304
304
  bankShortNames: (string | undefined)[];
305
305
  document1: {
@@ -46,12 +46,12 @@ export declare const useImmigration: ({ onFinish }: Props) => {
46
46
  selectedBanks: ITenant[];
47
47
  onSetSelectedBanks: (banks: ITenant[]) => void;
48
48
  register: import('react-hook-form').UseFormRegister<{
49
- email: string;
50
49
  customerName: string;
51
50
  mobileNo: string;
52
51
  amount: number;
53
52
  currencyCode: string;
54
53
  agreeTerms: NonNullable<boolean | undefined>;
54
+ email: string;
55
55
  province: string;
56
56
  bankShortNames: (string | undefined)[];
57
57
  document1: {
@@ -68,12 +68,12 @@ export declare const useImmigration: ({ onFinish }: Props) => {
68
68
  }[];
69
69
  }>;
70
70
  handleSubmit: import('react-hook-form').UseFormHandleSubmit<{
71
- email: string;
72
71
  customerName: string;
73
72
  mobileNo: string;
74
73
  amount: number;
75
74
  currencyCode: string;
76
75
  agreeTerms: NonNullable<boolean | undefined>;
76
+ email: string;
77
77
  province: string;
78
78
  bankShortNames: (string | undefined)[];
79
79
  document1: {
@@ -91,12 +91,12 @@ export declare const useImmigration: ({ onFinish }: Props) => {
91
91
  }, undefined>;
92
92
  formState: {
93
93
  errors: import('react-hook-form').FieldErrors<{
94
- email: string;
95
94
  customerName: string;
96
95
  mobileNo: string;
97
96
  amount: number;
98
97
  currencyCode: string;
99
98
  agreeTerms: NonNullable<boolean | undefined>;
99
+ email: string;
100
100
  province: string;
101
101
  bankShortNames: (string | undefined)[];
102
102
  document1: {
@@ -114,12 +114,12 @@ export declare const useImmigration: ({ onFinish }: Props) => {
114
114
  }>;
115
115
  };
116
116
  getValues: import('react-hook-form').UseFormGetValues<{
117
- email: string;
118
117
  customerName: string;
119
118
  mobileNo: string;
120
119
  amount: number;
121
120
  currencyCode: string;
122
121
  agreeTerms: NonNullable<boolean | undefined>;
122
+ email: string;
123
123
  province: string;
124
124
  bankShortNames: (string | undefined)[];
125
125
  document1: {
@@ -136,12 +136,12 @@ export declare const useImmigration: ({ onFinish }: Props) => {
136
136
  }[];
137
137
  }>;
138
138
  setValue: import('react-hook-form').UseFormSetValue<{
139
- email: string;
140
139
  customerName: string;
141
140
  mobileNo: string;
142
141
  amount: number;
143
142
  currencyCode: string;
144
143
  agreeTerms: NonNullable<boolean | undefined>;
144
+ email: string;
145
145
  province: string;
146
146
  bankShortNames: (string | undefined)[];
147
147
  document1: {
@@ -159,12 +159,12 @@ export declare const useImmigration: ({ onFinish }: Props) => {
159
159
  }>;
160
160
  onSubmit: (data: yup.InferType<typeof businessSchema>) => Promise<void>;
161
161
  errors: import('react-hook-form').FieldErrors<{
162
- email: string;
163
162
  customerName: string;
164
163
  mobileNo: string;
165
164
  amount: number;
166
165
  currencyCode: string;
167
166
  agreeTerms: NonNullable<boolean | undefined>;
167
+ email: string;
168
168
  province: string;
169
169
  bankShortNames: (string | undefined)[];
170
170
  document1: {
@@ -181,12 +181,12 @@ export declare const useImmigration: ({ onFinish }: Props) => {
181
181
  }[];
182
182
  }>;
183
183
  reset: import('react-hook-form').UseFormReset<{
184
- email: string;
185
184
  customerName: string;
186
185
  mobileNo: string;
187
186
  amount: number;
188
187
  currencyCode: string;
189
188
  agreeTerms: NonNullable<boolean | undefined>;
189
+ email: string;
190
190
  province: string;
191
191
  bankShortNames: (string | undefined)[];
192
192
  document1: {
@@ -218,12 +218,12 @@ export declare const useImmigration: ({ onFinish }: Props) => {
218
218
  handleAmountChange: (values: NumberFormatValues) => void;
219
219
  amount: number;
220
220
  trigger: import('react-hook-form').UseFormTrigger<{
221
- email: string;
222
221
  customerName: string;
223
222
  mobileNo: string;
224
223
  amount: number;
225
224
  currencyCode: string;
226
225
  agreeTerms: NonNullable<boolean | undefined>;
226
+ email: string;
227
227
  province: string;
228
228
  bankShortNames: (string | undefined)[];
229
229
  document1: {
@@ -1,6 +1,10 @@
1
1
  import { ITenant } from '../types/response.dto';
2
- export declare const useBankList: () => {
2
+ type Props = {
3
+ hasUseCases?: boolean;
4
+ };
5
+ export declare const useBankList: ({ hasUseCases }?: Props) => {
3
6
  banks: ITenant[];
4
7
  loading: boolean;
5
8
  refetchData: () => void;
6
9
  };
10
+ export {};
@@ -1,10 +1,12 @@
1
1
  import { ICommissionPolicy } from '../types/response.dto';
2
- export declare const useComissionPolicies: ({ isAdminView }: {
2
+ export declare const useComissionPolicies: ({ isAdminView }?: {
3
3
  isAdminView?: boolean;
4
4
  }) => {
5
5
  loading: boolean;
6
6
  commissionPolicies: ICommissionPolicy[];
7
7
  getCommissionPoliciesByTenantId: (tenantId: number) => Promise<ICommissionPolicy[]>;
8
8
  getCommissionPoliciesByDepartmentId: (departmentId: number) => Promise<ICommissionPolicy[]>;
9
- getCommissionPoliciesByMemberId: (memberId: number) => Promise<ICommissionPolicy[]>;
9
+ getCommissionPoliciesByMemberId: (departmentId: number, memberId: number) => Promise<ICommissionPolicy[]>;
10
+ isAdmin: boolean;
11
+ isAgency: boolean;
10
12
  };
@@ -1,8 +1,8 @@
1
1
  import { EPermissionKey } from '../types/user';
2
- import { IconDefinition } from '@fortawesome/free-solid-svg-icons';
3
2
  export type HeaderMenuItem = {
3
+ key?: string;
4
4
  label: string;
5
- icon: IconDefinition;
5
+ icon?: React.ReactNode;
6
6
  path: string;
7
7
  forPermissions?: EPermissionKey[];
8
8
  display?: boolean;