export type UserNotificationType =
  | 'CASE_SENT'
  | 'CLINIC_COMMENT'
  | 'LAB_COMMENT'
  | 'LAB_COMMENT_CLINIC'
  | 'CASE_IMPORTANT'
  | 'TASK_COMPLETED'
  | 'TASK_ASSIGNED'
  | 'CASE_COMPLETED'
  | 'CONNECTION_REQUEST'
  | 'STAFF_INVITE';

export type UserNotificationItem = {
  id: string;
  type: UserNotificationType;
  href: string;
  payload: Record<string, unknown> | null;
  readAt: string | null;
  createdAt: string;
  actorUserId: string | null;
};

export type InboxPage = {
  items: UserNotificationItem[];
  nextCursor: string | null;
};
