@creatio-devkit/common 0.806.0 → 0.807.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 (54) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/esm2020/lib/external/functions/aggregation-adapter.mjs +49 -1
  3. package/esm2020/lib/external/functions/date-part-type-adapter.mjs +48 -0
  4. package/esm2020/lib/external/functions/function-type-adapter.mjs +28 -0
  5. package/esm2020/lib/external/functions/index.mjs +4 -1
  6. package/esm2020/lib/external/functions/order-direction-adapter.mjs +28 -0
  7. package/esm2020/lib/index.mjs +2 -1
  8. package/esm2020/lib/internal/enums/data-schema-attribute-type.enum.mjs +2 -1
  9. package/esm2020/lib/internal/esq/data-model/queries/entity-schema-query.mjs +3 -2
  10. package/esm2020/lib/internal/esq/data-model/queries/index.mjs +2 -1
  11. package/esm2020/lib/internal/esq/data-model/queries/insert-query.mjs +1 -1
  12. package/esm2020/lib/internal/esq/data-model/queries/select-localization-query.mjs +7 -0
  13. package/esm2020/lib/internal/esq/data-model/queries/update-query.mjs +1 -1
  14. package/esm2020/lib/internal/model/data-schema/data-schema-attribute-aggregation-config.model.mjs +2 -0
  15. package/esm2020/lib/internal/model/data-schema/data-schema-attribute-function-config.model.mjs +2 -0
  16. package/esm2020/lib/internal/model/data-schema/data-schema-validator-config.model.mjs +2 -0
  17. package/esm2020/lib/internal/model/data-schema/index.mjs +4 -0
  18. package/esm2020/lib/internal/model/data-source-config.mjs +1 -1
  19. package/esm2020/lib/internal/model/index.mjs +2 -3
  20. package/esm2020/lib/internal/models/internal-interface-designer-item-registration-config.model.mjs +1 -1
  21. package/esm2020/lib/internal/types/index.mjs +2 -0
  22. package/esm2020/lib/internal/types/localizable-values.type.mjs +2 -0
  23. package/esm2020/lib/public/enums/data-value-type.enum.mjs +2 -1
  24. package/esm2020/lib/public/esq/data-model/expressions/parameters/parameter-expression.mjs +1 -1
  25. package/esm2020/lib/public/esq/data-model/filters/filter-group.mjs +1 -1
  26. package/esm2020/lib/public/esq/data-model/filters/isnull-filter.mjs +1 -1
  27. package/esm2020/lib/public/models/lookup-value.model.mjs +1 -1
  28. package/esm2020/lib/public/services/feature/feature.service.mjs +1 -1
  29. package/esm2020/lib/public/services/http-client/http-client.service.mjs +1 -1
  30. package/esm2020/lib/public/services/mask-service/mask.service.mjs +1 -1
  31. package/esm2020/lib/public/services/model/data-schema-attribute.mjs +1 -1
  32. package/esm2020/lib/public/services/model/data-schema.mjs +1 -1
  33. package/esm2020/lib/public/services/model/data-source-aggregation-config.mjs +1 -1
  34. package/esm2020/lib/public/services/model/data-source-attribute.mjs +1 -1
  35. package/esm2020/lib/public/services/model/data-source-function-config.mjs +2 -0
  36. package/esm2020/lib/public/services/model/data-source-parameter.mjs +1 -1
  37. package/esm2020/lib/public/services/model/index.mjs +2 -1
  38. package/esm2020/lib/public/services/model/model.mjs +10 -10
  39. package/esm2020/lib/public/services/rights/rights.service.mjs +1 -1
  40. package/esm2020/lib/public/services/sys-settings/sys-settings.service.mjs +1 -1
  41. package/esm2020/lib/public/services/sys-values/sys-values.service.mjs +1 -1
  42. package/esm2020/lib/public/types/aggregation-eval.type.mjs +2 -0
  43. package/esm2020/lib/public/types/date-part.type.mjs +2 -0
  44. package/esm2020/lib/public/types/function.type.mjs +2 -0
  45. package/esm2020/lib/public/types/guid.type.mjs +2 -2
  46. package/esm2020/lib/public/types/index.mjs +4 -1
  47. package/fesm2015/creatio-devkit-common.mjs +169 -12
  48. package/fesm2015/creatio-devkit-common.mjs.map +1 -1
  49. package/fesm2020/creatio-devkit-common.mjs +169 -12
  50. package/fesm2020/creatio-devkit-common.mjs.map +1 -1
  51. package/{creatio-devkit-common.d.ts → index.d.ts} +105 -3
  52. package/package.json +7 -5
  53. package/esm2020/lib/internal/model/data-schema/data-schema-attribute-aggregation-config.mjs +0 -2
  54. package/esm2020/lib/internal/model/data-schema/data-schema-validator-config.mjs +0 -2
