import { Document, Service } from '@openapi/registry-service';

interface DocumentWithNameAndCode extends Document {
  name: string;
  code: string;
}

interface Row {
  name: string;
  code: string;
  file: File | null;
}

interface InteragenciesTableRow {
  file: File | null;
  expand: boolean;
  response: any;
  label1: string;
  label2: string;
  codes: any;
}

interface ServiceWithDocuments extends Service {
  documents: DocumentWithNameAndCode[];
}

interface UploadedDocument {
  fileName: string;
  fileUrl: string;
  documentCode: string;
}

export {
  Document,
  Service,
  DocumentWithNameAndCode,
  Row,
  ServiceWithDocuments,
  UploadedDocument,
  InteragenciesTableRow,
};
