1 | import moment from 'moment';
|
2 | import { Field, StringFilterFunction, BooleanFilterFunction, NumberFilterFunction, FilterFunctionPrimitiveParameterType, FieldType, CollectionField } from '../odata-common';
|
3 | import { CollectionFilterFunction } from '../odata-common/filter/collection-filter-function';
|
4 | import { Entity } from './entity';
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
11 |
|
12 | export declare function contains<EntityT extends Entity>(substr: string | Field<EntityT, boolean, boolean> | StringFilterFunction<EntityT>, str: string | Field<EntityT, boolean, boolean> | StringFilterFunction<EntityT>): BooleanFilterFunction<EntityT>;
|
13 |
|
14 |
|
15 |
|
16 |
|
17 |
|
18 |
|
19 | export declare function matchesPattern<EntityT extends Entity>(str: string | Field<EntityT, boolean, boolean> | StringFilterFunction<EntityT>, regex: string): BooleanFilterFunction<EntityT>;
|
20 |
|
21 |
|
22 |
|
23 |
|
24 |
|
25 | export declare function fractionalSeconds<EntityT extends Entity>(date: moment.Moment | Field<EntityT, boolean, boolean>): NumberFilterFunction<EntityT>;
|
26 |
|
27 |
|
28 |
|
29 |
|
30 |
|
31 | export declare function totalOffsetMinutes<EntityT extends Entity>(date: moment.Moment | Field<EntityT, boolean, boolean>): NumberFilterFunction<EntityT>;
|
32 |
|
33 |
|
34 |
|
35 |
|
36 | export declare function maxDateTime<EntityT extends Entity>(): NumberFilterFunction<EntityT>;
|
37 |
|
38 |
|
39 |
|
40 |
|
41 | export declare function minDateTime<EntityT extends Entity>(): NumberFilterFunction<EntityT>;
|
42 |
|
43 |
|
44 |
|
45 |
|
46 | export declare function now<EntityT extends Entity>(): NumberFilterFunction<EntityT>;
|
47 |
|
48 |
|
49 |
|
50 |
|
51 |
|
52 |
|
53 |
|
54 | export declare function hasSubset<EntityT extends Entity, ParamT extends FilterFunctionPrimitiveParameterType, ReturnT extends FieldType>(subset: ParamT[] | CollectionField<EntityT, any, boolean, boolean> | CollectionFilterFunction<EntityT, ReturnT>, set: ParamT[] | CollectionField<EntityT, any, boolean, boolean> | CollectionFilterFunction<EntityT, ReturnT>): BooleanFilterFunction<EntityT>;
|
55 |
|
56 |
|
57 |
|
58 |
|
59 |
|
60 |
|
61 |
|
62 | export declare function hasSubsequence<EntityT extends Entity, ParamT extends FilterFunctionPrimitiveParameterType, ReturnT extends FieldType>(subsequence: ParamT[] | Field<EntityT, boolean, boolean> | CollectionFilterFunction<EntityT, ReturnT>, sequence: ParamT[] | Field<EntityT, boolean, boolean> | CollectionFilterFunction<EntityT, ReturnT>): BooleanFilterFunction<EntityT>;
|
63 |
|
64 |
|
65 |
|
66 |
|
67 |
|
68 |
|
69 | export declare const filterFunctions: {
|
70 | contains: typeof contains;
|
71 | matchesPattern: typeof matchesPattern;
|
72 | fractionalSeconds: typeof fractionalSeconds;
|
73 | totalOffsetMinutes: typeof totalOffsetMinutes;
|
74 | maxDateTime: typeof maxDateTime;
|
75 | minDateTime: typeof minDateTime;
|
76 | now: typeof now;
|
77 | hasSubset: typeof hasSubset;
|
78 | hasSubsequence: typeof hasSubsequence;
|
79 | endsWith: typeof import("../odata-common").endsWith;
|
80 | startsWith: typeof import("../odata-common").startsWith;
|
81 | length: typeof import("../odata-common").length;
|
82 | indexOf: typeof import("../odata-common").indexOf;
|
83 | substring: typeof import("../odata-common").substring;
|
84 | toLower: typeof import("../odata-common").toLower;
|
85 | toUpper: typeof import("../odata-common").toUpper;
|
86 | trim: typeof import("../odata-common").trim;
|
87 | concat: typeof import("../odata-common").concat;
|
88 | round: typeof import("../odata-common").round;
|
89 | floor: typeof import("../odata-common").floor;
|
90 | ceiling: typeof import("../odata-common").ceiling;
|
91 | day: typeof import("../odata-common").day;
|
92 | hour: typeof import("../odata-common").hour;
|
93 | minute: typeof import("../odata-common").minute;
|
94 | month: typeof import("../odata-common").month;
|
95 | second: typeof import("../odata-common").second;
|
96 | year: typeof import("../odata-common").year;
|
97 | isOf: typeof import("../odata-common").isOf;
|
98 | };
|
99 | export { filterFunctions as filterFunctionsV4 };
|
100 |
|
\ | No newline at end of file |