@creatio-devkit/common 0.812.0 → 0.813.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 +6 -0
  2. package/esm2020/lib/base-exports.mjs +4 -2
  3. package/esm2020/lib/internal/decorators/request/request.decorator.mjs +1 -1
  4. package/esm2020/lib/internal/models/converter/converter-registry-item.mjs +1 -1
  5. package/esm2020/lib/internal/models/index.mjs +3 -1
  6. package/esm2020/lib/internal/models/internal-interface-designer-item-registration-config.model.mjs +1 -1
  7. package/esm2020/lib/internal/models/internal-module-definition.mjs +2 -0
  8. package/esm2020/lib/internal/models/lazy-module-metadata.mjs +2 -0
  9. package/esm2020/lib/internal/models/lazy-module-ref.mjs +23 -0
  10. package/esm2020/lib/internal/models/lazy-registry-item.mjs +2 -0
  11. package/esm2020/lib/internal/models/request-handler/handler-config.mjs +1 -1
  12. package/esm2020/lib/internal/models/request-handler/request-handler-registration-config.model.mjs +1 -1
  13. package/esm2020/lib/internal/models/validator/validator-registry-item.mjs +1 -1
  14. package/esm2020/lib/internal/models/view-element/angular-view-element-registration-config.model.mjs +1 -1
  15. package/esm2020/lib/internal/models/view-element-registry-item.mjs +1 -1
  16. package/esm2020/lib/internal/services/global-converters-registry/converter-registry.mjs +9 -2
  17. package/esm2020/lib/internal/services/index.mjs +2 -1
  18. package/esm2020/lib/internal/services/lazy-modules-manager/index.mjs +2 -0
  19. package/esm2020/lib/internal/services/lazy-modules-manager/lazy-modules-manager.mjs +32 -0
  20. package/esm2020/lib/internal/services/request-handler-registry/request-handler-registry.service.mjs +17 -4
  21. package/esm2020/lib/internal/services/request-registry/request-registry.service.mjs +1 -1
  22. package/esm2020/lib/internal/services/validator-registry/validator-registry.mjs +11 -3
  23. package/esm2020/lib/internal/services/view-element-registry/view-element-registry.mjs +14 -2
  24. package/esm2020/lib/internal/utils/index.mjs +2 -1
  25. package/esm2020/lib/internal/utils/metadata-utils.mjs +1 -1
  26. package/esm2020/lib/internal/utils/request-handler-scopes.mjs +10 -0
  27. package/esm2020/lib/public/decorators/module/module.decorator.mjs +2 -18
  28. package/esm2020/lib/public/decorators/view-element/view-element.decorator.mjs +1 -1
  29. package/esm2020/lib/public/functions/bootstrap-crt-module-handler-chain-services.mjs +6 -2
  30. package/esm2020/lib/public/functions/bootstrap-crt-module.mjs +92 -4
  31. package/esm2020/lib/public/functions/index.mjs +2 -1
  32. package/esm2020/lib/public/functions/reset-globals.mjs +35 -0
  33. package/esm2020/lib/public/models/index.mjs +2 -1
  34. package/esm2020/lib/public/models/license/index.mjs +2 -0
  35. package/esm2020/lib/public/models/license/license-restriction-operation-values.model.mjs +2 -0
  36. package/esm2020/lib/public/models/request/index.mjs +1 -2
  37. package/esm2020/lib/public/services/handler-chain/handler-chain.service.mjs +13 -1
  38. package/esm2020/lib/public/services/handler-chain/internal-handler-chain.mjs +43 -11
  39. package/esm2020/lib/public/services/index.mjs +2 -1
  40. package/esm2020/lib/public/services/license/index.mjs +2 -0
  41. package/esm2020/lib/public/services/license/license.service.mjs +22 -0
  42. package/esm2020/lib/public/services/mask-service/index.mjs +1 -2
  43. package/esm2020/lib/public/services/mask-service/mask.service.mjs +2 -2
  44. package/esm2020/lib/public/services/model/model.mjs +4 -1
  45. package/fesm2015/creatio-devkit-common.mjs +295 -59
  46. package/fesm2015/creatio-devkit-common.mjs.map +1 -1
  47. package/fesm2020/creatio-devkit-common.mjs +306 -58
  48. package/fesm2020/creatio-devkit-common.mjs.map +1 -1
  49. package/index.d.ts +57 -4
  50. package/package.json +2 -2
  51. package/esm2020/lib/public/models/request/request-registration-config.model.mjs +0 -2
  52. package/esm2020/lib/public/services/mask-service/schema-view-mask.request.mjs +0 -22
