gotrip-fx-transaction-form 1.0.155 → 1.0.157
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/assets/index.css +1 -1
- package/index.js +55435 -43167
- package/package.json +1 -1
- package/types/components/Apps/EmbededIndividualApp.d.ts +4 -1
- package/types/components/Department/DepartmentCard.d.ts +3 -1
- package/types/components/Insurance/CountryWithFlag.d.ts +23 -0
- package/types/components/Insurance/CreateInsuranceTransactionForm.d.ts +8 -0
- package/types/components/Insurance/FormElements.d.ts +36 -3
- package/types/components/Insurance/InsuranceContentRenderer/DynamicRenderer.d.ts +6 -0
- package/types/components/Insurance/InsuranceContentRenderer/blocks/AccordionBlock.d.ts +6 -0
- package/types/components/Insurance/InsuranceContentRenderer/blocks/ActionButtonBlock.d.ts +6 -0
- package/types/components/Insurance/InsuranceContentRenderer/blocks/ContainerBlock.d.ts +6 -0
- package/types/components/Insurance/InsuranceContentRenderer/blocks/DataRowBlock.d.ts +6 -0
- package/types/components/Insurance/InsuranceContentRenderer/blocks/DividerBlock.d.ts +6 -0
- package/types/components/Insurance/InsuranceContentRenderer/blocks/ListGroupBlock.d.ts +6 -0
- package/types/components/Insurance/InsuranceContentRenderer/blocks/TextBlock.d.ts +6 -0
- package/types/components/Insurance/InsuranceContentRenderer/types.d.ts +64 -0
- package/types/components/Insurance/InsuranceContentRenderer/utils/richText.d.ts +14 -0
- package/types/components/Insurance/InsuranceContentRenderer/utils/styleMapper.d.ts +6 -0
- package/types/components/Insurance/InsurancePlans/BenefitDetailsModal.d.ts +11 -0
- package/types/components/Insurance/InsurancePlans/InsurancePlanCard.d.ts +28 -0
- package/types/components/Insurance/InsurancePlans/InsurancePlanFilter.d.ts +12 -0
- package/types/components/Insurance/InsurancePlans/InsurancePlanList.d.ts +21 -0
- package/types/components/Insurance/InsurancePlans/index.d.ts +3 -0
- package/types/components/Insurance/RelationshipSelect.d.ts +22 -0
- package/types/components/Insurance/SimpleDetail.d.ts +2 -1
- package/types/components/Insurance/StepFourPayment.d.ts +14 -0
- package/types/components/Insurance/StepOneForm.d.ts +5 -14
- package/types/components/Insurance/StepThreeBuyerInfo.d.ts +9 -0
- package/types/components/Insurance/StepThreeInsuredPeople.d.ts +17 -0
- package/types/components/Insurance/StepTwoPlans.d.ts +18 -0
- package/types/components/Insurance/countryUtils.d.ts +10 -0
- package/types/components/Insurance/types.d.ts +71 -2
- package/types/components/Insurance/utils.d.ts +2 -2
- package/types/components/Insurance/validationRules.d.ts +4 -0
- package/types/components/Insurance/validationUtils.d.ts +12 -0
- package/types/components/Modal/InsurancePaymentModal.d.ts +11 -0
- package/types/components/Modal/UpdateTenantCommissionInputCell.d.ts +14 -13
- package/types/components/PolicyGroup/CommissionPolicyGroupFormDialog.d.ts +16 -0
- package/types/components/PolicyGroup/CommissionPolicyGroupListView.d.ts +11 -0
- package/types/components/PolicyGroup/PolicyRulesEditor.d.ts +54 -0
- package/types/components/PolicyGroup/PolicyTypes.d.ts +41 -0
- package/types/components/PolicyGroup/PricingPolicyListView.d.ts +11 -0
- package/types/components/StepIndicator/StepIndicatorCard.d.ts +11 -0
- package/types/components/StepIndicator/StepIndicatorHorizontal.d.ts +11 -0
- package/types/components/StepIndicator/index.d.ts +2 -0
- package/types/constants/api-urls.d.ts +23 -10
- package/types/constants/commission-policy-constants.d.ts +5 -0
- package/types/constants/countries.d.ts +2 -0
- package/types/constants/policy-enums.d.ts +7 -1
- package/types/embeded-main.d.ts +3 -0
- package/types/hooks/useBookedSimGrouped.d.ts +38 -0
- package/types/hooks/useBookedTransactionGroupDetail.d.ts +40 -0
- package/types/hooks/useComissionPolicies.d.ts +6 -6
- package/types/hooks/useDocumentScan.d.ts +22 -0
- package/types/hooks/useImportBookers.d.ts +9 -9
- package/types/hooks/useImportMembers.d.ts +9 -9
- package/types/hooks/useInsuranceData.d.ts +4 -19
- package/types/hooks/useInsurancePlans.d.ts +10 -0
- package/types/hooks/useInsuranceTransaction.d.ts +40 -1
- package/types/hooks/useParseDocumentData.d.ts +10 -0
- package/types/hooks/usePolicyGroups.d.ts +16 -1
- package/types/hooks/useTenantList.d.ts +5 -4
- package/types/hooks/useUserList.d.ts +3 -1
- package/types/pages/admin/fx-commission-policy/FxCommissionPolicyManagement.d.ts +1 -0
- package/types/pages/agency/booked-sim-list/BookedSimDescription.d.ts +6 -0
- package/types/pages/agency/booked-sim-list/BookedSimList.d.ts +6 -0
- package/types/pages/agency/booked-sim-transaction-detail/BookedGroupSimTransactionDetail.d.ts +1 -0
- package/types/pages/agency/role-list/RoleList.d.ts +2 -0
- package/types/pages/guest/insurance-create.d.ts +5 -0
- package/types/store/useAuthStore.d.ts +1 -0
- package/types/store/useTenantStore.d.ts +12 -0
- package/types/types/enum.d.ts +10 -2
- package/types/types/insurance-transaction.dto.d.ts +4 -1
- package/types/types/insurance.d.ts +13 -2
- package/types/types/response.dto.d.ts +26 -4
- package/types/types/sdk.d.ts +4 -0
- package/types/types/user.d.ts +5 -1
- package/types/util/insurance.util.d.ts +4 -0
- package/types/components/Insurance/StepFourSummary.d.ts +0 -18
- package/types/components/Insurance/StepIndicator.d.ts +0 -10
- package/types/components/Insurance/StepThreePlanComparison.d.ts +0 -11
- package/types/components/Insurance/StepTwoForm.d.ts +0 -15
- package/types/pages/agency/group-sim-transaction-detail/GroupSimTransactionDetail.d.ts +0 -1
|
@@ -1,31 +1,32 @@
|
|
|
1
1
|
import { ITenant } from '../../types/response.dto';
|
|
2
|
-
import {
|
|
2
|
+
import { EPolicyActionType } from '../../constants/policy-enums';
|
|
3
3
|
export type ICommissionPolicySettings = {
|
|
4
4
|
[key: string]: {
|
|
5
5
|
[currency: string]: {
|
|
6
6
|
[method: string]: {
|
|
7
|
-
type:
|
|
7
|
+
type: EPolicyActionType;
|
|
8
8
|
value: string;
|
|
9
9
|
};
|
|
10
10
|
};
|
|
11
11
|
};
|
|
12
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
13
|
export type RefMethod = {
|
|
23
14
|
getId: () => string;
|
|
24
15
|
getCurrency: () => string;
|
|
25
16
|
getMethod: () => string;
|
|
26
17
|
getBank: () => ITenant;
|
|
27
18
|
getValue: () => string;
|
|
28
|
-
getType: () =>
|
|
19
|
+
getType: () => EPolicyActionType;
|
|
20
|
+
};
|
|
21
|
+
type UpdateTenantCommissionInputCellProps = {
|
|
22
|
+
id: string;
|
|
23
|
+
bank: ITenant;
|
|
24
|
+
curr: string;
|
|
25
|
+
method: string;
|
|
26
|
+
type: EPolicyActionType;
|
|
27
|
+
value: string;
|
|
28
|
+
canEdit: boolean;
|
|
29
|
+
forceDisplay?: boolean;
|
|
29
30
|
};
|
|
30
|
-
declare const _default: import('react').MemoExoticComponent<import('react').ForwardRefExoticComponent<
|
|
31
|
+
declare const _default: import('react').MemoExoticComponent<import('react').ForwardRefExoticComponent<UpdateTenantCommissionInputCellProps & import('react').RefAttributes<RefMethod>>>;
|
|
31
32
|
export default _default;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { PolicyGroupFormData } from './PolicyTypes';
|
|
2
|
+
interface Props {
|
|
3
|
+
isOpen: boolean;
|
|
4
|
+
onClose: () => void;
|
|
5
|
+
onSubmit: (payload: any) => Promise<boolean>;
|
|
6
|
+
editingGroup: any | null;
|
|
7
|
+
loading: boolean;
|
|
8
|
+
tenants: any[];
|
|
9
|
+
initialData?: PolicyGroupFormData;
|
|
10
|
+
contextTenantId?: number;
|
|
11
|
+
contextDepartmentId?: number;
|
|
12
|
+
contextUserId?: number;
|
|
13
|
+
canEditOverride?: boolean;
|
|
14
|
+
}
|
|
15
|
+
export declare const CommissionPolicyGroupFormDialog: ({ isOpen, onClose, onSubmit, editingGroup, loading, tenants, initialData, contextTenantId, contextDepartmentId, contextUserId, canEditOverride, }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
interface Props {
|
|
2
|
+
isOpen: boolean;
|
|
3
|
+
onClose: () => void;
|
|
4
|
+
tenantId: number;
|
|
5
|
+
departmentId?: number;
|
|
6
|
+
userId?: number;
|
|
7
|
+
canEdit?: boolean;
|
|
8
|
+
onSuccess?: () => void;
|
|
9
|
+
}
|
|
10
|
+
export declare const CommissionPolicyGroupListView: ({ isOpen, onClose, tenantId, departmentId, userId, canEdit, onSuccess, }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { EPolicyActionType } from '../../constants/policy-enums';
|
|
2
|
+
import { PolicyFormData } from './PolicyTypes';
|
|
3
|
+
export interface PolicyRulesConfig {
|
|
4
|
+
name: string;
|
|
5
|
+
conditionOperators: Array<{
|
|
6
|
+
value: string;
|
|
7
|
+
label: string;
|
|
8
|
+
}>;
|
|
9
|
+
actionDirections: Array<{
|
|
10
|
+
value: string;
|
|
11
|
+
label: string;
|
|
12
|
+
}>;
|
|
13
|
+
actionTypes: Array<{
|
|
14
|
+
value: EPolicyActionType;
|
|
15
|
+
label: string;
|
|
16
|
+
}>;
|
|
17
|
+
commissionTypes?: Array<{
|
|
18
|
+
value: 'direct' | 'indirect' | 'viaref';
|
|
19
|
+
label: string;
|
|
20
|
+
}>;
|
|
21
|
+
bankCodes?: Array<{
|
|
22
|
+
value: string;
|
|
23
|
+
label: string;
|
|
24
|
+
}>;
|
|
25
|
+
currencyCodes?: Array<{
|
|
26
|
+
value: string;
|
|
27
|
+
label: string;
|
|
28
|
+
}>;
|
|
29
|
+
labels?: {
|
|
30
|
+
conditionPrefix?: string;
|
|
31
|
+
actionPrefix?: string;
|
|
32
|
+
addRuleButton?: string;
|
|
33
|
+
ruleLabel?: string;
|
|
34
|
+
conditionValuePlaceholder?: string;
|
|
35
|
+
commissionTypeLabel?: string;
|
|
36
|
+
bankCodeLabel?: string;
|
|
37
|
+
currencyCodeLabel?: string;
|
|
38
|
+
commissionDirectLabel?: string;
|
|
39
|
+
commissionIndirectLabel?: string;
|
|
40
|
+
commissionViaRefLabel?: string;
|
|
41
|
+
};
|
|
42
|
+
mode?: 'pricing' | 'commission';
|
|
43
|
+
}
|
|
44
|
+
interface Props {
|
|
45
|
+
policies: PolicyFormData[];
|
|
46
|
+
onPoliciesChange: (newPolicies: PolicyFormData[]) => void;
|
|
47
|
+
config: PolicyRulesConfig;
|
|
48
|
+
errors?: Record<number, string[]>;
|
|
49
|
+
showAddButton?: boolean;
|
|
50
|
+
onAddPolicy?: () => void;
|
|
51
|
+
readOnly?: boolean;
|
|
52
|
+
}
|
|
53
|
+
export declare const PolicyRulesEditor: ({ policies, onPoliciesChange, config, errors, showAddButton, onAddPolicy, readOnly, }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
54
|
+
export {};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { EPolicyType, EPolicyActionType, EPolicyCombineStrategy, EPolicyScopeType } from '../../constants/policy-enums';
|
|
2
|
+
export interface PolicyFormData {
|
|
3
|
+
name: string;
|
|
4
|
+
description?: string;
|
|
5
|
+
type: EPolicyType;
|
|
6
|
+
conditions: any;
|
|
7
|
+
actionType: EPolicyActionType;
|
|
8
|
+
actionValue: number;
|
|
9
|
+
combineStrategy: EPolicyCombineStrategy;
|
|
10
|
+
priority: number;
|
|
11
|
+
conditionOperator?: string;
|
|
12
|
+
conditionValue?: any;
|
|
13
|
+
bankCode?: string | string[];
|
|
14
|
+
currencyCode?: string | string[];
|
|
15
|
+
commissionDirect?: {
|
|
16
|
+
type: EPolicyActionType;
|
|
17
|
+
value: number;
|
|
18
|
+
};
|
|
19
|
+
commissionIndirect?: {
|
|
20
|
+
type: EPolicyActionType;
|
|
21
|
+
value: number;
|
|
22
|
+
};
|
|
23
|
+
commissionViaRef?: {
|
|
24
|
+
type: EPolicyActionType;
|
|
25
|
+
value: number;
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
export interface PolicyGroupFormData {
|
|
29
|
+
name: string;
|
|
30
|
+
description?: string;
|
|
31
|
+
scopeType: EPolicyScopeType | string;
|
|
32
|
+
selectedTenantIds?: number[];
|
|
33
|
+
selectedDepartmentIds?: number[];
|
|
34
|
+
selectedUserIds?: number[];
|
|
35
|
+
active?: boolean;
|
|
36
|
+
scheduleType?: 'all' | 'time_range';
|
|
37
|
+
activeFrom?: string;
|
|
38
|
+
activeTo?: string;
|
|
39
|
+
policies: PolicyFormData[];
|
|
40
|
+
config?: any;
|
|
41
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { PolicyGroup } from '../../hooks/usePolicyGroups';
|
|
2
|
+
interface Props {
|
|
3
|
+
policyGroups: PolicyGroup[];
|
|
4
|
+
loading?: boolean;
|
|
5
|
+
canEdit?: boolean;
|
|
6
|
+
tenants: any[];
|
|
7
|
+
onSubmit?: (payload: any) => Promise<boolean>;
|
|
8
|
+
onSuccess?: () => void;
|
|
9
|
+
}
|
|
10
|
+
export declare const PricingPolicyListView: ({ policyGroups, loading, canEdit, tenants, onSubmit, onSuccess, }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
type Step = {
|
|
2
|
+
id: number;
|
|
3
|
+
title: string;
|
|
4
|
+
};
|
|
5
|
+
interface StepIndicatorCardProps {
|
|
6
|
+
currentStep: number;
|
|
7
|
+
steps: Step[];
|
|
8
|
+
onStepClick?: (stepNumber: number) => void;
|
|
9
|
+
}
|
|
10
|
+
export declare const StepIndicatorCard: ({ currentStep, steps, onStepClick }: StepIndicatorCardProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
type Step = {
|
|
2
|
+
id: number;
|
|
3
|
+
title: string;
|
|
4
|
+
};
|
|
5
|
+
interface StepIndicatorHorizontalProps {
|
|
6
|
+
currentStep: number;
|
|
7
|
+
steps: Step[];
|
|
8
|
+
onStepClick?: (stepNumber: number) => void;
|
|
9
|
+
}
|
|
10
|
+
export declare const StepIndicatorHorizontal: ({ currentStep, steps, onStepClick, }: StepIndicatorHorizontalProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export {};
|
|
@@ -40,6 +40,7 @@ export declare const ApiUrls: {
|
|
|
40
40
|
createEsimTransaction: string;
|
|
41
41
|
sendESimEmail: string;
|
|
42
42
|
validateTransactionTiming: string;
|
|
43
|
+
calculateCommission: (publicId: string) => string;
|
|
43
44
|
};
|
|
44
45
|
role: {
|
|
45
46
|
list: string;
|
|
@@ -87,6 +88,8 @@ export declare const ApiUrls: {
|
|
|
87
88
|
removeMembers: string;
|
|
88
89
|
organizationTree: string;
|
|
89
90
|
abbankList: string;
|
|
91
|
+
departmentsByTenantTypes: (types: string) => string;
|
|
92
|
+
usersByTenantTypes: (types: string) => string;
|
|
90
93
|
};
|
|
91
94
|
balance: {
|
|
92
95
|
getBalanceByUserId: (userId: number) => string;
|
|
@@ -143,17 +146,26 @@ export declare const ApiUrls: {
|
|
|
143
146
|
calculateBookerCommission: string;
|
|
144
147
|
};
|
|
145
148
|
commissionPolicyHandlers: {
|
|
149
|
+
getDepartmentCommissionPolicies: (departmentId: number) => string;
|
|
150
|
+
createDepartmentCommissionPolicies: (departmentId: number) => string;
|
|
151
|
+
updateDepartmentCommissionPolicies: (departmentId: number, policyGroupId: number) => string;
|
|
152
|
+
getMemberCommissionPolicies: (departmentId: number, memberId: number) => string;
|
|
153
|
+
createMemberCommissionPolicies: (departmentId: number, memberId: number) => string;
|
|
154
|
+
updateMemberCommissionPolicies: (departmentId: number, memberId: number, policyGroupId: number) => string;
|
|
155
|
+
updateMemberCommissionPoliciesLegacy: (departmentId: number, memberId: number) => string;
|
|
146
156
|
getCommissionPolicies: string;
|
|
147
157
|
updateCommissionPolicies: string;
|
|
148
158
|
getTenantCommissionPolicies: string;
|
|
149
159
|
getTenantCommissionPoliciesByTenantId: (tenantId: number) => string;
|
|
150
|
-
|
|
151
|
-
|
|
160
|
+
createTenantCommissionPolicies: (tenantId: number) => string;
|
|
161
|
+
updateTenantCommissionPolicies: (tenantId: number, policyGroupId: number) => string;
|
|
162
|
+
updateTenantCommissionPoliciesLegacy: (tenantId: number) => string;
|
|
152
163
|
getMemberCommissionPoliciesByMemberId: (memberId: number) => string;
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
164
|
+
createMemberCommissionPoliciesByMemberId: (memberId: number) => string;
|
|
165
|
+
updateMemberCommissionPoliciesByMemberId: (memberId: number, policyGroupId: number) => string;
|
|
166
|
+
updateMemberCommissionPoliciesByMemberIdLegacy: (memberId: number) => string;
|
|
167
|
+
create: string;
|
|
168
|
+
update: (id: number) => string;
|
|
157
169
|
};
|
|
158
170
|
esimHandlers: {
|
|
159
171
|
list: string;
|
|
@@ -191,7 +203,9 @@ export declare const ApiUrls: {
|
|
|
191
203
|
orderList: string;
|
|
192
204
|
simList: string;
|
|
193
205
|
transactionGrouped: string;
|
|
206
|
+
bookedTransactionGrouped: string;
|
|
194
207
|
transactionGroupDetail: (groupPublicId: string) => string;
|
|
208
|
+
bookedTransactionGroupDetail: (groupPublicId: string) => string;
|
|
195
209
|
searchPackages: string;
|
|
196
210
|
searchDataPackages: string;
|
|
197
211
|
purchaseDataPackage: string;
|
|
@@ -211,15 +225,14 @@ export declare const ApiUrls: {
|
|
|
211
225
|
};
|
|
212
226
|
insuranceHandlers: {
|
|
213
227
|
providers: string;
|
|
214
|
-
providerAvailability: (provider: string) => string;
|
|
215
228
|
coveragePlans: (provider: string) => string;
|
|
216
229
|
transactionDetail: (publicId: string) => string;
|
|
217
230
|
transactionList: string;
|
|
218
|
-
createQuote: string;
|
|
219
|
-
createPolicy: string;
|
|
220
|
-
createPolicyFromQuote: (quoteId: number | string) => string;
|
|
221
231
|
coveragePlanQuotes: (provider: string) => string;
|
|
222
232
|
travelInsuranceSettings: string;
|
|
233
|
+
calculatePremium: string;
|
|
234
|
+
calculateSinglePlanPremium: string;
|
|
235
|
+
createTransaction: string;
|
|
223
236
|
};
|
|
224
237
|
insuranceLocation: {
|
|
225
238
|
countries: string;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { EPolicyActionType } from './policy-enums';
|
|
2
|
+
export declare const COMMISSION_METHODS: readonly ["direct", "viaRef", "indirect"];
|
|
3
|
+
export declare const COMMISSION_METHODS_LABELS: Record<string, string>;
|
|
4
|
+
export declare const DEFAULT_COMMISSION_VALUE = "0";
|
|
5
|
+
export declare const DEFAULT_COMMISSION_TYPE = EPolicyActionType.PERCENT;
|
|
@@ -3,10 +3,12 @@ export declare const COUNTRIES: {
|
|
|
3
3
|
nameVi: string;
|
|
4
4
|
alpha3: string;
|
|
5
5
|
alpha2: string;
|
|
6
|
+
aliases: string[];
|
|
6
7
|
}[];
|
|
7
8
|
export declare const countryMap: Map<string, {
|
|
8
9
|
name: string;
|
|
9
10
|
nameVi: string;
|
|
10
11
|
alpha3: string;
|
|
11
12
|
alpha2: string;
|
|
13
|
+
aliases: string[];
|
|
12
14
|
}>;
|
|
@@ -4,6 +4,11 @@ export declare enum EPolicyScopeType {
|
|
|
4
4
|
DEPARTMENT = "department",
|
|
5
5
|
USER = "user"
|
|
6
6
|
}
|
|
7
|
+
export declare enum EPolicyScopeMode {
|
|
8
|
+
ALL = "all",
|
|
9
|
+
INCLUDE = "include",
|
|
10
|
+
EXCLUDE = "exclude"
|
|
11
|
+
}
|
|
7
12
|
export declare enum EPolicyTargetType {
|
|
8
13
|
FX = "fx",
|
|
9
14
|
SIM = "sim",
|
|
@@ -12,7 +17,8 @@ export declare enum EPolicyTargetType {
|
|
|
12
17
|
}
|
|
13
18
|
export declare enum EPolicyActionType {
|
|
14
19
|
PERCENT = "percent",
|
|
15
|
-
FIXED = "fixed"
|
|
20
|
+
FIXED = "fixed",
|
|
21
|
+
FIXED_MULTIPLIER = "fixed_multiplier"
|
|
16
22
|
}
|
|
17
23
|
export declare enum EPolicyCombineStrategy {
|
|
18
24
|
STACK = "stack",
|
package/types/embeded-main.d.ts
CHANGED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
export interface IBookedSimGroupedItem {
|
|
2
|
+
id: number;
|
|
3
|
+
groupPublicId: string;
|
|
4
|
+
quantity: number;
|
|
5
|
+
status: string;
|
|
6
|
+
type: string;
|
|
7
|
+
provider: string;
|
|
8
|
+
simType?: string;
|
|
9
|
+
paymentType?: string;
|
|
10
|
+
totalAmount?: number;
|
|
11
|
+
createdAt: string | Date;
|
|
12
|
+
successful: number;
|
|
13
|
+
failed: number;
|
|
14
|
+
msisdn: string[];
|
|
15
|
+
}
|
|
16
|
+
export interface GetBookedSimGroupedRespDto {
|
|
17
|
+
transactions: IBookedSimGroupedItem[];
|
|
18
|
+
total: number;
|
|
19
|
+
}
|
|
20
|
+
export interface GetBookedSimGroupedReqDto {
|
|
21
|
+
page?: number;
|
|
22
|
+
limit?: number;
|
|
23
|
+
}
|
|
24
|
+
type Props = {
|
|
25
|
+
defaultLimit?: number;
|
|
26
|
+
};
|
|
27
|
+
export declare const useBookedSimGrouped: ({ defaultLimit }: Props) => {
|
|
28
|
+
transactions: IBookedSimGroupedItem[];
|
|
29
|
+
total: number;
|
|
30
|
+
loading: boolean;
|
|
31
|
+
page: number;
|
|
32
|
+
limit: number;
|
|
33
|
+
refetchData: () => void;
|
|
34
|
+
setPage: import('react').Dispatch<import('react').SetStateAction<number>>;
|
|
35
|
+
setLimit: (limit: number) => void;
|
|
36
|
+
setLoading: import('react').Dispatch<import('react').SetStateAction<boolean>>;
|
|
37
|
+
};
|
|
38
|
+
export {};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
export interface IBookedTransactionGroupDetail {
|
|
2
|
+
groupPublicId: string;
|
|
3
|
+
phoneNumbers: string[];
|
|
4
|
+
quantity: number;
|
|
5
|
+
totalAmount: number;
|
|
6
|
+
packageInfo?: any;
|
|
7
|
+
customerInfo?: any;
|
|
8
|
+
deliveryInfo?: any;
|
|
9
|
+
simType?: string;
|
|
10
|
+
provider: string;
|
|
11
|
+
status: string;
|
|
12
|
+
notes: string;
|
|
13
|
+
type: string;
|
|
14
|
+
createdAt: string;
|
|
15
|
+
transactions: Array<{
|
|
16
|
+
id: number;
|
|
17
|
+
msisdn: string;
|
|
18
|
+
status: string;
|
|
19
|
+
type: string;
|
|
20
|
+
provider: string;
|
|
21
|
+
providerBookingId?: string;
|
|
22
|
+
createdAt: string;
|
|
23
|
+
errorMessage?: string;
|
|
24
|
+
}>;
|
|
25
|
+
}
|
|
26
|
+
export interface GetBookedTransactionGroupDetailRespDto {
|
|
27
|
+
success: boolean;
|
|
28
|
+
data?: IBookedTransactionGroupDetail;
|
|
29
|
+
error?: string;
|
|
30
|
+
}
|
|
31
|
+
type Props = {
|
|
32
|
+
groupPublicId: string;
|
|
33
|
+
};
|
|
34
|
+
export declare const useBookedTransactionGroupDetail: ({ groupPublicId }: Props) => {
|
|
35
|
+
groupDetail: IBookedTransactionGroupDetail | null;
|
|
36
|
+
loading: boolean;
|
|
37
|
+
error: string | null;
|
|
38
|
+
refetchData: (silent?: boolean) => void;
|
|
39
|
+
};
|
|
40
|
+
export {};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IRemappedCommissionPolicy } from '../types/response.dto';
|
|
2
2
|
export declare const useComissionPolicies: ({ isAdminView }?: {
|
|
3
3
|
isAdminView?: boolean;
|
|
4
4
|
}) => {
|
|
5
5
|
loading: boolean;
|
|
6
|
-
commissionPolicies:
|
|
7
|
-
getCommissionPoliciesByTenantId: (tenantId: number) => Promise<
|
|
8
|
-
getCommissionPoliciesByDepartmentId: (departmentId: number) => Promise<
|
|
9
|
-
getCommissionPoliciesByMemberId: (departmentId: number, memberId: number) => Promise<
|
|
10
|
-
getCommissionPoliciesByMemberIdOnly: (memberId: number) => Promise<
|
|
6
|
+
commissionPolicies: IRemappedCommissionPolicy[];
|
|
7
|
+
getCommissionPoliciesByTenantId: (tenantId: number) => Promise<IRemappedCommissionPolicy[]>;
|
|
8
|
+
getCommissionPoliciesByDepartmentId: (departmentId: number) => Promise<IRemappedCommissionPolicy[]>;
|
|
9
|
+
getCommissionPoliciesByMemberId: (departmentId: number, memberId: number) => Promise<IRemappedCommissionPolicy[]>;
|
|
10
|
+
getCommissionPoliciesByMemberIdOnly: (memberId: number) => Promise<IRemappedCommissionPolicy[]>;
|
|
11
11
|
clearCommissionPolicies: () => void;
|
|
12
12
|
isAdmin: boolean;
|
|
13
13
|
isAgency: boolean;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export declare enum EDocumentType {
|
|
2
|
+
CITIZEN_IDENTITY_CARD = "citizen-identity-card",
|
|
3
|
+
PASSPORT = "passport",
|
|
4
|
+
US_VISA = "us-visa"
|
|
5
|
+
}
|
|
6
|
+
export interface DocumentScanResult {
|
|
7
|
+
id_number?: string;
|
|
8
|
+
passport_id?: string;
|
|
9
|
+
name?: string;
|
|
10
|
+
date_of_birth?: string;
|
|
11
|
+
dob?: string;
|
|
12
|
+
gender?: string;
|
|
13
|
+
nationality?: string;
|
|
14
|
+
place_of_residence?: string;
|
|
15
|
+
place_of_origin?: string;
|
|
16
|
+
address?: string;
|
|
17
|
+
[key: string]: any;
|
|
18
|
+
}
|
|
19
|
+
export declare const useDocumentScan: () => {
|
|
20
|
+
scanDocument: (file: File | string, documentType: EDocumentType) => Promise<DocumentScanResult | null>;
|
|
21
|
+
isScanning: boolean;
|
|
22
|
+
};
|
|
@@ -8,8 +8,8 @@ declare const groupOfBookerSchema: yup.ObjectSchema<{
|
|
|
8
8
|
uuid?: string | undefined;
|
|
9
9
|
role_id?: number | null | undefined;
|
|
10
10
|
status: string;
|
|
11
|
-
phone: string;
|
|
12
11
|
email: string;
|
|
12
|
+
phone: string;
|
|
13
13
|
password: string;
|
|
14
14
|
lastName: string;
|
|
15
15
|
firstName: string;
|
|
@@ -29,8 +29,8 @@ export declare const useImportBookers: (onFinish: () => void) => {
|
|
|
29
29
|
uuid?: string | undefined;
|
|
30
30
|
role_id?: number | null | undefined;
|
|
31
31
|
status: string;
|
|
32
|
-
phone: string;
|
|
33
32
|
email: string;
|
|
33
|
+
phone: string;
|
|
34
34
|
password: string;
|
|
35
35
|
lastName: string;
|
|
36
36
|
firstName: string;
|
|
@@ -43,8 +43,8 @@ export declare const useImportBookers: (onFinish: () => void) => {
|
|
|
43
43
|
uuid?: string | undefined;
|
|
44
44
|
role_id?: number | null | undefined;
|
|
45
45
|
status: string;
|
|
46
|
-
phone: string;
|
|
47
46
|
email: string;
|
|
47
|
+
phone: string;
|
|
48
48
|
password: string;
|
|
49
49
|
lastName: string;
|
|
50
50
|
firstName: string;
|
|
@@ -57,8 +57,8 @@ export declare const useImportBookers: (onFinish: () => void) => {
|
|
|
57
57
|
uuid?: string | undefined;
|
|
58
58
|
role_id?: number | null | undefined;
|
|
59
59
|
status: string;
|
|
60
|
-
phone: string;
|
|
61
60
|
email: string;
|
|
61
|
+
phone: string;
|
|
62
62
|
password: string;
|
|
63
63
|
lastName: string;
|
|
64
64
|
firstName: string;
|
|
@@ -71,8 +71,8 @@ export declare const useImportBookers: (onFinish: () => void) => {
|
|
|
71
71
|
uuid?: string | undefined;
|
|
72
72
|
role_id?: number | null | undefined;
|
|
73
73
|
status: string;
|
|
74
|
-
phone: string;
|
|
75
74
|
email: string;
|
|
75
|
+
phone: string;
|
|
76
76
|
password: string;
|
|
77
77
|
lastName: string;
|
|
78
78
|
firstName: string;
|
|
@@ -85,8 +85,8 @@ export declare const useImportBookers: (onFinish: () => void) => {
|
|
|
85
85
|
uuid?: string | undefined;
|
|
86
86
|
role_id?: number | null | undefined;
|
|
87
87
|
status: string;
|
|
88
|
-
phone: string;
|
|
89
88
|
email: string;
|
|
89
|
+
phone: string;
|
|
90
90
|
password: string;
|
|
91
91
|
lastName: string;
|
|
92
92
|
firstName: string;
|
|
@@ -99,8 +99,8 @@ export declare const useImportBookers: (onFinish: () => void) => {
|
|
|
99
99
|
uuid?: string | undefined;
|
|
100
100
|
role_id?: number | null | undefined;
|
|
101
101
|
status: string;
|
|
102
|
-
phone: string;
|
|
103
102
|
email: string;
|
|
103
|
+
phone: string;
|
|
104
104
|
password: string;
|
|
105
105
|
lastName: string;
|
|
106
106
|
firstName: string;
|
|
@@ -113,8 +113,8 @@ export declare const useImportBookers: (onFinish: () => void) => {
|
|
|
113
113
|
uuid?: string | undefined;
|
|
114
114
|
role_id?: number | null | undefined;
|
|
115
115
|
status: string;
|
|
116
|
-
phone: string;
|
|
117
116
|
email: string;
|
|
117
|
+
phone: string;
|
|
118
118
|
password: string;
|
|
119
119
|
lastName: string;
|
|
120
120
|
firstName: string;
|
|
@@ -127,8 +127,8 @@ export declare const useImportBookers: (onFinish: () => void) => {
|
|
|
127
127
|
uuid?: string | undefined;
|
|
128
128
|
role_id?: number | null | undefined;
|
|
129
129
|
status: string;
|
|
130
|
-
phone: string;
|
|
131
130
|
email: string;
|
|
131
|
+
phone: string;
|
|
132
132
|
password: string;
|
|
133
133
|
lastName: string;
|
|
134
134
|
firstName: string;
|
|
@@ -4,8 +4,8 @@ declare const groupOfMemberSchema: yup.ObjectSchema<{
|
|
|
4
4
|
members: {
|
|
5
5
|
uuid?: string | undefined;
|
|
6
6
|
status: string;
|
|
7
|
-
phone: string;
|
|
8
7
|
email: string;
|
|
8
|
+
phone: string;
|
|
9
9
|
password: string;
|
|
10
10
|
lastName: string;
|
|
11
11
|
firstName: string;
|
|
@@ -22,8 +22,8 @@ export declare const useImportMembers: (onFinish: () => void) => {
|
|
|
22
22
|
members?: {
|
|
23
23
|
uuid?: string | undefined;
|
|
24
24
|
status: string;
|
|
25
|
-
phone: string;
|
|
26
25
|
email: string;
|
|
26
|
+
phone: string;
|
|
27
27
|
password: string;
|
|
28
28
|
lastName: string;
|
|
29
29
|
firstName: string;
|
|
@@ -33,8 +33,8 @@ export declare const useImportMembers: (onFinish: () => void) => {
|
|
|
33
33
|
members?: {
|
|
34
34
|
uuid?: string | undefined;
|
|
35
35
|
status: string;
|
|
36
|
-
phone: string;
|
|
37
36
|
email: string;
|
|
37
|
+
phone: string;
|
|
38
38
|
password: string;
|
|
39
39
|
lastName: string;
|
|
40
40
|
firstName: string;
|
|
@@ -44,8 +44,8 @@ export declare const useImportMembers: (onFinish: () => void) => {
|
|
|
44
44
|
members?: {
|
|
45
45
|
uuid?: string | undefined;
|
|
46
46
|
status: string;
|
|
47
|
-
phone: string;
|
|
48
47
|
email: string;
|
|
48
|
+
phone: string;
|
|
49
49
|
password: string;
|
|
50
50
|
lastName: string;
|
|
51
51
|
firstName: string;
|
|
@@ -55,8 +55,8 @@ export declare const useImportMembers: (onFinish: () => void) => {
|
|
|
55
55
|
members?: {
|
|
56
56
|
uuid?: string | undefined;
|
|
57
57
|
status: string;
|
|
58
|
-
phone: string;
|
|
59
58
|
email: string;
|
|
59
|
+
phone: string;
|
|
60
60
|
password: string;
|
|
61
61
|
lastName: string;
|
|
62
62
|
firstName: string;
|
|
@@ -66,8 +66,8 @@ export declare const useImportMembers: (onFinish: () => void) => {
|
|
|
66
66
|
members?: {
|
|
67
67
|
uuid?: string | undefined;
|
|
68
68
|
status: string;
|
|
69
|
-
phone: string;
|
|
70
69
|
email: string;
|
|
70
|
+
phone: string;
|
|
71
71
|
password: string;
|
|
72
72
|
lastName: string;
|
|
73
73
|
firstName: string;
|
|
@@ -77,8 +77,8 @@ export declare const useImportMembers: (onFinish: () => void) => {
|
|
|
77
77
|
members?: {
|
|
78
78
|
uuid?: string | undefined;
|
|
79
79
|
status: string;
|
|
80
|
-
phone: string;
|
|
81
80
|
email: string;
|
|
81
|
+
phone: string;
|
|
82
82
|
password: string;
|
|
83
83
|
lastName: string;
|
|
84
84
|
firstName: string;
|
|
@@ -88,8 +88,8 @@ export declare const useImportMembers: (onFinish: () => void) => {
|
|
|
88
88
|
members?: {
|
|
89
89
|
uuid?: string | undefined;
|
|
90
90
|
status: string;
|
|
91
|
-
phone: string;
|
|
92
91
|
email: string;
|
|
92
|
+
phone: string;
|
|
93
93
|
password: string;
|
|
94
94
|
lastName: string;
|
|
95
95
|
firstName: string;
|
|
@@ -99,8 +99,8 @@ export declare const useImportMembers: (onFinish: () => void) => {
|
|
|
99
99
|
members?: {
|
|
100
100
|
uuid?: string | undefined;
|
|
101
101
|
status: string;
|
|
102
|
-
phone: string;
|
|
103
102
|
email: string;
|
|
103
|
+
phone: string;
|
|
104
104
|
password: string;
|
|
105
105
|
lastName: string;
|
|
106
106
|
firstName: string;
|