export interface CreateApiResourceOption { count: number enum?: boolean fields: { [code: string]: { type: string } } customFilter?: (i: any, params: RequestConfig['params']) => boolean } export interface CreateApiResourceOptions { [name: string]: CreateApiResourceOption } export interface CreateApiOptions { sortFieldKey: string requestPageKey: string requestLimitKey: string requestOffsetKey: string requestPerPageKey: string type: 'limit-offset' | 'page-perPage' } export interface Model { id: number [resourceFieldCode: string]: any } export type ModelField = string | number | boolean | Model | Model[] export interface RequestConfig { params?: { [code: string]: string | string[] } } export interface ResponseConfig { data: any status: number statusText: string headers: { [code: string]: string } config: { [code: string]: string } }