@creatio-devkit/common 0.803.1 → 0.805.1

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 (297) hide show
  1. package/CHANGELOG.md +11 -2
  2. package/README.md +16 -20
  3. package/creatio-devkit-common.d.ts +393 -39
  4. package/esm2020/creatio-devkit-common.mjs +1 -1
  5. package/esm2020/index.mjs +1 -1
  6. package/esm2020/lib/external/functions/aggregation-adapter.mjs +1 -1
  7. package/esm2020/lib/external/functions/index.mjs +1 -1
  8. package/esm2020/lib/external/models/attribute-value-config.mjs +1 -1
  9. package/esm2020/lib/external/models/date-time/grouped-date-value.mjs +1 -1
  10. package/esm2020/lib/external/models/date-time/index.mjs +1 -1
  11. package/esm2020/lib/external/models/file-value.model.mjs +1 -1
  12. package/esm2020/lib/external/models/index.mjs +1 -1
  13. package/esm2020/lib/external/models/model-init-config.mjs +1 -1
  14. package/esm2020/lib/index.mjs +2 -2
  15. package/esm2020/lib/internal/constants/index.mjs +1 -1
  16. package/esm2020/lib/internal/constants/metadata.const.mjs +5 -1
  17. package/esm2020/lib/internal/decorators/converter/converter.decorator.mjs +1 -1
  18. package/esm2020/lib/internal/decorators/converter/index.mjs +1 -1
  19. package/esm2020/lib/internal/decorators/design-time-view-element/design-time-view-element.decorator.mjs +1 -1
  20. package/esm2020/lib/internal/decorators/design-time-view-element/index.mjs +1 -1
  21. package/esm2020/lib/internal/decorators/implement-using-handler-chain/implement-using-handler-chain.decorator.mjs +1 -1
  22. package/esm2020/lib/internal/decorators/implement-using-handler-chain/index.mjs +1 -1
  23. package/esm2020/lib/internal/decorators/index.mjs +2 -3
  24. package/esm2020/lib/internal/decorators/request/index.mjs +1 -1
  25. package/esm2020/lib/internal/decorators/request/request.decorator.mjs +1 -1
  26. package/esm2020/lib/internal/enums/data-schema-attribute-type.enum.mjs +20 -0
  27. package/esm2020/lib/internal/enums/data-source-scope.enum.mjs +1 -1
  28. package/esm2020/lib/internal/enums/default-value-source.enum.mjs +12 -0
  29. package/esm2020/lib/internal/enums/designer-group-type.enum.mjs +1 -1
  30. package/esm2020/lib/internal/enums/handler-source-type.enum.mjs +11 -0
  31. package/esm2020/lib/internal/enums/index.mjs +4 -1
  32. package/esm2020/lib/internal/enums/model-in-page-action.enum.mjs +1 -1
  33. package/esm2020/lib/internal/enums/view-element-group-type.enum.mjs +1 -2
  34. package/esm2020/lib/internal/esq/data-model/index.mjs +1 -1
  35. package/esm2020/lib/internal/esq/data-model/metadata-provider/metadata-provider.mjs +1 -1
  36. package/esm2020/lib/internal/esq/data-model/queries/base-filterable-query.mjs +1 -1
  37. package/esm2020/lib/internal/esq/data-model/queries/base-query.mjs +1 -1
  38. package/esm2020/lib/internal/esq/data-model/queries/delete-query.mjs +1 -1
  39. package/esm2020/lib/internal/esq/data-model/queries/entity-schema-query.mjs +1 -1
  40. package/esm2020/lib/internal/esq/data-model/queries/index.mjs +1 -1
  41. package/esm2020/lib/internal/esq/data-model/queries/insert-query.mjs +1 -1
  42. package/esm2020/lib/internal/esq/data-model/queries/query-operation-type.mjs +1 -1
  43. package/esm2020/lib/internal/esq/data-model/queries/update-query.mjs +7 -1
  44. package/esm2020/lib/internal/esq/index.mjs +1 -1
  45. package/esm2020/lib/internal/model/data-schema/data-schema-attribute-aggregation-config.mjs +2 -0
  46. package/esm2020/lib/internal/model/data-schema/data-schema-validator-config.mjs +2 -0
  47. package/esm2020/lib/internal/model/data-source-config.mjs +1 -1
  48. package/esm2020/lib/internal/model/index.mjs +3 -1
  49. package/esm2020/lib/internal/models/default-value-schema.mjs +2 -0
  50. package/esm2020/lib/internal/models/design-time-view-element-registry-item.mjs +1 -1
  51. package/esm2020/lib/internal/models/handler-chain-service-registry-item.mjs +1 -1
  52. package/esm2020/lib/internal/models/index.mjs +4 -3
  53. package/esm2020/lib/internal/models/interface-designer-item/base-interface-designer-item-registration-config.mjs +1 -1
  54. package/esm2020/lib/internal/models/interface-designer-item/index.mjs +1 -1
  55. package/esm2020/lib/internal/models/interface-designer-item/interface-designer-item-registration-config.model.mjs +1 -1
  56. package/esm2020/lib/internal/models/interface-designer-item/toolbar-view-element-config.mjs +1 -1
  57. package/esm2020/lib/internal/models/interface-designer-registry-item.mjs +1 -1
  58. package/esm2020/lib/internal/models/internal-interface-designer-item-registration-config.model.mjs +1 -1
  59. package/esm2020/lib/internal/models/remote-entry-info.mjs +2 -0
  60. package/esm2020/lib/internal/models/request/index.mjs +1 -2
  61. package/esm2020/lib/internal/models/request/method-invoke-request.mjs +1 -1
  62. package/esm2020/lib/internal/models/request-handler/handler-config.mjs +2 -0
  63. package/esm2020/lib/internal/models/request-handler/handler-source.mjs +2 -0
  64. package/esm2020/lib/internal/models/request-handler/index.mjs +3 -2
  65. package/esm2020/lib/internal/models/request-handler/request-handler-factory.mjs +1 -1
  66. package/esm2020/lib/internal/models/request-handler/request-handler-registration-config.model.mjs +1 -1
  67. package/esm2020/lib/internal/models/validator/index.mjs +4 -0
  68. package/esm2020/lib/internal/models/validator/validator-parameters.mjs +2 -0
  69. package/esm2020/lib/internal/models/validator/validator-registry-item.mjs +2 -0
  70. package/esm2020/lib/internal/models/validator/validator-schema-config.model.mjs +2 -0
  71. package/esm2020/lib/internal/models/view-element/angular-view-element-registration-config.model.mjs +1 -1
  72. package/esm2020/lib/internal/models/view-element/index.mjs +1 -1
  73. package/esm2020/lib/internal/models/view-element-registry-item.mjs +1 -1
  74. package/esm2020/lib/internal/services/base-handler-chain.service.mjs +1 -1
  75. package/esm2020/lib/internal/services/base-registry/base-registry.mjs +1 -1
  76. package/esm2020/lib/internal/services/base-registry/index.mjs +1 -1
  77. package/esm2020/lib/internal/services/bootstrap-notifier/bootstrap-notifier.mjs +2 -3
  78. package/esm2020/lib/internal/services/bootstrap-notifier/index.mjs +1 -1
  79. package/esm2020/lib/internal/services/design-time-view-element-registry/design-time-view-element-registry.mjs +1 -1
  80. package/esm2020/lib/internal/services/design-time-view-element-registry/index.mjs +1 -1
  81. package/esm2020/lib/internal/services/element-registration-checker/element-registration-checker.mjs +1 -1
  82. package/esm2020/lib/internal/services/element-registration-checker/index.mjs +1 -1
  83. package/esm2020/lib/internal/services/global-converters-registry/global-converters-registry.service.mjs +1 -1
  84. package/esm2020/lib/internal/services/global-converters-registry/index.mjs +1 -1
  85. package/esm2020/lib/internal/services/handler-chain-services-registry/handler-chain-services-registry.mjs +1 -1
  86. package/esm2020/lib/internal/services/handler-chain-services-registry/index.mjs +1 -1
  87. package/esm2020/lib/internal/services/index.mjs +4 -1
  88. package/esm2020/lib/internal/services/interface-designer-item-registry/index.mjs +1 -1
  89. package/esm2020/lib/internal/services/interface-designer-item-registry/interface-designer-item-registry.mjs +1 -1
  90. package/esm2020/lib/internal/services/pkg-topology-registry/index.mjs +2 -0
  91. package/esm2020/lib/internal/services/pkg-topology-registry/pkg-topology-registry.mjs +18 -0
  92. package/esm2020/lib/internal/services/remote-entries-registry/index.mjs +2 -0
  93. package/esm2020/lib/internal/services/remote-entries-registry/remote-entries-registry.mjs +11 -0
  94. package/esm2020/lib/internal/services/request-handler-registry/index.mjs +1 -1
  95. package/esm2020/lib/internal/services/request-handler-registry/request-handler-registry.service.mjs +9 -4
  96. package/esm2020/lib/internal/services/request-registry/index.mjs +1 -1
  97. package/esm2020/lib/internal/services/request-registry/request-registry.service.mjs +1 -1
  98. package/esm2020/lib/internal/services/validator-registry/index.mjs +2 -0
  99. package/esm2020/lib/internal/services/validator-registry/validator-registry.mjs +33 -0
  100. package/esm2020/lib/internal/services/view-element-registry/index.mjs +1 -1
  101. package/esm2020/lib/internal/services/view-element-registry/view-element-registry.mjs +1 -1
  102. package/esm2020/lib/internal/utils/component-config-utils.mjs +12 -0
  103. package/esm2020/lib/internal/utils/handlers-order-comparer.mjs +42 -0
  104. package/esm2020/lib/internal/utils/index.mjs +4 -1
  105. package/esm2020/lib/internal/utils/instantiate.mjs +17 -0
  106. package/esm2020/lib/internal/utils/localization-utils.mjs +1 -1
  107. package/esm2020/lib/internal/utils/metadata-utils.mjs +56 -15
  108. package/esm2020/lib/internal/utils/object-deep-keys/index.mjs +1 -1
  109. package/esm2020/lib/internal/utils/object-deep-keys/object-deep-keys.mjs +1 -1
  110. package/esm2020/lib/public/decorators/index.mjs +4 -1
  111. package/esm2020/lib/public/decorators/inject/index.mjs +2 -0
  112. package/esm2020/lib/public/decorators/inject/inject.decorator.mjs +19 -0
  113. package/esm2020/lib/public/decorators/input/index.mjs +1 -1
  114. package/esm2020/lib/public/decorators/input/input.decorator.mjs +1 -1
  115. package/esm2020/lib/public/decorators/interface-designer-item/index.mjs +1 -1
  116. package/esm2020/lib/public/decorators/interface-designer-item/interface-designer-item.decorator.mjs +14 -40
  117. package/esm2020/lib/public/decorators/module/index.mjs +1 -1
  118. package/esm2020/lib/public/decorators/module/module.decorator.mjs +4 -4
  119. package/esm2020/lib/public/decorators/output/index.mjs +1 -1
  120. package/esm2020/lib/public/decorators/output/output.decorator.mjs +1 -1
  121. package/esm2020/lib/public/decorators/request-handler/index.mjs +2 -0
  122. package/esm2020/lib/public/decorators/request-handler/request-handler.decorator.mjs +18 -0
  123. package/esm2020/lib/public/decorators/validation-input/index.mjs +1 -1
  124. package/esm2020/lib/public/decorators/validation-input/validation-input.decorator.mjs +1 -1
  125. package/esm2020/lib/public/decorators/validator/index.mjs +2 -0
  126. package/esm2020/lib/public/decorators/validator/validator.decorator.mjs +21 -0
  127. package/esm2020/lib/public/decorators/view-element/index.mjs +1 -1
  128. package/esm2020/lib/public/decorators/view-element/view-element.decorator.mjs +11 -18
  129. package/esm2020/lib/public/enums/aggregation-function.enum.mjs +1 -1
  130. package/esm2020/lib/public/enums/aggregation-type.enum.mjs +1 -1
  131. package/esm2020/lib/public/enums/data-value-type.enum.mjs +5 -2
  132. package/esm2020/lib/public/enums/index.mjs +1 -1
  133. package/esm2020/lib/public/esq/data-model/columns/arithmetic/arithmetic-query-column.mjs +1 -1
  134. package/esm2020/lib/public/esq/data-model/columns/base-query-column.mjs +1 -1
  135. package/esm2020/lib/public/esq/data-model/columns/entity-column/entity-query-column.mjs +1 -1
  136. package/esm2020/lib/public/esq/data-model/columns/functions/aggregation-function-column.mjs +1 -1
  137. package/esm2020/lib/public/esq/data-model/columns/functions/date-part-function-column.mjs +1 -1
  138. package/esm2020/lib/public/esq/data-model/columns/functions/length-function-column.mjs +1 -1
  139. package/esm2020/lib/public/esq/data-model/columns/functions/macros-function-column.mjs +1 -1
  140. package/esm2020/lib/public/esq/data-model/columns/functions/window-function-column.mjs +1 -1
  141. package/esm2020/lib/public/esq/data-model/columns/index.mjs +1 -1
  142. package/esm2020/lib/public/esq/data-model/columns/parameters/parameter-query-column.mjs +1 -1
  143. package/esm2020/lib/public/esq/data-model/columns/sub-queries/aggregation-sub-query-column.mjs +1 -1
  144. package/esm2020/lib/public/esq/data-model/columns/sub-queries/sub-query-column.mjs +1 -1
  145. package/esm2020/lib/public/esq/data-model/enums/aggregation-eval-type.enum.mjs +1 -1
  146. package/esm2020/lib/public/esq/data-model/enums/arithmetic-operation.enum.mjs +1 -1
  147. package/esm2020/lib/public/esq/data-model/enums/comparison-type.enum.mjs +1 -1
  148. package/esm2020/lib/public/esq/data-model/enums/date-part-type.enum.mjs +1 -1
  149. package/esm2020/lib/public/esq/data-model/enums/expression-type.enum.mjs +1 -1
  150. package/esm2020/lib/public/esq/data-model/enums/filter-type.enum.mjs +1 -1
  151. package/esm2020/lib/public/esq/data-model/enums/function-type.enum.mjs +1 -1
  152. package/esm2020/lib/public/esq/data-model/enums/index.mjs +1 -1
  153. package/esm2020/lib/public/esq/data-model/enums/logical-operator-type.enum.mjs +1 -1
  154. package/esm2020/lib/public/esq/data-model/enums/order-direction.enum.mjs +1 -1
  155. package/esm2020/lib/public/esq/data-model/enums/query-macros-type.enum.mjs +1 -1
  156. package/esm2020/lib/public/esq/data-model/expressions/arithmetic/arithmetic-expression.mjs +1 -1
  157. package/esm2020/lib/public/esq/data-model/expressions/arithmetic/index.mjs +1 -1
  158. package/esm2020/lib/public/esq/data-model/expressions/base-expression.mjs +1 -1
  159. package/esm2020/lib/public/esq/data-model/expressions/columns/column-expression.mjs +1 -1
  160. package/esm2020/lib/public/esq/data-model/expressions/columns/index.mjs +1 -1
  161. package/esm2020/lib/public/esq/data-model/expressions/functions/aggregation-function-expression.mjs +1 -1
  162. package/esm2020/lib/public/esq/data-model/expressions/functions/argument-function-expression.mjs +1 -1
  163. package/esm2020/lib/public/esq/data-model/expressions/functions/date-part-function-expression.mjs +1 -1
  164. package/esm2020/lib/public/esq/data-model/expressions/functions/function-expression.mjs +1 -1
  165. package/esm2020/lib/public/esq/data-model/expressions/functions/index.mjs +1 -1
  166. package/esm2020/lib/public/esq/data-model/expressions/functions/length-function-expression.mjs +1 -1
  167. package/esm2020/lib/public/esq/data-model/expressions/functions/macros-function-expression.mjs +1 -1
  168. package/esm2020/lib/public/esq/data-model/expressions/functions/window-function-expression.mjs +1 -1
  169. package/esm2020/lib/public/esq/data-model/expressions/index.mjs +1 -1
  170. package/esm2020/lib/public/esq/data-model/expressions/mocks/expression.mock.mjs +1 -1
  171. package/esm2020/lib/public/esq/data-model/expressions/mocks/index.mjs +1 -1
  172. package/esm2020/lib/public/esq/data-model/expressions/parameters/index.mjs +1 -1
  173. package/esm2020/lib/public/esq/data-model/expressions/parameters/parameter-expression.mjs +1 -1
  174. package/esm2020/lib/public/esq/data-model/expressions/sub-queries/aggregation-sub-query-expression.mjs +1 -1
  175. package/esm2020/lib/public/esq/data-model/expressions/sub-queries/index.mjs +1 -1
  176. package/esm2020/lib/public/esq/data-model/expressions/sub-queries/sub-query-expression.mjs +1 -1
  177. package/esm2020/lib/public/esq/data-model/filters/base-filter.mjs +1 -1
  178. package/esm2020/lib/public/esq/data-model/filters/between-filter.mjs +1 -1
  179. package/esm2020/lib/public/esq/data-model/filters/compare-filter.mjs +1 -1
  180. package/esm2020/lib/public/esq/data-model/filters/exists-filter.mjs +1 -1
  181. package/esm2020/lib/public/esq/data-model/filters/filter-group.mjs +1 -1
  182. package/esm2020/lib/public/esq/data-model/filters/in-filter.mjs +1 -1
  183. package/esm2020/lib/public/esq/data-model/filters/index.mjs +1 -1
  184. package/esm2020/lib/public/esq/data-model/filters/isnull-filter.mjs +1 -1
  185. package/esm2020/lib/public/esq/data-model/filters/mocks/filter.mock.mjs +1 -1
  186. package/esm2020/lib/public/esq/data-model/filters/mocks/index.mjs +1 -1
  187. package/esm2020/lib/public/esq/data-model/filters/single-filter.mjs +1 -1
  188. package/esm2020/lib/public/esq/data-model/index.mjs +1 -1
  189. package/esm2020/lib/public/esq/index.mjs +1 -1
  190. package/esm2020/lib/public/exceptions/argument-empty-exception.mjs +1 -1
  191. package/esm2020/lib/public/exceptions/argument-out-of-range-exception.mjs +1 -1
  192. package/esm2020/lib/public/exceptions/index.mjs +1 -1
  193. package/esm2020/lib/public/exceptions/item-not-found-exception.mjs +1 -1
  194. package/esm2020/lib/public/exceptions/next-handler-already-specified-exception.mjs +1 -1
  195. package/esm2020/lib/public/exceptions/validation-utilities.mjs +1 -1
  196. package/esm2020/lib/public/functions/bootstrap-crt-module-handler-chain-services.mjs +28 -0
  197. package/esm2020/lib/public/functions/bootstrap-crt-module.mjs +76 -20
  198. package/esm2020/lib/public/functions/index.mjs +2 -1
  199. package/esm2020/lib/public/functions/localize.mjs +1 -1
  200. package/esm2020/lib/public/functions/register-view-element.mjs +1 -1
  201. package/esm2020/lib/public/handlers/base-request-handler.mjs +37 -0
  202. package/esm2020/lib/public/handlers/index.mjs +2 -0
  203. package/esm2020/lib/public/models/base-response.model.mjs +1 -1
  204. package/esm2020/lib/public/models/converter.model.mjs +1 -1
  205. package/esm2020/lib/public/models/data-source/data-source-insert-result.model.mjs +2 -0
  206. package/esm2020/lib/public/models/data-source/data-source-save-result.model.mjs +2 -0
  207. package/esm2020/lib/public/models/data-source/index.mjs +3 -0
  208. package/esm2020/lib/public/models/entity.model.mjs +1 -1
  209. package/esm2020/lib/public/models/error-info.model.mjs +1 -1
  210. package/esm2020/lib/public/models/image-value.model.mjs +1 -1
  211. package/esm2020/lib/public/models/index.mjs +4 -2
  212. package/esm2020/lib/public/models/input/index.mjs +1 -1
  213. package/esm2020/lib/public/models/input/input-registration-config.model.mjs +1 -1
  214. package/esm2020/lib/public/models/interface-designer-item/index.mjs +1 -1
  215. package/esm2020/lib/public/models/interface-designer-item/interface-designer-item-definition.mjs +1 -1
  216. package/esm2020/lib/public/models/localizable-value.mjs +12 -1
  217. package/esm2020/lib/public/models/lookup-value.model.mjs +1 -1
  218. package/esm2020/lib/public/models/mask-settings.mjs +1 -1
  219. package/esm2020/lib/public/models/module-definition.mjs +1 -1
  220. package/esm2020/lib/public/models/request/base-request-config.mjs +1 -1
  221. package/esm2020/lib/public/models/request/base-request.mjs +1 -1
  222. package/esm2020/lib/public/models/request/data-source-request.mjs +1 -1
  223. package/esm2020/lib/public/models/request/index.mjs +2 -1
  224. package/esm2020/lib/public/models/request/request-registration-config.model.mjs +2 -0
  225. package/esm2020/lib/public/models/request-handler/index.mjs +3 -0
  226. package/esm2020/lib/public/models/request-handler/request-handler-definition.mjs +2 -0
  227. package/esm2020/lib/public/models/request-handler/request-handler.mjs +2 -0
  228. package/esm2020/lib/public/models/validation/base-validator.mjs +40 -0
  229. package/esm2020/lib/public/models/validation/crt-control-state.mjs +2 -0
  230. package/esm2020/lib/public/models/validation/crt-validation-errors.mjs +1 -1
  231. package/esm2020/lib/public/models/validation/crt-validator-fn.mjs +2 -0
  232. package/esm2020/lib/public/models/validation/index.mjs +6 -1
  233. package/esm2020/lib/public/models/validation/validation-info.mjs +1 -1
  234. package/esm2020/lib/public/models/validation/validator-config.mjs +2 -0
  235. package/esm2020/lib/public/models/validation/validator-parameter-values.mjs +2 -0
  236. package/esm2020/lib/public/models/view-element/base-view-element-registration-config.mjs +1 -1
  237. package/esm2020/lib/public/models/view-element/index.mjs +1 -1
  238. package/esm2020/lib/public/models/view-element/view-element-registration-config.mjs +1 -1
  239. package/esm2020/lib/public/models/view-model-context.mjs +1 -1
  240. package/esm2020/lib/public/services/feature/feature.service.mjs +1 -2
  241. package/esm2020/lib/public/services/feature/index.mjs +1 -1
  242. package/esm2020/lib/public/services/handler-chain/handler-chain.service.mjs +3 -7
  243. package/esm2020/lib/public/services/handler-chain/index.mjs +1 -1
  244. package/esm2020/lib/public/services/handler-chain/internal-handler-chain.mjs +23 -17
  245. package/esm2020/lib/public/services/http-client/http-client.service.mjs +1 -2
  246. package/esm2020/lib/public/services/http-client/http-headers.mjs +1 -1
  247. package/esm2020/lib/public/services/http-client/http-response.mjs +1 -1
  248. package/esm2020/lib/public/services/http-client/index.mjs +1 -1
  249. package/esm2020/lib/public/services/index.mjs +1 -1
  250. package/esm2020/lib/public/services/mask-service/index.mjs +1 -1
  251. package/esm2020/lib/public/services/mask-service/mask.service.mjs +1 -2
  252. package/esm2020/lib/public/services/model/data-schema-attribute.mjs +2 -0
  253. package/esm2020/lib/public/services/model/data-schema.mjs +2 -0
  254. package/esm2020/lib/public/services/model/data-source-aggregation-config.mjs +1 -1
  255. package/esm2020/lib/public/services/model/data-source-attribute.mjs +1 -1
  256. package/esm2020/lib/public/services/model/data-source-can-execute-operation.mjs +1 -1
  257. package/esm2020/lib/public/services/model/data-source-paging-config.mjs +1 -1
  258. package/esm2020/lib/public/services/model/data-source-parameter.mjs +1 -1
  259. package/esm2020/lib/public/services/model/data-source-sorting-config.mjs +1 -1
  260. package/esm2020/lib/public/services/model/index.mjs +3 -2
  261. package/esm2020/lib/public/services/model/model-load-options.mjs +1 -1
  262. package/esm2020/lib/public/services/model/model.mjs +1 -2
  263. package/esm2020/lib/public/services/rights/index.mjs +1 -1
  264. package/esm2020/lib/public/services/rights/rights.service.mjs +1 -2
  265. package/esm2020/lib/public/services/sys-settings/index.mjs +1 -1
  266. package/esm2020/lib/public/services/sys-settings/sys-setting.model.mjs +1 -1
  267. package/esm2020/lib/public/services/sys-settings/sys-settings.service.mjs +1 -1
  268. package/esm2020/lib/public/services/sys-values/index.mjs +1 -1
  269. package/esm2020/lib/public/services/sys-values/sys-values.mjs +1 -1
  270. package/esm2020/lib/public/services/sys-values/sys-values.service.mjs +1 -1
  271. package/esm2020/lib/public/types/abstract-type.mjs +2 -0
  272. package/esm2020/lib/public/types/entity-column-value.mjs +1 -1
  273. package/esm2020/lib/public/types/guid.type.mjs +1 -1
  274. package/esm2020/lib/public/types/index.mjs +4 -1
  275. package/esm2020/lib/public/types/json-data.type.mjs +1 -1
  276. package/esm2020/lib/public/types/localizable-string.type.mjs +2 -0
  277. package/esm2020/lib/public/types/localize-fn.type.mjs +1 -1
  278. package/esm2020/lib/public/types/resolve-dependency-fn.type.mjs +2 -0
  279. package/esm2020/lib/public/types/sort-direction.type.mjs +1 -1
  280. package/esm2020/lib/public/types/type.mjs +1 -1
  281. package/fesm2015/creatio-devkit-common.mjs +532 -167
  282. package/fesm2015/creatio-devkit-common.mjs.map +1 -1
  283. package/fesm2020/creatio-devkit-common.mjs +539 -169
  284. package/fesm2020/creatio-devkit-common.mjs.map +1 -1
  285. package/package.json +12 -7
  286. package/esm2020/lib/internal/decorators/request-handler/index.mjs +0 -2
  287. package/esm2020/lib/internal/decorators/request-handler/request-handler.decorator.mjs +0 -15
  288. package/esm2020/lib/internal/handlers/base-request-handler.mjs +0 -26
  289. package/esm2020/lib/internal/handlers/index.mjs +0 -2
  290. package/esm2020/lib/internal/models/request/request-registration-config.model.mjs +0 -2
  291. package/esm2020/lib/internal/models/request-handler/request-handler.mjs +0 -2
  292. package/esm2020/lib/internal/models/validation/crt-control.mjs +0 -2
  293. package/esm2020/lib/internal/models/validation/crt-validator-fn.mjs +0 -2
  294. package/esm2020/lib/internal/models/validation/index.mjs +0 -3
  295. package/esm2020/lib/internal/models/validator-config.model.mjs +0 -2
  296. package/esm2020/lib/public/models/interfaces/data-source-save-result.interface.mjs +0 -2
  297. package/esm2020/lib/public/services/model/data-source-save-result.mjs +0 -2
