@creatio-devkit/common 0.803.1 → 0.804.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 (295) hide show
  1. package/CHANGELOG.md +8 -2
  2. package/README.md +16 -20
  3. package/creatio-devkit-common.d.ts +376 -38
  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/designer-group-type.enum.mjs +1 -1
  29. package/esm2020/lib/internal/enums/handler-source-type.enum.mjs +11 -0
  30. package/esm2020/lib/internal/enums/index.mjs +3 -1
  31. package/esm2020/lib/internal/enums/model-in-page-action.enum.mjs +1 -1
  32. package/esm2020/lib/internal/enums/view-element-group-type.enum.mjs +1 -2
  33. package/esm2020/lib/internal/esq/data-model/index.mjs +1 -1
  34. package/esm2020/lib/internal/esq/data-model/metadata-provider/metadata-provider.mjs +1 -1
  35. package/esm2020/lib/internal/esq/data-model/queries/base-filterable-query.mjs +1 -1
  36. package/esm2020/lib/internal/esq/data-model/queries/base-query.mjs +1 -1
  37. package/esm2020/lib/internal/esq/data-model/queries/delete-query.mjs +1 -1
  38. package/esm2020/lib/internal/esq/data-model/queries/entity-schema-query.mjs +1 -1
  39. package/esm2020/lib/internal/esq/data-model/queries/index.mjs +1 -1
  40. package/esm2020/lib/internal/esq/data-model/queries/insert-query.mjs +1 -1
  41. package/esm2020/lib/internal/esq/data-model/queries/query-operation-type.mjs +1 -1
  42. package/esm2020/lib/internal/esq/data-model/queries/update-query.mjs +1 -1
  43. package/esm2020/lib/internal/esq/index.mjs +1 -1
  44. package/esm2020/lib/internal/model/data-schema/data-schema-attribute-aggregation-config.mjs +2 -0
  45. package/esm2020/lib/internal/model/data-schema/data-schema-validator-config.mjs +2 -0
  46. package/esm2020/lib/internal/model/data-source-config.mjs +1 -1
  47. package/esm2020/lib/internal/model/index.mjs +3 -1
  48. package/esm2020/lib/internal/models/design-time-view-element-registry-item.mjs +1 -1
  49. package/esm2020/lib/internal/models/handler-chain-service-registry-item.mjs +1 -1
  50. package/esm2020/lib/internal/models/index.mjs +3 -3
  51. package/esm2020/lib/internal/models/interface-designer-item/base-interface-designer-item-registration-config.mjs +1 -1
  52. package/esm2020/lib/internal/models/interface-designer-item/index.mjs +1 -1
  53. package/esm2020/lib/internal/models/interface-designer-item/interface-designer-item-registration-config.model.mjs +1 -1
  54. package/esm2020/lib/internal/models/interface-designer-item/toolbar-view-element-config.mjs +1 -1
  55. package/esm2020/lib/internal/models/interface-designer-registry-item.mjs +1 -1
  56. package/esm2020/lib/internal/models/internal-interface-designer-item-registration-config.model.mjs +1 -1
  57. package/esm2020/lib/internal/models/remote-entry-info.mjs +2 -0
  58. package/esm2020/lib/internal/models/request/index.mjs +1 -2
  59. package/esm2020/lib/internal/models/request/method-invoke-request.mjs +1 -1
  60. package/esm2020/lib/internal/models/request-handler/handler-config.mjs +2 -0
  61. package/esm2020/lib/internal/models/request-handler/handler-source.mjs +2 -0
  62. package/esm2020/lib/internal/models/request-handler/index.mjs +3 -2
  63. package/esm2020/lib/internal/models/request-handler/request-handler-factory.mjs +1 -1
  64. package/esm2020/lib/internal/models/request-handler/request-handler-registration-config.model.mjs +1 -1
  65. package/esm2020/lib/internal/models/validator/index.mjs +4 -0
  66. package/esm2020/lib/internal/models/validator/validator-parameters.mjs +2 -0
  67. package/esm2020/lib/internal/models/validator/validator-registry-item.mjs +2 -0
  68. package/esm2020/lib/internal/models/validator/validator-schema-config.model.mjs +2 -0
  69. package/esm2020/lib/internal/models/view-element/angular-view-element-registration-config.model.mjs +1 -1
  70. package/esm2020/lib/internal/models/view-element/index.mjs +1 -1
  71. package/esm2020/lib/internal/models/view-element-registry-item.mjs +1 -1
  72. package/esm2020/lib/internal/services/base-handler-chain.service.mjs +1 -1
  73. package/esm2020/lib/internal/services/base-registry/base-registry.mjs +1 -1
  74. package/esm2020/lib/internal/services/base-registry/index.mjs +1 -1
  75. package/esm2020/lib/internal/services/bootstrap-notifier/bootstrap-notifier.mjs +2 -3
  76. package/esm2020/lib/internal/services/bootstrap-notifier/index.mjs +1 -1
  77. package/esm2020/lib/internal/services/design-time-view-element-registry/design-time-view-element-registry.mjs +1 -1
  78. package/esm2020/lib/internal/services/design-time-view-element-registry/index.mjs +1 -1
  79. package/esm2020/lib/internal/services/element-registration-checker/element-registration-checker.mjs +1 -1
  80. package/esm2020/lib/internal/services/element-registration-checker/index.mjs +1 -1
  81. package/esm2020/lib/internal/services/global-converters-registry/global-converters-registry.service.mjs +1 -1
  82. package/esm2020/lib/internal/services/global-converters-registry/index.mjs +1 -1
  83. package/esm2020/lib/internal/services/handler-chain-services-registry/handler-chain-services-registry.mjs +1 -1
  84. package/esm2020/lib/internal/services/handler-chain-services-registry/index.mjs +1 -1
  85. package/esm2020/lib/internal/services/index.mjs +4 -1
  86. package/esm2020/lib/internal/services/interface-designer-item-registry/index.mjs +1 -1
  87. package/esm2020/lib/internal/services/interface-designer-item-registry/interface-designer-item-registry.mjs +1 -1
  88. package/esm2020/lib/internal/services/pkg-topology-registry/index.mjs +2 -0
  89. package/esm2020/lib/internal/services/pkg-topology-registry/pkg-topology-registry.mjs +18 -0
  90. package/esm2020/lib/internal/services/remote-entries-registry/index.mjs +2 -0
  91. package/esm2020/lib/internal/services/remote-entries-registry/remote-entries-registry.mjs +11 -0
  92. package/esm2020/lib/internal/services/request-handler-registry/index.mjs +1 -1
  93. package/esm2020/lib/internal/services/request-handler-registry/request-handler-registry.service.mjs +9 -4
  94. package/esm2020/lib/internal/services/request-registry/index.mjs +1 -1
  95. package/esm2020/lib/internal/services/request-registry/request-registry.service.mjs +1 -1
  96. package/esm2020/lib/internal/services/validator-registry/index.mjs +2 -0
  97. package/esm2020/lib/internal/services/validator-registry/validator-registry.mjs +33 -0
  98. package/esm2020/lib/internal/services/view-element-registry/index.mjs +1 -1
  99. package/esm2020/lib/internal/services/view-element-registry/view-element-registry.mjs +1 -1
  100. package/esm2020/lib/internal/utils/component-config-utils.mjs +12 -0
  101. package/esm2020/lib/internal/utils/handlers-order-comparer.mjs +42 -0
  102. package/esm2020/lib/internal/utils/index.mjs +4 -1
  103. package/esm2020/lib/internal/utils/instantiate.mjs +17 -0
  104. package/esm2020/lib/internal/utils/localization-utils.mjs +1 -1
  105. package/esm2020/lib/internal/utils/metadata-utils.mjs +56 -15
  106. package/esm2020/lib/internal/utils/object-deep-keys/index.mjs +1 -1
  107. package/esm2020/lib/internal/utils/object-deep-keys/object-deep-keys.mjs +1 -1
  108. package/esm2020/lib/public/decorators/index.mjs +4 -1
  109. package/esm2020/lib/public/decorators/inject/index.mjs +2 -0
  110. package/esm2020/lib/public/decorators/inject/inject.decorator.mjs +19 -0
  111. package/esm2020/lib/public/decorators/input/index.mjs +1 -1
  112. package/esm2020/lib/public/decorators/input/input.decorator.mjs +1 -1
  113. package/esm2020/lib/public/decorators/interface-designer-item/index.mjs +1 -1
  114. package/esm2020/lib/public/decorators/interface-designer-item/interface-designer-item.decorator.mjs +14 -40
  115. package/esm2020/lib/public/decorators/module/index.mjs +1 -1
  116. package/esm2020/lib/public/decorators/module/module.decorator.mjs +4 -4
  117. package/esm2020/lib/public/decorators/output/index.mjs +1 -1
  118. package/esm2020/lib/public/decorators/output/output.decorator.mjs +1 -1
  119. package/esm2020/lib/public/decorators/request-handler/index.mjs +2 -0
  120. package/esm2020/lib/public/decorators/request-handler/request-handler.decorator.mjs +18 -0
  121. package/esm2020/lib/public/decorators/validation-input/index.mjs +1 -1
  122. package/esm2020/lib/public/decorators/validation-input/validation-input.decorator.mjs +1 -1
  123. package/esm2020/lib/public/decorators/validator/index.mjs +2 -0
  124. package/esm2020/lib/public/decorators/validator/validator.decorator.mjs +21 -0
  125. package/esm2020/lib/public/decorators/view-element/index.mjs +1 -1
  126. package/esm2020/lib/public/decorators/view-element/view-element.decorator.mjs +11 -18
  127. package/esm2020/lib/public/enums/aggregation-function.enum.mjs +1 -1
  128. package/esm2020/lib/public/enums/aggregation-type.enum.mjs +1 -1
  129. package/esm2020/lib/public/enums/data-value-type.enum.mjs +3 -2
  130. package/esm2020/lib/public/enums/index.mjs +1 -1
  131. package/esm2020/lib/public/esq/data-model/columns/arithmetic/arithmetic-query-column.mjs +1 -1
  132. package/esm2020/lib/public/esq/data-model/columns/base-query-column.mjs +1 -1
  133. package/esm2020/lib/public/esq/data-model/columns/entity-column/entity-query-column.mjs +1 -1
  134. package/esm2020/lib/public/esq/data-model/columns/functions/aggregation-function-column.mjs +1 -1
  135. package/esm2020/lib/public/esq/data-model/columns/functions/date-part-function-column.mjs +1 -1
  136. package/esm2020/lib/public/esq/data-model/columns/functions/length-function-column.mjs +1 -1
  137. package/esm2020/lib/public/esq/data-model/columns/functions/macros-function-column.mjs +1 -1
  138. package/esm2020/lib/public/esq/data-model/columns/functions/window-function-column.mjs +1 -1
  139. package/esm2020/lib/public/esq/data-model/columns/index.mjs +1 -1
  140. package/esm2020/lib/public/esq/data-model/columns/parameters/parameter-query-column.mjs +1 -1
  141. package/esm2020/lib/public/esq/data-model/columns/sub-queries/aggregation-sub-query-column.mjs +1 -1
  142. package/esm2020/lib/public/esq/data-model/columns/sub-queries/sub-query-column.mjs +1 -1
  143. package/esm2020/lib/public/esq/data-model/enums/aggregation-eval-type.enum.mjs +1 -1
  144. package/esm2020/lib/public/esq/data-model/enums/arithmetic-operation.enum.mjs +1 -1
  145. package/esm2020/lib/public/esq/data-model/enums/comparison-type.enum.mjs +1 -1
  146. package/esm2020/lib/public/esq/data-model/enums/date-part-type.enum.mjs +1 -1
  147. package/esm2020/lib/public/esq/data-model/enums/expression-type.enum.mjs +1 -1
  148. package/esm2020/lib/public/esq/data-model/enums/filter-type.enum.mjs +1 -1
  149. package/esm2020/lib/public/esq/data-model/enums/function-type.enum.mjs +1 -1
  150. package/esm2020/lib/public/esq/data-model/enums/index.mjs +1 -1
  151. package/esm2020/lib/public/esq/data-model/enums/logical-operator-type.enum.mjs +1 -1
  152. package/esm2020/lib/public/esq/data-model/enums/order-direction.enum.mjs +1 -1
  153. package/esm2020/lib/public/esq/data-model/enums/query-macros-type.enum.mjs +1 -1
  154. package/esm2020/lib/public/esq/data-model/expressions/arithmetic/arithmetic-expression.mjs +1 -1
  155. package/esm2020/lib/public/esq/data-model/expressions/arithmetic/index.mjs +1 -1
  156. package/esm2020/lib/public/esq/data-model/expressions/base-expression.mjs +1 -1
  157. package/esm2020/lib/public/esq/data-model/expressions/columns/column-expression.mjs +1 -1
  158. package/esm2020/lib/public/esq/data-model/expressions/columns/index.mjs +1 -1
  159. package/esm2020/lib/public/esq/data-model/expressions/functions/aggregation-function-expression.mjs +1 -1
  160. package/esm2020/lib/public/esq/data-model/expressions/functions/argument-function-expression.mjs +1 -1
  161. package/esm2020/lib/public/esq/data-model/expressions/functions/date-part-function-expression.mjs +1 -1
  162. package/esm2020/lib/public/esq/data-model/expressions/functions/function-expression.mjs +1 -1
  163. package/esm2020/lib/public/esq/data-model/expressions/functions/index.mjs +1 -1
  164. package/esm2020/lib/public/esq/data-model/expressions/functions/length-function-expression.mjs +1 -1
  165. package/esm2020/lib/public/esq/data-model/expressions/functions/macros-function-expression.mjs +1 -1
  166. package/esm2020/lib/public/esq/data-model/expressions/functions/window-function-expression.mjs +1 -1
  167. package/esm2020/lib/public/esq/data-model/expressions/index.mjs +1 -1
  168. package/esm2020/lib/public/esq/data-model/expressions/mocks/expression.mock.mjs +1 -1
  169. package/esm2020/lib/public/esq/data-model/expressions/mocks/index.mjs +1 -1
  170. package/esm2020/lib/public/esq/data-model/expressions/parameters/index.mjs +1 -1
  171. package/esm2020/lib/public/esq/data-model/expressions/parameters/parameter-expression.mjs +1 -1
  172. package/esm2020/lib/public/esq/data-model/expressions/sub-queries/aggregation-sub-query-expression.mjs +1 -1
  173. package/esm2020/lib/public/esq/data-model/expressions/sub-queries/index.mjs +1 -1
  174. package/esm2020/lib/public/esq/data-model/expressions/sub-queries/sub-query-expression.mjs +1 -1
  175. package/esm2020/lib/public/esq/data-model/filters/base-filter.mjs +1 -1
  176. package/esm2020/lib/public/esq/data-model/filters/between-filter.mjs +1 -1
  177. package/esm2020/lib/public/esq/data-model/filters/compare-filter.mjs +1 -1
  178. package/esm2020/lib/public/esq/data-model/filters/exists-filter.mjs +1 -1
  179. package/esm2020/lib/public/esq/data-model/filters/filter-group.mjs +1 -1
  180. package/esm2020/lib/public/esq/data-model/filters/in-filter.mjs +1 -1
  181. package/esm2020/lib/public/esq/data-model/filters/index.mjs +1 -1
  182. package/esm2020/lib/public/esq/data-model/filters/isnull-filter.mjs +1 -1
  183. package/esm2020/lib/public/esq/data-model/filters/mocks/filter.mock.mjs +1 -1
  184. package/esm2020/lib/public/esq/data-model/filters/mocks/index.mjs +1 -1
  185. package/esm2020/lib/public/esq/data-model/filters/single-filter.mjs +1 -1
  186. package/esm2020/lib/public/esq/data-model/index.mjs +1 -1
  187. package/esm2020/lib/public/esq/index.mjs +1 -1
  188. package/esm2020/lib/public/exceptions/argument-empty-exception.mjs +1 -1
  189. package/esm2020/lib/public/exceptions/argument-out-of-range-exception.mjs +1 -1
  190. package/esm2020/lib/public/exceptions/index.mjs +1 -1
  191. package/esm2020/lib/public/exceptions/item-not-found-exception.mjs +1 -1
  192. package/esm2020/lib/public/exceptions/next-handler-already-specified-exception.mjs +1 -1
  193. package/esm2020/lib/public/exceptions/validation-utilities.mjs +1 -1
  194. package/esm2020/lib/public/functions/bootstrap-crt-module-handler-chain-services.mjs +28 -0
  195. package/esm2020/lib/public/functions/bootstrap-crt-module.mjs +76 -20
  196. package/esm2020/lib/public/functions/index.mjs +2 -1
  197. package/esm2020/lib/public/functions/localize.mjs +1 -1
  198. package/esm2020/lib/public/functions/register-view-element.mjs +1 -1
  199. package/esm2020/lib/public/handlers/base-request-handler.mjs +37 -0
  200. package/esm2020/lib/public/handlers/index.mjs +2 -0
  201. package/esm2020/lib/public/models/base-response.model.mjs +1 -1
  202. package/esm2020/lib/public/models/converter.model.mjs +1 -1
  203. package/esm2020/lib/public/models/data-source/data-source-insert-result.model.mjs +2 -0
  204. package/esm2020/lib/public/models/data-source/data-source-save-result.model.mjs +2 -0
  205. package/esm2020/lib/public/models/data-source/index.mjs +3 -0
  206. package/esm2020/lib/public/models/entity.model.mjs +1 -1
  207. package/esm2020/lib/public/models/error-info.model.mjs +1 -1
  208. package/esm2020/lib/public/models/image-value.model.mjs +1 -1
  209. package/esm2020/lib/public/models/index.mjs +4 -2
  210. package/esm2020/lib/public/models/input/index.mjs +1 -1
  211. package/esm2020/lib/public/models/input/input-registration-config.model.mjs +1 -1
  212. package/esm2020/lib/public/models/interface-designer-item/index.mjs +1 -1
  213. package/esm2020/lib/public/models/interface-designer-item/interface-designer-item-definition.mjs +1 -1
  214. package/esm2020/lib/public/models/localizable-value.mjs +12 -1
  215. package/esm2020/lib/public/models/lookup-value.model.mjs +1 -1
  216. package/esm2020/lib/public/models/mask-settings.mjs +1 -1
  217. package/esm2020/lib/public/models/module-definition.mjs +1 -1
  218. package/esm2020/lib/public/models/request/base-request-config.mjs +1 -1
  219. package/esm2020/lib/public/models/request/base-request.mjs +1 -1
  220. package/esm2020/lib/public/models/request/data-source-request.mjs +1 -1
  221. package/esm2020/lib/public/models/request/index.mjs +2 -1
  222. package/esm2020/lib/public/models/request/request-registration-config.model.mjs +2 -0
  223. package/esm2020/lib/public/models/request-handler/index.mjs +3 -0
  224. package/esm2020/lib/public/models/request-handler/request-handler-definition.mjs +2 -0
  225. package/esm2020/lib/public/models/request-handler/request-handler.mjs +2 -0
  226. package/esm2020/lib/public/models/validation/base-validator.mjs +40 -0
  227. package/esm2020/lib/public/models/validation/crt-control-state.mjs +2 -0
  228. package/esm2020/lib/public/models/validation/crt-validation-errors.mjs +1 -1
  229. package/esm2020/lib/public/models/validation/crt-validator-fn.mjs +2 -0
  230. package/esm2020/lib/public/models/validation/index.mjs +6 -1
  231. package/esm2020/lib/public/models/validation/validation-info.mjs +1 -1
  232. package/esm2020/lib/public/models/validation/validator-config.mjs +2 -0
  233. package/esm2020/lib/public/models/validation/validator-parameter-values.mjs +2 -0
  234. package/esm2020/lib/public/models/view-element/base-view-element-registration-config.mjs +1 -1
  235. package/esm2020/lib/public/models/view-element/index.mjs +1 -1
  236. package/esm2020/lib/public/models/view-element/view-element-registration-config.mjs +1 -1
  237. package/esm2020/lib/public/models/view-model-context.mjs +1 -1
  238. package/esm2020/lib/public/services/feature/feature.service.mjs +1 -2
  239. package/esm2020/lib/public/services/feature/index.mjs +1 -1
  240. package/esm2020/lib/public/services/handler-chain/handler-chain.service.mjs +3 -7
  241. package/esm2020/lib/public/services/handler-chain/index.mjs +1 -1
  242. package/esm2020/lib/public/services/handler-chain/internal-handler-chain.mjs +23 -17
  243. package/esm2020/lib/public/services/http-client/http-client.service.mjs +1 -2
  244. package/esm2020/lib/public/services/http-client/http-headers.mjs +1 -1
  245. package/esm2020/lib/public/services/http-client/http-response.mjs +1 -1
  246. package/esm2020/lib/public/services/http-client/index.mjs +1 -1
  247. package/esm2020/lib/public/services/index.mjs +1 -1
  248. package/esm2020/lib/public/services/mask-service/index.mjs +1 -1
  249. package/esm2020/lib/public/services/mask-service/mask.service.mjs +1 -2
  250. package/esm2020/lib/public/services/model/data-schema-attribute.mjs +2 -0
  251. package/esm2020/lib/public/services/model/data-schema.mjs +2 -0
  252. package/esm2020/lib/public/services/model/data-source-aggregation-config.mjs +1 -1
  253. package/esm2020/lib/public/services/model/data-source-attribute.mjs +1 -1
  254. package/esm2020/lib/public/services/model/data-source-can-execute-operation.mjs +1 -1
  255. package/esm2020/lib/public/services/model/data-source-paging-config.mjs +1 -1
  256. package/esm2020/lib/public/services/model/data-source-parameter.mjs +1 -1
  257. package/esm2020/lib/public/services/model/data-source-sorting-config.mjs +1 -1
  258. package/esm2020/lib/public/services/model/index.mjs +3 -2
  259. package/esm2020/lib/public/services/model/model-load-options.mjs +1 -1
  260. package/esm2020/lib/public/services/model/model.mjs +1 -2
  261. package/esm2020/lib/public/services/rights/index.mjs +1 -1
  262. package/esm2020/lib/public/services/rights/rights.service.mjs +1 -2
  263. package/esm2020/lib/public/services/sys-settings/index.mjs +1 -1
  264. package/esm2020/lib/public/services/sys-settings/sys-setting.model.mjs +1 -1
  265. package/esm2020/lib/public/services/sys-settings/sys-settings.service.mjs +1 -1
  266. package/esm2020/lib/public/services/sys-values/index.mjs +1 -1
  267. package/esm2020/lib/public/services/sys-values/sys-values.mjs +1 -1
  268. package/esm2020/lib/public/services/sys-values/sys-values.service.mjs +1 -1
  269. package/esm2020/lib/public/types/abstract-type.mjs +2 -0
  270. package/esm2020/lib/public/types/entity-column-value.mjs +1 -1
  271. package/esm2020/lib/public/types/guid.type.mjs +1 -1
  272. package/esm2020/lib/public/types/index.mjs +4 -1
  273. package/esm2020/lib/public/types/json-data.type.mjs +1 -1
  274. package/esm2020/lib/public/types/localizable-string.type.mjs +2 -0
  275. package/esm2020/lib/public/types/localize-fn.type.mjs +1 -1
  276. package/esm2020/lib/public/types/resolve-dependency-fn.type.mjs +2 -0
  277. package/esm2020/lib/public/types/sort-direction.type.mjs +1 -1
  278. package/esm2020/lib/public/types/type.mjs +1 -1
  279. package/fesm2015/creatio-devkit-common.mjs +512 -167
  280. package/fesm2015/creatio-devkit-common.mjs.map +1 -1
  281. package/fesm2020/creatio-devkit-common.mjs +519 -169
  282. package/fesm2020/creatio-devkit-common.mjs.map +1 -1
  283. package/package.json +12 -7
  284. package/esm2020/lib/internal/decorators/request-handler/index.mjs +0 -2
  285. package/esm2020/lib/internal/decorators/request-handler/request-handler.decorator.mjs +0 -15
  286. package/esm2020/lib/internal/handlers/base-request-handler.mjs +0 -26
  287. package/esm2020/lib/internal/handlers/index.mjs +0 -2
  288. package/esm2020/lib/internal/models/request/request-registration-config.model.mjs +0 -2
  289. package/esm2020/lib/internal/models/request-handler/request-handler.mjs +0 -2
  290. package/esm2020/lib/internal/models/validation/crt-control.mjs +0 -2
  291. package/esm2020/lib/internal/models/validation/crt-validator-fn.mjs +0 -2
  292. package/esm2020/lib/internal/models/validation/index.mjs +0 -3
  293. package/esm2020/lib/internal/models/validator-config.model.mjs +0 -2
  294. package/esm2020/lib/public/models/interfaces/data-source-save-result.interface.mjs +0 -2
  295. 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,69 @@ 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} isSensitiveData - is data of DataSchemaAttribute sensetive.
