UNPKG

@bapp/auto-api-client

Version:

Client to consume BAPP auto API, based on content types with type inference

27 lines (26 loc) 597 B
export interface Register { } export type DefaultMapping = { ContentType: string; TaskCode: string; entity: { [key: string]: { filter: Record<string, any>; body: any; response: any; }; }; }; export type RegisteredMapping = Register extends { mapping: infer TMapping extends object; } ? TMapping : DefaultMapping; export type Config = { appSlug?: string; tenantId?: string; }; export type PagedData<TData = unknown> = { count: number; next: string | null; previous: string | null; results: TData[]; };