@@ -1,3 +1,9 @@
1
+ /**
2
+ * @public
3
+ * @description Represents abstract class.
4
+ */
5
+ export declare type AbstractType<T = any> = abstract new (...args: any[]) => T;
6
+
1
7
  /* Excluded from this release type: AddRequestHandlerListener */
2
8
 
3
9
  export declare enum AggregationEvalType {
@@ -231,7 +237,29 @@ export declare interface BaseRequestConfig {
231
237
 
232
238
  /* Excluded from this release type: BaseRequestCtor */
233
239
 
234
- /* Excluded from this release type: BaseRequestHandler */
240
+ /**
241
+ * @public
242
+ * @abstract
243
+ * @classdesc Class for designing request handlers.
244
+ */
245
+ export declare abstract class BaseRequestHandler<TRequest = BaseRequest, TResult = unknown> implements RequestHandler<TRequest, TResult> {
246
+ /* Excluded from this release type: _instanceOfKey */
247
+ private _next?;
248
+ protected handlerChain: HandlerChainService;
249
+ protected get next(): RequestHandler | undefined;
250
+ /* Excluded from this release type: [Symbol.hasInstance] */
251
+ /**
252
+ * @abstract
253
+ * @description Abstract async method which contains logic to handle request properly.
254
+ * @param {TRequest} request - {@link BaseRequest}
255
+ */
256
+ abstract handle(request: TRequest): Promise<TResult>;
257
+ /**
258
+ * @description Method to set request handler to handler chain.
259
+ * @param next - link for next request handler - {@link RequestHandler}
260
+ */
261
+ setNext(next: RequestHandler): void;
262
+ }
235
263
 
236
264
  /**
237
265
  * @public
@@ -252,6 +280,44 @@ export declare interface BaseResponse {
252
280
 
253
281
  /* Excluded from this release type: BaseToolbarViewElementConfig */
254
282
 
283
+ /**
284
+ * @public
285
+ * @description Abstract Base Validator class for designing custom validators.
286
+ * @example
287
+ * @CrtValidator({
288
+ * type: 'crt.Required',
289
+ * })
290
+ * export class RequiredValidator extends BaseValidator {
291
+ * protected override async = false;
292
+ * public validate(controlState: CrtControlState, params?: ValidatorParametersValues): CrtValidationErrors | null {
293
+ * Implementation here...
294
+ * }
295
+ * }
296
+ */
297
+ export declare abstract class BaseValidator {
298
+ /* Excluded from this release type: _instanceOfKey */
299
+ /**
300
+ * @abstract
301
+ * @description indicator to recognize whether validator asynchronous or synchronous
302
+ */
303
+ protected abstract async: boolean;
304
+ /**
305
+ * @description getter for async/sync indicator
306
+ */
307
+ get isAsync(): boolean;
308
+ /**
309
+ * @description Function used for validation
310
+ */
311
+ get validateFn(): CrtValidatorFn;
312
+ /* Excluded from this release type: [Symbol.hasInstance] */
313
+ /**
314
+ * @description Method which contains main logic relates validation.
315
+ * @param controlState - {@link CrtControlState}
316
+ * @param params - incoming parameters for validation {@link ValidatorParametersValues}
317
+ */
318
+ abstract validate(controlState: CrtControlState, params?: ValidatorParametersValues): CrtValidationErrors | null | Promise<CrtValidationErrors | null>;
319
+ }
320
+
255
321
  /**
256
322
  * @public
257
323
  * @description Registration config for defining user components in Creatio platform.
@@ -317,6 +383,8 @@ export declare class BetweenFilter extends SingleFilter {
317
383
  clone(): BetweenFilter;
318
384
  }
319
385
 
386
+ /* Excluded declaration from this release type: bootstrapCrtModule */
387
+
320
388
  /**
321
389
  * @public
322
390
  * @description Function required to bootstrapping elements defined in CrtModules.
@@ -327,10 +395,18 @@ export declare class BetweenFilter extends SingleFilter {
327
395
  * @example
328
396
  * bootstrapCrtModule(AppModule)
329
397
  */
398
+ export declare function bootstrapCrtModule(remoteName: string, type: Type, options?: BootstrapOptions): void;
399
+
400
+ /**
401
+ * @public
402
+ * @deprecated
403
+ */
330
404
  export declare function bootstrapCrtModule(type: Type, options?: BootstrapOptions): void;
331
405
 
332
406
  /* Excluded from this release type: _bootstrapCrtModule */
333
407
 
408
+ /* Excluded from this release type: bootstrapCrtModuleHandlerChainServices */
409
+
334
410
  /* Excluded from this release type: BootstrapNotifier */
335
411
 
336
412
  /**
@@ -342,6 +418,11 @@ export declare interface BootstrapOptions {
342
418
  * Function to be used to translate localizable values of class metadata
343
419
  */
344
420
  localizeMetadata?: LocalizeFn;
421
+ /**
422
+ * Function to be used to resolve class dependencies
423
+ */
424
+ resolveDependency?: ResolveDependencyFn;
425
+ /* Excluded from this release type: moduleType */
345
426
  }
346
427
 
347
428
  /* Excluded from this release type: checkCrtTypeNamePascalCase */
@@ -397,31 +478,43 @@ export declare interface ConditionalValueItem {
397
478
  };
398
479
  }
