import type { BuildInput } from 'rapiq'; import type { DomainEventName } from './contstants'; export type SingleResourceResponse = R; export type CollectionResourceResponse = { data: R[]; meta: { limit: number; offset: number; total: number; }; }; export interface DomainAPISlim & { id: string | number; }> { getMany(record?: BuildInput): any; getOne(id: T['id'], record?: BuildInput): any; delete(id: T['id']): Promise>; create(data: Partial): Promise>; } export interface DomainAPI & { id: string | number; }> extends DomainAPISlim { update(id: T['id'], data: Partial): Promise>; } export type DomainEventBaseContext = { event: `${DomainEventName}`; type: string; }; //# sourceMappingURL=types-base.d.ts.map