export interface Document {
  file: {
    digest: string;
    hash: string;
    name: string;
    url: string;
  };
  generated: boolean;
  goal: number;
  id: string;
  modified: number;
  number: string; // wtf
  resApplicant: string;
  resAuthDepName: string;
  resAuthEmplPosition: string;
  resDate: string;
  resDepNotRespons: boolean;
  resDocAcceptRufusal: boolean;
  resInvalidSig: boolean;
  resNumber: string;
  resReqDate: string;
  resReqNumber: number;
  resSubjName: string;
  schema: string;
  source: string;
  template: {
    name: string;
    url: string;
  };
  type: {
    code: string;
    name: string;
  };
  valid: boolean;
}
