@creatio/base 0.830.0 → 0.831.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.
Files changed (52) hide show
  1. package/CHANGELOG.md +2 -0
  2. package/esm2022/lib/public/enums/aggregation-type.enum.mjs +10 -2
  3. package/esm2022/lib/public/enums/data-value-type.enum.mjs +51 -2
  4. package/esm2022/lib/public/esq/data-model/columns/base-query-column.mjs +15 -1
  5. package/esm2022/lib/public/esq/data-model/columns/entity-column/entity-query-column.mjs +2 -1
  6. package/esm2022/lib/public/esq/data-model/columns/functions/aggregation-function-column.mjs +2 -2
  7. package/esm2022/lib/public/esq/data-model/columns/functions/date-part-function-column.mjs +3 -1
  8. package/esm2022/lib/public/esq/data-model/enums/aggregation-eval-type.enum.mjs +5 -2
  9. package/esm2022/lib/public/esq/data-model/enums/arithmetic-operation.enum.mjs +5 -2
  10. package/esm2022/lib/public/esq/data-model/enums/comparison-type.enum.mjs +12 -2
  11. package/esm2022/lib/public/esq/data-model/enums/date-part-type.enum.mjs +11 -2
  12. package/esm2022/lib/public/esq/data-model/enums/expression-type.enum.mjs +5 -1
  13. package/esm2022/lib/public/esq/data-model/enums/filter-type.enum.mjs +9 -1
  14. package/esm2022/lib/public/esq/data-model/enums/function-type.enum.mjs +8 -2
  15. package/esm2022/lib/public/esq/data-model/enums/logical-operator-type.enum.mjs +4 -2
  16. package/esm2022/lib/public/esq/data-model/enums/order-direction.enum.mjs +4 -2
  17. package/esm2022/lib/public/esq/data-model/enums/query-macros-type.enum.mjs +31 -2
  18. package/esm2022/lib/public/esq/data-model/expressions/arithmetic/arithmetic-expression.mjs +2 -1
  19. package/esm2022/lib/public/esq/data-model/expressions/base-expression.mjs +3 -1
  20. package/esm2022/lib/public/esq/data-model/expressions/columns/column-expression.mjs +2 -1
  21. package/esm2022/lib/public/esq/data-model/expressions/esq-expression.inteface.mjs +2 -0
  22. package/esm2022/lib/public/esq/data-model/expressions/functions/aggregation-function-expression.mjs +2 -1
  23. package/esm2022/lib/public/esq/data-model/expressions/functions/argument-function-expression.mjs +2 -1
  24. package/esm2022/lib/public/esq/data-model/expressions/functions/date-part-function-expression.mjs +2 -1
  25. package/esm2022/lib/public/esq/data-model/expressions/functions/function-expression.mjs +4 -1
  26. package/esm2022/lib/public/esq/data-model/expressions/functions/length-function-expression.mjs +2 -1
  27. package/esm2022/lib/public/esq/data-model/expressions/functions/macros-function-expression.mjs +3 -1
  28. package/esm2022/lib/public/esq/data-model/expressions/functions/window-function-expression.mjs +2 -1
  29. package/esm2022/lib/public/esq/data-model/expressions/parameters/parameter-expression.mjs +3 -1
  30. package/esm2022/lib/public/esq/data-model/filters/base-filter.mjs +8 -3
  31. package/esm2022/lib/public/esq/data-model/filters/between-filter.mjs +9 -1
  32. package/esm2022/lib/public/esq/data-model/filters/compare-filter.mjs +9 -2
  33. package/esm2022/lib/public/esq/data-model/filters/esq-filter.interface.mjs +2 -0
  34. package/esm2022/lib/public/esq/data-model/filters/exists-filter.mjs +7 -1
  35. package/esm2022/lib/public/esq/data-model/filters/filter-group.mjs +12 -2
  36. package/esm2022/lib/public/esq/data-model/filters/in-filter.mjs +9 -2
  37. package/esm2022/lib/public/esq/data-model/filters/index.mjs +2 -1
  38. package/esm2022/lib/public/esq/data-model/filters/isnull-filter.mjs +9 -3
  39. package/esm2022/lib/public/esq/data-model/filters/single-filter.mjs +2 -1
  40. package/esm2022/lib/public/esq/data-model/queries/base-query.mjs +24 -6
  41. package/esm2022/lib/public/esq/data-model/queries/delete-query.mjs +5 -2
  42. package/esm2022/lib/public/esq/data-model/queries/entity-schema-query.mjs +5 -3
  43. package/esm2022/lib/public/esq/data-model/queries/insert-query.mjs +5 -8
  44. package/esm2022/lib/public/esq/data-model/queries/update-query.mjs +5 -10
  45. package/esm2022/lib/public/models/lookup-value.model.mjs +1 -1
  46. package/esm2022/lib/public/types/entity-column-value.mjs +1 -1
  47. package/esm2022/lib/public/types/guid.type.mjs +1 -1
  48. package/esm2022/lib/public/types/json-data.type.mjs +1 -1
  49. package/fesm2022/creatio-base.mjs +270 -42
  50. package/fesm2022/creatio-base.mjs.map +1 -1
  51. package/index.d.ts +348 -47
  52. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -49,6 +49,75 @@ export declare enum eAdminUnitRoleSources {
49
49
  All = 63
50
50
  }
51
51
 
