import { ExampleItem, ExampleItemList } from '~/domain/models/example/example' export type SearchOption = { [key: string]: string | (string | null)[] } export interface ExampleRepository { list(projectId: string, { limit, offset, q, isChecked }: SearchOption): Promise create(projectId: string, item: ExampleItem): Promise update(projectId: string, item: ExampleItem): Promise bulkDelete(projectId: string, ids: number[]): Promise deleteAll(projectId: string): Promise findById(projectId: string, exampleId: number): Promise confirm(projectId: string, exampleId: number): Promise }