@creatio/base 0.813.0 → 0.815.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +4 -0
- package/esm2020/lib/internal/enums/index.mjs +2 -1
- package/esm2020/lib/internal/enums/platform-apis.enum.mjs +12 -0
- package/esm2020/lib/internal/model/data-source-config.mjs +1 -1
- package/esm2020/lib/public/enums/aggregation-function.enum.mjs +26 -8
- package/esm2020/lib/public/enums/aggregation-type.enum.mjs +26 -8
- package/esm2020/lib/public/enums/data-schema-type.enum.mjs +13 -2
- package/esm2020/lib/public/enums/data-value-type.enum.mjs +123 -1
- package/esm2020/lib/public/enums/index.mjs +2 -1
- package/esm2020/lib/public/enums/message-channel-type.enum.mjs +11 -0
- package/esm2020/lib/public/esq/data-model/columns/arithmetic/arithmetic-query-column.mjs +6 -1
- package/esm2020/lib/public/esq/data-model/columns/base-query-column.mjs +15 -1
- package/esm2020/lib/public/esq/data-model/columns/entity-column/entity-query-column.mjs +6 -1
- package/esm2020/lib/public/esq/data-model/columns/functions/aggregation-function-column.mjs +6 -1
- package/esm2020/lib/public/esq/data-model/columns/functions/date-part-function-column.mjs +9 -1
- package/esm2020/lib/public/esq/data-model/columns/functions/length-function-column.mjs +6 -1
- package/esm2020/lib/public/esq/data-model/columns/functions/macros-function-column.mjs +6 -1
- package/esm2020/lib/public/esq/data-model/columns/functions/window-function-column.mjs +6 -1
- package/esm2020/lib/public/esq/data-model/columns/parameters/parameter-query-column.mjs +6 -1
- package/esm2020/lib/public/esq/data-model/columns/query-column-test-utils.mjs +7 -1
- package/esm2020/lib/public/esq/data-model/columns/sub-queries/aggregation-sub-query-column.mjs +6 -1
- package/esm2020/lib/public/esq/data-model/columns/sub-queries/sub-query-column.mjs +6 -1
- package/esm2020/lib/public/esq/data-model/enums/admin-unit-role-sources.enum.mjs +40 -0
- package/esm2020/lib/public/esq/data-model/enums/aggregation-eval-type.enum.mjs +14 -4
- package/esm2020/lib/public/esq/data-model/enums/arithmetic-operation.enum.mjs +17 -5
- package/esm2020/lib/public/esq/data-model/enums/comparison-type.enum.mjs +73 -1
- package/esm2020/lib/public/esq/data-model/enums/date-part-type.enum.mjs +29 -9
- package/esm2020/lib/public/esq/data-model/enums/expression-type.enum.mjs +20 -1
- package/esm2020/lib/public/esq/data-model/enums/filter-type.enum.mjs +33 -1
- package/esm2020/lib/public/esq/data-model/enums/function-type.enum.mjs +29 -8
- package/esm2020/lib/public/esq/data-model/enums/index.mjs +2 -2
- package/esm2020/lib/public/esq/data-model/enums/logical-operator-type.enum.mjs +11 -1
- package/esm2020/lib/public/esq/data-model/enums/order-direction.enum.mjs +14 -1
- package/esm2020/lib/public/esq/data-model/enums/query-macros-type.enum.mjs +113 -37
- package/esm2020/lib/public/esq/data-model/expressions/arithmetic/arithmetic-expression.mjs +13 -1
- package/esm2020/lib/public/esq/data-model/expressions/base-expression.mjs +22 -3
- package/esm2020/lib/public/esq/data-model/expressions/columns/column-expression.mjs +13 -1
- package/esm2020/lib/public/esq/data-model/expressions/expression-parser/base-expression-parser.mjs +9 -2
- package/esm2020/lib/public/esq/data-model/expressions/expression-parser/expression-parser.mjs +4 -3
- package/esm2020/lib/public/esq/data-model/expressions/expression-parser/expression-resolver.mjs +10 -3
- package/esm2020/lib/public/esq/data-model/expressions/functions/aggregation-function-expression.mjs +10 -1
- package/esm2020/lib/public/esq/data-model/expressions/functions/argument-function-expression.mjs +9 -2
- package/esm2020/lib/public/esq/data-model/expressions/functions/date-part-function-expression.mjs +10 -1
- package/esm2020/lib/public/esq/data-model/expressions/functions/function-expression.mjs +10 -1
- package/esm2020/lib/public/esq/data-model/expressions/functions/length-function-expression.mjs +12 -1
- package/esm2020/lib/public/esq/data-model/expressions/functions/macros-function-expression.mjs +12 -1
- package/esm2020/lib/public/esq/data-model/expressions/functions/window-function-expression.mjs +10 -1
- package/esm2020/lib/public/esq/data-model/expressions/mocks/expression.mock.mjs +4 -1
- package/esm2020/lib/public/esq/data-model/expressions/parameters/parameter-expression.mjs +12 -1
- package/esm2020/lib/public/esq/data-model/expressions/sub-queries/aggregation-sub-query-expression.mjs +7 -1
- package/esm2020/lib/public/esq/data-model/expressions/sub-queries/sub-query-expression.mjs +11 -1
- package/esm2020/lib/public/esq/data-model/filters/base-filter.mjs +19 -1
- package/esm2020/lib/public/esq/data-model/filters/between-filter.mjs +8 -3
- package/esm2020/lib/public/esq/data-model/filters/compare-filter.mjs +7 -2
- package/esm2020/lib/public/esq/data-model/filters/exists-filter.mjs +16 -2
- package/esm2020/lib/public/esq/data-model/filters/filter-group.mjs +59 -12
- package/esm2020/lib/public/esq/data-model/filters/filter-parser/base-filter-parser.mjs +7 -2
- package/esm2020/lib/public/esq/data-model/filters/filter-parser/filter-parser.mjs +6 -2
- package/esm2020/lib/public/esq/data-model/filters/filter-parser/filter-resolver.mjs +8 -2
- package/esm2020/lib/public/esq/data-model/filters/filter-test-utils.mjs +7 -1
- package/esm2020/lib/public/esq/data-model/filters/in-filter.mjs +10 -3
- package/esm2020/lib/public/esq/data-model/filters/isnull-filter.mjs +11 -2
- package/esm2020/lib/public/esq/data-model/filters/mocks/parser.mock.mjs +4 -1
- package/esm2020/lib/public/esq/data-model/filters/single-filter.mjs +8 -2
- package/esm2020/lib/public/esq/data-model/metadata-provider/metadata-provider.mjs +1 -1
- package/esm2020/lib/public/esq/data-model/queries/base-filterable-query.mjs +11 -1
- package/esm2020/lib/public/esq/data-model/queries/base-query.mjs +3 -1
- package/esm2020/lib/public/esq/data-model/queries/delete-query.mjs +3 -1
- package/esm2020/lib/public/esq/data-model/queries/entity-schema-query.mjs +41 -19
- package/esm2020/lib/public/esq/data-model/queries/insert-query.mjs +14 -2
- package/esm2020/lib/public/esq/data-model/queries/query-operation-type.mjs +14 -1
- package/esm2020/lib/public/esq/data-model/queries/select-localization-query.mjs +3 -1
- package/esm2020/lib/public/esq/data-model/queries/update-query.mjs +16 -3
- package/esm2020/lib/public/exceptions/argument-empty-exception.mjs +6 -1
- package/esm2020/lib/public/exceptions/argument-out-of-range-exception.mjs +6 -1
- package/esm2020/lib/public/exceptions/item-not-found-exception.mjs +6 -1
- package/esm2020/lib/public/exceptions/next-handler-already-specified-exception.mjs +2 -1
- package/esm2020/lib/public/exceptions/validation-utilities.mjs +35 -1
- package/esm2020/lib/public/interfaces/serializable.mjs +1 -1
- package/esm2020/lib/public/models/data-source/data-source-insert-result.model.mjs +1 -1
- package/esm2020/lib/public/models/index.mjs +2 -1
- package/esm2020/lib/public/models/lookup-value.model.mjs +1 -1
- package/esm2020/lib/public/models/message-channel-event.mjs +2 -0
- package/esm2020/lib/public/models/request/base-request.mjs +2 -3
- package/esm2020/lib/public/models/request/request-registration-config.model.mjs +1 -1
- package/esm2020/lib/public/models/view-model-context.mjs +1 -1
- package/esm2020/lib/public/services/mask-service/schema-view-mask.request.mjs +10 -1
- package/esm2020/lib/public/services/model/base-model.mjs +1 -1
- package/esm2020/lib/public/services/model/data-schema-attribute.mjs +1 -1
- package/esm2020/lib/public/services/model/data-schema.mjs +1 -1
- package/esm2020/lib/public/services/model/data-source-aggregation-config.mjs +1 -1
- package/esm2020/lib/public/services/model/data-source-attribute.mjs +1 -1
- package/esm2020/lib/public/services/model/data-source-can-execute-operation.mjs +1 -1
- package/esm2020/lib/public/services/model/data-source-function-config.mjs +1 -1
- package/esm2020/lib/public/services/model/data-source-paging-config.mjs +1 -1
- package/esm2020/lib/public/services/model/data-source-parameter.mjs +27 -1
- package/esm2020/lib/public/services/model/data-source-sorting-config.mjs +1 -1
- package/esm2020/lib/public/services/model/model-load-options.mjs +1 -1
- package/esm2020/lib/public/services/sys-settings/base-sys-settings.service.mjs +1 -1
- package/esm2020/lib/public/types/aggregation-eval.type.mjs +1 -1
- package/esm2020/lib/public/types/entity-column-value.mjs +1 -1
- package/esm2020/lib/public/types/guid.type.mjs +7 -7
- package/esm2020/lib/public/types/index.mjs +2 -1
- package/esm2020/lib/public/types/json-data.type.mjs +1 -1
- package/esm2020/lib/public/types/teardown-logic.type.mjs +2 -0
- package/fesm2015/creatio-base.mjs +1175 -136
- package/fesm2015/creatio-base.mjs.map +1 -1
- package/fesm2020/creatio-base.mjs +1175 -137
- package/fesm2020/creatio-base.mjs.map +1 -1
- package/index.d.ts +1710 -143
- package/package.json +3 -2
|
@@ -82,97 +82,278 @@ var LookupMode;
|
|
|
82
82
|
LookupMode["SelectionWindow"] = "SelectionWindow";
|
|
83
83
|
})(LookupMode || (LookupMode = {}));
|
|
84
84
|
|
|
85
|
+
/**
|
|
86
|
+
* Available platform APIs
|
|
87
|
+
*/
|
|
88
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
89
|
+
var ɵPlatformAPIs;
|
|
90
|
+
(function (ɵPlatformAPIs) {
|
|
91
|
+
/**
|
|
92
|
+
* Selection metadata API.
|
|
93
|
+
*/
|
|
94
|
+
ɵPlatformAPIs["Selection"] = "selection";
|
|
95
|
+
})(ɵPlatformAPIs || (ɵPlatformAPIs = {}));
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* @public
|
|
99
|
+
* Types of values.
|
|
100
|
+
*/
|
|
85
101
|
var ɵDataValueType;
|
|
86
102
|
(function (ɵDataValueType) {
|
|
103
|
+
/**
|
|
104
|
+
* @description Global unique identifier.
|
|
105
|
+
*/
|
|
87
106
|
ɵDataValueType[ɵDataValueType["Guid"] = 0] = "Guid";
|
|
107
|
+
/**
|
|
108
|
+
* @description String.
|
|
109
|
+
*/
|
|
88
110
|
ɵDataValueType[ɵDataValueType["Text"] = 1] = "Text";
|
|
111
|
+
/**
|
|
112
|
+
* @description Integer.
|
|
113
|
+
*/
|
|
89
114
|
ɵDataValueType[ɵDataValueType["Integer"] = 4] = "Integer";
|
|
115
|
+
/**
|
|
116
|
+
* @description Real number.
|
|
117
|
+
*/
|
|
90
118
|
ɵDataValueType[ɵDataValueType["Float"] = 5] = "Float";
|
|
119
|
+
/**
|
|
120
|
+
* @description Currency.
|
|
121
|
+
*/
|
|
91
122
|
ɵDataValueType[ɵDataValueType["Money"] = 6] = "Money";
|
|
123
|
+
/**
|
|
124
|
+
* @description Date and time.
|
|
125
|
+
*/
|
|
92
126
|
ɵDataValueType[ɵDataValueType["DateTime"] = 7] = "DateTime";
|
|
127
|
+
/**
|
|
128
|
+
* @description Date.
|
|
129
|
+
*/
|
|
93
130
|
ɵDataValueType[ɵDataValueType["Date"] = 8] = "Date";
|
|
131
|
+
/**
|
|
132
|
+
* @description Time.
|
|
133
|
+
*/
|
|
94
134
|
ɵDataValueType[ɵDataValueType["Time"] = 9] = "Time";
|
|
135
|
+
/**
|
|
136
|
+
* @description Lookup.
|
|
137
|
+
*/
|
|
95
138
|
ɵDataValueType[ɵDataValueType["Lookup"] = 10] = "Lookup";
|
|
139
|
+
/**
|
|
140
|
+
* @description Enumeration.
|
|
141
|
+
*/
|
|
96
142
|
ɵDataValueType[ɵDataValueType["Enum"] = 11] = "Enum";
|
|
143
|
+
/**
|
|
144
|
+
* @description Boolean.
|
|
145
|
+
*/
|
|
97
146
|
ɵDataValueType[ɵDataValueType["Boolean"] = 12] = "Boolean";
|
|
147
|
+
/**
|
|
148
|
+
* @description Binary data object.
|
|
149
|
+
*/
|
|
98
150
|
ɵDataValueType[ɵDataValueType["Blob"] = 13] = "Blob";
|
|
151
|
+
/**
|
|
152
|
+
* @description The object of image binary data.
|
|
153
|
+
*/
|
|
99
154
|
ɵDataValueType[ɵDataValueType["Image"] = 14] = "Image";
|
|
155
|
+
/**
|
|
156
|
+
* @description Custom object.
|
|
157
|
+
*/
|
|
100
158
|
ɵDataValueType[ɵDataValueType["CUSTOM_OBJECT"] = 15] = "CUSTOM_OBJECT";
|
|
159
|
+
/**
|
|
160
|
+
* @description Image from a lookup.
|
|
161
|
+
*/
|
|
101
162
|
ɵDataValueType[ɵDataValueType["IMAGELOOKUP"] = 16] = "IMAGELOOKUP";
|
|
163
|
+
/**
|
|
164
|
+
* @description Collection of items.
|
|
165
|
+
*/
|
|
102
166
|
ɵDataValueType[ɵDataValueType["COLLECTION"] = 17] = "COLLECTION";
|
|
167
|
+
/**
|
|
168
|
+
* @description Color.
|
|
169
|
+
*/
|
|
103
170
|
ɵDataValueType[ɵDataValueType["Color"] = 18] = "Color";
|
|
171
|
+
/**
|
|
172
|
+
* @description Localized string.
|
|
173
|
+
*/
|
|
104
174
|
ɵDataValueType[ɵDataValueType["LOCALIZABLE_STRING"] = 19] = "LOCALIZABLE_STRING";
|
|
175
|
+
/**
|
|
176
|
+
* @description Object (Entity).
|
|
177
|
+
*/
|
|
105
178
|
ɵDataValueType[ɵDataValueType["ENTITY"] = 20] = "ENTITY";
|
|
179
|
+
/**
|
|
180
|
+
* @description Collection of objects (EntityCollection).
|
|
181
|
+
*/
|
|
106
182
|
ɵDataValueType[ɵDataValueType["ENTITY_COLLECTION"] = 21] = "ENTITY_COLLECTION";
|
|
183
|
+
/**
|
|
184
|
+
* @description List of object column values (EntityColumnMappingCollection).
|
|
185
|
+
*/
|
|
107
186
|
ɵDataValueType[ɵDataValueType["ENTITY_COLUMN_MAPPING_COLLECTION"] = 22] = "ENTITY_COLUMN_MAPPING_COLLECTION";
|
|
187
|
+
/**
|
|
188
|
+
* @description Hash string.
|
|
189
|
+
*/
|
|
108
190
|
ɵDataValueType[ɵDataValueType["HASH_TEXT"] = 23] = "HASH_TEXT";
|
|
191
|
+
/**
|
|
192
|
+
* @description Encrypted string.
|
|
193
|
+
*/
|
|
109
194
|
ɵDataValueType[ɵDataValueType["SECURE_TEXT"] = 24] = "SECURE_TEXT";
|
|
195
|
+
/**
|
|
196
|
+
* @description File.
|
|
197
|
+
*/
|
|
110
198
|
ɵDataValueType[ɵDataValueType["FILE"] = 25] = "FILE";
|
|
199
|
+
/**
|
|
200
|
+
* @description Mapping.
|
|
201
|
+
*/
|
|
111
202
|
ɵDataValueType[ɵDataValueType["MAPPING"] = 26] = "MAPPING";
|
|
203
|
+
/**
|
|
204
|
+
* @description Short length text.
|
|
205
|
+
*/
|
|
112
206
|
ɵDataValueType[ɵDataValueType["SHORT_TEXT"] = 27] = "SHORT_TEXT";
|
|
207
|
+
/**
|
|
208
|
+
* @description Medium length text.
|
|
209
|
+
*/
|
|
113
210
|
ɵDataValueType[ɵDataValueType["MEDIUM_TEXT"] = 28] = "MEDIUM_TEXT";
|
|
211
|
+
/**
|
|
212
|
+
* @description Unlimited length text.
|
|
213
|
+
*/
|
|
114
214
|
ɵDataValueType[ɵDataValueType["MAXSIZE_TEXT"] = 29] = "MAXSIZE_TEXT";
|
|
215
|
+
/**
|
|
216
|
+
* @description Long length text.
|
|
217
|
+
*/
|
|
115
218
|
ɵDataValueType[ɵDataValueType["LONG_TEXT"] = 30] = "LONG_TEXT";
|
|
116
219
|
ɵDataValueType[ɵDataValueType["FLOAT1"] = 31] = "FLOAT1";
|
|
117
220
|
ɵDataValueType[ɵDataValueType["FLOAT2"] = 32] = "FLOAT2";
|
|
118
221
|
ɵDataValueType[ɵDataValueType["FLOAT3"] = 33] = "FLOAT3";
|
|
119
222
|
ɵDataValueType[ɵDataValueType["FLOAT4"] = 34] = "FLOAT4";
|
|
223
|
+
/**
|
|
224
|
+
* @description Localizable parameter values list.
|
|
225
|
+
*/
|
|
120
226
|
ɵDataValueType[ɵDataValueType["LOCALIZABLE_PARAMETER_VALUES_LIST"] = 35] = "LOCALIZABLE_PARAMETER_VALUES_LIST";
|
|
227
|
+
/**
|
|
228
|
+
* @description Process not localizable text.
|
|
229
|
+
*/
|
|
121
230
|
ɵDataValueType[ɵDataValueType["METADATA_TEXT"] = 36] = "METADATA_TEXT";
|
|
231
|
+
/**
|
|
232
|
+
* @description Stage indicator.
|
|
233
|
+
*/
|
|
122
234
|
ɵDataValueType[ɵDataValueType["STAGE_INDICATOR"] = 37] = "STAGE_INDICATOR";
|
|
235
|
+
/**
|
|
236
|
+
* @description Serializable list of values.
|
|
237
|
+
*/
|
|
123
238
|
ɵDataValueType[ɵDataValueType["OBJECT_LIST"] = 38] = "OBJECT_LIST";
|
|
239
|
+
/**
|
|
240
|
+
* @description Serializable list of composite values.
|
|
241
|
+
*/
|
|
124
242
|
ɵDataValueType[ɵDataValueType["COMPOSITE_OBJECT_LIST"] = 39] = "COMPOSITE_OBJECT_LIST";
|
|
125
243
|
ɵDataValueType[ɵDataValueType["FLOAT8"] = 40] = "FLOAT8";
|
|
244
|
+
/**
|
|
245
|
+
* @description File.
|
|
246
|
+
*/
|
|
126
247
|
ɵDataValueType[ɵDataValueType["FILE_LOCATOR"] = 41] = "FILE_LOCATOR";
|
|
248
|
+
/**
|
|
249
|
+
* @description Phone.
|
|
250
|
+
*/
|
|
127
251
|
ɵDataValueType[ɵDataValueType["PHONE_TEXT"] = 42] = "PHONE_TEXT";
|
|
252
|
+
/**
|
|
253
|
+
* @description Text with formating tags.
|
|
254
|
+
*/
|
|
128
255
|
ɵDataValueType[ɵDataValueType["RICH_TEXT"] = 43] = "RICH_TEXT";
|
|
256
|
+
/**
|
|
257
|
+
* @description Web link.
|
|
258
|
+
*/
|
|
129
259
|
ɵDataValueType[ɵDataValueType["WEB_TEXT"] = 44] = "WEB_TEXT";
|
|
260
|
+
/**
|
|
261
|
+
* @description Email.
|
|
262
|
+
*/
|
|
130
263
|
ɵDataValueType[ɵDataValueType["EMAIL_TEXT"] = 45] = "EMAIL_TEXT";
|
|
264
|
+
ɵDataValueType[ɵDataValueType["COMPOSITE_OBJECT"] = 46] = "COMPOSITE_OBJECT";
|
|
131
265
|
})(ɵDataValueType || (ɵDataValueType = {}));
|
|
132
266
|
|
|
267
|
+
/**
|
|
268
|
+
* @public
|
|
269
|
+
* The type of the aggregation (can be set to None).
|
|
270
|
+
*/
|
|
133
271
|
var ɵAggregationType;
|
|
134
272
|
(function (ɵAggregationType) {
|
|
135
|
-
/**
|
|
273
|
+
/**
|
|
274
|
+
* @description Aggregation function type not defined.
|
|
275
|
+
*/
|
|
136
276
|
ɵAggregationType[ɵAggregationType["None"] = 0] = "None";
|
|
137
|
-
/**
|
|
277
|
+
/**
|
|
278
|
+
* @description Aggregation function type not defined.
|
|
279
|
+
*/
|
|
138
280
|
ɵAggregationType[ɵAggregationType["Count"] = 1] = "Count";
|
|
139
|
-
/**
|
|
281
|
+
/**
|
|
282
|
+
* @description Sum of values of all elements.
|
|
283
|
+
*/
|
|
140
284
|
ɵAggregationType[ɵAggregationType["Sum"] = 2] = "Sum";
|
|
141
|
-
/**
|
|
285
|
+
/**
|
|
286
|
+
* @description Average value for all elements.
|
|
287
|
+
*/
|
|
142
288
|
ɵAggregationType[ɵAggregationType["Avg"] = 3] = "Avg";
|
|
143
|
-
/**
|
|
289
|
+
/**
|
|
290
|
+
* @description The minimum value among all elements.
|
|
291
|
+
*/
|
|
144
292
|
ɵAggregationType[ɵAggregationType["Min"] = 4] = "Min";
|
|
145
|
-
/**
|
|
293
|
+
/**
|
|
294
|
+
* @description The maximum value among all elements.
|
|
295
|
+
*/
|
|
146
296
|
ɵAggregationType[ɵAggregationType["Max"] = 5] = "Max";
|
|
147
|
-
/**
|
|
297
|
+
/**
|
|
298
|
+
* @description Top one record from collection.
|
|
299
|
+
*/
|
|
148
300
|
ɵAggregationType[ɵAggregationType["TopOne"] = 6] = "TopOne";
|
|
149
301
|
})(ɵAggregationType || (ɵAggregationType = {}));
|
|
150
302
|
|
|
303
|
+
/**
|
|
304
|
+
* @public
|
|
305
|
+
* The type of the aggregation function (can be set to None).
|
|
306
|
+
*/
|
|
151
307
|
var ɵAggregationFunction;
|
|
152
308
|
(function (ɵAggregationFunction) {
|
|
153
|
-
/**
|
|
309
|
+
/**
|
|
310
|
+
* @description Aggregation function type not defined.
|
|
311
|
+
*/
|
|
154
312
|
ɵAggregationFunction["None"] = "";
|
|
155
|
-
/**
|
|
313
|
+
/**
|
|
314
|
+
* @description Aggregation function type not defined.
|
|
315
|
+
*/
|
|
156
316
|
ɵAggregationFunction["Count"] = "Count";
|
|
157
|
-
/**
|
|
317
|
+
/**
|
|
318
|
+
* @description Sum of values of all elements.
|
|
319
|
+
*/
|
|
158
320
|
ɵAggregationFunction["Sum"] = "Sum";
|
|
159
|
-
/**
|
|
321
|
+
/**
|
|
322
|
+
* @description Average value for all elements.
|
|
323
|
+
*/
|
|
160
324
|
ɵAggregationFunction["Avg"] = "Avg";
|
|
161
|
-
/**
|
|
325
|
+
/**
|
|
326
|
+
* @description The minimum value among all elements.
|
|
327
|
+
*/
|
|
162
328
|
ɵAggregationFunction["Min"] = "Min";
|
|
163
|
-
/**
|
|
329
|
+
/**
|
|
330
|
+
* @description The maximum value among all elements.
|
|
331
|
+
*/
|
|
164
332
|
ɵAggregationFunction["Max"] = "Max";
|
|
165
|
-
/**
|
|
333
|
+
/**
|
|
334
|
+
* @description Top one record from collection.
|
|
335
|
+
*/
|
|
166
336
|
ɵAggregationFunction["TopOne"] = "TopOne";
|
|
167
337
|
})(ɵAggregationFunction || (ɵAggregationFunction = {}));
|
|
168
338
|
|
|
169
339
|
/**
|
|
170
|
-
*
|
|
340
|
+
* @public
|
|
341
|
+
* @decription Type of DataSchema. In combination with the name is used for unique identification of {@link ɵDataSchema}.
|
|
171
342
|
*/
|
|
172
343
|
var ɵDataSchemaType;
|
|
173
344
|
(function (ɵDataSchemaType) {
|
|
345
|
+
/**
|
|
346
|
+
* @description Entity.
|
|
347
|
+
*/
|
|
174
348
|
ɵDataSchemaType["Entity"] = "Entity";
|
|
349
|
+
/**
|
|
350
|
+
* @description Client unit.
|
|
351
|
+
*/
|
|
175
352
|
ɵDataSchemaType["ClientUnit"] = "ClientUnit";
|
|
353
|
+
/**
|
|
354
|
+
* @description Intent.
|
|
355
|
+
*/
|
|
356
|
+
ɵDataSchemaType["Intent"] = "Intent";
|
|
176
357
|
})(ɵDataSchemaType || (ɵDataSchemaType = {}));
|
|
177
358
|
|
|
178
359
|
/**
|
|
@@ -195,198 +376,540 @@ var ɵModelInPageAction;
|
|
|
195
376
|
ɵModelInPageAction["Copy"] = "copy";
|
|
196
377
|
})(ɵModelInPageAction || (ɵModelInPageAction = {}));
|
|
197
378
|
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
379
|
+
/**
|
|
380
|
+
* @public
|
|
381
|
+
* @description type of sending message.
|
|
382
|
+
*/
|
|
383
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
384
|
+
var ɵMessageChannelType;
|
|
385
|
+
(function (ɵMessageChannelType) {
|
|
386
|
+
ɵMessageChannelType["PTP"] = "PTPMsg";
|
|
387
|
+
ɵMessageChannelType["BROADCAST"] = "BroadcastMsg";
|
|
388
|
+
})(ɵMessageChannelType || (ɵMessageChannelType = {}));
|
|
203
389
|
|
|
390
|
+
/**
|
|
391
|
+
* @public
|
|
392
|
+
* @description SysAdminUnitInRole source type.
|
|
393
|
+
*/
|
|
394
|
+
var eAdminUnitRoleSources;
|
|
395
|
+
(function (eAdminUnitRoleSources) {
|
|
396
|
+
/**
|
|
397
|
+
* @description Empty value.
|
|
398
|
+
*/
|
|
399
|
+
eAdminUnitRoleSources[eAdminUnitRoleSources["None"] = 0] = "None";
|
|
400
|
+
/**
|
|
401
|
+
* @description Self.
|
|
402
|
+
*/
|
|
403
|
+
eAdminUnitRoleSources[eAdminUnitRoleSources["Self"] = 1] = "Self";
|
|
404
|
+
/**
|
|
405
|
+
* @description Explicit entry into role.
|
|
406
|
+
*/
|
|
407
|
+
eAdminUnitRoleSources[eAdminUnitRoleSources["ExplicitEntry"] = 2] = "ExplicitEntry";
|
|
408
|
+
/**
|
|
409
|
+
* @description Delegated role.
|
|
410
|
+
*/
|
|
411
|
+
eAdminUnitRoleSources[eAdminUnitRoleSources["Delegated"] = 4] = "Delegated";
|
|
412
|
+
/**
|
|
413
|
+
* @description Gets functional role from organizational role.
|
|
414
|
+
*/
|
|
415
|
+
eAdminUnitRoleSources[eAdminUnitRoleSources["FuncRoleFromOrgRole"] = 8] = "FuncRoleFromOrgRole";
|
|
416
|
+
/**
|
|
417
|
+
* @description Gets role up hierarchy from role.
|
|
418
|
+
*/
|
|
419
|
+
eAdminUnitRoleSources[eAdminUnitRoleSources["UpHierarchy"] = 16] = "UpHierarchy";
|
|
420
|
+
/**
|
|
421
|
+
* @description Gets role as a manager.
|
|
422
|
+
*/
|
|
423
|
+
eAdminUnitRoleSources[eAdminUnitRoleSources["AsManager"] = 32] = "AsManager";
|
|
424
|
+
/**
|
|
425
|
+
* @description Gets all roles.
|
|
426
|
+
*/
|
|
427
|
+
eAdminUnitRoleSources[eAdminUnitRoleSources["All"] = 63] = "All";
|
|
428
|
+
})(eAdminUnitRoleSources || (eAdminUnitRoleSources = {}));
|
|
429
|
+
|
|
430
|
+
/**
|
|
431
|
+
* @public
|
|
432
|
+
* @description Scope of the aggregation function.
|
|
433
|
+
*/
|
|
204
434
|
var ɵAggregationEvalType;
|
|
205
435
|
(function (ɵAggregationEvalType) {
|
|
206
|
-
/**
|
|
436
|
+
/**
|
|
437
|
+
* @description The scope of the aggregating function is not defined.
|
|
438
|
+
*/
|
|
207
439
|
ɵAggregationEvalType[ɵAggregationEvalType["None"] = 0] = "None";
|
|
208
|
-
/**
|
|
440
|
+
/**
|
|
441
|
+
* @description Applies to all elements.
|
|
442
|
+
*/
|
|
209
443
|
ɵAggregationEvalType[ɵAggregationEvalType["All"] = 1] = "All";
|
|
210
|
-
/**
|
|
444
|
+
/**
|
|
445
|
+
* @description Applies to unique values.
|
|
446
|
+
*/
|
|
211
447
|
ɵAggregationEvalType[ɵAggregationEvalType["Distinct"] = 2] = "Distinct";
|
|
212
448
|
})(ɵAggregationEvalType || (ɵAggregationEvalType = {}));
|
|
213
449
|
|
|
450
|
+
/**
|
|
451
|
+
* @public
|
|
452
|
+
* @description Arithmetic operation.
|
|
453
|
+
*/
|
|
214
454
|
var ɵArithmeticOperation;
|
|
215
455
|
(function (ɵArithmeticOperation) {
|
|
216
|
-
/**
|
|
456
|
+
/**
|
|
457
|
+
* @description Addition.
|
|
458
|
+
*/
|
|
217
459
|
ɵArithmeticOperation[ɵArithmeticOperation["Addition"] = 0] = "Addition";
|
|
218
|
-
/**
|
|
460
|
+
/**
|
|
461
|
+
* @description Subtraction.
|
|
462
|
+
*/
|
|
219
463
|
ɵArithmeticOperation[ɵArithmeticOperation["Subtraction"] = 1] = "Subtraction";
|
|
220
|
-
/**
|
|
464
|
+
/**
|
|
465
|
+
* @description Multiplication.
|
|
466
|
+
*/
|
|
221
467
|
ɵArithmeticOperation[ɵArithmeticOperation["Multiplication"] = 2] = "Multiplication";
|
|
222
|
-
/**
|
|
468
|
+
/**
|
|
469
|
+
* @description Division.
|
|
470
|
+
*/
|
|
223
471
|
ɵArithmeticOperation[ɵArithmeticOperation["Division"] = 3] = "Division";
|
|
224
472
|
})(ɵArithmeticOperation || (ɵArithmeticOperation = {}));
|
|
225
473
|
|
|
474
|
+
/**
|
|
475
|
+
* @public
|
|
476
|
+
* @description The type of comparison operation in the filter.
|
|
477
|
+
*/
|
|
226
478
|
/* eslint-disable @typescript-eslint/naming-convention */
|
|
227
479
|
var ɵComparisonType;
|
|
228
480
|
(function (ɵComparisonType) {
|
|
481
|
+
/**
|
|
482
|
+
* @public
|
|
483
|
+
* @description Value is between two specified values.
|
|
484
|
+
*/
|
|
229
485
|
ɵComparisonType[ɵComparisonType["Between"] = 0] = "Between";
|
|
486
|
+
/**
|
|
487
|
+
* @public
|
|
488
|
+
* @description Value contains a specified substring.
|
|
489
|
+
*/
|
|
230
490
|
ɵComparisonType[ɵComparisonType["Contain"] = 11] = "Contain";
|
|
491
|
+
/**
|
|
492
|
+
* @public
|
|
493
|
+
* @description Value ends with a specified substring.
|
|
494
|
+
*/
|
|
231
495
|
ɵComparisonType[ɵComparisonType["End_with"] = 13] = "End_with";
|
|
496
|
+
/**
|
|
497
|
+
* @public
|
|
498
|
+
* @description Value is equal to a specified value.
|
|
499
|
+
*/
|
|
232
500
|
ɵComparisonType[ɵComparisonType["Equal"] = 3] = "Equal";
|
|
501
|
+
/**
|
|
502
|
+
* @public
|
|
503
|
+
* @description Value exists (is not null or undefined).
|
|
504
|
+
*/
|
|
233
505
|
ɵComparisonType[ɵComparisonType["Exists"] = 15] = "Exists";
|
|
506
|
+
/**
|
|
507
|
+
* @public
|
|
508
|
+
* @description Value is greater than a specified value.
|
|
509
|
+
*/
|
|
234
510
|
ɵComparisonType[ɵComparisonType["Greater"] = 7] = "Greater";
|
|
511
|
+
/**
|
|
512
|
+
* @public
|
|
513
|
+
* @description Value is greater than or equal to a specified value.
|
|
514
|
+
*/
|
|
235
515
|
ɵComparisonType[ɵComparisonType["Greater_or_equal"] = 8] = "Greater_or_equal";
|
|
516
|
+
/**
|
|
517
|
+
* @public
|
|
518
|
+
* @description Value is not null.
|
|
519
|
+
*/
|
|
236
520
|
ɵComparisonType[ɵComparisonType["Is_not_null"] = 2] = "Is_not_null";
|
|
521
|
+
/**
|
|
522
|
+
* @public
|
|
523
|
+
* @description Value is null.
|
|
524
|
+
*/
|
|
237
525
|
ɵComparisonType[ɵComparisonType["Is_null"] = 1] = "Is_null";
|
|
526
|
+
/**
|
|
527
|
+
* @public
|
|
528
|
+
* @description Value is less than a specified value.
|
|
529
|
+
*/
|
|
238
530
|
ɵComparisonType[ɵComparisonType["Less"] = 5] = "Less";
|
|
531
|
+
/**
|
|
532
|
+
* @public
|
|
533
|
+
* @description Value is less than or equal to a specified value.
|
|
534
|
+
*/
|
|
239
535
|
ɵComparisonType[ɵComparisonType["Less_or_equal"] = 6] = "Less_or_equal";
|
|
536
|
+
/**
|
|
537
|
+
* @public
|
|
538
|
+
* @description Value does not contain a specified substring.
|
|
539
|
+
*/
|
|
240
540
|
ɵComparisonType[ɵComparisonType["Not_contain"] = 12] = "Not_contain";
|
|
541
|
+
/**
|
|
542
|
+
* @public
|
|
543
|
+
* @description Value does not end with a specified substring.
|
|
544
|
+
*/
|
|
241
545
|
ɵComparisonType[ɵComparisonType["Not_end_with"] = 14] = "Not_end_with";
|
|
546
|
+
/**
|
|
547
|
+
* @public
|
|
548
|
+
* @description Value is not equal to a specified value.
|
|
549
|
+
*/
|
|
242
550
|
ɵComparisonType[ɵComparisonType["Not_equal"] = 4] = "Not_equal";
|
|
551
|
+
/**
|
|
552
|
+
* @public
|
|
553
|
+
* @description Value does not exist (is null or undefined).
|
|
554
|
+
*/
|
|
243
555
|
ɵComparisonType[ɵComparisonType["Not_exists"] = 16] = "Not_exists";
|
|
556
|
+
/**
|
|
557
|
+
* @public
|
|
558
|
+
* @description Value does not start with a specified substring.
|
|
559
|
+
*/
|
|
244
560
|
ɵComparisonType[ɵComparisonType["Not_start_with"] = 10] = "Not_start_with";
|
|
561
|
+
/**
|
|
562
|
+
* @public
|
|
563
|
+
* @description Value starts with a specified substring.
|
|
564
|
+
*/
|
|
245
565
|
ɵComparisonType[ɵComparisonType["Start_with"] = 9] = "Start_with";
|
|
246
566
|
})(ɵComparisonType || (ɵComparisonType = {}));
|
|
247
567
|
|
|
568
|
+
/**
|
|
569
|
+
* @public
|
|
570
|
+
* @description Part of the date.
|
|
571
|
+
*/
|
|
248
572
|
var ɵDatePartType;
|
|
249
573
|
(function (ɵDatePartType) {
|
|
250
|
-
/**
|
|
574
|
+
/**
|
|
575
|
+
* @description Empty value.
|
|
576
|
+
*/
|
|
251
577
|
ɵDatePartType[ɵDatePartType["None"] = 0] = "None";
|
|
252
|
-
/**
|
|
578
|
+
/**
|
|
579
|
+
* @description Day.
|
|
580
|
+
*/
|
|
253
581
|
ɵDatePartType[ɵDatePartType["Day"] = 1] = "Day";
|
|
254
|
-
/**
|
|
582
|
+
/**
|
|
583
|
+
* @description Week.
|
|
584
|
+
*/
|
|
255
585
|
ɵDatePartType[ɵDatePartType["Week"] = 2] = "Week";
|
|
256
|
-
/**
|
|
586
|
+
/**
|
|
587
|
+
* @description Month.
|
|
588
|
+
*/
|
|
257
589
|
ɵDatePartType[ɵDatePartType["Month"] = 3] = "Month";
|
|
258
|
-
/**
|
|
590
|
+
/**
|
|
591
|
+
* @description Year.
|
|
592
|
+
*/
|
|
259
593
|
ɵDatePartType[ɵDatePartType["Year"] = 4] = "Year";
|
|
260
|
-
/**
|
|
594
|
+
/**
|
|
595
|
+
* @description Day of the week.
|
|
596
|
+
*/
|
|
261
597
|
ɵDatePartType[ɵDatePartType["WeekDay"] = 5] = "WeekDay";
|
|
262
|
-
/**
|
|
598
|
+
/**
|
|
599
|
+
* @description Hour.
|
|
600
|
+
*/
|
|
263
601
|
ɵDatePartType[ɵDatePartType["Hour"] = 6] = "Hour";
|
|
264
|
-
/**
|
|
602
|
+
/**
|
|
603
|
+
* @description Minute.
|
|
604
|
+
*/
|
|
265
605
|
ɵDatePartType[ɵDatePartType["HourMinute"] = 7] = "HourMinute";
|
|
266
606
|
})(ɵDatePartType || (ɵDatePartType = {}));
|
|
267
607
|
|
|
608
|
+
/**
|
|
609
|
+
* @public
|
|
610
|
+
* @description Type of expression.
|
|
611
|
+
*/
|
|
268
612
|
var ɵExpressionType;
|
|
269
613
|
(function (ɵExpressionType) {
|
|
614
|
+
/**
|
|
615
|
+
* @description Column.
|
|
616
|
+
*/
|
|
270
617
|
ɵExpressionType[ɵExpressionType["SchemaColumn"] = 0] = "SchemaColumn";
|
|
618
|
+
/**
|
|
619
|
+
* @description Function.
|
|
620
|
+
*/
|
|
271
621
|
ɵExpressionType[ɵExpressionType["Function"] = 1] = "Function";
|
|
622
|
+
/**
|
|
623
|
+
* @description Parameter.
|
|
624
|
+
*/
|
|
272
625
|
ɵExpressionType[ɵExpressionType["Parameter"] = 2] = "Parameter";
|
|
626
|
+
/**
|
|
627
|
+
* @description Subselect query.
|
|
628
|
+
*/
|
|
273
629
|
ɵExpressionType[ɵExpressionType["SubQuery"] = 3] = "SubQuery";
|
|
630
|
+
/**
|
|
631
|
+
* @description Arithmetic operation.
|
|
632
|
+
*/
|
|
274
633
|
ɵExpressionType[ɵExpressionType["ArithmeticOperation"] = 4] = "ArithmeticOperation";
|
|
275
634
|
})(ɵExpressionType || (ɵExpressionType = {}));
|
|
276
635
|
|
|
636
|
+
/**
|
|
637
|
+
* @public
|
|
638
|
+
* @description The type of filter.
|
|
639
|
+
*/
|
|
277
640
|
var ɵFilterType;
|
|
278
641
|
(function (ɵFilterType) {
|
|
642
|
+
/**
|
|
643
|
+
* @public
|
|
644
|
+
* @description No filter applied.
|
|
645
|
+
*/
|
|
279
646
|
ɵFilterType[ɵFilterType["None"] = 0] = "None";
|
|
647
|
+
/**
|
|
648
|
+
* @public
|
|
649
|
+
* @description Comparison filter (e.g., equal to, greater than).
|
|
650
|
+
*/
|
|
280
651
|
ɵFilterType[ɵFilterType["Compare"] = 1] = "Compare";
|
|
652
|
+
/**
|
|
653
|
+
* @public
|
|
654
|
+
* @description Checks if a value is null.
|
|
655
|
+
*/
|
|
281
656
|
ɵFilterType[ɵFilterType["IsNull"] = 2] = "IsNull";
|
|
657
|
+
/**
|
|
658
|
+
* @public
|
|
659
|
+
* @description Checks if a value is between two specified values.
|
|
660
|
+
*/
|
|
282
661
|
ɵFilterType[ɵFilterType["Between"] = 3] = "Between";
|
|
662
|
+
/**
|
|
663
|
+
* @public
|
|
664
|
+
* @description Checks if a value is in a specified set of values.
|
|
665
|
+
*/
|
|
283
666
|
ɵFilterType[ɵFilterType["In"] = 4] = "In";
|
|
667
|
+
/**
|
|
668
|
+
* @public
|
|
669
|
+
* @description Checks if a value exists.
|
|
670
|
+
*/
|
|
284
671
|
ɵFilterType[ɵFilterType["Exists"] = 5] = "Exists";
|
|
672
|
+
/**
|
|
673
|
+
* @public
|
|
674
|
+
* @description A group of filters combined with logical operators (AND, OR).
|
|
675
|
+
*/
|
|
285
676
|
ɵFilterType[ɵFilterType["FilterGroup"] = 6] = "FilterGroup";
|
|
286
677
|
})(ɵFilterType || (ɵFilterType = {}));
|
|
287
678
|
|
|
679
|
+
/**
|
|
680
|
+
* @public
|
|
681
|
+
* @description The type of function in the filter.
|
|
682
|
+
*/
|
|
288
683
|
var ɵFunctionType;
|
|
289
684
|
(function (ɵFunctionType) {
|
|
685
|
+
/**
|
|
686
|
+
* @description Function type not defined.
|
|
687
|
+
* */
|
|
290
688
|
ɵFunctionType[ɵFunctionType["None"] = 0] = "None";
|
|
291
|
-
/**
|
|
689
|
+
/**
|
|
690
|
+
* @description Substitution by macro.
|
|
691
|
+
* */
|
|
292
692
|
ɵFunctionType[ɵFunctionType["Macros"] = 1] = "Macros";
|
|
293
|
-
/**
|
|
693
|
+
/**
|
|
694
|
+
* @description Aggregating function.
|
|
695
|
+
* */
|
|
294
696
|
ɵFunctionType[ɵFunctionType["Aggregation"] = 2] = "Aggregation";
|
|
295
|
-
/**
|
|
697
|
+
/**
|
|
698
|
+
* @description Date fragment.
|
|
699
|
+
* */
|
|
296
700
|
ɵFunctionType[ɵFunctionType["DatePart"] = 3] = "DatePart";
|
|
297
|
-
/**
|
|
701
|
+
/**
|
|
702
|
+
* @description The size of the value in bytes, used for binary data.
|
|
703
|
+
* */
|
|
298
704
|
ɵFunctionType[ɵFunctionType["Length"] = 4] = "Length";
|
|
299
|
-
/**
|
|
705
|
+
/**
|
|
706
|
+
* @description Window query function
|
|
707
|
+
* */
|
|
300
708
|
ɵFunctionType[ɵFunctionType["Window"] = 5] = "Window";
|
|
301
|
-
/**
|
|
709
|
+
/**
|
|
710
|
+
* @description Date add.
|
|
711
|
+
* */
|
|
302
712
|
ɵFunctionType[ɵFunctionType["DateAdd"] = 6] = "DateAdd";
|
|
303
|
-
/**
|
|
713
|
+
/**
|
|
714
|
+
* @description Date diff.
|
|
715
|
+
* */
|
|
304
716
|
ɵFunctionType[ɵFunctionType["DateDiff"] = 7] = "DateDiff";
|
|
305
717
|
})(ɵFunctionType || (ɵFunctionType = {}));
|
|
306
718
|
|
|
719
|
+
/**
|
|
720
|
+
* @public
|
|
721
|
+
* @description The type of logical operation.
|
|
722
|
+
*/
|
|
723
|
+
var ɵLogicalOperatorType;
|
|
724
|
+
(function (ɵLogicalOperatorType) {
|
|
725
|
+
/**
|
|
726
|
+
* @description Logical And.
|
|
727
|
+
*/
|
|
728
|
+
ɵLogicalOperatorType[ɵLogicalOperatorType["And"] = 0] = "And";
|
|
729
|
+
/**
|
|
730
|
+
* @description Logical Or.
|
|
731
|
+
*/
|
|
732
|
+
ɵLogicalOperatorType[ɵLogicalOperatorType["Or"] = 1] = "Or";
|
|
733
|
+
})(ɵLogicalOperatorType || (ɵLogicalOperatorType = {}));
|
|
734
|
+
|
|
735
|
+
/**
|
|
736
|
+
* @public
|
|
737
|
+
* @description Sort order (can be set to None).
|
|
738
|
+
*/
|
|
307
739
|
var ɵOrderDirection;
|
|
308
740
|
(function (ɵOrderDirection) {
|
|
741
|
+
/**
|
|
742
|
+
* @description Order not defined.
|
|
743
|
+
* */
|
|
309
744
|
ɵOrderDirection[ɵOrderDirection["None"] = 0] = "None";
|
|
745
|
+
/**
|
|
746
|
+
* @description Ascending.
|
|
747
|
+
* */
|
|
310
748
|
ɵOrderDirection[ɵOrderDirection["Asc"] = 1] = "Asc";
|
|
749
|
+
/**
|
|
750
|
+
* @description Descending.
|
|
751
|
+
* */
|
|
311
752
|
ɵOrderDirection[ɵOrderDirection["Desc"] = 2] = "Desc";
|
|
312
753
|
})(ɵOrderDirection || (ɵOrderDirection = {}));
|
|
313
754
|
|
|
755
|
+
/**
|
|
756
|
+
* @public
|
|
757
|
+
* @description The type of macros.
|
|
758
|
+
*/
|
|
314
759
|
var ɵQueryMacrosType;
|
|
315
760
|
(function (ɵQueryMacrosType) {
|
|
316
|
-
/**
|
|
761
|
+
/**
|
|
762
|
+
* @description Macro type not defined.
|
|
763
|
+
*/
|
|
317
764
|
ɵQueryMacrosType[ɵQueryMacrosType["None"] = 0] = "None";
|
|
318
|
-
/**
|
|
765
|
+
/**
|
|
766
|
+
* @description Current user.
|
|
767
|
+
*/
|
|
319
768
|
ɵQueryMacrosType[ɵQueryMacrosType["CurrentUser"] = 1] = "CurrentUser";
|
|
320
|
-
/**
|
|
769
|
+
/**
|
|
770
|
+
* @description Current user contact.
|
|
771
|
+
*/
|
|
321
772
|
ɵQueryMacrosType[ɵQueryMacrosType["CurrentUserContact"] = 2] = "CurrentUserContact";
|
|
322
|
-
/**
|
|
773
|
+
/**
|
|
774
|
+
* @description Yesterday.
|
|
775
|
+
*/
|
|
323
776
|
ɵQueryMacrosType[ɵQueryMacrosType["Yesterday"] = 3] = "Yesterday";
|
|
324
|
-
/**
|
|
777
|
+
/**
|
|
778
|
+
* @description Today.
|
|
779
|
+
*/
|
|
325
780
|
ɵQueryMacrosType[ɵQueryMacrosType["Today"] = 4] = "Today";
|
|
326
|
-
/**
|
|
781
|
+
/**
|
|
782
|
+
* @description Tomorrow.
|
|
783
|
+
*/
|
|
327
784
|
ɵQueryMacrosType[ɵQueryMacrosType["Tomorrow"] = 5] = "Tomorrow";
|
|
328
|
-
/**
|
|
785
|
+
/**
|
|
786
|
+
* @description Previous week.
|
|
787
|
+
*/
|
|
329
788
|
ɵQueryMacrosType[ɵQueryMacrosType["PreviousWeek"] = 6] = "PreviousWeek";
|
|
330
|
-
/**
|
|
789
|
+
/**
|
|
790
|
+
* @description This week.
|
|
791
|
+
*/
|
|
331
792
|
ɵQueryMacrosType[ɵQueryMacrosType["CurrentWeek"] = 7] = "CurrentWeek";
|
|
332
|
-
/**
|
|
793
|
+
/**
|
|
794
|
+
* @description Next week.
|
|
795
|
+
*/
|
|
333
796
|
ɵQueryMacrosType[ɵQueryMacrosType["NextWeek"] = 8] = "NextWeek";
|
|
334
|
-
/**
|
|
797
|
+
/**
|
|
798
|
+
* @description Previous month.
|
|
799
|
+
*/
|
|
335
800
|
ɵQueryMacrosType[ɵQueryMacrosType["PreviousMonth"] = 9] = "PreviousMonth";
|
|
336
|
-
/**
|
|
801
|
+
/**
|
|
802
|
+
* @description Current month.
|
|
803
|
+
*/
|
|
337
804
|
ɵQueryMacrosType[ɵQueryMacrosType["CurrentMonth"] = 10] = "CurrentMonth";
|
|
338
|
-
/**
|
|
805
|
+
/**
|
|
806
|
+
* @description Next month.
|
|
807
|
+
*/
|
|
339
808
|
ɵQueryMacrosType[ɵQueryMacrosType["NextMonth"] = 11] = "NextMonth";
|
|
340
|
-
/**
|
|
809
|
+
/**
|
|
810
|
+
* @description Previous quarter.
|
|
811
|
+
*/
|
|
341
812
|
ɵQueryMacrosType[ɵQueryMacrosType["PreviousQuarter"] = 12] = "PreviousQuarter";
|
|
342
|
-
/**
|
|
813
|
+
/**
|
|
814
|
+
* @description Current quarter.
|
|
815
|
+
*/
|
|
343
816
|
ɵQueryMacrosType[ɵQueryMacrosType["CurrentQuarter"] = 13] = "CurrentQuarter";
|
|
344
|
-
/**
|
|
817
|
+
/**
|
|
818
|
+
* @description Next quarter.
|
|
819
|
+
*/
|
|
345
820
|
ɵQueryMacrosType[ɵQueryMacrosType["NextQuarter"] = 14] = "NextQuarter";
|
|
346
|
-
/**
|
|
821
|
+
/**
|
|
822
|
+
* @description Previous half of the year.
|
|
823
|
+
*/
|
|
347
824
|
ɵQueryMacrosType[ɵQueryMacrosType["PreviousHalfYear"] = 15] = "PreviousHalfYear";
|
|
348
|
-
/**
|
|
825
|
+
/**
|
|
826
|
+
* @description Current half-year.
|
|
827
|
+
*/
|
|
349
828
|
ɵQueryMacrosType[ɵQueryMacrosType["CurrentHalfYear"] = 16] = "CurrentHalfYear";
|
|
350
|
-
/**
|
|
829
|
+
/**
|
|
830
|
+
* @description Next half-year.
|
|
831
|
+
*/
|
|
351
832
|
ɵQueryMacrosType[ɵQueryMacrosType["NextHalfYear"] = 17] = "NextHalfYear";
|
|
352
|
-
/**
|
|
833
|
+
/**
|
|
834
|
+
* @description Last year.
|
|
835
|
+
*/
|
|
353
836
|
ɵQueryMacrosType[ɵQueryMacrosType["PreviousYear"] = 18] = "PreviousYear";
|
|
354
|
-
/**
|
|
837
|
+
/**
|
|
838
|
+
* @description This year.
|
|
839
|
+
*/
|
|
355
840
|
ɵQueryMacrosType[ɵQueryMacrosType["CurrentYear"] = 19] = "CurrentYear";
|
|
356
|
-
/**
|
|
841
|
+
/**
|
|
842
|
+
* @description Previous hour.
|
|
843
|
+
*/
|
|
357
844
|
ɵQueryMacrosType[ɵQueryMacrosType["PreviousHour"] = 20] = "PreviousHour";
|
|
358
|
-
/**
|
|
845
|
+
/**
|
|
846
|
+
* @description Current hour.
|
|
847
|
+
*/
|
|
359
848
|
ɵQueryMacrosType[ɵQueryMacrosType["CurrentHour"] = 21] = "CurrentHour";
|
|
360
|
-
/**
|
|
849
|
+
/**
|
|
850
|
+
* @description Next hour.
|
|
851
|
+
*/
|
|
361
852
|
ɵQueryMacrosType[ɵQueryMacrosType["NextHour"] = 22] = "NextHour";
|
|
362
|
-
/**
|
|
853
|
+
/**
|
|
854
|
+
* @description Next year.
|
|
855
|
+
*/
|
|
363
856
|
ɵQueryMacrosType[ɵQueryMacrosType["NextYear"] = 23] = "NextYear";
|
|
364
|
-
/**
|
|
857
|
+
/**
|
|
858
|
+
* @description Next N Days.
|
|
859
|
+
*/
|
|
365
860
|
ɵQueryMacrosType[ɵQueryMacrosType["NextNDays"] = 24] = "NextNDays";
|
|
366
|
-
/**
|
|
861
|
+
/**
|
|
862
|
+
* @description Previous N days.
|
|
863
|
+
*/
|
|
367
864
|
ɵQueryMacrosType[ɵQueryMacrosType["PreviousNDays"] = 25] = "PreviousNDays";
|
|
368
|
-
/**
|
|
865
|
+
/**
|
|
866
|
+
* @description Next N hours.
|
|
867
|
+
*/
|
|
369
868
|
ɵQueryMacrosType[ɵQueryMacrosType["NextNHours"] = 26] = "NextNHours";
|
|
370
|
-
/**
|
|
869
|
+
/**
|
|
870
|
+
* @description Previous N hours.
|
|
871
|
+
*/
|
|
371
872
|
ɵQueryMacrosType[ɵQueryMacrosType["PreviousNHours"] = 27] = "PreviousNHours";
|
|
372
|
-
/**
|
|
873
|
+
/**
|
|
874
|
+
* @description Primary column.
|
|
875
|
+
*/
|
|
373
876
|
ɵQueryMacrosType[ɵQueryMacrosType["PrimaryColumn"] = 34] = "PrimaryColumn";
|
|
374
|
-
/**
|
|
877
|
+
/**
|
|
878
|
+
* @description Primary displayed column.
|
|
879
|
+
*/
|
|
375
880
|
ɵQueryMacrosType[ɵQueryMacrosType["PrimaryDisplayColumn"] = 35] = "PrimaryDisplayColumn";
|
|
376
|
-
/**
|
|
881
|
+
/**
|
|
882
|
+
* @description Primary image display column.
|
|
883
|
+
*/
|
|
377
884
|
ɵQueryMacrosType[ɵQueryMacrosType["PrimaryImageColumn"] = 36] = "PrimaryImageColumn";
|
|
378
|
-
/**
|
|
885
|
+
/**
|
|
886
|
+
* @description Anniversary today.
|
|
887
|
+
*/
|
|
379
888
|
ɵQueryMacrosType[ɵQueryMacrosType["DayOfYearToday"] = 37] = "DayOfYearToday";
|
|
380
|
-
/**
|
|
889
|
+
/**
|
|
890
|
+
* @description Anniversary on the date computed as today plus days offset.
|
|
891
|
+
*/
|
|
381
892
|
ɵQueryMacrosType[ɵQueryMacrosType["DayOfYearTodayPlusDaysOffset"] = 38] = "DayOfYearTodayPlusDaysOffset";
|
|
382
|
-
/**
|
|
893
|
+
/**
|
|
894
|
+
* @description Anniversary on the next several days.
|
|
895
|
+
*/
|
|
383
896
|
ɵQueryMacrosType[ɵQueryMacrosType["NextNDaysOfYear"] = 39] = "NextNDaysOfYear";
|
|
384
|
-
/**
|
|
897
|
+
/**
|
|
898
|
+
* @description Anniversary on the previous several days.
|
|
899
|
+
*/
|
|
385
900
|
ɵQueryMacrosType[ɵQueryMacrosType["PreviousNDaysOfYear"] = 40] = "PreviousNDaysOfYear";
|
|
386
|
-
/**
|
|
901
|
+
/**
|
|
902
|
+
* @description Primary color display column.
|
|
903
|
+
*/
|
|
387
904
|
ɵQueryMacrosType[ɵQueryMacrosType["PrimaryColorColumn"] = 41] = "PrimaryColorColumn";
|
|
388
905
|
})(ɵQueryMacrosType || (ɵQueryMacrosType = {}));
|
|
389
906
|
|
|
907
|
+
/**
|
|
908
|
+
* @public
|
|
909
|
+
* @abstract
|
|
910
|
+
* @description The base class of the expression.
|
|
911
|
+
* @extends {ɵSerializable}
|
|
912
|
+
*/
|
|
390
913
|
class ɵBaseExpression {
|
|
391
914
|
/**
|
|
392
915
|
* @internal
|
|
@@ -395,21 +918,34 @@ class ɵBaseExpression {
|
|
|
395
918
|
static get _instanceOfKeys() {
|
|
396
919
|
return [this._instanceOfKey];
|
|
397
920
|
}
|
|
921
|
+
/**
|
|
922
|
+
* @public
|
|
923
|
+
* @description Method for checking if an instance is of the current class type.
|
|
924
|
+
* @param instance - The instance to check.
|
|
925
|
+
* @returns `true` if the instance is of the current class type, `false` otherwise.
|
|
926
|
+
*/
|
|
398
927
|
static [Symbol.hasInstance](instance) {
|
|
399
928
|
const instanceOfKeys = instance?.constructor?.['_instanceOfKeys'] ?? [];
|
|
400
929
|
return instanceOfKeys.includes(this._instanceOfKey);
|
|
401
930
|
}
|
|
402
931
|
constructor(config) {
|
|
932
|
+
/**
|
|
933
|
+
* @description True if expression has brackets.
|
|
934
|
+
*/
|
|
403
935
|
this.isBlock = false;
|
|
404
936
|
this.isBlock = config?.isBlock;
|
|
405
937
|
}
|
|
406
938
|
/**
|
|
407
|
-
* Parses expression from json.
|
|
408
939
|
* @public
|
|
940
|
+
* @description Parses expression from json.
|
|
409
941
|
*/
|
|
410
942
|
static fromJson(dto, filterParser, expressionParser) {
|
|
411
943
|
throw new Error(`fromJson not supported on expression type ${this.constructor.name}`);
|
|
412
944
|
}
|
|
945
|
+
/**
|
|
946
|
+
* @description Converts instance to json object.
|
|
947
|
+
* @param item - The instance to serialize.
|
|
948
|
+
*/
|
|
413
949
|
serializeItem(item) {
|
|
414
950
|
return typeof item.toJson === 'function'
|
|
415
951
|
? item.toJson()
|
|
@@ -419,8 +955,8 @@ class ɵBaseExpression {
|
|
|
419
955
|
});
|
|
420
956
|
}
|
|
421
957
|
/**
|
|
422
|
-
* Converts instance to json object.
|
|
423
958
|
* @public
|
|
959
|
+
* @description Converts instance to json object.
|
|
424
960
|
*/
|
|
425
961
|
toJson() {
|
|
426
962
|
return classToPlain(this, {
|
|
@@ -435,6 +971,11 @@ class ɵBaseExpression {
|
|
|
435
971
|
*/
|
|
436
972
|
ɵBaseExpression._instanceOfKey = 'devkit_BaseExpression';
|
|
437
973
|
|
|
974
|
+
/**
|
|
975
|
+
* @public
|
|
976
|
+
* @description Arithmetic expression.
|
|
977
|
+
* @extends {ɵBaseExpression}
|
|
978
|
+
*/
|
|
438
979
|
class ɵArithmeticExpression extends ɵBaseExpression {
|
|
439
980
|
/**
|
|
440
981
|
* @internal
|
|
@@ -445,6 +986,9 @@ class ɵArithmeticExpression extends ɵBaseExpression {
|
|
|
445
986
|
}
|
|
446
987
|
constructor(config) {
|
|
447
988
|
super(config);
|
|
989
|
+
/**
|
|
990
|
+
* @description Expression type. Default 'ArithmeticOperation'.
|
|
991
|
+
*/
|
|
448
992
|
this.expressionType = ɵExpressionType.ArithmeticOperation;
|
|
449
993
|
this.arithmeticOperation = config?.arithmeticOperation;
|
|
450
994
|
this.leftArithmeticOperand = config?.leftArithmeticOperand.clone();
|
|
@@ -465,6 +1009,10 @@ class ɵArithmeticExpression extends ɵBaseExpression {
|
|
|
465
1009
|
};
|
|
466
1010
|
return new ɵArithmeticExpression(config);
|
|
467
1011
|
}
|
|
1012
|
+
/**
|
|
1013
|
+
* @public
|
|
1014
|
+
* @description Clones instance.
|
|
1015
|
+
*/
|
|
468
1016
|
clone() {
|
|
469
1017
|
return new ɵArithmeticExpression(this);
|
|
470
1018
|
}
|
|
@@ -481,6 +1029,11 @@ class ɵArithmeticExpression extends ɵBaseExpression {
|
|
|
481
1029
|
*/
|
|
482
1030
|
ɵArithmeticExpression._instanceOfKey = 'devkit_ArithmeticExpression';
|
|
483
1031
|
|
|
1032
|
+
/**
|
|
1033
|
+
* @public
|
|
1034
|
+
* @description A class that defines an expression of type column EntitySchema.
|
|
1035
|
+
* @extends {ɵBaseExpression}
|
|
1036
|
+
*/
|
|
484
1037
|
class ɵColumnExpression extends ɵBaseExpression {
|
|
485
1038
|
/**
|
|
486
1039
|
* @internal
|
|
@@ -491,17 +1044,24 @@ class ɵColumnExpression extends ɵBaseExpression {
|
|
|
491
1044
|
}
|
|
492
1045
|
constructor(config) {
|
|
493
1046
|
super(config);
|
|
1047
|
+
/**
|
|
1048
|
+
* @description Type of expression.
|
|
1049
|
+
*/
|
|
494
1050
|
this.expressionType = ɵExpressionType.SchemaColumn;
|
|
495
1051
|
this.columnPath = config?.columnPath;
|
|
496
1052
|
}
|
|
497
1053
|
/**
|
|
498
1054
|
* Parses expression from json.
|
|
499
1055
|
* @public
|
|
1056
|
+
* @param dto - Serialized object.
|
|
500
1057
|
*/
|
|
501
1058
|
static fromJson(dto) {
|
|
502
1059
|
const expression = new ɵColumnExpression({ columnPath: dto['columnPath'] });
|
|
503
1060
|
return expression;
|
|
504
1061
|
}
|
|
1062
|
+
/**
|
|
1063
|
+
* @description Clones instance.
|
|
1064
|
+
*/
|
|
505
1065
|
clone() {
|
|
506
1066
|
return new ɵColumnExpression(this);
|
|
507
1067
|
}
|
|
@@ -523,15 +1083,28 @@ class ɵColumnExpression extends ɵBaseExpression {
|
|
|
523
1083
|
ɵColumnExpression._instanceOfKey = 'devkit_ColumnExpression';
|
|
524
1084
|
|
|
525
1085
|
/**
|
|
526
|
-
* Expression parser interface
|
|
527
1086
|
* @public
|
|
1087
|
+
* @description Expression parser interface.
|
|
528
1088
|
*/
|
|
529
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
|
+
*/
|
|
530
1097
|
static fromJson(dto, filterParser) {
|
|
531
1098
|
throw new Error('not implemented');
|
|
532
1099
|
}
|
|
533
1100
|
}
|
|
534
1101
|
|
|
1102
|
+
/**
|
|
1103
|
+
* @public
|
|
1104
|
+
* @abstract
|
|
1105
|
+
* @description A class that describes a functional expression.
|
|
1106
|
+
* @extends {ɵFunctionExpression}
|
|
1107
|
+
*/
|
|
535
1108
|
class ɵFunctionExpression extends ɵBaseExpression {
|
|
536
1109
|
/**
|
|
537
1110
|
* @internal
|
|
@@ -542,6 +1115,9 @@ class ɵFunctionExpression extends ɵBaseExpression {
|
|
|
542
1115
|
}
|
|
543
1116
|
constructor(config) {
|
|
544
1117
|
super(config);
|
|
1118
|
+
/**
|
|
1119
|
+
* @description Expression type. Default 'Function'.
|
|
1120
|
+
*/
|
|
545
1121
|
this.expressionType = ɵExpressionType.Function;
|
|
546
1122
|
}
|
|
547
1123
|
}
|
|
@@ -551,6 +1127,12 @@ class ɵFunctionExpression extends ɵBaseExpression {
|
|
|
551
1127
|
*/
|
|
552
1128
|
ɵFunctionExpression._instanceOfKey = 'devkit_FunctionExpression';
|
|
553
1129
|
|
|
1130
|
+
/**
|
|
1131
|
+
* @public
|
|
1132
|
+
* @abstract
|
|
1133
|
+
* @description A class that describes a functional expression with argument.
|
|
1134
|
+
* @extends {ɵFunctionExpression}
|
|
1135
|
+
*/
|
|
554
1136
|
class ɵArgumentFunctionExpression extends ɵFunctionExpression {
|
|
555
1137
|
/**
|
|
556
1138
|
* @internal
|
|
@@ -561,8 +1143,9 @@ class ɵArgumentFunctionExpression extends ɵFunctionExpression {
|
|
|
561
1143
|
}
|
|
562
1144
|
constructor(config) {
|
|
563
1145
|
super(config);
|
|
564
|
-
this.functionArgument = config?.functionArgument
|
|
1146
|
+
this.functionArgument = config?.functionArgument?.clone();
|
|
565
1147
|
}
|
|
1148
|
+
/** {@inheritDoc ɵBaseExpression.toJson} */
|
|
566
1149
|
toJson() {
|
|
567
1150
|
const result = super.toJson();
|
|
568
1151
|
if (this.functionArgument) {
|
|
@@ -583,6 +1166,11 @@ class ɵArgumentFunctionExpression extends ɵFunctionExpression {
|
|
|
583
1166
|
*/
|
|
584
1167
|
ɵArgumentFunctionExpression._instanceOfKey = 'devkit_ArgumentFunctionExpression';
|
|
585
1168
|
|
|
1169
|
+
/**
|
|
1170
|
+
* @public
|
|
1171
|
+
* @description A class that describes expression with aggregate function.
|
|
1172
|
+
* @extends {ɵArgumentFunctionExpression}
|
|
1173
|
+
*/
|
|
586
1174
|
class ɵAggregationFunctionExpression extends ɵArgumentFunctionExpression {
|
|
587
1175
|
/**
|
|
588
1176
|
* @internal
|
|
@@ -593,6 +1181,9 @@ class ɵAggregationFunctionExpression extends ɵArgumentFunctionExpression {
|
|
|
593
1181
|
}
|
|
594
1182
|
constructor(config) {
|
|
595
1183
|
super(config);
|
|
1184
|
+
/**
|
|
1185
|
+
* @description The type of the functional expression passed for initialization.
|
|
1186
|
+
*/
|
|
596
1187
|
this.functionType = ɵFunctionType.Aggregation;
|
|
597
1188
|
this.aggregationType = config?.aggregationType;
|
|
598
1189
|
this.aggregationEvalType = config?.aggregationEvalType;
|
|
@@ -612,6 +1203,7 @@ class ɵAggregationFunctionExpression extends ɵArgumentFunctionExpression {
|
|
|
612
1203
|
isBlock: dto['isBlock'],
|
|
613
1204
|
});
|
|
614
1205
|
}
|
|
1206
|
+
/** {@inheritDoc ɵBaseExpression.clone} */
|
|
615
1207
|
clone() {
|
|
616
1208
|
return new ɵAggregationFunctionExpression(this);
|
|
617
1209
|
}
|
|
@@ -622,6 +1214,11 @@ class ɵAggregationFunctionExpression extends ɵArgumentFunctionExpression {
|
|
|
622
1214
|
*/
|
|
623
1215
|
ɵAggregationFunctionExpression._instanceOfKey = 'devkit_AggregationFunctionExpression';
|
|
624
1216
|
|
|
1217
|
+
/**
|
|
1218
|
+
* @public
|
|
1219
|
+
* @description A class that describes expression part of date function.
|
|
1220
|
+
* @extends {ɵArgumentFunctionExpression}
|
|
1221
|
+
*/
|
|
625
1222
|
class ɵDatePartFunctionExpression extends ɵArgumentFunctionExpression {
|
|
626
1223
|
/**
|
|
627
1224
|
* @internal
|
|
@@ -632,6 +1229,9 @@ class ɵDatePartFunctionExpression extends ɵArgumentFunctionExpression {
|
|
|
632
1229
|
}
|
|
633
1230
|
constructor(config) {
|
|
634
1231
|
super(config);
|
|
1232
|
+
/**
|
|
1233
|
+
* @description Function type. Default 'DatePart'.
|
|
1234
|
+
*/
|
|
635
1235
|
this.functionType = ɵFunctionType.DatePart;
|
|
636
1236
|
this.datePartType = config?.datePartType;
|
|
637
1237
|
}
|
|
@@ -644,6 +1244,7 @@ class ɵDatePartFunctionExpression extends ɵArgumentFunctionExpression {
|
|
|
644
1244
|
const datePartType = dto['datePartType'];
|
|
645
1245
|
return new ɵDatePartFunctionExpression({ functionArgument, datePartType, isBlock: dto['isBlock'] });
|
|
646
1246
|
}
|
|
1247
|
+
/** {@inheritDoc ɵBaseExpression.clone} */
|
|
647
1248
|
clone() {
|
|
648
1249
|
return new ɵDatePartFunctionExpression(this);
|
|
649
1250
|
}
|
|
@@ -654,6 +1255,11 @@ class ɵDatePartFunctionExpression extends ɵArgumentFunctionExpression {
|
|
|
654
1255
|
*/
|
|
655
1256
|
ɵDatePartFunctionExpression._instanceOfKey = 'devkit_DatePartFunctionExpression';
|
|
656
1257
|
|
|
1258
|
+
/**
|
|
1259
|
+
* @public
|
|
1260
|
+
* @description A class that describes expression with length function.
|
|
1261
|
+
* @extends {ɵArgumentFunctionExpression}
|
|
1262
|
+
*/
|
|
657
1263
|
class ɵLengthFunctionExpression extends ɵArgumentFunctionExpression {
|
|
658
1264
|
/**
|
|
659
1265
|
* @internal
|
|
@@ -664,6 +1270,9 @@ class ɵLengthFunctionExpression extends ɵArgumentFunctionExpression {
|
|
|
664
1270
|
}
|
|
665
1271
|
constructor(config) {
|
|
666
1272
|
super(config);
|
|
1273
|
+
/**
|
|
1274
|
+
* @description Function type. Default 'Length'.
|
|
1275
|
+
*/
|
|
667
1276
|
this.functionType = ɵFunctionType.Length;
|
|
668
1277
|
}
|
|
669
1278
|
/**
|
|
@@ -674,6 +1283,9 @@ class ɵLengthFunctionExpression extends ɵArgumentFunctionExpression {
|
|
|
674
1283
|
const functionArgument = expressionParser?.fromJson(dto['functionArgument'], filterParser);
|
|
675
1284
|
return new ɵLengthFunctionExpression({ functionArgument, isBlock: dto['isBlock'] });
|
|
676
1285
|
}
|
|
1286
|
+
/**
|
|
1287
|
+
* @description Method to create cloned instance.
|
|
1288
|
+
*/
|
|
677
1289
|
clone() {
|
|
678
1290
|
return new ɵLengthFunctionExpression(this);
|
|
679
1291
|
}
|
|
@@ -684,6 +1296,11 @@ class ɵLengthFunctionExpression extends ɵArgumentFunctionExpression {
|
|
|
684
1296
|
*/
|
|
685
1297
|
ɵLengthFunctionExpression._instanceOfKey = 'devkit_LengthFunctionExpression';
|
|
686
1298
|
|
|
1299
|
+
/**
|
|
1300
|
+
* @public
|
|
1301
|
+
* @description A class that describes expression with macros function.
|
|
1302
|
+
* @extends {ɵFunctionExpression}
|
|
1303
|
+
*/
|
|
687
1304
|
class ɵMacrosFunctionExpression extends ɵFunctionExpression {
|
|
688
1305
|
/**
|
|
689
1306
|
* @internal
|
|
@@ -694,6 +1311,9 @@ class ɵMacrosFunctionExpression extends ɵFunctionExpression {
|
|
|
694
1311
|
}
|
|
695
1312
|
constructor(config) {
|
|
696
1313
|
super(config);
|
|
1314
|
+
/**
|
|
1315
|
+
* @description Function type. Default 'Macros'.
|
|
1316
|
+
*/
|
|
697
1317
|
this.functionType = ɵFunctionType.Macros;
|
|
698
1318
|
this.macrosType = config?.macrosType;
|
|
699
1319
|
this.functionArgument = config?.functionArgument;
|
|
@@ -708,6 +1328,9 @@ class ɵMacrosFunctionExpression extends ɵFunctionExpression {
|
|
|
708
1328
|
: undefined;
|
|
709
1329
|
return new ɵMacrosFunctionExpression({ functionArgument, macrosType: dto['macrosType'] });
|
|
710
1330
|
}
|
|
1331
|
+
/**
|
|
1332
|
+
* @description method to create cloned instance.
|
|
1333
|
+
*/
|
|
711
1334
|
clone() {
|
|
712
1335
|
return new ɵMacrosFunctionExpression(this);
|
|
713
1336
|
}
|
|
@@ -722,8 +1345,13 @@ class ɵMacrosFunctionExpression extends ɵFunctionExpression {
|
|
|
722
1345
|
* @internal
|
|
723
1346
|
* @dontChange
|
|
724
1347
|
*/
|
|
725
|
-
ɵMacrosFunctionExpression._instanceOfKey = 'devkit_MacrosFunctionExpression';
|
|
726
|
-
|
|
1348
|
+
ɵMacrosFunctionExpression._instanceOfKey = 'devkit_MacrosFunctionExpression';
|
|
1349
|
+
|
|
1350
|
+
/**
|
|
1351
|
+
* @public
|
|
1352
|
+
* @description A class that describes expression with window function.
|
|
1353
|
+
* @extends {ɵArgumentFunctionExpression}
|
|
1354
|
+
*/
|
|
727
1355
|
class ɵWindowFunctionExpression extends ɵArgumentFunctionExpression {
|
|
728
1356
|
/**
|
|
729
1357
|
* @internal
|
|
@@ -734,6 +1362,9 @@ class ɵWindowFunctionExpression extends ɵArgumentFunctionExpression {
|
|
|
734
1362
|
}
|
|
735
1363
|
constructor(config) {
|
|
736
1364
|
super(config);
|
|
1365
|
+
/**
|
|
1366
|
+
* @description Function type.
|
|
1367
|
+
*/
|
|
737
1368
|
this.functionType = ɵFunctionType.Window;
|
|
738
1369
|
}
|
|
739
1370
|
/**
|
|
@@ -744,6 +1375,7 @@ class ɵWindowFunctionExpression extends ɵArgumentFunctionExpression {
|
|
|
744
1375
|
const functionArgument = expressionParser?.fromJson(dto['functionArgument'], filterParser);
|
|
745
1376
|
return new ɵWindowFunctionExpression({ functionArgument, isBlock: dto['isBlock'] });
|
|
746
1377
|
}
|
|
1378
|
+
/** {@inheritDoc ɵBaseExpression.clone} */
|
|
747
1379
|
clone() {
|
|
748
1380
|
return new ɵWindowFunctionExpression(this);
|
|
749
1381
|
}
|
|
@@ -754,6 +1386,11 @@ class ɵWindowFunctionExpression extends ɵArgumentFunctionExpression {
|
|
|
754
1386
|
*/
|
|
755
1387
|
ɵWindowFunctionExpression._instanceOfKey = 'devkit_WindowFunctionExpression';
|
|
756
1388
|
|
|
1389
|
+
/**
|
|
1390
|
+
* @public
|
|
1391
|
+
* @description The class that defines the parametric expression.
|
|
1392
|
+
* @extends {ɵBaseExpression}
|
|
1393
|
+
*/
|
|
757
1394
|
class ɵParameterExpression extends ɵBaseExpression {
|
|
758
1395
|
/**
|
|
759
1396
|
* @internal
|
|
@@ -764,6 +1401,9 @@ class ɵParameterExpression extends ɵBaseExpression {
|
|
|
764
1401
|
}
|
|
765
1402
|
constructor(config) {
|
|
766
1403
|
super(config);
|
|
1404
|
+
/**
|
|
1405
|
+
* @description Type of expression.
|
|
1406
|
+
*/
|
|
767
1407
|
this.expressionType = ɵExpressionType.Parameter;
|
|
768
1408
|
const value = config?.value;
|
|
769
1409
|
if (value instanceof Date) {
|
|
@@ -830,6 +1470,9 @@ class ɵParameterExpression extends ɵBaseExpression {
|
|
|
830
1470
|
};
|
|
831
1471
|
}
|
|
832
1472
|
}
|
|
1473
|
+
/**
|
|
1474
|
+
* @description Returns cloned instance.
|
|
1475
|
+
*/
|
|
833
1476
|
clone() {
|
|
834
1477
|
return new ɵParameterExpression(this);
|
|
835
1478
|
}
|
|
@@ -854,6 +1497,12 @@ __decorate([
|
|
|
854
1497
|
__metadata("design:type", Number)
|
|
855
1498
|
], ɵParameterExpression.prototype, "dataValueType", void 0);
|
|
856
1499
|
|
|
1500
|
+
/**
|
|
1501
|
+
* @public
|
|
1502
|
+
* @abstract
|
|
1503
|
+
* @description The base class of the filter.
|
|
1504
|
+
* @extends {ɵSerializable}
|
|
1505
|
+
*/
|
|
857
1506
|
class ɵBaseFilter {
|
|
858
1507
|
/**
|
|
859
1508
|
* @internal
|
|
@@ -862,12 +1511,24 @@ class ɵBaseFilter {
|
|
|
862
1511
|
static get _instanceOfKeys() {
|
|
863
1512
|
return [this._instanceOfKey];
|
|
864
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
|
+
*/
|
|
865
1520
|
static [Symbol.hasInstance](instance) {
|
|
866
1521
|
const instanceOfKeys = instance?.constructor?.['_instanceOfKeys'] ?? [];
|
|
867
1522
|
return instanceOfKeys.includes(this._instanceOfKey);
|
|
868
1523
|
}
|
|
869
1524
|
constructor(filterType) {
|
|
1525
|
+
/**
|
|
1526
|
+
* @description Indicates that the filter is active and will be taken into account when building the query.
|
|
1527
|
+
*/
|
|
870
1528
|
this.isEnabled = true;
|
|
1529
|
+
/**
|
|
1530
|
+
* @description Drop the time for the date / time type parameters.
|
|
1531
|
+
*/
|
|
871
1532
|
this.trimDateTimeParameterToDate = false;
|
|
872
1533
|
this.filterType = filterType;
|
|
873
1534
|
}
|
|
@@ -903,6 +1564,11 @@ class ɵBaseFilter {
|
|
|
903
1564
|
*/
|
|
904
1565
|
ɵBaseFilter._instanceOfKey = 'devkit_BaseFilter';
|
|
905
1566
|
|
|
1567
|
+
/**
|
|
1568
|
+
* @public
|
|
1569
|
+
* @description Basic filter class with one condition.
|
|
1570
|
+
* @extends {ɵBaseFilter}
|
|
1571
|
+
*/
|
|
906
1572
|
class ɵSingleFilter extends ɵBaseFilter {
|
|
907
1573
|
/**
|
|
908
1574
|
* @internal
|
|
@@ -914,8 +1580,9 @@ class ɵSingleFilter extends ɵBaseFilter {
|
|
|
914
1580
|
constructor(filterType, comparisonType, leftExpression) {
|
|
915
1581
|
super(filterType);
|
|
916
1582
|
this.comparisonType = comparisonType;
|
|
917
|
-
this.leftExpression = leftExpression
|
|
1583
|
+
this.leftExpression = leftExpression?.clone();
|
|
918
1584
|
}
|
|
1585
|
+
/** {@inheritDoc ɵSerializable.toJson} */
|
|
919
1586
|
toJson() {
|
|
920
1587
|
return {
|
|
921
1588
|
...super.toJson(),
|
|
@@ -935,6 +1602,11 @@ class ɵSingleFilter extends ɵBaseFilter {
|
|
|
935
1602
|
*/
|
|
936
1603
|
ɵSingleFilter._instanceOfKey = 'devkit_SingleFilter';
|
|
937
1604
|
|
|
1605
|
+
/**
|
|
1606
|
+
* @public
|
|
1607
|
+
* @description Filter class of the "Between" type.
|
|
1608
|
+
* @extends {ɵSingleFilter}
|
|
1609
|
+
*/
|
|
938
1610
|
class ɵBetweenFilter extends ɵSingleFilter {
|
|
939
1611
|
/**
|
|
940
1612
|
* @internal
|
|
@@ -945,8 +1617,8 @@ class ɵBetweenFilter extends ɵSingleFilter {
|
|
|
945
1617
|
}
|
|
946
1618
|
constructor(leftExpression, rightLessExpression, rightGreaterExpression) {
|
|
947
1619
|
super(ɵFilterType.Between, ɵComparisonType.Between, leftExpression);
|
|
948
|
-
this.rightLessExpression = rightLessExpression
|
|
949
|
-
this.rightGreaterExpression = rightGreaterExpression
|
|
1620
|
+
this.rightLessExpression = rightLessExpression?.clone();
|
|
1621
|
+
this.rightGreaterExpression = rightGreaterExpression?.clone();
|
|
950
1622
|
}
|
|
951
1623
|
/**
|
|
952
1624
|
* Parses filter from json.
|
|
@@ -986,6 +1658,11 @@ class ɵBetweenFilter extends ɵSingleFilter {
|
|
|
986
1658
|
*/
|
|
987
1659
|
ɵBetweenFilter._instanceOfKey = 'devkit_BetweenFilter';
|
|
988
1660
|
|
|
1661
|
+
/**
|
|
1662
|
+
* @public
|
|
1663
|
+
* @description Comparison filter class.
|
|
1664
|
+
* @extends {ɵSingleFilter}
|
|
1665
|
+
*/
|
|
989
1666
|
class ɵCompareFilter extends ɵSingleFilter {
|
|
990
1667
|
/**
|
|
991
1668
|
* @internal
|
|
@@ -996,7 +1673,7 @@ class ɵCompareFilter extends ɵSingleFilter {
|
|
|
996
1673
|
}
|
|
997
1674
|
constructor(comparisonType, leftExpression, rightExpression) {
|
|
998
1675
|
super(ɵFilterType.Compare, comparisonType, leftExpression);
|
|
999
|
-
this.rightExpression = rightExpression
|
|
1676
|
+
this.rightExpression = rightExpression?.clone();
|
|
1000
1677
|
}
|
|
1001
1678
|
/**
|
|
1002
1679
|
* Parses filter from json.
|
|
@@ -1031,6 +1708,11 @@ class ɵCompareFilter extends ɵSingleFilter {
|
|
|
1031
1708
|
*/
|
|
1032
1709
|
ɵCompareFilter._instanceOfKey = 'devkit_CompareFilter';
|
|
1033
1710
|
|
|
1711
|
+
/**
|
|
1712
|
+
* @public
|
|
1713
|
+
* @description The comparison filter class [Exists according to the specified condition].
|
|
1714
|
+
* @extends {ɵSingleFilter}
|
|
1715
|
+
*/
|
|
1034
1716
|
class ɵExistsFilter extends ɵSingleFilter {
|
|
1035
1717
|
/**
|
|
1036
1718
|
* @internal
|
|
@@ -1050,15 +1732,24 @@ class ɵExistsFilter extends ɵSingleFilter {
|
|
|
1050
1732
|
*/
|
|
1051
1733
|
static fromJson(dto, filterParser, expressionParser) {
|
|
1052
1734
|
const leftExpression = expressionParser.fromJson(dto['leftExpression'], filterParser);
|
|
1053
|
-
const
|
|
1735
|
+
const subFiltersDto = dto['subFilters'];
|
|
1736
|
+
let subFilters;
|
|
1737
|
+
if (subFiltersDto) {
|
|
1738
|
+
subFilters = filterParser.fromJson(dto['subFilters']);
|
|
1739
|
+
}
|
|
1054
1740
|
return new ɵExistsFilter(leftExpression, subFilters, dto['comparisonType'], dto['isAggregative']);
|
|
1055
1741
|
}
|
|
1742
|
+
/**
|
|
1743
|
+
* @public
|
|
1744
|
+
* @description Clones instance.
|
|
1745
|
+
*/
|
|
1056
1746
|
clone() {
|
|
1057
1747
|
const filter = new ɵExistsFilter(this.leftExpression, this.subFilters, this.comparisonType, this.isAggregative);
|
|
1058
1748
|
filter.isEnabled = this.isEnabled;
|
|
1059
1749
|
filter.trimDateTimeParameterToDate = this.trimDateTimeParameterToDate;
|
|
1060
1750
|
return filter;
|
|
1061
1751
|
}
|
|
1752
|
+
/** {@inheritDoc ɵSerializable.toJson} */
|
|
1062
1753
|
toJson() {
|
|
1063
1754
|
const result = super.toJson();
|
|
1064
1755
|
if (this.subFilters) {
|
|
@@ -1079,6 +1770,11 @@ class ɵExistsFilter extends ɵSingleFilter {
|
|
|
1079
1770
|
*/
|
|
1080
1771
|
ɵExistsFilter._instanceOfKey = 'devkit_ExistsFilter';
|
|
1081
1772
|
|
|
1773
|
+
/**
|
|
1774
|
+
* @public
|
|
1775
|
+
* @description In-Filter Class
|
|
1776
|
+
* @extends {ɵSingleFilter}
|
|
1777
|
+
*/
|
|
1082
1778
|
class ɵInFilter extends ɵSingleFilter {
|
|
1083
1779
|
/**
|
|
1084
1780
|
* @internal
|
|
@@ -1089,22 +1785,24 @@ class ɵInFilter extends ɵSingleFilter {
|
|
|
1089
1785
|
}
|
|
1090
1786
|
constructor(comparisonType, leftExpression, rightExpressions) {
|
|
1091
1787
|
super(ɵFilterType.In, comparisonType, leftExpression);
|
|
1092
|
-
this.rightExpressions = rightExpressions.map((expression) => expression
|
|
1788
|
+
this.rightExpressions = rightExpressions.map((expression) => expression?.clone()) ?? [];
|
|
1093
1789
|
}
|
|
1094
1790
|
/**
|
|
1095
|
-
* Parses in filter from json.
|
|
1791
|
+
* @description Parses in filter from json.
|
|
1096
1792
|
* @public
|
|
1097
1793
|
*/
|
|
1098
1794
|
static fromJson(dto, filterParser, expressionParser) {
|
|
1099
1795
|
const dtoRightExpressions = (dto['rightExpressions'] ?? []);
|
|
1100
1796
|
return new ɵInFilter(dto['comparisonType'], expressionParser.fromJson(dto['leftExpression'], filterParser), dtoRightExpressions.map((expression) => expressionParser.fromJson(expression, filterParser)));
|
|
1101
1797
|
}
|
|
1798
|
+
/** {@inheritDoc ɵBaseFilter.clone} */
|
|
1102
1799
|
clone() {
|
|
1103
1800
|
const filter = new ɵInFilter(this.comparisonType, this.leftExpression, this.rightExpressions);
|
|
1104
1801
|
filter.isEnabled = this.isEnabled;
|
|
1105
1802
|
filter.trimDateTimeParameterToDate = this.trimDateTimeParameterToDate;
|
|
1106
1803
|
return filter;
|
|
1107
1804
|
}
|
|
1805
|
+
/** {@inheritDoc ɵSerializable.toJson} */
|
|
1108
1806
|
toJson() {
|
|
1109
1807
|
return {
|
|
1110
1808
|
...super.toJson(),
|
|
@@ -1127,6 +1825,11 @@ class ɵInFilter extends ɵSingleFilter {
|
|
|
1127
1825
|
*/
|
|
1128
1826
|
ɵInFilter._instanceOfKey = 'devkit_InFilter';
|
|
1129
1827
|
|
|
1828
|
+
/**
|
|
1829
|
+
* @public
|
|
1830
|
+
* @description IsNull filter Class
|
|
1831
|
+
* @extends {ɵSingleFilter}
|
|
1832
|
+
*/
|
|
1130
1833
|
class ɵIsNullFilter extends ɵSingleFilter {
|
|
1131
1834
|
/**
|
|
1132
1835
|
* @internal
|
|
@@ -1138,16 +1841,20 @@ class ɵIsNullFilter extends ɵSingleFilter {
|
|
|
1138
1841
|
constructor(comparisonType, leftExpression) {
|
|
1139
1842
|
super(ɵFilterType.IsNull, comparisonType, leftExpression);
|
|
1140
1843
|
}
|
|
1844
|
+
/**
|
|
1845
|
+
* @description Flag that indicates if expression is empty or not.
|
|
1846
|
+
*/
|
|
1141
1847
|
get isNull() {
|
|
1142
1848
|
return this.comparisonType === ɵComparisonType.Is_null;
|
|
1143
1849
|
}
|
|
1144
1850
|
/**
|
|
1145
|
-
* Parses isNull filter from json.
|
|
1851
|
+
* @description Parses isNull filter from json.
|
|
1146
1852
|
* @public
|
|
1147
1853
|
*/
|
|
1148
1854
|
static fromJson(dto, filterParser, expressionParser) {
|
|
1149
1855
|
return new ɵIsNullFilter(dto['comparisonType'], expressionParser.fromJson(dto['leftExpression'], filterParser));
|
|
1150
1856
|
}
|
|
1857
|
+
/** {@inheritDoc ɵBaseFilter.clone} */
|
|
1151
1858
|
clone() {
|
|
1152
1859
|
const filter = new ɵIsNullFilter(this.comparisonType, this.leftExpression);
|
|
1153
1860
|
filter.isEnabled = this.isEnabled;
|
|
@@ -1167,17 +1874,17 @@ __decorate([
|
|
|
1167
1874
|
], ɵIsNullFilter.prototype, "isNull", null);
|
|
1168
1875
|
|
|
1169
1876
|
/**
|
|
1170
|
-
* Empty Guid constant.
|
|
1171
1877
|
* @public
|
|
1878
|
+
* @description Empty Guid constant.
|
|
1172
1879
|
*/
|
|
1173
1880
|
const ɵEMPTY_GUID = '00000000-0000-0000-0000-000000000000';
|
|
1174
1881
|
/**
|
|
1175
|
-
* Regular expression for Guid validation.
|
|
1882
|
+
* @description Regular expression for Guid validation.
|
|
1176
1883
|
* @public
|
|
1177
1884
|
*/
|
|
1178
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');
|
|
1179
1886
|
/**
|
|
1180
|
-
* Generates guid part.
|
|
1887
|
+
* @description Generates guid part.
|
|
1181
1888
|
* @param length Part length.
|
|
1182
1889
|
* @public
|
|
1183
1890
|
*/
|
|
@@ -1190,7 +1897,7 @@ function generateGuidPart(length) {
|
|
|
1190
1897
|
return out;
|
|
1191
1898
|
}
|
|
1192
1899
|
/**
|
|
1193
|
-
* Generates new Guid.
|
|
1900
|
+
* @description Generates new Guid.
|
|
1194
1901
|
* @public
|
|
1195
1902
|
*/
|
|
1196
1903
|
function ɵgenerateGuid() {
|
|
@@ -1203,7 +1910,7 @@ function ɵgenerateGuid() {
|
|
|
1203
1910
|
].join('-');
|
|
1204
1911
|
}
|
|
1205
1912
|
/**
|
|
1206
|
-
* Checks if value is Guid.
|
|
1913
|
+
* @description Checks if value is Guid.
|
|
1207
1914
|
* @param value Value for check.
|
|
1208
1915
|
* @public
|
|
1209
1916
|
*/
|
|
@@ -1211,7 +1918,7 @@ function ɵisGuid(value) {
|
|
|
1211
1918
|
return Boolean(value) && validator.test(value);
|
|
1212
1919
|
}
|
|
1213
1920
|
/**
|
|
1214
|
-
* Checks if Guid is empty value or equal to EMPTY_GUID.
|
|
1921
|
+
* @description Checks if Guid is empty value or equal to EMPTY_GUID.
|
|
1215
1922
|
* @param guid Guid for check.
|
|
1216
1923
|
* @public
|
|
1217
1924
|
*/
|
|
@@ -1221,6 +1928,7 @@ function ɵisEmptyGuid(guid) {
|
|
|
1221
1928
|
|
|
1222
1929
|
/**
|
|
1223
1930
|
* @public
|
|
1931
|
+
* @description An exception thrown when next handler already specified.
|
|
1224
1932
|
*/
|
|
1225
1933
|
class ɵNextHandlerAlreadySpecifiedException extends Error {
|
|
1226
1934
|
constructor() {
|
|
@@ -1228,6 +1936,11 @@ class ɵNextHandlerAlreadySpecifiedException extends Error {
|
|
|
1228
1936
|
}
|
|
1229
1937
|
}
|
|
1230
1938
|
|
|
1939
|
+
/**
|
|
1940
|
+
* @public
|
|
1941
|
+
* @description The exception thrown when trying to pass an empty or null argument.
|
|
1942
|
+
* @extends {Error}
|
|
1943
|
+
*/
|
|
1231
1944
|
class ɵArgumentEmptyException extends Error {
|
|
1232
1945
|
// region Constructors: Public
|
|
1233
1946
|
constructor(argumentName) {
|
|
@@ -1235,6 +1948,11 @@ class ɵArgumentEmptyException extends Error {
|
|
|
1235
1948
|
}
|
|
1236
1949
|
}
|
|
1237
1950
|
|
|
1951
|
+
/**
|
|
1952
|
+
* @public
|
|
1953
|
+
* @description The exception thrown when trying to pass argument that not in range.
|
|
1954
|
+
* @extends {Error}
|
|
1955
|
+
*/
|
|
1238
1956
|
class ɵArgumentOutOfRangeException extends Error {
|
|
1239
1957
|
// region Constructors: Public
|
|
1240
1958
|
constructor(argumentName) {
|
|
@@ -1242,6 +1960,11 @@ class ɵArgumentOutOfRangeException extends Error {
|
|
|
1242
1960
|
}
|
|
1243
1961
|
}
|
|
1244
1962
|
|
|
1963
|
+
/**
|
|
1964
|
+
* @public
|
|
1965
|
+
* @description An exception thrown when trying to retrieve a collection item and it not exists.
|
|
1966
|
+
* @extends {Error}
|
|
1967
|
+
*/
|
|
1245
1968
|
class ɵItemNotFoundException extends Error {
|
|
1246
1969
|
// region Constructors: Public
|
|
1247
1970
|
constructor(key) {
|
|
@@ -1249,19 +1972,41 @@ class ɵItemNotFoundException extends Error {
|
|
|
1249
1972
|
}
|
|
1250
1973
|
}
|
|
1251
1974
|
|
|
1975
|
+
/**
|
|
1976
|
+
* @public
|
|
1977
|
+
* @description Utilities class with various validation methods.
|
|
1978
|
+
*/
|
|
1252
1979
|
class ɵValidationUtilities {
|
|
1253
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
|
+
*/
|
|
1254
1987
|
static checkArgumentEmpty(argumentName, argumentValue) {
|
|
1255
1988
|
if (argumentValue === undefined || argumentValue === null) {
|
|
1256
1989
|
throw new ɵArgumentEmptyException(argumentName);
|
|
1257
1990
|
}
|
|
1258
1991
|
}
|
|
1992
|
+
/**
|
|
1993
|
+
* @public
|
|
1994
|
+
* @description Checks if array is empty.
|
|
1995
|
+
* @param argumentName - Argument name.
|
|
1996
|
+
* @param argumentValue - Value of argument.
|
|
1997
|
+
*/
|
|
1259
1998
|
static checkArrayEmpty(argumentName, argumentValue) {
|
|
1260
1999
|
ɵValidationUtilities.checkArgumentEmpty(argumentName, argumentValue);
|
|
1261
2000
|
if (argumentValue.length === 0) {
|
|
1262
2001
|
throw new ɵArgumentEmptyException(argumentName);
|
|
1263
2002
|
}
|
|
1264
2003
|
}
|
|
2004
|
+
/**
|
|
2005
|
+
* @public
|
|
2006
|
+
* @description Checks if string is empty.
|
|
2007
|
+
* @param argumentName - Argument name.
|
|
2008
|
+
* @param argumentValue - Value of argument.
|
|
2009
|
+
*/
|
|
1265
2010
|
static checkStringIsNotEmpty(argumentName, argumentValue) {
|
|
1266
2011
|
this.checkArgumentEmpty(argumentName, argumentValue);
|
|
1267
2012
|
if (argumentValue === '') {
|
|
@@ -1269,6 +2014,13 @@ class ɵValidationUtilities {
|
|
|
1269
2014
|
}
|
|
1270
2015
|
return argumentValue;
|
|
1271
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
|
+
*/
|
|
1272
2024
|
static checkArgumentOutOfRange(argumentName, argumentValue, range) {
|
|
1273
2025
|
if (range.begin && argumentValue < range.begin) {
|
|
1274
2026
|
throw new ɵArgumentOutOfRangeException(argumentName);
|
|
@@ -1277,8 +2029,19 @@ class ɵValidationUtilities {
|
|
|
1277
2029
|
throw new ɵArgumentOutOfRangeException(argumentName);
|
|
1278
2030
|
}
|
|
1279
2031
|
}
|
|
2032
|
+
static checkEnumOutOfRange(argumentName, argumentValue, range) {
|
|
2033
|
+
if (!range || !Object.values(range).includes(argumentValue)) {
|
|
2034
|
+
throw new ɵArgumentOutOfRangeException(argumentName);
|
|
2035
|
+
}
|
|
2036
|
+
}
|
|
1280
2037
|
}
|
|
1281
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
|
+
*/
|
|
1282
2045
|
class ɵFilterGroup extends ɵBaseFilter {
|
|
1283
2046
|
/**
|
|
1284
2047
|
* @internal
|
|
@@ -1287,6 +2050,10 @@ class ɵFilterGroup extends ɵBaseFilter {
|
|
|
1287
2050
|
static get _instanceOfKeys() {
|
|
1288
2051
|
return [...ɵBaseFilter._instanceOfKeys, this._instanceOfKey];
|
|
1289
2052
|
}
|
|
2053
|
+
/**
|
|
2054
|
+
* @public
|
|
2055
|
+
* @description Return collecion of deserialized filters.
|
|
2056
|
+
*/
|
|
1290
2057
|
get items() {
|
|
1291
2058
|
const result = {};
|
|
1292
2059
|
this.filters.forEach((filter, key) => {
|
|
@@ -1296,13 +2063,17 @@ class ɵFilterGroup extends ɵBaseFilter {
|
|
|
1296
2063
|
}
|
|
1297
2064
|
constructor(logicalOperation = ɵLogicalOperatorType.And, rootSchemaName) {
|
|
1298
2065
|
super(ɵFilterType.FilterGroup);
|
|
2066
|
+
/**
|
|
2067
|
+
* @public
|
|
2068
|
+
* @description Collection of child filters.
|
|
2069
|
+
*/
|
|
1299
2070
|
this.filters = new Map();
|
|
1300
2071
|
this.logicalOperation = logicalOperation;
|
|
1301
2072
|
this.rootSchemaName = rootSchemaName;
|
|
1302
2073
|
}
|
|
1303
2074
|
/**
|
|
1304
|
-
* Parses filter group from json.
|
|
1305
2075
|
* @public
|
|
2076
|
+
* @description Parses filter group from json.
|
|
1306
2077
|
*/
|
|
1307
2078
|
static fromJson(dto, filterParser) {
|
|
1308
2079
|
const logicalOperation = dto['logicalOperation'];
|
|
@@ -1312,10 +2083,7 @@ class ɵFilterGroup extends ɵBaseFilter {
|
|
|
1312
2083
|
});
|
|
1313
2084
|
return group;
|
|
1314
2085
|
}
|
|
1315
|
-
/**
|
|
1316
|
-
* Converts instance to json object.
|
|
1317
|
-
* @public
|
|
1318
|
-
*/
|
|
2086
|
+
/** {@inheritDoc ɵSerializable.toJson} */
|
|
1319
2087
|
toJson() {
|
|
1320
2088
|
const result = {};
|
|
1321
2089
|
result['filterType'] = this.filterType;
|
|
@@ -1334,7 +2102,8 @@ class ɵFilterGroup extends ɵBaseFilter {
|
|
|
1334
2102
|
}));
|
|
1335
2103
|
}
|
|
1336
2104
|
/**
|
|
1337
|
-
*
|
|
2105
|
+
* @public
|
|
2106
|
+
* @description Returns filter item by index.
|
|
1338
2107
|
* @param index Item index.
|
|
1339
2108
|
* @returns Filter.
|
|
1340
2109
|
*/
|
|
@@ -1342,7 +2111,8 @@ class ɵFilterGroup extends ɵBaseFilter {
|
|
|
1342
2111
|
return this.items[Object.keys(this.items)[index]];
|
|
1343
2112
|
}
|
|
1344
2113
|
/**
|
|
1345
|
-
*
|
|
2114
|
+
* @public
|
|
2115
|
+
* @description Creates and adds compare filter by value.
|
|
1346
2116
|
* @param comparisonType Comparison type.
|
|
1347
2117
|
* @param columnPath Column path.
|
|
1348
2118
|
* @param parameterValue Parameter value.
|
|
@@ -1355,7 +2125,8 @@ class ɵFilterGroup extends ɵBaseFilter {
|
|
|
1355
2125
|
this.add(filter, filterKey);
|
|
1356
2126
|
}
|
|
1357
2127
|
/**
|
|
1358
|
-
*
|
|
2128
|
+
* @public
|
|
2129
|
+
* @description Creates and adds in filter by values.
|
|
1359
2130
|
* @param comparisonType Comparison type.
|
|
1360
2131
|
* @param columnPath Column path.
|
|
1361
2132
|
* @param parameterValues Parameter values.
|
|
@@ -1368,7 +2139,8 @@ class ɵFilterGroup extends ɵBaseFilter {
|
|
|
1368
2139
|
this.add(filter, filterKey);
|
|
1369
2140
|
}
|
|
1370
2141
|
/**
|
|
1371
|
-
*
|
|
2142
|
+
* @public
|
|
2143
|
+
* @description Creates and adds in filter for primary column.
|
|
1372
2144
|
* @param primaryColumnValues Primary column values.
|
|
1373
2145
|
* @param filterKey Filter key.
|
|
1374
2146
|
*/
|
|
@@ -1378,13 +2150,20 @@ class ɵFilterGroup extends ɵBaseFilter {
|
|
|
1378
2150
|
const filter = new ɵInFilter(ɵComparisonType.Equal, leftExpression, expressions);
|
|
1379
2151
|
this.add(filter, filterKey);
|
|
1380
2152
|
}
|
|
2153
|
+
/**
|
|
2154
|
+
* @public
|
|
2155
|
+
* @description Creates and adds null filter.
|
|
2156
|
+
* @param columnPath Path of column.
|
|
2157
|
+
* @param filterKey Filter key.
|
|
2158
|
+
*/
|
|
1381
2159
|
addSchemaColumnIsNullFilter(columnPath, filterKey) {
|
|
1382
2160
|
const leftExpression = new ɵColumnExpression({ columnPath });
|
|
1383
2161
|
const filter = new ɵIsNullFilter(ɵComparisonType.Is_null, leftExpression);
|
|
1384
2162
|
this.add(filter, filterKey);
|
|
1385
2163
|
}
|
|
1386
2164
|
/**
|
|
1387
|
-
*
|
|
2165
|
+
* @public
|
|
2166
|
+
* @description Creates and adds not null filter.
|
|
1388
2167
|
* @param columnPath Column path.
|
|
1389
2168
|
* @param filterKey Filter key.
|
|
1390
2169
|
*/
|
|
@@ -1394,7 +2173,8 @@ class ɵFilterGroup extends ɵBaseFilter {
|
|
|
1394
2173
|
this.add(filter, filterKey);
|
|
1395
2174
|
}
|
|
1396
2175
|
/**
|
|
1397
|
-
*
|
|
2176
|
+
* @public
|
|
2177
|
+
* @description Creates and adds filter between less value and greater value.
|
|
1398
2178
|
* @param columnPath Column path.
|
|
1399
2179
|
* @param lessParamValue Less parameter value.
|
|
1400
2180
|
* @param greaterParamValue Greater parameter value.
|
|
@@ -1407,21 +2187,45 @@ class ɵFilterGroup extends ɵBaseFilter {
|
|
|
1407
2187
|
const filter = new ɵBetweenFilter(leftExpression, rightLessExpression, rightGreaterExpression);
|
|
1408
2188
|
this.add(filter, filterKey);
|
|
1409
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
|
+
*/
|
|
1410
2197
|
addExistsFilter(columnPath, subFilters, filterKey) {
|
|
1411
2198
|
const leftExpression = new ɵColumnExpression({ columnPath });
|
|
1412
2199
|
const filter = new ɵExistsFilter(leftExpression, subFilters);
|
|
1413
2200
|
this.add(filter, filterKey);
|
|
1414
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
|
+
*/
|
|
1415
2209
|
addNotExistsFilter(columnPath, subFilters, filterKey) {
|
|
1416
2210
|
const leftExpression = new ɵColumnExpression({ columnPath });
|
|
1417
2211
|
const filter = new ɵExistsFilter(leftExpression, subFilters, ɵComparisonType.Not_exists);
|
|
1418
2212
|
this.add(filter, filterKey);
|
|
1419
2213
|
}
|
|
2214
|
+
/**
|
|
2215
|
+
* @public
|
|
2216
|
+
* @description Adds filter.
|
|
2217
|
+
* @param filter Instance of filter.
|
|
2218
|
+
* @param filterKey Filter key.
|
|
2219
|
+
*/
|
|
1420
2220
|
add(filter, filterKey) {
|
|
1421
2221
|
ɵValidationUtilities.checkArgumentEmpty('filter', filter);
|
|
1422
2222
|
const key = filterKey || ɵgenerateGuid();
|
|
1423
2223
|
this.filters.set(key, filter);
|
|
1424
2224
|
}
|
|
2225
|
+
/**
|
|
2226
|
+
* @public
|
|
2227
|
+
* @description Clones instance.
|
|
2228
|
+
*/
|
|
1425
2229
|
clone() {
|
|
1426
2230
|
const filterGroup = new ɵFilterGroup(this.logicalOperation, this.rootSchemaName);
|
|
1427
2231
|
this.filters.forEach((filter, filterKey) => {
|
|
@@ -1462,6 +2266,11 @@ __decorate([
|
|
|
1462
2266
|
__metadata("design:paramtypes", [])
|
|
1463
2267
|
], ɵFilterGroup.prototype, "items", null);
|
|
1464
2268
|
|
|
2269
|
+
/**
|
|
2270
|
+
* @public
|
|
2271
|
+
* @description The class that defines the sub query expression.
|
|
2272
|
+
* @extends {ɵBaseExpression}
|
|
2273
|
+
*/
|
|
1465
2274
|
class ɵSubQueryExpression extends ɵBaseExpression {
|
|
1466
2275
|
/**
|
|
1467
2276
|
* @internal
|
|
@@ -1472,6 +2281,9 @@ class ɵSubQueryExpression extends ɵBaseExpression {
|
|
|
1472
2281
|
}
|
|
1473
2282
|
constructor(config) {
|
|
1474
2283
|
super(config);
|
|
2284
|
+
/**
|
|
2285
|
+
* @description Type of expression.
|
|
2286
|
+
*/
|
|
1475
2287
|
this.expressionType = ɵExpressionType.SubQuery;
|
|
1476
2288
|
this.columnPath = config?.columnPath;
|
|
1477
2289
|
const subFilters = config?.subFilters;
|
|
@@ -1503,9 +2315,11 @@ class ɵSubQueryExpression extends ɵBaseExpression {
|
|
|
1503
2315
|
});
|
|
1504
2316
|
return expression;
|
|
1505
2317
|
}
|
|
2318
|
+
/** {@inheritDoc ɵBaseExpression.clone} */
|
|
1506
2319
|
clone() {
|
|
1507
2320
|
return new ɵSubQueryExpression(this);
|
|
1508
2321
|
}
|
|
2322
|
+
/** {@inheritDoc ɵBaseExpression.toJson} */
|
|
1509
2323
|
toJson() {
|
|
1510
2324
|
const result = super.toJson();
|
|
1511
2325
|
if (this.subFilters) {
|
|
@@ -1531,6 +2345,11 @@ class ɵSubQueryExpression extends ɵBaseExpression {
|
|
|
1531
2345
|
*/
|
|
1532
2346
|
ɵSubQueryExpression._instanceOfKey = 'devkit_SubQueryExpression';
|
|
1533
2347
|
|
|
2348
|
+
/**
|
|
2349
|
+
* @public
|
|
2350
|
+
* @description A class that describes expression with aggregation sub query.
|
|
2351
|
+
* @extends {ɵSubQueryExpression}
|
|
2352
|
+
*/
|
|
1534
2353
|
class ɵAggregationSubQueryExpression extends ɵSubQueryExpression {
|
|
1535
2354
|
/**
|
|
1536
2355
|
* @internal
|
|
@@ -1557,6 +2376,7 @@ class ɵAggregationSubQueryExpression extends ɵSubQueryExpression {
|
|
|
1557
2376
|
});
|
|
1558
2377
|
return expression;
|
|
1559
2378
|
}
|
|
2379
|
+
/** {@inheritDoc ɵBaseExpression.clone} */
|
|
1560
2380
|
clone() {
|
|
1561
2381
|
return new ɵAggregationSubQueryExpression(this);
|
|
1562
2382
|
}
|
|
@@ -1568,8 +2388,8 @@ class ɵAggregationSubQueryExpression extends ɵSubQueryExpression {
|
|
|
1568
2388
|
ɵAggregationSubQueryExpression._instanceOfKey = 'devkit_AggregationSubQueryExpression';
|
|
1569
2389
|
|
|
1570
2390
|
/**
|
|
1571
|
-
* Function expression resolver.
|
|
1572
2391
|
* @public
|
|
2392
|
+
* @description Function expression resolver.
|
|
1573
2393
|
*/
|
|
1574
2394
|
class FunctionExpressionResolver {
|
|
1575
2395
|
static resolve(dto) {
|
|
@@ -1585,10 +2405,17 @@ class FunctionExpressionResolver {
|
|
|
1585
2405
|
}
|
|
1586
2406
|
}
|
|
1587
2407
|
/**
|
|
1588
|
-
* Expression resolver.
|
|
2408
|
+
* @description Expression resolver.
|
|
1589
2409
|
* @public
|
|
1590
2410
|
*/
|
|
1591
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
|
+
*/
|
|
1592
2419
|
static resolve(expressionType, dto) {
|
|
1593
2420
|
const expressionClass = {
|
|
1594
2421
|
[ɵExpressionType.SchemaColumn]: ɵColumnExpression,
|
|
@@ -1602,13 +2429,14 @@ class ɵExpressionResolver {
|
|
|
1602
2429
|
}
|
|
1603
2430
|
|
|
1604
2431
|
/**
|
|
1605
|
-
* Expression parser.
|
|
1606
2432
|
* @public
|
|
2433
|
+
* @description Expression parser.
|
|
2434
|
+
* @extends {ɵBaseExpressionParser}
|
|
1607
2435
|
*/
|
|
1608
2436
|
class ɵExpressionParser extends ɵBaseExpressionParser {
|
|
1609
2437
|
/**
|
|
1610
|
-
* Parses expression from json.
|
|
1611
2438
|
* @public
|
|
2439
|
+
* @description Parses expression from json.
|
|
1612
2440
|
*/
|
|
1613
2441
|
static fromJson(dto, filterParser) {
|
|
1614
2442
|
const expressionType = dto['expressionType'];
|
|
@@ -1616,6 +2444,9 @@ class ɵExpressionParser extends ɵBaseExpressionParser {
|
|
|
1616
2444
|
}
|
|
1617
2445
|
}
|
|
1618
2446
|
|
|
2447
|
+
/**
|
|
2448
|
+
* @internal
|
|
2449
|
+
*/
|
|
1619
2450
|
const ɵEXPRESSION_TYPE_MOCK = -1;
|
|
1620
2451
|
class ɵExpressionMock extends ɵBaseExpression {
|
|
1621
2452
|
/**
|
|
@@ -1680,6 +2511,9 @@ class ɵFilterMock extends ɵBaseFilter {
|
|
|
1680
2511
|
*/
|
|
1681
2512
|
ɵFilterMock._instanceOfKey = 'devkit_FilterMock';
|
|
1682
2513
|
|
|
2514
|
+
/**
|
|
2515
|
+
* @internal
|
|
2516
|
+
*/
|
|
1683
2517
|
const ɵparserMock = {
|
|
1684
2518
|
fromJson: (data) => ({
|
|
1685
2519
|
...data,
|
|
@@ -1689,20 +2523,31 @@ const ɵparserMock = {
|
|
|
1689
2523
|
};
|
|
1690
2524
|
|
|
1691
2525
|
/**
|
|
1692
|
-
* Filter parser interface
|
|
1693
2526
|
* @public
|
|
2527
|
+
* @description Filter parser interface.
|
|
1694
2528
|
*/
|
|
1695
2529
|
class ɵBaseFilterParser {
|
|
2530
|
+
/**
|
|
2531
|
+
* @description Creates filter from JSON.
|
|
2532
|
+
* @param dto - Serialized filter.
|
|
2533
|
+
* @return Instance of filter.
|
|
2534
|
+
*/
|
|
1696
2535
|
static fromJson(dto) {
|
|
1697
2536
|
throw new Error('not implemented');
|
|
1698
2537
|
}
|
|
1699
2538
|
}
|
|
1700
2539
|
|
|
1701
2540
|
/**
|
|
1702
|
-
* Filter resolver.
|
|
1703
2541
|
* @public
|
|
2542
|
+
* @description Filter resolver.
|
|
1704
2543
|
*/
|
|
1705
2544
|
class ɵFilterResolver {
|
|
2545
|
+
/**
|
|
2546
|
+
* @public
|
|
2547
|
+
* @description Resolves class of filter.
|
|
2548
|
+
* @param filterType - Type of filter.
|
|
2549
|
+
* @return Class of filter.
|
|
2550
|
+
*/
|
|
1706
2551
|
static resolve(filterType) {
|
|
1707
2552
|
const filterClass = {
|
|
1708
2553
|
[ɵFilterType.Compare]: ɵCompareFilter,
|
|
@@ -1717,10 +2562,14 @@ class ɵFilterResolver {
|
|
|
1717
2562
|
}
|
|
1718
2563
|
|
|
1719
2564
|
/**
|
|
1720
|
-
* Filter parser.
|
|
1721
2565
|
* @public
|
|
2566
|
+
* @description Filter parser.
|
|
1722
2567
|
*/
|
|
1723
2568
|
class ɵFilterParser extends ɵBaseFilterParser {
|
|
2569
|
+
/**
|
|
2570
|
+
* @description Creates filter from JSON.
|
|
2571
|
+
* @param dto - Serialized filter.
|
|
2572
|
+
*/
|
|
1724
2573
|
static fromJson(dto) {
|
|
1725
2574
|
const filterType = dto['filterType'];
|
|
1726
2575
|
const isEnabled = dto['isEnabled'];
|
|
@@ -1732,10 +2581,16 @@ class ɵFilterParser extends ɵBaseFilterParser {
|
|
|
1732
2581
|
}
|
|
1733
2582
|
}
|
|
1734
2583
|
|
|
2584
|
+
/**
|
|
2585
|
+
* @internal
|
|
2586
|
+
*/
|
|
1735
2587
|
const ɵDEFAULT_FILTER_PLAIN_OBJ = {
|
|
1736
2588
|
isEnabled: true,
|
|
1737
2589
|
trimDateTimeParameterToDate: false,
|
|
1738
2590
|
};
|
|
2591
|
+
/**
|
|
2592
|
+
* @internal
|
|
2593
|
+
*/
|
|
1739
2594
|
function ɵgetFilterPlainObj(filterPlainObj) {
|
|
1740
2595
|
return {
|
|
1741
2596
|
...ɵDEFAULT_FILTER_PLAIN_OBJ,
|
|
@@ -1743,10 +2598,24 @@ function ɵgetFilterPlainObj(filterPlainObj) {
|
|
|
1743
2598
|
};
|
|
1744
2599
|
}
|
|
1745
2600
|
|
|
2601
|
+
/**
|
|
2602
|
+
* @public
|
|
2603
|
+
* @abstract
|
|
2604
|
+
* @classdesc Class contains info about column for query.
|
|
2605
|
+
*/
|
|
1746
2606
|
class ɵBaseQueryColumn {
|
|
1747
2607
|
constructor(expression) {
|
|
2608
|
+
/**
|
|
2609
|
+
* @description Order direction.
|
|
2610
|
+
*/
|
|
1748
2611
|
this.orderDirection = ɵOrderDirection.None;
|
|
2612
|
+
/**
|
|
2613
|
+
* @description Column order position.
|
|
2614
|
+
*/
|
|
1749
2615
|
this.orderPosition = -1;
|
|
2616
|
+
/**
|
|
2617
|
+
* @description If true then column data will be present in the result set.
|
|
2618
|
+
*/
|
|
1750
2619
|
this.isVisible = true;
|
|
1751
2620
|
this.expression = expression;
|
|
1752
2621
|
}
|
|
@@ -1792,6 +2661,11 @@ class ɵBaseQueryColumn {
|
|
|
1792
2661
|
}
|
|
1793
2662
|
}
|
|
1794
2663
|
|
|
2664
|
+
/**
|
|
2665
|
+
* @public
|
|
2666
|
+
* @classdesc Class contains info about column with arithmetic operation.
|
|
2667
|
+
* @extends {ɵBaseQueryColumn}
|
|
2668
|
+
*/
|
|
1795
2669
|
class ɵArithmeticQueryColumn extends ɵBaseQueryColumn {
|
|
1796
2670
|
// region Constructors: Public
|
|
1797
2671
|
constructor(arithmeticOperation, leftArithmeticOperand, rightArithmeticOperand) {
|
|
@@ -1799,6 +2673,11 @@ class ɵArithmeticQueryColumn extends ɵBaseQueryColumn {
|
|
|
1799
2673
|
}
|
|
1800
2674
|
}
|
|
1801
2675
|
|
|
2676
|
+
/**
|
|
2677
|
+
* @public
|
|
2678
|
+
* @classdesc Class contains info about common column from entity.
|
|
2679
|
+
* @extends {ɵBaseQueryColumn}
|
|
2680
|
+
*/
|
|
1802
2681
|
class ɵEntityQueryColumn extends ɵBaseQueryColumn {
|
|
1803
2682
|
// region Constructors: Public
|
|
1804
2683
|
constructor(columnPath) {
|
|
@@ -1806,6 +2685,11 @@ class ɵEntityQueryColumn extends ɵBaseQueryColumn {
|
|
|
1806
2685
|
}
|
|
1807
2686
|
}
|
|
1808
2687
|
|
|
2688
|
+
/**
|
|
2689
|
+
* @public
|
|
2690
|
+
* @classdesc Class contains info about column that contains parameter.
|
|
2691
|
+
* @extends {ɵBaseQueryColumn}
|
|
2692
|
+
*/
|
|
1809
2693
|
class ɵParameterQueryColumn extends ɵBaseQueryColumn {
|
|
1810
2694
|
// region Constructors: Public
|
|
1811
2695
|
constructor(value, dataValueType) {
|
|
@@ -1813,6 +2697,11 @@ class ɵParameterQueryColumn extends ɵBaseQueryColumn {
|
|
|
1813
2697
|
}
|
|
1814
2698
|
}
|
|
1815
2699
|
|
|
2700
|
+
/**
|
|
2701
|
+
* @public
|
|
2702
|
+
* @classdesc Class contains info about column with sub query and aggregation.
|
|
2703
|
+
* @extends {ɵBaseQueryColumn}
|
|
2704
|
+
*/
|
|
1816
2705
|
class ɵAggregationSubQueryColumn extends ɵBaseQueryColumn {
|
|
1817
2706
|
// region Constructors: Public
|
|
1818
2707
|
constructor(columnPath, aggregationType, subFilters, subOrderDirection, subOrderColumn) {
|
|
@@ -1826,6 +2715,11 @@ class ɵAggregationSubQueryColumn extends ɵBaseQueryColumn {
|
|
|
1826
2715
|
}
|
|
1827
2716
|
}
|
|
1828
2717
|
|
|
2718
|
+
/**
|
|
2719
|
+
* @public
|
|
2720
|
+
* @classdesc Class contains info about column with sub query.
|
|
2721
|
+
* @extends {ɵBaseQueryColumn}
|
|
2722
|
+
*/
|
|
1829
2723
|
class ɵSubQueryColumn extends ɵBaseQueryColumn {
|
|
1830
2724
|
// region Constructors: Public
|
|
1831
2725
|
constructor(columnPath, subFilters) {
|
|
@@ -1833,6 +2727,11 @@ class ɵSubQueryColumn extends ɵBaseQueryColumn {
|
|
|
1833
2727
|
}
|
|
1834
2728
|
}
|
|
1835
2729
|
|
|
2730
|
+
/**
|
|
2731
|
+
* @public
|
|
2732
|
+
* @classdesc Class contains info about column with aggregation function.
|
|
2733
|
+
* @extends {ɵBaseQueryColumn}
|
|
2734
|
+
*/
|
|
1836
2735
|
class ɵAggregationFunctionColumn extends ɵBaseQueryColumn {
|
|
1837
2736
|
// region Constructors: Public
|
|
1838
2737
|
constructor(aggregationType, aggregationEvalType, functionArgument) {
|
|
@@ -1844,6 +2743,11 @@ class ɵAggregationFunctionColumn extends ɵBaseQueryColumn {
|
|
|
1844
2743
|
}
|
|
1845
2744
|
}
|
|
1846
2745
|
|
|
2746
|
+
/**
|
|
2747
|
+
* @public
|
|
2748
|
+
* @classdesc Class contains info about column with date part.
|
|
2749
|
+
* @extends {ɵBaseQueryColumn}
|
|
2750
|
+
*/
|
|
1847
2751
|
class ɵDatePartFunctionColumn extends ɵBaseQueryColumn {
|
|
1848
2752
|
// region Constructors: Public
|
|
1849
2753
|
constructor(datePartType, functionArgument) {
|
|
@@ -1854,11 +2758,19 @@ class ɵDatePartFunctionColumn extends ɵBaseQueryColumn {
|
|
|
1854
2758
|
}
|
|
1855
2759
|
// endregion
|
|
1856
2760
|
// region Properties: Public
|
|
2761
|
+
/**
|
|
2762
|
+
* @description Part of date.
|
|
2763
|
+
*/
|
|
1857
2764
|
get datePartType() {
|
|
1858
2765
|
return this.expression?.datePartType;
|
|
1859
2766
|
}
|
|
1860
2767
|
}
|
|
1861
2768
|
|
|
2769
|
+
/**
|
|
2770
|
+
* @public
|
|
2771
|
+
* @classdesc Class contains info about column with length function.
|
|
2772
|
+
* @extends {ɵBaseQueryColumn}
|
|
2773
|
+
*/
|
|
1862
2774
|
class ɵLengthFunctionColumn extends ɵBaseQueryColumn {
|
|
1863
2775
|
// region Constructors: Public
|
|
1864
2776
|
constructor(functionArgument) {
|
|
@@ -1866,6 +2778,11 @@ class ɵLengthFunctionColumn extends ɵBaseQueryColumn {
|
|
|
1866
2778
|
}
|
|
1867
2779
|
}
|
|
1868
2780
|
|
|
2781
|
+
/**
|
|
2782
|
+
* @public
|
|
2783
|
+
* @classdesc Class contains info about column with macros function.
|
|
2784
|
+
* @extends {ɵBaseQueryColumn}
|
|
2785
|
+
*/
|
|
1869
2786
|
class ɵMacrosFunctionColumn extends ɵBaseQueryColumn {
|
|
1870
2787
|
// region Constructors: Public
|
|
1871
2788
|
constructor(macrosType) {
|
|
@@ -1873,6 +2790,11 @@ class ɵMacrosFunctionColumn extends ɵBaseQueryColumn {
|
|
|
1873
2790
|
}
|
|
1874
2791
|
}
|
|
1875
2792
|
|
|
2793
|
+
/**
|
|
2794
|
+
* @public
|
|
2795
|
+
* @classdesc Class contains info about column with window function.
|
|
2796
|
+
* @extends {ɵBaseQueryColumn}
|
|
2797
|
+
*/
|
|
1876
2798
|
class ɵWindowFunctionColumn extends ɵBaseQueryColumn {
|
|
1877
2799
|
// region Constructors: Public
|
|
1878
2800
|
constructor(functionArgument) {
|
|
@@ -1880,11 +2802,17 @@ class ɵWindowFunctionColumn extends ɵBaseQueryColumn {
|
|
|
1880
2802
|
}
|
|
1881
2803
|
}
|
|
1882
2804
|
|
|
2805
|
+
/**
|
|
2806
|
+
* @internal
|
|
2807
|
+
*/
|
|
1883
2808
|
const ɵDEFAULT_COLUMN_PLAIN_OBJ = {
|
|
1884
2809
|
isVisible: true,
|
|
1885
2810
|
orderPosition: -1,
|
|
1886
2811
|
orderDirection: ɵOrderDirection.None,
|
|
1887
2812
|
};
|
|
2813
|
+
/**
|
|
2814
|
+
* @internal
|
|
2815
|
+
*/
|
|
1888
2816
|
function ɵgetColumnPlainObj(expressionPlainObj) {
|
|
1889
2817
|
return {
|
|
1890
2818
|
...ɵDEFAULT_COLUMN_PLAIN_OBJ,
|
|
@@ -1894,6 +2822,7 @@ function ɵgetColumnPlainObj(expressionPlainObj) {
|
|
|
1894
2822
|
|
|
1895
2823
|
/**
|
|
1896
2824
|
* @public
|
|
2825
|
+
* @description The base class of the data request. Implements {@link ɵMetadataProvider}
|
|
1897
2826
|
*/
|
|
1898
2827
|
class ɵBaseQuery {
|
|
1899
2828
|
// region Constructors: Protected
|
|
@@ -1905,6 +2834,7 @@ class ɵBaseQuery {
|
|
|
1905
2834
|
}
|
|
1906
2835
|
// endregion
|
|
1907
2836
|
// region Methods: Public
|
|
2837
|
+
/** {@inheritDoc ɵMetadataProvider.getMetadata} */
|
|
1908
2838
|
getMetadata() {
|
|
1909
2839
|
return classToPlain(this, { exposeUnsetFields: false, excludePrefixes: ['_'] });
|
|
1910
2840
|
}
|
|
@@ -1912,15 +2842,25 @@ class ɵBaseQuery {
|
|
|
1912
2842
|
|
|
1913
2843
|
/**
|
|
1914
2844
|
* @public
|
|
2845
|
+
* @description The base class of the filtered data request.
|
|
2846
|
+
* @extends {ɵBaseQuery}
|
|
1915
2847
|
*/
|
|
1916
2848
|
class ɵBaseFilterableQuery extends ɵBaseQuery {
|
|
1917
2849
|
constructor(operationType, rootSchemaName) {
|
|
1918
2850
|
super(operationType, rootSchemaName);
|
|
2851
|
+
/**
|
|
2852
|
+
* @description Collection of filters.
|
|
2853
|
+
*/
|
|
1919
2854
|
this.filters = new ɵFilterGroup();
|
|
1920
2855
|
}
|
|
2856
|
+
/**
|
|
2857
|
+
* @public
|
|
2858
|
+
* @description Clears all filters.
|
|
2859
|
+
*/
|
|
1921
2860
|
clearFilters() {
|
|
1922
2861
|
this.filters.filters.clear();
|
|
1923
2862
|
}
|
|
2863
|
+
/** {@inheritDoc ɵMetadataProvider.getMetadata} */
|
|
1924
2864
|
getMetadata() {
|
|
1925
2865
|
return {
|
|
1926
2866
|
...super.getMetadata(),
|
|
@@ -1947,12 +2887,25 @@ __decorate([
|
|
|
1947
2887
|
|
|
1948
2888
|
/**
|
|
1949
2889
|
* @public
|
|
2890
|
+
* @description Type of data query
|
|
1950
2891
|
*/
|
|
1951
2892
|
var ɵQueryOperationType;
|
|
1952
2893
|
(function (ɵQueryOperationType) {
|
|
2894
|
+
/**
|
|
2895
|
+
* @description Select query.
|
|
2896
|
+
*/
|
|
1953
2897
|
ɵQueryOperationType[ɵQueryOperationType["Select"] = 0] = "Select";
|
|
2898
|
+
/**
|
|
2899
|
+
* @description Insert query.
|
|
2900
|
+
*/
|
|
1954
2901
|
ɵQueryOperationType[ɵQueryOperationType["Insert"] = 1] = "Insert";
|
|
2902
|
+
/**
|
|
2903
|
+
* @description Edit query.
|
|
2904
|
+
*/
|
|
1955
2905
|
ɵQueryOperationType[ɵQueryOperationType["Update"] = 2] = "Update";
|
|
2906
|
+
/**
|
|
2907
|
+
* @description Delete query.
|
|
2908
|
+
*/
|
|
1956
2909
|
ɵQueryOperationType[ɵQueryOperationType["Delete"] = 3] = "Delete";
|
|
1957
2910
|
// Batch,
|
|
1958
2911
|
// ListSelect,
|
|
@@ -1962,6 +2915,8 @@ var ɵQueryOperationType;
|
|
|
1962
2915
|
|
|
1963
2916
|
/**
|
|
1964
2917
|
* @public
|
|
2918
|
+
* @description Request to delete data.
|
|
2919
|
+
* @extends {ɵBaseFilterableQuery}
|
|
1965
2920
|
*/
|
|
1966
2921
|
class ɵDeleteQuery extends ɵBaseFilterableQuery {
|
|
1967
2922
|
// region Constructors: Public
|
|
@@ -1972,21 +2927,32 @@ class ɵDeleteQuery extends ɵBaseFilterableQuery {
|
|
|
1972
2927
|
|
|
1973
2928
|
/**
|
|
1974
2929
|
* @public
|
|
2930
|
+
* @description The query class for data fetching.
|
|
2931
|
+
* @extends {ɵBaseFilterableQuery}
|
|
1975
2932
|
*/
|
|
1976
2933
|
class ɵEntitySchemaQuery extends ɵBaseFilterableQuery {
|
|
1977
2934
|
constructor(rootSchemaName) {
|
|
1978
2935
|
super(ɵQueryOperationType.Select, rootSchemaName);
|
|
1979
2936
|
this._columns = new Map();
|
|
2937
|
+
/**
|
|
2938
|
+
* @description Determines if merge duplicates in query result.
|
|
2939
|
+
*/
|
|
1980
2940
|
this.isDistinct = false;
|
|
1981
2941
|
/**
|
|
1982
|
-
* Number of rows to select.
|
|
2942
|
+
* @description Number of rows to select.
|
|
1983
2943
|
*/
|
|
1984
2944
|
this.rowCount = -1;
|
|
1985
2945
|
/**
|
|
1986
|
-
* Rows count to skip.
|
|
2946
|
+
* @description Rows count to skip.
|
|
1987
2947
|
*/
|
|
1988
2948
|
this.rowsOffset = -1;
|
|
2949
|
+
/**
|
|
2950
|
+
* @description The parameter that determines whether to use the localized data.
|
|
2951
|
+
*/
|
|
1989
2952
|
this.useLocalization = true;
|
|
2953
|
+
/**
|
|
2954
|
+
* @description Represent parameter which determines disabling data in filtering.
|
|
2955
|
+
*/
|
|
1990
2956
|
this.useRecordDeactivation = false;
|
|
1991
2957
|
this._getIsPageable = () => this.rowCount > 0 && this.rowsOffset > -1;
|
|
1992
2958
|
}
|
|
@@ -1998,7 +2964,8 @@ class ɵEntitySchemaQuery extends ɵBaseFilterableQuery {
|
|
|
1998
2964
|
// endregion
|
|
1999
2965
|
// region Methods: Public
|
|
2000
2966
|
/**
|
|
2001
|
-
*
|
|
2967
|
+
* @public
|
|
2968
|
+
* @description Returns column instance by column alias.
|
|
2002
2969
|
* @param columnAlias Column alias.
|
|
2003
2970
|
* @returns [BaseQueryColumn] Column instance.
|
|
2004
2971
|
*/
|
|
@@ -2009,14 +2976,13 @@ class ɵEntitySchemaQuery extends ɵBaseFilterableQuery {
|
|
|
2009
2976
|
return this.findColumn(columnAlias);
|
|
2010
2977
|
}
|
|
2011
2978
|
/**
|
|
2012
|
-
*
|
|
2979
|
+
* @public
|
|
2980
|
+
* @description Returns column instance by column alias if not found returns null.
|
|
2013
2981
|
*/
|
|
2014
2982
|
findColumn(columnAlias) {
|
|
2015
2983
|
return this._columns.get(columnAlias);
|
|
2016
2984
|
}
|
|
2017
|
-
/**
|
|
2018
|
-
* @inheritDoc
|
|
2019
|
-
*/
|
|
2985
|
+
/** {@inheritDoc ɵMetadataProvider.getMetadata} */
|
|
2020
2986
|
getMetadata() {
|
|
2021
2987
|
return {
|
|
2022
2988
|
...super.getMetadata(),
|
|
@@ -2028,6 +2994,7 @@ class ɵEntitySchemaQuery extends ɵBaseFilterableQuery {
|
|
|
2028
2994
|
ignoreDisplayValues: false,
|
|
2029
2995
|
rowCount: this.rowCount,
|
|
2030
2996
|
rowsOffset: this.rowsOffset,
|
|
2997
|
+
adminUnitRoleSources: this.adminUnitRoleSources,
|
|
2031
2998
|
isPageable: this._getIsPageable(),
|
|
2032
2999
|
conditionalValues: this.conditionalValues ? this.conditionalValues : null,
|
|
2033
3000
|
isHierarchical: false,
|
|
@@ -2039,7 +3006,8 @@ class ɵEntitySchemaQuery extends ɵBaseFilterableQuery {
|
|
|
2039
3006
|
};
|
|
2040
3007
|
}
|
|
2041
3008
|
/**
|
|
2042
|
-
*
|
|
3009
|
+
* @public
|
|
3010
|
+
* @description Add column.
|
|
2043
3011
|
* @param column Column path.
|
|
2044
3012
|
* @param columnAlias Column alias.
|
|
2045
3013
|
* @returns [BaseQueryColumn] Column instance.
|
|
@@ -2049,7 +3017,8 @@ class ɵEntitySchemaQuery extends ɵBaseFilterableQuery {
|
|
|
2049
3017
|
return column;
|
|
2050
3018
|
}
|
|
2051
3019
|
/**
|
|
2052
|
-
*
|
|
3020
|
+
* @public
|
|
3021
|
+
* @description Add column by column path.
|
|
2053
3022
|
* @param columnPath Column path.
|
|
2054
3023
|
* @param columnAlias Column alias.
|
|
2055
3024
|
* @returns [EntityQueryColumn] Column instance.
|
|
@@ -2061,7 +3030,8 @@ class ɵEntitySchemaQuery extends ɵBaseFilterableQuery {
|
|
|
2061
3030
|
return column;
|
|
2062
3031
|
}
|
|
2063
3032
|
/**
|
|
2064
|
-
*
|
|
3033
|
+
* @public
|
|
3034
|
+
* @description Add aggregation sub query column.
|
|
2065
3035
|
* @param columnPath Column path.
|
|
2066
3036
|
* @param aggregationType Aggregation type.
|
|
2067
3037
|
* @param subFilters Sub query filters.
|
|
@@ -2074,7 +3044,8 @@ class ɵEntitySchemaQuery extends ɵBaseFilterableQuery {
|
|
|
2074
3044
|
return column;
|
|
2075
3045
|
}
|
|
2076
3046
|
/**
|
|
2077
|
-
*
|
|
3047
|
+
* @public
|
|
3048
|
+
* @description Add parameter column.
|
|
2078
3049
|
* @param value Parameter value.
|
|
2079
3050
|
* @param dataValueType Parameter data value type.
|
|
2080
3051
|
* @param columnAlias Column alias.
|
|
@@ -2086,7 +3057,8 @@ class ɵEntitySchemaQuery extends ɵBaseFilterableQuery {
|
|
|
2086
3057
|
return column;
|
|
2087
3058
|
}
|
|
2088
3059
|
/**
|
|
2089
|
-
*
|
|
3060
|
+
* @public
|
|
3061
|
+
* @description Add arithmetic column.
|
|
2090
3062
|
* @param arithmeticOperation Arithmetic operation.
|
|
2091
3063
|
* @param leftArithmeticOperand Left arithmetic operand expression.
|
|
2092
3064
|
* @param rightArithmeticOperand Right arithmetic operand expression.
|
|
@@ -2099,7 +3071,8 @@ class ɵEntitySchemaQuery extends ɵBaseFilterableQuery {
|
|
|
2099
3071
|
return column;
|
|
2100
3072
|
}
|
|
2101
3073
|
/**
|
|
2102
|
-
*
|
|
3074
|
+
* @public
|
|
3075
|
+
* @description Add macros function column.
|
|
2103
3076
|
* @param queryMacrosType Macros type.
|
|
2104
3077
|
* @param columnAlias Column alias.
|
|
2105
3078
|
* @returns [MacrosFunctionColumn] Column instance.
|
|
@@ -2110,7 +3083,8 @@ class ɵEntitySchemaQuery extends ɵBaseFilterableQuery {
|
|
|
2110
3083
|
return column;
|
|
2111
3084
|
}
|
|
2112
3085
|
/**
|
|
2113
|
-
*
|
|
3086
|
+
* @public
|
|
3087
|
+
* @description Add date part function column.
|
|
2114
3088
|
* @param columnPath Column path.
|
|
2115
3089
|
* @param datePartType Date part type.
|
|
2116
3090
|
* @param columnAlias Column alias.
|
|
@@ -2123,7 +3097,8 @@ class ɵEntitySchemaQuery extends ɵBaseFilterableQuery {
|
|
|
2123
3097
|
return column;
|
|
2124
3098
|
}
|
|
2125
3099
|
/**
|
|
2126
|
-
*
|
|
3100
|
+
* @public
|
|
3101
|
+
* @description Add aggregation function column.
|
|
2127
3102
|
* @param columnPath Column path.
|
|
2128
3103
|
* @param aggregationType Aggregation type.
|
|
2129
3104
|
* @param columnAlias Column alias.
|
|
@@ -2137,7 +3112,8 @@ class ɵEntitySchemaQuery extends ɵBaseFilterableQuery {
|
|
|
2137
3112
|
return column;
|
|
2138
3113
|
}
|
|
2139
3114
|
/**
|
|
2140
|
-
*
|
|
3115
|
+
* @public
|
|
3116
|
+
* @description Add length function column.
|
|
2141
3117
|
* @param columnPath Column path.
|
|
2142
3118
|
* @param columnAlias Column alias.
|
|
2143
3119
|
* @returns [LengthFunctionColumn] Column instance.
|
|
@@ -2149,7 +3125,8 @@ class ɵEntitySchemaQuery extends ɵBaseFilterableQuery {
|
|
|
2149
3125
|
return column;
|
|
2150
3126
|
}
|
|
2151
3127
|
/**
|
|
2152
|
-
*
|
|
3128
|
+
* @public
|
|
3129
|
+
* @description Add window function column.
|
|
2153
3130
|
* @param columnPath Column path.
|
|
2154
3131
|
* @param aggregationType Aggregation type.
|
|
2155
3132
|
* @param columnAlias Column alias.
|
|
@@ -2185,6 +3162,7 @@ class ɵEntitySchemaQuery extends ɵBaseFilterableQuery {
|
|
|
2185
3162
|
|
|
2186
3163
|
/**
|
|
2187
3164
|
* @public
|
|
3165
|
+
* @description Request to insert data.
|
|
2188
3166
|
*/
|
|
2189
3167
|
class ɵInsertQuery extends ɵBaseQuery {
|
|
2190
3168
|
// endregion
|
|
@@ -2196,6 +3174,9 @@ class ɵInsertQuery extends ɵBaseQuery {
|
|
|
2196
3174
|
}
|
|
2197
3175
|
// endregion
|
|
2198
3176
|
// region Properties: Public
|
|
3177
|
+
/**
|
|
3178
|
+
* @description A collection of column values for updating entities.
|
|
3179
|
+
*/
|
|
2199
3180
|
get columnValues() {
|
|
2200
3181
|
return {
|
|
2201
3182
|
items: classToPlain(this._columnValues),
|
|
@@ -2203,6 +3184,14 @@ class ɵInsertQuery extends ɵBaseQuery {
|
|
|
2203
3184
|
}
|
|
2204
3185
|
// endregion
|
|
2205
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
|
+
*/
|
|
2206
3195
|
addColumn(columnName, columnValue, dataValueType) {
|
|
2207
3196
|
ɵValidationUtilities.checkArgumentEmpty('columnName', columnName);
|
|
2208
3197
|
this._columnValues.set(columnName, new ɵParameterExpression({ value: columnValue, dataValueType }));
|
|
@@ -2216,6 +3205,8 @@ __decorate([
|
|
|
2216
3205
|
|
|
2217
3206
|
/**
|
|
2218
3207
|
* @public
|
|
3208
|
+
* @description Request for data changes.
|
|
3209
|
+
* @extends {ɵBaseFilterableQuery}
|
|
2219
3210
|
*/
|
|
2220
3211
|
class ɵUpdateQuery extends ɵBaseFilterableQuery {
|
|
2221
3212
|
// endregion
|
|
@@ -2227,12 +3218,15 @@ class ɵUpdateQuery extends ɵBaseFilterableQuery {
|
|
|
2227
3218
|
// endregion
|
|
2228
3219
|
// region Fields: Public
|
|
2229
3220
|
/**
|
|
2230
|
-
* Flag that indicates whether to force save data.
|
|
3221
|
+
* @description Flag that indicates whether to force save data.
|
|
2231
3222
|
*/
|
|
2232
3223
|
this.isForceUpdate = false;
|
|
2233
3224
|
}
|
|
2234
3225
|
// endregion
|
|
2235
3226
|
// region Properties: Public
|
|
3227
|
+
/**
|
|
3228
|
+
* @description A collection of column values for updating entities.
|
|
3229
|
+
*/
|
|
2236
3230
|
get columnValues() {
|
|
2237
3231
|
return {
|
|
2238
3232
|
items: classToPlain(this._columnValues),
|
|
@@ -2240,6 +3234,14 @@ class ɵUpdateQuery extends ɵBaseFilterableQuery {
|
|
|
2240
3234
|
}
|
|
2241
3235
|
// endregion
|
|
2242
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
|
+
*/
|
|
2243
3245
|
addColumn(columnName, columnValue, dataValueType) {
|
|
2244
3246
|
ɵValidationUtilities.checkArgumentEmpty('columnName', columnName);
|
|
2245
3247
|
this._columnValues.set(columnName, new ɵParameterExpression({ value: columnValue, dataValueType }));
|
|
@@ -2253,14 +3255,15 @@ __decorate([
|
|
|
2253
3255
|
|
|
2254
3256
|
/**
|
|
2255
3257
|
* @public
|
|
3258
|
+
* @description The query class for localized data fetching.
|
|
3259
|
+
* @extends {ɵEntitySchemaQuery}
|
|
2256
3260
|
*/
|
|
2257
3261
|
class ɵSelectLocalizationQuery extends ɵEntitySchemaQuery {
|
|
2258
3262
|
}
|
|
2259
3263
|
|
|
2260
3264
|
/**
|
|
2261
3265
|
* @public
|
|
2262
|
-
* @
|
|
2263
|
-
* @describe Base definition of request.
|
|
3266
|
+
* @description Base definition of request.
|
|
2264
3267
|
* @template TEvent
|
|
2265
3268
|
*/
|
|
2266
3269
|
class ɵBaseRequest {
|
|
@@ -2270,13 +3273,39 @@ class ɵBaseRequest {
|
|
|
2270
3273
|
|
|
2271
3274
|
/**
|
|
2272
3275
|
* @public
|
|
3276
|
+
* @description Enum for model parameter types.
|
|
2273
3277
|
*/
|
|
2274
3278
|
var ɵModelParameterType;
|
|
2275
3279
|
(function (ɵModelParameterType) {
|
|
3280
|
+
/**
|
|
3281
|
+
* @public
|
|
3282
|
+
* @description Parameter represents primary column value.
|
|
3283
|
+
*/
|
|
2276
3284
|
ɵModelParameterType["PrimaryColumnValue"] = "primaryColumnValue";
|
|
3285
|
+
/**
|
|
3286
|
+
* @public
|
|
3287
|
+
* @description Parameter represents column value.
|
|
3288
|
+
*/
|
|
3289
|
+
ɵModelParameterType["ColumnValue"] = "columnValue";
|
|
3290
|
+
/**
|
|
3291
|
+
* @public
|
|
3292
|
+
* @description Parameter represents filter value.
|
|
3293
|
+
*/
|
|
2277
3294
|
ɵModelParameterType["Filter"] = "filter";
|
|
3295
|
+
/**
|
|
3296
|
+
* @public
|
|
3297
|
+
* @description Parameter represents primary display value filter.
|
|
3298
|
+
*/
|
|
2278
3299
|
ɵModelParameterType["PrimaryDisplayValueFilter"] = "primaryDisplayValueFilter";
|
|
3300
|
+
/**
|
|
3301
|
+
* @public
|
|
3302
|
+
* @description Parameter is empty.
|
|
3303
|
+
*/
|
|
2279
3304
|
ɵModelParameterType["Empty"] = "empty";
|
|
3305
|
+
/**
|
|
3306
|
+
* @public
|
|
3307
|
+
* @description Parameter is never used.
|
|
3308
|
+
*/
|
|
2280
3309
|
ɵModelParameterType["Never"] = "never";
|
|
2281
3310
|
})(ɵModelParameterType || (ɵModelParameterType = {}));
|
|
2282
3311
|
|
|
@@ -2286,7 +3315,13 @@ var ɵModelParameterType;
|
|
|
2286
3315
|
*/
|
|
2287
3316
|
var ɵSchemaViewMaskRequestAction;
|
|
2288
3317
|
(function (ɵSchemaViewMaskRequestAction) {
|
|
3318
|
+
/**
|
|
3319
|
+
* @description To add task.
|
|
3320
|
+
*/
|
|
2289
3321
|
ɵSchemaViewMaskRequestAction["AddTask"] = "addTask";
|
|
3322
|
+
/**
|
|
3323
|
+
* @description To remove task.
|
|
3324
|
+
*/
|
|
2290
3325
|
ɵSchemaViewMaskRequestAction["RemoveTask"] = "removeTask";
|
|
2291
3326
|
})(ɵSchemaViewMaskRequestAction || (ɵSchemaViewMaskRequestAction = {}));
|
|
2292
3327
|
/**
|
|
@@ -2299,6 +3334,9 @@ class ɵSchemaViewMaskRequest extends ɵBaseRequest {
|
|
|
2299
3334
|
this.action = action;
|
|
2300
3335
|
this.taskName = taskName;
|
|
2301
3336
|
this.$context = $context;
|
|
3337
|
+
/**
|
|
3338
|
+
* @description Request type
|
|
3339
|
+
*/
|
|
2302
3340
|
this.type = 'crt.SchemaViewMaskRequest';
|
|
2303
3341
|
}
|
|
2304
3342
|
}
|
|
@@ -2307,5 +3345,5 @@ class ɵSchemaViewMaskRequest extends ɵBaseRequest {
|
|
|
2307
3345
|
* Generated bundle index. Do not edit.
|
|
2308
3346
|
*/
|
|
2309
3347
|
|
|
2310
|
-
export { LookupMode, ɵAggregationEvalType, ɵAggregationFunction, ɵAggregationFunctionColumn, ɵAggregationFunctionExpression, ɵAggregationSubQueryColumn, ɵAggregationSubQueryExpression, ɵAggregationType, ɵArgumentEmptyException, ɵArgumentFunctionExpression, ɵArgumentOutOfRangeException, ɵArithmeticExpression, ɵArithmeticOperation, ɵArithmeticQueryColumn, ɵBaseExpression, ɵBaseExpressionParser, ɵBaseFilter, ɵBaseFilterParser, ɵBaseFilterableQuery, ɵBaseQuery, ɵBaseQueryColumn, ɵBaseRequest, ɵBetweenFilter, ɵColumnExpression, ɵCompareFilter, ɵComparisonType, ɵDEFAULT_COLUMN_PLAIN_OBJ, ɵDEFAULT_FILTER_PLAIN_OBJ, ɵDataSchemaAttributeType, ɵDataSchemaAttributeUsageType, ɵDataSchemaType, ɵDataSourceScope, ɵDataValueType, ɵDatePartFunctionColumn, ɵDatePartFunctionExpression, ɵDatePartType, ɵDefaultValueSource, ɵDeleteQuery, ɵEMPTY_GUID, ɵEXPRESSION_TYPE_MOCK, ɵEntityQueryColumn, ɵEntitySchemaQuery, ɵExistsFilter, ɵExpressionMock, ɵExpressionParser, ɵExpressionResolver, ɵExpressionType, ɵFilterGroup, ɵFilterMock, ɵFilterParser, ɵFilterResolver, ɵFilterType, ɵFunctionExpression, ɵFunctionType, ɵInFilter, ɵInsertQuery, ɵIsNullFilter, ɵItemNotFoundException, ɵLengthFunctionColumn, ɵLengthFunctionExpression, ɵLogicalOperatorType, ɵMacrosFunctionColumn, ɵMacrosFunctionExpression, ɵModelInPageAction, ɵModelParameterType, ɵNextHandlerAlreadySpecifiedException, ɵOrderDirection, ɵParameterExpression, ɵParameterQueryColumn, ɵQueryMacrosType, ɵQueryOperationType, ɵSchemaViewMaskRequest, ɵSchemaViewMaskRequestAction, ɵSelectLocalizationQuery, ɵSingleFilter, ɵSubQueryColumn, ɵSubQueryExpression, ɵUpdateQuery, ɵValidationUtilities, ɵWindowFunctionColumn, ɵWindowFunctionExpression, ɵencodeDate, ɵgenerateGuid, ɵgetColumnPlainObj, ɵgetFilterPlainObj, ɵisEmptyGuid, ɵisGuid, ɵparserMock, ɵtoLocalISOString };
|
|
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 };
|
|
2311
3349
|
//# sourceMappingURL=creatio-base.mjs.map
|