802
+ */
803
+ export declare interface DataSchemaAttribute {
804
+ name: string;
805
+ caption: string;
806
+ /* Excluded from this release type: path */
807
+ /**
808
+ * @description {@link DataValueType} - value type of DataSchemaAttribute.
809
+ */
810
+ dataValueType: DataValueType;
811
+ /* Excluded from this release type: validators */
812
+ /* Excluded from this release type: defaultValue */
813
+ isValueCloneable: boolean;
814
+ /* Excluded from this release type: attributeType */
815
+ referenceSchemaName?: string;
816
+ /* Excluded from this release type: aggregationConfig */
817
+ isMasked: boolean;
818
+ isSensitiveData: boolean;
819
+ /* Excluded from this release type: usageType */
820
+ }
821
+
822
+ /* Excluded from this release type: DataSchemaAttributeAggregationConfig */
823
+
824
+ /* Excluded from this release type: DataSchemaAttributeType */
825
+
826
+ /* Excluded from this release type: DataSchemaAttributeUsageType */
827
+
828
+ /* Excluded from this release type: DataSchemaAttributeValidatorConfig */
829
+
830
+ /* Excluded from this release type: DataSchemaValidatorConfig */
831
+
624
832
  export declare interface DataSourceAggregationConfig {
625
833
  aggregationFunction?: AggregationFunction;
626
834
  filter?: FilterGroup;
@@ -713,7 +921,7 @@ export declare interface DataSourceSaveResult {
713
921
  /**
714
922
  * @description Error message.
715
923
  */
716
- errorInfo: string;
924
+ errorInfo?: string;
717
925
  }
718
926
 
719
927
  /* Excluded from this release type: DataSourceScope */
@@ -742,7 +950,7 @@ export declare enum DataValueType {
742
950
  CUSTOM_OBJECT = 15,
743
951
  IMAGELOOKUP = 16,
744
952
  COLLECTION = 17,
745
- COLOR = 18,
953
+ Color = 18,
746
954
  LOCALIZABLE_STRING = 19,
747
955
  ENTITY = 20,
748
956
  ENTITY_COLLECTION = 21,
@@ -765,7 +973,8 @@ export declare enum DataValueType {
765
973
  OBJECT_LIST = 38,
766
974
  COMPOSITE_OBJECT_LIST = 39,
767
975
  FLOAT8 = 40,
768
- PHONE_TEXT = 42
976
+ PHONE_TEXT = 42,
977
+ RICH_TEXT = 43
769
978
  }
770
979
 
771
980
  export declare class DatePartFunctionColumn extends BaseQueryColumn<DatePartFunctionExpression> {
@@ -877,7 +1086,6 @@ export declare enum ExpressionType {
877
1086
 
878
1087
  /**
879
1088
  * @public
880
- * @class FeatureService
881
1089
  * @classdesc Service to working with Creatio platform features using handler chain
882
1090
  * @extends {BaseHandlerChainService}
883
1091
  */
@@ -979,6 +1187,10 @@ export declare enum FunctionType {
979
1187
 
980
1188
  /* Excluded from this release type: getRequestHandlerMetadata */
981
1189
 
1190
+ /* Excluded from this release type: getTypeDependencies */
1191
+
1192
+ /* Excluded from this release type: getValidatorMetadata */
1193
+
982
1194
  /* Excluded from this release type: getViewElementMetadata */
983
1195
 
984
1196
  /* Excluded from this release type: GlobalConvertersRegistryService */
@@ -1016,11 +1228,20 @@ export declare class HandlerChainService {
1016
1228
 
1017
1229
  /* Excluded from this release type: HandlerChainServicesRegistry */
1018
1230
 
1231
+ /* Excluded from this release type: HandlerConfig */
1232
+
1233
+ /* Excluded from this release type: HandlersOrderComparer */
1234
+
1235
+ /* Excluded from this release type: HandlerSource */
1236
+
1237
+ /* Excluded from this release type: HandlerSourceType */
1238
+
1019
1239
  /* Excluded from this release type: hasInterfaceDesignerItemMetadata */
1020
1240
 
1241
+ /* Excluded from this release type: HostHandlerSource */
1242
+
1021
1243
  /**
1022
1244
  * @public
1023
- * @class HttpClientService
1024
1245
  * @classdesc Http service to perform Http requests
1025
1246
  * @extends {BaseHandlerChainService}
1026
1247
  */
@@ -1189,6 +1410,8 @@ export declare class InFilter extends SingleFilter {
1189
1410
 
1190
1411
  /* Excluded from this release type: InsertQuery */
1191
1412
 
1413
+ /* Excluded from this release type: instantiate */
1414
+
1192
1415
  /**
1193
1416
  * @public
1194
1417
  * @description Config used to register view element options in interface designer.
@@ -1204,9 +1427,10 @@ export declare interface InterfaceDesignerItemDefinition {
1204
1427
  */
1205
1428
  caption: string | LocalizableValue;
1206
1429
  /**
1207
- * Name of view element in toolbar.
1430
+ * @deprecated
1431
+ * Name of view element icon in toolbar.
1208
1432
  */
1209
- name: string;
1433
+ name?: string;
1210
1434
  /**
1211
1435
  * Require path to load icon that will be displayed for view element
1212
1436
  * in left panel of Interface designer.
@@ -1250,6 +1474,8 @@ export declare interface InterfaceDesignerItemDefinition {
1250
1474
 
1251
1475
  /* Excluded from this release type: InternalToolbarViewElementConfigCollection */
1252
1476
 
1477
+ /* Excluded from this release type: isComponentPropertyBindable */
1478
+
1253
1479
  /* Excluded from this release type: isEmptyGuid */
1254
1480
 
1255
1481
  /* Excluded from this release type: isGuid */
@@ -1294,12 +1520,25 @@ export declare class LengthFunctionExpression extends ArgumentFunctionExpression
1294
1520
 
1295
1521
  export declare type LengthFunctionExpressionConfig = ArgumentFunctionExpressionConfig<LengthFunctionExpression>;
1296
1522
 
1523
+ /**
1524
+ * @public
1525
+ * @description contract for localizable string
1526
+ *
1527
+ * @example
1528
+ * const localizableString = {
1529
+ * "en-US": 'localizable string'
1530
+ * }
1531
+ */
1532
+ export declare type LocalizableString = string | Record<string, unknown>;
1533
+
1297
1534
  /**
1298
1535
  * @public
1299
1536
  */
1300
1537
  export declare class LocalizableValue {
1301
1538
  readonly key: string;
1539
+ /* Excluded from this release type: _instanceOfKey */
1302
1540
  constructor(key: string);
1541
+ /* Excluded from this release type: [Symbol.hasInstance] */
1303
1542
  }
1304
1543
 
1305
1544
  /**
@@ -1390,7 +1629,6 @@ export declare type MacrosFunctionExpressionConfig = FunctionExpressionConfig<Ma
1390
1629
 
1391
1630
  /**
1392
1631
  * @public
1393
- * @class MaskService
1394
1632
  * @classdesc Service to working with mask using handler chain
1395
1633
  * @extends {BaseHandlerChainService}
1396
1634
  */
@@ -1434,7 +1672,7 @@ export declare class Model extends BaseHandlerChainService {
1434
1672
  private static get instance();
1435
1673
  private _create;
1436
1674
  static create(dataSchema: string): Promise<Model>;
1437
- getSchema(): Promise<unknown>;
1675
+ getSchema(): Promise<DataSchema>;
1438
1676
  load(config?: {
1439
1677
  attributes?: string[] | DataSourceAttribute[];
1440
1678
  parameters?: DataSourceParameters;
@@ -1469,12 +1707,15 @@ export declare enum ModelParameterType {
1469
1707
  * @description Definition of CrtModule. Use this to register elements in Creatio platform.
1470
1708
  * @property {Type[]} includes - Array of other CrnModules which are included in current.
1471
1709
  * 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.
1710
+ * @property {Type[]} viewElements - Array of user-defined view elements which will be registered in Creatio platform.
1711
+ * @property {Type[]} validators - Array of user-defined validators which will be registered in Creatio platform.
1712
+ * @property {Type<BaseRequestHandler>[]} requestHandlers - Array of user-defined request handlers
1713
+ * which will be registered in Creatio platform.
1474
1714
  * @example
1475
1715
  * @CrtModule({
1476
1716
  * viewElements: [AppComponent, UserComponent],
1477
- * includes: [NotifyModule]
1717
+ * includes: [NotifyModule],
1718
+ * requestHandlers: [SomeRequestHandler],
1478
1719
  * })
1479
1720
  * @NgModule({
1480
1721
  * declarations: [AppComponent, UserComponent],
@@ -1485,7 +1726,7 @@ export declare enum ModelParameterType {
1485
1726
  */
1486
1727
  export declare interface ModuleDefinition {
1487
1728
  /**
1488
- * @description Array of other CrnModules which are included in current.
1729
+ * @description Array of other CrtModules which are included in current.
1489
1730
  * This allows easily create chains of CrtModules. Bootstrapping will be done through all module chain
1490
1731
  */
1491
1732
  includes?: Type[];
@@ -1494,8 +1735,15 @@ export declare interface ModuleDefinition {
1494
1735
  * in Creatio platform.
1495
1736
  */
1496
1737
  viewElements?: Type[];
1738
+ /**
1739
+ * @description Array of user-defined validators which will be registered in Creatio platform
1740
+ */
1741
+ validators?: Type<BaseValidator>[];
1497
1742
  /* Excluded from this release type: designTimeViewElements */
1498
- /* Excluded from this release type: requestHandlers */
1743
+ /**
1744
+ * @description Array of user-defined request handlers which will be registered in Creatio platform
1745
+ */
1746
+ requestHandlers?: Type<BaseRequestHandler>[];
1499
1747
  /* Excluded from this release type: converters */
1500
1748
  /* Excluded from this release type: handlerChainServices */
1501
1749
  }
@@ -1531,6 +1779,8 @@ export declare class ParameterQueryColumn extends BaseQueryColumn<ParameterExpre
1531
1779
  constructor(value: EntityColumnValue, dataValueType?: DataValueType);
1532
1780
  }
1533
1781
 
1782
+ /* Excluded from this release type: PkgTopology */
1783
+
1534
1784
  /**
1535
1785
  * @public
1536
1786
  */
@@ -1625,13 +1875,10 @@ export declare interface QuerySysSettingsResponse extends BaseResponse {
1625
1875
  /**
1626
1876
  * @type {Record<string, SysSetting>}
1627
1877
  * @description system settings values. {@link SysSetting}
1628
- * @memberof QuerySysSettingsResponse
1629
1878
  */
1630
1879
  values: Record<string, SysSetting>;
1631
1880
  }
1632
1881
 
1633
- /* Excluded from this release type: registerHandlerChainServices */
1634
-
1635
1882
  /**
1636
1883
  * @public
1637
1884
  * @description Function allows to register user-defined component as view element in Creatio platform.
@@ -1651,12 +1898,62 @@ export declare function registerViewElement(config: ViewElementRegistrationConfi
1651
1898
 
1652
1899
  /* Excluded from this release type: RegistryItemsStore */
1653
1900
 
1901
+ /* Excluded from this release type: RemoteEntriesRegistry */
1902
+
1903
+ /* Excluded from this release type: RemoteEntryInfo */
1904
+
1905
+ /* Excluded from this release type: RemoteHandlerSource */
1906
+
1654
1907
  /* Excluded from this release type: RemoveRequestHandlerListener */
1655
1908
 
1656
- /* Excluded from this release type: RequestHandler */
1909
+ /**
1910
+ * @public
1911
+ * @description Interface to defining request handler in handler chain.
1912
+ * @interface RequestHandler
1913
+ * @template TRequest
1914
+ * @template TResult
1915
+ */
1916
+ export declare interface RequestHandler<TRequest = BaseRequest, TResult = unknown> {
1917
+ /**
1918
+ * @description Abstract async method which contains logic to handle request properly.
1919
+ * @param {TRequest} request - {@link BaseRequest}
1920
+ */
1921
+ handle(request: TRequest): Promise<TResult>;
1922
+ /**
1923
+ * @description Method to set request handler in handler chain.
1924
+ * @param {RequestHandler} next - link for next request handler - {@link RequestHandler}
1925
+ */
1926
+ setNext(next: RequestHandler): void;
1927
+ }
1657
1928
 
1658
1929
  /* Excluded from this release type: RequestHandlerCtor */
1659
1930
 
1931
+ /**
1932
+ * @public
1933
+ * @description Config to register request handler.
1934
+ * @property {string} type - The type of request handler.
1935
+ * @property {string} requestType - The type of request for which the handler will be triggered.
1936
+ * @property {string[]} scopes - Scopes of the request for which the handler will be triggered
1937
+ */
1938
+ export declare interface RequestHandlerDefinition {
1939
+ /**
1940
+ * The type of request handler.
1941
+ * @example
1942
+ * 'crt.EventHandlerType'
1943
+ */
1944
+ readonly type: string;
1945
+ /**
1946
+ * The type of request for which the handler will be triggered.
1947
+ * @example
1948
+ * 'crt.EventType'
1949
+ */
1950
+ readonly requestType: string;
1951
+ /**
1952
+ * Scopes of the request for which the handler will be triggered
1953
+ */
1954
+ readonly scopes?: string[];
1955
+ }
1956
+
1660
1957
  /* Excluded from this release type: RequestHandlerFactory */
1661
1958
 
1662
1959
  /* Excluded from this release type: RequestHandlerMapValue */
@@ -1671,7 +1968,12 @@ export declare function registerViewElement(config: ViewElementRegistrationConfi
1671
1968
 
1672
1969
  /**
1673
1970
  * @public
1674
- * @class RightsService
1971
+ * @description Function that takes a injection token, and returns dependency instance.
1972
+ */
1973
+ export declare type ResolveDependencyFn = (token: unknown) => unknown;
1974
+
1975
+ /**
1976
+ * @public
1675
1977
  * @classdesc Service to working rights using handler chain
1676
1978
  * @extends {BaseHandlerChainService}
1677
1979
  */
@@ -1710,6 +2012,8 @@ export declare interface SaveSysSettingsResponse extends BaseResponse {
1710
2012
  /* Excluded from this release type: nextPrcElReady */
1711
2013
  }
1712
2014
 
2015
+ /* Excluded from this release type: SchemaHandlerSource */
2016
+
1713
2017
  /* Excluded from this release type: setDesignTimeViewElementMetadata */
1714
2018
 
1715
2019
  /* Excluded from this release type: setInterfaceDesignerItemMetadata */
@@ -1718,6 +2022,8 @@ export declare interface SaveSysSettingsResponse extends BaseResponse {
1718
2022
 
1719
2023
  /* Excluded from this release type: setRequestHandlerMetadata */
1720
2024
 
2025
+ /* Excluded from this release type: setValidatorMetadata */
2026
+
1721
2027
  /* Excluded from this release type: setViewElementMetadata */
1722
2028
 
1723
2029
  export declare abstract class SingleFilter extends BaseFilter {
@@ -1959,10 +2265,42 @@ export declare class ValidationUtilities {
1959
2265
  }): void;
1960
2266
  }
1961
2267
 
1962
- /* Excluded from this release type: ValidatorConfig */
2268
+ /**
2269
+ * @public
2270
+ * @description Config used to register validator in Creatio platform.
2271
+ * @property {string} type - type of validator
2272
+ */
2273
+ export declare interface ValidatorConfig {
2274
+ /**
2275
+ * @description Config used to register validator in Creatio platform.
2276
+ */
2277
+ type: string;
2278
+ /* Excluded from this release type: params */
2279
+ /* Excluded from this release type: scope */
2280
+ }
2281
+
2282
+ /* Excluded from this release type: ValidatorMapValue */
2283
+
2284
+ /* Excluded from this release type: ValidatorMetadata */
1963
2285
 
1964
2286
  /* Excluded from this release type: ValidatorParameters */
1965
2287
 
2288
+ /**
2289
+ * @public
2290
+ * @description Shape for specifying parameters passed to validator
2291
+ * @property {string} message - message should be displayed for error;
2292
+ */
2293
+ export declare interface ValidatorParametersValues {
2294
+ [name: string]: unknown;
2295
+ message?: string;
2296
+ }
2297
+
2298
+ /* Excluded from this release type: ValidatorRegistry */
2299
+
2300
+ /* Excluded from this release type: ValidatorRegistryItem */
2301
+
2302
+ /* Excluded from this release type: validatorRegistryKey */
2303
+
1966
2304
  /* Excluded from this release type: ValidatorSchemaConfig */
1967
2305
 
1968
2306
  /**
@@ -2,4 +2,4 @@
2
2
  * Generated bundle index. Do not edit.
3
3
  */
4
4
  export * from './index';
5
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY3JlYXRpby1kZXZraXQtY29tbW9uLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9zdHVkaW8tZW50ZXJwcmlzZS91dGlsL3Nkay9zcmMvY3JlYXRpby1kZXZraXQtY29tbW9uLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBRUgsY0FBYyxTQUFTLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEdlbmVyYXRlZCBidW5kbGUgaW5kZXguIERvIG5vdCBlZGl0LlxuICovXG5cbmV4cG9ydCAqIGZyb20gJy4vaW5kZXgnO1xuIl19
5
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY3JlYXRpby1kZXZraXQtY29tbW9uLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9zZGsvdXRpbC9zZGsvc3JjL2NyZWF0aW8tZGV2a2l0LWNvbW1vbi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7R0FFRztBQUVILGNBQWMsU0FBUyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBHZW5lcmF0ZWQgYnVuZGxlIGluZGV4LiBEbyBub3QgZWRpdC5cbiAqL1xuXG5leHBvcnQgKiBmcm9tICcuL2luZGV4JztcbiJdfQ==