52
+ /**
53
+ * @generativeApi
54
+ * @description Combined type for all ESQ expressions.If you plan to create a new expression, please add it to this type
55
+ * */
56
+ declare type IESQExpression = ɵBaseExpression | ɵArithmeticExpression | ɵColumnExpression | ɵParameterExpression | ɵAggregationFunctionExpression | ɵArgumentFunctionExpression | ɵDatePartFunctionExpression | ɵLengthFunctionExpression | ɵMacrosFunctionExpression | ɵWindowFunctionExpression;
57
+
58
+ /**
59
+ * @generativeApi
60
+ * @description Combined type for all ESQ filters. If you plan to create a new filter, please add it to this type.
61
+ * */
62
+ export declare type IESQFilter = ɵBaseFilter | ɵBetweenFilter | ɵCompareFilter | ɵExistsFilter | IFilterGroup | ɵInFilter | ɵIsNullFilter | ɵSingleFilter;
63
+
64
+ /**
65
+ * @public
66
+ * this interface is created, because JSON schema generation does not support getters
67
+ * @generativeApi
68
+ * @description Group of filters. Usually one, or several filters, combined with a logical operation (And, Or).
69
+ * Groups of filters can be nested into each other,
70
+ * i.e. The collection itself can be an element of another collection.
71
+ * @extends {ɵBaseFilter}
72
+ */
73
+ export declare type IFilterGroup = ɵBaseFilter & {
74
+ /**
75
+ * @description Type of filter. 6 means that this is a filter group.
76
+ * @default 6
77
+ */
78
+ readonly filterType: ɵFilterType.FilterGroup;
79
+ /**
80
+ * @description Returns collection of child filters or filter groups.
81
+ * Each item is a key-value pair,
82
+ * where the key is autogenerated or user-defined name, and value - filter or a filter group
83
+ */
84
+ items: Record<string, IESQFilter>;
85
+ /**
86
+ * @description The type of the logical operation for a combination of filters in this filter group.
87
+ */
88
+ logicalOperation: ɵLogicalOperatorType;
89
+ /**
90
+ * @description Root entity schema name or table name.
91
+ */
92
+ rootSchemaName?: string;
93
+ };
94
+
95
+ /**
96
+ * @public
97
+ * @generativeApi
98
+ * @description Parameter object reference. Defines the value and type of the parameter.
99
+ * dateValue property exists only if dataValueType is 7.
100
+ */
101
+ export declare interface IParameterDefinition<TDataValueType extends ɵDataValueType = ɵDataValueType> {
102
+ /**
103
+ * @description type of the parameter value.
104
+ * */
105
+ dataValueType: TDataValueType;
106
+ /**
107
+ * @description exists only if dataValueType is 7. Contains the ISO 8601 date string.
108
+ * */
109
+ dateValue?: TDataValueType extends ɵDataValueType.DateTime ? `${string}T${string}Z` : never;
110
+ /**
111
+ * @description defines the value of the parameter.
112
+ * If dataValueType is 7. Contains the ISO 8601 date string. but wrapped in escaped string.
113
+ * E.g.: `\"2023-01-01T00:00:00.000Z\"`, otherwise it is the value of the parameter.
114
+ * If dataValueType is 10, then value is ɵLookupValue.
115
+ * value cannot be an array
116
+ * */
117
+ value?: TDataValueType extends ɵDataValueType.DateTime ? string : ɵEntityColumnValue;
118
+ arrayValue?: string[];
119
+ }
120
+
52
121
  /* Excluded from this release type: LookupMode */
53
122
 
54
123
  /* Excluded from this release type: UsedColumn */
@@ -67,7 +136,10 @@ export declare type ɵAggregationEval = 'all' | 'distinct' | 'none';
67
136
 
68
137
  /**
69
138
  * @public
70
- * @description Scope of the aggregation function.
139
+ * @generativeApi
140
+ * @description Defines the scope or evaluation mode for aggregation functions.
141
+ * 0 - None (No specific scope defined), 1 - All (Includes all values including duplicates),
142
+ * 2 - Distinct (Only unique values, eliminates duplicates)
71
143
  */
