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