@fibery/expression-utils 9.7.2 → 10.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/_virtual/_rolldown/runtime.js +13 -0
- package/lib/index.d.ts +191 -585
- package/lib/index.js +15 -50
- package/lib/src/context-variables.d.ts +27 -22
- package/lib/src/context-variables.js +106 -138
- package/lib/src/errors.d.ts +5 -2
- package/lib/src/errors.js +14 -14
- package/lib/src/field-expression-visitor-type-aware.d.ts +18 -16
- package/lib/src/field-expression-visitor-type-aware.js +116 -131
- package/lib/src/filter-expression/index.d.ts +12 -9
- package/lib/src/filter-expression/index.js +34 -47
- package/lib/src/filter-expression/operator-utils.d.ts +14 -11
- package/lib/src/filter-expression/operator-utils.js +191 -185
- package/lib/src/filter-expression/operators.d.ts +111 -106
- package/lib/src/filter-expression/operators.js +1130 -846
- package/lib/src/filter-expression/pattern-match-placeholders.d.ts +63 -61
- package/lib/src/filter-expression/pattern-match-placeholders.js +107 -138
- package/lib/src/filter-expression/pattern-match.d.ts +17 -15
- package/lib/src/filter-expression/pattern-match.js +118 -130
- package/lib/src/filter-expression/pattern-to-expression.d.ts +13 -11
- package/lib/src/filter-expression/pattern-to-expression.js +42 -45
- package/lib/src/filter-expression/types.d.ts +29 -26
- package/lib/src/filter-expression/types.js +0 -3
- package/lib/src/params-placeholders.d.ts +55 -51
- package/lib/src/params-placeholders.js +199 -192
- package/lib/src/tsfixme.d.ts +4 -1
- package/lib/src/tsfixme.js +0 -3
- package/lib/src/types.d.ts +47 -45
- package/lib/src/types.js +0 -3
- package/lib/src/utils.d.ts +53 -48
- package/lib/src/utils.js +276 -338
- package/lib/src/visitors.d.ts +43 -37
- package/lib/src/visitors.js +306 -365
- package/lib/test-data/schema-mock.d.ts +68 -751
- package/lib/test-data/schema-mock.js +175 -139
- package/package.json +17 -10
- package/lib/index.js.map +0 -1
- package/lib/src/context-variables.js.map +0 -1
- package/lib/src/errors.js.map +0 -1
- package/lib/src/field-expression-visitor-type-aware.js.map +0 -1
- package/lib/src/filter-expression/index.js.map +0 -1
- package/lib/src/filter-expression/operator-utils.js.map +0 -1
- package/lib/src/filter-expression/operators.js.map +0 -1
- package/lib/src/filter-expression/pattern-match-placeholders.js.map +0 -1
- package/lib/src/filter-expression/pattern-match.js.map +0 -1
- package/lib/src/filter-expression/pattern-to-expression.js.map +0 -1
- package/lib/src/filter-expression/types.js.map +0 -1
- package/lib/src/params-placeholders.js.map +0 -1
- package/lib/src/tsfixme.js.map +0 -1
- package/lib/src/types.js.map +0 -1
- package/lib/src/utils.js.map +0 -1
- package/lib/src/visitors.js.map +0 -1
- package/lib/test-data/schema-mock.js.map +0 -1
|
@@ -1,200 +1,206 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
};
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
const
|
|
10
|
-
const
|
|
11
|
-
const pattern_match_1 = require("./pattern-match");
|
|
12
|
-
const pattern_match_placeholders_1 = require("./pattern-match-placeholders");
|
|
13
|
-
const isoDateTimeSample = "2018-05-30T07:57:45.190Z";
|
|
14
|
-
const isoDateSample = "2018-05-30";
|
|
15
|
-
// we're considering date as date-time here because of field-convert
|
|
16
|
-
// from date to date-time, it changes field type but not touches constants in query-params
|
|
17
|
-
// so to keep filters and color-coding working we treat date as date-time here
|
|
18
|
-
// and later moment.js parses date string as date-time
|
|
19
|
-
const isDateTime = (dateString) => dateString.length === isoDateTimeSample.length || dateString.length === isoDateSample.length;
|
|
20
|
-
exports.isDateTime = isDateTime;
|
|
21
|
-
exports.NO_VALUE = undefined;
|
|
1
|
+
import { doPatternMatch } from "./pattern-match.js";
|
|
2
|
+
import { dateToDateTimeIntervalLookup, monthAgoDateParamPlaceholder, monthAgoStartDateTimeParamPlaceholder, monthFromNowDateParamPlaceholder, monthFromNowEndDateTimeParamPlaceholder, paramsPlaceholdersLookup, parseRelativeDatePlaceholder, toRelativeDatePlaceholder, todayDateParamPlaceholder, todayEndDateTimeParamPlaceholder, weekAgoDateParamPlaceholder, weekAgoStartDateTimeParamPlaceholder, weekFromNowDateParamPlaceholder, weekFromNowEndDateTimeParamPlaceholder, yearAgoDateParamPlaceholder, yearAgoStartDateTimeParamPlaceholder, yearFromNowDateParamPlaceholder, yearFromNowEndDateTimeParamPlaceholder } from "../params-placeholders.js";
|
|
3
|
+
import { dateTimeOrDateTimeRangeExpressionPlaceholder, getParamPlaceholder } from "./pattern-match-placeholders.js";
|
|
4
|
+
import { isRecord } from "@fibery/helpers/src/_";
|
|
5
|
+
import isString from "lodash/isString.js";
|
|
6
|
+
import findKey from "lodash/findKey.js";
|
|
7
|
+
import isEqual from "lodash/isEqual.js";
|
|
8
|
+
//#region src/filter-expression/operator-utils.ts
|
|
9
|
+
const isDateTime = (dateString) => dateString.length === 24 || dateString.length === 10;
|
|
10
|
+
const NO_VALUE = void 0;
|
|
22
11
|
const isNoValue = (value) => {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
}
|
|
26
|
-
return value === exports.NO_VALUE;
|
|
12
|
+
if (isRecord(value) && "withinRangeStart" in value && "withinRangeEnd" in value) return value.withinRangeStart === void 0 && value.withinRangeEnd === void 0;
|
|
13
|
+
return value === void 0;
|
|
27
14
|
};
|
|
28
|
-
exports.isNoValue = isNoValue;
|
|
29
15
|
const getCompareOperatorForDateTime = (id, title, operator, compareByStartInterval, isNegative) => ({
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
16
|
+
id,
|
|
17
|
+
title,
|
|
18
|
+
customMatch: (where, params, typeObject) => {
|
|
19
|
+
const { matchSuccess, matches: [fieldMatch, paramMatch] } = doPatternMatch(where, params, [
|
|
20
|
+
operator,
|
|
21
|
+
dateTimeOrDateTimeRangeExpressionPlaceholder,
|
|
22
|
+
getParamPlaceholder((x) => {
|
|
23
|
+
return isString(x) && Boolean(paramsPlaceholdersLookup[x]) || isString(x) && isDateTime(x) || Boolean(parseRelativeDatePlaceholder(x)) || isNoValue(x);
|
|
24
|
+
})
|
|
25
|
+
], typeObject);
|
|
26
|
+
if (matchSuccess) {
|
|
27
|
+
const paramValue = paramMatch.value;
|
|
28
|
+
const relativeDateInfo = parseRelativeDatePlaceholder(paramValue);
|
|
29
|
+
if (relativeDateInfo && relativeDateInfo.isStartOfInterval === compareByStartInterval) {
|
|
30
|
+
const value = toRelativeDatePlaceholder({
|
|
31
|
+
...relativeDateInfo,
|
|
32
|
+
isStartOfInterval: void 0
|
|
33
|
+
});
|
|
34
|
+
return {
|
|
35
|
+
matchSuccess,
|
|
36
|
+
expression: fieldMatch.value,
|
|
37
|
+
value
|
|
38
|
+
};
|
|
39
|
+
} else if (paramsPlaceholdersLookup[paramValue]) {
|
|
40
|
+
const value = findKey(dateToDateTimeIntervalLookup, (val) => compareByStartInterval ? val.start === paramValue : val.end === paramValue);
|
|
41
|
+
return {
|
|
42
|
+
matchSuccess,
|
|
43
|
+
expression: fieldMatch.value,
|
|
44
|
+
value
|
|
45
|
+
};
|
|
46
|
+
} else return {
|
|
47
|
+
matchSuccess,
|
|
48
|
+
expression: fieldMatch.value,
|
|
49
|
+
value: paramValue
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
return { matchSuccess: false };
|
|
53
|
+
},
|
|
54
|
+
customConvertToWhereExpression: (expression, value, getNextParamName) => {
|
|
55
|
+
const dateTimePlaceholders = dateToDateTimeIntervalLookup[value];
|
|
56
|
+
let relativeDateInfo = null;
|
|
57
|
+
if (dateTimePlaceholders) {
|
|
58
|
+
const { start, end } = dateTimePlaceholders;
|
|
59
|
+
const intervalParamName = compareByStartInterval ? start : end;
|
|
60
|
+
return {
|
|
61
|
+
expression: [
|
|
62
|
+
operator,
|
|
63
|
+
expression,
|
|
64
|
+
intervalParamName
|
|
65
|
+
],
|
|
66
|
+
params: { [intervalParamName]: intervalParamName }
|
|
67
|
+
};
|
|
68
|
+
} else if (relativeDateInfo = parseRelativeDatePlaceholder(value)) {
|
|
69
|
+
const paramName = toRelativeDatePlaceholder({
|
|
70
|
+
...relativeDateInfo,
|
|
71
|
+
isStartOfInterval: compareByStartInterval,
|
|
72
|
+
unitForStart: "day"
|
|
73
|
+
});
|
|
74
|
+
return {
|
|
75
|
+
expression: [
|
|
76
|
+
operator,
|
|
77
|
+
expression,
|
|
78
|
+
paramName
|
|
79
|
+
],
|
|
80
|
+
params: { [paramName]: paramName }
|
|
81
|
+
};
|
|
82
|
+
} else {
|
|
83
|
+
const dateParamName = getNextParamName();
|
|
84
|
+
return {
|
|
85
|
+
expression: [
|
|
86
|
+
operator,
|
|
87
|
+
expression,
|
|
88
|
+
dateParamName
|
|
89
|
+
],
|
|
90
|
+
params: { [dateParamName]: value }
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
},
|
|
94
|
+
type: ":operator-type/binary",
|
|
95
|
+
isNegative
|
|
104
96
|
});
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
}
|
|
97
|
+
const getWithinRangeParam = ({ withinRangeValue, getNextParamName }) => {
|
|
98
|
+
if (parseRelativeDatePlaceholder(withinRangeValue)) return {
|
|
99
|
+
key: withinRangeValue,
|
|
100
|
+
value: withinRangeValue
|
|
101
|
+
};
|
|
102
|
+
else return {
|
|
103
|
+
key: getNextParamName(),
|
|
104
|
+
value: withinRangeValue
|
|
105
|
+
};
|
|
115
106
|
};
|
|
116
107
|
const getWithinOperatorCustomConvertFn = (leftPartExcluded) => {
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
108
|
+
return (expression, value, getNextParamName) => {
|
|
109
|
+
const { key: startParamKey, value: startParamValue } = getWithinRangeParam({
|
|
110
|
+
withinRangeValue: value?.withinRangeStart,
|
|
111
|
+
getNextParamName
|
|
112
|
+
});
|
|
113
|
+
const { key: endParamKey, value: endParamValue } = getWithinRangeParam({
|
|
114
|
+
withinRangeValue: value?.withinRangeEnd,
|
|
115
|
+
getNextParamName
|
|
116
|
+
});
|
|
117
|
+
return {
|
|
118
|
+
expression: [
|
|
119
|
+
"and",
|
|
120
|
+
[
|
|
121
|
+
leftPartExcluded ? ">" : ">=",
|
|
122
|
+
expression,
|
|
123
|
+
startParamKey
|
|
124
|
+
],
|
|
125
|
+
[
|
|
126
|
+
"<=",
|
|
127
|
+
expression,
|
|
128
|
+
endParamKey
|
|
129
|
+
]
|
|
130
|
+
],
|
|
131
|
+
params: {
|
|
132
|
+
[startParamKey]: startParamValue,
|
|
133
|
+
[endParamKey]: endParamValue
|
|
134
|
+
}
|
|
135
|
+
};
|
|
136
|
+
};
|
|
135
137
|
};
|
|
136
|
-
exports.getWithinOperatorCustomConvertFn = getWithinOperatorCustomConvertFn;
|
|
137
138
|
const oldWithinPlaceholderToRelativeDateLookup = {
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
[params_placeholders_1.todayEndDateTimeParamPlaceholder]: "$end-of-day-0-day-before-now-date-time",
|
|
139
|
+
[weekAgoDateParamPlaceholder]: "$start-of-day-1-week-before-now-date",
|
|
140
|
+
[monthAgoDateParamPlaceholder]: "$start-of-day-1-month-before-now-date",
|
|
141
|
+
[yearAgoDateParamPlaceholder]: "$start-of-day-1-year-before-now-date",
|
|
142
|
+
[weekFromNowDateParamPlaceholder]: "$start-of-day-1-week-after-now-date",
|
|
143
|
+
[monthFromNowDateParamPlaceholder]: "$start-of-day-1-month-after-now-date",
|
|
144
|
+
[yearFromNowDateParamPlaceholder]: "$start-of-day-1-year-after-now-date",
|
|
145
|
+
[todayDateParamPlaceholder]: "$end-of-day-0-day-before-now-date",
|
|
146
|
+
[weekAgoStartDateTimeParamPlaceholder]: "$start-of-day-1-week-before-now-date-time",
|
|
147
|
+
[monthAgoStartDateTimeParamPlaceholder]: "$start-of-day-1-month-before-now-date-time",
|
|
148
|
+
[yearAgoStartDateTimeParamPlaceholder]: "$start-of-day-1-year-before-now-date-time",
|
|
149
|
+
[weekFromNowEndDateTimeParamPlaceholder]: "$start-of-day-1-week-after-now-date-time",
|
|
150
|
+
[monthFromNowEndDateTimeParamPlaceholder]: "$start-of-day-1-month-after-now-date-time",
|
|
151
|
+
[yearFromNowEndDateTimeParamPlaceholder]: "$start-of-day-1-year-after-now-date-time",
|
|
152
|
+
[todayEndDateTimeParamPlaceholder]: "$end-of-day-0-day-before-now-date-time"
|
|
153
153
|
};
|
|
154
154
|
const getWithinRangeValue = (paramMatchValue) => {
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
}
|
|
158
|
-
else {
|
|
159
|
-
return paramMatchValue;
|
|
160
|
-
}
|
|
155
|
+
if (Object.hasOwn(oldWithinPlaceholderToRelativeDateLookup, paramMatchValue)) return oldWithinPlaceholderToRelativeDateLookup[paramMatchValue];
|
|
156
|
+
else return paramMatchValue;
|
|
161
157
|
};
|
|
162
158
|
const matchWithinOperator = (pattern, where, params, typeObject) => {
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
}
|
|
178
|
-
return { matchSuccess: false };
|
|
159
|
+
const { matchSuccess, matches: [firstFieldMatch, firstParamMatch, secondFieldMatch, secondParamMatch] } = doPatternMatch(where, params, pattern, typeObject);
|
|
160
|
+
if (matchSuccess) {
|
|
161
|
+
const firstFieldValue = firstFieldMatch.value;
|
|
162
|
+
const secondFieldValue = secondFieldMatch.value;
|
|
163
|
+
if (isEqual(firstFieldValue, secondFieldValue)) return {
|
|
164
|
+
matchSuccess,
|
|
165
|
+
expression: firstFieldValue,
|
|
166
|
+
value: {
|
|
167
|
+
withinRangeStart: getWithinRangeValue(firstParamMatch.value),
|
|
168
|
+
withinRangeEnd: getWithinRangeValue(secondParamMatch.value)
|
|
169
|
+
}
|
|
170
|
+
};
|
|
171
|
+
}
|
|
172
|
+
return { matchSuccess: false };
|
|
179
173
|
};
|
|
180
174
|
const getWithinOperatorCustomMatchFn = (fieldPlaceholder, leftPartExcluded) => {
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
175
|
+
return (where, params, typeObject) => {
|
|
176
|
+
const match = matchWithinOperator([
|
|
177
|
+
"and",
|
|
178
|
+
[
|
|
179
|
+
">",
|
|
180
|
+
fieldPlaceholder,
|
|
181
|
+
getParamPlaceholder((x) => x !== null)
|
|
182
|
+
],
|
|
183
|
+
[
|
|
184
|
+
"<=",
|
|
185
|
+
fieldPlaceholder,
|
|
186
|
+
getParamPlaceholder((x) => x !== null)
|
|
187
|
+
]
|
|
188
|
+
], where, params, typeObject);
|
|
189
|
+
if (!match.matchSuccess && !leftPartExcluded) return matchWithinOperator([
|
|
190
|
+
"and",
|
|
191
|
+
[
|
|
192
|
+
">=",
|
|
193
|
+
fieldPlaceholder,
|
|
194
|
+
getParamPlaceholder((x) => x !== null)
|
|
195
|
+
],
|
|
196
|
+
[
|
|
197
|
+
"<=",
|
|
198
|
+
fieldPlaceholder,
|
|
199
|
+
getParamPlaceholder((x) => x !== null)
|
|
200
|
+
]
|
|
201
|
+
], where, params, typeObject);
|
|
202
|
+
return match;
|
|
203
|
+
};
|
|
198
204
|
};
|
|
199
|
-
|
|
200
|
-
|
|
205
|
+
//#endregion
|
|
206
|
+
export { NO_VALUE, getCompareOperatorForDateTime, getWithinOperatorCustomConvertFn, getWithinOperatorCustomMatchFn, isDateTime, isNoValue };
|
|
@@ -1,108 +1,113 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
export
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
1
|
+
import { Expression } from "../types.js";
|
|
2
|
+
import { Operator } from "./types.js";
|
|
3
|
+
declare namespace operators_d_exports {
|
|
4
|
+
export { hiddenValidOperators, operatorBoolIs, operatorCollectionContains, operatorCollectionContainsAnyOf, operatorCollectionContainsMe, operatorCollectionCountDoesNotEqual, operatorCollectionCountEquals, operatorCollectionCountGreaterThan, operatorCollectionCountGreaterThanOrEqual, operatorCollectionCountLessThan, operatorCollectionCountLessThanOrEqual, operatorCollectionDoesNotContain, operatorCollectionDoesNotContainAnyOf, operatorCollectionDoesNotContainMe, operatorCollectionIsEmpty, operatorCollectionIsNotEmpty, operatorDateIs, operatorDateIsAfter, operatorDateIsBefore, operatorDateIsEmptyV1, operatorDateIsEmptyV2, operatorDateIsNotEmptyV1, operatorDateIsNotEmptyV2, operatorDateIsOnOrAfter, operatorDateIsOnOrBefore, operatorDateIsWithin, operatorDateTimeIs, operatorDateTimeIsAfter, operatorDateTimeIsBefore, operatorDateTimeIsOnOrAfter, operatorDateTimeIsOnOrBefore, operatorDateTimeIsWithin, operatorGreaterThan, operatorGreaterThanOrEqual, operatorLessThan, operatorLessThanOrEqual, operatorLocationContains, operatorLocationDoesNotContain, operatorLocationIsEmpty, operatorLocationIsNotEmpty, operatorNumberDoesNotEqual, operatorNumberEquals, operatorNumberIsEmptyV1, operatorNumberIsEmptyV2, operatorNumberIsNotEmptyV1, operatorNumberIsNotEmptyV2, operatorReferenceIs, operatorReferenceIsAnyOf, operatorReferenceIsEmpty, operatorReferenceIsMe, operatorReferenceIsNoneOf, operatorReferenceIsNot, operatorReferenceIsNotEmpty, operatorReferenceIsNotMe, operatorTextContains, operatorTextDoesNotContain, operatorTextEndsWith, operatorTextExactlyIs, operatorTextIs, operatorTextIsEmptyV1, operatorTextIsEmptyV2, operatorTextIsNot, operatorTextIsNotEmptyV1, operatorTextIsNotEmptyV2, operatorTextStartsWith, operatorUserRoleIsAnyOf, operators, operatorsGroups, operatorsGroupsWithoutMe, withoutLastIdAccess };
|
|
5
|
+
}
|
|
6
|
+
declare const operatorReferenceIsMe: Operator;
|
|
7
|
+
declare const operatorReferenceIsNotMe: Operator;
|
|
8
|
+
declare const operatorReferenceIs: Operator;
|
|
9
|
+
declare const operatorReferenceIsAnyOf: Operator;
|
|
10
|
+
declare const operatorReferenceIsNot: Operator;
|
|
11
|
+
declare const operatorReferenceIsNoneOf: Operator;
|
|
12
|
+
declare const operatorReferenceIsEmpty: Operator;
|
|
13
|
+
declare const operatorReferenceIsNotEmpty: Operator;
|
|
14
|
+
declare const operatorUserRoleIsAnyOf: Operator;
|
|
15
|
+
declare const operatorTextIs: Operator;
|
|
16
|
+
declare const operatorTextExactlyIs: Operator;
|
|
17
|
+
declare const operatorTextIsNot: Operator;
|
|
18
|
+
declare const operatorTextContains: Operator;
|
|
19
|
+
declare const operatorTextDoesNotContain: Operator;
|
|
20
|
+
declare const operatorTextStartsWith: Operator;
|
|
21
|
+
declare const operatorTextEndsWith: Operator;
|
|
22
|
+
declare const operatorNumberEquals: Operator;
|
|
23
|
+
declare const operatorNumberDoesNotEqual: Operator;
|
|
24
|
+
declare const operatorGreaterThan: Operator;
|
|
25
|
+
declare const operatorLessThan: Operator;
|
|
26
|
+
declare const operatorGreaterThanOrEqual: Operator;
|
|
27
|
+
declare const operatorLessThanOrEqual: Operator;
|
|
28
|
+
declare const operatorCollectionCountEquals: Operator;
|
|
29
|
+
declare const operatorCollectionCountDoesNotEqual: Operator;
|
|
30
|
+
declare const operatorCollectionCountGreaterThan: Operator;
|
|
31
|
+
declare const operatorCollectionCountLessThan: Operator;
|
|
32
|
+
declare const operatorCollectionCountGreaterThanOrEqual: Operator;
|
|
33
|
+
declare const operatorCollectionCountLessThanOrEqual: Operator;
|
|
34
|
+
declare const operatorNumberIsEmptyV1: Operator;
|
|
35
|
+
declare const operatorNumberIsEmptyV2: Operator;
|
|
36
|
+
declare const operatorNumberIsNotEmptyV1: Operator;
|
|
37
|
+
declare const operatorNumberIsNotEmptyV2: Operator;
|
|
38
|
+
declare const operatorTextIsEmptyV1: Operator;
|
|
39
|
+
declare const operatorTextIsEmptyV2: Operator;
|
|
40
|
+
declare const operatorTextIsNotEmptyV1: Operator;
|
|
41
|
+
declare const operatorTextIsNotEmptyV2: Operator;
|
|
42
|
+
declare const operatorLocationContains: Operator;
|
|
43
|
+
declare const operatorLocationDoesNotContain: Operator;
|
|
44
|
+
declare const operatorLocationIsEmpty: Operator;
|
|
45
|
+
declare const operatorLocationIsNotEmpty: Operator;
|
|
46
|
+
declare const operatorCollectionContains: Operator;
|
|
47
|
+
declare const operatorCollectionContainsMe: Operator;
|
|
48
|
+
declare const withoutLastIdAccess: (expression: Expression) => Expression;
|
|
49
|
+
declare const operatorCollectionContainsAnyOf: Operator;
|
|
50
|
+
declare const operatorCollectionDoesNotContain: Operator;
|
|
51
|
+
declare const operatorCollectionDoesNotContainMe: Operator;
|
|
52
|
+
declare const operatorCollectionDoesNotContainAnyOf: Operator;
|
|
53
|
+
declare const operatorCollectionIsEmpty: Operator;
|
|
54
|
+
declare const operatorCollectionIsNotEmpty: Operator;
|
|
55
|
+
declare const operatorBoolIs: Operator;
|
|
56
|
+
declare const operatorDateIs: Operator;
|
|
57
|
+
declare const operatorDateIsEmptyV1: Operator;
|
|
58
|
+
declare const operatorDateIsEmptyV2: Operator;
|
|
59
|
+
declare const operatorDateIsNotEmptyV1: Operator;
|
|
60
|
+
declare const operatorDateIsNotEmptyV2: Operator;
|
|
61
|
+
declare const operatorDateIsWithin: Operator;
|
|
62
|
+
declare const operatorDateIsBefore: Operator;
|
|
63
|
+
declare const operatorDateIsOnOrBefore: Operator;
|
|
64
|
+
declare const operatorDateIsAfter: Operator;
|
|
65
|
+
declare const operatorDateIsOnOrAfter: Operator;
|
|
66
|
+
declare const operatorDateTimeIs: Operator;
|
|
67
|
+
declare const operatorDateTimeIsWithin: Operator;
|
|
68
|
+
declare const operatorDateTimeIsBefore: Operator;
|
|
69
|
+
declare const operatorDateTimeIsAfter: Operator;
|
|
70
|
+
declare const operatorDateTimeIsOnOrBefore: Operator;
|
|
71
|
+
declare const operatorDateTimeIsOnOrAfter: Operator;
|
|
72
|
+
declare const operatorsGroupsWithoutMe: {
|
|
73
|
+
":filter-type/comment-reference-collection": Operator[];
|
|
74
|
+
":filter-type/file-reference": Operator[];
|
|
75
|
+
":filter-type/file-reference-collection": Operator[];
|
|
76
|
+
":filter-type/reference": Operator[];
|
|
77
|
+
":filter-type/user-reference": Operator[];
|
|
78
|
+
":filter-type/single-select": Operator[];
|
|
79
|
+
":filter-type/multi-select": Operator[];
|
|
80
|
+
":filter-type/reference-collection": Operator[];
|
|
81
|
+
":filter-type/user-reference-collection": Operator[];
|
|
82
|
+
":filter-type/text": Operator[];
|
|
83
|
+
":filter-type/number": Operator[];
|
|
84
|
+
":filter-type/bool": Operator[];
|
|
85
|
+
":filter-type/date": Operator[];
|
|
86
|
+
":filter-type/date-time": Operator[];
|
|
87
|
+
":filter-type/location": Operator[];
|
|
88
|
+
":filter-type/user-role": Operator[];
|
|
89
|
+
":filter-type/collection-count": Operator[];
|
|
87
90
|
};
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
91
|
+
declare const operatorsGroups: {
|
|
92
|
+
":filter-type/comment-reference-collection": Operator[];
|
|
93
|
+
":filter-type/file-reference": Operator[];
|
|
94
|
+
":filter-type/file-reference-collection": Operator[];
|
|
95
|
+
":filter-type/reference": Operator[];
|
|
96
|
+
":filter-type/user-reference": Operator[];
|
|
97
|
+
":filter-type/single-select": Operator[];
|
|
98
|
+
":filter-type/multi-select": Operator[];
|
|
99
|
+
":filter-type/reference-collection": Operator[];
|
|
100
|
+
":filter-type/user-reference-collection": Operator[];
|
|
101
|
+
":filter-type/text": Operator[];
|
|
102
|
+
":filter-type/number": Operator[];
|
|
103
|
+
":filter-type/bool": Operator[];
|
|
104
|
+
":filter-type/date": Operator[];
|
|
105
|
+
":filter-type/date-time": Operator[];
|
|
106
|
+
":filter-type/location": Operator[];
|
|
107
|
+
":filter-type/user-role": Operator[];
|
|
108
|
+
":filter-type/collection-count": Operator[];
|
|
106
109
|
};
|
|
107
|
-
|
|
108
|
-
|
|
110
|
+
declare const operators: Operator[];
|
|
111
|
+
declare const hiddenValidOperators: Operator[];
|
|
112
|
+
//#endregion
|
|
113
|
+
export { hiddenValidOperators, operatorBoolIs, operatorCollectionContains, operatorCollectionContainsAnyOf, operatorCollectionContainsMe, operatorCollectionCountDoesNotEqual, operatorCollectionCountEquals, operatorCollectionCountGreaterThan, operatorCollectionCountGreaterThanOrEqual, operatorCollectionCountLessThan, operatorCollectionCountLessThanOrEqual, operatorCollectionDoesNotContain, operatorCollectionDoesNotContainAnyOf, operatorCollectionDoesNotContainMe, operatorCollectionIsEmpty, operatorCollectionIsNotEmpty, operatorDateIs, operatorDateIsAfter, operatorDateIsBefore, operatorDateIsEmptyV1, operatorDateIsEmptyV2, operatorDateIsNotEmptyV1, operatorDateIsNotEmptyV2, operatorDateIsOnOrAfter, operatorDateIsOnOrBefore, operatorDateIsWithin, operatorDateTimeIs, operatorDateTimeIsAfter, operatorDateTimeIsBefore, operatorDateTimeIsOnOrAfter, operatorDateTimeIsOnOrBefore, operatorDateTimeIsWithin, operatorGreaterThan, operatorGreaterThanOrEqual, operatorLessThan, operatorLessThanOrEqual, operatorLocationContains, operatorLocationDoesNotContain, operatorLocationIsEmpty, operatorLocationIsNotEmpty, operatorNumberDoesNotEqual, operatorNumberEquals, operatorNumberIsEmptyV1, operatorNumberIsEmptyV2, operatorNumberIsNotEmptyV1, operatorNumberIsNotEmptyV2, operatorReferenceIs, operatorReferenceIsAnyOf, operatorReferenceIsEmpty, operatorReferenceIsMe, operatorReferenceIsNoneOf, operatorReferenceIsNot, operatorReferenceIsNotEmpty, operatorReferenceIsNotMe, operatorTextContains, operatorTextDoesNotContain, operatorTextEndsWith, operatorTextExactlyIs, operatorTextIs, operatorTextIsEmptyV1, operatorTextIsEmptyV2, operatorTextIsNot, operatorTextIsNotEmptyV1, operatorTextIsNotEmptyV2, operatorTextStartsWith, operatorUserRoleIsAnyOf, operators, operatorsGroups, operatorsGroupsWithoutMe, operators_d_exports, withoutLastIdAccess };
|