gotrip-fx-transaction-form 1.0.290-dev → 1.0.292-dev
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 +28237 -27765
- package/package.json +1 -1
- package/types/components/Chat/AdminChatPanel.d.ts +5 -0
- package/types/components/Chat/AdminOnlineToggle.d.ts +1 -0
- package/types/components/Chat/AdminSessionItem.d.ts +6 -0
- package/types/components/Chat/AdminSessionList.d.ts +1 -0
- package/types/components/Chat/ChatAvatar.d.ts +9 -0
- package/types/components/Chat/ChatButton.d.ts +1 -0
- package/types/components/Chat/ChatMessage.d.ts +9 -0
- package/types/components/Chat/ChatWidget.d.ts +1 -0
- package/types/components/Chat/ChatWindow.d.ts +1 -0
- package/types/components/Chat/OfflineMessageMode.d.ts +1 -0
- package/types/components/Chat/QueueStatus.d.ts +1 -0
- package/types/components/Chat/SessionInfoHeader.d.ts +10 -0
- package/types/components/Chat/TopicSelector.d.ts +6 -0
- package/types/components/Chat/TransferSessionModal.d.ts +9 -0
- package/types/components/Chat/TypingIndicator.d.ts +7 -0
- package/types/components/MotorInsurance/Bike/BikeStepThreePayment.d.ts +16 -1
- package/types/components/MotorInsurance/Car/CarStepFourPayment.d.ts +16 -1
- package/types/components/MotorInsurance/MotorInsuranceApprovalPaymentStep.d.ts +2 -1
- package/types/constants/chat-constants.d.ts +3 -0
- package/types/hooks/transactions/useEducation.hook.d.ts +8 -8
- package/types/hooks/transactions/useImmigration.hook.d.ts +8 -8
- package/types/hooks/useChat.d.ts +24 -0
- package/types/hooks/useImportBookers.d.ts +18 -18
- package/types/hooks/useImportMembers.d.ts +18 -18
- package/types/pages/admin/chat/AdminChatPage.d.ts +1 -0
- package/types/store/useChatStore.d.ts +31 -0
- package/types/types/chat.d.ts +78 -0
- package/types/util/chat.d.ts +14 -0
- package/types/util/formatMessageTime.d.ts +1 -0
- package/types/util/formatWaitTime.d.ts +1 -0
- package/types/util/socket.d.ts +5 -0
package/package.json
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const AdminOnlineToggle: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const AdminSessionList: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
interface Props {
|
|
2
|
+
firstName?: string;
|
|
3
|
+
lastName?: string;
|
|
4
|
+
userId?: number;
|
|
5
|
+
size?: number;
|
|
6
|
+
}
|
|
7
|
+
/** Round avatar with initials, colored deterministically by user id. */
|
|
8
|
+
export declare const ChatAvatar: ({ firstName, lastName, userId, size }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const ChatButton: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { IChatMessage } from '../../types/chat';
|
|
2
|
+
interface Props {
|
|
3
|
+
message: IChatMessage;
|
|
4
|
+
currentUserId: number;
|
|
5
|
+
showAvatar?: boolean;
|
|
6
|
+
showName?: boolean;
|
|
7
|
+
}
|
|
8
|
+
export declare const ChatMessage: ({ message, currentUserId, showAvatar, showName, }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const ChatWidget: () => import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const ChatWindow: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const OfflineMessageMode: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const QueueStatus: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { EChatSenderType, IChatSession } from '../../types/chat';
|
|
2
|
+
interface Props {
|
|
3
|
+
session: IChatSession;
|
|
4
|
+
senderType: EChatSenderType;
|
|
5
|
+
onShowTopicSelector?: () => void;
|
|
6
|
+
onTransfer?: () => void;
|
|
7
|
+
onResolve?: () => void;
|
|
8
|
+
}
|
|
9
|
+
export declare const SessionInfoHeader: ({ session, senderType, onShowTopicSelector, onTransfer, onResolve, }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
interface Props {
|
|
2
|
+
isOpen: boolean;
|
|
3
|
+
onClose: () => void;
|
|
4
|
+
sessionId: number;
|
|
5
|
+
currentAdminId?: number;
|
|
6
|
+
onTransferSuccess?: () => void;
|
|
7
|
+
}
|
|
8
|
+
export declare const TransferSessionModal: ({ isOpen, onClose, sessionId, currentAdminId, onTransferSuccess, }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export {};
|
|
@@ -22,5 +22,20 @@ export interface BikeStepThreePaymentProps {
|
|
|
22
22
|
waitForApproval?: boolean;
|
|
23
23
|
onWaitForApprovalChange?: (value: boolean) => void;
|
|
24
24
|
mode?: 'create' | 'edit';
|
|
25
|
+
appliedCoupon?: {
|
|
26
|
+
code: string;
|
|
27
|
+
discountAmount: number;
|
|
28
|
+
finalAmount: number;
|
|
29
|
+
} | null;
|
|
30
|
+
onCouponChange?: (coupon: {
|
|
31
|
+
code: string;
|
|
32
|
+
discountAmount: number;
|
|
33
|
+
finalAmount: number;
|
|
34
|
+
} | null) => void;
|
|
35
|
+
initialCoupon?: {
|
|
36
|
+
code: string;
|
|
37
|
+
discountAmount: number;
|
|
38
|
+
finalAmount: number;
|
|
39
|
+
} | null;
|
|
25
40
|
}
|
|
26
|
-
export declare const BikeStepThreePayment: ({ planValues, premiumSummary, vehicleInfo, isLoading, paymentMode, onPaymentModeChange, isTermsAgreed, onTermsAgreedChange, isPersonalDataConsentAgreed, onPersonalDataConsentChange, onPayment, isProcessing, isGuest, onBack, paymentType, isAdminMode, selectedUser, waitForApproval, onWaitForApprovalChange, mode, }: BikeStepThreePaymentProps) => import("react/jsx-runtime").JSX.Element;
|
|
41
|
+
export declare const BikeStepThreePayment: ({ planValues, premiumSummary, vehicleInfo, isLoading, paymentMode, onPaymentModeChange, isTermsAgreed, onTermsAgreedChange, isPersonalDataConsentAgreed, onPersonalDataConsentChange, onPayment, isProcessing, isGuest, onBack, paymentType, isAdminMode, selectedUser, waitForApproval, onWaitForApprovalChange, mode, appliedCoupon, onCouponChange, initialCoupon, }: BikeStepThreePaymentProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -25,6 +25,21 @@ interface CarStepFourPaymentProps {
|
|
|
25
25
|
waitForApproval?: boolean;
|
|
26
26
|
onWaitForApprovalChange?: (value: boolean) => void;
|
|
27
27
|
mode?: 'create' | 'edit';
|
|
28
|
+
appliedCoupon?: {
|
|
29
|
+
code: string;
|
|
30
|
+
discountAmount: number;
|
|
31
|
+
finalAmount: number;
|
|
32
|
+
} | null;
|
|
33
|
+
onCouponChange?: (coupon: {
|
|
34
|
+
code: string;
|
|
35
|
+
discountAmount: number;
|
|
36
|
+
finalAmount: number;
|
|
37
|
+
} | null) => void;
|
|
38
|
+
initialCoupon?: {
|
|
39
|
+
code: string;
|
|
40
|
+
discountAmount: number;
|
|
41
|
+
finalAmount: number;
|
|
42
|
+
} | null;
|
|
28
43
|
}
|
|
29
|
-
export declare const CarStepFourPayment: ({ planValues, premiumSummary, vehicleInfo, buyerCertificateInfo, isLoading, paymentMode, onPaymentModeChange, isTermsAgreed, onTermsAgreedChange, isPersonalDataConsentAgreed, onPersonalDataConsentChange, onPayment, isProcessing, isGuest, onBack, getProviderLogoUrl, getTermsAgreeHtml, paymentType, isAdminMode, selectedUser, waitForApproval, onWaitForApprovalChange, mode, }: CarStepFourPaymentProps) => import("react/jsx-runtime").JSX.Element;
|
|
44
|
+
export declare const CarStepFourPayment: ({ planValues, premiumSummary, vehicleInfo, buyerCertificateInfo, isLoading, paymentMode, onPaymentModeChange, isTermsAgreed, onTermsAgreedChange, isPersonalDataConsentAgreed, onPersonalDataConsentChange, onPayment, isProcessing, isGuest, onBack, getProviderLogoUrl, getTermsAgreeHtml, paymentType, isAdminMode, selectedUser, waitForApproval, onWaitForApprovalChange, mode, appliedCoupon, onCouponChange, initialCoupon, }: CarStepFourPaymentProps) => import("react/jsx-runtime").JSX.Element;
|
|
30
45
|
export {};
|
|
@@ -4,6 +4,7 @@ export interface MotorInsuranceApprovalPaymentStepProps {
|
|
|
4
4
|
amount: number;
|
|
5
5
|
premiumBeforeDiscount?: number;
|
|
6
6
|
discountAmount?: number;
|
|
7
|
+
couponCode?: string;
|
|
7
8
|
isApproving?: boolean;
|
|
8
9
|
isRejecting?: boolean;
|
|
9
10
|
onApprove?: (paymentMode: EPaymentMethod | undefined, paymentType: EOrderPaymentType) => void;
|
|
@@ -16,4 +17,4 @@ export interface MotorInsuranceApprovalPaymentStepProps {
|
|
|
16
17
|
passengerAccidentPremium?: number;
|
|
17
18
|
isGuest?: boolean;
|
|
18
19
|
}
|
|
19
|
-
export declare const MotorInsuranceApprovalPaymentStep: ({ user, amount, premiumBeforeDiscount, discountAmount, isApproving, isRejecting, onApprove, onReject, termsAgreeHtml, startDate, tax, mandatoryPremium, passengerAccidentPremium, isGuest, }: MotorInsuranceApprovalPaymentStepProps) => import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
export declare const MotorInsuranceApprovalPaymentStep: ({ user, amount, premiumBeforeDiscount, discountAmount, couponCode, isApproving, isRejecting, onApprove, onReject, termsAgreeHtml, startDate, tax, mandatoryPremium, passengerAccidentPremium, isGuest, }: MotorInsuranceApprovalPaymentStepProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -64,8 +64,8 @@ export declare const useEducation: ({ onFinish }: Props) => {
|
|
|
64
64
|
type: string;
|
|
65
65
|
link: string;
|
|
66
66
|
}[] | undefined;
|
|
67
|
-
customerName: string;
|
|
68
67
|
email: string;
|
|
68
|
+
customerName: string;
|
|
69
69
|
mobileNo: string;
|
|
70
70
|
province: string;
|
|
71
71
|
amount: number;
|
|
@@ -94,8 +94,8 @@ export declare const useEducation: ({ onFinish }: Props) => {
|
|
|
94
94
|
type: string;
|
|
95
95
|
link: string;
|
|
96
96
|
}[] | undefined;
|
|
97
|
-
customerName: string;
|
|
98
97
|
email: string;
|
|
98
|
+
customerName: string;
|
|
99
99
|
mobileNo: string;
|
|
100
100
|
province: string;
|
|
101
101
|
amount: number;
|
|
@@ -125,8 +125,8 @@ export declare const useEducation: ({ onFinish }: Props) => {
|
|
|
125
125
|
type: string;
|
|
126
126
|
link: string;
|
|
127
127
|
}[] | undefined;
|
|
128
|
-
customerName: string;
|
|
129
128
|
email: string;
|
|
129
|
+
customerName: string;
|
|
130
130
|
mobileNo: string;
|
|
131
131
|
province: string;
|
|
132
132
|
amount: number;
|
|
@@ -156,8 +156,8 @@ export declare const useEducation: ({ onFinish }: Props) => {
|
|
|
156
156
|
type: string;
|
|
157
157
|
link: string;
|
|
158
158
|
}[] | undefined;
|
|
159
|
-
customerName: string;
|
|
160
159
|
email: string;
|
|
160
|
+
customerName: string;
|
|
161
161
|
mobileNo: string;
|
|
162
162
|
province: string;
|
|
163
163
|
amount: number;
|
|
@@ -186,8 +186,8 @@ export declare const useEducation: ({ onFinish }: Props) => {
|
|
|
186
186
|
type: string;
|
|
187
187
|
link: string;
|
|
188
188
|
}[] | undefined;
|
|
189
|
-
customerName: string;
|
|
190
189
|
email: string;
|
|
190
|
+
customerName: string;
|
|
191
191
|
mobileNo: string;
|
|
192
192
|
province: string;
|
|
193
193
|
amount: number;
|
|
@@ -217,8 +217,8 @@ export declare const useEducation: ({ onFinish }: Props) => {
|
|
|
217
217
|
type: string;
|
|
218
218
|
link: string;
|
|
219
219
|
}[] | undefined;
|
|
220
|
-
customerName: string;
|
|
221
220
|
email: string;
|
|
221
|
+
customerName: string;
|
|
222
222
|
mobileNo: string;
|
|
223
223
|
province: string;
|
|
224
224
|
amount: number;
|
|
@@ -247,8 +247,8 @@ export declare const useEducation: ({ onFinish }: Props) => {
|
|
|
247
247
|
type: string;
|
|
248
248
|
link: string;
|
|
249
249
|
}[] | undefined;
|
|
250
|
-
customerName: string;
|
|
251
250
|
email: string;
|
|
251
|
+
customerName: string;
|
|
252
252
|
mobileNo: string;
|
|
253
253
|
province: string;
|
|
254
254
|
amount: number;
|
|
@@ -294,8 +294,8 @@ export declare const useEducation: ({ onFinish }: Props) => {
|
|
|
294
294
|
type: string;
|
|
295
295
|
link: string;
|
|
296
296
|
}[] | undefined;
|
|
297
|
-
customerName: string;
|
|
298
297
|
email: string;
|
|
298
|
+
customerName: string;
|
|
299
299
|
mobileNo: string;
|
|
300
300
|
province: string;
|
|
301
301
|
amount: number;
|
|
@@ -46,8 +46,8 @@ 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
|
-
customerName: string;
|
|
50
49
|
email: string;
|
|
50
|
+
customerName: string;
|
|
51
51
|
mobileNo: string;
|
|
52
52
|
province: string;
|
|
53
53
|
amount: number;
|
|
@@ -68,8 +68,8 @@ export declare const useImmigration: ({ onFinish }: Props) => {
|
|
|
68
68
|
}[];
|
|
69
69
|
}>;
|
|
70
70
|
handleSubmit: import('react-hook-form').UseFormHandleSubmit<{
|
|
71
|
-
customerName: string;
|
|
72
71
|
email: string;
|
|
72
|
+
customerName: string;
|
|
73
73
|
mobileNo: string;
|
|
74
74
|
province: string;
|
|
75
75
|
amount: number;
|
|
@@ -91,8 +91,8 @@ export declare const useImmigration: ({ onFinish }: Props) => {
|
|
|
91
91
|
}, undefined>;
|
|
92
92
|
formState: {
|
|
93
93
|
errors: import('react-hook-form').FieldErrors<{
|
|
94
|
-
customerName: string;
|
|
95
94
|
email: string;
|
|
95
|
+
customerName: string;
|
|
96
96
|
mobileNo: string;
|
|
97
97
|
province: string;
|
|
98
98
|
amount: number;
|
|
@@ -114,8 +114,8 @@ export declare const useImmigration: ({ onFinish }: Props) => {
|
|
|
114
114
|
}>;
|
|
115
115
|
};
|
|
116
116
|
getValues: import('react-hook-form').UseFormGetValues<{
|
|
117
|
-
customerName: string;
|
|
118
117
|
email: string;
|
|
118
|
+
customerName: string;
|
|
119
119
|
mobileNo: string;
|
|
120
120
|
province: string;
|
|
121
121
|
amount: number;
|
|
@@ -136,8 +136,8 @@ export declare const useImmigration: ({ onFinish }: Props) => {
|
|
|
136
136
|
}[];
|
|
137
137
|
}>;
|
|
138
138
|
setValue: import('react-hook-form').UseFormSetValue<{
|
|
139
|
-
customerName: string;
|
|
140
139
|
email: string;
|
|
140
|
+
customerName: string;
|
|
141
141
|
mobileNo: string;
|
|
142
142
|
province: string;
|
|
143
143
|
amount: number;
|
|
@@ -159,8 +159,8 @@ 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
|
-
customerName: string;
|
|
163
162
|
email: string;
|
|
163
|
+
customerName: string;
|
|
164
164
|
mobileNo: string;
|
|
165
165
|
province: string;
|
|
166
166
|
amount: number;
|
|
@@ -181,8 +181,8 @@ export declare const useImmigration: ({ onFinish }: Props) => {
|
|
|
181
181
|
}[];
|
|
182
182
|
}>;
|
|
183
183
|
reset: import('react-hook-form').UseFormReset<{
|
|
184
|
-
customerName: string;
|
|
185
184
|
email: string;
|
|
185
|
+
customerName: string;
|
|
186
186
|
mobileNo: string;
|
|
187
187
|
province: string;
|
|
188
188
|
amount: number;
|
|
@@ -218,8 +218,8 @@ 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
|
-
customerName: string;
|
|
222
221
|
email: string;
|
|
222
|
+
customerName: string;
|
|
223
223
|
mobileNo: string;
|
|
224
224
|
province: string;
|
|
225
225
|
amount: number;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { EChatTopic, IChatMessage, IChatSession } from '../types/chat';
|
|
2
|
+
export declare const useChat: () => {
|
|
3
|
+
startSession: (topic: EChatTopic) => Promise<IChatSession>;
|
|
4
|
+
getMyActiveSession: () => Promise<IChatSession | null>;
|
|
5
|
+
getMessages: (sessionId: number, before?: number, limit?: number) => Promise<{
|
|
6
|
+
data: IChatMessage[];
|
|
7
|
+
hasMore: boolean;
|
|
8
|
+
}>;
|
|
9
|
+
sendMessage: (sessionId: number, content: string) => void;
|
|
10
|
+
sendTyping: (sessionId: number, isTyping: boolean) => void;
|
|
11
|
+
markRead: (sessionId: number) => void;
|
|
12
|
+
getAdminSessions: () => Promise<IChatSession[]>;
|
|
13
|
+
getAdminHistory: () => Promise<IChatSession[]>;
|
|
14
|
+
getQueue: () => Promise<IChatSession[]>;
|
|
15
|
+
toggleAdminStatus: (isOnline: boolean) => Promise<void>;
|
|
16
|
+
resolveSession: (sessionId: number) => Promise<void>;
|
|
17
|
+
transferSession: (sessionId: number, targetAdminId: number) => Promise<void>;
|
|
18
|
+
getOnlineAdmins: () => Promise<any>;
|
|
19
|
+
sendOfflineMessage: (sessionId: number, content: string) => Promise<void>;
|
|
20
|
+
getAdminProfile: () => Promise<any>;
|
|
21
|
+
getSessionByPublicId: (publicId: string) => Promise<IChatSession | null>;
|
|
22
|
+
getSessionById: (sessionId: number) => Promise<IChatSession | null>;
|
|
23
|
+
leaveMessage: (sessionId: number) => Promise<void>;
|
|
24
|
+
};
|
|
@@ -9,10 +9,10 @@ declare const groupOfBookerSchema: yup.ObjectSchema<{
|
|
|
9
9
|
role_id?: number | null | undefined;
|
|
10
10
|
status: string;
|
|
11
11
|
email: string;
|
|
12
|
+
firstName: string;
|
|
13
|
+
lastName: string;
|
|
12
14
|
phone: string;
|
|
13
15
|
password: string;
|
|
14
|
-
lastName: string;
|
|
15
|
-
firstName: string;
|
|
16
16
|
}[] | undefined;
|
|
17
17
|
}, yup.AnyObject, {
|
|
18
18
|
bookers: "";
|
|
@@ -30,10 +30,10 @@ export declare const useImportBookers: (onFinish: () => void) => {
|
|
|
30
30
|
role_id?: number | null | undefined;
|
|
31
31
|
status: string;
|
|
32
32
|
email: string;
|
|
33
|
+
firstName: string;
|
|
34
|
+
lastName: string;
|
|
33
35
|
phone: string;
|
|
34
36
|
password: string;
|
|
35
|
-
lastName: string;
|
|
36
|
-
firstName: string;
|
|
37
37
|
}[] | undefined;
|
|
38
38
|
}>;
|
|
39
39
|
handleSubmit: import('react-hook-form').UseFormHandleSubmit<{
|
|
@@ -44,10 +44,10 @@ export declare const useImportBookers: (onFinish: () => void) => {
|
|
|
44
44
|
role_id?: number | null | undefined;
|
|
45
45
|
status: string;
|
|
46
46
|
email: string;
|
|
47
|
+
firstName: string;
|
|
48
|
+
lastName: string;
|
|
47
49
|
phone: string;
|
|
48
50
|
password: string;
|
|
49
|
-
lastName: string;
|
|
50
|
-
firstName: string;
|
|
51
51
|
}[] | undefined;
|
|
52
52
|
}, undefined>;
|
|
53
53
|
errors: import('react-hook-form').FieldErrors<{
|
|
@@ -58,10 +58,10 @@ export declare const useImportBookers: (onFinish: () => void) => {
|
|
|
58
58
|
role_id?: number | null | undefined;
|
|
59
59
|
status: string;
|
|
60
60
|
email: string;
|
|
61
|
+
firstName: string;
|
|
62
|
+
lastName: string;
|
|
61
63
|
phone: string;
|
|
62
64
|
password: string;
|
|
63
|
-
lastName: string;
|
|
64
|
-
firstName: string;
|
|
65
65
|
}[] | undefined;
|
|
66
66
|
}>;
|
|
67
67
|
getValues: import('react-hook-form').UseFormGetValues<{
|
|
@@ -72,10 +72,10 @@ export declare const useImportBookers: (onFinish: () => void) => {
|
|
|
72
72
|
role_id?: number | null | undefined;
|
|
73
73
|
status: string;
|
|
74
74
|
email: string;
|
|
75
|
+
firstName: string;
|
|
76
|
+
lastName: string;
|
|
75
77
|
phone: string;
|
|
76
78
|
password: string;
|
|
77
|
-
lastName: string;
|
|
78
|
-
firstName: string;
|
|
79
79
|
}[] | undefined;
|
|
80
80
|
}>;
|
|
81
81
|
setValue: import('react-hook-form').UseFormSetValue<{
|
|
@@ -86,10 +86,10 @@ export declare const useImportBookers: (onFinish: () => void) => {
|
|
|
86
86
|
role_id?: number | null | undefined;
|
|
87
87
|
status: string;
|
|
88
88
|
email: string;
|
|
89
|
+
firstName: string;
|
|
90
|
+
lastName: string;
|
|
89
91
|
phone: string;
|
|
90
92
|
password: string;
|
|
91
|
-
lastName: string;
|
|
92
|
-
firstName: string;
|
|
93
93
|
}[] | undefined;
|
|
94
94
|
}>;
|
|
95
95
|
watch: import('react-hook-form').UseFormWatch<{
|
|
@@ -100,10 +100,10 @@ export declare const useImportBookers: (onFinish: () => void) => {
|
|
|
100
100
|
role_id?: number | null | undefined;
|
|
101
101
|
status: string;
|
|
102
102
|
email: string;
|
|
103
|
+
firstName: string;
|
|
104
|
+
lastName: string;
|
|
103
105
|
phone: string;
|
|
104
106
|
password: string;
|
|
105
|
-
lastName: string;
|
|
106
|
-
firstName: string;
|
|
107
107
|
}[] | undefined;
|
|
108
108
|
}>;
|
|
109
109
|
trigger: import('react-hook-form').UseFormTrigger<{
|
|
@@ -114,10 +114,10 @@ export declare const useImportBookers: (onFinish: () => void) => {
|
|
|
114
114
|
role_id?: number | null | undefined;
|
|
115
115
|
status: string;
|
|
116
116
|
email: string;
|
|
117
|
+
firstName: string;
|
|
118
|
+
lastName: string;
|
|
117
119
|
phone: string;
|
|
118
120
|
password: string;
|
|
119
|
-
lastName: string;
|
|
120
|
-
firstName: string;
|
|
121
121
|
}[] | undefined;
|
|
122
122
|
}>;
|
|
123
123
|
reset: import('react-hook-form').UseFormReset<{
|
|
@@ -128,10 +128,10 @@ export declare const useImportBookers: (onFinish: () => void) => {
|
|
|
128
128
|
role_id?: number | null | undefined;
|
|
129
129
|
status: string;
|
|
130
130
|
email: string;
|
|
131
|
+
firstName: string;
|
|
132
|
+
lastName: string;
|
|
131
133
|
phone: string;
|
|
132
134
|
password: string;
|
|
133
|
-
lastName: string;
|
|
134
|
-
firstName: string;
|
|
135
135
|
}[] | undefined;
|
|
136
136
|
}>;
|
|
137
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
|
email: string;
|
|
8
|
+
firstName: string;
|
|
9
|
+
lastName: string;
|
|
8
10
|
phone: string;
|
|
9
11
|
password: string;
|
|
10
|
-
lastName: 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
|
email: string;
|
|
26
|
+
firstName: string;
|
|
27
|
+
lastName: string;
|
|
26
28
|
phone: string;
|
|
27
29
|
password: string;
|
|
28
|
-
lastName: 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
|
email: string;
|
|
37
|
+
firstName: string;
|
|
38
|
+
lastName: string;
|
|
37
39
|
phone: string;
|
|
38
40
|
password: string;
|
|
39
|
-
lastName: 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
|
email: string;
|
|
48
|
+
firstName: string;
|
|
49
|
+
lastName: string;
|
|
48
50
|
phone: string;
|
|
49
51
|
password: string;
|
|
50
|
-
lastName: 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
|
email: string;
|
|
59
|
+
firstName: string;
|
|
60
|
+
lastName: string;
|
|
59
61
|
phone: string;
|
|
60
62
|
password: string;
|
|
61
|
-
lastName: 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
|
email: string;
|
|
70
|
+
firstName: string;
|
|
71
|
+
lastName: string;
|
|
70
72
|
phone: string;
|
|
71
73
|
password: string;
|
|
72
|
-
lastName: 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
|
email: string;
|
|
81
|
+
firstName: string;
|
|
82
|
+
lastName: string;
|
|
81
83
|
phone: string;
|
|
82
84
|
password: string;
|
|
83
|
-
lastName: 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
|
email: string;
|
|
92
|
+
firstName: string;
|
|
93
|
+
lastName: string;
|
|
92
94
|
phone: string;
|
|
93
95
|
password: string;
|
|
94
|
-
lastName: 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
|
email: string;
|
|
103
|
+
firstName: string;
|
|
104
|
+
lastName: string;
|
|
103
105
|
phone: string;
|
|
104
106
|
password: string;
|
|
105
|
-
lastName: string;
|
|
106
|
-
firstName: string;
|
|
107
107
|
}[] | undefined;
|
|
108
108
|
}>;
|
|
109
109
|
onSubmit: (data: yup.InferType<typeof groupOfMemberSchema>) => Promise<void>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const AdminChatPage: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { IChatMessage, IChatSession } from '../types/chat';
|
|
2
|
+
interface ChatStore {
|
|
3
|
+
session: IChatSession | null;
|
|
4
|
+
messages: IChatMessage[];
|
|
5
|
+
isOpen: boolean;
|
|
6
|
+
isTyping: boolean;
|
|
7
|
+
unreadCount: number;
|
|
8
|
+
sessionUnreadCounts: Record<number, number>;
|
|
9
|
+
adminIsOnline: boolean | null;
|
|
10
|
+
agencyIsOnline: boolean | null;
|
|
11
|
+
setSession: (session: IChatSession | null) => void;
|
|
12
|
+
setMessages: (messages: IChatMessage[]) => void;
|
|
13
|
+
addMessage: (message: IChatMessage) => void;
|
|
14
|
+
setIsOpen: (open: boolean) => void;
|
|
15
|
+
setIsTyping: (typing: boolean) => void;
|
|
16
|
+
setQueuePosition: (pos: number) => void;
|
|
17
|
+
updateSessionLastMessageTime: (messageTime: string) => void;
|
|
18
|
+
setSessionReadPointer: (readerType: 'admin' | 'agency', readAt: string) => void;
|
|
19
|
+
markSessionResolved: () => void;
|
|
20
|
+
incrementUnread: () => void;
|
|
21
|
+
resetUnread: () => void;
|
|
22
|
+
setUnread: (count: number) => void;
|
|
23
|
+
incrementSessionUnread: (sessionId: number) => void;
|
|
24
|
+
resetSessionUnread: (sessionId: number) => void;
|
|
25
|
+
setSessionUnreadCounts: (counts: Record<number, number>) => void;
|
|
26
|
+
getSessionUnread: (sessionId: number) => number;
|
|
27
|
+
setAdminIsOnline: (isOnline: boolean | null) => void;
|
|
28
|
+
setAgencyIsOnline: (isOnline: boolean | null) => void;
|
|
29
|
+
}
|
|
30
|
+
export declare const useChatStore: import('zustand').UseBoundStore<import('zustand').StoreApi<ChatStore>>;
|
|
31
|
+
export {};
|