export interface DelegationApprovalRecordResponse {
  count: number;
  items: DelegationApprovalRecordItem[];
}

export interface DelegationApprovalRecordItem {
  createdAt: string;
  updatedAt: string;
  id: string;
  status: string;
  record: {
    id: string;
    recordTypeKey: string;
    content: DelegationRecordContent[];
    receivingUnits: DelegationReceivingUnit[];
  };
  currentStep: {
    id: string;
    name: {
      am: string;
      en: string;
    };
  };
}

export interface DelegationRecordContent {
  id: string;
  subject: string;
  nonSmartOfficeReceivers: any; // or null
  receiverPositions: DelegationReceiverPosition[];
  receiverEmployees: any[]; // currently empty
}

export interface DelegationReceiverPosition {
  id: string;
  position: {
    id: string;
    name: {
      am: string;
      en: string;
    };
  };
}

export interface DelegationReceivingUnit {
  id: string;
  unit: {
    id: string;
    name: {
      am: string;
      en: string;
    };
  };
}
