gotrip-fx-transaction-form 1.0.273-dev → 1.0.277-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.273-dev",
3
+ "version": "1.0.277-dev",
4
4
  "description": "FX Transaction Form ES6 module",
5
5
  "main": "index.js",
6
6
  "types": "types/index.d.ts",
@@ -1,4 +1,4 @@
1
- import { ESimPackage } from '../../types/response.dto';
1
+ import { ESimPackage, IUser } from '../../types/response.dto';
2
2
  import { default as React } from 'react';
3
3
  interface ESimPurchaseModalProps {
4
4
  selectedPackage: ESimPackage;
@@ -6,6 +6,9 @@ interface ESimPurchaseModalProps {
6
6
  open: boolean;
7
7
  onClose: () => void;
8
8
  onFinish?: () => void;
9
+ isAdminMode?: boolean;
10
+ selectedUser?: IUser | null;
11
+ onChangeBooker?: () => void;
9
12
  }
10
13
  declare const ESimPurchaseModal: React.FC<ESimPurchaseModalProps>;
11
14
  export default ESimPurchaseModal;
@@ -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
+ };
@@ -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
+ }
@@ -1,4 +1,6 @@
1
1
  import { IUser } from '../types/response.dto';
2
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;
3
5
  /** Clickable hint when admin must pick / re-pick booker */
4
- export declare const BOOKER_SELECT_GUIDE_VI = "ch\u1ECDn ng\u01B0\u1EDDi d\u00F9ng";
6
+ export declare const BOOKER_SELECT_GUIDE_VI = "ch\u01B0a ch\u1ECDn ng\u01B0\u1EDDi d\u00F9ng";