399
480
 
481
+ /* Excluded from this release type: Converter */
482
+
483
+ /* Excluded from this release type: ConverterCtor */
484
+
485
+ /* Excluded from this release type: CrtAngularViewElementConfig */
486
+
400
487
  /**
401
488
  * @public
402
- * @description Shape to implementing Converter.
403
- * @template V
404
- * @template R
489
+ * @description Control state passed for validators
490
+ * @property {unknown} value - control value
405
491
  */
406
- export declare interface Converter<V = unknown, R = unknown> {
492
+ export declare interface CrtControlState {
407
493
  /**
408
- * @description Function which convert incoming value.
409
- * @param {V} value - input value.
410
- * @param {ViewModelContext} context - view model context.
411
- * @param {...unknown[]} arg - arguments rest.
412
- * @return {*} {R}
494
+ * @description control value
413
495
  */
414
- convert(value: V, context: ViewModelContext, ...args: unknown[]): R;
496
+ value: unknown;
415
497
  }
416
498
 
417
- export declare type ConverterCtor = new () => Converter;
418
-
419
- /* Excluded from this release type: CrtControl */
420
-
421
499
  /* Excluded from this release type: CrtConverter */
422
500
 
423
501
  /* Excluded from this release type: CrtDesignTimeViewElement */
424
502
 
503
+ /**
504
+ * @public
505
+ * @description
506
+ * Constructor parameter decorator.
507
+ * Mark parameter as dependency that should be obtained by token.
508
+ * @param token - token by which the dependency instance will be obtained
509
+ * @example
510
+ * class MyHandler {
511
+ * constructor(@CrtInject(USER_NAME_TOKEN) userName: string) {}
512
+ * }
513
+ */
514
+ export declare function CrtInject(token: unknown): (target: any, paramKey: string, paramIndex: number) => void;
515
+
516
+ /* Excluded from this release type: crtInjectPrefix */
517
+
425
518
  /**
426
519
  * @public
427
520
  * @description Creatio platform interacts with input's of user-defined component through CrtInput decorator.
@@ -457,7 +550,6 @@ export declare class CrtInputRegistrationConfig {
457
550
  * @CrtInterfaceDesignerItem({
458
551
  * toolbarConfig: {
459
552
  * caption: 'usrExampleCaption',
460
- * name: 'usrExampleName',
461
553
  * icon: require(`!!raw-loader?{esModule:false}!../assets/icon.svg`)
462
554
  * hint: 'usrExampleHint',
463
555
  * defaultPropertyValues: {
@@ -479,6 +571,8 @@ export declare class CrtInputRegistrationConfig {
479
571
  */
480
572
  export declare function CrtInterfaceDesignerItem(config: InterfaceDesignerItemDefinition): (type: Type) => void;
481
573
 
574
+ /* Excluded declaration from this release type: CrtInterfaceDesignerItem */
575
+
482
576
  /**
483
577
  * @public
484
578
  * @description CrtModule decorator is a 'container' where user actually setup elements.
@@ -488,6 +582,8 @@ export declare function CrtInterfaceDesignerItem(config: InterfaceDesignerItemDe
488
582
  * @example
489
583
  * @CrtModule({
490
584
  * viewElements: [AppComponent],
585
+ * requestHandlers: [SomeRequestHandler],
586
+ * validators: [SomeValidator],
491
587
  * })
492
588
  * @NgModule({
493
589
  * declarations: [AppComponent],
@@ -514,7 +610,27 @@ export declare function CrtOutput(): (target: any, propertyKey: string) => void;
514
610
 
515
611
  /* Excluded from this release type: CrtRequest */
516
612
 
517
- /* Excluded from this release type: CrtRequestHandler */
613
+ /**
614
+ * @public
615
+ * @description Decorator to declare request handler
616
+ * @param config - request handler config {@link RequestHandlerRegistrationConfig}.
617
+ * If no config is passed, the handler cannot be declared, but can be used as a base class for another handler.
618
+ *
619
+ * @example
620
+ * *@CrtRequestHandler({
621
+ * requestType: 'crt.SomeRequest',
622
+ * type: 'crt.SomeRequestHandler',
623
+ * })
624
+ * export class SectionInitHandler extends BaseRequestHandler<SomeRequest> {
625
+ * public async handle(request: SomeRequest): Promise<unknown> {
626
+ * // Some business logic
627
+ * return this.next?.handle(request);
628
+ * }
629
+ * }
630
+ */
631
+ export declare function CrtRequestHandler<T extends RequestHandler>(config: RequestHandlerDefinition): (type: Type<T>) => void;
632
+
633
+ export declare function CrtRequestHandler(): (type: Type | AbstractType) => void;
518
634
 
519
635
  /**
520
636
  * @public
@@ -586,7 +702,34 @@ export declare function CrtValidationInput(): (target: any, propertyKey: string)
586
702
 
587
703
  /* Excluded from this release type: crtValidationInputPrefix */
588
704
 
589
- /* Excluded from this release type: CrtValidatorFn */
705
+ /**
706
+ * @public
707
+ * @description Decorator to declare validator
708
+ * @param config - validator config {@link ValidatorConfig}.
709
+ * If no config is passed, the validator cannot be declared, but can be used as a base class for another validator.
710
+ *
711
+ * @example
712
+ * @CrtValidator({
713
+ * type: 'crt.Required',
714
+ * })
715
+ * export class RequiredValidator extends BaseValidator {
716
+ * protected override async = false;
717
+ * public validate(controlState: CrtControlState, params?: ValidatorParametersValues): CrtValidationErrors | null {
718
+ * Implementation here...
719
+ * }
720
+ * }
721
+ */
722
+ export declare function CrtValidator(config: ValidatorConfig): (type: Type) => void;
723
+
724
+ export declare function CrtValidator(): (type: Type | AbstractType) => void;
725
+
726
+ /**
727
+ * @public
728
+ * @description Function used for validation
729
+ * @param controlState - {@link CrtControlState}
730
+ * @param params - incoming parameters for validation {@link ValidatorParametersValues}
731
+ */
732
+ export declare type CrtValidatorFn = (controlState: CrtControlState, params?: ValidatorParametersValues) => CrtValidationErrors | null | Promise<CrtValidationErrors | null>;
590
733
 
591
734
  /**
592
735
  * @public
@@ -607,6 +750,8 @@ export declare function CrtValidationInput(): (target: any, propertyKey: string)
607
750
  */
608
751
  export declare function CrtViewElement(config: ViewElementRegistrationConfig): (type: Type) => void;
609
752
 
753
+ /* Excluded declaration from this release type: CrtViewElement */
754
+
610
755
  /**
611
756
  * @public
612
757
  * @class DataRequest
@@ -621,6 +766,77 @@ export declare class DataRequest extends BaseRequest {
621
766
  readonly dataSourceName: string;
622
767
  }
623
768
 
769
+ /**
770
+ * @public
771
+ * @description DataSchema describes the structure of the data-object that the application works with.
772
+ * @property {string} name - name of DataSchema.
773
+ * @property {string} primaryAttributeName - name of primary attribute.
774
+ * @property {string} primaryDisplayAttributeName - name of primary display attribute.
775
+ * @property {string} hierarchyAttributeName - name of the column that binds the parent record, for hierarchical entities.
776
+ */
777
+ export declare interface DataSchema {
778
+ name: string;
779
+ /**
780
+ * @description {@link LocalizableString} localizable caption of DataSchema.
781
+ */
782
+ caption: LocalizableString;
783
+ /**
784
+ * @description {@link DataSchemaAttribute[]} - array of attributes of DataSchema.
785
+ */
786
+ attributes: DataSchemaAttribute[];
787
+ primaryAttributeName?: string;
788
+ primaryDisplayAttributeName?: string;
789
+ hierarchyAttributeName?: string;
790
+ /* Excluded from this release type: dataSourceConfig */
791
+ }
792
+
793
+ /**
794
+ * @public
795
+ * @description DataSchemaAttribute describes the structure of the single attribute of data-object that the application works with.
796
+ * @property {string} name - name of DataSchemaAttribute.
797
+ * @property {string} caption - caption of DataSchemaAttribute.
798
+ * @property {string} isValueCloneable - copy this DataSchemaAttribute value when copying object.
799
+ * @property {string} referenceSchemaName - name of refernce DataSchema.
800
+ * @property {boolean} isMasked - is mask used for DataSchemaAttribute.
801
+ * @property {boolean} isFormatValidated - is format validated for DataSchemaAttribute.
802
+ * @property {boolean} isSensitiveData - is data of DataSchemaAttribute sensetive.
803
+ * @property {boolean} isRequired - flag to determine DataSchemaAttribute required or not.
804
+ */
805
+ export declare interface DataSchemaAttribute {
806
+ name: string;
807
+ caption: string;
808
+ /* Excluded from this release type: path */
809
+ /**
810
+ * @description {@link DataValueType} - value type of DataSchemaAttribute.
811
+ */
812
+ dataValueType: DataValueType;
813
+ /* Excluded from this release type: validators */
814
+ /* Excluded from this release type: defaultValue */
815
+ /* Excluded from this release type: defaultValueSchema */
816
+ isValueCloneable: boolean;
817
+ /* Excluded from this release type: attributeType */
818
+ referenceSchemaName?: string;
819
+ /* Excluded from this release type: aggregationConfig */
820
+ isMasked: boolean;
821
+ isFormatValidated: boolean;
822
+ isSensitiveData: boolean;
823
+ /* Excluded from this release type: usageType */
824
+ /**
825
+ * @description flag to determine DataSchemaAttribute required or not.
826
+ */
827
+ isRequired: boolean;
828
+ }
829
+
830
+ /* Excluded from this release type: DataSchemaAttributeAggregationConfig */
831
+
832
+ /* Excluded from this release type: DataSchemaAttributeType */
833
+
834
+ /* Excluded from this release type: DataSchemaAttributeUsageType */
835
+
836
+ /* Excluded from this release type: DataSchemaAttributeValidatorConfig */
837
+
838
+ /* Excluded from this release type: DataSchemaValidatorConfig */
839
+
624
840
  export declare interface DataSourceAggregationConfig {
625
841
  aggregationFunction?: AggregationFunction;
626
842
  filter?: FilterGroup;
@@ -713,7 +929,7 @@ export declare interface DataSourceSaveResult {
713
929
  /**
714
930
  * @description Error message.
715
931
  */
716
- errorInfo: string;
932
+ errorInfo?: string;
717
933
  }
718
934
 
719
935
  /* Excluded from this release type: DataSourceScope */
@@ -742,7 +958,7 @@ export declare enum DataValueType {
742
958
  CUSTOM_OBJECT = 15,
743
959
  IMAGELOOKUP = 16,
744
960
  COLLECTION = 17,
745
- COLOR = 18,
961
+ Color = 18,
746
962
  LOCALIZABLE_STRING = 19,
747
963
  ENTITY = 20,
748
964
  ENTITY_COLLECTION = 21,
@@ -765,7 +981,10 @@ export declare enum DataValueType {
765
981
  OBJECT_LIST = 38,
766
982
  COMPOSITE_OBJECT_LIST = 39,
767
983
  FLOAT8 = 40,
768
- PHONE_TEXT = 42
984
+ PHONE_TEXT = 42,
985
+ RICH_TEXT = 43,
986
+ WEB_TEXT = 44,
987
+ EMAIL_TEXT = 45
769
988
  }
770
989
 
771
990
  export declare class DatePartFunctionColumn extends BaseQueryColumn<DatePartFunctionExpression> {
@@ -801,6 +1020,10 @@ export declare enum DatePartType {
801
1020
  HourMinute = 7
802
1021
  }
803
1022
 
1023
+ /* Excluded from this release type: DefaultValueSchema */
1024
+
1025
+ /* Excluded from this release type: DefaultValueSource */
1026
+
804
1027
  /* Excluded from this release type: DeleteQuery */
805
1028
 
806
1029
  /* Excluded from this release type: DesignerToolGroupType */
@@ -877,7 +1100,6 @@ export declare enum ExpressionType {
877
1100
 
878
1101
  /**
879
1102
  * @public
880
- * @class FeatureService
881
1103
  * @classdesc Service to working with Creatio platform features using handler chain
882
1104
  * @extends {BaseHandlerChainService}
883
1105
  */
@@ -979,6 +1201,10 @@ export declare enum FunctionType {
979
1201
 
980
1202
  /* Excluded from this release type: getRequestHandlerMetadata */
981
1203
 
1204
+ /* Excluded from this release type: getTypeDependencies */
1205
+
1206
+ /* Excluded from this release type: getValidatorMetadata */
1207
+
982
1208
  /* Excluded from this release type: getViewElementMetadata */
983
1209
 
984
1210
  /* Excluded from this release type: GlobalConvertersRegistryService */
@@ -1016,11 +1242,20 @@ export declare class HandlerChainService {
1016
1242
 
1017
1243
  /* Excluded from this release type: HandlerChainServicesRegistry */
1018
1244
 
1245
+ /* Excluded from this release type: HandlerConfig */
1246
+
1247
+ /* Excluded from this release type: HandlersOrderComparer */
1248
+
1249
+ /* Excluded from this release type: HandlerSource */
1250
+
1251
+ /* Excluded from this release type: HandlerSourceType */
1252
+
1019
1253
  /* Excluded from this release type: hasInterfaceDesignerItemMetadata */
1020
1254
 
1255
+ /* Excluded from this release type: HostHandlerSource */
1256
+
1021
1257
  /**
1022
1258
  * @public
1023
- * @class HttpClientService
1024
1259
  * @classdesc Http service to perform Http requests
1025
1260
  * @extends {BaseHandlerChainService}
1026
1261
  */
@@ -1189,6 +1424,8 @@ export declare class InFilter extends SingleFilter {
1189
1424
 
1190
1425
  /* Excluded from this release type: InsertQuery */
1191
1426
 
1427
+ /* Excluded from this release type: instantiate */
1428
+
1192
1429
  /**
1193
1430
  * @public
1194
1431
  * @description Config used to register view element options in interface designer.
@@ -1204,9 +1441,10 @@ export declare interface InterfaceDesignerItemDefinition {
1204
1441
  */
1205
1442
  caption: string | LocalizableValue;
1206
1443
  /**
1207
- * Name of view element in toolbar.
1444
+ * @deprecated
1445
+ * Name of view element icon in toolbar.
1208
1446
  */
1209
- name: string;
1447
+ name?: string;
1210
1448
  /**
1211
1449
  * Require path to load icon that will be displayed for view element
1212
1450
  * in left panel of Interface designer.
@@ -1250,6 +1488,8 @@ export declare interface InterfaceDesignerItemDefinition {
1250
1488
 
1251
1489
  /* Excluded from this release type: InternalToolbarViewElementConfigCollection */
1252
1490
 
1491
+ /* Excluded from this release type: isComponentPropertyBindable */
1492
+
1253
1493
  /* Excluded from this release type: isEmptyGuid */
1254
1494
 
1255
1495
  /* Excluded from this release type: isGuid */
@@ -1294,12 +1534,25 @@ export declare class LengthFunctionExpression extends ArgumentFunctionExpression
1294
1534
 
1295
1535
  export declare type LengthFunctionExpressionConfig = ArgumentFunctionExpressionConfig<LengthFunctionExpression>;
1296
1536
 
1537
+ /**
1538
+ * @public
1539
+ * @description contract for localizable string
1540
+ *
1541
+ * @example
1542
+ * const localizableString = {
1543
+ * "en-US": 'localizable string'
1544
+ * }
1545
+ */
1546
+ export declare type LocalizableString = string | Record<string, unknown>;
1547
+
1297
1548
  /**
1298
1549
  * @public
1299
1550
  */
1300
1551
  export declare class LocalizableValue {
1301
1552
  readonly key: string;
1553
+ /* Excluded from this release type: _instanceOfKey */
1302
1554
  constructor(key: string);
1555
+ /* Excluded from this release type: [Symbol.hasInstance] */
1303
1556
  }
1304
1557
 
1305
1558
  /**
@@ -1390,7 +1643,6 @@ export declare type MacrosFunctionExpressionConfig = FunctionExpressionConfig<Ma
1390
1643
 
1391
1644
  /**
1392
1645
  * @public
1393
- * @class MaskService
1394
1646
  * @classdesc Service to working with mask using handler chain
1395
1647
  * @extends {BaseHandlerChainService}
1396
1648
  */
@@ -1434,7 +1686,7 @@ export declare class Model extends BaseHandlerChainService {
1434
1686
  private static get instance();
1435
1687
  private _create;
1436
1688
  static create(dataSchema: string): Promise<Model>;
1437
- getSchema(): Promise<unknown>;
1689
+ getSchema(): Promise<DataSchema>;
1438
1690
  load(config?: {
1439
1691
  attributes?: string[] | DataSourceAttribute[];
1440
1692
  parameters?: DataSourceParameters;
@@ -1443,12 +1695,14 @@ export declare class Model extends BaseHandlerChainService {
1443
1695
  insert(dto: JsonObject): Promise<DataSourceSaveResult>;
1444
1696
  update(dto: JsonObject, parameters: DataSourceParameters): Promise<DataSourceSaveResult>;
1445
1697
  copy(primaryColumnValue: string, data?: JsonObject): Promise<JsonObject>;
1446
- create(data?: JsonObject): Promise<void>;
1698
+ create(data?: JsonObject): Promise<JsonObject>;
1447
1699
  delete(parameters: DataSourceParameters): Promise<DataSourceSaveResult>;
1448
1700
  canSave(params: DataSourceCanExecuteOperationPayload): Promise<DataSourceCanExecuteOperationResult>;
1449
1701
  canDelete(params: DataSourceCanExecuteOperationPayload): Promise<DataSourceCanExecuteOperationResult>;
1450
1702
  }
1451
1703
 
1704
+ /* Excluded from this release type: ModelDefaultValue */
1705
+
1452
1706
  /* Excluded from this release type: ModelInitConfig */
1453
1707
 
1454
1708
  /* Excluded from this release type: ModelInPageAction */
@@ -1469,12 +1723,15 @@ export declare enum ModelParameterType {
1469
1723
  * @description Definition of CrtModule. Use this to register elements in Creatio platform.
1470
1724
  * @property {Type[]} includes - Array of other CrnModules which are included in current.
1471
1725
  * This allows easily create chains of CrtModules. Bootstrapping will be done through all module chain
1472
- * @property {Type[]} viewElements - Array of user-defined view elements which will be registered
1473
- * in Creatio platform.
1726
+ * @property {Type[]} viewElements - Array of user-defined view elements which will be registered in Creatio platform.
1727
+ * @property {Type[]} validators - Array of user-defined validators which will be registered in Creatio platform.
1728
+ * @property {Type<BaseRequestHandler>[]} requestHandlers - Array of user-defined request handlers
1729
+ * which will be registered in Creatio platform.
1474
1730
  * @example
1475
1731
  * @CrtModule({
1476
1732
  * viewElements: [AppComponent, UserComponent],
1477
- * includes: [NotifyModule]
1733
+ * includes: [NotifyModule],
1734
+ * requestHandlers: [SomeRequestHandler],
1478
1735
  * })
1479
1736
  * @NgModule({
1480
1737
  * declarations: [AppComponent, UserComponent],
@@ -1485,7 +1742,7 @@ export declare enum ModelParameterType {
1485
1742
  */
1486
1743
  export declare interface ModuleDefinition {
1487
1744
  /**
1488
- * @description Array of other CrnModules which are included in current.
1745
+ * @description Array of other CrtModules which are included in current.
1489
1746
  * This allows easily create chains of CrtModules. Bootstrapping will be done through all module chain
1490
1747
  */
1491
1748
  includes?: Type[];
@@ -1494,8 +1751,15 @@ export declare interface ModuleDefinition {
1494
1751
  * in Creatio platform.
1495
1752
  */
1496
1753
  viewElements?: Type[];
1754
+ /**
1755
+ * @description Array of user-defined validators which will be registered in Creatio platform
1756
+ */
1757
+ validators?: Type<BaseValidator>[];
1497
1758
  /* Excluded from this release type: designTimeViewElements */
1498
- /* Excluded from this release type: requestHandlers */
1759
+ /**
1760
+ * @description Array of user-defined request handlers which will be registered in Creatio platform
1761
+ */
1762
+ requestHandlers?: Type<BaseRequestHandler>[];
1499
1763
  /* Excluded from this release type: converters */
1500
1764
  /* Excluded from this release type: handlerChainServices */
1501
1765
  }
@@ -1531,6 +1795,8 @@ export declare class ParameterQueryColumn extends BaseQueryColumn<ParameterExpre
1531
1795
  constructor(value: EntityColumnValue, dataValueType?: DataValueType);
1532
1796
  }
1533
1797
 
1798
+ /* Excluded from this release type: PkgTopology */
1799
+
1534
1800
  /**
1535
1801
  * @public
1536
1802
  */
@@ -1625,13 +1891,10 @@ export declare interface QuerySysSettingsResponse extends BaseResponse {
1625
1891
  /**
1626
1892
  * @type {Record<string, SysSetting>}
1627
1893
  * @description system settings values. {@link SysSetting}
1628
- * @memberof QuerySysSettingsResponse
1629
1894
  */
1630
1895
  values: Record<string, SysSetting>;
1631
1896
  }
1632
1897
 
1633
- /* Excluded from this release type: registerHandlerChainServices */
1634
-
1635
1898
  /**
1636
1899
  * @public
1637
1900
  * @description Function allows to register user-defined component as view element in Creatio platform.
@@ -1651,12 +1914,62 @@ export declare function registerViewElement(config: ViewElementRegistrationConfi
1651
1914
 
1652
1915
  /* Excluded from this release type: RegistryItemsStore */
1653
1916
 
1917
+ /* Excluded from this release type: RemoteEntriesRegistry */
1918
+
1919
+ /* Excluded from this release type: RemoteEntryInfo */
1920
+
1921
+ /* Excluded from this release type: RemoteHandlerSource */
1922
+
1654
1923
  /* Excluded from this release type: RemoveRequestHandlerListener */
1655
1924
 
1656
- /* Excluded from this release type: RequestHandler */
1925
+ /**
1926
+ * @public
1927
+ * @description Interface to defining request handler in handler chain.
1928
+ * @interface RequestHandler
1929
+ * @template TRequest
1930
+ * @template TResult
1931
+ */
1932
+ export declare interface RequestHandler<TRequest = BaseRequest, TResult = unknown> {
1933
+ /**
1934
+ * @description Abstract async method which contains logic to handle request properly.
1935
+ * @param {TRequest} request - {@link BaseRequest}
1936
+ */
1937
+ handle(request: TRequest): Promise<TResult>;
1938
+ /**
1939
+ * @description Method to set request handler in handler chain.
1940
+ * @param {RequestHandler} next - link for next request handler - {@link RequestHandler}
1941
+ */
1942
+ setNext(next: RequestHandler): void;
1943
+ }
1657
1944
 
1658
1945
  /* Excluded from this release type: RequestHandlerCtor */
1659
1946
 
1947
+ /**
1948
+ * @public
1949
+ * @description Config to register request handler.
1950
+ * @property {string} type - The type of request handler.
1951
+ * @property {string} requestType - The type of request for which the handler will be triggered.
1952
+ * @property {string[]} scopes - Scopes of the request for which the handler will be triggered
1953
+ */
1954
+ export declare interface RequestHandlerDefinition {
1955
+ /**
1956
+ * The type of request handler.
1957
+ * @example
1958
+ * 'crt.EventHandlerType'
1959
+ */
1960
+ readonly type: string;
1961
+ /**
1962
+ * The type of request for which the handler will be triggered.
1963
+ * @example
1964
+ * 'crt.EventType'
1965
+ */
1966
+ readonly requestType: string;
1967
+ /**
1968
+ * Scopes of the request for which the handler will be triggered
1969
+ */
1970
+ readonly scopes?: string[];
1971
+ }
1972
+
1660
1973
  /* Excluded from this release type: RequestHandlerFactory */
1661
1974
 
1662
1975
  /* Excluded from this release type: RequestHandlerMapValue */
@@ -1671,7 +1984,12 @@ export declare function registerViewElement(config: ViewElementRegistrationConfi
1671
1984
 
1672
1985
  /**
1673
1986
  * @public
1674
- * @class RightsService
1987
+ * @description Function that takes a injection token, and returns dependency instance.
1988
+ */
1989
+ export declare type ResolveDependencyFn = (token: unknown) => unknown;
1990
+
1991
+ /**
1992
+ * @public
1675
1993
  * @classdesc Service to working rights using handler chain
1676
1994
  * @extends {BaseHandlerChainService}
1677
1995
  */
@@ -1710,6 +2028,8 @@ export declare interface SaveSysSettingsResponse extends BaseResponse {
1710
2028
  /* Excluded from this release type: nextPrcElReady */
1711
2029
  }
1712
2030
 
2031
+ /* Excluded from this release type: SchemaHandlerSource */
2032
+
1713
2033
  /* Excluded from this release type: setDesignTimeViewElementMetadata */
1714
2034
 
1715
2035
  /* Excluded from this release type: setInterfaceDesignerItemMetadata */
@@ -1718,6 +2038,8 @@ export declare interface SaveSysSettingsResponse extends BaseResponse {
1718
2038
 
1719
2039
  /* Excluded from this release type: setRequestHandlerMetadata */
1720
2040
 
2041
+ /* Excluded from this release type: setValidatorMetadata */
2042
+
1721
2043
  /* Excluded from this release type: setViewElementMetadata */
1722
2044
 
1723
2045
  export declare abstract class SingleFilter extends BaseFilter {
@@ -1959,10 +2281,42 @@ export declare class ValidationUtilities {
1959
2281
  }): void;
1960
2282
  }
1961
2283
 
1962
- /* Excluded from this release type: ValidatorConfig */
2284
+ /**
2285
+ * @public
2286
+ * @description Config used to register validator in Creatio platform.
2287
+ * @property {string} type - type of validator
2288
+ */
2289
+ export declare interface ValidatorConfig {
2290
+ /**
2291
+ * @description Config used to register validator in Creatio platform.
2292
+ */
2293
+ type: string;
2294
+ /* Excluded from this release type: params */
2295
+ /* Excluded from this release type: scope */
2296
+ }
2297
+
2298
+ /* Excluded from this release type: ValidatorMapValue */
2299
+
2300
+ /* Excluded from this release type: ValidatorMetadata */
1963
2301
 
1964
2302
  /* Excluded from this release type: ValidatorParameters */
1965
2303
 
2304
+ /**
2305
+ * @public
2306
+ * @description Shape for specifying parameters passed to validator
2307
+ * @property {string} message - message should be displayed for error;
2308
+ */
2309
+ export declare interface ValidatorParametersValues {
2310
+ [name: string]: unknown;
2311
+ message?: string;
2312
+ }
2313
+
2314
+ /* Excluded from this release type: ValidatorRegistry */
2315
+
2316
+ /* Excluded from this release type: ValidatorRegistryItem */
2317
+
2318
+ /* Excluded from this release type: validatorRegistryKey */
2319
+
1966
2320
  /* Excluded from this release type: ValidatorSchemaConfig */
1967
2321
 
1968
2322
  /**