export interface AssignedRecordDto {
  content: any;
  initiator: any;
  CreatedAt: string;
  createdAt: string;
  refetch: () => void;
  refetchTable: () => void;
  id: string;
  status: string;
  latestRemarkAt?: string | null;
  childAssignments?: {
    latestRemarkAt?: string | null;
  }[];
  isRead: boolean;
  amharicCreatedAt: string;
  isLocked?: boolean;
  isDelegation?: boolean;
  record: {
    letterName: string;
    isUrgent: any;
    referenceNumber: string;
    id: string;
    dispatchedDate: string | null;
    amharicDispatchedDate: string;

    initiationType: string;
    initiator: {
      position: any;
      id: string;
      name: {
        am: string;
        en: string;
      };
    };
    recordTypeKey: string;
    content: {
      id: string;
      subject: string;
    }[];
    isDelegation: boolean;
  };
  assigneePosition: {
    id: string;
    name: string;
  };
  referenceNumber: string;
}

export interface AssignRecordDto {
  recordId?: string;
  id: string;
  createdAt: string;
  status: string;
  lastRemarkCreated?: string | null;
  preferredLanguage?: string;
  assigneeId?: string;
  assignee?: {
    id?: string;
    employee?: {
      id?: string;
    };
  } | null;
  assigneePositionId?: string;
  assigneePosition?: {
    id?: string;
  } | null;
  incomingInstances?: Array<AssignRecordDto>;
  children?: Array<AssignRecordDto>;
  record: {
    id: string;
    dispatchedDate: string | null;
    initiationType: string;
    recordTypeKey: string;
    content: {
      id: string;
      subject: string;
    }[];
  };
  isRead?: boolean | undefined;
}
