import type { MobileIntervention, MobileInterventionDetails } from "./intervention";

export type SyncQueueMethod = "GET" | "POST";

export type SyncQueueItem = {
  id: number;
  endpoint: string;
  method: SyncQueueMethod;
  payload: Record<string, unknown>;
  entity_type: string;
  entity_id: string;
  created_at: string;
  attempts: number;
};

export type LocalInterventionsSnapshot = {
  items: MobileIntervention[];
  count: number;
  updated_at: string;
};

export type LocalInterventionRecord = {
  item: MobileInterventionDetails;
  updated_at: string;
};
