UNPKG

@odata2ts/odata-query-objects

Version:

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

77 lines (76 loc) 4.9 kB
import { NumericEnumLike, NumericEnumMember, StringEnumLike, StringEnumMember } from "../enum/EnumModel"; import { QEnumPath } from "../path/enum/QEnumPath"; import { QNumericEnumPath } from "../path/enum/QNumericEnumPath"; import { QBinaryPath } from "../path/QBinaryPath"; import { QBooleanPath } from "../path/QBooleanPath"; import { QDateTimeOffsetV2Path } from "../path/v2/QDateTimeOffsetV2Path"; import { QDateTimeV2Path } from "../path/v2/QDateTimeV2Path"; import { QGuidV2Path } from "../path/v2/QGuidV2Path"; import { QNumberV2Path } from "../path/v2/QNumberV2Path"; import { QStringNumberV2Path } from "../path/v2/QStringNumberV2Path"; import { QStringV2Path } from "../path/v2/QStringV2Path"; import { QTimeV2Path } from "../path/v2/QTimeV2Path"; import { QBigNumberPath } from "../path/v4/QBigNumberPath"; import { QDatePath } from "../path/v4/QDatePath"; import { QDateTimeOffsetPath } from "../path/v4/QDateTimeOffsetPath"; import { QGuidPath } from "../path/v4/QGuidPath"; import { QNumberPath } from "../path/v4/QNumberPath"; import { QStringPath } from "../path/v4/QStringPath"; import { QTimeOfDayPath } from "../path/v4/QTimeOfDayPath"; import { QPrimitiveCollection } from "./QPrimitiveCollection"; export declare class QStringCollection<ConvertedType = string> extends QPrimitiveCollection<string, ConvertedType, QStringPath<ConvertedType>> { readonly it: QStringPath<ConvertedType>; } export declare class QStringV2Collection<ConvertedType = string> extends QPrimitiveCollection<string, ConvertedType, QStringV2Path<ConvertedType>> { readonly it: QStringV2Path<ConvertedType>; } export declare class QNumberCollection<ConvertedType = number> extends QPrimitiveCollection<number, ConvertedType, QNumberPath<ConvertedType>> { readonly it: QNumberPath<ConvertedType>; } export declare class QBigNumberCollection<ConvertedType = string> extends QPrimitiveCollection<string, ConvertedType, QBigNumberPath<ConvertedType>> { readonly it: QBigNumberPath<ConvertedType>; } export declare class QNumberV2Collection<ConvertedType = number> extends QPrimitiveCollection<number, ConvertedType, QNumberV2Path<ConvertedType>> { readonly it: QNumberV2Path<ConvertedType>; } export declare class QStringNumberV2Collection<ConvertedType = string> extends QPrimitiveCollection<string, ConvertedType, QStringNumberV2Path<ConvertedType>> { readonly it: QStringNumberV2Path<ConvertedType>; } export declare class QBooleanCollection<ConvertedType = boolean> extends QPrimitiveCollection<boolean, ConvertedType, QBooleanPath<ConvertedType>> { readonly it: QBooleanPath<ConvertedType>; } export declare class QGuidCollection<ConvertedType = string> extends QPrimitiveCollection<string, ConvertedType, QGuidPath<ConvertedType>> { readonly it: QGuidPath<ConvertedType>; } export declare class QGuidV2Collection<ConvertedType = string> extends QPrimitiveCollection<string, ConvertedType, QGuidV2Path<ConvertedType>> { readonly it: QGuidV2Path<ConvertedType>; } export declare class QBinaryCollection<ConvertedType = string> extends QPrimitiveCollection<string, ConvertedType, QBinaryPath> { readonly it: QBinaryPath; } export declare class QDateTimeOffsetCollection<ConvertedType = string> extends QPrimitiveCollection<string, ConvertedType, QDateTimeOffsetPath<ConvertedType>> { readonly it: QDateTimeOffsetPath<ConvertedType>; } export declare class QTimeOfDayCollection<ConvertedType = string> extends QPrimitiveCollection<string, ConvertedType, QTimeOfDayPath<ConvertedType>> { readonly it: QTimeOfDayPath<ConvertedType>; } export declare class QDateCollection<ConvertedType = string> extends QPrimitiveCollection<string, ConvertedType, QDatePath<ConvertedType>> { readonly it: QDatePath<ConvertedType>; } export declare class QTimeV2Collection<ConvertedType = string> extends QPrimitiveCollection<string, ConvertedType, QTimeV2Path<ConvertedType>> { readonly it: QTimeV2Path<ConvertedType>; } export declare class QDateTimeV2Collection<ConvertedType = string> extends QPrimitiveCollection<string, ConvertedType, QDateTimeV2Path<ConvertedType>> { readonly it: QDateTimeV2Path<ConvertedType>; } export declare class QDateTimeOffsetV2Collection<ConvertedType = string> extends QPrimitiveCollection<string, ConvertedType, QDateTimeOffsetV2Path<ConvertedType>> { readonly it: QDateTimeOffsetV2Path<ConvertedType>; } export declare class QEnumCollection<EnumType extends StringEnumLike> extends QPrimitiveCollection<string, StringEnumMember<EnumType>, QEnumPath<EnumType>> { readonly it: QEnumPath<EnumType>; constructor(theEnum: EnumType, prefix?: string); } export declare class QNumericEnumCollection<EnumType extends NumericEnumLike> extends QPrimitiveCollection<string, NumericEnumMember<EnumType>, QNumericEnumPath<EnumType>> { readonly it: QNumericEnumPath<EnumType>; constructor(theEnum: EnumType, prefix?: string); }