export type LocalizedText = string | { am?: string; en?: string };

export interface RecordPeriodTotals {
  today: number;
  thisWeek: number;
  thisMonth: number;
  allTime: number;
}

export interface SectorRecordReport {
  sectorId: string;
  sectorName: LocalizedText;
  groupId?: string | null;
  groupName?: LocalizedText | null;
  incoming: RecordPeriodTotals;
  outgoing: RecordPeriodTotals;
}

export interface SectorReportResponse {
  items: SectorRecordReport[];
}

export interface SectorReportFilters {
  unitId?: string;
  positionId?: string;
  from?: string;
  to?: string;
}
