@creatio/base 0.813.0 → 0.815.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/CHANGELOG.md +4 -0
- package/esm2020/lib/internal/enums/index.mjs +2 -1
- package/esm2020/lib/internal/enums/platform-apis.enum.mjs +12 -0
- package/esm2020/lib/internal/model/data-source-config.mjs +1 -1
- package/esm2020/lib/public/enums/aggregation-function.enum.mjs +26 -8
- package/esm2020/lib/public/enums/aggregation-type.enum.mjs +26 -8
- package/esm2020/lib/public/enums/data-schema-type.enum.mjs +13 -2
- package/esm2020/lib/public/enums/data-value-type.enum.mjs +123 -1
- package/esm2020/lib/public/enums/index.mjs +2 -1
- package/esm2020/lib/public/enums/message-channel-type.enum.mjs +11 -0
- package/esm2020/lib/public/esq/data-model/columns/arithmetic/arithmetic-query-column.mjs +6 -1
- package/esm2020/lib/public/esq/data-model/columns/base-query-column.mjs +15 -1
- package/esm2020/lib/public/esq/data-model/columns/entity-column/entity-query-column.mjs +6 -1
- package/esm2020/lib/public/esq/data-model/columns/functions/aggregation-function-column.mjs +6 -1
- package/esm2020/lib/public/esq/data-model/columns/functions/date-part-function-column.mjs +9 -1
- package/esm2020/lib/public/esq/data-model/columns/functions/length-function-column.mjs +6 -1
- package/esm2020/lib/public/esq/data-model/columns/functions/macros-function-column.mjs +6 -1
- package/esm2020/lib/public/esq/data-model/columns/functions/window-function-column.mjs +6 -1
- package/esm2020/lib/public/esq/data-model/columns/parameters/parameter-query-column.mjs +6 -1
- package/esm2020/lib/public/esq/data-model/columns/query-column-test-utils.mjs +7 -1
- package/esm2020/lib/public/esq/data-model/columns/sub-queries/aggregation-sub-query-column.mjs +6 -1
- package/esm2020/lib/public/esq/data-model/columns/sub-queries/sub-query-column.mjs +6 -1
- package/esm2020/lib/public/esq/data-model/enums/admin-unit-role-sources.enum.mjs +40 -0
- package/esm2020/lib/public/esq/data-model/enums/aggregation-eval-type.enum.mjs +14 -4
- package/esm2020/lib/public/esq/data-model/enums/arithmetic-operation.enum.mjs +17 -5
- package/esm2020/lib/public/esq/data-model/enums/comparison-type.enum.mjs +73 -1
- package/esm2020/lib/public/esq/data-model/enums/date-part-type.enum.mjs +29 -9
- package/esm2020/lib/public/esq/data-model/enums/expression-type.enum.mjs +20 -1
- package/esm2020/lib/public/esq/data-model/enums/filter-type.enum.mjs +33 -1
- package/esm2020/lib/public/esq/data-model/enums/function-type.enum.mjs +29 -8
- package/esm2020/lib/public/esq/data-model/enums/index.mjs +2 -2
- package/esm2020/lib/public/esq/data-model/enums/logical-operator-type.enum.mjs +11 -1
- package/esm2020/lib/public/esq/data-model/enums/order-direction.enum.mjs +14 -1
- package/esm2020/lib/public/esq/data-model/enums/query-macros-type.enum.mjs +113 -37
- package/esm2020/lib/public/esq/data-model/expressions/arithmetic/arithmetic-expression.mjs +13 -1
- package/esm2020/lib/public/esq/data-model/expressions/base-expression.mjs +22 -3
- package/esm2020/lib/public/esq/data-model/expressions/columns/column-expression.mjs +13 -1
- package/esm2020/lib/public/esq/data-model/expressions/expression-parser/base-expression-parser.mjs +9 -2
- package/esm2020/lib/public/esq/data-model/expressions/expression-parser/expression-parser.mjs +4 -3
- package/esm2020/lib/public/esq/data-model/expressions/expression-parser/expression-resolver.mjs +10 -3
- package/esm2020/lib/public/esq/data-model/expressions/functions/aggregation-function-expression.mjs +10 -1
- package/esm2020/lib/public/esq/data-model/expressions/functions/argument-function-expression.mjs +9 -2
- package/esm2020/lib/public/esq/data-model/expressions/functions/date-part-function-expression.mjs +10 -1
- package/esm2020/lib/public/esq/data-model/expressions/functions/function-expression.mjs +10 -1
- package/esm2020/lib/public/esq/data-model/expressions/functions/length-function-expression.mjs +12 -1
- package/esm2020/lib/public/esq/data-model/expressions/functions/macros-function-expression.mjs +12 -1
- package/esm2020/lib/public/esq/data-model/expressions/functions/window-function-expression.mjs +10 -1
- package/esm2020/lib/public/esq/data-model/expressions/mocks/expression.mock.mjs +4 -1
- package/esm2020/lib/public/esq/data-model/expressions/parameters/parameter-expression.mjs +12 -1
- package/esm2020/lib/public/esq/data-model/expressions/sub-queries/aggregation-sub-query-expression.mjs +7 -1
- package/esm2020/lib/public/esq/data-model/expressions/sub-queries/sub-query-expression.mjs +11 -1
- package/esm2020/lib/public/esq/data-model/filters/base-filter.mjs +19 -1
- package/esm2020/lib/public/esq/data-model/filters/between-filter.mjs +8 -3
- package/esm2020/lib/public/esq/data-model/filters/compare-filter.mjs +7 -2
- package/esm2020/lib/public/esq/data-model/filters/exists-filter.mjs +16 -2
- package/esm2020/lib/public/esq/data-model/filters/filter-group.mjs +59 -12
- package/esm2020/lib/public/esq/data-model/filters/filter-parser/base-filter-parser.mjs +7 -2
- package/esm2020/lib/public/esq/data-model/filters/filter-parser/filter-parser.mjs +6 -2
- package/esm2020/lib/public/esq/data-model/filters/filter-parser/filter-resolver.mjs +8 -2
- package/esm2020/lib/public/esq/data-model/filters/filter-test-utils.mjs +7 -1
- package/esm2020/lib/public/esq/data-model/filters/in-filter.mjs +10 -3
- package/esm2020/lib/public/esq/data-model/filters/isnull-filter.mjs +11 -2
- package/esm2020/lib/public/esq/data-model/filters/mocks/parser.mock.mjs +4 -1
- package/esm2020/lib/public/esq/data-model/filters/single-filter.mjs +8 -2
- package/esm2020/lib/public/esq/data-model/metadata-provider/metadata-provider.mjs +1 -1
- package/esm2020/lib/public/esq/data-model/queries/base-filterable-query.mjs +11 -1
- package/esm2020/lib/public/esq/data-model/queries/base-query.mjs +3 -1
- package/esm2020/lib/public/esq/data-model/queries/delete-query.mjs +3 -1
- package/esm2020/lib/public/esq/data-model/queries/entity-schema-query.mjs +41 -19
- package/esm2020/lib/public/esq/data-model/queries/insert-query.mjs +14 -2
- package/esm2020/lib/public/esq/data-model/queries/query-operation-type.mjs +14 -1
- package/esm2020/lib/public/esq/data-model/queries/select-localization-query.mjs +3 -1
- package/esm2020/lib/public/esq/data-model/queries/update-query.mjs +16 -3
- package/esm2020/lib/public/exceptions/argument-empty-exception.mjs +6 -1
- package/esm2020/lib/public/exceptions/argument-out-of-range-exception.mjs +6 -1
- package/esm2020/lib/public/exceptions/item-not-found-exception.mjs +6 -1
- package/esm2020/lib/public/exceptions/next-handler-already-specified-exception.mjs +2 -1
- package/esm2020/lib/public/exceptions/validation-utilities.mjs +35 -1
- package/esm2020/lib/public/interfaces/serializable.mjs +1 -1
- package/esm2020/lib/public/models/data-source/data-source-insert-result.model.mjs +1 -1
- package/esm2020/lib/public/models/index.mjs +2 -1
- package/esm2020/lib/public/models/lookup-value.model.mjs +1 -1
- package/esm2020/lib/public/models/message-channel-event.mjs +2 -0
- package/esm2020/lib/public/models/request/base-request.mjs +2 -3
- package/esm2020/lib/public/models/request/request-registration-config.model.mjs +1 -1
- package/esm2020/lib/public/models/view-model-context.mjs +1 -1
- package/esm2020/lib/public/services/mask-service/schema-view-mask.request.mjs +10 -1
- package/esm2020/lib/public/services/model/base-model.mjs +1 -1
- package/esm2020/lib/public/services/model/data-schema-attribute.mjs +1 -1
- package/esm2020/lib/public/services/model/data-schema.mjs +1 -1
- package/esm2020/lib/public/services/model/data-source-aggregation-config.mjs +1 -1
- package/esm2020/lib/public/services/model/data-source-attribute.mjs +1 -1
- package/esm2020/lib/public/services/model/data-source-can-execute-operation.mjs +1 -1
- package/esm2020/lib/public/services/model/data-source-function-config.mjs +1 -1
- package/esm2020/lib/public/services/model/data-source-paging-config.mjs +1 -1
- package/esm2020/lib/public/services/model/data-source-parameter.mjs +27 -1
- package/esm2020/lib/public/services/model/data-source-sorting-config.mjs +1 -1
- package/esm2020/lib/public/services/model/model-load-options.mjs +1 -1
- package/esm2020/lib/public/services/sys-settings/base-sys-settings.service.mjs +1 -1
- package/esm2020/lib/public/types/aggregation-eval.type.mjs +1 -1
- package/esm2020/lib/public/types/entity-column-value.mjs +1 -1
- package/esm2020/lib/public/types/guid.type.mjs +7 -7
- package/esm2020/lib/public/types/index.mjs +2 -1
- package/esm2020/lib/public/types/json-data.type.mjs +1 -1
- package/esm2020/lib/public/types/teardown-logic.type.mjs +2 -0
- package/fesm2015/creatio-base.mjs +1175 -136
- package/fesm2015/creatio-base.mjs.map +1 -1
- package/fesm2020/creatio-base.mjs +1175 -137
- package/fesm2020/creatio-base.mjs.map +1 -1
- package/index.d.ts +1710 -143
- package/package.json +3 -2
|
@@ -82,97 +82,278 @@ var LookupMode;
|
|
|
82
82
|
LookupMode["SelectionWindow"] = "SelectionWindow";
|
|
83
83
|
})(LookupMode || (LookupMode = {}));
|
|
84
84
|
|
|
85
|
+
/**
|
|
86
|
+
* Available platform APIs
|
|
87
|
+
*/
|
|
88
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
89
|
+
var ɵPlatformAPIs;
|
|
90
|
+
(function (ɵPlatformAPIs) {
|
|
91
|
+
/**
|
|
92
|
+
* Selection metadata API.
|
|
93
|
+
*/
|
|
94
|
+
ɵPlatformAPIs["Selection"] = "selection";
|
|
95
|
+
})(ɵPlatformAPIs || (ɵPlatformAPIs = {}));
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* @public
|
|
99
|
+
* Types of values.
|
|
100
|
+
*/
|
|
85
101
|
var ɵDataValueType;
|
|
86
102
|
(function (ɵDataValueType) {
|
|
103
|
+
/**
|
|
104
|
+
* @description Global unique identifier.
|
|
105
|
+
*/
|
|
87
106
|
ɵDataValueType[ɵDataValueType["Guid"] = 0] = "Guid";
|
|
107
|
+
/**
|
|
108
|
+
* @description String.
|
|
109
|
+
*/
|
|
88
110
|
ɵDataValueType[ɵDataValueType["Text"] = 1] = "Text";
|
|
111
|
+
/**
|
|
112
|
+
* @description Integer.
|
|
113
|
+
*/
|
|
89
114
|
ɵDataValueType[ɵDataValueType["Integer"] = 4] = "Integer";
|
|
115
|
+
/**
|
|
116
|
+
* @description Real number.
|
|
117
|
+
*/
|
|
90
118
|
ɵDataValueType[ɵDataValueType["Float"] = 5] = "Float";
|
|
119
|
+
/**
|
|
120
|
+
* @description Currency.
|
|
121
|
+
*/
|
|
91
122
|
ɵDataValueType[ɵDataValueType["Money"] = 6] = "Money";
|
|
123
|
+
/**
|
|
124
|
+
* @description Date and time.
|
|
125
|
+
*/
|
|
92
126
|
ɵDataValueType[ɵDataValueType["DateTime"] = 7] = "DateTime";
|
|
127
|
+
/**
|
|
128
|
+
* @description Date.
|
|
129
|
+
*/
|
|
93
130
|
ɵDataValueType[ɵDataValueType["Date"] = 8] = "Date";
|
|
131
|
+
/**
|
|
132
|
+
* @description Time.
|
|
133
|
+
*/
|
|
94
134
|
ɵDataValueType[ɵDataValueType["Time"] = 9] = "Time";
|
|
135
|
+
/**
|
|
136
|
+
* @description Lookup.
|
|
137
|
+
*/
|
|
95
138
|
ɵDataValueType[ɵDataValueType["Lookup"] = 10] = "Lookup";
|
|
139
|
+
/**
|
|
140
|
+
* @description Enumeration.
|
|
141
|
+
*/
|
|
96
142
|
ɵDataValueType[ɵDataValueType["Enum"] = 11] = "Enum";
|
|
143
|
+
/**
|
|
144
|
+
* @description Boolean.
|
|
145
|
+
*/
|
|
97
146
|
ɵDataValueType[ɵDataValueType["Boolean"] = 12] = "Boolean";
|
|
147
|
+
/**
|
|
148
|
+
* @description Binary data object.
|
|
149
|
+
*/
|
|
98
150
|
ɵDataValueType[ɵDataValueType["Blob"] = 13] = "Blob";
|
|
151
|
+
/**
|
|
152
|
+
* @description The object of image binary data.
|
|
153
|
+
*/
|
|
99
154
|
ɵDataValueType[ɵDataValueType["Image"] = 14] = "Image";
|
|
155
|
+
/**
|
|
156
|
+
* @description Custom object.
|
|
157
|
+
*/
|
|
100
158
|
ɵDataValueType[ɵDataValueType["CUSTOM_OBJECT"] = 15] = "CUSTOM_OBJECT";
|
|
159
|
+
/**
|
|
160
|
+
* @description Image from a lookup.
|
|
161
|
+
*/
|
|
101
162
|
ɵDataValueType[ɵDataValueType["IMAGELOOKUP"] = 16] = "IMAGELOOKUP";
|
|
163
|
+
/**
|
|
164
|
+
* @description Collection of items.
|
|
165
|
+
*/
|
|
102
166
|
ɵDataValueType[ɵDataValueType["COLLECTION"] = 17] = "COLLECTION";
|
|
167
|
+
/**
|
|
168
|
+
* @description Color.
|
|
169
|
+
*/
|
|
103
170
|
ɵDataValueType[ɵDataValueType["Color"] = 18] = "Color";
|
|
171
|
+
/**
|
|
172
|
+
* @description Localized string.
|
|
173
|
+
*/
|
|
104
174
|
ɵDataValueType[ɵDataValueType["LOCALIZABLE_STRING"] = 19] = "LOCALIZABLE_STRING";
|
|
175
|
+
/**
|
|
176
|
+
* @description Object (Entity).
|
|
177
|
+
*/
|
|
105
178
|
ɵDataValueType[ɵDataValueType["ENTITY"] = 20] = "ENTITY";
|
|
179
|
+
/**
|
|
180
|
+
* @description Collection of objects (EntityCollection).
|
|
181
|
+
*/
|
|
106
182
|
ɵDataValueType[ɵDataValueType["ENTITY_COLLECTION"] = 21] = "ENTITY_COLLECTION";
|
|
183
|
+
/**
|
|
184
|
+
* @description List of object column values (EntityColumnMappingCollection).
|
|
185
|
+
*/
|
|
107
186
|
ɵDataValueType[ɵDataValueType["ENTITY_COLUMN_MAPPING_COLLECTION"] = 22] = "ENTITY_COLUMN_MAPPING_COLLECTION";
|
|
187
|
+
/**
|
|
188
|
+
* @description Hash string.
|
|
189
|
+
*/
|
|
108
190
|
ɵDataValueType[ɵDataValueType["HASH_TEXT"] = 23] = "HASH_TEXT";
|
|
191
|
+
/**
|
|
192
|
+
* @description Encrypted string.
|
|
193
|
+
*/
|
|
109
194
|
ɵDataValueType[ɵDataValueType["SECURE_TEXT"] = 24] = "SECURE_TEXT";
|
|
195
|
+
/**
|
|
196
|
+
* @description File.
|
|
197
|
+
*/
|
|
110
198
|
ɵDataValueType[ɵDataValueType["FILE"] = 25] = "FILE";
|
|
199
|
+
/**
|
|
200
|
+
* @description Mapping.
|
|
201
|
+
*/
|
|
111
202
|
ɵDataValueType[ɵDataValueType["MAPPING"] = 26] = "MAPPING";
|
|
203
|
+
/**
|
|
204
|
+
* @description Short length text.
|
|
205
|
+
*/
|
|
112
206
|
ɵDataValueType[ɵDataValueType["SHORT_TEXT"] = 27] = "SHORT_TEXT";
|
|
207
|
+
/**
|
|
208
|
+
* @description Medium length text.
|
|
209
|
+
*/
|
|
113
210
|
ɵDataValueType[ɵDataValueType["MEDIUM_TEXT"] = 28] = "MEDIUM_TEXT";
|
|
211
|
+
/**
|
|
212
|
+
* @description Unlimited length text.
|
|
213
|
+
*/
|
|
114
214
|
ɵDataValueType[ɵDataValueType["MAXSIZE_TEXT"] = 29] = "MAXSIZE_TEXT";
|
|
215
|
+
/**
|
|
216
|
+
* @description Long length text.
|
|
217
|
+
*/
|
|
115
218
|
ɵDataValueType[ɵDataValueType["LONG_TEXT"] = 30] = "LONG_TEXT";
|
|
116
219
|
ɵDataValueType[ɵDataValueType["FLOAT1"] = 31] = "FLOAT1";
|
|
117
220
|
ɵDataValueType[ɵDataValueType["FLOAT2"] = 32] = "FLOAT2";
|
|
118
221
|
ɵDataValueType[ɵDataValueType["FLOAT3"] = 33] = "FLOAT3";
|
|
119
222
|
ɵDataValueType[ɵDataValueType["FLOAT4"] = 34] = "FLOAT4";
|
|
223
|
+
/**
|
|
224
|
+
* @description Localizable parameter values list.
|
|
225
|
+
*/
|
|
120
226
|
ɵDataValueType[ɵDataValueType["LOCALIZABLE_PARAMETER_VALUES_LIST"] = 35] = "LOCALIZABLE_PARAMETER_VALUES_LIST";
|
|
227
|
+
/**
|
|
228
|
+
* @description Process not localizable text.
|
|
229
|
+
*/
|
|
121
230
|
ɵDataValueType[ɵDataValueType["METADATA_TEXT"] = 36] = "METADATA_TEXT";
|
|
231
|
+
/**
|
|
232
|
+
* @description Stage indicator.
|
|
233
|
+
*/
|
|
122
234
|
ɵDataValueType[ɵDataValueType["STAGE_INDICATOR"] = 37] = "STAGE_INDICATOR";
|
|
235
|
+
/**
|
|
236
|
+
* @description Serializable list of values.
|
|
237
|
+
*/
|
|
123
238
|
ɵDataValueType[ɵDataValueType["OBJECT_LIST"] = 38] = "OBJECT_LIST";
|
|
239
|
+
/**
|
|
240
|
+
* @description Serializable list of composite values.
|
|
241
|
+
*/
|
|
124
242
|
ɵDataValueType[ɵDataValueType["COMPOSITE_OBJECT_LIST"] = 39] = "COMPOSITE_OBJECT_LIST";
|
|
125
243
|
ɵDataValueType[ɵDataValueType["FLOAT8"] = 40] = "FLOAT8";
|
|
244
|
+
/**
|
|
245
|
+
* @description File.
|
|
246
|
+
*/
|
|
126
247
|
ɵDataValueType[ɵDataValueType["FILE_LOCATOR"] = 41] = "FILE_LOCATOR";
|
|
248
|
+
/**
|
|
249
|
+
* @description Phone.
|
|
250
|
+
*/
|
|
127
251
|
ɵDataValueType[ɵDataValueType["PHONE_TEXT"] = 42] = "PHONE_TEXT";
|
|
252
|
+
/**
|
|
253
|
+
* @description Text with formating tags.
|
|
254
|
+
*/
|
|
128
255
|
ɵDataValueType[ɵDataValueType["RICH_TEXT"] = 43] = "RICH_TEXT";
|
|
256
|
+
/**
|
|
257
|
+
* @description Web link.
|
|
258
|
+
*/
|
|
129
259
|
ɵDataValueType[ɵDataValueType["WEB_TEXT"] = 44] = "WEB_TEXT";
|
|
260
|
+
/**
|
|
261
|
+
* @description Email.
|
|
262
|
+
*/
|
|
130
263
|
ɵDataValueType[ɵDataValueType["EMAIL_TEXT"] = 45] = "EMAIL_TEXT";
|
|
264
|
+
ɵDataValueType[ɵDataValueType["COMPOSITE_OBJECT"] = 46] = "COMPOSITE_OBJECT";
|
|
131
265
|
})(ɵDataValueType || (ɵDataValueType = {}));
|
|
132
266
|
|
|
267
|
+
/**
|
|
268
|
+
* @public
|
|
269
|
+
* The type of the aggregation (can be set to None).
|
|
270
|
+
*/
|
|
133
271
|
var ɵAggregationType;
|
|
134
272
|
(function (ɵAggregationType) {
|
|
135
|
-
/**
|
|
273
|
+
/**
|
|
274
|
+
* @description Aggregation function type not defined.
|
|
275
|
+
*/
|
|
136
276
|
ɵAggregationType[ɵAggregationType["None"] = 0] = "None";
|
|
137
|
-
/**
|
|
277
|
+
/**
|
|
278
|
+
* @description Aggregation function type not defined.
|
|
279
|
+
*/
|
|
138
280
|
ɵAggregationType[ɵAggregationType["Count"] = 1] = "Count";
|
|
139
|
-
/**
|
|
281
|
+
/**
|
|
282
|
+
* @description Sum of values of all elements.
|
|
283
|
+
*/
|
|
140
284
|
ɵAggregationType[ɵAggregationType["Sum"] = 2] = "Sum";
|
|
141
|
-
/**
|
|
285
|
+
/**
|
|
286
|
+
* @description Average value for all elements.
|
|
287
|
+
*/
|
|
142
288
|
ɵAggregationType[ɵAggregationType["Avg"] = 3] = "Avg";
|
|
143
|
-
/**
|
|
289
|
+
/**
|
|
290
|
+
* @description The minimum value among all elements.
|
|
291
|
+
*/
|
|
144
292
|
ɵAggregationType[ɵAggregationType["Min"] = 4] = "Min";
|
|
145
|
-
/**
|
|
293
|
+
/**
|
|
294
|
+
* @description The maximum value among all elements.
|
|
295
|
+
*/
|
|
146
296
|
ɵAggregationType[ɵAggregationType["Max"] = 5] = "Max";
|
|
147
|
-
/**
|
|
297
|
+
/**
|
|
298
|
+
* @description Top one record from collection.
|
|
299
|
+
*/
|
|
148
300
|
ɵAggregationType[ɵAggregationType["TopOne"] = 6] = "TopOne";
|
|
149
301
|
})(ɵAggregationType || (ɵAggregationType = {}));
|
|
150
302
|
|
|
303
|
+
/**
|
|
304
|
+
* @public
|
|
305
|
+
* The type of the aggregation function (can be set to None).
|
|
306
|
+
*/
|
|
151
307
|
var ɵAggregationFunction;
|
|
152
308
|
(function (ɵAggregationFunction) {
|
|
153
|
-
/**
|
|
309
|
+
/**
|
|
310
|
+
* @description Aggregation function type not defined.
|
|
311
|
+
*/
|
|
154
312
|
ɵAggregationFunction["None"] = "";
|
|
155
|
-
/**
|
|
313
|
+
/**
|
|
314
|
+
* @description Aggregation function type not defined.
|
|
315
|
+
*/
|
|
156
316
|
ɵAggregationFunction["Count"] = "Count";
|
|
157
|
-
/**
|
|
317
|
+
/**
|
|
318
|
+
* @description Sum of values of all elements.
|
|
319
|
+
*/
|
|
158
320
|
ɵAggregationFunction["Sum"] = "Sum";
|
|
159
|
-
/**
|
|
321
|
+
/**
|
|
322
|
+
* @description Average value for all elements.
|
|
323
|
+
*/
|
|
160
324
|
ɵAggregationFunction["Avg"] = "Avg";
|
|
161
|
-
/**
|
|
325
|
+
/**
|
|
326
|
+
* @description The minimum value among all elements.
|
|
327
|
+
*/
|
|
162
328
|
ɵAggregationFunction["Min"] = "Min";
|
|
163
|
-
/**
|
|
329
|
+
/**
|
|
330
|
+
* @description The maximum value among all elements.
|
|
331
|
+
*/
|
|
164
332
|
ɵAggregationFunction["Max"] = "Max";
|
|
165
|
-
/**
|
|
333
|
+
/**
|
|
334
|
+
* @description Top one record from collection.
|
|
335
|
+
*/
|
|
166
336
|
ɵAggregationFunction["TopOne"] = "TopOne";
|
|
167
337
|
})(ɵAggregationFunction || (ɵAggregationFunction = {}));
|
|
168
338
|
|
|
169
339
|
/**
|
|
170
|
-
*
|
|
340
|
+
* @public
|
|
341
|
+
* @decription Type of DataSchema. In combination with the name is used for unique identification of {@link ɵDataSchema}.
|
|
171
342
|
*/
|
|
172
343
|
var ɵDataSchemaType;
|
|
173
344
|
(function (ɵDataSchemaType) {
|
|
345
|
+
/**
|
|
346
|
+
* @description Entity.
|
|
347
|
+
*/
|
|
174
348
|
ɵDataSchemaType["Entity"] = "Entity";
|
|
349
|
+
/**
|
|
350
|
+
* @description Client unit.
|
|
351
|
+
*/
|
|
175
352
|
ɵDataSchemaType["ClientUnit"] = "ClientUnit";
|
|
353
|
+
/**
|
|
354
|
+
* @description Intent.
|
|
355
|
+
*/
|
|
356
|
+
ɵDataSchemaType["Intent"] = "Intent";
|
|
176
357
|
})(ɵDataSchemaType || (ɵDataSchemaType = {}));
|
|
177
358
|
|
|
178
359
|
/**
|
|
@@ -195,198 +376,540 @@ var ɵModelInPageAction;
|
|
|
195
376
|
ɵModelInPageAction["Copy"] = "copy";
|
|
196
377
|
})(ɵModelInPageAction || (ɵModelInPageAction = {}));
|
|
197
378
|
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
379
|
+
/**
|
|
380
|
+
* @public
|
|
381
|
+
* @description type of sending message.
|
|
382
|
+
*/
|
|
383
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
384
|
+
var ɵMessageChannelType;
|
|
385
|
+
(function (ɵMessageChannelType) {
|
|
386
|
+
ɵMessageChannelType["PTP"] = "PTPMsg";
|
|
387
|
+
ɵMessageChannelType["BROADCAST"] = "BroadcastMsg";
|
|
388
|
+
})(ɵMessageChannelType || (ɵMessageChannelType = {}));
|
|
203
389
|
|
|
390
|
+
/**
|
|
391
|
+
* @public
|
|
392
|
+
* @description SysAdminUnitInRole source type.
|
|
393
|
+
*/
|
|
394
|
+
var eAdminUnitRoleSources;
|
|
395
|
+
(function (eAdminUnitRoleSources) {
|
|
396
|
+
/**
|
|
397
|
+
* @description Empty value.
|
|
398
|
+
*/
|
|
399
|
+
eAdminUnitRoleSources[eAdminUnitRoleSources["None"] = 0] = "None";
|
|
400
|
+
/**
|
|
401
|
+
* @description Self.
|
|
402
|
+
*/
|
|
403
|
+
eAdminUnitRoleSources[eAdminUnitRoleSources["Self"] = 1] = "Self";
|
|
404
|
+
/**
|
|
405
|
+
* @description Explicit entry into role.
|
|
406
|
+
*/
|
|
407
|
+
eAdminUnitRoleSources[eAdminUnitRoleSources["ExplicitEntry"] = 2] = "ExplicitEntry";
|
|
408
|
+
/**
|
|
409
|
+
* @description Delegated role.
|
|
410
|
+
*/
|
|
411
|
+
eAdminUnitRoleSources[eAdminUnitRoleSources["Delegated"] = 4] = "Delegated";
|
|
412
|
+
/**
|
|
413
|
+
* @description Gets functional role from organizational role.
|
|
414
|
+
*/
|
|
415
|
+
eAdminUnitRoleSources[eAdminUnitRoleSources["FuncRoleFromOrgRole"] = 8] = "FuncRoleFromOrgRole";
|
|
416
|
+
/**
|
|
417
|
+
* @description Gets role up hierarchy from role.
|
|
418
|
+
*/
|
|
419
|
+
eAdminUnitRoleSources[eAdminUnitRoleSources["UpHierarchy"] = 16] = "UpHierarchy";
|
|
420
|
+
/**
|
|
421
|
+
* @description Gets role as a manager.
|
|
422
|
+
*/
|
|
423
|
+
eAdminUnitRoleSources[eAdminUnitRoleSources["AsManager"] = 32] = "AsManager";
|
|
424
|
+
/**
|
|
425
|
+
* @description Gets all roles.
|
|
426
|
+
*/
|
|
427
|
+
eAdminUnitRoleSources[eAdminUnitRoleSources["All"] = 63] = "All";
|
|
428
|
+
})(eAdminUnitRoleSources || (eAdminUnitRoleSources = {}));
|
|
429
|
+
|
|
430
|
+
/**
|
|
431
|
+
* @public
|
|
432
|
+
* @description Scope of the aggregation function.
|
|
433
|
+
*/
|
|
204
434
|
var ɵAggregationEvalType;
|
|
205
435
|
(function (ɵAggregationEvalType) {
|
|
206
|
-
/**
|
|
436
|
+
/**
|
|
437
|
+
* @description The scope of the aggregating function is not defined.
|
|
438
|
+
*/
|
|
207
439
|
ɵAggregationEvalType[ɵAggregationEvalType["None"] = 0] = "None";
|
|
208
|
-
/**
|
|
440
|
+
/**
|
|
441
|
+
* @description Applies to all elements.
|
|
442
|
+
*/
|
|
209
443
|
ɵAggregationEvalType[ɵAggregationEvalType["All"] = 1] = "All";
|
|
210
|
-
/**
|
|
444
|
+
/**
|
|
445
|
+
* @description Applies to unique values.
|
|
446
|
+
*/
|
|
211
447
|
ɵAggregationEvalType[ɵAggregationEvalType["Distinct"] = 2] = "Distinct";
|
|
212
448
|
})(ɵAggregationEvalType || (ɵAggregationEvalType = {}));
|
|
213
449
|
|
|
450
|
+
/**
|
|
451
|
+
* @public
|
|
452
|
+
* @description Arithmetic operation.
|
|
453
|
+
*/
|
|
214
454
|
var ɵArithmeticOperation;
|
|
215
455
|
(function (ɵArithmeticOperation) {
|
|
216
|
-
/**
|
|
456
|
+
/**
|
|
457
|
+
* @description Addition.
|
|
458
|
+
*/
|
|
217
459
|
ɵArithmeticOperation[ɵArithmeticOperation["Addition"] = 0] = "Addition";
|
|
218
|
-
/**
|
|
460
|
+
/**
|
|
461
|
+
* @description Subtraction.
|
|
462
|
+
*/
|
|
219
463
|
ɵArithmeticOperation[ɵArithmeticOperation["Subtraction"] = 1] = "Subtraction";
|
|
220
|
-
/**
|
|
464
|
+
/**
|
|
465
|
+
* @description Multiplication.
|
|
466
|
+
*/
|
|
221
467
|
ɵArithmeticOperation[ɵArithmeticOperation["Multiplication"] = 2] = "Multiplication";
|
|
222
|
-
/**
|
|
468
|
+
/**
|
|
469
|
+
* @description Division.
|
|
470
|
+
*/
|
|
223
471
|
ɵArithmeticOperation[ɵArithmeticOperation["Division"] = 3] = "Division";
|
|
224
472
|
})(ɵArithmeticOperation || (ɵArithmeticOperation = {}));
|
|
225
473
|
|
|
474
|
+
/**
|
|
475
|
+
* @public
|
|
476
|
+
* @description The type of comparison operation in the filter.
|
|
477
|
+
*/
|
|
226
478
|
/* eslint-disable @typescript-eslint/naming-convention */
|
|
227
479
|
var ɵComparisonType;
|
|
228
480
|
(function (ɵComparisonType) {
|
|
481
|
+
/**
|
|
482
|
+
* @public
|
|
483
|
+
* @description Value is between two specified values.
|
|
484
|
+
*/
|
|
229
485
|
ɵComparisonType[ɵComparisonType["Between"] = 0] = "Between";
|
|
486
|
+
/**
|
|
487
|
+
* @public
|
|
488
|
+
* @description Value contains a specified substring.
|
|
489
|
+
*/
|
|
230
490
|
ɵComparisonType[ɵComparisonType["Contain"] = 11] = "Contain";
|
|
491
|
+
/**
|
|
492
|
+
* @public
|
|
493
|
+
* @description Value ends with a specified substring.
|
|
494
|
+
*/
|
|
231
495
|
ɵComparisonType[ɵComparisonType["End_with"] = 13] = "End_with";
|
|
496
|
+
/**
|
|
497
|
+
* @public
|
|
498
|
+
* @description Value is equal to a specified value.
|
|
499
|
+
*/
|
|
232
500
|
ɵComparisonType[ɵComparisonType["Equal"] = 3] = "Equal";
|
|
501
|
+
/**
|
|
502
|
+
* @public
|
|
503
|
+
* @description Value exists (is not null or undefined).
|
|
504
|
+
*/
|
|
233
505
|
ɵComparisonType[ɵComparisonType["Exists"] = 15] = "Exists";
|
|
506
|
+
/**
|
|
507
|
+
* @public
|
|
508
|
+
* @description Value is greater than a specified value.
|
|
509
|
+
*/
|
|
234
510
|
ɵComparisonType[ɵComparisonType["Greater"] = 7] = "Greater";
|
|
511
|
+
/**
|
|
512
|
+
* @public
|
|
513
|
+
* @description Value is greater than or equal to a specified value.
|
|
514
|
+
*/
|
|
235
515
|
ɵComparisonType[ɵComparisonType["Greater_or_equal"] = 8] = "Greater_or_equal";
|
|
516
|
+
/**
|
|
517
|
+
* @public
|
|
518
|
+
* @description Value is not null.
|
|
519
|
+
*/
|
|
236
520
|
ɵComparisonType[ɵComparisonType["Is_not_null"] = 2] = "Is_not_null";
|
|
521
|
+
/**
|
|
522
|
+
* @public
|
|
523
|
+
* @description Value is null.
|
|
524
|
+
*/
|
|
237
525
|
ɵComparisonType[ɵComparisonType["Is_null"] = 1] = "Is_null";
|
|
526
|
+
/**
|
|
527
|
+
* @public
|
|
528
|
+
* @description Value is less than a specified value.
|
|
529
|
+
*/
|
|
238
530
|
ɵComparisonType[ɵComparisonType["Less"] = 5] = "Less";
|
|
531
|
+
/**
|
|
532
|
+
* @public
|
|
533
|
+
* @description Value is less than or equal to a specified value.
|
|
534
|
+
*/
|
|
239
535
|
ɵComparisonType[ɵComparisonType["Less_or_equal"] = 6] = "Less_or_equal";
|
|
536
|
+
/**
|
|
537
|
+
* @public
|
|
538
|
+
* @description Value does not contain a specified substring.
|
|
539
|
+
*/
|
|
240
540
|
ɵComparisonType[ɵComparisonType["Not_contain"] = 12] = "Not_contain";
|
|
541
|
+
/**
|
|
542
|
+
* @public
|
|
543
|
+
* @description Value does not end with a specified substring.
|
|
544
|
+
*/
|
|
241
545
|
ɵComparisonType[ɵComparisonType["Not_end_with"] = 14] = "Not_end_with";
|
|
546
|
+
/**
|
|
547
|
+
* @public
|
|
548
|
+
* @description Value is not equal to a specified value.
|
|
549
|
+
*/
|
|
242
550
|
ɵComparisonType[ɵComparisonType["Not_equal"] = 4] = "Not_equal";
|
|
551
|
+
/**
|
|
552
|
+
* @public
|
|
553
|
+
* @description Value does not exist (is null or undefined).
|
|
554
|
+
*/
|
|
243
555
|
ɵComparisonType[ɵComparisonType["Not_exists"] = 16] = "Not_exists";
|
|
556
|
+
/**
|
|
557
|
+
* @public
|
|
558
|
+
* @description Value does not start with a specified substring.
|
|
559
|
+
*/
|
|
244
560
|
ɵComparisonType[ɵComparisonType["Not_start_with"] = 10] = "Not_start_with";
|
|
561
|
+
/**
|
|
562
|
+
* @public
|
|
563
|
+
* @description Value starts with a specified substring.
|
|
564
|
+
*/
|
|
245
565
|
ɵComparisonType[ɵComparisonType["Start_with"] = 9] = "Start_with";
|
|
246
566
|
})(ɵComparisonType || (ɵComparisonType = {}));
|
|
247
567
|
|
|
568
|
+
/**
|
|
569
|
+
* @public
|
|
570
|
+
* @description Part of the date.
|
|
571
|
+
*/
|
|
248
572
|
var ɵDatePartType;
|
|
249
573
|
(function (ɵDatePartType) {
|
|
250
|
-
/**
|
|
574
|
+
/**
|
|
575
|
+
* @description Empty value.
|
|
576
|
+
*/
|
|
251
577
|
ɵDatePartType[ɵDatePartType["None"] = 0] = "None";
|
|
252
|
-
/**
|
|
578
|
+
/**
|
|
579
|
+
* @description Day.
|
|
580
|
+
*/
|
|
253
581
|
ɵDatePartType[ɵDatePartType["Day"] = 1] = "Day";
|
|
254
|
-
/**
|
|
582
|
+
/**
|
|
583
|
+
* @description Week.
|
|
584
|
+
*/
|
|
255
585
|
ɵDatePartType[ɵDatePartType["Week"] = 2] = "Week";
|
|
256
|
-
/**
|
|
586
|
+
/**
|
|
587
|
+
* @description Month.
|
|
588
|
+
*/
|
|
257
589
|
ɵDatePartType[ɵDatePartType["Month"] = 3] = "Month";
|
|
258
|
-
/**
|
|
590
|
+
/**
|
|
591
|
+
* @description Year.
|
|
592
|
+
*/
|
|
259
593
|
ɵDatePartType[ɵDatePartType["Year"] = 4] = "Year";
|
|
260
|
-
/**
|
|
594
|
+
/**
|
|
595
|
+
* @description Day of the week.
|
|
596
|
+
*/
|
|
261
597
|
ɵDatePartType[ɵDatePartType["WeekDay"] = 5] = "WeekDay";
|
|
262
|
-
/**
|
|
598
|
+
/**
|
|
599
|
+
* @description Hour.
|
|
600
|
+
*/
|
|
263
601
|
ɵDatePartType[ɵDatePartType["Hour"] = 6] = "Hour";
|
|
264
|
-
/**
|
|
602
|
+
/**
|
|
603
|
+
* @description Minute.
|
|
604
|
+
*/
|
|
265
605
|
ɵDatePartType[ɵDatePartType["HourMinute"] = 7] = "HourMinute";
|
|
266
606
|
})(ɵDatePartType || (ɵDatePartType = {}));
|
|
267
607
|
|
|
608
|
+
/**
|
|
609
|
+
* @public
|
|
610
|
+
* @description Type of expression.
|
|
611
|
+
*/
|
|
268
612
|
var ɵExpressionType;
|
|
269
613
|
(function (ɵExpressionType) {
|
|
614
|
+
/**
|
|
615
|
+
* @description Column.
|
|
616
|
+
*/
|
|
270
617
|
ɵExpressionType[ɵExpressionType["SchemaColumn"] = 0] = "SchemaColumn";
|
|
618
|
+
/**
|
|
619
|
+
* @description Function.
|
|
620
|
+
*/
|
|
271
621
|
ɵExpressionType[ɵExpressionType["Function"] = 1] = "Function";
|
|
622
|
+
/**
|
|
623
|
+
* @description Parameter.
|
|
624
|
+
*/
|
|
272
625
|
ɵExpressionType[ɵExpressionType["Parameter"] = 2] = "Parameter";
|
|
626
|
+
/**
|
|
627
|
+
* @description Subselect query.
|
|
628
|
+
*/
|
|
273
629
|
ɵExpressionType[ɵExpressionType["SubQuery"] = 3] = "SubQuery";
|
|
630
|
+
/**
|
|
631
|
+
* @description Arithmetic operation.
|
|
632
|
+
*/
|
|
274
633
|
ɵExpressionType[ɵExpressionType["ArithmeticOperation"] = 4] = "ArithmeticOperation";
|
|
275
634
|
})(ɵExpressionType || (ɵExpressionType = {}));
|
|
276
635
|
|
|
636
|
+
/**
|
|
637
|
+
* @public
|
|
638
|
+
* @description The type of filter.
|
|
639
|
+
*/
|
|
277
640
|
var ɵFilterType;
|
|
278
641
|
(function (ɵFilterType) {
|
|
642
|
+
/**
|
|
643
|
+
* @public
|
|
644
|
+
* @description No filter applied.
|
|
645
|
+
*/
|
|
279
646
|
ɵFilterType[ɵFilterType["None"] = 0] = "None";
|
|
647
|
+
/**
|
|
648
|
+
* @public
|
|
649
|
+
* @description Comparison filter (e.g., equal to, greater than).
|
|
650
|
+
*/
|
|
280
651
|
ɵFilterType[ɵFilterType["Compare"] = 1] = "Compare";
|
|
652
|
+
/**
|
|
653
|
+
* @public
|
|
654
|
+
* @description Checks if a value is null.
|
|
655
|
+
*/
|
|
281
656
|
ɵFilterType[ɵFilterType["IsNull"] = 2] = "IsNull";
|
|
657
|
+
/**
|
|
658
|
+
* @public
|
|
659
|
+
* @description Checks if a value is between two specified values.
|
|
660
|
+
*/
|
|
282
661
|
ɵFilterType[ɵFilterType["Between"] = 3] = "Between";
|
|
662
|
+
/**
|
|
663
|
+
* @public
|
|
664
|
+
* @description Checks if a value is in a specified set of values.
|
|
665
|
+
*/
|
|
283
666
|
ɵFilterType[ɵFilterType["In"] = 4] = "In";
|
|
667
|
+
/**
|
|
668
|
+
* @public
|
|
669
|
+
* @description Checks if a value exists.
|
|
670
|
+
*/
|
|
284
671
|
ɵFilterType[ɵFilterType["Exists"] = 5] = "Exists";
|
|
672
|
+
/**
|
|
673
|
+
* @public
|
|
674
|
+
* @description A group of filters combined with logical operators (AND, OR).
|
|
675
|
+
*/
|
|
285
676
|
ɵFilterType[ɵFilterType["FilterGroup"] = 6] = "FilterGroup";
|
|
286
677
|
})(ɵFilterType || (ɵFilterType = {}));
|
|
287
678
|
|
|
679
|
+
/**
|
|
680
|
+
* @public
|
|
681
|
+
* @description The type of function in the filter.
|
|
682
|
+
*/
|
|
288
683
|
var ɵFunctionType;
|
|
289
684
|
(function (ɵFunctionType) {
|
|
685
|
+
/**
|
|
686
|
+
* @description Function type not defined.
|
|
687
|
+
* */
|
|
290
688
|
ɵFunctionType[ɵFunctionType["None"] = 0] = "None";
|
|
291
|
-
/**
|
|
689
|
+
/**
|
|
690
|
+
* @description Substitution by macro.
|
|
691
|
+
* */
|
|
292
692
|
ɵFunctionType[ɵFunctionType["Macros"] = 1] = "Macros";
|
|
293
|
-
/**
|
|
693
|
+
/**
|
|
694
|
+
* @description Aggregating function.
|
|
695
|
+
* */
|
|
294
696
|
ɵFunctionType[ɵFunctionType["Aggregation"] = 2] = "Aggregation";
|
|
295
|
-
/**
|
|
697
|
+
/**
|
|
698
|
+
* @description Date fragment.
|
|
699
|
+
* */
|
|
296
700
|
ɵFunctionType[ɵFunctionType["DatePart"] = 3] = "DatePart";
|
|
297
|
-
/**
|
|
701
|
+
/**
|
|
702
|
+
* @description The size of the value in bytes, used for binary data.
|
|
703
|
+
* */
|
|
298
704
|
ɵFunctionType[ɵFunctionType["Length"] = 4] = "Length";
|
|
299
|
-
/**
|
|
705
|
+
/**
|
|
706
|
+
* @description Window query function
|
|
707
|
+
* */
|
|
300
708
|
ɵFunctionType[ɵFunctionType["Window"] = 5] = "Window";
|
|
301
|
-
/**
|
|
709
|
+
/**
|
|
710
|
+
* @description Date add.
|
|
711
|
+
* */
|
|
302
712
|
ɵFunctionType[ɵFunctionType["DateAdd"] = 6] = "DateAdd";
|
|
303
|
-
/**
|
|
713
|
+
/**
|
|
714
|
+
* @description Date diff.
|
|
715
|
+
* */
|
|
304
716
|
ɵFunctionType[ɵFunctionType["DateDiff"] = 7] = "DateDiff";
|
|
305
717
|
})(ɵFunctionType || (ɵFunctionType = {}));
|
|
306
718
|
|
|
719
|
+
/**
|
|
720
|
+
* @public
|
|
721
|
+
* @description The type of logical operation.
|
|
722
|
+
*/
|
|
723
|
+
var ɵLogicalOperatorType;
|
|
724
|
+
(function (ɵLogicalOperatorType) {
|
|
725
|
+
/**
|
|
726
|
+
* @description Logical And.
|
|
727
|
+
*/
|
|
728
|
+
ɵLogicalOperatorType[ɵLogicalOperatorType["And"] = 0] = "And";
|
|
729
|
+
/**
|
|
730
|
+
* @description Logical Or.
|
|
731
|
+
*/
|
|
732
|
+
ɵLogicalOperatorType[ɵLogicalOperatorType["Or"] = 1] = "Or";
|
|
733
|
+
})(ɵLogicalOperatorType || (ɵLogicalOperatorType = {}));
|
|
734
|
+
|
|
735
|
+
/**
|
|
736
|
+
* @public
|
|
737
|
+
* @description Sort order (can be set to None).
|
|
738
|
+
*/
|
|
307
739
|
var ɵOrderDirection;
|
|
308
740
|
(function (ɵOrderDirection) {
|
|
741
|
+
/**
|
|
742
|
+
* @description Order not defined.
|
|
743
|
+
* */
|
|
309
744
|
ɵOrderDirection[ɵOrderDirection["None"] = 0] = "None";
|
|
745
|
+
/**
|
|
746
|
+
* @description Ascending.
|
|
747
|
+
* */
|
|
310
748
|
ɵOrderDirection[ɵOrderDirection["Asc"] = 1] = "Asc";
|
|
749
|
+
/**
|
|
750
|
+
* @description Descending.
|
|
751
|
+
* */
|
|
311
752
|
ɵOrderDirection[ɵOrderDirection["Desc"] = 2] = "Desc";
|
|
312
753
|
})(ɵOrderDirection || (ɵOrderDirection = {}));
|
|
313
754
|
|
|
755
|
+
/**
|
|
756
|
+
* @public
|
|
757
|
+
* @description The type of macros.
|
|
758
|
+
*/
|
|
314
759
|
var ɵQueryMacrosType;
|
|
315
760
|
(function (ɵQueryMacrosType) {
|
|
316
|
-
/**
|
|
761
|
+
/**
|
|
762
|
+
* @description Macro type not defined.
|
|
763
|
+
*/
|
|
317
764
|
ɵQueryMacrosType[ɵQueryMacrosType["None"] = 0] = "None";
|
|
318
|
-
/**
|
|
765
|
+
/**
|
|
766
|
+
* @description Current user.
|
|
767
|
+
*/
|
|
319
768
|
ɵQueryMacrosType[ɵQueryMacrosType["CurrentUser"] = 1] = "CurrentUser";
|
|
320
|
-
/**
|
|
769
|
+
/**
|
|
770
|
+
* @description Current user contact.
|
|
771
|
+
*/
|
|
321
772
|
ɵQueryMacrosType[ɵQueryMacrosType["CurrentUserContact"] = 2] = "CurrentUserContact";
|
|
322
|
-
/**
|
|
773
|
+
/**
|
|
774
|
+
* @description Yesterday.
|
|
775
|
+
*/
|
|
323
776
|
ɵQueryMacrosType[ɵQueryMacrosType["Yesterday"] = 3] = "Yesterday";
|
|
324
|
-
/**
|
|
777
|
+
/**
|
|
778
|
+
* @description Today.
|
|
779
|
+
*/
|
|
325
780
|
ɵQueryMacrosType[ɵQueryMacrosType["Today"] = 4] = "Today";
|
|
326
|
-
/**
|
|
781
|
+
/**
|
|
782
|
+
* @description Tomorrow.
|
|
783
|
+
*/
|
|
327
784
|
ɵQueryMacrosType[ɵQueryMacrosType["Tomorrow"] = 5] = "Tomorrow";
|
|
328
|
-
/**
|
|
785
|
+
/**
|
|
786
|
+
* @description Previous week.
|
|
787
|
+
*/
|
|
329
788
|
ɵQueryMacrosType[ɵQueryMacrosType["PreviousWeek"] = 6] = "PreviousWeek";
|
|
330
|
-
/**
|
|
789
|
+
/**
|
|
790
|
+
* @description This week.
|
|
791
|
+
*/
|
|
331
792
|
ɵQueryMacrosType[ɵQueryMacrosType["CurrentWeek"] = 7] = "CurrentWeek";
|
|
332
|
-
/**
|
|
793
|
+
/**
|
|
794
|
+
* @description Next week.
|
|
795
|
+
*/
|
|
333
796
|
ɵQueryMacrosType[ɵQueryMacrosType["NextWeek"] = 8] = "NextWeek";
|
|
334
|
-
/**
|
|
797
|
+
/**
|
|
798
|
+
* @description Previous month.
|
|
799
|
+
*/
|
|
335
800
|
ɵQueryMacrosType[ɵQueryMacrosType["PreviousMonth"] = 9] = "PreviousMonth";
|
|
336
|
-
/**
|
|
801
|
+
/**
|
|
802
|
+
* @description Current month.
|
|
803
|
+
*/
|
|
337
804
|
ɵQueryMacrosType[ɵQueryMacrosType["CurrentMonth"] = 10] = "CurrentMonth";
|
|
338
|
-
/**
|
|
805
|
+
/**
|
|
806
|
+
* @description Next month.
|
|
807
|
+
*/
|
|
339
808
|
ɵQueryMacrosType[ɵQueryMacrosType["NextMonth"] = 11] = "NextMonth";
|
|
340
|
-
/**
|
|
809
|
+
/**
|
|
810
|
+
* @description Previous quarter.
|
|
811
|
+
*/
|
|
341
812
|
ɵQueryMacrosType[ɵQueryMacrosType["PreviousQuarter"] = 12] = "PreviousQuarter";
|
|
342
|
-
/**
|
|
813
|
+
/**
|
|
814
|
+
* @description Current quarter.
|
|
815
|
+
*/
|
|
343
816
|
ɵQueryMacrosType[ɵQueryMacrosType["CurrentQuarter"] = 13] = "CurrentQuarter";
|
|
344
|
-
/**
|
|
817
|
+
/**
|
|
818
|
+
* @description Next quarter.
|
|
819
|
+
*/
|
|
345
820
|
ɵQueryMacrosType[ɵQueryMacrosType["NextQuarter"] = 14] = "NextQuarter";
|
|
346
|
-
/**
|
|
821
|
+
/**
|
|
822
|
+
* @description Previous half of the year.
|
|
823
|
+
*/
|
|
347
824
|
ɵQueryMacrosType[ɵQueryMacrosType["PreviousHalfYear"] = 15] = "PreviousHalfYear";
|
|
348
|
-
/**
|
|
825
|
+
/**
|
|
826
|
+
* @description Current half-year.
|
|
827
|
+
*/
|
|
349
828
|
ɵQueryMacrosType[ɵQueryMacrosType["CurrentHalfYear"] = 16] = "CurrentHalfYear";
|
|
350
|
-
/**
|
|
829
|
+
/**
|
|
830
|
+
* @description Next half-year.
|
|
831
|
+
*/
|
|
351
832
|
ɵQueryMacrosType[ɵQueryMacrosType["NextHalfYear"] = 17] = "NextHalfYear";
|
|
352
|
-
/**
|
|
833
|
+
/**
|
|
834
|
+
* @description Last year.
|
|
835
|
+
*/
|
|
353
836
|
ɵQueryMacrosType[ɵQueryMacrosType["PreviousYear"] = 18] = "PreviousYear";
|
|
354
|
-
/**
|
|
837
|
+
/**
|
|
838
|
+
* @description This year.
|
|
839
|
+
*/
|
|
355
840
|
ɵQueryMacrosType[ɵQueryMacrosType["CurrentYear"] = 19] = "CurrentYear";
|
|
356
|
-
/**
|
|
841
|
+
/**
|
|
842
|
+
* @description Previous hour.
|
|
843
|
+
*/
|
|
357
844
|
ɵQueryMacrosType[ɵQueryMacrosType["PreviousHour"] = 20] = "PreviousHour";
|
|
358
|
-
/**
|
|
845
|
+
/**
|
|
846
|
+
* @description Current hour.
|
|
847
|
+
*/
|
|
359
848
|
ɵQueryMacrosType[ɵQueryMacrosType["CurrentHour"] = 21] = "CurrentHour";
|
|
360
|
-
/**
|
|
849
|
+
/**
|
|
850
|
+
* @description Next hour.
|
|
851
|
+
*/
|
|
361
852
|
ɵQueryMacrosType[ɵQueryMacrosType["NextHour"] = 22] = "NextHour";
|
|
362
|
-
/**
|
|
853
|
+
/**
|
|
854
|
+
* @description Next year.
|
|
855
|
+
*/
|
|
363
856
|
ɵQueryMacrosType[ɵQueryMacrosType["NextYear"] = 23] = "NextYear";
|
|
364
|
-
/**
|
|
857
|
+
/**
|
|
858
|
+
* @description Next N Days.
|
|
859
|
+
*/
|
|
365
860
|
ɵQueryMacrosType[ɵQueryMacrosType["NextNDays"] = 24] = "NextNDays";
|
|
366
|
-
/**
|
|
861
|
+
/**
|
|
862
|
+
* @description Previous N days.
|
|
863
|
+
*/
|
|
367
864
|
ɵQueryMacrosType[ɵQueryMacrosType["PreviousNDays"] = 25] = "PreviousNDays";
|
|
368
|
-
/**
|
|
865
|
+
/**
|
|
866
|
+
* @description Next N hours.
|
|
867
|
+
*/
|
|
369
868
|
ɵQueryMacrosType[ɵQueryMacrosType["NextNHours"] = 26] = "NextNHours";
|
|
370
|
-
/**
|
|
869
|
+
/**
|
|
870
|
+
* @description Previous N hours.
|
|
871
|
+
*/
|
|
371
872
|
ɵQueryMacrosType[ɵQueryMacrosType["PreviousNHours"] = 27] = "PreviousNHours";
|
|
372
|
-
/**
|
|
873
|
+
/**
|
|
874
|
+
* @description Primary column.
|
|
875
|
+
*/
|
|
373
876
|
ɵQueryMacrosType[ɵQueryMacrosType["PrimaryColumn"] = 34] = "PrimaryColumn";
|
|
374
|
-
/**
|
|
877
|
+
/**
|
|
878
|
+
* @description Primary displayed column.
|
|
879
|
+
*/
|
|
375
880
|
ɵQueryMacrosType[ɵQueryMacrosType["PrimaryDisplayColumn"] = 35] = "PrimaryDisplayColumn";
|
|
376
|
-
/**
|
|
881
|
+
/**
|
|
882
|
+
* @description Primary image display column.
|
|
883
|
+
*/
|
|
377
884
|
ɵQueryMacrosType[ɵQueryMacrosType["PrimaryImageColumn"] = 36] = "PrimaryImageColumn";
|
|
378
|
-
/**
|
|
885
|
+
/**
|
|
886
|
+
* @description Anniversary today.
|
|
887
|
+
*/
|
|
379
888
|
ɵQueryMacrosType[ɵQueryMacrosType["DayOfYearToday"] = 37] = "DayOfYearToday";
|
|
380
|
-
/**
|
|
889
|
+
/**
|
|
890
|
+
* @description Anniversary on the date computed as today plus days offset.
|
|
891
|
+
*/
|
|
381
892
|
ɵQueryMacrosType[ɵQueryMacrosType["DayOfYearTodayPlusDaysOffset"] = 38] = "DayOfYearTodayPlusDaysOffset";
|
|
382
|
-
/**
|
|
893
|
+
/**
|
|
894
|
+
* @description Anniversary on the next several days.
|
|
895
|
+
*/
|
|
383
896
|
ɵQueryMacrosType[ɵQueryMacrosType["NextNDaysOfYear"] = 39] = "NextNDaysOfYear";
|
|
384
|
-
/**
|
|
897
|
+
/**
|
|
898
|
+
* @description Anniversary on the previous several days.
|
|
899
|
+
*/
|
|
385
900
|
ɵQueryMacrosType[ɵQueryMacrosType["PreviousNDaysOfYear"] = 40] = "PreviousNDaysOfYear";
|
|
386
|
-
/**
|
|
901
|
+
/**
|
|
902
|
+
* @description Primary color display column.
|
|
903
|
+
*/
|
|
387
904
|
ɵQueryMacrosType[ɵQueryMacrosType["PrimaryColorColumn"] = 41] = "PrimaryColorColumn";
|
|
388
905
|
})(ɵQueryMacrosType || (ɵQueryMacrosType = {}));
|
|
389
906
|
|
|
907
|
+
/**
|
|
908
|
+
* @public
|
|
909
|
+
* @abstract
|
|
910
|
+
* @description The base class of the expression.
|
|
911
|
+
* @extends {ɵSerializable}
|
|
912
|
+
*/
|
|
390
913
|
class ɵBaseExpression {
|
|
391
914
|
/**
|
|
392
915
|
* @internal
|
|
@@ -395,22 +918,35 @@ class ɵBaseExpression {
|
|
|
395
918
|
static get _instanceOfKeys() {
|
|
396
919
|
return [this._instanceOfKey];
|
|
397
920
|
}
|
|
921
|
+
/**
|
|
922
|
+
* @public
|
|
923
|
+
* @description Method for checking if an instance is of the current class type.
|
|
924
|
+
* @param instance - The instance to check.
|
|
925
|
+
* @returns `true` if the instance is of the current class type, `false` otherwise.
|
|
926
|
+
*/
|
|
398
927
|
static [Symbol.hasInstance](instance) {
|
|
399
928
|
var _a, _b;
|
|
400
929
|
const instanceOfKeys = (_b = (_a = instance === null || instance === void 0 ? void 0 : instance.constructor) === null || _a === void 0 ? void 0 : _a['_instanceOfKeys']) !== null && _b !== void 0 ? _b : [];
|
|
401
930
|
return instanceOfKeys.includes(this._instanceOfKey);
|
|
402
931
|
}
|
|
403
932
|
constructor(config) {
|
|
933
|
+
/**
|
|
934
|
+
* @description True if expression has brackets.
|
|
935
|
+
*/
|
|
404
936
|
this.isBlock = false;
|
|
405
937
|
this.isBlock = config === null || config === void 0 ? void 0 : config.isBlock;
|
|
406
938
|
}
|
|
407
939
|
/**
|
|
408
|
-
* Parses expression from json.
|
|
409
940
|
* @public
|
|
941
|
+
* @description Parses expression from json.
|
|
410
942
|
*/
|
|
411
943
|
static fromJson(dto, filterParser, expressionParser) {
|
|
412
944
|
throw new Error(`fromJson not supported on expression type ${this.constructor.name}`);
|
|
413
945
|
}
|
|
946
|
+
/**
|
|
947
|
+
* @description Converts instance to json object.
|
|
948
|
+
* @param item - The instance to serialize.
|
|
949
|
+
*/
|
|
414
950
|
serializeItem(item) {
|
|
415
951
|
return typeof item.toJson === 'function'
|
|
416
952
|
? item.toJson()
|
|
@@ -420,8 +956,8 @@ class ɵBaseExpression {
|
|
|
420
956
|
});
|
|
421
957
|
}
|
|
422
958
|
/**
|
|
423
|
-
* Converts instance to json object.
|
|
424
959
|
* @public
|
|
960
|
+
* @description Converts instance to json object.
|
|
425
961
|
*/
|
|
426
962
|
toJson() {
|
|
427
963
|
return classToPlain(this, {
|
|
@@ -436,6 +972,11 @@ class ɵBaseExpression {
|
|
|
436
972
|
*/
|
|
437
973
|
ɵBaseExpression._instanceOfKey = 'devkit_BaseExpression';
|
|
438
974
|
|
|
975
|
+
/**
|
|
976
|
+
* @public
|
|
977
|
+
* @description Arithmetic expression.
|
|
978
|
+
* @extends {ɵBaseExpression}
|
|
979
|
+
*/
|
|
439
980
|
class ɵArithmeticExpression extends ɵBaseExpression {
|
|
440
981
|
/**
|
|
441
982
|
* @internal
|
|
@@ -446,6 +987,9 @@ class ɵArithmeticExpression extends ɵBaseExpression {
|
|
|
446
987
|
}
|
|
447
988
|
constructor(config) {
|
|
448
989
|
super(config);
|
|
990
|
+
/**
|
|
991
|
+
* @description Expression type. Default 'ArithmeticOperation'.
|
|
992
|
+
*/
|
|
449
993
|
this.expressionType = ɵExpressionType.ArithmeticOperation;
|
|
450
994
|
this.arithmeticOperation = config === null || config === void 0 ? void 0 : config.arithmeticOperation;
|
|
451
995
|
this.leftArithmeticOperand = config === null || config === void 0 ? void 0 : config.leftArithmeticOperand.clone();
|
|
@@ -466,6 +1010,10 @@ class ɵArithmeticExpression extends ɵBaseExpression {
|
|
|
466
1010
|
};
|
|
467
1011
|
return new ɵArithmeticExpression(config);
|
|
468
1012
|
}
|
|
1013
|
+
/**
|
|
1014
|
+
* @public
|
|
1015
|
+
* @description Clones instance.
|
|
1016
|
+
*/
|
|
469
1017
|
clone() {
|
|
470
1018
|
return new ɵArithmeticExpression(this);
|
|
471
1019
|
}
|
|
@@ -482,6 +1030,11 @@ class ɵArithmeticExpression extends ɵBaseExpression {
|
|
|
482
1030
|
*/
|
|
483
1031
|
ɵArithmeticExpression._instanceOfKey = 'devkit_ArithmeticExpression';
|
|
484
1032
|
|
|
1033
|
+
/**
|
|
1034
|
+
* @public
|
|
1035
|
+
* @description A class that defines an expression of type column EntitySchema.
|
|
1036
|
+
* @extends {ɵBaseExpression}
|
|
1037
|
+
*/
|
|
485
1038
|
class ɵColumnExpression extends ɵBaseExpression {
|
|
486
1039
|
/**
|
|
487
1040
|
* @internal
|
|
@@ -492,17 +1045,24 @@ class ɵColumnExpression extends ɵBaseExpression {
|
|
|
492
1045
|
}
|
|
493
1046
|
constructor(config) {
|
|
494
1047
|
super(config);
|
|
1048
|
+
/**
|
|
1049
|
+
* @description Type of expression.
|
|
1050
|
+
*/
|
|
495
1051
|
this.expressionType = ɵExpressionType.SchemaColumn;
|
|
496
1052
|
this.columnPath = config === null || config === void 0 ? void 0 : config.columnPath;
|
|
497
1053
|
}
|
|
498
1054
|
/**
|
|
499
1055
|
* Parses expression from json.
|
|
500
1056
|
* @public
|
|
1057
|
+
* @param dto - Serialized object.
|
|
501
1058
|
*/
|
|
502
1059
|
static fromJson(dto) {
|
|
503
1060
|
const expression = new ɵColumnExpression({ columnPath: dto['columnPath'] });
|
|
504
1061
|
return expression;
|
|
505
1062
|
}
|
|
1063
|
+
/**
|
|
1064
|
+
* @description Clones instance.
|
|
1065
|
+
*/
|
|
506
1066
|
clone() {
|
|
507
1067
|
return new ɵColumnExpression(this);
|
|
508
1068
|
}
|
|
@@ -524,15 +1084,28 @@ class ɵColumnExpression extends ɵBaseExpression {
|
|
|
524
1084
|
ɵColumnExpression._instanceOfKey = 'devkit_ColumnExpression';
|
|
525
1085
|
|
|
526
1086
|
/**
|
|
527
|
-
* Expression parser interface
|
|
528
1087
|
* @public
|
|
1088
|
+
* @description Expression parser interface.
|
|
529
1089
|
*/
|
|
530
1090
|
class ɵBaseExpressionParser {
|
|
1091
|
+
/**
|
|
1092
|
+
* @public
|
|
1093
|
+
* @description Parses filter from json.
|
|
1094
|
+
* @param dto - Serialized object.
|
|
1095
|
+
* @param filterParser - Type of parser.
|
|
1096
|
+
* @return InstanceType of expression.
|
|
1097
|
+
*/
|
|
531
1098
|
static fromJson(dto, filterParser) {
|
|
532
1099
|
throw new Error('not implemented');
|
|
533
1100
|
}
|
|
534
1101
|
}
|
|
535
1102
|
|
|
1103
|
+
/**
|
|
1104
|
+
* @public
|
|
1105
|
+
* @abstract
|
|
1106
|
+
* @description A class that describes a functional expression.
|
|
1107
|
+
* @extends {ɵFunctionExpression}
|
|
1108
|
+
*/
|
|
536
1109
|
class ɵFunctionExpression extends ɵBaseExpression {
|
|
537
1110
|
/**
|
|
538
1111
|
* @internal
|
|
@@ -543,6 +1116,9 @@ class ɵFunctionExpression extends ɵBaseExpression {
|
|
|
543
1116
|
}
|
|
544
1117
|
constructor(config) {
|
|
545
1118
|
super(config);
|
|
1119
|
+
/**
|
|
1120
|
+
* @description Expression type. Default 'Function'.
|
|
1121
|
+
*/
|
|
546
1122
|
this.expressionType = ɵExpressionType.Function;
|
|
547
1123
|
}
|
|
548
1124
|
}
|
|
@@ -552,6 +1128,12 @@ class ɵFunctionExpression extends ɵBaseExpression {
|
|
|
552
1128
|
*/
|
|
553
1129
|
ɵFunctionExpression._instanceOfKey = 'devkit_FunctionExpression';
|
|
554
1130
|
|
|
1131
|
+
/**
|
|
1132
|
+
* @public
|
|
1133
|
+
* @abstract
|
|
1134
|
+
* @description A class that describes a functional expression with argument.
|
|
1135
|
+
* @extends {ɵFunctionExpression}
|
|
1136
|
+
*/
|
|
555
1137
|
class ɵArgumentFunctionExpression extends ɵFunctionExpression {
|
|
556
1138
|
/**
|
|
557
1139
|
* @internal
|
|
@@ -561,9 +1143,11 @@ class ɵArgumentFunctionExpression extends ɵFunctionExpression {
|
|
|
561
1143
|
return [...ɵFunctionExpression._instanceOfKeys, this._instanceOfKey];
|
|
562
1144
|
}
|
|
563
1145
|
constructor(config) {
|
|
1146
|
+
var _a;
|
|
564
1147
|
super(config);
|
|
565
|
-
this.functionArgument = config === null || config === void 0 ? void 0 : config.functionArgument.clone();
|
|
1148
|
+
this.functionArgument = (_a = config === null || config === void 0 ? void 0 : config.functionArgument) === null || _a === void 0 ? void 0 : _a.clone();
|
|
566
1149
|
}
|
|
1150
|
+
/** {@inheritDoc ɵBaseExpression.toJson} */
|
|
567
1151
|
toJson() {
|
|
568
1152
|
const result = super.toJson();
|
|
569
1153
|
if (this.functionArgument) {
|
|
@@ -585,6 +1169,11 @@ class ɵArgumentFunctionExpression extends ɵFunctionExpression {
|
|
|
585
1169
|
*/
|
|
586
1170
|
ɵArgumentFunctionExpression._instanceOfKey = 'devkit_ArgumentFunctionExpression';
|
|
587
1171
|
|
|
1172
|
+
/**
|
|
1173
|
+
* @public
|
|
1174
|
+
* @description A class that describes expression with aggregate function.
|
|
1175
|
+
* @extends {ɵArgumentFunctionExpression}
|
|
1176
|
+
*/
|
|
588
1177
|
class ɵAggregationFunctionExpression extends ɵArgumentFunctionExpression {
|
|
589
1178
|
/**
|
|
590
1179
|
* @internal
|
|
@@ -595,6 +1184,9 @@ class ɵAggregationFunctionExpression extends ɵArgumentFunctionExpression {
|
|
|
595
1184
|
}
|
|
596
1185
|
constructor(config) {
|
|
597
1186
|
super(config);
|
|
1187
|
+
/**
|
|
1188
|
+
* @description The type of the functional expression passed for initialization.
|
|
1189
|
+
*/
|
|
598
1190
|
this.functionType = ɵFunctionType.Aggregation;
|
|
599
1191
|
this.aggregationType = config === null || config === void 0 ? void 0 : config.aggregationType;
|
|
600
1192
|
this.aggregationEvalType = config === null || config === void 0 ? void 0 : config.aggregationEvalType;
|
|
@@ -614,6 +1206,7 @@ class ɵAggregationFunctionExpression extends ɵArgumentFunctionExpression {
|
|
|
614
1206
|
isBlock: dto['isBlock'],
|
|
615
1207
|
});
|
|
616
1208
|
}
|
|
1209
|
+
/** {@inheritDoc ɵBaseExpression.clone} */
|
|
617
1210
|
clone() {
|
|
618
1211
|
return new ɵAggregationFunctionExpression(this);
|
|
619
1212
|
}
|
|
@@ -624,6 +1217,11 @@ class ɵAggregationFunctionExpression extends ɵArgumentFunctionExpression {
|
|
|
624
1217
|
*/
|
|
625
1218
|
ɵAggregationFunctionExpression._instanceOfKey = 'devkit_AggregationFunctionExpression';
|
|
626
1219
|
|
|
1220
|
+
/**
|
|
1221
|
+
* @public
|
|
1222
|
+
* @description A class that describes expression part of date function.
|
|
1223
|
+
* @extends {ɵArgumentFunctionExpression}
|
|
1224
|
+
*/
|
|
627
1225
|
class ɵDatePartFunctionExpression extends ɵArgumentFunctionExpression {
|
|
628
1226
|
/**
|
|
629
1227
|
* @internal
|
|
@@ -634,6 +1232,9 @@ class ɵDatePartFunctionExpression extends ɵArgumentFunctionExpression {
|
|
|
634
1232
|
}
|
|
635
1233
|
constructor(config) {
|
|
636
1234
|
super(config);
|
|
1235
|
+
/**
|
|
1236
|
+
* @description Function type. Default 'DatePart'.
|
|
1237
|
+
*/
|
|
637
1238
|
this.functionType = ɵFunctionType.DatePart;
|
|
638
1239
|
this.datePartType = config === null || config === void 0 ? void 0 : config.datePartType;
|
|
639
1240
|
}
|
|
@@ -646,6 +1247,7 @@ class ɵDatePartFunctionExpression extends ɵArgumentFunctionExpression {
|
|
|
646
1247
|
const datePartType = dto['datePartType'];
|
|
647
1248
|
return new ɵDatePartFunctionExpression({ functionArgument, datePartType, isBlock: dto['isBlock'] });
|
|
648
1249
|
}
|
|
1250
|
+
/** {@inheritDoc ɵBaseExpression.clone} */
|
|
649
1251
|
clone() {
|
|
650
1252
|
return new ɵDatePartFunctionExpression(this);
|
|
651
1253
|
}
|
|
@@ -656,6 +1258,11 @@ class ɵDatePartFunctionExpression extends ɵArgumentFunctionExpression {
|
|
|
656
1258
|
*/
|
|
657
1259
|
ɵDatePartFunctionExpression._instanceOfKey = 'devkit_DatePartFunctionExpression';
|
|
658
1260
|
|
|
1261
|
+
/**
|
|
1262
|
+
* @public
|
|
1263
|
+
* @description A class that describes expression with length function.
|
|
1264
|
+
* @extends {ɵArgumentFunctionExpression}
|
|
1265
|
+
*/
|
|
659
1266
|
class ɵLengthFunctionExpression extends ɵArgumentFunctionExpression {
|
|
660
1267
|
/**
|
|
661
1268
|
* @internal
|
|
@@ -666,6 +1273,9 @@ class ɵLengthFunctionExpression extends ɵArgumentFunctionExpression {
|
|
|
666
1273
|
}
|
|
667
1274
|
constructor(config) {
|
|
668
1275
|
super(config);
|
|
1276
|
+
/**
|
|
1277
|
+
* @description Function type. Default 'Length'.
|
|
1278
|
+
*/
|
|
669
1279
|
this.functionType = ɵFunctionType.Length;
|
|
670
1280
|
}
|
|
671
1281
|
/**
|
|
@@ -676,6 +1286,9 @@ class ɵLengthFunctionExpression extends ɵArgumentFunctionExpression {
|
|
|
676
1286
|
const functionArgument = expressionParser === null || expressionParser === void 0 ? void 0 : expressionParser.fromJson(dto['functionArgument'], filterParser);
|
|
677
1287
|
return new ɵLengthFunctionExpression({ functionArgument, isBlock: dto['isBlock'] });
|
|
678
1288
|
}
|
|
1289
|
+
/**
|
|
1290
|
+
* @description Method to create cloned instance.
|
|
1291
|
+
*/
|
|
679
1292
|
clone() {
|
|
680
1293
|
return new ɵLengthFunctionExpression(this);
|
|
681
1294
|
}
|
|
@@ -686,6 +1299,11 @@ class ɵLengthFunctionExpression extends ɵArgumentFunctionExpression {
|
|
|
686
1299
|
*/
|
|
687
1300
|
ɵLengthFunctionExpression._instanceOfKey = 'devkit_LengthFunctionExpression';
|
|
688
1301
|
|
|
1302
|
+
/**
|
|
1303
|
+
* @public
|
|
1304
|
+
* @description A class that describes expression with macros function.
|
|
1305
|
+
* @extends {ɵFunctionExpression}
|
|
1306
|
+
*/
|
|
689
1307
|
class ɵMacrosFunctionExpression extends ɵFunctionExpression {
|
|
690
1308
|
/**
|
|
691
1309
|
* @internal
|
|
@@ -696,6 +1314,9 @@ class ɵMacrosFunctionExpression extends ɵFunctionExpression {
|
|
|
696
1314
|
}
|
|
697
1315
|
constructor(config) {
|
|
698
1316
|
super(config);
|
|
1317
|
+
/**
|
|
1318
|
+
* @description Function type. Default 'Macros'.
|
|
1319
|
+
*/
|
|
699
1320
|
this.functionType = ɵFunctionType.Macros;
|
|
700
1321
|
this.macrosType = config === null || config === void 0 ? void 0 : config.macrosType;
|
|
701
1322
|
this.functionArgument = config === null || config === void 0 ? void 0 : config.functionArgument;
|
|
@@ -710,6 +1331,9 @@ class ɵMacrosFunctionExpression extends ɵFunctionExpression {
|
|
|
710
1331
|
: undefined;
|
|
711
1332
|
return new ɵMacrosFunctionExpression({ functionArgument, macrosType: dto['macrosType'] });
|
|
712
1333
|
}
|
|
1334
|
+
/**
|
|
1335
|
+
* @description method to create cloned instance.
|
|
1336
|
+
*/
|
|
713
1337
|
clone() {
|
|
714
1338
|
return new ɵMacrosFunctionExpression(this);
|
|
715
1339
|
}
|
|
@@ -727,6 +1351,11 @@ class ɵMacrosFunctionExpression extends ɵFunctionExpression {
|
|
|
727
1351
|
*/
|
|
728
1352
|
ɵMacrosFunctionExpression._instanceOfKey = 'devkit_MacrosFunctionExpression';
|
|
729
1353
|
|
|
1354
|
+
/**
|
|
1355
|
+
* @public
|
|
1356
|
+
* @description A class that describes expression with window function.
|
|
1357
|
+
* @extends {ɵArgumentFunctionExpression}
|
|
1358
|
+
*/
|
|
730
1359
|
class ɵWindowFunctionExpression extends ɵArgumentFunctionExpression {
|
|
731
1360
|
/**
|
|
732
1361
|
* @internal
|
|
@@ -737,6 +1366,9 @@ class ɵWindowFunctionExpression extends ɵArgumentFunctionExpression {
|
|
|
737
1366
|
}
|
|
738
1367
|
constructor(config) {
|
|
739
1368
|
super(config);
|
|
1369
|
+
/**
|
|
1370
|
+
* @description Function type.
|
|
1371
|
+
*/
|
|
740
1372
|
this.functionType = ɵFunctionType.Window;
|
|
741
1373
|
}
|
|
742
1374
|
/**
|
|
@@ -747,6 +1379,7 @@ class ɵWindowFunctionExpression extends ɵArgumentFunctionExpression {
|
|
|
747
1379
|
const functionArgument = expressionParser === null || expressionParser === void 0 ? void 0 : expressionParser.fromJson(dto['functionArgument'], filterParser);
|
|
748
1380
|
return new ɵWindowFunctionExpression({ functionArgument, isBlock: dto['isBlock'] });
|
|
749
1381
|
}
|
|
1382
|
+
/** {@inheritDoc ɵBaseExpression.clone} */
|
|
750
1383
|
clone() {
|
|
751
1384
|
return new ɵWindowFunctionExpression(this);
|
|
752
1385
|
}
|
|
@@ -757,6 +1390,11 @@ class ɵWindowFunctionExpression extends ɵArgumentFunctionExpression {
|
|
|
757
1390
|
*/
|
|
758
1391
|
ɵWindowFunctionExpression._instanceOfKey = 'devkit_WindowFunctionExpression';
|
|
759
1392
|
|
|
1393
|
+
/**
|
|
1394
|
+
* @public
|
|
1395
|
+
* @description The class that defines the parametric expression.
|
|
1396
|
+
* @extends {ɵBaseExpression}
|
|
1397
|
+
*/
|
|
760
1398
|
class ɵParameterExpression extends ɵBaseExpression {
|
|
761
1399
|
/**
|
|
762
1400
|
* @internal
|
|
@@ -768,6 +1406,9 @@ class ɵParameterExpression extends ɵBaseExpression {
|
|
|
768
1406
|
constructor(config) {
|
|
769
1407
|
var _a;
|
|
770
1408
|
super(config);
|
|
1409
|
+
/**
|
|
1410
|
+
* @description Type of expression.
|
|
1411
|
+
*/
|
|
771
1412
|
this.expressionType = ɵExpressionType.Parameter;
|
|
772
1413
|
const value = config === null || config === void 0 ? void 0 : config.value;
|
|
773
1414
|
if (value instanceof Date) {
|
|
@@ -831,6 +1472,9 @@ class ɵParameterExpression extends ɵBaseExpression {
|
|
|
831
1472
|
};
|
|
832
1473
|
}
|
|
833
1474
|
}
|
|
1475
|
+
/**
|
|
1476
|
+
* @description Returns cloned instance.
|
|
1477
|
+
*/
|
|
834
1478
|
clone() {
|
|
835
1479
|
return new ɵParameterExpression(this);
|
|
836
1480
|
}
|
|
@@ -855,6 +1499,12 @@ __decorate([
|
|
|
855
1499
|
__metadata("design:type", Number)
|
|
856
1500
|
], ɵParameterExpression.prototype, "dataValueType", void 0);
|
|
857
1501
|
|
|
1502
|
+
/**
|
|
1503
|
+
* @public
|
|
1504
|
+
* @abstract
|
|
1505
|
+
* @description The base class of the filter.
|
|
1506
|
+
* @extends {ɵSerializable}
|
|
1507
|
+
*/
|
|
858
1508
|
class ɵBaseFilter {
|
|
859
1509
|
/**
|
|
860
1510
|
* @internal
|
|
@@ -863,13 +1513,25 @@ class ɵBaseFilter {
|
|
|
863
1513
|
static get _instanceOfKeys() {
|
|
864
1514
|
return [this._instanceOfKey];
|
|
865
1515
|
}
|
|
1516
|
+
/**
|
|
1517
|
+
* @public
|
|
1518
|
+
* @description Method for checking if an instance is of the current class type.
|
|
1519
|
+
* @param instance - The instance to check.
|
|
1520
|
+
* @returns `true` if the instance is of the current class type, `false` otherwise.
|
|
1521
|
+
*/
|
|
866
1522
|
static [Symbol.hasInstance](instance) {
|
|
867
1523
|
var _a, _b;
|
|
868
1524
|
const instanceOfKeys = (_b = (_a = instance === null || instance === void 0 ? void 0 : instance.constructor) === null || _a === void 0 ? void 0 : _a['_instanceOfKeys']) !== null && _b !== void 0 ? _b : [];
|
|
869
1525
|
return instanceOfKeys.includes(this._instanceOfKey);
|
|
870
1526
|
}
|
|
871
1527
|
constructor(filterType) {
|
|
1528
|
+
/**
|
|
1529
|
+
* @description Indicates that the filter is active and will be taken into account when building the query.
|
|
1530
|
+
*/
|
|
872
1531
|
this.isEnabled = true;
|
|
1532
|
+
/**
|
|
1533
|
+
* @description Drop the time for the date / time type parameters.
|
|
1534
|
+
*/
|
|
873
1535
|
this.trimDateTimeParameterToDate = false;
|
|
874
1536
|
this.filterType = filterType;
|
|
875
1537
|
}
|
|
@@ -905,6 +1567,11 @@ class ɵBaseFilter {
|
|
|
905
1567
|
*/
|
|
906
1568
|
ɵBaseFilter._instanceOfKey = 'devkit_BaseFilter';
|
|
907
1569
|
|
|
1570
|
+
/**
|
|
1571
|
+
* @public
|
|
1572
|
+
* @description Basic filter class with one condition.
|
|
1573
|
+
* @extends {ɵBaseFilter}
|
|
1574
|
+
*/
|
|
908
1575
|
class ɵSingleFilter extends ɵBaseFilter {
|
|
909
1576
|
/**
|
|
910
1577
|
* @internal
|
|
@@ -916,8 +1583,9 @@ class ɵSingleFilter extends ɵBaseFilter {
|
|
|
916
1583
|
constructor(filterType, comparisonType, leftExpression) {
|
|
917
1584
|
super(filterType);
|
|
918
1585
|
this.comparisonType = comparisonType;
|
|
919
|
-
this.leftExpression = leftExpression.clone();
|
|
1586
|
+
this.leftExpression = leftExpression === null || leftExpression === void 0 ? void 0 : leftExpression.clone();
|
|
920
1587
|
}
|
|
1588
|
+
/** {@inheritDoc ɵSerializable.toJson} */
|
|
921
1589
|
toJson() {
|
|
922
1590
|
return Object.assign(Object.assign({}, super.toJson()), { leftExpression: this.serializeItem(this.leftExpression) });
|
|
923
1591
|
}
|
|
@@ -934,6 +1602,11 @@ class ɵSingleFilter extends ɵBaseFilter {
|
|
|
934
1602
|
*/
|
|
935
1603
|
ɵSingleFilter._instanceOfKey = 'devkit_SingleFilter';
|
|
936
1604
|
|
|
1605
|
+
/**
|
|
1606
|
+
* @public
|
|
1607
|
+
* @description Filter class of the "Between" type.
|
|
1608
|
+
* @extends {ɵSingleFilter}
|
|
1609
|
+
*/
|
|
937
1610
|
class ɵBetweenFilter extends ɵSingleFilter {
|
|
938
1611
|
/**
|
|
939
1612
|
* @internal
|
|
@@ -944,8 +1617,8 @@ class ɵBetweenFilter extends ɵSingleFilter {
|
|
|
944
1617
|
}
|
|
945
1618
|
constructor(leftExpression, rightLessExpression, rightGreaterExpression) {
|
|
946
1619
|
super(ɵFilterType.Between, ɵComparisonType.Between, leftExpression);
|
|
947
|
-
this.rightLessExpression = rightLessExpression.clone();
|
|
948
|
-
this.rightGreaterExpression = rightGreaterExpression.clone();
|
|
1620
|
+
this.rightLessExpression = rightLessExpression === null || rightLessExpression === void 0 ? void 0 : rightLessExpression.clone();
|
|
1621
|
+
this.rightGreaterExpression = rightGreaterExpression === null || rightGreaterExpression === void 0 ? void 0 : rightGreaterExpression.clone();
|
|
949
1622
|
}
|
|
950
1623
|
/**
|
|
951
1624
|
* Parses filter from json.
|
|
@@ -981,6 +1654,11 @@ class ɵBetweenFilter extends ɵSingleFilter {
|
|
|
981
1654
|
*/
|
|
982
1655
|
ɵBetweenFilter._instanceOfKey = 'devkit_BetweenFilter';
|
|
983
1656
|
|
|
1657
|
+
/**
|
|
1658
|
+
* @public
|
|
1659
|
+
* @description Comparison filter class.
|
|
1660
|
+
* @extends {ɵSingleFilter}
|
|
1661
|
+
*/
|
|
984
1662
|
class ɵCompareFilter extends ɵSingleFilter {
|
|
985
1663
|
/**
|
|
986
1664
|
* @internal
|
|
@@ -991,7 +1669,7 @@ class ɵCompareFilter extends ɵSingleFilter {
|
|
|
991
1669
|
}
|
|
992
1670
|
constructor(comparisonType, leftExpression, rightExpression) {
|
|
993
1671
|
super(ɵFilterType.Compare, comparisonType, leftExpression);
|
|
994
|
-
this.rightExpression = rightExpression.clone();
|
|
1672
|
+
this.rightExpression = rightExpression === null || rightExpression === void 0 ? void 0 : rightExpression.clone();
|
|
995
1673
|
}
|
|
996
1674
|
/**
|
|
997
1675
|
* Parses filter from json.
|
|
@@ -1023,6 +1701,11 @@ class ɵCompareFilter extends ɵSingleFilter {
|
|
|
1023
1701
|
*/
|
|
1024
1702
|
ɵCompareFilter._instanceOfKey = 'devkit_CompareFilter';
|
|
1025
1703
|
|
|
1704
|
+
/**
|
|
1705
|
+
* @public
|
|
1706
|
+
* @description The comparison filter class [Exists according to the specified condition].
|
|
1707
|
+
* @extends {ɵSingleFilter}
|
|
1708
|
+
*/
|
|
1026
1709
|
class ɵExistsFilter extends ɵSingleFilter {
|
|
1027
1710
|
/**
|
|
1028
1711
|
* @internal
|
|
@@ -1042,15 +1725,24 @@ class ɵExistsFilter extends ɵSingleFilter {
|
|
|
1042
1725
|
*/
|
|
1043
1726
|
static fromJson(dto, filterParser, expressionParser) {
|
|
1044
1727
|
const leftExpression = expressionParser.fromJson(dto['leftExpression'], filterParser);
|
|
1045
|
-
const
|
|
1728
|
+
const subFiltersDto = dto['subFilters'];
|
|
1729
|
+
let subFilters;
|
|
1730
|
+
if (subFiltersDto) {
|
|
1731
|
+
subFilters = filterParser.fromJson(dto['subFilters']);
|
|
1732
|
+
}
|
|
1046
1733
|
return new ɵExistsFilter(leftExpression, subFilters, dto['comparisonType'], dto['isAggregative']);
|
|
1047
1734
|
}
|
|
1735
|
+
/**
|
|
1736
|
+
* @public
|
|
1737
|
+
* @description Clones instance.
|
|
1738
|
+
*/
|
|
1048
1739
|
clone() {
|
|
1049
1740
|
const filter = new ɵExistsFilter(this.leftExpression, this.subFilters, this.comparisonType, this.isAggregative);
|
|
1050
1741
|
filter.isEnabled = this.isEnabled;
|
|
1051
1742
|
filter.trimDateTimeParameterToDate = this.trimDateTimeParameterToDate;
|
|
1052
1743
|
return filter;
|
|
1053
1744
|
}
|
|
1745
|
+
/** {@inheritDoc ɵSerializable.toJson} */
|
|
1054
1746
|
toJson() {
|
|
1055
1747
|
const result = super.toJson();
|
|
1056
1748
|
if (this.subFilters) {
|
|
@@ -1072,6 +1764,11 @@ class ɵExistsFilter extends ɵSingleFilter {
|
|
|
1072
1764
|
*/
|
|
1073
1765
|
ɵExistsFilter._instanceOfKey = 'devkit_ExistsFilter';
|
|
1074
1766
|
|
|
1767
|
+
/**
|
|
1768
|
+
* @public
|
|
1769
|
+
* @description In-Filter Class
|
|
1770
|
+
* @extends {ɵSingleFilter}
|
|
1771
|
+
*/
|
|
1075
1772
|
class ɵInFilter extends ɵSingleFilter {
|
|
1076
1773
|
/**
|
|
1077
1774
|
* @internal
|
|
@@ -1081,11 +1778,12 @@ class ɵInFilter extends ɵSingleFilter {
|
|
|
1081
1778
|
return [...ɵSingleFilter._instanceOfKeys, this._instanceOfKey];
|
|
1082
1779
|
}
|
|
1083
1780
|
constructor(comparisonType, leftExpression, rightExpressions) {
|
|
1781
|
+
var _a;
|
|
1084
1782
|
super(ɵFilterType.In, comparisonType, leftExpression);
|
|
1085
|
-
this.rightExpressions = rightExpressions.map((expression) => expression.clone());
|
|
1783
|
+
this.rightExpressions = (_a = rightExpressions.map((expression) => expression === null || expression === void 0 ? void 0 : expression.clone())) !== null && _a !== void 0 ? _a : [];
|
|
1086
1784
|
}
|
|
1087
1785
|
/**
|
|
1088
|
-
* Parses in filter from json.
|
|
1786
|
+
* @description Parses in filter from json.
|
|
1089
1787
|
* @public
|
|
1090
1788
|
*/
|
|
1091
1789
|
static fromJson(dto, filterParser, expressionParser) {
|
|
@@ -1093,12 +1791,14 @@ class ɵInFilter extends ɵSingleFilter {
|
|
|
1093
1791
|
const dtoRightExpressions = ((_a = dto['rightExpressions']) !== null && _a !== void 0 ? _a : []);
|
|
1094
1792
|
return new ɵInFilter(dto['comparisonType'], expressionParser.fromJson(dto['leftExpression'], filterParser), dtoRightExpressions.map((expression) => expressionParser.fromJson(expression, filterParser)));
|
|
1095
1793
|
}
|
|
1794
|
+
/** {@inheritDoc ɵBaseFilter.clone} */
|
|
1096
1795
|
clone() {
|
|
1097
1796
|
const filter = new ɵInFilter(this.comparisonType, this.leftExpression, this.rightExpressions);
|
|
1098
1797
|
filter.isEnabled = this.isEnabled;
|
|
1099
1798
|
filter.trimDateTimeParameterToDate = this.trimDateTimeParameterToDate;
|
|
1100
1799
|
return filter;
|
|
1101
1800
|
}
|
|
1801
|
+
/** {@inheritDoc ɵSerializable.toJson} */
|
|
1102
1802
|
toJson() {
|
|
1103
1803
|
return Object.assign(Object.assign({}, super.toJson()), { rightExpressions: this.rightExpressions.map((expression) => this.serializeItem(expression)) });
|
|
1104
1804
|
}
|
|
@@ -1118,6 +1818,11 @@ class ɵInFilter extends ɵSingleFilter {
|
|
|
1118
1818
|
*/
|
|
1119
1819
|
ɵInFilter._instanceOfKey = 'devkit_InFilter';
|
|
1120
1820
|
|
|
1821
|
+
/**
|
|
1822
|
+
* @public
|
|
1823
|
+
* @description IsNull filter Class
|
|
1824
|
+
* @extends {ɵSingleFilter}
|
|
1825
|
+
*/
|
|
1121
1826
|
class ɵIsNullFilter extends ɵSingleFilter {
|
|
1122
1827
|
/**
|
|
1123
1828
|
* @internal
|
|
@@ -1129,16 +1834,20 @@ class ɵIsNullFilter extends ɵSingleFilter {
|
|
|
1129
1834
|
constructor(comparisonType, leftExpression) {
|
|
1130
1835
|
super(ɵFilterType.IsNull, comparisonType, leftExpression);
|
|
1131
1836
|
}
|
|
1837
|
+
/**
|
|
1838
|
+
* @description Flag that indicates if expression is empty or not.
|
|
1839
|
+
*/
|
|
1132
1840
|
get isNull() {
|
|
1133
1841
|
return this.comparisonType === ɵComparisonType.Is_null;
|
|
1134
1842
|
}
|
|
1135
1843
|
/**
|
|
1136
|
-
* Parses isNull filter from json.
|
|
1844
|
+
* @description Parses isNull filter from json.
|
|
1137
1845
|
* @public
|
|
1138
1846
|
*/
|
|
1139
1847
|
static fromJson(dto, filterParser, expressionParser) {
|
|
1140
1848
|
return new ɵIsNullFilter(dto['comparisonType'], expressionParser.fromJson(dto['leftExpression'], filterParser));
|
|
1141
1849
|
}
|
|
1850
|
+
/** {@inheritDoc ɵBaseFilter.clone} */
|
|
1142
1851
|
clone() {
|
|
1143
1852
|
const filter = new ɵIsNullFilter(this.comparisonType, this.leftExpression);
|
|
1144
1853
|
filter.isEnabled = this.isEnabled;
|
|
@@ -1158,17 +1867,17 @@ __decorate([
|
|
|
1158
1867
|
], ɵIsNullFilter.prototype, "isNull", null);
|
|
1159
1868
|
|
|
1160
1869
|
/**
|
|
1161
|
-
* Empty Guid constant.
|
|
1162
1870
|
* @public
|
|
1871
|
+
* @description Empty Guid constant.
|
|
1163
1872
|
*/
|
|
1164
1873
|
const ɵEMPTY_GUID = '00000000-0000-0000-0000-000000000000';
|
|
1165
1874
|
/**
|
|
1166
|
-
* Regular expression for Guid validation.
|
|
1875
|
+
* @description Regular expression for Guid validation.
|
|
1167
1876
|
* @public
|
|
1168
1877
|
*/
|
|
1169
1878
|
const validator = new RegExp('^[a-z0-9]{8}-[a-z0-9]{4}-[a-z0-9]{4}-[a-z0-9]{4}-[a-z0-9]{12}$', 'i');
|
|
1170
1879
|
/**
|
|
1171
|
-
* Generates guid part.
|
|
1880
|
+
* @description Generates guid part.
|
|
1172
1881
|
* @param length Part length.
|
|
1173
1882
|
* @public
|
|
1174
1883
|
*/
|
|
@@ -1181,7 +1890,7 @@ function generateGuidPart(length) {
|
|
|
1181
1890
|
return out;
|
|
1182
1891
|
}
|
|
1183
1892
|
/**
|
|
1184
|
-
* Generates new Guid.
|
|
1893
|
+
* @description Generates new Guid.
|
|
1185
1894
|
* @public
|
|
1186
1895
|
*/
|
|
1187
1896
|
function ɵgenerateGuid() {
|
|
@@ -1194,7 +1903,7 @@ function ɵgenerateGuid() {
|
|
|
1194
1903
|
].join('-');
|
|
1195
1904
|
}
|
|
1196
1905
|
/**
|
|
1197
|
-
* Checks if value is Guid.
|
|
1906
|
+
* @description Checks if value is Guid.
|
|
1198
1907
|
* @param value Value for check.
|
|
1199
1908
|
* @public
|
|
1200
1909
|
*/
|
|
@@ -1202,7 +1911,7 @@ function ɵisGuid(value) {
|
|
|
1202
1911
|
return Boolean(value) && validator.test(value);
|
|
1203
1912
|
}
|
|
1204
1913
|
/**
|
|
1205
|
-
* Checks if Guid is empty value or equal to EMPTY_GUID.
|
|
1914
|
+
* @description Checks if Guid is empty value or equal to EMPTY_GUID.
|
|
1206
1915
|
* @param guid Guid for check.
|
|
1207
1916
|
* @public
|
|
1208
1917
|
*/
|
|
@@ -1212,6 +1921,7 @@ function ɵisEmptyGuid(guid) {
|
|
|
1212
1921
|
|
|
1213
1922
|
/**
|
|
1214
1923
|
* @public
|
|
1924
|
+
* @description An exception thrown when next handler already specified.
|
|
1215
1925
|
*/
|
|
1216
1926
|
class ɵNextHandlerAlreadySpecifiedException extends Error {
|
|
1217
1927
|
constructor() {
|
|
@@ -1219,6 +1929,11 @@ class ɵNextHandlerAlreadySpecifiedException extends Error {
|
|
|
1219
1929
|
}
|
|
1220
1930
|
}
|
|
1221
1931
|
|
|
1932
|
+
/**
|
|
1933
|
+
* @public
|
|
1934
|
+
* @description The exception thrown when trying to pass an empty or null argument.
|
|
1935
|
+
* @extends {Error}
|
|
1936
|
+
*/
|
|
1222
1937
|
class ɵArgumentEmptyException extends Error {
|
|
1223
1938
|
// region Constructors: Public
|
|
1224
1939
|
constructor(argumentName) {
|
|
@@ -1226,6 +1941,11 @@ class ɵArgumentEmptyException extends Error {
|
|
|
1226
1941
|
}
|
|
1227
1942
|
}
|
|
1228
1943
|
|
|
1944
|
+
/**
|
|
1945
|
+
* @public
|
|
1946
|
+
* @description The exception thrown when trying to pass argument that not in range.
|
|
1947
|
+
* @extends {Error}
|
|
1948
|
+
*/
|
|
1229
1949
|
class ɵArgumentOutOfRangeException extends Error {
|
|
1230
1950
|
// region Constructors: Public
|
|
1231
1951
|
constructor(argumentName) {
|
|
@@ -1233,6 +1953,11 @@ class ɵArgumentOutOfRangeException extends Error {
|
|
|
1233
1953
|
}
|
|
1234
1954
|
}
|
|
1235
1955
|
|
|
1956
|
+
/**
|
|
1957
|
+
* @public
|
|
1958
|
+
* @description An exception thrown when trying to retrieve a collection item and it not exists.
|
|
1959
|
+
* @extends {Error}
|
|
1960
|
+
*/
|
|
1236
1961
|
class ɵItemNotFoundException extends Error {
|
|
1237
1962
|
// region Constructors: Public
|
|
1238
1963
|
constructor(key) {
|
|
@@ -1240,19 +1965,41 @@ class ɵItemNotFoundException extends Error {
|
|
|
1240
1965
|
}
|
|
1241
1966
|
}
|
|
1242
1967
|
|
|
1968
|
+
/**
|
|
1969
|
+
* @public
|
|
1970
|
+
* @description Utilities class with various validation methods.
|
|
1971
|
+
*/
|
|
1243
1972
|
class ɵValidationUtilities {
|
|
1244
1973
|
// region Methods: Public
|
|
1974
|
+
/**
|
|
1975
|
+
* @public
|
|
1976
|
+
* @description Checks if argument is empty.
|
|
1977
|
+
* @param argumentName - Argument name.
|
|
1978
|
+
* @param argumentValue - Value of argument.
|
|
1979
|
+
*/
|
|
1245
1980
|
static checkArgumentEmpty(argumentName, argumentValue) {
|
|
1246
1981
|
if (argumentValue === undefined || argumentValue === null) {
|
|
1247
1982
|
throw new ɵArgumentEmptyException(argumentName);
|
|
1248
1983
|
}
|
|
1249
1984
|
}
|
|
1985
|
+
/**
|
|
1986
|
+
* @public
|
|
1987
|
+
* @description Checks if array is empty.
|
|
1988
|
+
* @param argumentName - Argument name.
|
|
1989
|
+
* @param argumentValue - Value of argument.
|
|
1990
|
+
*/
|
|
1250
1991
|
static checkArrayEmpty(argumentName, argumentValue) {
|
|
1251
1992
|
ɵValidationUtilities.checkArgumentEmpty(argumentName, argumentValue);
|
|
1252
1993
|
if (argumentValue.length === 0) {
|
|
1253
1994
|
throw new ɵArgumentEmptyException(argumentName);
|
|
1254
1995
|
}
|
|
1255
1996
|
}
|
|
1997
|
+
/**
|
|
1998
|
+
* @public
|
|
1999
|
+
* @description Checks if string is empty.
|
|
2000
|
+
* @param argumentName - Argument name.
|
|
2001
|
+
* @param argumentValue - Value of argument.
|
|
2002
|
+
*/
|
|
1256
2003
|
static checkStringIsNotEmpty(argumentName, argumentValue) {
|
|
1257
2004
|
this.checkArgumentEmpty(argumentName, argumentValue);
|
|
1258
2005
|
if (argumentValue === '') {
|
|
@@ -1260,6 +2007,13 @@ class ɵValidationUtilities {
|
|
|
1260
2007
|
}
|
|
1261
2008
|
return argumentValue;
|
|
1262
2009
|
}
|
|
2010
|
+
/**
|
|
2011
|
+
* @public
|
|
2012
|
+
* @description Checks if argument in range.
|
|
2013
|
+
* @param argumentName - Argument name.
|
|
2014
|
+
* @param argumentValue - Value of argument.
|
|
2015
|
+
* @param range - Range.
|
|
2016
|
+
*/
|
|
1263
2017
|
static checkArgumentOutOfRange(argumentName, argumentValue, range) {
|
|
1264
2018
|
if (range.begin && argumentValue < range.begin) {
|
|
1265
2019
|
throw new ɵArgumentOutOfRangeException(argumentName);
|
|
@@ -1268,8 +2022,19 @@ class ɵValidationUtilities {
|
|
|
1268
2022
|
throw new ɵArgumentOutOfRangeException(argumentName);
|
|
1269
2023
|
}
|
|
1270
2024
|
}
|
|
2025
|
+
static checkEnumOutOfRange(argumentName, argumentValue, range) {
|
|
2026
|
+
if (!range || !Object.values(range).includes(argumentValue)) {
|
|
2027
|
+
throw new ɵArgumentOutOfRangeException(argumentName);
|
|
2028
|
+
}
|
|
2029
|
+
}
|
|
1271
2030
|
}
|
|
1272
2031
|
|
|
2032
|
+
/**
|
|
2033
|
+
* @public
|
|
2034
|
+
* @description Group of filters. Groups of filters can be nested into each other,
|
|
2035
|
+
* i.e. The collection itself can be an element of another collection.
|
|
2036
|
+
* @extends {ɵBaseFilter}
|
|
2037
|
+
*/
|
|
1273
2038
|
class ɵFilterGroup extends ɵBaseFilter {
|
|
1274
2039
|
/**
|
|
1275
2040
|
* @internal
|
|
@@ -1278,6 +2043,10 @@ class ɵFilterGroup extends ɵBaseFilter {
|
|
|
1278
2043
|
static get _instanceOfKeys() {
|
|
1279
2044
|
return [...ɵBaseFilter._instanceOfKeys, this._instanceOfKey];
|
|
1280
2045
|
}
|
|
2046
|
+
/**
|
|
2047
|
+
* @public
|
|
2048
|
+
* @description Return collecion of deserialized filters.
|
|
2049
|
+
*/
|
|
1281
2050
|
get items() {
|
|
1282
2051
|
const result = {};
|
|
1283
2052
|
this.filters.forEach((filter, key) => {
|
|
@@ -1287,13 +2056,17 @@ class ɵFilterGroup extends ɵBaseFilter {
|
|
|
1287
2056
|
}
|
|
1288
2057
|
constructor(logicalOperation = ɵLogicalOperatorType.And, rootSchemaName) {
|
|
1289
2058
|
super(ɵFilterType.FilterGroup);
|
|
2059
|
+
/**
|
|
2060
|
+
* @public
|
|
2061
|
+
* @description Collection of child filters.
|
|
2062
|
+
*/
|
|
1290
2063
|
this.filters = new Map();
|
|
1291
2064
|
this.logicalOperation = logicalOperation;
|
|
1292
2065
|
this.rootSchemaName = rootSchemaName;
|
|
1293
2066
|
}
|
|
1294
2067
|
/**
|
|
1295
|
-
* Parses filter group from json.
|
|
1296
2068
|
* @public
|
|
2069
|
+
* @description Parses filter group from json.
|
|
1297
2070
|
*/
|
|
1298
2071
|
static fromJson(dto, filterParser) {
|
|
1299
2072
|
const logicalOperation = dto['logicalOperation'];
|
|
@@ -1303,10 +2076,7 @@ class ɵFilterGroup extends ɵBaseFilter {
|
|
|
1303
2076
|
});
|
|
1304
2077
|
return group;
|
|
1305
2078
|
}
|
|
1306
|
-
/**
|
|
1307
|
-
* Converts instance to json object.
|
|
1308
|
-
* @public
|
|
1309
|
-
*/
|
|
2079
|
+
/** {@inheritDoc ɵSerializable.toJson} */
|
|
1310
2080
|
toJson() {
|
|
1311
2081
|
const result = {};
|
|
1312
2082
|
result['filterType'] = this.filterType;
|
|
@@ -1325,7 +2095,8 @@ class ɵFilterGroup extends ɵBaseFilter {
|
|
|
1325
2095
|
}));
|
|
1326
2096
|
}
|
|
1327
2097
|
/**
|
|
1328
|
-
*
|
|
2098
|
+
* @public
|
|
2099
|
+
* @description Returns filter item by index.
|
|
1329
2100
|
* @param index Item index.
|
|
1330
2101
|
* @returns Filter.
|
|
1331
2102
|
*/
|
|
@@ -1333,7 +2104,8 @@ class ɵFilterGroup extends ɵBaseFilter {
|
|
|
1333
2104
|
return this.items[Object.keys(this.items)[index]];
|
|
1334
2105
|
}
|
|
1335
2106
|
/**
|
|
1336
|
-
*
|
|
2107
|
+
* @public
|
|
2108
|
+
* @description Creates and adds compare filter by value.
|
|
1337
2109
|
* @param comparisonType Comparison type.
|
|
1338
2110
|
* @param columnPath Column path.
|
|
1339
2111
|
* @param parameterValue Parameter value.
|
|
@@ -1346,7 +2118,8 @@ class ɵFilterGroup extends ɵBaseFilter {
|
|
|
1346
2118
|
this.add(filter, filterKey);
|
|
1347
2119
|
}
|
|
1348
2120
|
/**
|
|
1349
|
-
*
|
|
2121
|
+
* @public
|
|
2122
|
+
* @description Creates and adds in filter by values.
|
|
1350
2123
|
* @param comparisonType Comparison type.
|
|
1351
2124
|
* @param columnPath Column path.
|
|
1352
2125
|
* @param parameterValues Parameter values.
|
|
@@ -1359,7 +2132,8 @@ class ɵFilterGroup extends ɵBaseFilter {
|
|
|
1359
2132
|
this.add(filter, filterKey);
|
|
1360
2133
|
}
|
|
1361
2134
|
/**
|
|
1362
|
-
*
|
|
2135
|
+
* @public
|
|
2136
|
+
* @description Creates and adds in filter for primary column.
|
|
1363
2137
|
* @param primaryColumnValues Primary column values.
|
|
1364
2138
|
* @param filterKey Filter key.
|
|
1365
2139
|
*/
|
|
@@ -1369,13 +2143,20 @@ class ɵFilterGroup extends ɵBaseFilter {
|
|
|
1369
2143
|
const filter = new ɵInFilter(ɵComparisonType.Equal, leftExpression, expressions);
|
|
1370
2144
|
this.add(filter, filterKey);
|
|
1371
2145
|
}
|
|
2146
|
+
/**
|
|
2147
|
+
* @public
|
|
2148
|
+
* @description Creates and adds null filter.
|
|
2149
|
+
* @param columnPath Path of column.
|
|
2150
|
+
* @param filterKey Filter key.
|
|
2151
|
+
*/
|
|
1372
2152
|
addSchemaColumnIsNullFilter(columnPath, filterKey) {
|
|
1373
2153
|
const leftExpression = new ɵColumnExpression({ columnPath });
|
|
1374
2154
|
const filter = new ɵIsNullFilter(ɵComparisonType.Is_null, leftExpression);
|
|
1375
2155
|
this.add(filter, filterKey);
|
|
1376
2156
|
}
|
|
1377
2157
|
/**
|
|
1378
|
-
*
|
|
2158
|
+
* @public
|
|
2159
|
+
* @description Creates and adds not null filter.
|
|
1379
2160
|
* @param columnPath Column path.
|
|
1380
2161
|
* @param filterKey Filter key.
|
|
1381
2162
|
*/
|
|
@@ -1385,7 +2166,8 @@ class ɵFilterGroup extends ɵBaseFilter {
|
|
|
1385
2166
|
this.add(filter, filterKey);
|
|
1386
2167
|
}
|
|
1387
2168
|
/**
|
|
1388
|
-
*
|
|
2169
|
+
* @public
|
|
2170
|
+
* @description Creates and adds filter between less value and greater value.
|
|
1389
2171
|
* @param columnPath Column path.
|
|
1390
2172
|
* @param lessParamValue Less parameter value.
|
|
1391
2173
|
* @param greaterParamValue Greater parameter value.
|
|
@@ -1398,21 +2180,45 @@ class ɵFilterGroup extends ɵBaseFilter {
|
|
|
1398
2180
|
const filter = new ɵBetweenFilter(leftExpression, rightLessExpression, rightGreaterExpression);
|
|
1399
2181
|
this.add(filter, filterKey);
|
|
1400
2182
|
}
|
|
2183
|
+
/**
|
|
2184
|
+
* @public
|
|
2185
|
+
* @description Creates and adds exists filter.
|
|
2186
|
+
* @param columnPath Column path.
|
|
2187
|
+
* @param subFilters Filters for exists expression.
|
|
2188
|
+
* @param filterKey Filter key.
|
|
2189
|
+
*/
|
|
1401
2190
|
addExistsFilter(columnPath, subFilters, filterKey) {
|
|
1402
2191
|
const leftExpression = new ɵColumnExpression({ columnPath });
|
|
1403
2192
|
const filter = new ɵExistsFilter(leftExpression, subFilters);
|
|
1404
2193
|
this.add(filter, filterKey);
|
|
1405
2194
|
}
|
|
2195
|
+
/**
|
|
2196
|
+
* @public
|
|
2197
|
+
* @description Creates and adds not exists filter.
|
|
2198
|
+
* @param columnPath Column path.
|
|
2199
|
+
* @param subFilters Filters for exist expression.
|
|
2200
|
+
* @param filterKey Filter key.
|
|
2201
|
+
*/
|
|
1406
2202
|
addNotExistsFilter(columnPath, subFilters, filterKey) {
|
|
1407
2203
|
const leftExpression = new ɵColumnExpression({ columnPath });
|
|
1408
2204
|
const filter = new ɵExistsFilter(leftExpression, subFilters, ɵComparisonType.Not_exists);
|
|
1409
2205
|
this.add(filter, filterKey);
|
|
1410
2206
|
}
|
|
2207
|
+
/**
|
|
2208
|
+
* @public
|
|
2209
|
+
* @description Adds filter.
|
|
2210
|
+
* @param filter Instance of filter.
|
|
2211
|
+
* @param filterKey Filter key.
|
|
2212
|
+
*/
|
|
1411
2213
|
add(filter, filterKey) {
|
|
1412
2214
|
ɵValidationUtilities.checkArgumentEmpty('filter', filter);
|
|
1413
2215
|
const key = filterKey || ɵgenerateGuid();
|
|
1414
2216
|
this.filters.set(key, filter);
|
|
1415
2217
|
}
|
|
2218
|
+
/**
|
|
2219
|
+
* @public
|
|
2220
|
+
* @description Clones instance.
|
|
2221
|
+
*/
|
|
1416
2222
|
clone() {
|
|
1417
2223
|
const filterGroup = new ɵFilterGroup(this.logicalOperation, this.rootSchemaName);
|
|
1418
2224
|
this.filters.forEach((filter, filterKey) => {
|
|
@@ -1456,6 +2262,11 @@ __decorate([
|
|
|
1456
2262
|
__metadata("design:paramtypes", [])
|
|
1457
2263
|
], ɵFilterGroup.prototype, "items", null);
|
|
1458
2264
|
|
|
2265
|
+
/**
|
|
2266
|
+
* @public
|
|
2267
|
+
* @description The class that defines the sub query expression.
|
|
2268
|
+
* @extends {ɵBaseExpression}
|
|
2269
|
+
*/
|
|
1459
2270
|
class ɵSubQueryExpression extends ɵBaseExpression {
|
|
1460
2271
|
/**
|
|
1461
2272
|
* @internal
|
|
@@ -1466,6 +2277,9 @@ class ɵSubQueryExpression extends ɵBaseExpression {
|
|
|
1466
2277
|
}
|
|
1467
2278
|
constructor(config) {
|
|
1468
2279
|
super(config);
|
|
2280
|
+
/**
|
|
2281
|
+
* @description Type of expression.
|
|
2282
|
+
*/
|
|
1469
2283
|
this.expressionType = ɵExpressionType.SubQuery;
|
|
1470
2284
|
this.columnPath = config === null || config === void 0 ? void 0 : config.columnPath;
|
|
1471
2285
|
const subFilters = config === null || config === void 0 ? void 0 : config.subFilters;
|
|
@@ -1497,9 +2311,11 @@ class ɵSubQueryExpression extends ɵBaseExpression {
|
|
|
1497
2311
|
});
|
|
1498
2312
|
return expression;
|
|
1499
2313
|
}
|
|
2314
|
+
/** {@inheritDoc ɵBaseExpression.clone} */
|
|
1500
2315
|
clone() {
|
|
1501
2316
|
return new ɵSubQueryExpression(this);
|
|
1502
2317
|
}
|
|
2318
|
+
/** {@inheritDoc ɵBaseExpression.toJson} */
|
|
1503
2319
|
toJson() {
|
|
1504
2320
|
const result = super.toJson();
|
|
1505
2321
|
if (this.subFilters) {
|
|
@@ -1526,6 +2342,11 @@ class ɵSubQueryExpression extends ɵBaseExpression {
|
|
|
1526
2342
|
*/
|
|
1527
2343
|
ɵSubQueryExpression._instanceOfKey = 'devkit_SubQueryExpression';
|
|
1528
2344
|
|
|
2345
|
+
/**
|
|
2346
|
+
* @public
|
|
2347
|
+
* @description A class that describes expression with aggregation sub query.
|
|
2348
|
+
* @extends {ɵSubQueryExpression}
|
|
2349
|
+
*/
|
|
1529
2350
|
class ɵAggregationSubQueryExpression extends ɵSubQueryExpression {
|
|
1530
2351
|
/**
|
|
1531
2352
|
* @internal
|
|
@@ -1548,6 +2369,7 @@ class ɵAggregationSubQueryExpression extends ɵSubQueryExpression {
|
|
|
1548
2369
|
const expression = new ɵAggregationSubQueryExpression(Object.assign({ aggregationType: dto['aggregationType'], functionType: dto['functionType'] }, subQueryExpression));
|
|
1549
2370
|
return expression;
|
|
1550
2371
|
}
|
|
2372
|
+
/** {@inheritDoc ɵBaseExpression.clone} */
|
|
1551
2373
|
clone() {
|
|
1552
2374
|
return new ɵAggregationSubQueryExpression(this);
|
|
1553
2375
|
}
|
|
@@ -1559,8 +2381,8 @@ class ɵAggregationSubQueryExpression extends ɵSubQueryExpression {
|
|
|
1559
2381
|
ɵAggregationSubQueryExpression._instanceOfKey = 'devkit_AggregationSubQueryExpression';
|
|
1560
2382
|
|
|
1561
2383
|
/**
|
|
1562
|
-
* Function expression resolver.
|
|
1563
2384
|
* @public
|
|
2385
|
+
* @description Function expression resolver.
|
|
1564
2386
|
*/
|
|
1565
2387
|
class FunctionExpressionResolver {
|
|
1566
2388
|
static resolve(dto) {
|
|
@@ -1576,10 +2398,17 @@ class FunctionExpressionResolver {
|
|
|
1576
2398
|
}
|
|
1577
2399
|
}
|
|
1578
2400
|
/**
|
|
1579
|
-
* Expression resolver.
|
|
2401
|
+
* @description Expression resolver.
|
|
1580
2402
|
* @public
|
|
1581
2403
|
*/
|
|
1582
2404
|
class ɵExpressionResolver {
|
|
2405
|
+
/**
|
|
2406
|
+
* @public
|
|
2407
|
+
* @description Resolves class of expression.
|
|
2408
|
+
* @param expressionType - Type of expression.
|
|
2409
|
+
* @param dto - Serialized object.
|
|
2410
|
+
* @return Class of expression.
|
|
2411
|
+
*/
|
|
1583
2412
|
static resolve(expressionType, dto) {
|
|
1584
2413
|
const expressionClass = {
|
|
1585
2414
|
[ɵExpressionType.SchemaColumn]: ɵColumnExpression,
|
|
@@ -1593,13 +2422,14 @@ class ɵExpressionResolver {
|
|
|
1593
2422
|
}
|
|
1594
2423
|
|
|
1595
2424
|
/**
|
|
1596
|
-
* Expression parser.
|
|
1597
2425
|
* @public
|
|
2426
|
+
* @description Expression parser.
|
|
2427
|
+
* @extends {ɵBaseExpressionParser}
|
|
1598
2428
|
*/
|
|
1599
2429
|
class ɵExpressionParser extends ɵBaseExpressionParser {
|
|
1600
2430
|
/**
|
|
1601
|
-
* Parses expression from json.
|
|
1602
2431
|
* @public
|
|
2432
|
+
* @description Parses expression from json.
|
|
1603
2433
|
*/
|
|
1604
2434
|
static fromJson(dto, filterParser) {
|
|
1605
2435
|
const expressionType = dto['expressionType'];
|
|
@@ -1607,6 +2437,9 @@ class ɵExpressionParser extends ɵBaseExpressionParser {
|
|
|
1607
2437
|
}
|
|
1608
2438
|
}
|
|
1609
2439
|
|
|
2440
|
+
/**
|
|
2441
|
+
* @internal
|
|
2442
|
+
*/
|
|
1610
2443
|
const ɵEXPRESSION_TYPE_MOCK = -1;
|
|
1611
2444
|
class ɵExpressionMock extends ɵBaseExpression {
|
|
1612
2445
|
/**
|
|
@@ -1671,26 +2504,40 @@ class ɵFilterMock extends ɵBaseFilter {
|
|
|
1671
2504
|
*/
|
|
1672
2505
|
ɵFilterMock._instanceOfKey = 'devkit_FilterMock';
|
|
1673
2506
|
|
|
2507
|
+
/**
|
|
2508
|
+
* @internal
|
|
2509
|
+
*/
|
|
1674
2510
|
const ɵparserMock = {
|
|
1675
2511
|
fromJson: (data) => (Object.assign(Object.assign({}, data), { clone: () => data })),
|
|
1676
2512
|
clone: () => this,
|
|
1677
2513
|
};
|
|
1678
2514
|
|
|
1679
2515
|
/**
|
|
1680
|
-
* Filter parser interface
|
|
1681
2516
|
* @public
|
|
2517
|
+
* @description Filter parser interface.
|
|
1682
2518
|
*/
|
|
1683
2519
|
class ɵBaseFilterParser {
|
|
2520
|
+
/**
|
|
2521
|
+
* @description Creates filter from JSON.
|
|
2522
|
+
* @param dto - Serialized filter.
|
|
2523
|
+
* @return Instance of filter.
|
|
2524
|
+
*/
|
|
1684
2525
|
static fromJson(dto) {
|
|
1685
2526
|
throw new Error('not implemented');
|
|
1686
2527
|
}
|
|
1687
2528
|
}
|
|
1688
2529
|
|
|
1689
2530
|
/**
|
|
1690
|
-
* Filter resolver.
|
|
1691
2531
|
* @public
|
|
2532
|
+
* @description Filter resolver.
|
|
1692
2533
|
*/
|
|
1693
2534
|
class ɵFilterResolver {
|
|
2535
|
+
/**
|
|
2536
|
+
* @public
|
|
2537
|
+
* @description Resolves class of filter.
|
|
2538
|
+
* @param filterType - Type of filter.
|
|
2539
|
+
* @return Class of filter.
|
|
2540
|
+
*/
|
|
1694
2541
|
static resolve(filterType) {
|
|
1695
2542
|
const filterClass = {
|
|
1696
2543
|
[ɵFilterType.Compare]: ɵCompareFilter,
|
|
@@ -1705,10 +2552,14 @@ class ɵFilterResolver {
|
|
|
1705
2552
|
}
|
|
1706
2553
|
|
|
1707
2554
|
/**
|
|
1708
|
-
* Filter parser.
|
|
1709
2555
|
* @public
|
|
2556
|
+
* @description Filter parser.
|
|
1710
2557
|
*/
|
|
1711
2558
|
class ɵFilterParser extends ɵBaseFilterParser {
|
|
2559
|
+
/**
|
|
2560
|
+
* @description Creates filter from JSON.
|
|
2561
|
+
* @param dto - Serialized filter.
|
|
2562
|
+
*/
|
|
1712
2563
|
static fromJson(dto) {
|
|
1713
2564
|
const filterType = dto['filterType'];
|
|
1714
2565
|
const isEnabled = dto['isEnabled'];
|
|
@@ -1720,18 +2571,38 @@ class ɵFilterParser extends ɵBaseFilterParser {
|
|
|
1720
2571
|
}
|
|
1721
2572
|
}
|
|
1722
2573
|
|
|
2574
|
+
/**
|
|
2575
|
+
* @internal
|
|
2576
|
+
*/
|
|
1723
2577
|
const ɵDEFAULT_FILTER_PLAIN_OBJ = {
|
|
1724
2578
|
isEnabled: true,
|
|
1725
2579
|
trimDateTimeParameterToDate: false,
|
|
1726
2580
|
};
|
|
2581
|
+
/**
|
|
2582
|
+
* @internal
|
|
2583
|
+
*/
|
|
1727
2584
|
function ɵgetFilterPlainObj(filterPlainObj) {
|
|
1728
2585
|
return Object.assign(Object.assign({}, ɵDEFAULT_FILTER_PLAIN_OBJ), filterPlainObj);
|
|
1729
2586
|
}
|
|
1730
2587
|
|
|
2588
|
+
/**
|
|
2589
|
+
* @public
|
|
2590
|
+
* @abstract
|
|
2591
|
+
* @classdesc Class contains info about column for query.
|
|
2592
|
+
*/
|
|
1731
2593
|
class ɵBaseQueryColumn {
|
|
1732
2594
|
constructor(expression) {
|
|
2595
|
+
/**
|
|
2596
|
+
* @description Order direction.
|
|
2597
|
+
*/
|
|
1733
2598
|
this.orderDirection = ɵOrderDirection.None;
|
|
2599
|
+
/**
|
|
2600
|
+
* @description Column order position.
|
|
2601
|
+
*/
|
|
1734
2602
|
this.orderPosition = -1;
|
|
2603
|
+
/**
|
|
2604
|
+
* @description If true then column data will be present in the result set.
|
|
2605
|
+
*/
|
|
1735
2606
|
this.isVisible = true;
|
|
1736
2607
|
this.expression = expression;
|
|
1737
2608
|
}
|
|
@@ -1778,6 +2649,11 @@ class ɵBaseQueryColumn {
|
|
|
1778
2649
|
}
|
|
1779
2650
|
}
|
|
1780
2651
|
|
|
2652
|
+
/**
|
|
2653
|
+
* @public
|
|
2654
|
+
* @classdesc Class contains info about column with arithmetic operation.
|
|
2655
|
+
* @extends {ɵBaseQueryColumn}
|
|
2656
|
+
*/
|
|
1781
2657
|
class ɵArithmeticQueryColumn extends ɵBaseQueryColumn {
|
|
1782
2658
|
// region Constructors: Public
|
|
1783
2659
|
constructor(arithmeticOperation, leftArithmeticOperand, rightArithmeticOperand) {
|
|
@@ -1785,6 +2661,11 @@ class ɵArithmeticQueryColumn extends ɵBaseQueryColumn {
|
|
|
1785
2661
|
}
|
|
1786
2662
|
}
|
|
1787
2663
|
|
|
2664
|
+
/**
|
|
2665
|
+
* @public
|
|
2666
|
+
* @classdesc Class contains info about common column from entity.
|
|
2667
|
+
* @extends {ɵBaseQueryColumn}
|
|
2668
|
+
*/
|
|
1788
2669
|
class ɵEntityQueryColumn extends ɵBaseQueryColumn {
|
|
1789
2670
|
// region Constructors: Public
|
|
1790
2671
|
constructor(columnPath) {
|
|
@@ -1792,6 +2673,11 @@ class ɵEntityQueryColumn extends ɵBaseQueryColumn {
|
|
|
1792
2673
|
}
|
|
1793
2674
|
}
|
|
1794
2675
|
|
|
2676
|
+
/**
|
|
2677
|
+
* @public
|
|
2678
|
+
* @classdesc Class contains info about column that contains parameter.
|
|
2679
|
+
* @extends {ɵBaseQueryColumn}
|
|
2680
|
+
*/
|
|
1795
2681
|
class ɵParameterQueryColumn extends ɵBaseQueryColumn {
|
|
1796
2682
|
// region Constructors: Public
|
|
1797
2683
|
constructor(value, dataValueType) {
|
|
@@ -1799,6 +2685,11 @@ class ɵParameterQueryColumn extends ɵBaseQueryColumn {
|
|
|
1799
2685
|
}
|
|
1800
2686
|
}
|
|
1801
2687
|
|
|
2688
|
+
/**
|
|
2689
|
+
* @public
|
|
2690
|
+
* @classdesc Class contains info about column with sub query and aggregation.
|
|
2691
|
+
* @extends {ɵBaseQueryColumn}
|
|
2692
|
+
*/
|
|
1802
2693
|
class ɵAggregationSubQueryColumn extends ɵBaseQueryColumn {
|
|
1803
2694
|
// region Constructors: Public
|
|
1804
2695
|
constructor(columnPath, aggregationType, subFilters, subOrderDirection, subOrderColumn) {
|
|
@@ -1812,6 +2703,11 @@ class ɵAggregationSubQueryColumn extends ɵBaseQueryColumn {
|
|
|
1812
2703
|
}
|
|
1813
2704
|
}
|
|
1814
2705
|
|
|
2706
|
+
/**
|
|
2707
|
+
* @public
|
|
2708
|
+
* @classdesc Class contains info about column with sub query.
|
|
2709
|
+
* @extends {ɵBaseQueryColumn}
|
|
2710
|
+
*/
|
|
1815
2711
|
class ɵSubQueryColumn extends ɵBaseQueryColumn {
|
|
1816
2712
|
// region Constructors: Public
|
|
1817
2713
|
constructor(columnPath, subFilters) {
|
|
@@ -1819,6 +2715,11 @@ class ɵSubQueryColumn extends ɵBaseQueryColumn {
|
|
|
1819
2715
|
}
|
|
1820
2716
|
}
|
|
1821
2717
|
|
|
2718
|
+
/**
|
|
2719
|
+
* @public
|
|
2720
|
+
* @classdesc Class contains info about column with aggregation function.
|
|
2721
|
+
* @extends {ɵBaseQueryColumn}
|
|
2722
|
+
*/
|
|
1822
2723
|
class ɵAggregationFunctionColumn extends ɵBaseQueryColumn {
|
|
1823
2724
|
// region Constructors: Public
|
|
1824
2725
|
constructor(aggregationType, aggregationEvalType, functionArgument) {
|
|
@@ -1830,6 +2731,11 @@ class ɵAggregationFunctionColumn extends ɵBaseQueryColumn {
|
|
|
1830
2731
|
}
|
|
1831
2732
|
}
|
|
1832
2733
|
|
|
2734
|
+
/**
|
|
2735
|
+
* @public
|
|
2736
|
+
* @classdesc Class contains info about column with date part.
|
|
2737
|
+
* @extends {ɵBaseQueryColumn}
|
|
2738
|
+
*/
|
|
1833
2739
|
class ɵDatePartFunctionColumn extends ɵBaseQueryColumn {
|
|
1834
2740
|
// region Constructors: Public
|
|
1835
2741
|
constructor(datePartType, functionArgument) {
|
|
@@ -1840,12 +2746,20 @@ class ɵDatePartFunctionColumn extends ɵBaseQueryColumn {
|
|
|
1840
2746
|
}
|
|
1841
2747
|
// endregion
|
|
1842
2748
|
// region Properties: Public
|
|
2749
|
+
/**
|
|
2750
|
+
* @description Part of date.
|
|
2751
|
+
*/
|
|
1843
2752
|
get datePartType() {
|
|
1844
2753
|
var _a;
|
|
1845
2754
|
return (_a = this.expression) === null || _a === void 0 ? void 0 : _a.datePartType;
|
|
1846
2755
|
}
|
|
1847
2756
|
}
|
|
1848
2757
|
|
|
2758
|
+
/**
|
|
2759
|
+
* @public
|
|
2760
|
+
* @classdesc Class contains info about column with length function.
|
|
2761
|
+
* @extends {ɵBaseQueryColumn}
|
|
2762
|
+
*/
|
|
1849
2763
|
class ɵLengthFunctionColumn extends ɵBaseQueryColumn {
|
|
1850
2764
|
// region Constructors: Public
|
|
1851
2765
|
constructor(functionArgument) {
|
|
@@ -1853,6 +2767,11 @@ class ɵLengthFunctionColumn extends ɵBaseQueryColumn {
|
|
|
1853
2767
|
}
|
|
1854
2768
|
}
|
|
1855
2769
|
|
|
2770
|
+
/**
|
|
2771
|
+
* @public
|
|
2772
|
+
* @classdesc Class contains info about column with macros function.
|
|
2773
|
+
* @extends {ɵBaseQueryColumn}
|
|
2774
|
+
*/
|
|
1856
2775
|
class ɵMacrosFunctionColumn extends ɵBaseQueryColumn {
|
|
1857
2776
|
// region Constructors: Public
|
|
1858
2777
|
constructor(macrosType) {
|
|
@@ -1860,6 +2779,11 @@ class ɵMacrosFunctionColumn extends ɵBaseQueryColumn {
|
|
|
1860
2779
|
}
|
|
1861
2780
|
}
|
|
1862
2781
|
|
|
2782
|
+
/**
|
|
2783
|
+
* @public
|
|
2784
|
+
* @classdesc Class contains info about column with window function.
|
|
2785
|
+
* @extends {ɵBaseQueryColumn}
|
|
2786
|
+
*/
|
|
1863
2787
|
class ɵWindowFunctionColumn extends ɵBaseQueryColumn {
|
|
1864
2788
|
// region Constructors: Public
|
|
1865
2789
|
constructor(functionArgument) {
|
|
@@ -1867,17 +2791,24 @@ class ɵWindowFunctionColumn extends ɵBaseQueryColumn {
|
|
|
1867
2791
|
}
|
|
1868
2792
|
}
|
|
1869
2793
|
|
|
2794
|
+
/**
|
|
2795
|
+
* @internal
|
|
2796
|
+
*/
|
|
1870
2797
|
const ɵDEFAULT_COLUMN_PLAIN_OBJ = {
|
|
1871
2798
|
isVisible: true,
|
|
1872
2799
|
orderPosition: -1,
|
|
1873
2800
|
orderDirection: ɵOrderDirection.None,
|
|
1874
2801
|
};
|
|
2802
|
+
/**
|
|
2803
|
+
* @internal
|
|
2804
|
+
*/
|
|
1875
2805
|
function ɵgetColumnPlainObj(expressionPlainObj) {
|
|
1876
2806
|
return Object.assign(Object.assign({}, ɵDEFAULT_COLUMN_PLAIN_OBJ), { expression: expressionPlainObj });
|
|
1877
2807
|
}
|
|
1878
2808
|
|
|
1879
2809
|
/**
|
|
1880
2810
|
* @public
|
|
2811
|
+
* @description The base class of the data request. Implements {@link ɵMetadataProvider}
|
|
1881
2812
|
*/
|
|
1882
2813
|
class ɵBaseQuery {
|
|
1883
2814
|
// region Constructors: Protected
|
|
@@ -1889,6 +2820,7 @@ class ɵBaseQuery {
|
|
|
1889
2820
|
}
|
|
1890
2821
|
// endregion
|
|
1891
2822
|
// region Methods: Public
|
|
2823
|
+
/** {@inheritDoc ɵMetadataProvider.getMetadata} */
|
|
1892
2824
|
getMetadata() {
|
|
1893
2825
|
return classToPlain(this, { exposeUnsetFields: false, excludePrefixes: ['_'] });
|
|
1894
2826
|
}
|
|
@@ -1896,15 +2828,25 @@ class ɵBaseQuery {
|
|
|
1896
2828
|
|
|
1897
2829
|
/**
|
|
1898
2830
|
* @public
|
|
2831
|
+
* @description The base class of the filtered data request.
|
|
2832
|
+
* @extends {ɵBaseQuery}
|
|
1899
2833
|
*/
|
|
1900
2834
|
class ɵBaseFilterableQuery extends ɵBaseQuery {
|
|
1901
2835
|
constructor(operationType, rootSchemaName) {
|
|
1902
2836
|
super(operationType, rootSchemaName);
|
|
2837
|
+
/**
|
|
2838
|
+
* @description Collection of filters.
|
|
2839
|
+
*/
|
|
1903
2840
|
this.filters = new ɵFilterGroup();
|
|
1904
2841
|
}
|
|
2842
|
+
/**
|
|
2843
|
+
* @public
|
|
2844
|
+
* @description Clears all filters.
|
|
2845
|
+
*/
|
|
1905
2846
|
clearFilters() {
|
|
1906
2847
|
this.filters.filters.clear();
|
|
1907
2848
|
}
|
|
2849
|
+
/** {@inheritDoc ɵMetadataProvider.getMetadata} */
|
|
1908
2850
|
getMetadata() {
|
|
1909
2851
|
return Object.assign(Object.assign({}, super.getMetadata()), { filters: this.filters.toJson() });
|
|
1910
2852
|
}
|
|
@@ -1928,12 +2870,25 @@ __decorate([
|
|
|
1928
2870
|
|
|
1929
2871
|
/**
|
|
1930
2872
|
* @public
|
|
2873
|
+
* @description Type of data query
|
|
1931
2874
|
*/
|
|
1932
2875
|
var ɵQueryOperationType;
|
|
1933
2876
|
(function (ɵQueryOperationType) {
|
|
2877
|
+
/**
|
|
2878
|
+
* @description Select query.
|
|
2879
|
+
*/
|
|
1934
2880
|
ɵQueryOperationType[ɵQueryOperationType["Select"] = 0] = "Select";
|
|
2881
|
+
/**
|
|
2882
|
+
* @description Insert query.
|
|
2883
|
+
*/
|
|
1935
2884
|
ɵQueryOperationType[ɵQueryOperationType["Insert"] = 1] = "Insert";
|
|
2885
|
+
/**
|
|
2886
|
+
* @description Edit query.
|
|
2887
|
+
*/
|
|
1936
2888
|
ɵQueryOperationType[ɵQueryOperationType["Update"] = 2] = "Update";
|
|
2889
|
+
/**
|
|
2890
|
+
* @description Delete query.
|
|
2891
|
+
*/
|
|
1937
2892
|
ɵQueryOperationType[ɵQueryOperationType["Delete"] = 3] = "Delete";
|
|
1938
2893
|
// Batch,
|
|
1939
2894
|
// ListSelect,
|
|
@@ -1943,6 +2898,8 @@ var ɵQueryOperationType;
|
|
|
1943
2898
|
|
|
1944
2899
|
/**
|
|
1945
2900
|
* @public
|
|
2901
|
+
* @description Request to delete data.
|
|
2902
|
+
* @extends {ɵBaseFilterableQuery}
|
|
1946
2903
|
*/
|
|
1947
2904
|
class ɵDeleteQuery extends ɵBaseFilterableQuery {
|
|
1948
2905
|
// region Constructors: Public
|
|
@@ -1953,21 +2910,32 @@ class ɵDeleteQuery extends ɵBaseFilterableQuery {
|
|
|
1953
2910
|
|
|
1954
2911
|
/**
|
|
1955
2912
|
* @public
|
|
2913
|
+
* @description The query class for data fetching.
|
|
2914
|
+
* @extends {ɵBaseFilterableQuery}
|
|
1956
2915
|
*/
|
|
1957
2916
|
class ɵEntitySchemaQuery extends ɵBaseFilterableQuery {
|
|
1958
2917
|
constructor(rootSchemaName) {
|
|
1959
2918
|
super(ɵQueryOperationType.Select, rootSchemaName);
|
|
1960
2919
|
this._columns = new Map();
|
|
2920
|
+
/**
|
|
2921
|
+
* @description Determines if merge duplicates in query result.
|
|
2922
|
+
*/
|
|
1961
2923
|
this.isDistinct = false;
|
|
1962
2924
|
/**
|
|
1963
|
-
* Number of rows to select.
|
|
2925
|
+
* @description Number of rows to select.
|
|
1964
2926
|
*/
|
|
1965
2927
|
this.rowCount = -1;
|
|
1966
2928
|
/**
|
|
1967
|
-
* Rows count to skip.
|
|
2929
|
+
* @description Rows count to skip.
|
|
1968
2930
|
*/
|
|
1969
2931
|
this.rowsOffset = -1;
|
|
2932
|
+
/**
|
|
2933
|
+
* @description The parameter that determines whether to use the localized data.
|
|
2934
|
+
*/
|
|
1970
2935
|
this.useLocalization = true;
|
|
2936
|
+
/**
|
|
2937
|
+
* @description Represent parameter which determines disabling data in filtering.
|
|
2938
|
+
*/
|
|
1971
2939
|
this.useRecordDeactivation = false;
|
|
1972
2940
|
this._getIsPageable = () => this.rowCount > 0 && this.rowsOffset > -1;
|
|
1973
2941
|
}
|
|
@@ -1979,7 +2947,8 @@ class ɵEntitySchemaQuery extends ɵBaseFilterableQuery {
|
|
|
1979
2947
|
// endregion
|
|
1980
2948
|
// region Methods: Public
|
|
1981
2949
|
/**
|
|
1982
|
-
*
|
|
2950
|
+
* @public
|
|
2951
|
+
* @description Returns column instance by column alias.
|
|
1983
2952
|
* @param columnAlias Column alias.
|
|
1984
2953
|
* @returns [BaseQueryColumn] Column instance.
|
|
1985
2954
|
*/
|
|
@@ -1990,21 +2959,21 @@ class ɵEntitySchemaQuery extends ɵBaseFilterableQuery {
|
|
|
1990
2959
|
return this.findColumn(columnAlias);
|
|
1991
2960
|
}
|
|
1992
2961
|
/**
|
|
1993
|
-
*
|
|
2962
|
+
* @public
|
|
2963
|
+
* @description Returns column instance by column alias if not found returns null.
|
|
1994
2964
|
*/
|
|
1995
2965
|
findColumn(columnAlias) {
|
|
1996
2966
|
return this._columns.get(columnAlias);
|
|
1997
2967
|
}
|
|
1998
|
-
/**
|
|
1999
|
-
* @inheritDoc
|
|
2000
|
-
*/
|
|
2968
|
+
/** {@inheritDoc ɵMetadataProvider.getMetadata} */
|
|
2001
2969
|
getMetadata() {
|
|
2002
2970
|
return Object.assign(Object.assign({}, super.getMetadata()), { columns: {
|
|
2003
2971
|
items: classToPlain(this._columns, { exposeUnsetFields: false, excludePrefixes: ['_'] }),
|
|
2004
|
-
}, allColumns: false, isDistinct: this.isDistinct, ignoreDisplayValues: false, rowCount: this.rowCount, rowsOffset: this.rowsOffset, isPageable: this._getIsPageable(), conditionalValues: this.conditionalValues ? this.conditionalValues : null, isHierarchical: false, hierarchicalMaxDepth: 0, hierarchicalColumnName: null, hierarchicalColumnValue: null, useLocalization: this.useLocalization, useRecordDeactivation: this.useRecordDeactivation });
|
|
2972
|
+
}, allColumns: false, isDistinct: this.isDistinct, ignoreDisplayValues: false, rowCount: this.rowCount, rowsOffset: this.rowsOffset, adminUnitRoleSources: this.adminUnitRoleSources, isPageable: this._getIsPageable(), conditionalValues: this.conditionalValues ? this.conditionalValues : null, isHierarchical: false, hierarchicalMaxDepth: 0, hierarchicalColumnName: null, hierarchicalColumnValue: null, useLocalization: this.useLocalization, useRecordDeactivation: this.useRecordDeactivation });
|
|
2005
2973
|
}
|
|
2006
2974
|
/**
|
|
2007
|
-
*
|
|
2975
|
+
* @public
|
|
2976
|
+
* @description Add column.
|
|
2008
2977
|
* @param column Column path.
|
|
2009
2978
|
* @param columnAlias Column alias.
|
|
2010
2979
|
* @returns [BaseQueryColumn] Column instance.
|
|
@@ -2014,7 +2983,8 @@ class ɵEntitySchemaQuery extends ɵBaseFilterableQuery {
|
|
|
2014
2983
|
return column;
|
|
2015
2984
|
}
|
|
2016
2985
|
/**
|
|
2017
|
-
*
|
|
2986
|
+
* @public
|
|
2987
|
+
* @description Add column by column path.
|
|
2018
2988
|
* @param columnPath Column path.
|
|
2019
2989
|
* @param columnAlias Column alias.
|
|
2020
2990
|
* @returns [EntityQueryColumn] Column instance.
|
|
@@ -2026,7 +2996,8 @@ class ɵEntitySchemaQuery extends ɵBaseFilterableQuery {
|
|
|
2026
2996
|
return column;
|
|
2027
2997
|
}
|
|
2028
2998
|
/**
|
|
2029
|
-
*
|
|
2999
|
+
* @public
|
|
3000
|
+
* @description Add aggregation sub query column.
|
|
2030
3001
|
* @param columnPath Column path.
|
|
2031
3002
|
* @param aggregationType Aggregation type.
|
|
2032
3003
|
* @param subFilters Sub query filters.
|
|
@@ -2039,7 +3010,8 @@ class ɵEntitySchemaQuery extends ɵBaseFilterableQuery {
|
|
|
2039
3010
|
return column;
|
|
2040
3011
|
}
|
|
2041
3012
|
/**
|
|
2042
|
-
*
|
|
3013
|
+
* @public
|
|
3014
|
+
* @description Add parameter column.
|
|
2043
3015
|
* @param value Parameter value.
|
|
2044
3016
|
* @param dataValueType Parameter data value type.
|
|
2045
3017
|
* @param columnAlias Column alias.
|
|
@@ -2051,7 +3023,8 @@ class ɵEntitySchemaQuery extends ɵBaseFilterableQuery {
|
|
|
2051
3023
|
return column;
|
|
2052
3024
|
}
|
|
2053
3025
|
/**
|
|
2054
|
-
*
|
|
3026
|
+
* @public
|
|
3027
|
+
* @description Add arithmetic column.
|
|
2055
3028
|
* @param arithmeticOperation Arithmetic operation.
|
|
2056
3029
|
* @param leftArithmeticOperand Left arithmetic operand expression.
|
|
2057
3030
|
* @param rightArithmeticOperand Right arithmetic operand expression.
|
|
@@ -2064,7 +3037,8 @@ class ɵEntitySchemaQuery extends ɵBaseFilterableQuery {
|
|
|
2064
3037
|
return column;
|
|
2065
3038
|
}
|
|
2066
3039
|
/**
|
|
2067
|
-
*
|
|
3040
|
+
* @public
|
|
3041
|
+
* @description Add macros function column.
|
|
2068
3042
|
* @param queryMacrosType Macros type.
|
|
2069
3043
|
* @param columnAlias Column alias.
|
|
2070
3044
|
* @returns [MacrosFunctionColumn] Column instance.
|
|
@@ -2075,7 +3049,8 @@ class ɵEntitySchemaQuery extends ɵBaseFilterableQuery {
|
|
|
2075
3049
|
return column;
|
|
2076
3050
|
}
|
|
2077
3051
|
/**
|
|
2078
|
-
*
|
|
3052
|
+
* @public
|
|
3053
|
+
* @description Add date part function column.
|
|
2079
3054
|
* @param columnPath Column path.
|
|
2080
3055
|
* @param datePartType Date part type.
|
|
2081
3056
|
* @param columnAlias Column alias.
|
|
@@ -2088,7 +3063,8 @@ class ɵEntitySchemaQuery extends ɵBaseFilterableQuery {
|
|
|
2088
3063
|
return column;
|
|
2089
3064
|
}
|
|
2090
3065
|
/**
|
|
2091
|
-
*
|
|
3066
|
+
* @public
|
|
3067
|
+
* @description Add aggregation function column.
|
|
2092
3068
|
* @param columnPath Column path.
|
|
2093
3069
|
* @param aggregationType Aggregation type.
|
|
2094
3070
|
* @param columnAlias Column alias.
|
|
@@ -2102,7 +3078,8 @@ class ɵEntitySchemaQuery extends ɵBaseFilterableQuery {
|
|
|
2102
3078
|
return column;
|
|
2103
3079
|
}
|
|
2104
3080
|
/**
|
|
2105
|
-
*
|
|
3081
|
+
* @public
|
|
3082
|
+
* @description Add length function column.
|
|
2106
3083
|
* @param columnPath Column path.
|
|
2107
3084
|
* @param columnAlias Column alias.
|
|
2108
3085
|
* @returns [LengthFunctionColumn] Column instance.
|
|
@@ -2114,7 +3091,8 @@ class ɵEntitySchemaQuery extends ɵBaseFilterableQuery {
|
|
|
2114
3091
|
return column;
|
|
2115
3092
|
}
|
|
2116
3093
|
/**
|
|
2117
|
-
*
|
|
3094
|
+
* @public
|
|
3095
|
+
* @description Add window function column.
|
|
2118
3096
|
* @param columnPath Column path.
|
|
2119
3097
|
* @param aggregationType Aggregation type.
|
|
2120
3098
|
* @param columnAlias Column alias.
|
|
@@ -2150,6 +3128,7 @@ class ɵEntitySchemaQuery extends ɵBaseFilterableQuery {
|
|
|
2150
3128
|
|
|
2151
3129
|
/**
|
|
2152
3130
|
* @public
|
|
3131
|
+
* @description Request to insert data.
|
|
2153
3132
|
*/
|
|
2154
3133
|
class ɵInsertQuery extends ɵBaseQuery {
|
|
2155
3134
|
// endregion
|
|
@@ -2161,6 +3140,9 @@ class ɵInsertQuery extends ɵBaseQuery {
|
|
|
2161
3140
|
}
|
|
2162
3141
|
// endregion
|
|
2163
3142
|
// region Properties: Public
|
|
3143
|
+
/**
|
|
3144
|
+
* @description A collection of column values for updating entities.
|
|
3145
|
+
*/
|
|
2164
3146
|
get columnValues() {
|
|
2165
3147
|
return {
|
|
2166
3148
|
items: classToPlain(this._columnValues),
|
|
@@ -2168,6 +3150,14 @@ class ɵInsertQuery extends ɵBaseQuery {
|
|
|
2168
3150
|
}
|
|
2169
3151
|
// endregion
|
|
2170
3152
|
// region Methods: Public
|
|
3153
|
+
/**
|
|
3154
|
+
* @public
|
|
3155
|
+
* @description Adds the value parameter. An instance of the value-parameter is created and
|
|
3156
|
+
* is added to the column values collection.
|
|
3157
|
+
* @param columnName The alias of the column to set value in
|
|
3158
|
+
* @param columnValue The value of the parameter. The value must match the data type.
|
|
3159
|
+
* @param dataValueType The type of the given parameter value.
|
|
3160
|
+
*/
|
|
2171
3161
|
addColumn(columnName, columnValue, dataValueType) {
|
|
2172
3162
|
ɵValidationUtilities.checkArgumentEmpty('columnName', columnName);
|
|
2173
3163
|
this._columnValues.set(columnName, new ɵParameterExpression({ value: columnValue, dataValueType }));
|
|
@@ -2181,6 +3171,8 @@ __decorate([
|
|
|
2181
3171
|
|
|
2182
3172
|
/**
|
|
2183
3173
|
* @public
|
|
3174
|
+
* @description Request for data changes.
|
|
3175
|
+
* @extends {ɵBaseFilterableQuery}
|
|
2184
3176
|
*/
|
|
2185
3177
|
class ɵUpdateQuery extends ɵBaseFilterableQuery {
|
|
2186
3178
|
// endregion
|
|
@@ -2192,12 +3184,15 @@ class ɵUpdateQuery extends ɵBaseFilterableQuery {
|
|
|
2192
3184
|
// endregion
|
|
2193
3185
|
// region Fields: Public
|
|
2194
3186
|
/**
|
|
2195
|
-
* Flag that indicates whether to force save data.
|
|
3187
|
+
* @description Flag that indicates whether to force save data.
|
|
2196
3188
|
*/
|
|
2197
3189
|
this.isForceUpdate = false;
|
|
2198
3190
|
}
|
|
2199
3191
|
// endregion
|
|
2200
3192
|
// region Properties: Public
|
|
3193
|
+
/**
|
|
3194
|
+
* @description A collection of column values for updating entities.
|
|
3195
|
+
*/
|
|
2201
3196
|
get columnValues() {
|
|
2202
3197
|
return {
|
|
2203
3198
|
items: classToPlain(this._columnValues),
|
|
@@ -2205,6 +3200,14 @@ class ɵUpdateQuery extends ɵBaseFilterableQuery {
|
|
|
2205
3200
|
}
|
|
2206
3201
|
// endregion
|
|
2207
3202
|
// region Methods: Public
|
|
3203
|
+
/**
|
|
3204
|
+
* @public
|
|
3205
|
+
* @description Adds the value parameter. An instance of the value-parameter is created and
|
|
3206
|
+
* is added to the column values collection.
|
|
3207
|
+
* @param columnName The alias of the column to set value in
|
|
3208
|
+
* @param columnValue The value of the parameter. The value must match the data type.
|
|
3209
|
+
* @param dataValueType The type of the given parameter value.
|
|
3210
|
+
*/
|
|
2208
3211
|
addColumn(columnName, columnValue, dataValueType) {
|
|
2209
3212
|
ɵValidationUtilities.checkArgumentEmpty('columnName', columnName);
|
|
2210
3213
|
this._columnValues.set(columnName, new ɵParameterExpression({ value: columnValue, dataValueType }));
|
|
@@ -2218,14 +3221,15 @@ __decorate([
|
|
|
2218
3221
|
|
|
2219
3222
|
/**
|
|
2220
3223
|
* @public
|
|
3224
|
+
* @description The query class for localized data fetching.
|
|
3225
|
+
* @extends {ɵEntitySchemaQuery}
|
|
2221
3226
|
*/
|
|
2222
3227
|
class ɵSelectLocalizationQuery extends ɵEntitySchemaQuery {
|
|
2223
3228
|
}
|
|
2224
3229
|
|
|
2225
3230
|
/**
|
|
2226
3231
|
* @public
|
|
2227
|
-
* @
|
|
2228
|
-
* @describe Base definition of request.
|
|
3232
|
+
* @description Base definition of request.
|
|
2229
3233
|
* @template TEvent
|
|
2230
3234
|
*/
|
|
2231
3235
|
class ɵBaseRequest {
|
|
@@ -2233,13 +3237,39 @@ class ɵBaseRequest {
|
|
|
2233
3237
|
|
|
2234
3238
|
/**
|
|
2235
3239
|
* @public
|
|
3240
|
+
* @description Enum for model parameter types.
|
|
2236
3241
|
*/
|
|
2237
3242
|
var ɵModelParameterType;
|
|
2238
3243
|
(function (ɵModelParameterType) {
|
|
3244
|
+
/**
|
|
3245
|
+
* @public
|
|
3246
|
+
* @description Parameter represents primary column value.
|
|
3247
|
+
*/
|
|
2239
3248
|
ɵModelParameterType["PrimaryColumnValue"] = "primaryColumnValue";
|
|
3249
|
+
/**
|
|
3250
|
+
* @public
|
|
3251
|
+
* @description Parameter represents column value.
|
|
3252
|
+
*/
|
|
3253
|
+
ɵModelParameterType["ColumnValue"] = "columnValue";
|
|
3254
|
+
/**
|
|
3255
|
+
* @public
|
|
3256
|
+
* @description Parameter represents filter value.
|
|
3257
|
+
*/
|
|
2240
3258
|
ɵModelParameterType["Filter"] = "filter";
|
|
3259
|
+
/**
|
|
3260
|
+
* @public
|
|
3261
|
+
* @description Parameter represents primary display value filter.
|
|
3262
|
+
*/
|
|
2241
3263
|
ɵModelParameterType["PrimaryDisplayValueFilter"] = "primaryDisplayValueFilter";
|
|
3264
|
+
/**
|
|
3265
|
+
* @public
|
|
3266
|
+
* @description Parameter is empty.
|
|
3267
|
+
*/
|
|
2242
3268
|
ɵModelParameterType["Empty"] = "empty";
|
|
3269
|
+
/**
|
|
3270
|
+
* @public
|
|
3271
|
+
* @description Parameter is never used.
|
|
3272
|
+
*/
|
|
2243
3273
|
ɵModelParameterType["Never"] = "never";
|
|
2244
3274
|
})(ɵModelParameterType || (ɵModelParameterType = {}));
|
|
2245
3275
|
|
|
@@ -2249,7 +3279,13 @@ var ɵModelParameterType;
|
|
|
2249
3279
|
*/
|
|
2250
3280
|
var ɵSchemaViewMaskRequestAction;
|
|
2251
3281
|
(function (ɵSchemaViewMaskRequestAction) {
|
|
3282
|
+
/**
|
|
3283
|
+
* @description To add task.
|
|
3284
|
+
*/
|
|
2252
3285
|
ɵSchemaViewMaskRequestAction["AddTask"] = "addTask";
|
|
3286
|
+
/**
|
|
3287
|
+
* @description To remove task.
|
|
3288
|
+
*/
|
|
2253
3289
|
ɵSchemaViewMaskRequestAction["RemoveTask"] = "removeTask";
|
|
2254
3290
|
})(ɵSchemaViewMaskRequestAction || (ɵSchemaViewMaskRequestAction = {}));
|
|
2255
3291
|
/**
|
|
@@ -2262,6 +3298,9 @@ class ɵSchemaViewMaskRequest extends ɵBaseRequest {
|
|
|
2262
3298
|
this.action = action;
|
|
2263
3299
|
this.taskName = taskName;
|
|
2264
3300
|
this.$context = $context;
|
|
3301
|
+
/**
|
|
3302
|
+
* @description Request type
|
|
3303
|
+
*/
|
|
2265
3304
|
this.type = 'crt.SchemaViewMaskRequest';
|
|
2266
3305
|
}
|
|
2267
3306
|
}
|
|
@@ -2270,5 +3309,5 @@ class ɵSchemaViewMaskRequest extends ɵBaseRequest {
|
|
|
2270
3309
|
* Generated bundle index. Do not edit.
|
|
2271
3310
|
*/
|
|
2272
3311
|
|
|
2273
|
-
export { LookupMode, ɵAggregationEvalType, ɵAggregationFunction, ɵAggregationFunctionColumn, ɵAggregationFunctionExpression, ɵAggregationSubQueryColumn, ɵAggregationSubQueryExpression, ɵAggregationType, ɵArgumentEmptyException, ɵArgumentFunctionExpression, ɵArgumentOutOfRangeException, ɵArithmeticExpression, ɵArithmeticOperation, ɵArithmeticQueryColumn, ɵBaseExpression, ɵBaseExpressionParser, ɵBaseFilter, ɵBaseFilterParser, ɵBaseFilterableQuery, ɵBaseQuery, ɵBaseQueryColumn, ɵBaseRequest, ɵBetweenFilter, ɵColumnExpression, ɵCompareFilter, ɵComparisonType, ɵDEFAULT_COLUMN_PLAIN_OBJ, ɵDEFAULT_FILTER_PLAIN_OBJ, ɵDataSchemaAttributeType, ɵDataSchemaAttributeUsageType, ɵDataSchemaType, ɵDataSourceScope, ɵDataValueType, ɵDatePartFunctionColumn, ɵDatePartFunctionExpression, ɵDatePartType, ɵDefaultValueSource, ɵDeleteQuery, ɵEMPTY_GUID, ɵEXPRESSION_TYPE_MOCK, ɵEntityQueryColumn, ɵEntitySchemaQuery, ɵExistsFilter, ɵExpressionMock, ɵExpressionParser, ɵExpressionResolver, ɵExpressionType, ɵFilterGroup, ɵFilterMock, ɵFilterParser, ɵFilterResolver, ɵFilterType, ɵFunctionExpression, ɵFunctionType, ɵInFilter, ɵInsertQuery, ɵIsNullFilter, ɵItemNotFoundException, ɵLengthFunctionColumn, ɵLengthFunctionExpression, ɵLogicalOperatorType, ɵMacrosFunctionColumn, ɵMacrosFunctionExpression, ɵModelInPageAction, ɵModelParameterType, ɵNextHandlerAlreadySpecifiedException, ɵOrderDirection, ɵParameterExpression, ɵParameterQueryColumn, ɵQueryMacrosType, ɵQueryOperationType, ɵSchemaViewMaskRequest, ɵSchemaViewMaskRequestAction, ɵSelectLocalizationQuery, ɵSingleFilter, ɵSubQueryColumn, ɵSubQueryExpression, ɵUpdateQuery, ɵValidationUtilities, ɵWindowFunctionColumn, ɵWindowFunctionExpression, ɵencodeDate, ɵgenerateGuid, ɵgetColumnPlainObj, ɵgetFilterPlainObj, ɵisEmptyGuid, ɵisGuid, ɵparserMock, ɵtoLocalISOString };
|
|
3312
|
+
export { LookupMode, eAdminUnitRoleSources, ɵAggregationEvalType, ɵAggregationFunction, ɵAggregationFunctionColumn, ɵAggregationFunctionExpression, ɵAggregationSubQueryColumn, ɵAggregationSubQueryExpression, ɵAggregationType, ɵArgumentEmptyException, ɵArgumentFunctionExpression, ɵArgumentOutOfRangeException, ɵArithmeticExpression, ɵArithmeticOperation, ɵArithmeticQueryColumn, ɵBaseExpression, ɵBaseExpressionParser, ɵBaseFilter, ɵBaseFilterParser, ɵBaseFilterableQuery, ɵBaseQuery, ɵBaseQueryColumn, ɵBaseRequest, ɵBetweenFilter, ɵColumnExpression, ɵCompareFilter, ɵComparisonType, ɵDEFAULT_COLUMN_PLAIN_OBJ, ɵDEFAULT_FILTER_PLAIN_OBJ, ɵDataSchemaAttributeType, ɵDataSchemaAttributeUsageType, ɵDataSchemaType, ɵDataSourceScope, ɵDataValueType, ɵDatePartFunctionColumn, ɵDatePartFunctionExpression, ɵDatePartType, ɵDefaultValueSource, ɵDeleteQuery, ɵEMPTY_GUID, ɵEXPRESSION_TYPE_MOCK, ɵEntityQueryColumn, ɵEntitySchemaQuery, ɵExistsFilter, ɵExpressionMock, ɵExpressionParser, ɵExpressionResolver, ɵExpressionType, ɵFilterGroup, ɵFilterMock, ɵFilterParser, ɵFilterResolver, ɵFilterType, ɵFunctionExpression, ɵFunctionType, ɵInFilter, ɵInsertQuery, ɵIsNullFilter, ɵItemNotFoundException, ɵLengthFunctionColumn, ɵLengthFunctionExpression, ɵLogicalOperatorType, ɵMacrosFunctionColumn, ɵMacrosFunctionExpression, ɵMessageChannelType, ɵModelInPageAction, ɵModelParameterType, ɵNextHandlerAlreadySpecifiedException, ɵOrderDirection, ɵParameterExpression, ɵParameterQueryColumn, ɵPlatformAPIs, ɵQueryMacrosType, ɵQueryOperationType, ɵSchemaViewMaskRequest, ɵSchemaViewMaskRequestAction, ɵSelectLocalizationQuery, ɵSingleFilter, ɵSubQueryColumn, ɵSubQueryExpression, ɵUpdateQuery, ɵValidationUtilities, ɵWindowFunctionColumn, ɵWindowFunctionExpression, ɵencodeDate, ɵgenerateGuid, ɵgetColumnPlainObj, ɵgetFilterPlainObj, ɵisEmptyGuid, ɵisGuid, ɵparserMock, ɵtoLocalISOString };
|
|
2274
3313
|
//# sourceMappingURL=creatio-base.mjs.map
|