UNPKG

@dataswift/hat-js

Version:

HAT JavaScript SDK for web and Node.js

42 lines (41 loc) 914 B
import { HatRecord } from './hat-record.interface'; export interface BundleStructure { name: string; bundle: { [bundleVersion: string]: PropertyQuery; }; } export interface BundleValues { [bundleName: string]: HatRecord<any>[]; } export interface PropertyQuery { endpoints: EndpointQuery[]; orderBy?: string; ordering?: string; limit?: number; } export interface EndpointQuery { endpoint: string; mapping?: { [fieldName: string]: string; }; filters?: Filter[]; links?: EndpointQuery[]; } export interface Filter { field: string; transformation?: Transformation; operator: Operator; } interface Transformation { transformation: string; part?: string; } interface Operator { operator: string; value?: number | string | boolean; lower?: number | string; upper?: number | string; search?: string; } export {};