@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,21 +918,34 @@ 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
|
const instanceOfKeys = instance?.constructor?.['_instanceOfKeys'] ?? [];
|
|
448
929
|
return instanceOfKeys.includes(this._instanceOfKey);
|
|
449
930
|
}
|
|
450
931
|
constructor(config) {
|
|
932
|
+
/**
|
|
933
|
+
* @description True if expression has brackets.
|
|
934
|
+
*/
|
|
451
935
|
this.isBlock = false;
|
|
452
936
|
this.isBlock = config?.isBlock;
|
|
453
937
|
}
|
|
454
938
|
/**
|
|
455
|
-
* Parses expression from json.
|
|
456
939
|
* @public
|
|
940
|
+
* @description Parses expression from json.
|
|
457
941
|
*/
|
|
458
942
|
static fromJson(dto, filterParser, expressionParser) {
|
|
459
943
|
throw new Error(`fromJson not supported on expression type ${this.constructor.name}`);
|
|
460
944
|
}
|
|
945
|
+
/**
|
|
946
|
+
* @description Converts instance to json object.
|
|
947
|
+
* @param item - The instance to serialize.
|
|
948
|
+
*/
|
|
461
949
|
serializeItem(item) {
|
|
462
950
|
return typeof item.toJson === 'function'
|
|
463
951
|
? item.toJson()
|
|
@@ -467,8 +955,8 @@ class ɵBaseExpression {
|
|
|
467
955
|
});
|
|
468
956
|
}
|
|
469
957
|
/**
|
|
470
|
-
* Converts instance to json object.
|
|
471
958
|
* @public
|
|
959
|
+
* @description Converts instance to json object.
|
|
472
960
|
*/
|
|
473
961
|
toJson() {
|
|
474
962
|
return classToPlain(this, {
|
|
@@ -483,6 +971,11 @@ class ɵBaseExpression {
|
|
|
483
971
|
*/
|
|
484
972
|
ɵBaseExpression._instanceOfKey = 'devkit_BaseExpression';
|
|
485
973
|
|
|
974
|
+
/**
|
|
975
|
+
* @public
|
|
976
|
+
* @description Arithmetic expression.
|
|
977
|
+
* @extends {ɵBaseExpression}
|
|
978
|
+
*/
|
|
486
979
|
class ɵArithmeticExpression extends ɵBaseExpression {
|
|
487
980
|
/**
|
|
488
981
|
* @internal
|
|
@@ -493,6 +986,9 @@ class ɵArithmeticExpression extends ɵBaseExpression {
|
|
|
493
986
|
}
|
|
494
987
|
constructor(config) {
|
|
495
988
|
super(config);
|
|
989
|
+
/**
|
|
990
|
+
* @description Expression type. Default 'ArithmeticOperation'.
|
|
991
|
+
*/
|
|
496
992
|
this.expressionType = ɵExpressionType.ArithmeticOperation;
|
|
497
993
|
this.arithmeticOperation = config?.arithmeticOperation;
|
|
498
994
|
this.leftArithmeticOperand = config?.leftArithmeticOperand.clone();
|
|
@@ -513,6 +1009,10 @@ class ɵArithmeticExpression extends ɵBaseExpression {
|
|
|
513
1009
|
};
|
|
514
1010
|
return new ɵArithmeticExpression(config);
|
|
515
1011
|
}
|
|
1012
|
+
/**
|
|
1013
|
+
* @public
|
|
1014
|
+
* @description Clones instance.
|
|
1015
|
+
*/
|
|
516
1016
|
clone() {
|
|
517
1017
|
return new ɵArithmeticExpression(this);
|
|
518
1018
|
}
|
|
@@ -529,6 +1029,11 @@ class ɵArithmeticExpression extends ɵBaseExpression {
|
|
|
529
1029
|
*/
|
|
530
1030
|
ɵArithmeticExpression._instanceOfKey = 'devkit_ArithmeticExpression';
|
|
531
1031
|
|
|
1032
|
+
/**
|
|
1033
|
+
* @public
|
|
1034
|
+
* @description A class that defines an expression of type column EntitySchema.
|
|
1035
|
+
* @extends {ɵBaseExpression}
|
|
1036
|
+
*/
|
|
532
1037
|
class ɵColumnExpression extends ɵBaseExpression {
|
|
533
1038
|
/**
|
|
534
1039
|
* @internal
|
|
@@ -539,17 +1044,24 @@ class ɵColumnExpression extends ɵBaseExpression {
|
|
|
539
1044
|
}
|
|
540
1045
|
constructor(config) {
|
|
541
1046
|
super(config);
|
|
1047
|
+
/**
|
|
1048
|
+
* @description Type of expression.
|
|
1049
|
+
*/
|
|
542
1050
|
this.expressionType = ɵExpressionType.SchemaColumn;
|
|
543
1051
|
this.columnPath = config?.columnPath;
|
|
544
1052
|
}
|
|
545
1053
|
/**
|
|
546
1054
|
* Parses expression from json.
|
|
547
1055
|
* @public
|
|
1056
|
+
* @param dto - Serialized object.
|
|
548
1057
|
*/
|
|
549
1058
|
static fromJson(dto) {
|
|
550
1059
|
const expression = new ɵColumnExpression({ columnPath: dto['columnPath'] });
|
|
551
1060
|
return expression;
|
|
552
1061
|
}
|
|
1062
|
+
/**
|
|
1063
|
+
* @description Clones instance.
|
|
1064
|
+
*/
|
|
553
1065
|
clone() {
|
|
554
1066
|
return new ɵColumnExpression(this);
|
|
555
1067
|
}
|
|
@@ -571,15 +1083,28 @@ class ɵColumnExpression extends ɵBaseExpression {
|
|
|
571
1083
|
ɵColumnExpression._instanceOfKey = 'devkit_ColumnExpression';
|
|
572
1084
|
|
|
573
1085
|
/**
|
|
574
|
-
* Expression parser interface
|
|
575
1086
|
* @public
|
|
1087
|
+
* @description Expression parser interface.
|
|
576
1088
|
*/
|
|
577
1089
|
class ɵBaseExpressionParser {
|
|
1090
|
+
/**
|
|
1091
|
+
* @public
|
|
1092
|
+
* @description Parses filter from json.
|
|
1093
|
+
* @param dto - Serialized object.
|
|
1094
|
+
* @param filterParser - Type of parser.
|
|
1095
|
+
* @return InstanceType of expression.
|
|
1096
|
+
*/
|
|
578
1097
|
static fromJson(dto, filterParser) {
|
|
579
1098
|
throw new Error('not implemented');
|
|
580
1099
|
}
|
|
581
1100
|
}
|
|
582
1101
|
|
|
1102
|
+
/**
|
|
1103
|
+
* @public
|
|
1104
|
+
* @abstract
|
|
1105
|
+
* @description A class that describes a functional expression.
|
|
1106
|
+
* @extends {ɵFunctionExpression}
|
|
1107
|
+
*/
|
|
583
1108
|
class ɵFunctionExpression extends ɵBaseExpression {
|
|
584
1109
|
/**
|
|
585
1110
|
* @internal
|
|
@@ -590,6 +1115,9 @@ class ɵFunctionExpression extends ɵBaseExpression {
|
|
|
590
1115
|
}
|
|
591
1116
|
constructor(config) {
|
|
592
1117
|
super(config);
|
|
1118
|
+
/**
|
|
1119
|
+
* @description Expression type. Default 'Function'.
|
|
1120
|
+
*/
|
|
593
1121
|
this.expressionType = ɵExpressionType.Function;
|
|
594
1122
|
}
|
|
595
1123
|
}
|
|
@@ -599,6 +1127,12 @@ class ɵFunctionExpression extends ɵBaseExpression {
|
|
|
599
1127
|
*/
|
|
600
1128
|
ɵFunctionExpression._instanceOfKey = 'devkit_FunctionExpression';
|
|
601
1129
|
|
|
1130
|
+
/**
|
|
1131
|
+
* @public
|
|
1132
|
+
* @abstract
|
|
1133
|
+
* @description A class that describes a functional expression with argument.
|
|
1134
|
+
* @extends {ɵFunctionExpression}
|
|
1135
|
+
*/
|
|
602
1136
|
class ɵArgumentFunctionExpression extends ɵFunctionExpression {
|
|
603
1137
|
/**
|
|
604
1138
|
* @internal
|
|
@@ -609,8 +1143,9 @@ class ɵArgumentFunctionExpression extends ɵFunctionExpression {
|
|
|
609
1143
|
}
|
|
610
1144
|
constructor(config) {
|
|
611
1145
|
super(config);
|
|
612
|
-
this.functionArgument = config?.functionArgument
|
|
1146
|
+
this.functionArgument = config?.functionArgument?.clone();
|
|
613
1147
|
}
|
|
1148
|
+
/** {@inheritDoc ɵBaseExpression.toJson} */
|
|
614
1149
|
toJson() {
|
|
615
1150
|
const result = super.toJson();
|
|
616
1151
|
if (this.functionArgument) {
|
|
@@ -631,6 +1166,11 @@ class ɵArgumentFunctionExpression extends ɵFunctionExpression {
|
|
|
631
1166
|
*/
|
|
632
1167
|
ɵArgumentFunctionExpression._instanceOfKey = 'devkit_ArgumentFunctionExpression';
|
|
633
1168
|
|
|
1169
|
+
/**
|
|
1170
|
+
* @public
|
|
1171
|
+
* @description A class that describes expression with aggregate function.
|
|
1172
|
+
* @extends {ɵArgumentFunctionExpression}
|
|
1173
|
+
*/
|
|
634
1174
|
class ɵAggregationFunctionExpression extends ɵArgumentFunctionExpression {
|
|
635
1175
|
/**
|
|
636
1176
|
* @internal
|
|
@@ -641,6 +1181,9 @@ class ɵAggregationFunctionExpression extends ɵArgumentFunctionExpression {
|
|
|
641
1181
|
}
|
|
642
1182
|
constructor(config) {
|
|
643
1183
|
super(config);
|
|
1184
|
+
/**
|
|
1185
|
+
* @description The type of the functional expression passed for initialization.
|
|
1186
|
+
*/
|
|
644
1187
|
this.functionType = ɵFunctionType.Aggregation;
|
|
645
1188
|
this.aggregationType = config?.aggregationType;
|
|
646
1189
|
this.aggregationEvalType = config?.aggregationEvalType;
|
|
@@ -660,6 +1203,7 @@ class ɵAggregationFunctionExpression extends ɵArgumentFunctionExpression {
|
|
|
660
1203
|
isBlock: dto['isBlock'],
|
|
661
1204
|
});
|
|
662
1205
|
}
|
|
1206
|
+
/** {@inheritDoc ɵBaseExpression.clone} */
|
|
663
1207
|
clone() {
|
|
664
1208
|
return new ɵAggregationFunctionExpression(this);
|
|
665
1209
|
}
|
|
@@ -670,6 +1214,11 @@ class ɵAggregationFunctionExpression extends ɵArgumentFunctionExpression {
|
|
|
670
1214
|
*/
|
|
671
1215
|
ɵAggregationFunctionExpression._instanceOfKey = 'devkit_AggregationFunctionExpression';
|
|
672
1216
|
|
|
1217
|
+
/**
|
|
1218
|
+
* @public
|
|
1219
|
+
* @description A class that describes expression part of date function.
|
|
1220
|
+
* @extends {ɵArgumentFunctionExpression}
|
|
1221
|
+
*/
|
|
673
1222
|
class ɵDatePartFunctionExpression extends ɵArgumentFunctionExpression {
|
|
674
1223
|
/**
|
|
675
1224
|
* @internal
|
|
@@ -680,6 +1229,9 @@ class ɵDatePartFunctionExpression extends ɵArgumentFunctionExpression {
|
|
|
680
1229
|
}
|
|
681
1230
|
constructor(config) {
|
|
682
1231
|
super(config);
|
|
1232
|
+
/**
|
|
1233
|
+
* @description Function type. Default 'DatePart'.
|
|
1234
|
+
*/
|
|
683
1235
|
this.functionType = ɵFunctionType.DatePart;
|
|
684
1236
|
this.datePartType = config?.datePartType;
|
|
685
1237
|
}
|
|
@@ -692,6 +1244,7 @@ class ɵDatePartFunctionExpression extends ɵArgumentFunctionExpression {
|
|
|
692
1244
|
const datePartType = dto['datePartType'];
|
|
693
1245
|
return new ɵDatePartFunctionExpression({ functionArgument, datePartType, isBlock: dto['isBlock'] });
|
|
694
1246
|
}
|
|
1247
|
+
/** {@inheritDoc ɵBaseExpression.clone} */
|
|
695
1248
|
clone() {
|
|
696
1249
|
return new ɵDatePartFunctionExpression(this);
|
|
697
1250
|
}
|
|
@@ -702,6 +1255,11 @@ class ɵDatePartFunctionExpression extends ɵArgumentFunctionExpression {
|
|
|
702
1255
|
*/
|
|
703
1256
|
ɵDatePartFunctionExpression._instanceOfKey = 'devkit_DatePartFunctionExpression';
|
|
704
1257
|
|
|
1258
|
+
/**
|
|
1259
|
+
* @public
|
|
1260
|
+
* @description A class that describes expression with length function.
|
|
1261
|
+
* @extends {ɵArgumentFunctionExpression}
|
|
1262
|
+
*/
|
|
705
1263
|
class ɵLengthFunctionExpression extends ɵArgumentFunctionExpression {
|
|
706
1264
|
/**
|
|
707
1265
|
* @internal
|
|
@@ -712,6 +1270,9 @@ class ɵLengthFunctionExpression extends ɵArgumentFunctionExpression {
|
|
|
712
1270
|
}
|
|
713
1271
|
constructor(config) {
|
|
714
1272
|
super(config);
|
|
1273
|
+
/**
|
|
1274
|
+
* @description Function type. Default 'Length'.
|
|
1275
|
+
*/
|
|
715
1276
|
this.functionType = ɵFunctionType.Length;
|
|
716
1277
|
}
|
|
717
1278
|
/**
|
|
@@ -722,6 +1283,9 @@ class ɵLengthFunctionExpression extends ɵArgumentFunctionExpression {
|
|
|
722
1283
|
const functionArgument = expressionParser?.fromJson(dto['functionArgument'], filterParser);
|
|
723
1284
|
return new ɵLengthFunctionExpression({ functionArgument, isBlock: dto['isBlock'] });
|
|
724
1285
|
}
|
|
1286
|
+
/**
|
|
1287
|
+
* @description Method to create cloned instance.
|
|
1288
|
+
*/
|
|
725
1289
|
clone() {
|
|
726
1290
|
return new ɵLengthFunctionExpression(this);
|
|
727
1291
|
}
|
|
@@ -732,6 +1296,11 @@ class ɵLengthFunctionExpression extends ɵArgumentFunctionExpression {
|
|
|
732
1296
|
*/
|
|
733
1297
|
ɵLengthFunctionExpression._instanceOfKey = 'devkit_LengthFunctionExpression';
|
|
734
1298
|
|
|
1299
|
+
/**
|
|
1300
|
+
* @public
|
|
1301
|
+
* @description A class that describes expression with macros function.
|
|
1302
|
+
* @extends {ɵFunctionExpression}
|
|
1303
|
+
*/
|
|
735
1304
|
class ɵMacrosFunctionExpression extends ɵFunctionExpression {
|
|
736
1305
|
/**
|
|
737
1306
|
* @internal
|
|
@@ -742,6 +1311,9 @@ class ɵMacrosFunctionExpression extends ɵFunctionExpression {
|
|
|
742
1311
|
}
|
|
743
1312
|
constructor(config) {
|
|
744
1313
|
super(config);
|
|
1314
|
+
/**
|
|
1315
|
+
* @description Function type. Default 'Macros'.
|
|
1316
|
+
*/
|
|
745
1317
|
this.functionType = ɵFunctionType.Macros;
|
|
746
1318
|
this.macrosType = config?.macrosType;
|
|
747
1319
|
this.functionArgument = config?.functionArgument;
|
|
@@ -756,6 +1328,9 @@ class ɵMacrosFunctionExpression extends ɵFunctionExpression {
|
|
|
756
1328
|
: undefined;
|
|
757
1329
|
return new ɵMacrosFunctionExpression({ functionArgument, macrosType: dto['macrosType'] });
|
|
758
1330
|
}
|
|
1331
|
+
/**
|
|
1332
|
+
* @description method to create cloned instance.
|
|
1333
|
+
*/
|
|
759
1334
|
clone() {
|
|
760
1335
|
return new ɵMacrosFunctionExpression(this);
|
|
761
1336
|
}
|
|
@@ -770,8 +1345,13 @@ class ɵMacrosFunctionExpression extends ɵFunctionExpression {
|
|
|
770
1345
|
* @internal
|
|
771
1346
|
* @dontChange
|
|
772
1347
|
*/
|
|
773
|
-
ɵMacrosFunctionExpression._instanceOfKey = 'devkit_MacrosFunctionExpression';
|
|
774
|
-
|
|
1348
|
+
ɵMacrosFunctionExpression._instanceOfKey = 'devkit_MacrosFunctionExpression';
|
|
1349
|
+
|
|
1350
|
+
/**
|
|
1351
|
+
* @public
|
|
1352
|
+
* @description A class that describes expression with window function.
|
|
1353
|
+
* @extends {ɵArgumentFunctionExpression}
|
|
1354
|
+
*/
|
|
775
1355
|
class ɵWindowFunctionExpression extends ɵArgumentFunctionExpression {
|
|
776
1356
|
/**
|
|
777
1357
|
* @internal
|
|
@@ -782,6 +1362,9 @@ class ɵWindowFunctionExpression extends ɵArgumentFunctionExpression {
|
|
|
782
1362
|
}
|
|
783
1363
|
constructor(config) {
|
|
784
1364
|
super(config);
|
|
1365
|
+
/**
|
|
1366
|
+
* @description Function type.
|
|
1367
|
+
*/
|
|
785
1368
|
this.functionType = ɵFunctionType.Window;
|
|
786
1369
|
}
|
|
787
1370
|
/**
|
|
@@ -792,6 +1375,7 @@ class ɵWindowFunctionExpression extends ɵArgumentFunctionExpression {
|
|
|
792
1375
|
const functionArgument = expressionParser?.fromJson(dto['functionArgument'], filterParser);
|
|
793
1376
|
return new ɵWindowFunctionExpression({ functionArgument, isBlock: dto['isBlock'] });
|
|
794
1377
|
}
|
|
1378
|
+
/** {@inheritDoc ɵBaseExpression.clone} */
|
|
795
1379
|
clone() {
|
|
796
1380
|
return new ɵWindowFunctionExpression(this);
|
|
797
1381
|
}
|
|
@@ -802,6 +1386,11 @@ class ɵWindowFunctionExpression extends ɵArgumentFunctionExpression {
|
|
|
802
1386
|
*/
|
|
803
1387
|
ɵWindowFunctionExpression._instanceOfKey = 'devkit_WindowFunctionExpression';
|
|
804
1388
|
|
|
1389
|
+
/**
|
|
1390
|
+
* @public
|
|
1391
|
+
* @description The class that defines the parametric expression.
|
|
1392
|
+
* @extends {ɵBaseExpression}
|
|
1393
|
+
*/
|
|
805
1394
|
class ɵParameterExpression extends ɵBaseExpression {
|
|
806
1395
|
/**
|
|
807
1396
|
* @internal
|
|
@@ -812,6 +1401,9 @@ class ɵParameterExpression extends ɵBaseExpression {
|
|
|
812
1401
|
}
|
|
813
1402
|
constructor(config) {
|
|
814
1403
|
super(config);
|
|
1404
|
+
/**
|
|
1405
|
+
* @description Type of expression.
|
|
1406
|
+
*/
|
|
815
1407
|
this.expressionType = ɵExpressionType.Parameter;
|
|
816
1408
|
const value = config?.value;
|
|
817
1409
|
if (value instanceof Date) {
|
|
@@ -878,6 +1470,9 @@ class ɵParameterExpression extends ɵBaseExpression {
|
|
|
878
1470
|
};
|
|
879
1471
|
}
|
|
880
1472
|
}
|
|
1473
|
+
/**
|
|
1474
|
+
* @description Returns cloned instance.
|
|
1475
|
+
*/
|
|
881
1476
|
clone() {
|
|
882
1477
|
return new ɵParameterExpression(this);
|
|
883
1478
|
}
|
|
@@ -902,6 +1497,12 @@ __decorate([
|
|
|
902
1497
|
__metadata("design:type", Number)
|
|
903
1498
|
], ɵParameterExpression.prototype, "dataValueType", void 0);
|
|
904
1499
|
|
|
1500
|
+
/**
|
|
1501
|
+
* @public
|
|
1502
|
+
* @abstract
|
|
1503
|
+
* @description The base class of the filter.
|
|
1504
|
+
* @extends {ɵSerializable}
|
|
1505
|
+
*/
|
|
905
1506
|
class ɵBaseFilter {
|
|
906
1507
|
/**
|
|
907
1508
|
* @internal
|
|
@@ -910,12 +1511,24 @@ class ɵBaseFilter {
|
|
|
910
1511
|
static get _instanceOfKeys() {
|
|
911
1512
|
return [this._instanceOfKey];
|
|
912
1513
|
}
|
|
1514
|
+
/**
|
|
1515
|
+
* @public
|
|
1516
|
+
* @description Method for checking if an instance is of the current class type.
|
|
1517
|
+
* @param instance - The instance to check.
|
|
1518
|
+
* @returns `true` if the instance is of the current class type, `false` otherwise.
|
|
1519
|
+
*/
|
|
913
1520
|
static [Symbol.hasInstance](instance) {
|
|
914
1521
|
const instanceOfKeys = instance?.constructor?.['_instanceOfKeys'] ?? [];
|
|
915
1522
|
return instanceOfKeys.includes(this._instanceOfKey);
|
|
916
1523
|
}
|
|
917
1524
|
constructor(filterType) {
|
|
1525
|
+
/**
|
|
1526
|
+
* @description Indicates that the filter is active and will be taken into account when building the query.
|
|
1527
|
+
*/
|
|
918
1528
|
this.isEnabled = true;
|
|
1529
|
+
/**
|
|
1530
|
+
* @description Drop the time for the date / time type parameters.
|
|
1531
|
+
*/
|
|
919
1532
|
this.trimDateTimeParameterToDate = false;
|
|
920
1533
|
this.filterType = filterType;
|
|
921
1534
|
}
|
|
@@ -951,6 +1564,11 @@ class ɵBaseFilter {
|
|
|
951
1564
|
*/
|
|
952
1565
|
ɵBaseFilter._instanceOfKey = 'devkit_BaseFilter';
|
|
953
1566
|
|
|
1567
|
+
/**
|
|
1568
|
+
* @public
|
|
1569
|
+
* @description Basic filter class with one condition.
|
|
1570
|
+
* @extends {ɵBaseFilter}
|
|
1571
|
+
*/
|
|
954
1572
|
class ɵSingleFilter extends ɵBaseFilter {
|
|
955
1573
|
/**
|
|
956
1574
|
* @internal
|
|
@@ -962,8 +1580,9 @@ class ɵSingleFilter extends ɵBaseFilter {
|
|
|
962
1580
|
constructor(filterType, comparisonType, leftExpression) {
|
|
963
1581
|
super(filterType);
|
|
964
1582
|
this.comparisonType = comparisonType;
|
|
965
|
-
this.leftExpression = leftExpression
|
|
1583
|
+
this.leftExpression = leftExpression?.clone();
|
|
966
1584
|
}
|
|
1585
|
+
/** {@inheritDoc ɵSerializable.toJson} */
|
|
967
1586
|
toJson() {
|
|
968
1587
|
return {
|
|
969
1588
|
...super.toJson(),
|
|
@@ -983,6 +1602,11 @@ class ɵSingleFilter extends ɵBaseFilter {
|
|
|
983
1602
|
*/
|
|
984
1603
|
ɵSingleFilter._instanceOfKey = 'devkit_SingleFilter';
|
|
985
1604
|
|
|
1605
|
+
/**
|
|
1606
|
+
* @public
|
|
1607
|
+
* @description Filter class of the "Between" type.
|
|
1608
|
+
* @extends {ɵSingleFilter}
|
|
1609
|
+
*/
|
|
986
1610
|
class ɵBetweenFilter extends ɵSingleFilter {
|
|
987
1611
|
/**
|
|
988
1612
|
* @internal
|
|
@@ -993,8 +1617,8 @@ class ɵBetweenFilter extends ɵSingleFilter {
|
|
|
993
1617
|
}
|
|
994
1618
|
constructor(leftExpression, rightLessExpression, rightGreaterExpression) {
|
|
995
1619
|
super(ɵFilterType.Between, ɵComparisonType.Between, leftExpression);
|
|
996
|
-
this.rightLessExpression = rightLessExpression
|
|
997
|
-
this.rightGreaterExpression = rightGreaterExpression
|
|
1620
|
+
this.rightLessExpression = rightLessExpression?.clone();
|
|
1621
|
+
this.rightGreaterExpression = rightGreaterExpression?.clone();
|
|
998
1622
|
}
|
|
999
1623
|
/**
|
|
1000
1624
|
* Parses filter from json.
|
|
@@ -1034,6 +1658,11 @@ class ɵBetweenFilter extends ɵSingleFilter {
|
|
|
1034
1658
|
*/
|
|
1035
1659
|
ɵBetweenFilter._instanceOfKey = 'devkit_BetweenFilter';
|
|
1036
1660
|
|
|
1661
|
+
/**
|
|
1662
|
+
* @public
|
|
1663
|
+
* @description Comparison filter class.
|
|
1664
|
+
* @extends {ɵSingleFilter}
|
|
1665
|
+
*/
|
|
1037
1666
|
class ɵCompareFilter extends ɵSingleFilter {
|
|
1038
1667
|
/**
|
|
1039
1668
|
* @internal
|
|
@@ -1044,7 +1673,7 @@ class ɵCompareFilter extends ɵSingleFilter {
|
|
|
1044
1673
|
}
|
|
1045
1674
|
constructor(comparisonType, leftExpression, rightExpression) {
|
|
1046
1675
|
super(ɵFilterType.Compare, comparisonType, leftExpression);
|
|
1047
|
-
this.rightExpression = rightExpression
|
|
1676
|
+
this.rightExpression = rightExpression?.clone();
|
|
1048
1677
|
}
|
|
1049
1678
|
/**
|
|
1050
1679
|
* Parses filter from json.
|
|
@@ -1079,6 +1708,11 @@ class ɵCompareFilter extends ɵSingleFilter {
|
|
|
1079
1708
|
*/
|
|
1080
1709
|
ɵCompareFilter._instanceOfKey = 'devkit_CompareFilter';
|
|
1081
1710
|
|
|
1711
|
+
/**
|
|
1712
|
+
* @public
|
|
1713
|
+
* @description The comparison filter class [Exists according to the specified condition].
|
|
1714
|
+
* @extends {ɵSingleFilter}
|
|
1715
|
+
*/
|
|
1082
1716
|
class ɵExistsFilter extends ɵSingleFilter {
|
|
1083
1717
|
/**
|
|
1084
1718
|
* @internal
|
|
@@ -1098,15 +1732,24 @@ class ɵExistsFilter extends ɵSingleFilter {
|
|
|
1098
1732
|
*/
|
|
1099
1733
|
static fromJson(dto, filterParser, expressionParser) {
|
|
1100
1734
|
const leftExpression = expressionParser.fromJson(dto['leftExpression'], filterParser);
|
|
1101
|
-
const
|
|
1735
|
+
const subFiltersDto = dto['subFilters'];
|
|
1736
|
+
let subFilters;
|
|
1737
|
+
if (subFiltersDto) {
|
|
1738
|
+
subFilters = filterParser.fromJson(dto['subFilters']);
|
|
1739
|
+
}
|
|
1102
1740
|
return new ɵExistsFilter(leftExpression, subFilters, dto['comparisonType'], dto['isAggregative']);
|
|
1103
1741
|
}
|
|
1742
|
+
/**
|
|
1743
|
+
* @public
|
|
1744
|
+
* @description Clones instance.
|
|
1745
|
+
*/
|
|
1104
1746
|
clone() {
|
|
1105
1747
|
const filter = new ɵExistsFilter(this.leftExpression, this.subFilters, this.comparisonType, this.isAggregative);
|
|
1106
1748
|
filter.isEnabled = this.isEnabled;
|
|
1107
1749
|
filter.trimDateTimeParameterToDate = this.trimDateTimeParameterToDate;
|
|
1108
1750
|
return filter;
|
|
1109
1751
|
}
|
|
1752
|
+
/** {@inheritDoc ɵSerializable.toJson} */
|
|
1110
1753
|
toJson() {
|
|
1111
1754
|
const result = super.toJson();
|
|
1112
1755
|
if (this.subFilters) {
|
|
@@ -1127,6 +1770,11 @@ class ɵExistsFilter extends ɵSingleFilter {
|
|
|
1127
1770
|
*/
|
|
1128
1771
|
ɵExistsFilter._instanceOfKey = 'devkit_ExistsFilter';
|
|
1129
1772
|
|
|
1773
|
+
/**
|
|
1774
|
+
* @public
|
|
1775
|
+
* @description In-Filter Class
|
|
1776
|
+
* @extends {ɵSingleFilter}
|
|
1777
|
+
*/
|
|
1130
1778
|
class ɵInFilter extends ɵSingleFilter {
|
|
1131
1779
|
/**
|
|
1132
1780
|
* @internal
|
|
@@ -1137,22 +1785,24 @@ class ɵInFilter extends ɵSingleFilter {
|
|
|
1137
1785
|
}
|
|
1138
1786
|
constructor(comparisonType, leftExpression, rightExpressions) {
|
|
1139
1787
|
super(ɵFilterType.In, comparisonType, leftExpression);
|
|
1140
|
-
this.rightExpressions = rightExpressions.map((expression) => expression
|
|
1788
|
+
this.rightExpressions = rightExpressions.map((expression) => expression?.clone()) ?? [];
|
|
1141
1789
|
}
|
|
1142
1790
|
/**
|
|
1143
|
-
* Parses in filter from json.
|
|
1791
|
+
* @description Parses in filter from json.
|
|
1144
1792
|
* @public
|
|
1145
1793
|
*/
|
|
1146
1794
|
static fromJson(dto, filterParser, expressionParser) {
|
|
1147
1795
|
const dtoRightExpressions = (dto['rightExpressions'] ?? []);
|
|
1148
1796
|
return new ɵInFilter(dto['comparisonType'], expressionParser.fromJson(dto['leftExpression'], filterParser), dtoRightExpressions.map((expression) => expressionParser.fromJson(expression, filterParser)));
|
|
1149
1797
|
}
|
|
1798
|
+
/** {@inheritDoc ɵBaseFilter.clone} */
|
|
1150
1799
|
clone() {
|
|
1151
1800
|
const filter = new ɵInFilter(this.comparisonType, this.leftExpression, this.rightExpressions);
|
|
1152
1801
|
filter.isEnabled = this.isEnabled;
|
|
1153
1802
|
filter.trimDateTimeParameterToDate = this.trimDateTimeParameterToDate;
|
|
1154
1803
|
return filter;
|
|
1155
1804
|
}
|
|
1805
|
+
/** {@inheritDoc ɵSerializable.toJson} */
|
|
1156
1806
|
toJson() {
|
|
1157
1807
|
return {
|
|
1158
1808
|
...super.toJson(),
|
|
@@ -1175,6 +1825,11 @@ class ɵInFilter extends ɵSingleFilter {
|
|
|
1175
1825
|
*/
|
|
1176
1826
|
ɵInFilter._instanceOfKey = 'devkit_InFilter';
|
|
1177
1827
|
|
|
1828
|
+
/**
|
|
1829
|
+
* @public
|
|
1830
|
+
* @description IsNull filter Class
|
|
1831
|
+
* @extends {ɵSingleFilter}
|
|
1832
|
+
*/
|
|
1178
1833
|
class ɵIsNullFilter extends ɵSingleFilter {
|
|
1179
1834
|
/**
|
|
1180
1835
|
* @internal
|
|
@@ -1186,16 +1841,20 @@ class ɵIsNullFilter extends ɵSingleFilter {
|
|
|
1186
1841
|
constructor(comparisonType, leftExpression) {
|
|
1187
1842
|
super(ɵFilterType.IsNull, comparisonType, leftExpression);
|
|
1188
1843
|
}
|
|
1844
|
+
/**
|
|
1845
|
+
* @description Flag that indicates if expression is empty or not.
|
|
1846
|
+
*/
|
|
1189
1847
|
get isNull() {
|
|
1190
1848
|
return this.comparisonType === ɵComparisonType.Is_null;
|
|
1191
1849
|
}
|
|
1192
1850
|
/**
|
|
1193
|
-
* Parses isNull filter from json.
|
|
1851
|
+
* @description Parses isNull filter from json.
|
|
1194
1852
|
* @public
|
|
1195
1853
|
*/
|
|
1196
1854
|
static fromJson(dto, filterParser, expressionParser) {
|
|
1197
1855
|
return new ɵIsNullFilter(dto['comparisonType'], expressionParser.fromJson(dto['leftExpression'], filterParser));
|
|
1198
1856
|
}
|
|
1857
|
+
/** {@inheritDoc ɵBaseFilter.clone} */
|
|
1199
1858
|
clone() {
|
|
1200
1859
|
const filter = new ɵIsNullFilter(this.comparisonType, this.leftExpression);
|
|
1201
1860
|
filter.isEnabled = this.isEnabled;
|
|
@@ -1215,17 +1874,17 @@ __decorate([
|
|
|
1215
1874
|
], ɵIsNullFilter.prototype, "isNull", null);
|
|
1216
1875
|
|
|
1217
1876
|
/**
|
|
1218
|
-
* Empty Guid constant.
|
|
1219
1877
|
* @public
|
|
1878
|
+
* @description Empty Guid constant.
|
|
1220
1879
|
*/
|
|
1221
1880
|
const ɵEMPTY_GUID = '00000000-0000-0000-0000-000000000000';
|
|
1222
1881
|
/**
|
|
1223
|
-
* Regular expression for Guid validation.
|
|
1882
|
+
* @description Regular expression for Guid validation.
|
|
1224
1883
|
* @public
|
|
1225
1884
|
*/
|
|
1226
1885
|
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');
|
|
1227
1886
|
/**
|
|
1228
|
-
* Generates guid part.
|
|
1887
|
+
* @description Generates guid part.
|
|
1229
1888
|
* @param length Part length.
|
|
1230
1889
|
* @public
|
|
1231
1890
|
*/
|
|
@@ -1238,7 +1897,7 @@ function generateGuidPart(length) {
|
|
|
1238
1897
|
return out;
|
|
1239
1898
|
}
|
|
1240
1899
|
/**
|
|
1241
|
-
* Generates new Guid.
|
|
1900
|
+
* @description Generates new Guid.
|
|
1242
1901
|
* @public
|
|
1243
1902
|
*/
|
|
1244
1903
|
function ɵgenerateGuid() {
|
|
@@ -1251,7 +1910,7 @@ function ɵgenerateGuid() {
|
|
|
1251
1910
|
].join('-');
|
|
1252
1911
|
}
|
|
1253
1912
|
/**
|
|
1254
|
-
* Checks if value is Guid.
|
|
1913
|
+
* @description Checks if value is Guid.
|
|
1255
1914
|
* @param value Value for check.
|
|
1256
1915
|
* @public
|
|
1257
1916
|
*/
|
|
@@ -1259,7 +1918,7 @@ function ɵisGuid(value) {
|
|
|
1259
1918
|
return Boolean(value) && validator.test(value);
|
|
1260
1919
|
}
|
|
1261
1920
|
/**
|
|
1262
|
-
* Checks if Guid is empty value or equal to EMPTY_GUID.
|
|
1921
|
+
* @description Checks if Guid is empty value or equal to EMPTY_GUID.
|
|
1263
1922
|
* @param guid Guid for check.
|
|
1264
1923
|
* @public
|
|
1265
1924
|
*/
|
|
@@ -1269,6 +1928,7 @@ function ɵisEmptyGuid(guid) {
|
|
|
1269
1928
|
|
|
1270
1929
|
/**
|
|
1271
1930
|
* @public
|
|
1931
|
+
* @description An exception thrown when next handler already specified.
|
|
1272
1932
|
*/
|
|
1273
1933
|
class ɵNextHandlerAlreadySpecifiedException extends Error {
|
|
1274
1934
|
constructor() {
|
|
@@ -1276,6 +1936,11 @@ class ɵNextHandlerAlreadySpecifiedException extends Error {
|
|
|
1276
1936
|
}
|
|
1277
1937
|
}
|
|
1278
1938
|
|
|
1939
|
+
/**
|
|
1940
|
+
* @public
|
|
1941
|
+
* @description The exception thrown when trying to pass an empty or null argument.
|
|
1942
|
+
* @extends {Error}
|
|
1943
|
+
*/
|
|
1279
1944
|
class ɵArgumentEmptyException extends Error {
|
|
1280
1945
|
// region Constructors: Public
|
|
1281
1946
|
constructor(argumentName) {
|
|
@@ -1283,6 +1948,11 @@ class ɵArgumentEmptyException extends Error {
|
|
|
1283
1948
|
}
|
|
1284
1949
|
}
|
|
1285
1950
|
|
|
1951
|
+
/**
|
|
1952
|
+
* @public
|
|
1953
|
+
* @description The exception thrown when trying to pass argument that not in range.
|
|
1954
|
+
* @extends {Error}
|
|
1955
|
+
*/
|
|
1286
1956
|
class ɵArgumentOutOfRangeException extends Error {
|
|
1287
1957
|
// region Constructors: Public
|
|
1288
1958
|
constructor(argumentName) {
|
|
@@ -1290,6 +1960,11 @@ class ɵArgumentOutOfRangeException extends Error {
|
|
|
1290
1960
|
}
|
|
1291
1961
|
}
|
|
1292
1962
|
|
|
1963
|
+
/**
|
|
1964
|
+
* @public
|
|
1965
|
+
* @description An exception thrown when trying to retrieve a collection item and it not exists.
|
|
1966
|
+
* @extends {Error}
|
|
1967
|
+
*/
|
|
1293
1968
|
class ɵItemNotFoundException extends Error {
|
|
1294
1969
|
// region Constructors: Public
|
|
1295
1970
|
constructor(key) {
|
|
@@ -1297,19 +1972,41 @@ class ɵItemNotFoundException extends Error {
|
|
|
1297
1972
|
}
|
|
1298
1973
|
}
|
|
1299
1974
|
|
|
1975
|
+
/**
|
|
1976
|
+
* @public
|
|
1977
|
+
* @description Utilities class with various validation methods.
|
|
1978
|
+
*/
|
|
1300
1979
|
class ɵValidationUtilities {
|
|
1301
1980
|
// region Methods: Public
|
|
1981
|
+
/**
|
|
1982
|
+
* @public
|
|
1983
|
+
* @description Checks if argument is empty.
|
|
1984
|
+
* @param argumentName - Argument name.
|
|
1985
|
+
* @param argumentValue - Value of argument.
|
|
1986
|
+
*/
|
|
1302
1987
|
static checkArgumentEmpty(argumentName, argumentValue) {
|
|
1303
1988
|
if (argumentValue === undefined || argumentValue === null) {
|
|
1304
1989
|
throw new ɵArgumentEmptyException(argumentName);
|
|
1305
1990
|
}
|
|
1306
1991
|
}
|
|
1992
|
+
/**
|
|
1993
|
+
* @public
|
|
1994
|
+
* @description Checks if array is empty.
|
|
1995
|
+
* @param argumentName - Argument name.
|
|
1996
|
+
* @param argumentValue - Value of argument.
|
|
1997
|
+
*/
|
|
1307
1998
|
static checkArrayEmpty(argumentName, argumentValue) {
|
|
1308
1999
|
ɵValidationUtilities.checkArgumentEmpty(argumentName, argumentValue);
|
|
1309
2000
|
if (argumentValue.length === 0) {
|
|
1310
2001
|
throw new ɵArgumentEmptyException(argumentName);
|
|
1311
2002
|
}
|
|
1312
2003
|
}
|
|
2004
|
+
/**
|
|
2005
|
+
* @public
|
|
2006
|
+
* @description Checks if string is empty.
|
|
2007
|
+
* @param argumentName - Argument name.
|
|
2008
|
+
* @param argumentValue - Value of argument.
|
|
2009
|
+
*/
|
|
1313
2010
|
static checkStringIsNotEmpty(argumentName, argumentValue) {
|
|
1314
2011
|
this.checkArgumentEmpty(argumentName, argumentValue);
|
|
1315
2012
|
if (argumentValue === '') {
|
|
@@ -1317,6 +2014,13 @@ class ɵValidationUtilities {
|
|
|
1317
2014
|
}
|
|
1318
2015
|
return argumentValue;
|
|
1319
2016
|
}
|
|
2017
|
+
/**
|
|
2018
|
+
* @public
|
|
2019
|
+
* @description Checks if argument in range.
|
|
2020
|
+
* @param argumentName - Argument name.
|
|
2021
|
+
* @param argumentValue - Value of argument.
|
|
2022
|
+
* @param range - Range.
|
|
2023
|
+
*/
|
|
1320
2024
|
static checkArgumentOutOfRange(argumentName, argumentValue, range) {
|
|
1321
2025
|
if (range.begin && argumentValue < range.begin) {
|
|
1322
2026
|
throw new ɵArgumentOutOfRangeException(argumentName);
|
|
@@ -1325,8 +2029,19 @@ class ɵValidationUtilities {
|
|
|
1325
2029
|
throw new ɵArgumentOutOfRangeException(argumentName);
|
|
1326
2030
|
}
|
|
1327
2031
|
}
|
|
2032
|
+
static checkEnumOutOfRange(argumentName, argumentValue, range) {
|
|
2033
|
+
if (!range || !Object.values(range).includes(argumentValue)) {
|
|
2034
|
+
throw new ɵArgumentOutOfRangeException(argumentName);
|
|
2035
|
+
}
|
|
2036
|
+
}
|
|
1328
2037
|
}
|
|
1329
2038
|
|
|
2039
|
+
/**
|
|
2040
|
+
* @public
|
|
2041
|
+
* @description Group of filters. Groups of filters can be nested into each other,
|
|
2042
|
+
* i.e. The collection itself can be an element of another collection.
|
|
2043
|
+
* @extends {ɵBaseFilter}
|
|
2044
|
+
*/
|
|
1330
2045
|
class ɵFilterGroup extends ɵBaseFilter {
|
|
1331
2046
|
/**
|
|
1332
2047
|
* @internal
|
|
@@ -1335,6 +2050,10 @@ class ɵFilterGroup extends ɵBaseFilter {
|
|
|
1335
2050
|
static get _instanceOfKeys() {
|
|
1336
2051
|
return [...ɵBaseFilter._instanceOfKeys, this._instanceOfKey];
|
|
1337
2052
|
}
|
|
2053
|
+
/**
|
|
2054
|
+
* @public
|
|
2055
|
+
* @description Return collecion of deserialized filters.
|
|
2056
|
+
*/
|
|
1338
2057
|
get items() {
|
|
1339
2058
|
const result = {};
|
|
1340
2059
|
this.filters.forEach((filter, key) => {
|
|
@@ -1344,13 +2063,17 @@ class ɵFilterGroup extends ɵBaseFilter {
|
|
|
1344
2063
|
}
|
|
1345
2064
|
constructor(logicalOperation = ɵLogicalOperatorType.And, rootSchemaName) {
|
|
1346
2065
|
super(ɵFilterType.FilterGroup);
|
|
2066
|
+
/**
|
|
2067
|
+
* @public
|
|
2068
|
+
* @description Collection of child filters.
|
|
2069
|
+
*/
|
|
1347
2070
|
this.filters = new Map();
|
|
1348
2071
|
this.logicalOperation = logicalOperation;
|
|
1349
2072
|
this.rootSchemaName = rootSchemaName;
|
|
1350
2073
|
}
|
|
1351
2074
|
/**
|
|
1352
|
-
* Parses filter group from json.
|
|
1353
2075
|
* @public
|
|
2076
|
+
* @description Parses filter group from json.
|
|
1354
2077
|
*/
|
|
1355
2078
|
static fromJson(dto, filterParser) {
|
|
1356
2079
|
const logicalOperation = dto['logicalOperation'];
|
|
@@ -1360,10 +2083,7 @@ class ɵFilterGroup extends ɵBaseFilter {
|
|
|
1360
2083
|
});
|
|
1361
2084
|
return group;
|
|
1362
2085
|
}
|
|
1363
|
-
/**
|
|
1364
|
-
* Converts instance to json object.
|
|
1365
|
-
* @public
|
|
1366
|
-
*/
|
|
2086
|
+
/** {@inheritDoc ɵSerializable.toJson} */
|
|
1367
2087
|
toJson() {
|
|
1368
2088
|
const result = {};
|
|
1369
2089
|
result['filterType'] = this.filterType;
|
|
@@ -1382,7 +2102,8 @@ class ɵFilterGroup extends ɵBaseFilter {
|
|
|
1382
2102
|
}));
|
|
1383
2103
|
}
|
|
1384
2104
|
/**
|
|
1385
|
-
*
|
|
2105
|
+
* @public
|
|
2106
|
+
* @description Returns filter item by index.
|
|
1386
2107
|
* @param index Item index.
|
|
1387
2108
|
* @returns Filter.
|
|
1388
2109
|
*/
|
|
@@ -1390,7 +2111,8 @@ class ɵFilterGroup extends ɵBaseFilter {
|
|
|
1390
2111
|
return this.items[Object.keys(this.items)[index]];
|
|
1391
2112
|
}
|
|
1392
2113
|
/**
|
|
1393
|
-
*
|
|
2114
|
+
* @public
|
|
2115
|
+
* @description Creates and adds compare filter by value.
|
|
1394
2116
|
* @param comparisonType Comparison type.
|
|
1395
2117
|
* @param columnPath Column path.
|
|
1396
2118
|
* @param parameterValue Parameter value.
|
|
@@ -1403,7 +2125,8 @@ class ɵFilterGroup extends ɵBaseFilter {
|
|
|
1403
2125
|
this.add(filter, filterKey);
|
|
1404
2126
|
}
|
|
1405
2127
|
/**
|
|
1406
|
-
*
|
|
2128
|
+
* @public
|
|
2129
|
+
* @description Creates and adds in filter by values.
|
|
1407
2130
|
* @param comparisonType Comparison type.
|
|
1408
2131
|
* @param columnPath Column path.
|
|
1409
2132
|
* @param parameterValues Parameter values.
|
|
@@ -1416,7 +2139,8 @@ class ɵFilterGroup extends ɵBaseFilter {
|
|
|
1416
2139
|
this.add(filter, filterKey);
|
|
1417
2140
|
}
|
|
1418
2141
|
/**
|
|
1419
|
-
*
|
|
2142
|
+
* @public
|
|
2143
|
+
* @description Creates and adds in filter for primary column.
|
|
1420
2144
|
* @param primaryColumnValues Primary column values.
|
|
1421
2145
|
* @param filterKey Filter key.
|
|
1422
2146
|
*/
|
|
@@ -1426,13 +2150,20 @@ class ɵFilterGroup extends ɵBaseFilter {
|
|
|
1426
2150
|
const filter = new ɵInFilter(ɵComparisonType.Equal, leftExpression, expressions);
|
|
1427
2151
|
this.add(filter, filterKey);
|
|
1428
2152
|
}
|
|
2153
|
+
/**
|
|
2154
|
+
* @public
|
|
2155
|
+
* @description Creates and adds null filter.
|
|
2156
|
+
* @param columnPath Path of column.
|
|
2157
|
+
* @param filterKey Filter key.
|
|
2158
|
+
*/
|
|
1429
2159
|
addSchemaColumnIsNullFilter(columnPath, filterKey) {
|
|
1430
2160
|
const leftExpression = new ɵColumnExpression({ columnPath });
|
|
1431
2161
|
const filter = new ɵIsNullFilter(ɵComparisonType.Is_null, leftExpression);
|
|
1432
2162
|
this.add(filter, filterKey);
|
|
1433
2163
|
}
|
|
1434
2164
|
/**
|
|
1435
|
-
*
|
|
2165
|
+
* @public
|
|
2166
|
+
* @description Creates and adds not null filter.
|
|
1436
2167
|
* @param columnPath Column path.
|
|
1437
2168
|
* @param filterKey Filter key.
|
|
1438
2169
|
*/
|
|
@@ -1442,7 +2173,8 @@ class ɵFilterGroup extends ɵBaseFilter {
|
|
|
1442
2173
|
this.add(filter, filterKey);
|
|
1443
2174
|
}
|
|
1444
2175
|
/**
|
|
1445
|
-
*
|
|
2176
|
+
* @public
|
|
2177
|
+
* @description Creates and adds filter between less value and greater value.
|
|
1446
2178
|
* @param columnPath Column path.
|
|
1447
2179
|
* @param lessParamValue Less parameter value.
|
|
1448
2180
|
* @param greaterParamValue Greater parameter value.
|
|
@@ -1455,21 +2187,45 @@ class ɵFilterGroup extends ɵBaseFilter {
|
|
|
1455
2187
|
const filter = new ɵBetweenFilter(leftExpression, rightLessExpression, rightGreaterExpression);
|
|
1456
2188
|
this.add(filter, filterKey);
|
|
1457
2189
|
}
|
|
2190
|
+
/**
|
|
2191
|
+
* @public
|
|
2192
|
+
* @description Creates and adds exists filter.
|
|
2193
|
+
* @param columnPath Column path.
|
|
2194
|
+
* @param subFilters Filters for exists expression.
|
|
2195
|
+
* @param filterKey Filter key.
|
|
2196
|
+
*/
|
|
1458
2197
|
addExistsFilter(columnPath, subFilters, filterKey) {
|
|
1459
2198
|
const leftExpression = new ɵColumnExpression({ columnPath });
|
|
1460
2199
|
const filter = new ɵExistsFilter(leftExpression, subFilters);
|
|
1461
2200
|
this.add(filter, filterKey);
|
|
1462
2201
|
}
|
|
2202
|
+
/**
|
|
2203
|
+
* @public
|
|
2204
|
+
* @description Creates and adds not exists filter.
|
|
2205
|
+
* @param columnPath Column path.
|
|
2206
|
+
* @param subFilters Filters for exist expression.
|
|
2207
|
+
* @param filterKey Filter key.
|
|
2208
|
+
*/
|
|
1463
2209
|
addNotExistsFilter(columnPath, subFilters, filterKey) {
|
|
1464
2210
|
const leftExpression = new ɵColumnExpression({ columnPath });
|
|
1465
2211
|
const filter = new ɵExistsFilter(leftExpression, subFilters, ɵComparisonType.Not_exists);
|
|
1466
2212
|
this.add(filter, filterKey);
|
|
1467
2213
|
}
|
|
2214
|
+
/**
|
|
2215
|
+
* @public
|
|
2216
|
+
* @description Adds filter.
|
|
2217
|
+
* @param filter Instance of filter.
|
|
2218
|
+
* @param filterKey Filter key.
|
|
2219
|
+
*/
|
|
1468
2220
|
add(filter, filterKey) {
|
|
1469
2221
|
ɵValidationUtilities.checkArgumentEmpty('filter', filter);
|
|
1470
2222
|
const key = filterKey || ɵgenerateGuid();
|
|
1471
2223
|
this.filters.set(key, filter);
|
|
1472
2224
|
}
|
|
2225
|
+
/**
|
|
2226
|
+
* @public
|
|
2227
|
+
* @description Clones instance.
|
|
2228
|
+
*/
|
|
1473
2229
|
clone() {
|
|
1474
2230
|
const filterGroup = new ɵFilterGroup(this.logicalOperation, this.rootSchemaName);
|
|
1475
2231
|
this.filters.forEach((filter, filterKey) => {
|
|
@@ -1510,6 +2266,11 @@ __decorate([
|
|
|
1510
2266
|
__metadata("design:paramtypes", [])
|
|
1511
2267
|
], ɵFilterGroup.prototype, "items", null);
|
|
1512
2268
|
|
|
2269
|
+
/**
|
|
2270
|
+
* @public
|
|
2271
|
+
* @description The class that defines the sub query expression.
|
|
2272
|
+
* @extends {ɵBaseExpression}
|
|
2273
|
+
*/
|
|
1513
2274
|
class ɵSubQueryExpression extends ɵBaseExpression {
|
|
1514
2275
|
/**
|
|
1515
2276
|
* @internal
|
|
@@ -1520,6 +2281,9 @@ class ɵSubQueryExpression extends ɵBaseExpression {
|
|
|
1520
2281
|
}
|
|
1521
2282
|
constructor(config) {
|
|
1522
2283
|
super(config);
|
|
2284
|
+
/**
|
|
2285
|
+
* @description Type of expression.
|
|
2286
|
+
*/
|
|
1523
2287
|
this.expressionType = ɵExpressionType.SubQuery;
|
|
1524
2288
|
this.columnPath = config?.columnPath;
|
|
1525
2289
|
const subFilters = config?.subFilters;
|
|
@@ -1551,9 +2315,11 @@ class ɵSubQueryExpression extends ɵBaseExpression {
|
|
|
1551
2315
|
});
|
|
1552
2316
|
return expression;
|
|
1553
2317
|
}
|
|
2318
|
+
/** {@inheritDoc ɵBaseExpression.clone} */
|
|
1554
2319
|
clone() {
|
|
1555
2320
|
return new ɵSubQueryExpression(this);
|
|
1556
2321
|
}
|
|
2322
|
+
/** {@inheritDoc ɵBaseExpression.toJson} */
|
|
1557
2323
|
toJson() {
|
|
1558
2324
|
const result = super.toJson();
|
|
1559
2325
|
if (this.subFilters) {
|
|
@@ -1579,6 +2345,11 @@ class ɵSubQueryExpression extends ɵBaseExpression {
|
|
|
1579
2345
|
*/
|
|
1580
2346
|
ɵSubQueryExpression._instanceOfKey = 'devkit_SubQueryExpression';
|
|
1581
2347
|
|
|
2348
|
+
/**
|
|
2349
|
+
* @public
|
|
2350
|
+
* @description A class that describes expression with aggregation sub query.
|
|
2351
|
+
* @extends {ɵSubQueryExpression}
|
|
2352
|
+
*/
|
|
1582
2353
|
class ɵAggregationSubQueryExpression extends ɵSubQueryExpression {
|
|
1583
2354
|
/**
|
|
1584
2355
|
* @internal
|
|
@@ -1605,6 +2376,7 @@ class ɵAggregationSubQueryExpression extends ɵSubQueryExpression {
|
|
|
1605
2376
|
});
|
|
1606
2377
|
return expression;
|
|
1607
2378
|
}
|
|
2379
|
+
/** {@inheritDoc ɵBaseExpression.clone} */
|
|
1608
2380
|
clone() {
|
|
1609
2381
|
return new ɵAggregationSubQueryExpression(this);
|
|
1610
2382
|
}
|
|
@@ -1616,8 +2388,8 @@ class ɵAggregationSubQueryExpression extends ɵSubQueryExpression {
|
|
|
1616
2388
|
ɵAggregationSubQueryExpression._instanceOfKey = 'devkit_AggregationSubQueryExpression';
|
|
1617
2389
|
|
|
1618
2390
|
/**
|
|
1619
|
-
* Function expression resolver.
|
|
1620
2391
|
* @public
|
|
2392
|
+
* @description Function expression resolver.
|
|
1621
2393
|
*/
|
|
1622
2394
|
class FunctionExpressionResolver {
|
|
1623
2395
|
static resolve(dto) {
|
|
@@ -1633,10 +2405,17 @@ class FunctionExpressionResolver {
|
|
|
1633
2405
|
}
|
|
1634
2406
|
}
|
|
1635
2407
|
/**
|
|
1636
|
-
* Expression resolver.
|
|
2408
|
+
* @description Expression resolver.
|
|
1637
2409
|
* @public
|
|
1638
2410
|
*/
|
|
1639
2411
|
class ɵExpressionResolver {
|
|
2412
|
+
/**
|
|
2413
|
+
* @public
|
|
2414
|
+
* @description Resolves class of expression.
|
|
2415
|
+
* @param expressionType - Type of expression.
|
|
2416
|
+
* @param dto - Serialized object.
|
|
2417
|
+
* @return Class of expression.
|
|
2418
|
+
*/
|
|
1640
2419
|
static resolve(expressionType, dto) {
|
|
1641
2420
|
const expressionClass = {
|
|
1642
2421
|
[ɵExpressionType.SchemaColumn]: ɵColumnExpression,
|
|
@@ -1650,13 +2429,14 @@ class ɵExpressionResolver {
|
|
|
1650
2429
|
}
|
|
1651
2430
|
|
|
1652
2431
|
/**
|
|
1653
|
-
* Expression parser.
|
|
1654
2432
|
* @public
|
|
2433
|
+
* @description Expression parser.
|
|
2434
|
+
* @extends {ɵBaseExpressionParser}
|
|
1655
2435
|
*/
|
|
1656
2436
|
class ɵExpressionParser extends ɵBaseExpressionParser {
|
|
1657
2437
|
/**
|
|
1658
|
-
* Parses expression from json.
|
|
1659
2438
|
* @public
|
|
2439
|
+
* @description Parses expression from json.
|
|
1660
2440
|
*/
|
|
1661
2441
|
static fromJson(dto, filterParser) {
|
|
1662
2442
|
const expressionType = dto['expressionType'];
|
|
@@ -1664,6 +2444,9 @@ class ɵExpressionParser extends ɵBaseExpressionParser {
|
|
|
1664
2444
|
}
|
|
1665
2445
|
}
|
|
1666
2446
|
|
|
2447
|
+
/**
|
|
2448
|
+
* @internal
|
|
2449
|
+
*/
|
|
1667
2450
|
const ɵEXPRESSION_TYPE_MOCK = -1;
|
|
1668
2451
|
class ɵExpressionMock extends ɵBaseExpression {
|
|
1669
2452
|
/**
|
|
@@ -1728,6 +2511,9 @@ class ɵFilterMock extends ɵBaseFilter {
|
|
|
1728
2511
|
*/
|
|
1729
2512
|
ɵFilterMock._instanceOfKey = 'devkit_FilterMock';
|
|
1730
2513
|
|
|
2514
|
+
/**
|
|
2515
|
+
* @internal
|
|
2516
|
+
*/
|
|
1731
2517
|
const ɵparserMock = {
|
|
1732
2518
|
fromJson: (data) => ({
|
|
1733
2519
|
...data,
|
|
@@ -1737,20 +2523,31 @@ const ɵparserMock = {
|
|
|
1737
2523
|
};
|
|
1738
2524
|
|
|
1739
2525
|
/**
|
|
1740
|
-
* Filter parser interface
|
|
1741
2526
|
* @public
|
|
2527
|
+
* @description Filter parser interface.
|
|
1742
2528
|
*/
|
|
1743
2529
|
class ɵBaseFilterParser {
|
|
2530
|
+
/**
|
|
2531
|
+
* @description Creates filter from JSON.
|
|
2532
|
+
* @param dto - Serialized filter.
|
|
2533
|
+
* @return Instance of filter.
|
|
2534
|
+
*/
|
|
1744
2535
|
static fromJson(dto) {
|
|
1745
2536
|
throw new Error('not implemented');
|
|
1746
2537
|
}
|
|
1747
2538
|
}
|
|
1748
2539
|
|
|
1749
2540
|
/**
|
|
1750
|
-
* Filter resolver.
|
|
1751
2541
|
* @public
|
|
2542
|
+
* @description Filter resolver.
|
|
1752
2543
|
*/
|
|
1753
2544
|
class ɵFilterResolver {
|
|
2545
|
+
/**
|
|
2546
|
+
* @public
|
|
2547
|
+
* @description Resolves class of filter.
|
|
2548
|
+
* @param filterType - Type of filter.
|
|
2549
|
+
* @return Class of filter.
|
|
2550
|
+
*/
|
|
1754
2551
|
static resolve(filterType) {
|
|
1755
2552
|
const filterClass = {
|
|
1756
2553
|
[ɵFilterType.Compare]: ɵCompareFilter,
|
|
@@ -1765,10 +2562,14 @@ class ɵFilterResolver {
|
|
|
1765
2562
|
}
|
|
1766
2563
|
|
|
1767
2564
|
/**
|
|
1768
|
-
* Filter parser.
|
|
1769
2565
|
* @public
|
|
2566
|
+
* @description Filter parser.
|
|
1770
2567
|
*/
|
|
1771
2568
|
class ɵFilterParser extends ɵBaseFilterParser {
|
|
2569
|
+
/**
|
|
2570
|
+
* @description Creates filter from JSON.
|
|
2571
|
+
* @param dto - Serialized filter.
|
|
2572
|
+
*/
|
|
1772
2573
|
static fromJson(dto) {
|
|
1773
2574
|
const filterType = dto['filterType'];
|
|
1774
2575
|
const isEnabled = dto['isEnabled'];
|
|
@@ -1780,10 +2581,16 @@ class ɵFilterParser extends ɵBaseFilterParser {
|
|
|
1780
2581
|
}
|
|
1781
2582
|
}
|
|
1782
2583
|
|
|
2584
|
+
/**
|
|
2585
|
+
* @internal
|
|
2586
|
+
*/
|
|
1783
2587
|
const ɵDEFAULT_FILTER_PLAIN_OBJ = {
|
|
1784
2588
|
isEnabled: true,
|
|
1785
2589
|
trimDateTimeParameterToDate: false,
|
|
1786
2590
|
};
|
|
2591
|
+
/**
|
|
2592
|
+
* @internal
|
|
2593
|
+
*/
|
|
1787
2594
|
function ɵgetFilterPlainObj(filterPlainObj) {
|
|
1788
2595
|
return {
|
|
1789
2596
|
...ɵDEFAULT_FILTER_PLAIN_OBJ,
|
|
@@ -1791,10 +2598,24 @@ function ɵgetFilterPlainObj(filterPlainObj) {
|
|
|
1791
2598
|
};
|
|
1792
2599
|
}
|
|
1793
2600
|
|
|
2601
|
+
/**
|
|
2602
|
+
* @public
|
|
2603
|
+
* @abstract
|
|
2604
|
+
* @classdesc Class contains info about column for query.
|
|
2605
|
+
*/
|
|
1794
2606
|
class ɵBaseQueryColumn {
|
|
1795
2607
|
constructor(expression) {
|
|
2608
|
+
/**
|
|
2609
|
+
* @description Order direction.
|
|
2610
|
+
*/
|
|
1796
2611
|
this.orderDirection = ɵOrderDirection.None;
|
|
2612
|
+
/**
|
|
2613
|
+
* @description Column order position.
|
|
2614
|
+
*/
|
|
1797
2615
|
this.orderPosition = -1;
|
|
2616
|
+
/**
|
|
2617
|
+
* @description If true then column data will be present in the result set.
|
|
2618
|
+
*/
|
|
1798
2619
|
this.isVisible = true;
|
|
1799
2620
|
this.expression = expression;
|
|
1800
2621
|
}
|
|
@@ -1840,6 +2661,11 @@ class ɵBaseQueryColumn {
|
|
|
1840
2661
|
}
|
|
1841
2662
|
}
|
|
1842
2663
|
|
|
2664
|
+
/**
|
|
2665
|
+
* @public
|
|
2666
|
+
* @classdesc Class contains info about column with arithmetic operation.
|
|
2667
|
+
* @extends {ɵBaseQueryColumn}
|
|
2668
|
+
*/
|
|
1843
2669
|
class ɵArithmeticQueryColumn extends ɵBaseQueryColumn {
|
|
1844
2670
|
// region Constructors: Public
|
|
1845
2671
|
constructor(arithmeticOperation, leftArithmeticOperand, rightArithmeticOperand) {
|
|
@@ -1847,6 +2673,11 @@ class ɵArithmeticQueryColumn extends ɵBaseQueryColumn {
|
|
|
1847
2673
|
}
|
|
1848
2674
|
}
|
|
1849
2675
|
|
|
2676
|
+
/**
|
|
2677
|
+
* @public
|
|
2678
|
+
* @classdesc Class contains info about common column from entity.
|
|
2679
|
+
* @extends {ɵBaseQueryColumn}
|
|
2680
|
+
*/
|
|
1850
2681
|
class ɵEntityQueryColumn extends ɵBaseQueryColumn {
|
|
1851
2682
|
// region Constructors: Public
|
|
1852
2683
|
constructor(columnPath) {
|
|
@@ -1854,6 +2685,11 @@ class ɵEntityQueryColumn extends ɵBaseQueryColumn {
|
|
|
1854
2685
|
}
|
|
1855
2686
|
}
|
|
1856
2687
|
|
|
2688
|
+
/**
|
|
2689
|
+
* @public
|
|
2690
|
+
* @classdesc Class contains info about column that contains parameter.
|
|
2691
|
+
* @extends {ɵBaseQueryColumn}
|
|
2692
|
+
*/
|
|
1857
2693
|
class ɵParameterQueryColumn extends ɵBaseQueryColumn {
|
|
1858
2694
|
// region Constructors: Public
|
|
1859
2695
|
constructor(value, dataValueType) {
|
|
@@ -1861,6 +2697,11 @@ class ɵParameterQueryColumn extends ɵBaseQueryColumn {
|
|
|
1861
2697
|
}
|
|
1862
2698
|
}
|
|
1863
2699
|
|
|
2700
|
+
/**
|
|
2701
|
+
* @public
|
|
2702
|
+
* @classdesc Class contains info about column with sub query and aggregation.
|
|
2703
|
+
* @extends {ɵBaseQueryColumn}
|
|
2704
|
+
*/
|
|
1864
2705
|
class ɵAggregationSubQueryColumn extends ɵBaseQueryColumn {
|
|
1865
2706
|
// region Constructors: Public
|
|
1866
2707
|
constructor(columnPath, aggregationType, subFilters, subOrderDirection, subOrderColumn) {
|
|
@@ -1874,6 +2715,11 @@ class ɵAggregationSubQueryColumn extends ɵBaseQueryColumn {
|
|
|
1874
2715
|
}
|
|
1875
2716
|
}
|
|
1876
2717
|
|
|
2718
|
+
/**
|
|
2719
|
+
* @public
|
|
2720
|
+
* @classdesc Class contains info about column with sub query.
|
|
2721
|
+
* @extends {ɵBaseQueryColumn}
|
|
2722
|
+
*/
|
|
1877
2723
|
class ɵSubQueryColumn extends ɵBaseQueryColumn {
|
|
1878
2724
|
// region Constructors: Public
|
|
1879
2725
|
constructor(columnPath, subFilters) {
|
|
@@ -1881,6 +2727,11 @@ class ɵSubQueryColumn extends ɵBaseQueryColumn {
|
|
|
1881
2727
|
}
|
|
1882
2728
|
}
|
|
1883
2729
|
|
|
2730
|
+
/**
|
|
2731
|
+
* @public
|
|
2732
|
+
* @classdesc Class contains info about column with aggregation function.
|
|
2733
|
+
* @extends {ɵBaseQueryColumn}
|
|
2734
|
+
*/
|
|
1884
2735
|
class ɵAggregationFunctionColumn extends ɵBaseQueryColumn {
|
|
1885
2736
|
// region Constructors: Public
|
|
1886
2737
|
constructor(aggregationType, aggregationEvalType, functionArgument) {
|
|
@@ -1892,6 +2743,11 @@ class ɵAggregationFunctionColumn extends ɵBaseQueryColumn {
|
|
|
1892
2743
|
}
|
|
1893
2744
|
}
|
|
1894
2745
|
|
|
2746
|
+
/**
|
|
2747
|
+
* @public
|
|
2748
|
+
* @classdesc Class contains info about column with date part.
|
|
2749
|
+
* @extends {ɵBaseQueryColumn}
|
|
2750
|
+
*/
|
|
1895
2751
|
class ɵDatePartFunctionColumn extends ɵBaseQueryColumn {
|
|
1896
2752
|
// region Constructors: Public
|
|
1897
2753
|
constructor(datePartType, functionArgument) {
|
|
@@ -1902,11 +2758,19 @@ class ɵDatePartFunctionColumn extends ɵBaseQueryColumn {
|
|
|
1902
2758
|
}
|
|
1903
2759
|
// endregion
|
|
1904
2760
|
// region Properties: Public
|
|
2761
|
+
/**
|
|
2762
|
+
* @description Part of date.
|
|
2763
|
+
*/
|
|
1905
2764
|
get datePartType() {
|
|
1906
2765
|
return this.expression?.datePartType;
|
|
1907
2766
|
}
|
|
1908
2767
|
}
|
|
1909
2768
|
|
|
2769
|
+
/**
|
|
2770
|
+
* @public
|
|
2771
|
+
* @classdesc Class contains info about column with length function.
|
|
2772
|
+
* @extends {ɵBaseQueryColumn}
|
|
2773
|
+
*/
|
|
1910
2774
|
class ɵLengthFunctionColumn extends ɵBaseQueryColumn {
|
|
1911
2775
|
// region Constructors: Public
|
|
1912
2776
|
constructor(functionArgument) {
|
|
@@ -1914,6 +2778,11 @@ class ɵLengthFunctionColumn extends ɵBaseQueryColumn {
|
|
|
1914
2778
|
}
|
|
1915
2779
|
}
|
|
1916
2780
|
|
|
2781
|
+
/**
|
|
2782
|
+
* @public
|
|
2783
|
+
* @classdesc Class contains info about column with macros function.
|
|
2784
|
+
* @extends {ɵBaseQueryColumn}
|
|
2785
|
+
*/
|
|
1917
2786
|
class ɵMacrosFunctionColumn extends ɵBaseQueryColumn {
|
|
1918
2787
|
// region Constructors: Public
|
|
1919
2788
|
constructor(macrosType) {
|
|
@@ -1921,6 +2790,11 @@ class ɵMacrosFunctionColumn extends ɵBaseQueryColumn {
|
|
|
1921
2790
|
}
|
|
1922
2791
|
}
|
|
1923
2792
|
|
|
2793
|
+
/**
|
|
2794
|
+
* @public
|
|
2795
|
+
* @classdesc Class contains info about column with window function.
|
|
2796
|
+
* @extends {ɵBaseQueryColumn}
|
|
2797
|
+
*/
|
|
1924
2798
|
class ɵWindowFunctionColumn extends ɵBaseQueryColumn {
|
|
1925
2799
|
// region Constructors: Public
|
|
1926
2800
|
constructor(functionArgument) {
|
|
@@ -1928,11 +2802,17 @@ class ɵWindowFunctionColumn extends ɵBaseQueryColumn {
|
|
|
1928
2802
|
}
|
|
1929
2803
|
}
|
|
1930
2804
|
|
|
2805
|
+
/**
|
|
2806
|
+
* @internal
|
|
2807
|
+
*/
|
|
1931
2808
|
const ɵDEFAULT_COLUMN_PLAIN_OBJ = {
|
|
1932
2809
|
isVisible: true,
|
|
1933
2810
|
orderPosition: -1,
|
|
1934
2811
|
orderDirection: ɵOrderDirection.None,
|
|
1935
2812
|
};
|
|
2813
|
+
/**
|
|
2814
|
+
* @internal
|
|
2815
|
+
*/
|
|
1936
2816
|
function ɵgetColumnPlainObj(expressionPlainObj) {
|
|
1937
2817
|
return {
|
|
1938
2818
|
...ɵDEFAULT_COLUMN_PLAIN_OBJ,
|
|
@@ -1942,6 +2822,7 @@ function ɵgetColumnPlainObj(expressionPlainObj) {
|
|
|
1942
2822
|
|
|
1943
2823
|
/**
|
|
1944
2824
|
* @public
|
|
2825
|
+
* @description The base class of the data request. Implements {@link ɵMetadataProvider}
|
|
1945
2826
|
*/
|
|
1946
2827
|
class ɵBaseQuery {
|
|
1947
2828
|
// region Constructors: Protected
|
|
@@ -1953,6 +2834,7 @@ class ɵBaseQuery {
|
|
|
1953
2834
|
}
|
|
1954
2835
|
// endregion
|
|
1955
2836
|
// region Methods: Public
|
|
2837
|
+
/** {@inheritDoc ɵMetadataProvider.getMetadata} */
|
|
1956
2838
|
getMetadata() {
|
|
1957
2839
|
return classToPlain(this, { exposeUnsetFields: false, excludePrefixes: ['_'] });
|
|
1958
2840
|
}
|
|
@@ -1960,15 +2842,25 @@ class ɵBaseQuery {
|
|
|
1960
2842
|
|
|
1961
2843
|
/**
|
|
1962
2844
|
* @public
|
|
2845
|
+
* @description The base class of the filtered data request.
|
|
2846
|
+
* @extends {ɵBaseQuery}
|
|
1963
2847
|
*/
|
|
1964
2848
|
class ɵBaseFilterableQuery extends ɵBaseQuery {
|
|
1965
2849
|
constructor(operationType, rootSchemaName) {
|
|
1966
2850
|
super(operationType, rootSchemaName);
|
|
2851
|
+
/**
|
|
2852
|
+
* @description Collection of filters.
|
|
2853
|
+
*/
|
|
1967
2854
|
this.filters = new ɵFilterGroup();
|
|
1968
2855
|
}
|
|
2856
|
+
/**
|
|
2857
|
+
* @public
|
|
2858
|
+
* @description Clears all filters.
|
|
2859
|
+
*/
|
|
1969
2860
|
clearFilters() {
|
|
1970
2861
|
this.filters.filters.clear();
|
|
1971
2862
|
}
|
|
2863
|
+
/** {@inheritDoc ɵMetadataProvider.getMetadata} */
|
|
1972
2864
|
getMetadata() {
|
|
1973
2865
|
return {
|
|
1974
2866
|
...super.getMetadata(),
|
|
@@ -1995,12 +2887,25 @@ __decorate([
|
|
|
1995
2887
|
|
|
1996
2888
|
/**
|
|
1997
2889
|
* @public
|
|
2890
|
+
* @description Type of data query
|
|
1998
2891
|
*/
|
|
1999
2892
|
var ɵQueryOperationType;
|
|
2000
2893
|
(function (ɵQueryOperationType) {
|
|
2894
|
+
/**
|
|
2895
|
+
* @description Select query.
|
|
2896
|
+
*/
|
|
2001
2897
|
ɵQueryOperationType[ɵQueryOperationType["Select"] = 0] = "Select";
|
|
2898
|
+
/**
|
|
2899
|
+
* @description Insert query.
|
|
2900
|
+
*/
|
|
2002
2901
|
ɵQueryOperationType[ɵQueryOperationType["Insert"] = 1] = "Insert";
|
|
2902
|
+
/**
|
|
2903
|
+
* @description Edit query.
|
|
2904
|
+
*/
|
|
2003
2905
|
ɵQueryOperationType[ɵQueryOperationType["Update"] = 2] = "Update";
|
|
2906
|
+
/**
|
|
2907
|
+
* @description Delete query.
|
|
2908
|
+
*/
|
|
2004
2909
|
ɵQueryOperationType[ɵQueryOperationType["Delete"] = 3] = "Delete";
|
|
2005
2910
|
// Batch,
|
|
2006
2911
|
// ListSelect,
|
|
@@ -2010,6 +2915,8 @@ var ɵQueryOperationType;
|
|
|
2010
2915
|
|
|
2011
2916
|
/**
|
|
2012
2917
|
* @public
|
|
2918
|
+
* @description Request to delete data.
|
|
2919
|
+
* @extends {ɵBaseFilterableQuery}
|
|
2013
2920
|
*/
|
|
2014
2921
|
class ɵDeleteQuery extends ɵBaseFilterableQuery {
|
|
2015
2922
|
// region Constructors: Public
|
|
@@ -2020,21 +2927,32 @@ class ɵDeleteQuery extends ɵBaseFilterableQuery {
|
|
|
2020
2927
|
|
|
2021
2928
|
/**
|
|
2022
2929
|
* @public
|
|
2930
|
+
* @description The query class for data fetching.
|
|
2931
|
+
* @extends {ɵBaseFilterableQuery}
|
|
2023
2932
|
*/
|
|
2024
2933
|
class ɵEntitySchemaQuery extends ɵBaseFilterableQuery {
|
|
2025
2934
|
constructor(rootSchemaName) {
|
|
2026
2935
|
super(ɵQueryOperationType.Select, rootSchemaName);
|
|
2027
2936
|
this._columns = new Map();
|
|
2937
|
+
/**
|
|
2938
|
+
* @description Determines if merge duplicates in query result.
|
|
2939
|
+
*/
|
|
2028
2940
|
this.isDistinct = false;
|
|
2029
2941
|
/**
|
|
2030
|
-
* Number of rows to select.
|
|
2942
|
+
* @description Number of rows to select.
|
|
2031
2943
|
*/
|
|
2032
2944
|
this.rowCount = -1;
|
|
2033
2945
|
/**
|
|
2034
|
-
* Rows count to skip.
|
|
2946
|
+
* @description Rows count to skip.
|
|
2035
2947
|
*/
|
|
2036
2948
|
this.rowsOffset = -1;
|
|
2949
|
+
/**
|
|
2950
|
+
* @description The parameter that determines whether to use the localized data.
|
|
2951
|
+
*/
|
|
2037
2952
|
this.useLocalization = true;
|
|
2953
|
+
/**
|
|
2954
|
+
* @description Represent parameter which determines disabling data in filtering.
|
|
2955
|
+
*/
|
|
2038
2956
|
this.useRecordDeactivation = false;
|
|
2039
2957
|
this._getIsPageable = () => this.rowCount > 0 && this.rowsOffset > -1;
|
|
2040
2958
|
}
|
|
@@ -2046,7 +2964,8 @@ class ɵEntitySchemaQuery extends ɵBaseFilterableQuery {
|
|
|
2046
2964
|
// endregion
|
|
2047
2965
|
// region Methods: Public
|
|
2048
2966
|
/**
|
|
2049
|
-
*
|
|
2967
|
+
* @public
|
|
2968
|
+
* @description Returns column instance by column alias.
|
|
2050
2969
|
* @param columnAlias Column alias.
|
|
2051
2970
|
* @returns [BaseQueryColumn] Column instance.
|
|
2052
2971
|
*/
|
|
@@ -2057,14 +2976,13 @@ class ɵEntitySchemaQuery extends ɵBaseFilterableQuery {
|
|
|
2057
2976
|
return this.findColumn(columnAlias);
|
|
2058
2977
|
}
|
|
2059
2978
|
/**
|
|
2060
|
-
*
|
|
2979
|
+
* @public
|
|
2980
|
+
* @description Returns column instance by column alias if not found returns null.
|
|
2061
2981
|
*/
|
|
2062
2982
|
findColumn(columnAlias) {
|
|
2063
2983
|
return this._columns.get(columnAlias);
|
|
2064
2984
|
}
|
|
2065
|
-
/**
|
|
2066
|
-
* @inheritDoc
|
|
2067
|
-
*/
|
|
2985
|
+
/** {@inheritDoc ɵMetadataProvider.getMetadata} */
|
|
2068
2986
|
getMetadata() {
|
|
2069
2987
|
return {
|
|
2070
2988
|
...super.getMetadata(),
|
|
@@ -2088,7 +3006,8 @@ class ɵEntitySchemaQuery extends ɵBaseFilterableQuery {
|
|
|
2088
3006
|
};
|
|
2089
3007
|
}
|
|
2090
3008
|
/**
|
|
2091
|
-
*
|
|
3009
|
+
* @public
|
|
3010
|
+
* @description Add column.
|
|
2092
3011
|
* @param column Column path.
|
|
2093
3012
|
* @param columnAlias Column alias.
|
|
2094
3013
|
* @returns [BaseQueryColumn] Column instance.
|
|
@@ -2098,7 +3017,8 @@ class ɵEntitySchemaQuery extends ɵBaseFilterableQuery {
|
|
|
2098
3017
|
return column;
|
|
2099
3018
|
}
|
|
2100
3019
|
/**
|
|
2101
|
-
*
|
|
3020
|
+
* @public
|
|
3021
|
+
* @description Add column by column path.
|
|
2102
3022
|
* @param columnPath Column path.
|
|
2103
3023
|
* @param columnAlias Column alias.
|
|
2104
3024
|
* @returns [EntityQueryColumn] Column instance.
|
|
@@ -2110,7 +3030,8 @@ class ɵEntitySchemaQuery extends ɵBaseFilterableQuery {
|
|
|
2110
3030
|
return column;
|
|
2111
3031
|
}
|
|
2112
3032
|
/**
|
|
2113
|
-
*
|
|
3033
|
+
* @public
|
|
3034
|
+
* @description Add aggregation sub query column.
|
|
2114
3035
|
* @param columnPath Column path.
|
|
2115
3036
|
* @param aggregationType Aggregation type.
|
|
2116
3037
|
* @param subFilters Sub query filters.
|
|
@@ -2123,7 +3044,8 @@ class ɵEntitySchemaQuery extends ɵBaseFilterableQuery {
|
|
|
2123
3044
|
return column;
|
|
2124
3045
|
}
|
|
2125
3046
|
/**
|
|
2126
|
-
*
|
|
3047
|
+
* @public
|
|
3048
|
+
* @description Add parameter column.
|
|
2127
3049
|
* @param value Parameter value.
|
|
2128
3050
|
* @param dataValueType Parameter data value type.
|
|
2129
3051
|
* @param columnAlias Column alias.
|
|
@@ -2135,7 +3057,8 @@ class ɵEntitySchemaQuery extends ɵBaseFilterableQuery {
|
|
|
2135
3057
|
return column;
|
|
2136
3058
|
}
|
|
2137
3059
|
/**
|
|
2138
|
-
*
|
|
3060
|
+
* @public
|
|
3061
|
+
* @description Add arithmetic column.
|
|
2139
3062
|
* @param arithmeticOperation Arithmetic operation.
|
|
2140
3063
|
* @param leftArithmeticOperand Left arithmetic operand expression.
|
|
2141
3064
|
* @param rightArithmeticOperand Right arithmetic operand expression.
|
|
@@ -2148,7 +3071,8 @@ class ɵEntitySchemaQuery extends ɵBaseFilterableQuery {
|
|
|
2148
3071
|
return column;
|
|
2149
3072
|
}
|
|
2150
3073
|
/**
|
|
2151
|
-
*
|
|
3074
|
+
* @public
|
|
3075
|
+
* @description Add macros function column.
|
|
2152
3076
|
* @param queryMacrosType Macros type.
|
|
2153
3077
|
* @param columnAlias Column alias.
|
|
2154
3078
|
* @returns [MacrosFunctionColumn] Column instance.
|
|
@@ -2159,7 +3083,8 @@ class ɵEntitySchemaQuery extends ɵBaseFilterableQuery {
|
|
|
2159
3083
|
return column;
|
|
2160
3084
|
}
|
|
2161
3085
|
/**
|
|
2162
|
-
*
|
|
3086
|
+
* @public
|
|
3087
|
+
* @description Add date part function column.
|
|
2163
3088
|
* @param columnPath Column path.
|
|
2164
3089
|
* @param datePartType Date part type.
|
|
2165
3090
|
* @param columnAlias Column alias.
|
|
@@ -2172,7 +3097,8 @@ class ɵEntitySchemaQuery extends ɵBaseFilterableQuery {
|
|
|
2172
3097
|
return column;
|
|
2173
3098
|
}
|
|
2174
3099
|
/**
|
|
2175
|
-
*
|
|
3100
|
+
* @public
|
|
3101
|
+
* @description Add aggregation function column.
|
|
2176
3102
|
* @param columnPath Column path.
|
|
2177
3103
|
* @param aggregationType Aggregation type.
|
|
2178
3104
|
* @param columnAlias Column alias.
|
|
@@ -2186,7 +3112,8 @@ class ɵEntitySchemaQuery extends ɵBaseFilterableQuery {
|
|
|
2186
3112
|
return column;
|
|
2187
3113
|
}
|
|
2188
3114
|
/**
|
|
2189
|
-
*
|
|
3115
|
+
* @public
|
|
3116
|
+
* @description Add length function column.
|
|
2190
3117
|
* @param columnPath Column path.
|
|
2191
3118
|
* @param columnAlias Column alias.
|
|
2192
3119
|
* @returns [LengthFunctionColumn] Column instance.
|
|
@@ -2198,7 +3125,8 @@ class ɵEntitySchemaQuery extends ɵBaseFilterableQuery {
|
|
|
2198
3125
|
return column;
|
|
2199
3126
|
}
|
|
2200
3127
|
/**
|
|
2201
|
-
*
|
|
3128
|
+
* @public
|
|
3129
|
+
* @description Add window function column.
|
|
2202
3130
|
* @param columnPath Column path.
|
|
2203
3131
|
* @param aggregationType Aggregation type.
|
|
2204
3132
|
* @param columnAlias Column alias.
|
|
@@ -2234,6 +3162,7 @@ class ɵEntitySchemaQuery extends ɵBaseFilterableQuery {
|
|
|
2234
3162
|
|
|
2235
3163
|
/**
|
|
2236
3164
|
* @public
|
|
3165
|
+
* @description Request to insert data.
|
|
2237
3166
|
*/
|
|
2238
3167
|
class ɵInsertQuery extends ɵBaseQuery {
|
|
2239
3168
|
// endregion
|
|
@@ -2245,6 +3174,9 @@ class ɵInsertQuery extends ɵBaseQuery {
|
|
|
2245
3174
|
}
|
|
2246
3175
|
// endregion
|
|
2247
3176
|
// region Properties: Public
|
|
3177
|
+
/**
|
|
3178
|
+
* @description A collection of column values for updating entities.
|
|
3179
|
+
*/
|
|
2248
3180
|
get columnValues() {
|
|
2249
3181
|
return {
|
|
2250
3182
|
items: classToPlain(this._columnValues),
|
|
@@ -2252,6 +3184,14 @@ class ɵInsertQuery extends ɵBaseQuery {
|
|
|
2252
3184
|
}
|
|
2253
3185
|
// endregion
|
|
2254
3186
|
// region Methods: Public
|
|
3187
|
+
/**
|
|
3188
|
+
* @public
|
|
3189
|
+
* @description Adds the value parameter. An instance of the value-parameter is created and
|
|
3190
|
+
* is added to the column values collection.
|
|
3191
|
+
* @param columnName The alias of the column to set value in
|
|
3192
|
+
* @param columnValue The value of the parameter. The value must match the data type.
|
|
3193
|
+
* @param dataValueType The type of the given parameter value.
|
|
3194
|
+
*/
|
|
2255
3195
|
addColumn(columnName, columnValue, dataValueType) {
|
|
2256
3196
|
ɵValidationUtilities.checkArgumentEmpty('columnName', columnName);
|
|
2257
3197
|
this._columnValues.set(columnName, new ɵParameterExpression({ value: columnValue, dataValueType }));
|
|
@@ -2265,6 +3205,8 @@ __decorate([
|
|
|
2265
3205
|
|
|
2266
3206
|
/**
|
|
2267
3207
|
* @public
|
|
3208
|
+
* @description Request for data changes.
|
|
3209
|
+
* @extends {ɵBaseFilterableQuery}
|
|
2268
3210
|
*/
|
|
2269
3211
|
class ɵUpdateQuery extends ɵBaseFilterableQuery {
|
|
2270
3212
|
// endregion
|
|
@@ -2276,12 +3218,15 @@ class ɵUpdateQuery extends ɵBaseFilterableQuery {
|
|
|
2276
3218
|
// endregion
|
|
2277
3219
|
// region Fields: Public
|
|
2278
3220
|
/**
|
|
2279
|
-
* Flag that indicates whether to force save data.
|
|
3221
|
+
* @description Flag that indicates whether to force save data.
|
|
2280
3222
|
*/
|
|
2281
3223
|
this.isForceUpdate = false;
|
|
2282
3224
|
}
|
|
2283
3225
|
// endregion
|
|
2284
3226
|
// region Properties: Public
|
|
3227
|
+
/**
|
|
3228
|
+
* @description A collection of column values for updating entities.
|
|
3229
|
+
*/
|
|
2285
3230
|
get columnValues() {
|
|
2286
3231
|
return {
|
|
2287
3232
|
items: classToPlain(this._columnValues),
|
|
@@ -2289,6 +3234,14 @@ class ɵUpdateQuery extends ɵBaseFilterableQuery {
|
|
|
2289
3234
|
}
|
|
2290
3235
|
// endregion
|
|
2291
3236
|
// region Methods: Public
|
|
3237
|
+
/**
|
|
3238
|
+
* @public
|
|
3239
|
+
* @description Adds the value parameter. An instance of the value-parameter is created and
|
|
3240
|
+
* is added to the column values collection.
|
|
3241
|
+
* @param columnName The alias of the column to set value in
|
|
3242
|
+
* @param columnValue The value of the parameter. The value must match the data type.
|
|
3243
|
+
* @param dataValueType The type of the given parameter value.
|
|
3244
|
+
*/
|
|
2292
3245
|
addColumn(columnName, columnValue, dataValueType) {
|
|
2293
3246
|
ɵValidationUtilities.checkArgumentEmpty('columnName', columnName);
|
|
2294
3247
|
this._columnValues.set(columnName, new ɵParameterExpression({ value: columnValue, dataValueType }));
|
|
@@ -2302,14 +3255,15 @@ __decorate([
|
|
|
2302
3255
|
|
|
2303
3256
|
/**
|
|
2304
3257
|
* @public
|
|
3258
|
+
* @description The query class for localized data fetching.
|
|
3259
|
+
* @extends {ɵEntitySchemaQuery}
|
|
2305
3260
|
*/
|
|
2306
3261
|
class ɵSelectLocalizationQuery extends ɵEntitySchemaQuery {
|
|
2307
3262
|
}
|
|
2308
3263
|
|
|
2309
3264
|
/**
|
|
2310
3265
|
* @public
|
|
2311
|
-
* @
|
|
2312
|
-
* @describe Base definition of request.
|
|
3266
|
+
* @description Base definition of request.
|
|
2313
3267
|
* @template TEvent
|
|
2314
3268
|
*/
|
|
2315
3269
|
class ɵBaseRequest {
|
|
@@ -2319,14 +3273,39 @@ class ɵBaseRequest {
|
|
|
2319
3273
|
|
|
2320
3274
|
/**
|
|
2321
3275
|
* @public
|
|
3276
|
+
* @description Enum for model parameter types.
|
|
2322
3277
|
*/
|
|
2323
3278
|
var ɵModelParameterType;
|
|
2324
3279
|
(function (ɵModelParameterType) {
|
|
3280
|
+
/**
|
|
3281
|
+
* @public
|
|
3282
|
+
* @description Parameter represents primary column value.
|
|
3283
|
+
*/
|
|
2325
3284
|
ɵModelParameterType["PrimaryColumnValue"] = "primaryColumnValue";
|
|
3285
|
+
/**
|
|
3286
|
+
* @public
|
|
3287
|
+
* @description Parameter represents column value.
|
|
3288
|
+
*/
|
|
2326
3289
|
ɵModelParameterType["ColumnValue"] = "columnValue";
|
|
3290
|
+
/**
|
|
3291
|
+
* @public
|
|
3292
|
+
* @description Parameter represents filter value.
|
|
3293
|
+
*/
|
|
2327
3294
|
ɵModelParameterType["Filter"] = "filter";
|
|
3295
|
+
/**
|
|
3296
|
+
* @public
|
|
3297
|
+
* @description Parameter represents primary display value filter.
|
|
3298
|
+
*/
|
|
2328
3299
|
ɵModelParameterType["PrimaryDisplayValueFilter"] = "primaryDisplayValueFilter";
|
|
3300
|
+
/**
|
|
3301
|
+
* @public
|
|
3302
|
+
* @description Parameter is empty.
|
|
3303
|
+
*/
|
|
2329
3304
|
ɵModelParameterType["Empty"] = "empty";
|
|
3305
|
+
/**
|
|
3306
|
+
* @public
|
|
3307
|
+
* @description Parameter is never used.
|
|
3308
|
+
*/
|
|
2330
3309
|
ɵModelParameterType["Never"] = "never";
|
|
2331
3310
|
})(ɵModelParameterType || (ɵModelParameterType = {}));
|
|
2332
3311
|
|
|
@@ -2336,7 +3315,13 @@ var ɵModelParameterType;
|
|
|
2336
3315
|
*/
|
|
2337
3316
|
var ɵSchemaViewMaskRequestAction;
|
|
2338
3317
|
(function (ɵSchemaViewMaskRequestAction) {
|
|
3318
|
+
/**
|
|
3319
|
+
* @description To add task.
|
|
3320
|
+
*/
|
|
2339
3321
|
ɵSchemaViewMaskRequestAction["AddTask"] = "addTask";
|
|
3322
|
+
/**
|
|
3323
|
+
* @description To remove task.
|
|
3324
|
+
*/
|
|
2340
3325
|
ɵSchemaViewMaskRequestAction["RemoveTask"] = "removeTask";
|
|
2341
3326
|
})(ɵSchemaViewMaskRequestAction || (ɵSchemaViewMaskRequestAction = {}));
|
|
2342
3327
|
/**
|
|
@@ -2349,6 +3334,9 @@ class ɵSchemaViewMaskRequest extends ɵBaseRequest {
|
|
|
2349
3334
|
this.action = action;
|
|
2350
3335
|
this.taskName = taskName;
|
|
2351
3336
|
this.$context = $context;
|
|
3337
|
+
/**
|
|
3338
|
+
* @description Request type
|
|
3339
|
+
*/
|
|
2352
3340
|
this.type = 'crt.SchemaViewMaskRequest';
|
|
2353
3341
|
}
|
|
2354
3342
|
}
|
|
@@ -2357,5 +3345,5 @@ class ɵSchemaViewMaskRequest extends ɵBaseRequest {
|
|
|
2357
3345
|
* Generated bundle index. Do not edit.
|
|
2358
3346
|
*/
|
|
2359
3347
|
|
|
2360
|
-
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 };
|
|
3348
|
+
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 };
|
|
2361
3349
|
//# sourceMappingURL=creatio-base.mjs.map
|