72
144
  export declare enum ɵAggregationEvalType {
73
145
  /**
@@ -121,15 +193,16 @@ export declare enum ɵAggregationFunction {
121
193
 
122
194
  /**
123
195
  * @public
124
- * @classdesc Class contains info about column with aggregation function.
196
+ * @description Class contains info about column with aggregation function.
125
197
  * @extends {ɵBaseQueryColumn}
126
198
  */
127
199
  export declare class ɵAggregationFunctionColumn extends ɵBaseQueryColumn<ɵAggregationFunctionExpression> {
128
- constructor(aggregationType: ɵAggregationType, aggregationEvalType: ɵAggregationEvalType, functionArgument: ɵBaseExpression);
200
+ constructor(aggregationType: ɵAggregationType, aggregationEvalType: ɵAggregationEvalType, functionArgument: ɵColumnExpression);
129
201
  }
130
202
 
131
203
  /**
132
204
  * @public
205
+ * @generativeApi
133
206
  * @description A class that describes expression with aggregate function.
134
207
  * @extends {ɵArgumentFunctionExpression}
135
208
  */
@@ -207,7 +280,15 @@ export declare type ɵAggregationSubQueryExpressionConfig = ɵSubQueryExpression
207
280
 
208
281
  /**
209
282
  * @public
210
- * The type of the aggregation (can be set to None).
283
+ * @generativeApi
284
+ * @description The type of aggregation function used in queries and data operations.
285
+ * 0 - None (No aggregation),
286
+ * 1 - Count (Count records - can be used with any column type),
287
+ * 2 - Sum (Total of values - numeric columns only),
288
+ * 3 - Avg (Average value - numeric columns only),
289
+ * 4 - Min (Minimum value - numeric and date columns),
290
+ * 5 - Max (Maximum value - numeric and date columns),
291
+ * 6 - TopOne (First record - any column type)
211
292
  */
212
293
  export declare enum ɵAggregationType {
213
294
  /**
@@ -252,6 +333,7 @@ export declare class ɵArgumentEmptyException extends Error {
252
333
  /**
253
334
  * @public
254
335
  * @abstract
336
+ * @generativeApi
255
337
  * @description A class that describes a functional expression with argument.
256
338
  * @extends {ɵFunctionExpression}
257
339
  */
@@ -261,7 +343,7 @@ export declare abstract class ɵArgumentFunctionExpression extends ɵFunctionExp
261
343
  /**
262
344
  * @description Expression argument.
263
345
  */
264
- readonly functionArgument: ɵBaseExpression;
346
+ readonly functionArgument: IESQExpression;
265
347
  protected constructor(config: ɵArgumentFunctionExpressionConfig<ɵArgumentFunctionExpression>);
266
348
  /**
267
349
  * @public
@@ -290,6 +372,7 @@ export declare class ɵArgumentOutOfRangeException extends Error {
290
372
 
291
373
  /**
292
374
  * @public
375
+ * @genearativeApi
293
376
  * @description Arithmetic expression.
294
377
  * @extends {ɵBaseExpression}
295
378
  */
@@ -307,11 +390,11 @@ export declare class ɵArithmeticExpression extends ɵBaseExpression {
307
390
  /**
308
391
  * @description Left operand expression.
309
392
  */
310
- readonly leftArithmeticOperand: ɵBaseExpression;
393
+ readonly leftArithmeticOperand: IESQExpression;
311
394
  /**
312
395
  * @description Right operand expression.
313
396
  */
314
- readonly rightArithmeticOperand: ɵBaseExpression;
397
+ readonly rightArithmeticOperand: IESQExpression;
315
398
  constructor(config: ɵArithmeticExpressionConfig);
316
399
  /**
317
400
  * Parses expression from json.
@@ -334,7 +417,10 @@ export declare type ɵArithmeticExpressionConfig = ɵExpressionConfig<ɵArithmet
334
417
 
335
418
  /**
336
419
  * @public
337
- * @description Arithmetic operation.
420
+ * @generativeApi
421
+ * @description Represents arithmetic operations that can be performed in queries and expressions.
422
+ * 0 - Addition (Adds values), 1 - Subtraction (Subtracts values),
423
+ * 2 - Multiplication (Multiplies values), 3 - Division (Divides values)
338
424
  */
339
425
  export declare enum ɵArithmeticOperation {
340
426
  /**
@@ -446,6 +532,7 @@ export declare interface ɵBaseDialogService<TConfig extends ɵBaseDialogConfig
446
532
 
447
533
  /**
448
534
  * @public
535
+ * @generativeApi
449
536
  * @abstract
450
537
  * @description The base class of the expression.
451
538
  * @extends {ɵSerializable}
@@ -455,8 +542,9 @@ export declare abstract class ɵBaseExpression implements ɵSerializable {
455
542
  /* Excluded from this release type: _instanceOfKeys */
456
543
  /**
457
544
  * @description True if expression has brackets.
545
+ * @default false
458
546
  */
459
- readonly isBlock: boolean;
547
+ readonly isBlock?: boolean;
460
548
  /**
461
549
  * @public
462
550
  * @description Method for checking if an instance is of the current class type.
@@ -509,7 +597,8 @@ export declare class ɵBaseExpressionParser {
509
597
  /**
510
598
  * @public
511
599
  * @abstract
512
- * @description The base class of the filter.
600
+ * @generativeApi
601
+ * @description Base class for all filters in the system.
513
602
  * @extends {ɵSerializable}
514
603
  */
515
604
  export declare abstract class ɵBaseFilter implements ɵSerializable {
@@ -521,12 +610,14 @@ export declare abstract class ɵBaseFilter implements ɵSerializable {
521
610
  readonly filterType: ɵFilterType;
522
611
  /**
523
612
  * @description Indicates that the filter is active and will be taken into account when building the query.
613
+ * @default true
524
614
  */
525
615
  isEnabled: boolean;
526
616
  /**
527
- * @description Drop the time for the date / time type parameters.
617
+ * @description Drop the time for the date / time type parameters. In FilterGroup this option is not supported.
618
+ * @default false
528
619
  */
529
- trimDateTimeParameterToDate: boolean;
620
+ trimDateTimeParameterToDate?: boolean;
530
621
  /**
531
622
  * @public
532
623
  * @description Method for checking if an instance is of the current class type.
@@ -705,6 +796,9 @@ export declare interface ɵBaseModel<TLoadOptions extends ɵDataSourceLoadOption
705
796
  export declare abstract class ɵBaseQuery implements ɵMetadataProvider<Record<string, unknown>> {
706
797
  readonly operationType: ɵQueryOperationType;
707
798
  readonly rootSchemaName: string;
799
+ queryId?: string;
800
+ /* Excluded from this release type: _queryDtoType */
801
+ get queryDtoType(): string;
708
802
  protected constructor(operationType: ɵQueryOperationType, rootSchemaName: string);
709
803
  /** {@inheritDoc ɵMetadataProvider.getMetadata} */
710
804
  getMetadata(): Record<string, unknown>;
@@ -713,6 +807,7 @@ export declare abstract class ɵBaseQuery implements ɵMetadataProvider<Record<s
713
807
  /**
714
808
  * @public
715
809
  * @abstract
810
+ * @generativeApi
716
811
  * @classdesc Class contains info about column for query.
717
812
  */
718
813
  export declare abstract class ɵBaseQueryColumn<TExpression extends ɵBaseExpression = ɵBaseExpression> {
@@ -759,6 +854,7 @@ export declare abstract class ɵBaseQueryColumn<TExpression extends ɵBaseExpres
759
854
  */
760
855
  withCaption(caption: string): this;
761
856
  /* Excluded from this release type: _getUsedColumns */
857
+ /* Excluded from this release type: toJson */
762
858
  }
763
859
 
764
860
  /**
@@ -806,21 +902,29 @@ export declare interface ɵBaseSysSettingsService {
806
902
 
807
903
  /**
808
904
  * @public
905
+ * generativeApi
809
906
  * @description Filter class of the "Between" type.
907
+ * It contains RightLessExpression and RightGreaterExpression,
908
+ * which represent the boundaries of values for filtering.
810
909
  * @extends {ɵSingleFilter}
811
910
  */
812
911
  export declare class ɵBetweenFilter extends ɵSingleFilter {
912
+ /**
913
+ * @description Type of filter.
914
+ * @default 3
915
+ * */
916
+ readonly filterType: 3;
813
917
  /* Excluded from this release type: _instanceOfKey */
814
918
  /* Excluded from this release type: _instanceOfKeys */
815
919
  /**
816
920
  * @description The initial expression of the filtering range.
817
921
  */
818
- readonly rightLessExpression: ɵBaseExpression;
922
+ readonly rightLessExpression: IESQExpression;
819
923
  /**
820
924
  * @description The final expression of the filtering range.
821
925
  */
822
- readonly rightGreaterExpression: ɵBaseExpression;
823
- constructor(leftExpression: ɵBaseExpression, rightLessExpression: ɵBaseExpression, rightGreaterExpression: ɵBaseExpression);
926
+ readonly rightGreaterExpression: IESQExpression;
927
+ constructor(leftExpression: IESQExpression, rightLessExpression: IESQExpression, rightGreaterExpression: IESQExpression);
824
928
  /**
825
929
  * Parses filter from json.
826
930
  * @public
@@ -839,6 +943,7 @@ export declare type ɵButtonColor = 'primary' | 'accent' | 'warn' | 'default';
839
943
 
840
944
  /**
841
945
  * @public
946
+ * @generativeApi
842
947
  * @description A class that defines an expression of type column EntitySchema.
843
948
  * @extends {ɵBaseExpression}
844
949
  */
@@ -875,17 +980,24 @@ export declare type ɵColumnExpressionConfig = ɵExpressionConfig<ɵColumnExpres
875
980
 
876
981
  /**
877
982
  * @public
878
- * @description Comparison filter class.
983
+ * @generativeApi
984
+ * @description Filter class for comparing two expressions. leftExpression describes column from the schema,
985
+ * by which the comparison is made, rightExpression describes the value to which the column is compared.
879
986
  * @extends {ɵSingleFilter}
880
987
  */
881
988
  export declare class ɵCompareFilter extends ɵSingleFilter {
989
+ /**
990
+ * @description Type of filter.
991
+ * @default 1
992
+ */
993
+ readonly filterType: 1;
882
994
  /* Excluded from this release type: _instanceOfKey */
883
995
  /* Excluded from this release type: _instanceOfKeys */
884
996
  /**
885
- * @description Filter expression.
997
+ * @description Filter expression. Right expression is used to compare values of column from the left expression
886
998
  */
887
- readonly rightExpression: ɵBaseExpression;
888
- constructor(comparisonType: ɵComparisonType, leftExpression: ɵBaseExpression, rightExpression: ɵBaseExpression);
999
+ readonly rightExpression: IESQExpression;
1000
+ constructor(comparisonType: ɵComparisonType, leftExpression: IESQExpression, rightExpression: IESQExpression);
889
1001
  /**
890
1002
  * Parses filter from json.
891
1003
  * @public
@@ -898,12 +1010,22 @@ export declare class ɵCompareFilter extends ɵSingleFilter {
898
1010
 
899
1011
  /**
900
1012
  * @public
901
- * @description The type of comparison operation in the filter.
1013
+ * @generativeApi
1014
+ * @description The type of comparison operation used in filters and query conditions.
1015
+ 1 - Is_null (Value is null), 2 - Is_not_null (Value is not null),
1016
+ * 3 - Equal (Value equals), 4 - Not_equal (Value doesn't equal), 5 - Less (Value is less than),
1017
+ * 6 - Less_or_equal (Value is less than or equal), 7 - Greater (Value is greater than),
1018
+ * 8 - Greater_or_equal (Value is greater than or equal), 9 - Start_with (Value starts with string),
1019
+ * 10 - Not_start_with (Value doesn't start with string), 11 - Contain (Value contains string),
1020
+ * 12 - Not_contain (Value doesn't contain string), 13 - End_with (Value ends with string),
1021
+ * 14 - Not_end_with (Value doesn't end with string), 15 - Exists (Value exists),
1022
+ * 16 - Not_exists (Value doesn't exist)
902
1023
  */
903
1024
  export declare enum ɵComparisonType {
904
1025
  /**
905
1026
  * @public
906
1027
  * @description Value is between two specified values.
1028
+ * @hidden
907
1029
  */
908
1030
  Between = 0,
909
1031
  /**
@@ -1640,6 +1762,53 @@ export declare interface ɵDataSourceSortingConfig {
1640
1762
 
1641
1763
  /**
1642
1764
  * @public
1765
+ * @generativeApi
1766
+ * @description possible BE valur types. Try to keep it same as {@link ɵEntityColumnValue}.
1767
+ * 0 - Global unique identifier.
1768
+ * 1 - String.
1769
+ * 4 - Integer.
1770
+ * 5 - Real number.
1771
+ * 6 - Currency.
1772
+ * 7 - Date and time.
1773
+ * 8 - Date.
1774
+ * 9 - Time.
1775
+ * 10 - Lookup.
1776
+ * 11 - Enumeration.
1777
+ * 12 - Boolean.
1778
+ * 13 - Binary data object.
1779
+ * 14 - The object of image binary data.
1780
+ * 15 - Custom object.
1781
+ * 16 - Image from a lookup.
1782
+ * 17 - Collection of items.
1783
+ * 18 - Color.
1784
+ * 19 - Localized string.
1785
+ * 20 - Object (Entity).
1786
+ * 21 - Collection of objects (EntityCollection).
1787
+ * 22 - List of object column values (EntityColumnMappingCollection).
1788
+ * 23 - Hash string.
1789
+ * 24 - Encrypted string.
1790
+ * 25 - File.
1791
+ * 26 - Mapping.
1792
+ * 27 - Short length text.
1793
+ * 28 - Medium length text.
1794
+ * 29 - Unlimited length text.
1795
+ * 30 - Long length text.
1796
+ * 31 - float1.
1797
+ * 32 - float2.
1798
+ * 33 - float3.
1799
+ * 34 - float4.
1800
+ * 35 - Localizable parameter values list.
1801
+ * 36 - Process not localizable text.
1802
+ * 37 - Stage indicator.
1803
+ * 38 - Serializable list of values.
1804
+ * 39 - Serializable list of composite values.
1805
+ * 40 - float8.
1806
+ * 41 - File.
1807
+ * 42 - Phone.
1808
+ * 43 - Text with formating tags.
1809
+ * 44 - Web link.
1810
+ * 45 - Email.
1811
+ * 46 - Composite object.
1643
1812
  * Types of values.
1644
1813
  */
1645
1814
  export declare enum ɵDataValueType {
@@ -1664,7 +1833,9 @@ export declare enum ɵDataValueType {
1664
1833
  */
1665
1834
  Money = 6,
1666
1835
  /**
1667
- * @description Date and time.
1836
+ * @description Date and time. if used this type of a value, then value should consist of two parts:
1837
+ * "dateValue": "ISO 8601 date string",
1838
+ * "value": "\"ISO 8601 date string\""
1668
1839
  */
1669
1840
  DateTime = 7,
1670
1841
  /**
@@ -1815,7 +1986,9 @@ export declare type ɵDatePart = 'minute' | 'hour' | 'day' | 'weekday' | 'week'
1815
1986
 
1816
1987
  /**
1817
1988
  * @public
1989
+ * @generativeApi
1818
1990
  * @classdesc Class contains info about column with date part.
1991
+ * @description Class contains info about column with date part.
1819
1992
  * @extends {ɵBaseQueryColumn}
1820
1993
  */
1821
1994
  export declare class ɵDatePartFunctionColumn extends ɵBaseQueryColumn<ɵDatePartFunctionExpression> {
@@ -1828,6 +2001,7 @@ export declare class ɵDatePartFunctionColumn extends ɵBaseQueryColumn<ɵDatePa
1828
2001
 
1829
2002
  /**
1830
2003
  * @public
2004
+ * @gererativeApi
1831
2005
  * @description A class that describes expression part of date function.
1832
2006
  * @extends {ɵArgumentFunctionExpression}
1833
2007
  */
@@ -1860,7 +2034,16 @@ export declare type ɵDatePartFunctionExpressionConfig = ɵArgumentFunctionExpre
1860
2034
 
1861
2035
  /**
1862
2036
  * @public
1863
- * @description Part of the date.
2037
+ * @generativeApi
2038
+ * @description Defines possible parts of the date.
2039
+ * 0 - Empty value.
2040
+ * 1 - Day.
2041
+ * 2 - Week.
2042
+ * 3 - Month.
2043
+ * 4 - Year.
2044
+ * 5 - Day of the week.
2045
+ * 6 - Hour.
2046
+ * 7 - Minute.
1864
2047
  */
1865
2048
  export declare enum ɵDatePartType {
1866
2049
  /**
@@ -1929,6 +2112,7 @@ export declare enum ɵDefaultValueSource {
1929
2112
  * @extends {ɵBaseFilterableQuery}
1930
2113
  */
1931
2114
  export declare class ɵDeleteQuery extends ɵBaseFilterableQuery {
2115
+ /* Excluded from this release type: _queryDtoType */
1932
2116
  constructor(rootSchemaName: string);
1933
2117
  }
1934
2118
 
@@ -1964,12 +2148,14 @@ export declare function ɵencodeDate(date: Date): string;
1964
2148
 
1965
2149
  /**
1966
2150
  * @public
1967
- * @description type of column value.
2151
+ * @generativeApi
2152
+ * @description possible type of column value.
1968
2153
  */
1969
2154
  export declare type ɵEntityColumnValue = boolean | number | string | ɵGuid | Date | ɵLookupValue | null;
1970
2155
 
1971
2156
  /**
1972
2157
  * @public
2158
+ * @generativeApi
1973
2159
  * @classdesc Class contains info about common column from entity.
1974
2160
  * @extends {ɵBaseQueryColumn}
1975
2161
  */
@@ -1984,6 +2170,7 @@ export declare class ɵEntityQueryColumn extends ɵBaseQueryColumn<ɵColumnExpre
1984
2170
  */
1985
2171
  export declare class ɵEntitySchemaQuery extends ɵBaseFilterableQuery {
1986
2172
  private _columns;
2173
+ /* Excluded from this release type: _queryDtoType */
1987
2174
  /**
1988
2175
  * @description Determines if merge duplicates in query result.
1989
2176
  */
@@ -2126,21 +2313,29 @@ export declare class ɵEntitySchemaQuery extends ɵBaseFilterableQuery {
2126
2313
 
2127
2314
  /**
2128
2315
  * @public
2316
+ * @generativeApi
2129
2317
  * @description The comparison filter class [Exists according to the specified condition].
2130
2318
  * @extends {ɵSingleFilter}
2131
2319
  */
2132
2320
  export declare class ɵExistsFilter extends ɵSingleFilter {
2321
+ /**
2322
+ * @description Type of filter.
2323
+ * @default 5
2324
+ */
2325
+ readonly filterType: 5;
2133
2326
  /* Excluded from this release type: _instanceOfKey */
2134
2327
  /* Excluded from this release type: _instanceOfKeys */
2135
2328
  /**
2136
2329
  * @description Subquery filters. Cannot contain filters with other subqueries.
2330
+ * @hidden
2137
2331
  */
2138
2332
  readonly subFilters?: ɵFilterGroup;
2139
2333
  /**
2140
2334
  * @description Indicates that the filter is aggregating.
2335
+ * @default true
2141
2336
  */
2142
2337
  readonly isAggregative: boolean;
2143
- constructor(leftExpression: ɵBaseExpression, subFilters?: ɵFilterGroup, comparisonType?: ɵComparisonType, isAggregative?: boolean);
2338
+ constructor(leftExpression: IESQExpression, subFilters?: ɵFilterGroup, comparisonType?: ɵComparisonType, isAggregative?: boolean);
2144
2339
  /**
2145
2340
  * Parses filter from json.
2146
2341
  * @public
@@ -2200,7 +2395,11 @@ export declare class ɵExpressionResolver {
2200
2395
 
2201
2396
  /**
2202
2397
  * @public
2398
+ * @generativeApi
2203
2399
  * @description Type of expression.
2400
+ * 0 - SchemaColumn (Reference to a data column), 1 - Function (Function call expression),
2401
+ * 2 - Parameter (Parameter value), 3 - SubQuery (Nested query expression),
2402
+ * 4 - ArithmeticOperation (Mathematical operation)
2204
2403
  */
2205
2404
  export declare enum ɵExpressionType {
2206
2405
  /**
@@ -2231,23 +2430,33 @@ export declare enum ɵExpressionType {
2231
2430
  * i.e. The collection itself can be an element of another collection.
2232
2431
  * @extends {ɵBaseFilter}
2233
2432
  */
2234
- export declare class ɵFilterGroup extends ɵBaseFilter {
2433
+ export declare class ɵFilterGroup extends ɵBaseFilter implements IFilterGroup {
2434
+ /**
2435
+ * @description Type of filter.
2436
+ * @default 6
2437
+ */
2438
+ readonly filterType = ɵFilterType.FilterGroup;
2235
2439
  /* Excluded from this release type: _instanceOfKey */
2236
2440
  /* Excluded from this release type: _instanceOfKeys */
2237
2441
  /**
2238
2442
  * @public
2443
+ * @hidden
2239
2444
  * @description Collection of child filters.
2240
2445
  */
2241
2446
  filters: Map<string, ɵBaseFilter>;
2242
2447
  /**
2243
2448
  * @public
2244
- * @description Return collecion of deserialized filters.
2449
+ * @description Returns collection of child filters or filter groups.
2450
+ * Each item is a key-value pair,
2451
+ * where the key is autogenerated or user-defined name, and value - filter or a filter group
2452
+ * @default {}
2245
2453
  */
2246
2454
  get items(): {
2247
2455
  [key: string]: ɵBaseFilter;
2248
2456
  };
2249
2457
  /**
2250
- * @description The type of the logical operation for a combination of filters in the collection.
2458
+ * @description The type of the logical operation for a combination of filters in this filter group.
2459
+ * @default 0
2251
2460
  */
2252
2461
  logicalOperation: ɵLogicalOperatorType;
2253
2462
  /**
@@ -2387,6 +2596,12 @@ export declare class ɵFilterResolver {
2387
2596
  /**
2388
2597
  * @public
2389
2598
  * @description The type of filter.
2599
+ * - 0 None, No filter applied.
2600
+ * - 1 Compare, Comparison filter (e.g., equal to, greater than).
2601
+ * - 2 IsNull, Checks if a value is null.
2602
+ * - 4 In, Checks if a value is in a specified set of values.
2603
+ * - 5 Exists, Checks if a value exists.
2604
+ * - 6 FilterGroup, A group of filters combined with logical operators (AND, OR).
2390
2605
  */
2391
2606
  export declare enum ɵFilterType {
2392
2607
  /**
@@ -2407,6 +2622,8 @@ export declare enum ɵFilterType {
2407
2622
  /**
2408
2623
  * @public
2409
2624
  * @description Checks if a value is between two specified values.
2625
+ * should be used with {@link ɵBetweenFilter}
2626
+ * @hidden
2410
2627
  */
2411
2628
  Between = 3,
2412
2629
  /**
@@ -2440,7 +2657,9 @@ export declare interface ɵFiltrationPlatformAPIOptions extends ɵPlatformAPIOpt
2440
2657
  /**
2441
2658
  * @public
2442
2659
  * @abstract
2660
+ * @generativeApi
2443
2661
  * @description A class that describes a functional expression.
2662
+ * Functional expressions are evaluated on BE to produce a value based on the function type.
2444
2663
  * @extends {ɵFunctionExpression}
2445
2664
  */
2446
2665
  export declare abstract class ɵFunctionExpression extends ɵBaseExpression {
@@ -2448,6 +2667,7 @@ export declare abstract class ɵFunctionExpression extends ɵBaseExpression {
2448
2667
  /* Excluded from this release type: _instanceOfKeys */
2449
2668
  /**
2450
2669
  * @description Expression type. Default 'Function'.
2670
+ * @default 1.
2451
2671
  */
2452
2672
  readonly expressionType: ɵExpressionType;
2453
2673
  /**
@@ -2475,7 +2695,13 @@ export declare type ɵFunctionStringType = 'aggregation' | 'datePart' | 'none';
2475
2695
 
2476
2696
  /**
2477
2697
  * @public
2478
- * @description The type of function in the filter.
2698
+ * @generativeApi
2699
+ * @description The type of function in the filter, or in the aggregation function
2700
+ * 0 - None (Function type not defined), 1 - Macros (Substitution by macro),
2701
+ * 2 - Aggregation (Aggregating function), 3 - DatePart (Date fragment),
2702
+ * 4 - Length (Size of value in bytes), 5 - Window (Window query function),
2703
+ * 6 - DateAdd (Date addition), 7 - DateDiff (Date difference).
2704
+ * if used in aggregation function, use 2 by default.
2479
2705
  */
2480
2706
  export declare enum ɵFunctionType {
2481
2707
  /**
@@ -2523,6 +2749,7 @@ export declare function ɵgenerateGuid(): ɵGuid;
2523
2749
  /* Excluded from this release type: ɵgetFilterPlainObj */
2524
2750
 
2525
2751
  /**
2752
+ * @generativeApi
2526
2753
  * @description Type for Guid value.
2527
2754
  * @public
2528
2755
  */
@@ -2530,17 +2757,24 @@ export declare type ɵGuid = string;
2530
2757
 
2531
2758
  /**
2532
2759
  * @public
2533
- * @description In-Filter Class
2760
+ * @generativeApi
2761
+ * @description Filter that checks if the value of {@link #leftExpression} is satisfied
2762
+ * by each of expressions in the array of {@link #rightExpressions}.
2534
2763
  * @extends {ɵSingleFilter}
2535
2764
  */
2536
2765
  export declare class ɵInFilter extends ɵSingleFilter {
2766
+ /**
2767
+ * @description Type of filter. 4 means filter of type "In".
2768
+ * @default 4
2769
+ */
2770
+ readonly filterType: 4;
2537
2771
  /* Excluded from this release type: _instanceOfKey */
2538
2772
  /* Excluded from this release type: _instanceOfKeys */
2539
2773
  /**
2540
2774
  * @description An array of expressions that will be compared with {@link #leftExpression}.
2541
2775
  */
2542
- readonly rightExpressions: ɵBaseExpression[];
2543
- constructor(comparisonType: ɵComparisonType, leftExpression: ɵBaseExpression, rightExpressions: ɵBaseExpression[]);
2776
+ readonly rightExpressions: IESQExpression[];
2777
+ constructor(comparisonType: ɵComparisonType, leftExpression: IESQExpression, rightExpressions: IESQExpression[]);
2544
2778
  /**
2545
2779
  * @description Parses in filter from json.
2546
2780
  * @public
@@ -2559,6 +2793,7 @@ export declare class ɵInFilter extends ɵSingleFilter {
2559
2793
  */
2560
2794
  export declare class ɵInsertQuery extends ɵBaseQuery {
2561
2795
  private _columnValues;
2796
+ /* Excluded from this release type: _queryDtoType */
2562
2797
  constructor(rootSchemaName: string);
2563
2798
  /**
2564
2799
  * @description A collection of column values for updating entities.
@@ -2595,17 +2830,27 @@ export declare function ɵisGuid(value: unknown): boolean;
2595
2830
 
2596
2831
  /**
2597
2832
  * @public
2598
- * @description IsNull filter Class
2833
+ * @generativeApi
2834
+ * @description Filter that checks if the value of {@link #leftExpression} equals to null or not.
2599
2835
  * @extends {ɵSingleFilter}
2600
2836
  */
2601
2837
  export declare class ɵIsNullFilter extends ɵSingleFilter {
2838
+ /**
2839
+ * @description Type of filter.
2840
+ * @default 2
2841
+ */
2842
+ readonly filterType: 2;
2602
2843
  /**
2603
2844
  * @description Flag that indicates if expression is empty or not.
2604
2845
  */
2605
2846
  isNull: boolean;
2606
2847
  /* Excluded from this release type: _instanceOfKey */
2607
- /* Excluded from this release type: _instanceOfKeys */
2608
- constructor(comparisonType: ɵComparisonType.Is_null | ɵComparisonType.Is_not_null, leftExpression: ɵBaseExpression);
2848
+ /**
2849
+ * @internale
2850
+ * @dontChange
2851
+ */
2852
+ protected static get _instanceOfKeys(): string[];
2853
+ constructor(comparisonType: ɵComparisonType.Is_null | ɵComparisonType.Is_not_null, leftExpression: IESQExpression);
2609
2854
  private static _getComparisonType;
2610
2855
  /**
2611
2856
  * @description Parses isNull filter from json.
@@ -2661,9 +2906,14 @@ export declare type ɵJsonData = string | number | boolean | null | undefined |
2661
2906
 
2662
2907
  /**
2663
2908
  * @public
2909
+ * @generativeApi
2910
+ * @hidden
2664
2911
  * @description JSON object.
2665
2912
  */
2666
2913
  export declare interface ɵJsonObject {
2914
+ /**
2915
+ * @hidden
2916
+ * */
2667
2917
  [key: string]: ɵJsonData;
2668
2918
  }
2669
2919
 
@@ -2678,6 +2928,7 @@ export declare class ɵLengthFunctionColumn extends ɵBaseQueryColumn<ɵLengthFu
2678
2928
 
2679
2929
  /**
2680
2930
  * @public
2931
+ * @generativeApi
2681
2932
  * @description A class that describes expression with length function.
2682
2933
  * @extends {ɵArgumentFunctionExpression}
2683
2934
  */
@@ -2729,7 +2980,9 @@ export declare type ɵLocalizeFn = (key: string) => string;
2729
2980
 
2730
2981
  /**
2731
2982
  * @public
2732
- * @description The type of logical operation.
2983
+ * @generativeApi
2984
+ * @description The type of logical operation used to combine multiple conditions in filters.
2985
+ * 0 - And (All conditions must be true), 1 - Or (At least one condition must be true)
2733
2986
  */
2734
2987
  export declare enum ɵLogicalOperatorType {
2735
2988
  /**
@@ -2744,6 +2997,7 @@ export declare enum ɵLogicalOperatorType {
2744
2997
 
2745
2998
  /**
2746
2999
  * @public
3000
+ * @genearativeApi
2747
3001
  * @description Required shape for lookup.
2748
3002
  * @extends {ɵJsonObject}
2749
3003
  * @property {string} displayValue - Value witch will be displayed in lookup
@@ -2799,6 +3053,7 @@ export declare class ɵMacrosFunctionColumn extends ɵBaseQueryColumn<ɵMacrosFu
2799
3053
 
2800
3054
  /**
2801
3055
  * @public
3056
+ * @generativeApi
2802
3057
  * @description A class that describes expression with macros function.
2803
3058
  * @extends {ɵFunctionExpression}
2804
3059
  */
@@ -2807,6 +3062,7 @@ export declare class ɵMacrosFunctionExpression extends ɵFunctionExpression {
2807
3062
  /* Excluded from this release type: _instanceOfKeys */
2808
3063
  /**
2809
3064
  * @description Function type. Default 'Macros'.
3065
+ * @default 1
2810
3066
  */
2811
3067
  readonly functionType: ɵFunctionType;
2812
3068
  /**
@@ -2815,8 +3071,9 @@ export declare class ɵMacrosFunctionExpression extends ɵFunctionExpression {
2815
3071
  readonly macrosType: ɵQueryMacrosType;
2816
3072
  /**
2817
3073
  * @description Function argument.
3074
+ * it is optional and exists only for some macros functions.
2818
3075
  */
2819
- readonly functionArgument?: ɵBaseExpression;
3076
+ readonly functionArgument?: IESQExpression;
2820
3077
  constructor(config: ɵMacrosFunctionExpressionConfig);
2821
3078
  /**
2822
3079
  * Parses expression from json.
@@ -3013,7 +3270,9 @@ export declare class ɵNextHandlerAlreadySpecifiedException extends Error {
3013
3270
 
3014
3271
  /**
3015
3272
  * @public
3016
- * @description Sort order (can be set to None).
3273
+ * @generativeApi
3274
+ * @description Specifies the sort direction for query results.
3275
+ * 0 - None (No specific ordering), 1 - Asc (Ascending order, A-Z, 0-9), 2 - Desc (Descending order, Z-A, 9-0)
3017
3276
  */
3018
3277
  export declare enum ɵOrderDirection {
3019
3278
  /**
@@ -3032,7 +3291,9 @@ export declare enum ɵOrderDirection {
3032
3291
 
3033
3292
  /**
3034
3293
  * @public
3294
+ * @generativeApi
3035
3295
  * @description The class that defines the parametric expression.
3296
+ * It means that result of this expression is a parameter value.
3036
3297
  * @extends {ɵBaseExpression}
3037
3298
  */
3038
3299
  export declare class ɵParameterExpression extends ɵBaseExpression {
@@ -3044,20 +3305,21 @@ export declare class ɵParameterExpression extends ɵBaseExpression {
3044
3305
  readonly expressionType: ɵExpressionType;
3045
3306
  /**
3046
3307
  * @description Parameter value.
3308
+ * @hidden
3047
3309
  */
3048
3310
  readonly value: ɵEntityColumnValue;
3049
3311
  /**
3050
3312
  * @description Parameter value type.
3313
+ * @hidden
3051
3314
  */
3052
3315
  readonly dataValueType: ɵDataValueType;
3053
3316
  /**
3054
- * @description Parameter object reference.
3317
+ * @description Parameter object reference. Defines the value and type of the parameter.
3318
+ * dateValue property exists only if dataValueType === ɵDataValueType.DateTime.
3319
+ * if dataValueType === ɵDataValueType.DateTime, dataValueType will contain the ISO 8601 date string and
3320
+ * value will contain the same date, but wrapped in escaped string. E.g.: "\"2023-01-01T00:00:00.000Z\""
3055
3321
  */
3056
- readonly parameter: {
3057
- value?: ɵEntityColumnValue;
3058
- arrayValue?: string[];
3059
- dataValueType: ɵDataValueType;
3060
- };
3322
+ readonly parameter: IParameterDefinition;
3061
3323
  constructor(config: ɵParameterExpressionConfig);
3062
3324
  /**
3063
3325
  * Parses expression from json.
@@ -3140,7 +3402,36 @@ export declare interface ɵPrimaryDisplayFilterDataSourceParameter extends ɵBas
3140
3402
 
3141
3403
  /**
3142
3404
  * @public
3143
- * @description The type of macros.
3405
+ * @generativeApi
3406
+ * @description Defines the types of macros that can be used in queries.
3407
+ * 0 - None (No macro), 1 - CurrentUser (Current user ID), 2 - CurrentUserContact (User's contact),
3408
+ * 3 - Yesterday (Previous day), 4 - Today (Current day), 5 - Tomorrow (Next day),
3409
+ * 6 - PreviousWeek (Last week), 7 - CurrentWeek (This week), 8 - NextWeek (Coming week),
3410
+ * 9 - PreviousMonth (Last month), 10 - CurrentMonth (This month), 11 - NextMonth (Coming month)
3411
+ * 12 - Previous quarter.
3412
+ * 13 - Current quarter.
3413
+ * 14 - Next quarter.
3414
+ * 15 - Previous half of the year.
3415
+ * 16 - Current half-year.
3416
+ * 17 - Next half-year.
3417
+ * 18 - Last year.
3418
+ * 19 - This year.
3419
+ * 20 - Previous hour.
3420
+ * 21 - Current hour.
3421
+ * 22 - Next hour.
3422
+ * 23 - Next year.
3423
+ * 24 - Next N Days.
3424
+ * 25 - Previous N days.
3425
+ * 26 - Next N hours.
3426
+ * 27 - Previous N hours.
3427
+ * 34 - Primary column.
3428
+ * 35 - Primary displayed column.
3429
+ * 36 - Primary image display column.
3430
+ * 37 - Anniversary today.
3431
+ * 38 - Anniversary on the date computed as today plus days offset.
3432
+ * 39 - Anniversary on the next several days.
3433
+ * 40 - Anniversary on the previous several days.
3434
+ * 41 - Primary color display column.
3144
3435
  */
3145
3436
  export declare enum ɵQueryMacrosType {
3146
3437
  /**
@@ -3417,6 +3708,7 @@ export declare interface ɵSerializable {
3417
3708
 
3418
3709
  /**
3419
3710
  * @public
3711
+ * @generativeApi
3420
3712
  * @description Basic filter class with one condition.
3421
3713
  * @extends {ɵBaseFilter}
3422
3714
  */
@@ -3425,13 +3717,20 @@ export declare abstract class ɵSingleFilter extends ɵBaseFilter {
3425
3717
  /* Excluded from this release type: _instanceOfKeys */
3426
3718
  /**
3427
3719
  * @description Type of comparison operation.
3720
+ * this comparison type defines how the {@link #leftExpression} will be compared
3721
+ * with the value of the right expression.
3428
3722
  */
3429
3723
  readonly comparisonType: ɵComparisonType;
3430
3724
  /**
3431
- * @description The test expression.
3725
+ * @description expression that contains the value to be compared with the right expressions.
3726
+ */
3727
+ readonly leftExpression: IESQExpression;
3728
+ /**
3729
+ * @description name of the entity schema, connected to the root schema of the filter.
3730
+ * Used, when one of the expressions uses a column from another schema.
3432
3731
  */
3433
- readonly leftExpression: ɵBaseExpression;
3434
- protected constructor(filterType: ɵFilterType, comparisonType: ɵComparisonType, leftExpression: ɵBaseExpression);
3732
+ readonly referenceSchemaName?: string;
3733
+ protected constructor(filterType: ɵFilterType, comparisonType: ɵComparisonType, leftExpression: IESQExpression);
3435
3734
  /** {@inheritDoc ɵSerializable.toJson} */
3436
3735
  toJson(): ɵJsonObject;
3437
3736
  /* Excluded from this release type: _getUsedColumns */
@@ -3576,6 +3875,7 @@ export declare type ɵType<T = any> = new (...args: any[]) => T;
3576
3875
  */
3577
3876
  export declare class ɵUpdateQuery extends ɵBaseFilterableQuery {
3578
3877
  private _columnValues;
3878
+ /* Excluded from this release type: _queryDtoType */
3579
3879
  /**
3580
3880
  * @description Flag that indicates whether to force save data.
3581
3881
  */
@@ -3675,6 +3975,7 @@ export declare class ɵWindowFunctionColumn extends ɵBaseQueryColumn<ɵWindowFu
3675
3975
 
3676
3976
  /**
3677
3977
  * @public
3978
+ * @generativeApi
3678
3979
  * @description A class that describes expression with window function.
3679
3980
  * @extends {ɵArgumentFunctionExpression}
3680
3981
  */