export type PublicFeed<T> = {
  items: T[];
  count: number;
};

export type PublicEntity = {
  id?: number;
  [key: string]: unknown;
};

export type PublicEmploye = {
  id?: number;
  COS: number | null;
  TIT: string | null;
  NSA: string | null;
  NJF: string | null;
  PRE: string | null;
  VIL: string | null;
  EmailE2e: string | null;
  [key: string]: unknown;
};

export type PublicContrat = {
  id: number;
  id_contrat: number | null;
  id_salarie: number | null;
  TCS?: string | null;
  MotifContrat?: string | null;
  DAE?: Date | string | null;
  FPE?: Date | string | null;
  ETB?: string | null;
  [key: string]: unknown;
};

export type PublicAbsence = {
  id?: number;
  id_salarie: number | null;
  [key: string]: unknown;
};

export type PublicSanction = {
  id?: number;
  id_salarie: number | null;
  [key: string]: unknown;
};

export type PublicAvenant = PublicEntity;
export type PublicDiplome = PublicEntity;
export type PublicVisiteMedicale = PublicEntity;