package/index.d.ts CHANGED
@@ -102,6 +102,7 @@ import { ɵInsertQuery as InsertQuery } from '@creatio/base';
102
102
  import { ɵisEmptyGuid as isEmptyGuid } from '@creatio/base';
103
103
  import { ɵisGuid as isGuid } from '@creatio/base';
104
104
  import { ɵIsNullFilter as IsNullFilter } from '@creatio/base';
105
+ import { ɵItemCreationConfig as ItemCreationConfig } from '@creatio/base';
105
106
  import { ɵItemNotFoundException as ItemNotFoundException } from '@creatio/base';
106
107
  import { ɵJsonArray as JsonArray } from '@creatio/base';
107
108
  import { ɵJsonData as JsonData } from '@creatio/base';
@@ -132,7 +133,10 @@ import { ɵPrimaryDisplayFilterDataSourceParameter as PrimaryDisplayFilterDataSo
132
133
  import { ɵQueryMacrosType as QueryMacrosType } from '@creatio/base';
133
134
  import { ɵQueryOperationType as QueryOperationType } from '@creatio/base';
134
135
  import { ɵRequestHandler as RequestHandler } from '@creatio/base';
136
+ import { ɵRequestRegistrationConfig as RequestRegistrationConfig } from '@creatio/base';
135
137
  import { ɵResolveDependencyFn as ResolveDependencyFn } from '@creatio/base';
138
+ import { ɵSchemaViewMaskRequest as SchemaViewMaskRequest } from '@creatio/base';
139
+ import { ɵSchemaViewMaskRequestAction as SchemaViewMaskRequestAction } from '@creatio/base';
136
140
  import { ɵSelectLocalizationQuery as SelectLocalizationQuery } from '@creatio/base';
137
141
  import { ɵSingleFilter as SingleFilter } from '@creatio/base';
138
142
  import { ɵSortColumnOptions as SortColumnOptions } from '@creatio/base';
@@ -144,6 +148,7 @@ import { ɵtoLocalISOString as toLocalISOString } from '@creatio/base';
144
148
  import { ɵType as Type } from '@creatio/base';
145
149
  import { ɵUpdateQuery as UpdateQuery } from '@creatio/base';
146
150
  import { ɵValidationUtilities as ValidationUtilities } from '@creatio/base';
151
+ import { ɵViewModelCollection as ViewModelCollection } from '@creatio/base';
147
152
  import { ɵViewModelContext as ViewModelContext } from '@creatio/base';
148
153
  import { ɵWindowFunctionColumn as WindowFunctionColumn } from '@creatio/base';
149
154
  import { ɵWindowFunctionExpression as WindowFunctionExpression } from '@creatio/base';
@@ -613,6 +618,8 @@ export declare function CrtInterfaceDesignerItem(config: InterfaceDesignerItemDe
613
618
  */
614
619
  export declare function CrtModule(moduleDefinition: ModuleDefinition): (type: Type) => void;
615
620
 
621
+ /* Excluded declaration from this release type: CrtModule */
622
+
616
623
  /**
617
624
  * @public
618
625
  * @description User-defined components could notify Creatio platform about changes through CrtOutput decorator.
@@ -1036,6 +1043,7 @@ export declare class HandlerChainService {
1036
1043
  private _createGlobalHandlerChain;
1037
1044
  /* Excluded from this release type: clearContextedHandlersCache */
1038
1045
  /* Excluded from this release type: register */
1046
+ /* Excluded from this release type: update */
1039
1047
  /**
1040
1048
  * @description Method to process passed request
1041
1049
  * @param request - {@link ɵBaseRequest}
@@ -1043,6 +1051,7 @@ export declare class HandlerChainService {
1043
1051
  */
1044
1052
  process(request: BaseRequest): Promise<unknown>;
1045
1053
  /* Excluded from this release type: subscribe */
1054
+ /* Excluded from this release type: clear */
1046
1055
  }
1047
1056
 
1048
1057
  /* Excluded from this release type: HandlerChainServiceRegistryItem */
@@ -1281,6 +1290,8 @@ export declare interface InterfaceDesignerItemDefinition {
1281
1290
 
1282
1291
  /* Excluded from this release type: InternalInterfaceDesignerItemRegistrationConfig */
1283
1292
 
1293
+ /* Excluded from this release type: InternalModuleDefinition */
1294
+
1284
1295
  /* Excluded from this release type: InternalRequestHandlerRegistry */
1285
1296
 
1286
1297
  /* Excluded from this release type: InternalRequestHandlerRegistryType */
@@ -1300,6 +1311,8 @@ export { isGuid }
1300
1311
 
1301
1312
  export { IsNullFilter }
1302
1313
 
1314
+ export { ItemCreationConfig }
1315
+
1303
1316
  export { ItemNotFoundException }
1304
1317
 
1305
1318
  export { JsonArray }
@@ -1308,12 +1321,44 @@ export { JsonData }
1308
1321
 
1309
1322
  export { JsonObject }
1310
1323
 
1324
+ /* Excluded from this release type: LazyModuleMetadata */
1325
+
1326
+ /* Excluded from this release type: LazyModuleRef */
1327
+
1328
+ /* Excluded from this release type: LazyModulesManager */
1329
+
1330
+ /* Excluded from this release type: LazyRegistryItem */
1311
1331
  export { LengthFunctionColumn }
1312
1332
 
1313
1333
  export { LengthFunctionExpression }
1314
1334
 
1315
1335
  export { LengthFunctionExpressionConfig }
1316
1336
 
1337
+ /**
1338
+ * @public
1339
+ * @description Represents a object describes status of license operations
1340
+ * with keys as operations codes and values as operation statuses.
1341
+ */
1342
+ export declare interface LicenseRestrictionOperationValues {
1343
+ [operation: string]: boolean;
1344
+ }
1345
+
1346
+ /**
1347
+ * @public
1348
+ * @classdesc Represents a service to working with license restrictions.
1349
+ * @extends {BaseHandlerChainService}
1350
+ */
1351
+ export declare class LicenseService extends BaseHandlerChainService {
1352
+ /* Excluded from this release type: requestType */
1353
+ /**
1354
+ * @description Loads status of license operations.
1355
+ * @param {string[]} operationCodes - The license operation names.
1356
+ * @returns `Promise<LicenseRestrictionOperationValues[]>`
1357
+ * An object with keys as operations codes and values as operation statuses.
1358
+ */
1359
+ loadLicenseOperationStatuses: (operationCodes: string[]) => Promise<LicenseRestrictionOperationValues[]>;
1360
+ }
1361
+
1317
1362
  export { LocalizableString }
1318
1363
 
1319
1364
  /* Excluded from this release type: LocalizableStringValues */
@@ -1402,6 +1447,7 @@ export declare interface MaskSettings {
1402
1447
  delay: number;
1403
1448
  }
1404
1449
 
1450
+ /* Excluded from this release type: matchScopes */
1405
1451
  export { MetadataProvider }
1406
1452
 
1407
1453
  /* Excluded from this release type: MethodInvokeRequest */
@@ -1423,6 +1469,10 @@ export declare class Model extends BaseHandlerChainService implements BaseModel<
1423
1469
  load(config?: {
1424
1470
  attributes?: string[] | DataSourceAttribute[];
1425
1471
  parameters?: DataSourceParameters;
1472
+ options?: DataSourceLoadOptions;
1473
+ /**
1474
+ * @deprecated Use options instead.
1475
+ */
1426
1476
  loadOptions?: DataSourceLoadOptions;
1427
1477
  }): Promise<JsonArray>;
1428
1478
  insert(dto: JsonObject): Promise<DataSourceSaveResult>;
@@ -1610,10 +1660,11 @@ export declare interface RequestHandlerDefinition {
1610
1660
  /* Excluded from this release type: RequestHandlerRegistrationConfig */
1611
1661
 
1612
1662
  /* Excluded from this release type: RequestHandlerRegistryService */
1613
-
1614
- /* Excluded from this release type: RequestRegistrationConfig */
1663
+ export { RequestRegistrationConfig }
1615
1664
 
1616
1665
  /* Excluded from this release type: RequestRegistryService */
1666
+
1667
+ /* Excluded from this release type: resetGlobals */
1617
1668
  export { ResolveDependencyFn }
1618
1669
 
1619
1670
  /**
@@ -1657,10 +1708,10 @@ export declare interface SaveSysSettingsResponse extends BaseResponse {
1657
1708
  }
1658
1709
 
1659
1710
  /* Excluded from this release type: SchemaHandlerSource */
1711
+ export { SchemaViewMaskRequest }
1660
1712
 
1661
- /* Excluded from this release type: SchemaViewMaskRequest */
1713
+ export { SchemaViewMaskRequestAction }
1662
1714
 
1663
- /* Excluded from this release type: SchemaViewMaskRequestAction */
1664
1715
  export { SelectLocalizationQuery }
1665
1716
 
1666
1717
  /* Excluded from this release type: setConverterMetadata */
@@ -2011,6 +2062,8 @@ export declare interface ViewElementSlotDefinition {
2011
2062
  }
2012
2063
 
2013
2064
  /* Excluded from this release type: ViewElementVisibilityStrategy */
2065
+ export { ViewModelCollection }
2066
+
2014
2067
  export { ViewModelContext }
2015
2068
 
2016
2069
  export { WindowFunctionColumn }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@creatio-devkit/common",
3
- "version": "0.812.0",
3
+ "version": "0.813.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": [
@@ -14,7 +14,7 @@
14
14
  "class-transformer": "^0.5.1",
15
15
  "reflect-metadata": "^0.1.13",
16
16
  "lodash": "^4.17.21",
17
- "@creatio/base": "0.812.0",
17
+ "@creatio/base": "0.813.0",
18
18
  "terser-webpack-plugin": "5.3.10"
19
19
  },
20
20
  "sideEffects": false,
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVxdWVzdC1yZWdpc3RyYXRpb24tY29uZmlnLm1vZGVsLmpzIiwic291cmNlUm9vd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gKiBAaW50ZXJuYWxcblx0ICogVGl0bGUgb2YgcmVxdWVzdFxuXHQgKi9cblx0cmVhZG9ubHkgdGl0bGU/OiBzdHJpbmc7XG5cblx0LyoqXG5cdCAqIEBpbnRlcm5hbFxuXHQgKiBUeXBlIG9mIHByb3BlcnRpZXMgcGFuZWxcblx0ICovXG5cdHJlYWRvbmx5IHByb3BlcnRpZXNQYW5lbENvbXBvbmVudFR5cGVOYW1lPzogc3RyaW5nO1xuXG5cdC8qKlxuXHQgKiBAaW50ZXJuYWxcblx0ICogUG9zaXRpb24gb2YgdGhlIHJlcXVlc3Rcblx0ICovXG5cdHJlYWRvbmx5IHBvc2l0aW9uPzogbnVtYmVyO1xufVxuIl19
@@ -1,22 +0,0 @@
1
- import { BaseRequest } from '../../../base-exports';
2
- /**
3
- * @internal
4
- */
5
- export var SchemaViewMaskRequestAction;
6
- (function (SchemaViewMaskRequestAction) {
7
- SchemaViewMaskRequestAction["AddTask"] = "addTask";
8
- SchemaViewMaskRequestAction["RemoveTask"] = "removeTask";
9
- })(SchemaViewMaskRequestAction || (SchemaViewMaskRequestAction = {}));
10
- /**
11
- * @internal
12
- */
13
- export class SchemaViewMaskRequest extends BaseRequest {
14
- constructor(action, taskName, $context) {
15
- super();
16
- this.action = action;
17
- this.taskName = taskName;
18
- this.$context = $context;
19
- this.type = 'crt.SchemaViewMaskRequest';
20
- }
21
- }
22
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2NoZW1hLXZpZXctbWFzay5yZXF1ZXN0LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9kZXZraXQvY29tbW9uL3NyYy9saWIvcHVibGljL3NlcnZpY2VzL21hc2stc2VydmljZS9zY2hlbWEtdmlldy1tYXNrLnJlcXVlc3QudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUF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