@@ -6,6 +6,8 @@ export declare type AbstractType<T = any> = abstract new (...args: any[]) => T;
6
6
 
7
7
  /* Excluded from this release type: AddRequestHandlerListener */
8
8
 
9
+ export declare type AggregationEval = 'all' | 'distinct' | 'none';
10
+
9
11
  export declare enum AggregationEvalType {
10
12
  /** The scope of the aggregating function is not defined. */
11
13
  None = 0,
@@ -123,6 +125,12 @@ export declare class ArithmeticQueryColumn extends BaseQueryColumn<ArithmeticExp
123
125
 
124
126
  /* Excluded from this release type: AttributeValueConfig */
125
127
 
128
+ /* Excluded from this release type: BaseDataSchemaAttributeFunctionConfig */
129
+
130
+ declare interface BaseDataSourceFunctionConfig {
131
+ type: FunctionStringType;
132
+ }
133
+
126
134
  /**
127
135
  * @public
128
136
  */
@@ -772,7 +780,9 @@ export declare class DataRequest extends BaseRequest {
772
780
  * @property {string} name - name of DataSchema.
773
781
  * @property {string} primaryAttributeName - name of primary attribute.
774
782
  * @property {string} primaryDisplayAttributeName - name of primary display attribute.
775
- * @property {string} hierarchyAttributeName - name of the column that binds the parent record, for hierarchical entities.
783
+ * @property {string} hierarchyAttributeName - name of the column that binds the parent record,
784
+ * for hierarchical entities.
785
+ * @property {string} primaryColorAttributeName - name of the column that defines color.
776
786
  */
777
787
  export declare interface DataSchema {
778
788
  name: string;
@@ -787,12 +797,14 @@ export declare interface DataSchema {
787
797
  primaryAttributeName?: string;
788
798
  primaryDisplayAttributeName?: string;
789
799
  hierarchyAttributeName?: string;
800
+ primaryColorAttributeName?: string;
790
801
  /* Excluded from this release type: dataSourceConfig */
791
802
  }
792
803
 
793
804
  /**
794
805
  * @public
795
- * @description DataSchemaAttribute describes the structure of the single attribute of data-object that the application works with.
806
+ * @description DataSchemaAttribute describes the structure of the single attribute
807
+ * of data-object that the application works with.
796
808
  * @property {string} name - name of DataSchemaAttribute.
797
809
  * @property {string} caption - caption of DataSchemaAttribute.
798
810
  * @property {string} isValueCloneable - copy this DataSchemaAttribute value when copying object.
@@ -816,6 +828,7 @@ export declare interface DataSchemaAttribute {
816
828
  isValueCloneable: boolean;
817
829
  /* Excluded from this release type: attributeType */
818
830
  referenceSchemaName?: string;
831
+ /* Excluded from this release type: functionConfig */
819
832
  /* Excluded from this release type: aggregationConfig */
820
833
  isMasked: boolean;
821
834
  isFormatValidated: boolean;
@@ -829,6 +842,12 @@ export declare interface DataSchemaAttribute {
829
842
 
830
843
  /* Excluded from this release type: DataSchemaAttributeAggregationConfig */
831
844
 
845
+ /* Excluded from this release type: DataSchemaAttributeAggregationFunctionConfig */
846
+
847
+ /* Excluded from this release type: DataSchemaAttributeDatePartFunctionConfig */
848
+
849
+ /* Excluded from this release type: DataSchemaAttributeFunctionConfig */
850
+
832
851
  /* Excluded from this release type: DataSchemaAttributeType */
833
852
 
834
853
  /* Excluded from this release type: DataSchemaAttributeUsageType */
@@ -844,17 +863,30 @@ export declare interface DataSourceAggregationConfig {
844
863
  sortByDirection?: OrderDirection;
845
864
  }
846
865
 
866
+ export declare interface DataSourceAggregationFunctionConfig extends BaseDataSourceFunctionConfig {
867
+ type: 'aggregation';
868
+ aggregation: AggregationFunction;
869
+ aggregationEval: AggregationEval;
870
+ }
871
+
847
872
  /**
848
873
  * @public
849
874
  */
850
875
  export declare interface DataSourceAttribute {
876
+ type?: DataSourceAttributeType;
851
877
  name: string;
852
878
  path: string;
853
879
  caption?: string;
854
880
  dataValueType?: DataValueType;
881
+ functionConfig?: DataSourceFunctionConfig;
855
882
  aggregationConfig?: DataSourceAggregationConfig;
856
883
  }
857
884
 
885
+ /**
886
+ * @public
887
+ */
888
+ export declare type DataSourceAttributeType = 'default' | 'aggregation' | 'function';
889
+
858
890
  export declare interface DataSourceCanExecuteOperationPayload {
859
891
  primaryColumnValue?: string;
860
892
  }
@@ -866,6 +898,13 @@ export declare interface DataSourceCanExecuteOperationResult {
866
898
 
867
899
  /* Excluded from this release type: DataSourceConfig */
868
900
 
901
+ export declare interface DataSourceDatePartFunctionConfig extends BaseDataSourceFunctionConfig {
902
+ type: 'datePart';
903
+ datePart: DatePart;
904
+ }
905
+
906
+ export declare type DataSourceFunctionConfig = DataSourceAggregationFunctionConfig | DataSourceDatePartFunctionConfig;
907
+
869
908
  /**
870
909
  * @public
871
910
  */
@@ -903,6 +942,8 @@ export declare interface DataSourceParameterRelationConfig {
903
942
  dataSchemaName: string;
904
943
  attributePath: string;
905
944
  relationPath: string;
945
+ /* Excluded from this release type: useAttributeValue */
946
+ /* Excluded from this release type: value */
906
947
  }
907
948
 
908
949
  /**
@@ -981,12 +1022,19 @@ export declare enum DataValueType {
981
1022
  OBJECT_LIST = 38,
982
1023
  COMPOSITE_OBJECT_LIST = 39,
983
1024
  FLOAT8 = 40,
1025
+ FILE_LOCATOR = 41,
984
1026
  PHONE_TEXT = 42,
985
1027
  RICH_TEXT = 43,
986
1028
  WEB_TEXT = 44,
987
1029
  EMAIL_TEXT = 45
988
1030
  }
989
1031
 
1032
+ /**
1033
+ * @public
1034
+ * @description type of date part
1035
+ */
1036
+ export declare type DatePart = 'minute' | 'hour' | 'day' | 'weekday' | 'week' | 'month' | 'year' | 'none';
1037
+
990
1038
  export declare class DatePartFunctionColumn extends BaseQueryColumn<DatePartFunctionExpression> {
991
1039
  constructor(datePartType: DatePartType, functionArgument: BaseExpression);
992
1040
  get datePartType(): DatePartType;
@@ -1169,6 +1217,12 @@ export declare abstract class FunctionExpression extends BaseExpression {
1169
1217
 
1170
1218
  export declare type FunctionExpressionConfig<TExpression extends FunctionExpression> = Omit<ExpressionConfig<TExpression>, 'functionType'>;
1171
1219
 
1220
+ /**
1221
+ * @public
1222
+ * @description type of function
1223
+ */
1224
+ export declare type FunctionStringType = 'aggregation' | 'datePart' | 'none';
1225
+
1172
1226
  export declare enum FunctionType {
1173
1227
  None = 0,
1174
1228
  /** Substitution by macro. */
@@ -1212,7 +1266,7 @@ export declare enum FunctionType {
1212
1266
  /* Excluded from this release type: GroupedDateValue */
1213
1267
 
1214
1268
  /**
1215
- * Type for Guid value.
1269
+ * Type for Guid value.
1216
1270
  * @public
1217
1271
  */
1218
1272
  export declare type Guid = string;
@@ -1545,6 +1599,8 @@ export declare type LengthFunctionExpressionConfig = ArgumentFunctionExpressionC
1545
1599
  */
1546
1600
  export declare type LocalizableString = string | Record<string, unknown>;
1547
1601
 
1602
+ /* Excluded from this release type: LocalizableStringValues */
1603
+
1548
1604
  /**
1549
1605
  * @public
1550
1606
  */
@@ -1555,6 +1611,8 @@ export declare class LocalizableValue {
1555
1611
  /* Excluded from this release type: [Symbol.hasInstance] */
1556
1612
  }
1557
1613
 
1614
+ /* Excluded from this release type: LocalizableValues */
1615
+
1558
1616
  /**
1559
1617
  * @public
1560
1618
  * @description Use this function in decorators to indicate that a value should be localized.
@@ -1599,6 +1657,7 @@ export declare enum LogicalOperatorType {
1599
1657
  * @property {string} displayValue - Value witch will be displayed in lookup
1600
1658
  * @property {string} primaryImageValue - Image for lookup value
1601
1659
  * @property {Guid} value - {@link Guid} - actual lookup value
1660
+ * @property {string} primaryColorValue - display color of lookup value
1602
1661
  */
1603
1662
  export declare interface LookupValue extends JsonObject {
1604
1663
  /**
@@ -1613,6 +1672,10 @@ export declare interface LookupValue extends JsonObject {
1613
1672
  * @description actual lookup value
1614
1673
  */
1615
1674
  value: Guid;
1675
+ /**
1676
+ * @description display color of lookup value
1677
+ */
1678
+ primaryColorValue?: string;
1616
1679
  }
1617
1680
 
1618
1681
  /**
@@ -1797,6 +1860,20 @@ export declare class ParameterQueryColumn extends BaseQueryColumn<ParameterExpre
1797
1860
 
1798
1861
  /* Excluded from this release type: PkgTopology */
1799
1862
 
1863
+ /**
1864
+ * @public
1865
+ * @description Response for preload cachable system settings.
1866
+ * @extends {BaseResponse}
1867
+ * @property {Record<string, SysSetting>} values - system settings values
1868
+ */
1869
+ export declare interface PreloadSysSettingsResponse extends BaseResponse {
1870
+ /**
1871
+ * @type {Record<string, SysSetting>}
1872
+ * @description system settings values. {@link SysSetting}
1873
+ */
1874
+ values: Record<string, SysSetting>;
1875
+ }
1876
+
1800
1877
  /**
1801
1878
  * @public
1802
1879
  */
@@ -1895,6 +1972,11 @@ export declare interface QuerySysSettingsResponse extends BaseResponse {
1895
1972
  * @description system settings values. {@link SysSetting}
1896
1973
  */
1897
1974
  values: Record<string, SysSetting>;
1975
+ /**
1976
+ * @type {Array<string>}
1977
+ * @description not found system settings codes.
1978
+ */
1979
+ notFoundSettings?: Array<string>;
1898
1980
  }
1899
1981
 
1900
1982
  /* Excluded from this release type: registerAngularViewElement */
@@ -2034,6 +2116,8 @@ export declare interface SaveSysSettingsResponse extends BaseResponse {
2034
2116
 
2035
2117
  /* Excluded from this release type: SchemaHandlerSource */
2036
2118
 
2119
+ /* Excluded from this release type: SelectLocalizationQuery */
2120
+
2037
2121
  /* Excluded from this release type: setDesignTimeViewElementMetadata */
2038
2122
 
2039
2123
  /* Excluded from this release type: setInterfaceDesignerItemMetadata */
@@ -2264,14 +2348,32 @@ export declare class SysValuesService extends BaseHandlerChainService {
2264
2348
  loadSysValues: () => Promise<SysValues>;
2265
2349
  }
2266
2350
 
2351
+ /* Excluded from this release type: toAggregationEval */
2352
+
2353
+ /* Excluded from this release type: toAggregationEvalType */
2354
+
2355
+ /* Excluded from this release type: toAggregationFunction */
2356
+
2267
2357
  /* Excluded from this release type: toAggregationType */
2268
2358
 
2359
+ /* Excluded from this release type: toDatePart */
2360
+
2361
+ /* Excluded from this release type: toDatePartType */
2362
+
2363
+ /* Excluded from this release type: toNumericFunctionType */
2364
+
2269
2365
  /* Excluded from this release type: ToolbarViewElementConfig */
2270
2366
 
2271
2367
  /* Excluded from this release type: ToolbarViewElementConfigType */
2272
2368
 
2369
+ /* Excluded from this release type: toOrderDirection */
2370
+
2273
2371
  /* Excluded from this release type: toPascalCase */
2274
2372
 
2373
+ /* Excluded from this release type: toSortDirection */
2374
+
2375
+ /* Excluded from this release type: toStringFunctionType */
2376
+
2275
2377
  /**
2276
2378
  * @public
2277
2379
  * @description Shape for generic type.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@creatio-devkit/common",
3
- "version": "0.806.0",
3
+ "version": "0.807.0",
4
4
  "description": "Allows developers to create customizations and integrate them to Creatio platform.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "keywords": [
@@ -8,7 +8,9 @@
8
8
  "devkit",
9
9
  "sdk"
10
10
  ],
11
- "peerDependencies": {},
11
+ "peerDependencies": {
12
+ "terser-webpack-plugin": "5.3.6"
13
+ },
12
14
  "dependencies": {
13
15
  "tslib": "^2.2.0",
14
16
  "shortid-extend": "0.0.3",
@@ -21,13 +23,13 @@
21
23
  "esm2020": "esm2020/creatio-devkit-common.mjs",
22
24
  "fesm2020": "fesm2020/creatio-devkit-common.mjs",
23
25
  "fesm2015": "fesm2015/creatio-devkit-common.mjs",
24
- "typings": "creatio-devkit-common.d.ts",
26
+ "typings": "index.d.ts",
25
27
  "exports": {
26
28
  "./package.json": {
27
29
  "default": "./package.json"
28
30
  },
29
31
  ".": {
30
- "types": "./creatio-devkit-common.d.ts",
32
+ "types": "./index.d.ts",
31
33
  "esm2020": "./esm2020/creatio-devkit-common.mjs",
32
34
  "es2020": "./fesm2020/creatio-devkit-common.mjs",
33
35
  "es2015": "./fesm2015/creatio-devkit-common.mjs",
@@ -36,4 +38,4 @@
36
38
  }
37
39
  },
38
40
  "sideEffects": false
39
- }
41
+ }
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGF0YS1zY2hlbWEtYXR0cmlidXRlLWFnZ3JlZ2F0aW9uLWNvbmZpZy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvc2RrL3V0aWwvc2RrL3NyYy9saWIvaW50ZXJuYWwvbW9kZWwvZGF0YS1zY2hlbWEvZGF0YS1zY2hlbWEtYXR0cmlidXRlLWFnZ3JlZ2F0aW9uLWNvbmZpZy50cyJdLCJuYW1lcyI6W10sIm1hc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