UNPKG

@odata2ts/odata-query-objects

Version:

Q-Objects are the magic sauce for the odata-query-builder and allow for renaming and type conversion

25 lines (24 loc) 1.02 kB
import { QFilterExpression } from "../QFilterExpression"; import { QOrderByExpression } from "../QOrderByExpression"; import { QueryObject } from "../QueryObject"; import { LambdaOperatorType } from "./base/LambdaOperatorType"; import { QEntityPathModel } from "./QPathModel"; export declare class QEntityCollectionPath<Q extends QueryObject> implements QEntityPathModel<Q> { private path; private qEntityFn; constructor(path: string, qEntityFn: () => new (prefix?: string) => Q); getPath(): string; getEntity(withPrefix?: boolean): Q; isCollectionType(): boolean; private lambdaFunction; any(fn?: LambdaOperatorType<Q>, prefix?: string): QFilterExpression; all(fn?: LambdaOperatorType<Q>, prefix?: string): QFilterExpression; /** * Sort by total count of these collection items in ascending order. */ countAsc(): QOrderByExpression; /** * Sort by total count of these collection items in ascending order. */ countDesc(): QOrderByExpression; }