import { DocumentItem, DocumentItemList } from '@/models/document' export type SearchOption = {[key: string]: string | (string | null)[]} export interface DocumentItemRepository { 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 }