UNPKG

@odata2ts/odata-query-objects

Version:

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

60 lines (59 loc) 1.64 kB
export declare const enum StandardFilterOperators { EQUALS = "eq", NOT_EQUALS = "ne", LOWER_THAN = "lt", LOWER_EQUALS = "le", GREATER_THAN = "gt", GREATER_EQUALS = "ge", IN = "in" } export declare const enum StringFilterFunctions { CONCAT = "concat", CONTAINS = "contains", SUBSTRING_OF = "substringof", ENDS_WITH = "endswith", INDEX_OF = "indexof", LENGTH = "length", STARTS_WITH = "startswith", MATCHES_PATTERN = "matchesPattern", TO_LOWER = "tolower", TO_UPPER = "toupper", TRIM = "trim" } export type StringFilterFunctionModelV2 = StandardFilterOperators & Omit<StringFilterFunctions, "CONTAINS" | "MATCHES_PATTERN">; export type StringFilterFunctionModelV4 = StandardFilterOperators & Omit<StringFilterFunctions, "SUBSTRING_OF">; export declare const enum NumberFilterOperators { ADDITION = "add", SUBTRACTION = "sub", MULTIPLICATION = "mul", DIVISION = "div", DIVISION_WITH_FRACTION = "divby", MODULO = "mod" } export declare const enum NumberFilterFunctions { CEILING = "ceiling", FLOOR = "floor", ROUND = "round" } export declare const enum DateTimeFilterFunctions { YEAR = "year", MONTH = "month", DAY = "day", HOUR = "hour", MINUTE = "minute", SECOND = "second", DATE = "date", TIME = "time" } export declare const enum CollectionFilterFunctions { STARTS_WITH = "startswith", ENDS_WITH = "endswith", CONTAINS = "contains", INDEX_OF = "indexof", LENGTH = "length", CONCAT = "concat" } export declare const enum LambdaFunctions { ANY = "any", ALL = "all" }