import { DocumentItem, DocumentItemList } from '~/domain/models/document/document' export type SearchOption = {[key: string]: string | (string | null)[]} export interface DocumentRepository { list(projectId: string, { limit, offset, q, isChecked, filterName }: SearchOption): Promise create(projectId: string, item: DocumentItem): Promise update(projectId: string, item: DocumentItem): Promise bulkDelete(projectId: string, ids: number[]): Promise deleteAll(projectId: string): Promise uploadFile(projectId: string, payload: FormData): Promise exportFile(projectId: string, format: string, onlyApproved: boolean): Promise approve(projectId: string, docId: number, approved: boolean): Promise }