@proofkit/fmodata
Version:
FileMaker OData API client
30 lines (29 loc) • 790 B
TypeScript
import { QueryOptions } from 'odata-query';
import { FMTable } from '../../orm/table.js';
/**
* Expand configuration used by both QueryBuilder and RecordBuilder
*/
export interface ExpandConfig {
relation: string;
options?: Partial<QueryOptions<any>>;
targetTable?: FMTable<any, any>;
nestedExpandConfigs?: ExpandConfig[];
}
/**
* Type to represent expanded relations in return types
*/
export type ExpandedRelations = Record<string, {
schema: any;
selected: any;
}>;
/**
* Navigation context shared between builders
*/
export interface NavigationContext {
isNavigate?: boolean;
navigateRecordId?: string | number;
navigateRelation?: string;
navigateSourceTableName?: string;
navigateBaseRelation?: string;
navigateBasePath?: string;
}