gotrip-fx-transaction-form 1.0.272-dev → 1.0.276-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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gotrip-fx-transaction-form",
3
- "version": "1.0.272-dev",
3
+ "version": "1.0.276-dev",
4
4
  "description": "FX Transaction Form ES6 module",
5
5
  "main": "index.js",
6
6
  "types": "types/index.d.ts",
@@ -27,5 +27,6 @@ export interface StepFourPaymentProps {
27
27
  hasSelectedUser?: boolean;
28
28
  submitLabel?: string;
29
29
  showApprovalToggle?: boolean;
30
+ mode?: 'create' | 'edit';
30
31
  }
31
- export declare const StepFourPayment: ({ travelScope, travelPlan, selectedPlan, buyerInfo, insuredPeople, onBack, onPayment, isProcessing, onPremiumUpdate, onCouponChange, paymentType: paymentTypeProp, isAdminMode, waitForApproval, onWaitForApprovalChange, hasSelectedUser, submitLabel, showApprovalToggle, }: StepFourPaymentProps) => import("react/jsx-runtime").JSX.Element;
32
+ export declare const StepFourPayment: ({ travelScope, travelPlan, selectedPlan, buyerInfo, insuredPeople, onBack, onPayment, isProcessing, onPremiumUpdate, onCouponChange, paymentType: paymentTypeProp, isAdminMode, waitForApproval, onWaitForApprovalChange, hasSelectedUser, submitLabel, showApprovalToggle, mode, }: StepFourPaymentProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,8 @@
1
+ export declare const DEFAULT_PROCESSING_ORDER_MESSAGE = "\u0110ang x\u1EED l\u00FD \u0111\u01A1n h\u00E0ng, xin vui l\u00F2ng ch\u1EDD...";
2
+ type ProcessingOrderDialogProps = {
3
+ open: boolean;
4
+ /** Defaults to {@link DEFAULT_PROCESSING_ORDER_MESSAGE} */
5
+ message?: string;
6
+ };
7
+ export declare const ProcessingOrderDialog: ({ open, message, }: ProcessingOrderDialogProps) => import("react/jsx-runtime").JSX.Element;
8
+ export {};
@@ -0,0 +1,5 @@
1
+ interface NotificationBellProps {
2
+ onNavigate?: () => void;
3
+ }
4
+ export declare const NotificationBell: ({ onNavigate }: NotificationBellProps) => import("react/jsx-runtime").JSX.Element;
5
+ export {};
@@ -0,0 +1,8 @@
1
+ import { INotification } from '../../types/notification';
2
+ interface NotificationItemProps {
3
+ notification: INotification;
4
+ onClose?: () => void;
5
+ onNavigate?: () => void;
6
+ }
7
+ export declare const NotificationItem: ({ notification, onClose, onNavigate }: NotificationItemProps) => import("react/jsx-runtime").JSX.Element;
8
+ export {};
@@ -0,0 +1,6 @@
1
+ interface NotificationPanelProps {
2
+ onClose: () => void;
3
+ onNavigate?: () => void;
4
+ }
5
+ export declare const NotificationPanel: ({ onClose, onNavigate }: NotificationPanelProps) => import("react/jsx-runtime").JSX.Element;
6
+ export {};
@@ -0,0 +1,10 @@
1
+ import { INotification } from '../types/notification';
2
+ export declare const useNotifications: () => {
3
+ fetchNotifications: (page?: number, limit?: number) => Promise<{
4
+ data: INotification[];
5
+ total: number;
6
+ }>;
7
+ fetchUnreadCount: () => Promise<number>;
8
+ markAsRead: (id: number) => Promise<INotification>;
9
+ markAllAsRead: () => Promise<void>;
10
+ };
@@ -4,6 +4,7 @@ interface UseUserSearchResult {
4
4
  loading: boolean;
5
5
  error: string | null;
6
6
  search: (query: string) => void;
7
+ membersTenantId: number | null;
7
8
  }
8
9
  export declare const useUserSearch: (tenantId: number | null, debounceMs?: number) => UseUserSearchResult;
9
10
  export {};
@@ -0,0 +1,16 @@
1
+ import { INotification } from '../types/notification';
2
+ interface NotificationStore {
3
+ notifications: INotification[];
4
+ unreadCount: number;
5
+ hasMore: boolean;
6
+ page: number;
7
+ addNotification: (notification: INotification) => void;
8
+ setNotifications: (notifications: INotification[], total: number) => void;
9
+ setUnreadCount: (count: number) => void;
10
+ markAsRead: (id: number) => void;
11
+ markAllAsRead: () => void;
12
+ setPage: (page: number) => void;
13
+ setHasMore: (hasMore: boolean) => void;
14
+ }
15
+ export declare const useNotificationStore: import('zustand').UseBoundStore<import('zustand').StoreApi<NotificationStore>>;
16
+ export {};
@@ -0,0 +1,23 @@
1
+ export declare enum ENotificationType {
2
+ INSURANCE_PENDING_APPROVAL = "insurance_pending_approval",
3
+ INSURANCE_APPROVED = "insurance_approved",
4
+ INSURANCE_REJECTED = "insurance_rejected",
5
+ INSURANCE_UPDATED = "insurance_updated",
6
+ MOTOR_INSURANCE_PENDING_APPROVAL = "motor_insurance_pending_approval",
7
+ MOTOR_INSURANCE_APPROVED = "motor_insurance_approved",
8
+ MOTOR_INSURANCE_REJECTED = "motor_insurance_rejected",
9
+ MOTOR_INSURANCE_UPDATED = "motor_insurance_updated"
10
+ }
11
+ export interface INotification {
12
+ id: number;
13
+ type: ENotificationType;
14
+ title: string;
15
+ message: string;
16
+ isRead: boolean;
17
+ readAt: string | null;
18
+ metadata: {
19
+ path?: string;
20
+ publicId?: string;
21
+ } | null;
22
+ createdAt: string;
23
+ }
@@ -0,0 +1,6 @@
1
+ import { IUser } from '../types/response.dto';
2
+ export declare function formatBookerHeadingWithEmail(user: IUser): string;
3
+ export declare function getBookerSelectionButtonLabel(selectedUser: IUser | null): string;
4
+ export declare function getSelectedUserDisplay(selectedUser: IUser | null): string;
5
+ /** Clickable hint when admin must pick / re-pick booker */
6
+ export declare const BOOKER_SELECT_GUIDE_VI = "ch\u01B0a ch\u1ECDn ng\u01B0\u1EDDi d\u00F9ng";