@creatio-devkit/common 0.803.0-rc.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.
- package/CHANGELOG.md +4 -0
- package/LICENSE.md +6 -0
- package/README.md +31 -0
- package/creatio-devkit-common.d.ts +2034 -0
- package/esm2020/creatio-devkit-common.mjs +5 -0
- package/esm2020/index.mjs +2 -0
- package/esm2020/lib/external/functions/aggregation-adapter.mjs +24 -0
- package/esm2020/lib/external/functions/index.mjs +2 -0
- package/esm2020/lib/external/models/attribute-value-config.mjs +2 -0
- package/esm2020/lib/external/models/date-time/grouped-date-value.mjs +2 -0
- package/esm2020/lib/external/models/date-time/index.mjs +2 -0
- package/esm2020/lib/external/models/file-value.model.mjs +2 -0
- package/esm2020/lib/external/models/index.mjs +5 -0
- package/esm2020/lib/external/models/model-init-config.mjs +2 -0
- package/esm2020/lib/index.mjs +20 -0
- package/esm2020/lib/internal/constants/index.mjs +2 -0
- package/esm2020/lib/internal/constants/metadata.const.mjs +13 -0
- package/esm2020/lib/internal/decorators/converter/converter.decorator.mjs +11 -0
- package/esm2020/lib/internal/decorators/converter/index.mjs +2 -0
- package/esm2020/lib/internal/decorators/design-time-view-element/design-time-view-element.decorator.mjs +14 -0
- package/esm2020/lib/internal/decorators/design-time-view-element/index.mjs +2 -0
- package/esm2020/lib/internal/decorators/implement-using-handler-chain/implement-using-handler-chain.decorator.mjs +24 -0
- package/esm2020/lib/internal/decorators/implement-using-handler-chain/index.mjs +2 -0
- package/esm2020/lib/internal/decorators/index.mjs +6 -0
- package/esm2020/lib/internal/decorators/request/index.mjs +2 -0
- package/esm2020/lib/internal/decorators/request/request.decorator.mjs +15 -0
- package/esm2020/lib/internal/decorators/request-handler/index.mjs +2 -0
- package/esm2020/lib/internal/decorators/request-handler/request-handler.decorator.mjs +15 -0
- package/esm2020/lib/internal/enums/data-source-scope.enum.mjs +9 -0
- package/esm2020/lib/internal/enums/designer-group-type.enum.mjs +14 -0
- package/esm2020/lib/internal/enums/index.mjs +5 -0
- package/esm2020/lib/internal/enums/model-in-page-action.enum.mjs +10 -0
- package/esm2020/lib/internal/enums/view-element-group-type.enum.mjs +13 -0
- package/esm2020/lib/internal/esq/data-model/index.mjs +3 -0
- package/esm2020/lib/internal/esq/data-model/metadata-provider/metadata-provider.mjs +2 -0
- package/esm2020/lib/internal/esq/data-model/queries/base-filterable-query.mjs +15 -0
- package/esm2020/lib/internal/esq/data-model/queries/base-query.mjs +20 -0
- package/esm2020/lib/internal/esq/data-model/queries/delete-query.mjs +12 -0
- package/esm2020/lib/internal/esq/data-model/queries/entity-schema-query.mjs +211 -0
- package/esm2020/lib/internal/esq/data-model/queries/index.mjs +8 -0
- package/esm2020/lib/internal/esq/data-model/queries/insert-query.mjs +37 -0
- package/esm2020/lib/internal/esq/data-model/queries/query-operation-type.mjs +15 -0
- package/esm2020/lib/internal/esq/data-model/queries/update-query.mjs +37 -0
- package/esm2020/lib/internal/esq/index.mjs +2 -0
- package/esm2020/lib/internal/handlers/base-request-handler.mjs +26 -0
- package/esm2020/lib/internal/handlers/index.mjs +2 -0
- package/esm2020/lib/internal/model/data-source-config.mjs +2 -0
- package/esm2020/lib/internal/model/index.mjs +2 -0
- package/esm2020/lib/internal/models/design-time-view-element-registry-item.mjs +2 -0
- package/esm2020/lib/internal/models/handler-chain-service-registry-item.mjs +2 -0
- package/esm2020/lib/internal/models/index.mjs +12 -0
- package/esm2020/lib/internal/models/interface-designer-item/base-interface-designer-item-registration-config.mjs +2 -0
- package/esm2020/lib/internal/models/interface-designer-item/index.mjs +4 -0
- package/esm2020/lib/internal/models/interface-designer-item/interface-designer-item-registration-config.model.mjs +6 -0
- package/esm2020/lib/internal/models/interface-designer-item/toolbar-view-element-config.mjs +2 -0
- package/esm2020/lib/internal/models/interface-designer-registry-item.mjs +2 -0
- package/esm2020/lib/internal/models/internal-interface-designer-item-registration-config.model.mjs +2 -0
- package/esm2020/lib/internal/models/request/index.mjs +3 -0
- package/esm2020/lib/internal/models/request/method-invoke-request.mjs +12 -0
- package/esm2020/lib/internal/models/request/request-registration-config.model.mjs +2 -0
- package/esm2020/lib/internal/models/request-handler/index.mjs +4 -0
- package/esm2020/lib/internal/models/request-handler/request-handler-factory.mjs +2 -0
- package/esm2020/lib/internal/models/request-handler/request-handler-registration-config.model.mjs +2 -0
- package/esm2020/lib/internal/models/request-handler/request-handler.mjs +2 -0
- package/esm2020/lib/internal/models/validation/crt-control.mjs +2 -0
- package/esm2020/lib/internal/models/validation/crt-validator-fn.mjs +2 -0
- package/esm2020/lib/internal/models/validation/index.mjs +3 -0
- package/esm2020/lib/internal/models/validator-config.model.mjs +2 -0
- package/esm2020/lib/internal/models/view-element/angular-view-element-registration-config.model.mjs +2 -0
- package/esm2020/lib/internal/models/view-element/index.mjs +2 -0
- package/esm2020/lib/internal/models/view-element-registry-item.mjs +2 -0
- package/esm2020/lib/internal/services/base-handler-chain.service.mjs +3 -0
- package/esm2020/lib/internal/services/base-registry/base-registry.mjs +25 -0
- package/esm2020/lib/internal/services/base-registry/index.mjs +2 -0
- package/esm2020/lib/internal/services/bootstrap-notifier/bootstrap-notifier.mjs +28 -0
- package/esm2020/lib/internal/services/bootstrap-notifier/index.mjs +2 -0
- package/esm2020/lib/internal/services/design-time-view-element-registry/design-time-view-element-registry.mjs +31 -0
- package/esm2020/lib/internal/services/design-time-view-element-registry/index.mjs +2 -0
- package/esm2020/lib/internal/services/element-registration-checker/element-registration-checker.mjs +53 -0
- package/esm2020/lib/internal/services/element-registration-checker/index.mjs +2 -0
- package/esm2020/lib/internal/services/global-converters-registry/global-converters-registry.service.mjs +23 -0
- package/esm2020/lib/internal/services/global-converters-registry/index.mjs +2 -0
- package/esm2020/lib/internal/services/handler-chain-services-registry/handler-chain-services-registry.mjs +25 -0
- package/esm2020/lib/internal/services/handler-chain-services-registry/index.mjs +2 -0
- package/esm2020/lib/internal/services/index.mjs +11 -0
- package/esm2020/lib/internal/services/interface-designer-item-registry/index.mjs +2 -0
- package/esm2020/lib/internal/services/interface-designer-item-registry/interface-designer-item-registry.mjs +26 -0
- package/esm2020/lib/internal/services/request-handler-registry/index.mjs +2 -0
- package/esm2020/lib/internal/services/request-handler-registry/request-handler-registry.service.mjs +72 -0
- package/esm2020/lib/internal/services/request-registry/index.mjs +2 -0
- package/esm2020/lib/internal/services/request-registry/request-registry.service.mjs +33 -0
- package/esm2020/lib/internal/services/view-element-registry/index.mjs +2 -0
- package/esm2020/lib/internal/services/view-element-registry/view-element-registry.mjs +27 -0
- package/esm2020/lib/internal/utils/index.mjs +4 -0
- package/esm2020/lib/internal/utils/localization-utils.mjs +24 -0
- package/esm2020/lib/internal/utils/metadata-utils.mjs +150 -0
- package/esm2020/lib/internal/utils/object-deep-keys/index.mjs +2 -0
- package/esm2020/lib/internal/utils/object-deep-keys/object-deep-keys.mjs +13 -0
- package/esm2020/lib/public/decorators/index.mjs +7 -0
- package/esm2020/lib/public/decorators/input/index.mjs +2 -0
- package/esm2020/lib/public/decorators/input/input.decorator.mjs +25 -0
- package/esm2020/lib/public/decorators/interface-designer-item/index.mjs +2 -0
- package/esm2020/lib/public/decorators/interface-designer-item/interface-designer-item.decorator.mjs +50 -0
- package/esm2020/lib/public/decorators/module/index.mjs +2 -0
- package/esm2020/lib/public/decorators/module/module.decorator.mjs +25 -0
- package/esm2020/lib/public/decorators/output/index.mjs +2 -0
- package/esm2020/lib/public/decorators/output/output.decorator.mjs +19 -0
- package/esm2020/lib/public/decorators/validation-input/index.mjs +2 -0
- package/esm2020/lib/public/decorators/validation-input/validation-input.decorator.mjs +27 -0
- package/esm2020/lib/public/decorators/view-element/index.mjs +2 -0
- package/esm2020/lib/public/decorators/view-element/view-element.decorator.mjs +32 -0
- package/esm2020/lib/public/enums/aggregation-function.enum.mjs +18 -0
- package/esm2020/lib/public/enums/aggregation-type.enum.mjs +18 -0
- package/esm2020/lib/public/enums/data-value-type.enum.mjs +44 -0
- package/esm2020/lib/public/enums/index.mjs +4 -0
- package/esm2020/lib/public/esq/data-model/columns/arithmetic/arithmetic-query-column.mjs +9 -0
- package/esm2020/lib/public/esq/data-model/columns/base-query-column.mjs +45 -0
- package/esm2020/lib/public/esq/data-model/columns/entity-column/entity-query-column.mjs +9 -0
- package/esm2020/lib/public/esq/data-model/columns/functions/aggregation-function-column.mjs +13 -0
- package/esm2020/lib/public/esq/data-model/columns/functions/date-part-function-column.mjs +17 -0
- package/esm2020/lib/public/esq/data-model/columns/functions/length-function-column.mjs +9 -0
- package/esm2020/lib/public/esq/data-model/columns/functions/macros-function-column.mjs +9 -0
- package/esm2020/lib/public/esq/data-model/columns/functions/window-function-column.mjs +9 -0
- package/esm2020/lib/public/esq/data-model/columns/index.mjs +12 -0
- package/esm2020/lib/public/esq/data-model/columns/parameters/parameter-query-column.mjs +9 -0
- package/esm2020/lib/public/esq/data-model/columns/sub-queries/aggregation-sub-query-column.mjs +15 -0
- package/esm2020/lib/public/esq/data-model/columns/sub-queries/sub-query-column.mjs +9 -0
- package/esm2020/lib/public/esq/data-model/enums/aggregation-eval-type.enum.mjs +10 -0
- package/esm2020/lib/public/esq/data-model/enums/arithmetic-operation.enum.mjs +12 -0
- package/esm2020/lib/public/esq/data-model/enums/comparison-type.enum.mjs +21 -0
- package/esm2020/lib/public/esq/data-model/enums/date-part-type.enum.mjs +20 -0
- package/esm2020/lib/public/esq/data-model/enums/expression-type.enum.mjs +9 -0
- package/esm2020/lib/public/esq/data-model/enums/filter-type.enum.mjs +11 -0
- package/esm2020/lib/public/esq/data-model/enums/function-type.enum.mjs +15 -0
- package/esm2020/lib/public/esq/data-model/enums/index.mjs +12 -0
- package/esm2020/lib/public/esq/data-model/enums/logical-operator-type.enum.mjs +6 -0
- package/esm2020/lib/public/esq/data-model/enums/order-direction.enum.mjs +7 -0
- package/esm2020/lib/public/esq/data-model/enums/query-macros-type.enum.mjs +74 -0
- package/esm2020/lib/public/esq/data-model/expressions/arithmetic/arithmetic-expression.mjs +15 -0
- package/esm2020/lib/public/esq/data-model/expressions/arithmetic/index.mjs +2 -0
- package/esm2020/lib/public/esq/data-model/expressions/base-expression.mjs +7 -0
- package/esm2020/lib/public/esq/data-model/expressions/columns/column-expression.mjs +13 -0
- package/esm2020/lib/public/esq/data-model/expressions/columns/index.mjs +2 -0
- package/esm2020/lib/public/esq/data-model/expressions/functions/aggregation-function-expression.mjs +14 -0
- package/esm2020/lib/public/esq/data-model/expressions/functions/argument-function-expression.mjs +8 -0
- package/esm2020/lib/public/esq/data-model/expressions/functions/date-part-function-expression.mjs +13 -0
- package/esm2020/lib/public/esq/data-model/expressions/functions/function-expression.mjs +9 -0
- package/esm2020/lib/public/esq/data-model/expressions/functions/index.mjs +8 -0
- package/esm2020/lib/public/esq/data-model/expressions/functions/length-function-expression.mjs +12 -0
- package/esm2020/lib/public/esq/data-model/expressions/functions/macros-function-expression.mjs +13 -0
- package/esm2020/lib/public/esq/data-model/expressions/functions/window-function-expression.mjs +12 -0
- package/esm2020/lib/public/esq/data-model/expressions/index.mjs +8 -0
- package/esm2020/lib/public/esq/data-model/expressions/mocks/expression.mock.mjs +17 -0
- package/esm2020/lib/public/esq/data-model/expressions/mocks/index.mjs +2 -0
- package/esm2020/lib/public/esq/data-model/expressions/parameters/index.mjs +2 -0
- package/esm2020/lib/public/esq/data-model/expressions/parameters/parameter-expression.mjs +81 -0
- package/esm2020/lib/public/esq/data-model/expressions/sub-queries/aggregation-sub-query-expression.mjs +11 -0
- package/esm2020/lib/public/esq/data-model/expressions/sub-queries/index.mjs +3 -0
- package/esm2020/lib/public/esq/data-model/expressions/sub-queries/sub-query-expression.mjs +17 -0
- package/esm2020/lib/public/esq/data-model/filters/base-filter.mjs +8 -0
- package/esm2020/lib/public/esq/data-model/filters/between-filter.mjs +13 -0
- package/esm2020/lib/public/esq/data-model/filters/compare-filter.mjs +12 -0
- package/esm2020/lib/public/esq/data-model/filters/exists-filter.mjs +13 -0
- package/esm2020/lib/public/esq/data-model/filters/filter-group.mjs +91 -0
- package/esm2020/lib/public/esq/data-model/filters/in-filter.mjs +12 -0
- package/esm2020/lib/public/esq/data-model/filters/index.mjs +10 -0
- package/esm2020/lib/public/esq/data-model/filters/isnull-filter.mjs +21 -0
- package/esm2020/lib/public/esq/data-model/filters/mocks/filter.mock.mjs +16 -0
- package/esm2020/lib/public/esq/data-model/filters/mocks/index.mjs +2 -0
- package/esm2020/lib/public/esq/data-model/filters/single-filter.mjs +9 -0
- package/esm2020/lib/public/esq/data-model/index.mjs +5 -0
- package/esm2020/lib/public/esq/index.mjs +2 -0
- package/esm2020/lib/public/exceptions/argument-empty-exception.mjs +7 -0
- package/esm2020/lib/public/exceptions/argument-out-of-range-exception.mjs +7 -0
- package/esm2020/lib/public/exceptions/index.mjs +6 -0
- package/esm2020/lib/public/exceptions/item-not-found-exception.mjs +7 -0
- package/esm2020/lib/public/exceptions/next-handler-already-specified-exception.mjs +9 -0
- package/esm2020/lib/public/exceptions/validation-utilities.mjs +32 -0
- package/esm2020/lib/public/functions/bootstrap-crt-module.mjs +97 -0
- package/esm2020/lib/public/functions/index.mjs +4 -0
- package/esm2020/lib/public/functions/localize.mjs +29 -0
- package/esm2020/lib/public/functions/register-view-element.mjs +21 -0
- package/esm2020/lib/public/models/base-response.model.mjs +2 -0
- package/esm2020/lib/public/models/converter.model.mjs +2 -0
- package/esm2020/lib/public/models/entity.model.mjs +2 -0
- package/esm2020/lib/public/models/error-info.model.mjs +2 -0
- package/esm2020/lib/public/models/image-value.model.mjs +2 -0
- package/esm2020/lib/public/models/index.mjs +17 -0
- package/esm2020/lib/public/models/input/index.mjs +2 -0
- package/esm2020/lib/public/models/input/input-registration-config.model.mjs +6 -0
- package/esm2020/lib/public/models/interface-designer-item/index.mjs +2 -0
- package/esm2020/lib/public/models/interface-designer-item/interface-designer-item-definition.mjs +2 -0
- package/esm2020/lib/public/models/interfaces/data-source-save-result.interface.mjs +2 -0
- package/esm2020/lib/public/models/localizable-value.mjs +9 -0
- package/esm2020/lib/public/models/lookup-value.model.mjs +2 -0
- package/esm2020/lib/public/models/mask-settings.mjs +2 -0
- package/esm2020/lib/public/models/module-definition.mjs +2 -0
- package/esm2020/lib/public/models/request/base-request-config.mjs +8 -0
- package/esm2020/lib/public/models/request/base-request.mjs +9 -0
- package/esm2020/lib/public/models/request/data-source-request.mjs +11 -0
- package/esm2020/lib/public/models/request/index.mjs +4 -0
- package/esm2020/lib/public/models/validation/crt-validation-errors.mjs +2 -0
- package/esm2020/lib/public/models/validation/index.mjs +3 -0
- package/esm2020/lib/public/models/validation/validation-info.mjs +2 -0
- package/esm2020/lib/public/models/view-element/base-view-element-registration-config.mjs +2 -0
- package/esm2020/lib/public/models/view-element/index.mjs +3 -0
- package/esm2020/lib/public/models/view-element/view-element-registration-config.mjs +2 -0
- package/esm2020/lib/public/models/view-model-context.mjs +2 -0
- package/esm2020/lib/public/services/feature/feature.service.mjs +27 -0
- package/esm2020/lib/public/services/feature/index.mjs +2 -0
- package/esm2020/lib/public/services/handler-chain/handler-chain.service.mjs +45 -0
- package/esm2020/lib/public/services/handler-chain/index.mjs +2 -0
- package/esm2020/lib/public/services/handler-chain/internal-handler-chain.mjs +93 -0
- package/esm2020/lib/public/services/http-client/http-client.service.mjs +74 -0
- package/esm2020/lib/public/services/http-client/http-headers.mjs +2 -0
- package/esm2020/lib/public/services/http-client/http-response.mjs +2 -0
- package/esm2020/lib/public/services/http-client/index.mjs +4 -0
- package/esm2020/lib/public/services/index.mjs +9 -0
- package/esm2020/lib/public/services/mask-service/index.mjs +2 -0
- package/esm2020/lib/public/services/mask-service/mask.service.mjs +27 -0
- package/esm2020/lib/public/services/model/data-source-aggregation-config.mjs +2 -0
- package/esm2020/lib/public/services/model/data-source-attribute.mjs +2 -0
- package/esm2020/lib/public/services/model/data-source-can-execute-operation.mjs +2 -0
- package/esm2020/lib/public/services/model/data-source-paging-config.mjs +2 -0
- package/esm2020/lib/public/services/model/data-source-parameter.mjs +12 -0
- package/esm2020/lib/public/services/model/data-source-save-result.mjs +2 -0
- package/esm2020/lib/public/services/model/data-source-sorting-config.mjs +2 -0
- package/esm2020/lib/public/services/model/index.mjs +11 -0
- package/esm2020/lib/public/services/model/model-load-options.mjs +2 -0
- package/esm2020/lib/public/services/model/model.mjs +66 -0
- package/esm2020/lib/public/services/rights/index.mjs +2 -0
- package/esm2020/lib/public/services/rights/rights.service.mjs +27 -0
- package/esm2020/lib/public/services/sys-settings/index.mjs +3 -0
- package/esm2020/lib/public/services/sys-settings/sys-setting.model.mjs +23 -0
- package/esm2020/lib/public/services/sys-settings/sys-settings.service.mjs +35 -0
- package/esm2020/lib/public/services/sys-values/index.mjs +3 -0
- package/esm2020/lib/public/services/sys-values/sys-values.mjs +2 -0
- package/esm2020/lib/public/services/sys-values/sys-values.service.mjs +23 -0
- package/esm2020/lib/public/types/entity-column-value.mjs +2 -0
- package/esm2020/lib/public/types/guid.type.mjs +53 -0
- package/esm2020/lib/public/types/index.mjs +7 -0
- package/esm2020/lib/public/types/json-data.type.mjs +2 -0
- package/esm2020/lib/public/types/localize-fn.type.mjs +2 -0
- package/esm2020/lib/public/types/sort-direction.type.mjs +2 -0
- package/esm2020/lib/public/types/type.mjs +2 -0
- package/fesm2015/creatio-devkit-common.mjs +2687 -0
- package/fesm2015/creatio-devkit-common.mjs.map +1 -0
- package/fesm2020/creatio-devkit-common.mjs +2709 -0
- package/fesm2020/creatio-devkit-common.mjs.map +1 -0
- package/package.json +33 -0
|
@@ -0,0 +1,2034 @@
|
|
|
1
|
+
/* Excluded from this release type: AddRequestHandlerListener */
|
|
2
|
+
|
|
3
|
+
export declare enum AggregationEvalType {
|
|
4
|
+
/** The scope of the aggregating function is not defined. */
|
|
5
|
+
None = 0,
|
|
6
|
+
/** Applies to all elements. */
|
|
7
|
+
All = 1,
|
|
8
|
+
/** Applies to unique values. */
|
|
9
|
+
Distinct = 2
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export declare enum AggregationFunction {
|
|
13
|
+
/** Aggregation function type not defined. */
|
|
14
|
+
None = "",
|
|
15
|
+
/** Aggregation function type not defined. */
|
|
16
|
+
Count = "Count",
|
|
17
|
+
/** Sum of values of all elements. */
|
|
18
|
+
Sum = "Sum",
|
|
19
|
+
/** Average value for all elements. */
|
|
20
|
+
Avg = "Avg",
|
|
21
|
+
/** The minimum value among all elements. */
|
|
22
|
+
Min = "Min",
|
|
23
|
+
/** The maximum value among all elements. */
|
|
24
|
+
Max = "Max",
|
|
25
|
+
/** Top one record from collection. */
|
|
26
|
+
TopOne = "TopOne"
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export declare class AggregationFunctionColumn extends BaseQueryColumn<AggregationFunctionExpression> {
|
|
30
|
+
constructor(aggregationType: AggregationType, aggregationEvalType: AggregationEvalType, functionArgument: BaseExpression);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export declare class AggregationFunctionExpression extends ArgumentFunctionExpression {
|
|
34
|
+
readonly functionType: FunctionType;
|
|
35
|
+
readonly aggregationType: AggregationType;
|
|
36
|
+
readonly aggregationEvalType: AggregationEvalType;
|
|
37
|
+
constructor(config: AggregationFunctionExpressionConfig);
|
|
38
|
+
clone(): AggregationFunctionExpression;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export declare type AggregationFunctionExpressionConfig = ArgumentFunctionExpressionConfig<AggregationFunctionExpression> & Pick<AggregationFunctionExpression, 'aggregationType' | 'aggregationEvalType'>;
|
|
42
|
+
|
|
43
|
+
export declare class AggregationSubQueryColumn extends BaseQueryColumn<AggregationSubQueryExpression> {
|
|
44
|
+
constructor(columnPath: string, aggregationType: AggregationType, subFilters?: FilterGroup, subOrderDirection?: number, subOrderColumn?: string);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export declare class AggregationSubQueryExpression extends SubQueryExpression {
|
|
48
|
+
readonly aggregationType: AggregationType;
|
|
49
|
+
constructor(config: AggregationSubQueryExpressionConfig);
|
|
50
|
+
clone(): AggregationSubQueryExpression;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export declare type AggregationSubQueryExpressionConfig = SubQueryExpressionConfig & Pick<AggregationSubQueryExpression, 'aggregationType'>;
|
|
54
|
+
|
|
55
|
+
export declare enum AggregationType {
|
|
56
|
+
/** Aggregation function type not defined. */
|
|
57
|
+
None = 0,
|
|
58
|
+
/** Aggregation function type not defined. */
|
|
59
|
+
Count = 1,
|
|
60
|
+
/** Sum of values of all elements. */
|
|
61
|
+
Sum = 2,
|
|
62
|
+
/** Average value for all elements. */
|
|
63
|
+
Avg = 3,
|
|
64
|
+
/** The minimum value among all elements. */
|
|
65
|
+
Min = 4,
|
|
66
|
+
/** The maximum value among all elements. */
|
|
67
|
+
Max = 5,
|
|
68
|
+
/** Top one record from collection. */
|
|
69
|
+
TopOne = 6
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
/* Excluded from this release type: AngularViewElementRegistrationConfig */
|
|
73
|
+
|
|
74
|
+
/* Excluded from this release type: applyLocalizeMetadataFn */
|
|
75
|
+
|
|
76
|
+
export declare class ArgumentEmptyException extends Error {
|
|
77
|
+
constructor(argumentName: string);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export declare abstract class ArgumentFunctionExpression extends FunctionExpression {
|
|
81
|
+
readonly functionArgument: BaseExpression;
|
|
82
|
+
protected constructor(config: ArgumentFunctionExpressionConfig<ArgumentFunctionExpression>);
|
|
83
|
+
abstract clone(): ArgumentFunctionExpression;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export declare type ArgumentFunctionExpressionConfig<TExpression extends ArgumentFunctionExpression> = FunctionExpressionConfig<TExpression> & Pick<ArgumentFunctionExpression, 'functionArgument'>;
|
|
87
|
+
|
|
88
|
+
export declare class ArgumentOutOfRangeException extends Error {
|
|
89
|
+
constructor(argumentName: string);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export declare class ArithmeticExpression extends BaseExpression {
|
|
93
|
+
readonly expressionType: ExpressionType;
|
|
94
|
+
readonly arithmeticOperation: ArithmeticOperation;
|
|
95
|
+
readonly leftArithmeticOperand: BaseExpression;
|
|
96
|
+
readonly rightArithmeticOperand: BaseExpression;
|
|
97
|
+
constructor(config: ArithmeticExpressionConfig);
|
|
98
|
+
clone(): ArithmeticExpression;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
export declare type ArithmeticExpressionConfig = ExpressionConfig<ArithmeticExpression> & Pick<ArithmeticExpression, 'arithmeticOperation' | 'leftArithmeticOperand' | 'rightArithmeticOperand'>;
|
|
102
|
+
|
|
103
|
+
export declare enum ArithmeticOperation {
|
|
104
|
+
/** Addition. */
|
|
105
|
+
Addition = 0,
|
|
106
|
+
/** Subtraction. */
|
|
107
|
+
Subtraction = 1,
|
|
108
|
+
/** Multiplication. */
|
|
109
|
+
Multiplication = 2,
|
|
110
|
+
/** Division. */
|
|
111
|
+
Division = 3
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
export declare class ArithmeticQueryColumn extends BaseQueryColumn<ArithmeticExpression> {
|
|
115
|
+
constructor(arithmeticOperation: ArithmeticOperation, leftArithmeticOperand: BaseExpression, rightArithmeticOperand: BaseExpression);
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
/* Excluded from this release type: AttributeValueConfig */
|
|
119
|
+
|
|
120
|
+
/**
|
|
121
|
+
* @public
|
|
122
|
+
*/
|
|
123
|
+
export declare interface BaseDataSourceParameter {
|
|
124
|
+
type: ModelParameterType;
|
|
125
|
+
value: any;
|
|
126
|
+
relationsConfigs?: DataSourceParameterRelationConfig[];
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
export declare abstract class BaseExpression {
|
|
130
|
+
readonly isBlock: boolean;
|
|
131
|
+
abstract readonly expressionType: ExpressionType;
|
|
132
|
+
protected constructor(config: ExpressionConfig<BaseExpression>);
|
|
133
|
+
abstract clone(): BaseExpression;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
export declare abstract class BaseFilter {
|
|
137
|
+
readonly filterType: FilterType;
|
|
138
|
+
isEnabled: boolean;
|
|
139
|
+
trimDateTimeParameterToDate: boolean;
|
|
140
|
+
protected constructor(filterType: FilterType);
|
|
141
|
+
abstract clone(): BaseFilter;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
/* Excluded from this release type: BaseFilterableQuery */
|
|
145
|
+
|
|
146
|
+
declare abstract class BaseHandlerChainService {
|
|
147
|
+
/* Excluded from this release type: requestType */
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
/* Excluded from this release type: BaseInterfaceDesignerItemRegistrationConfig */
|
|
151
|
+
|
|
152
|
+
/* Excluded from this release type: BaseQuery */
|
|
153
|
+
|
|
154
|
+
export declare abstract class BaseQueryColumn<TExpression extends BaseExpression = BaseExpression> {
|
|
155
|
+
orderDirection: OrderDirection;
|
|
156
|
+
orderPosition: number;
|
|
157
|
+
isVisible: boolean;
|
|
158
|
+
caption?: string;
|
|
159
|
+
readonly expression: TExpression;
|
|
160
|
+
protected constructor(expression: TExpression);
|
|
161
|
+
/**
|
|
162
|
+
* Adds ordering options.
|
|
163
|
+
* @param orderDirection Direction.
|
|
164
|
+
* @param orderPosition Position.
|
|
165
|
+
* @returns Self.
|
|
166
|
+
*/
|
|
167
|
+
withOrdering(orderDirection: OrderDirection, orderPosition: number): this;
|
|
168
|
+
/**
|
|
169
|
+
* Adds options.
|
|
170
|
+
* @param options Options.
|
|
171
|
+
* @returns Self.
|
|
172
|
+
*/
|
|
173
|
+
withOptions(options: {
|
|
174
|
+
isVisible?: boolean;
|
|
175
|
+
}): this;
|
|
176
|
+
/**
|
|
177
|
+
* Adds caption.
|
|
178
|
+
* @param caption Caption.
|
|
179
|
+
* @returns Self.
|
|
180
|
+
*/
|
|
181
|
+
withCaption(caption: string): this;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
/* Excluded from this release type: BaseRegistry */
|
|
185
|
+
|
|
186
|
+
/**
|
|
187
|
+
* @public
|
|
188
|
+
* @class BaseRequest
|
|
189
|
+
* @describe Base definition of request.
|
|
190
|
+
* @template TEvent
|
|
191
|
+
*/
|
|
192
|
+
export declare class BaseRequest<TEvent = unknown> {
|
|
193
|
+
/**
|
|
194
|
+
* The type of request.
|
|
195
|
+
* @example
|
|
196
|
+
* 'crt.RequestType'
|
|
197
|
+
*/
|
|
198
|
+
readonly type: string;
|
|
199
|
+
/**
|
|
200
|
+
* @deprecated use event binding expression instead.
|
|
201
|
+
*
|
|
202
|
+
* The target event from which this request originated.
|
|
203
|
+
*/
|
|
204
|
+
readonly $initialEvent?: TEvent;
|
|
205
|
+
/**
|
|
206
|
+
* The context in which the requests were triggered.
|
|
207
|
+
*/
|
|
208
|
+
readonly $context: ViewModelContext;
|
|
209
|
+
/**
|
|
210
|
+
* The scope of the request.
|
|
211
|
+
*/
|
|
212
|
+
scopes?: string[];
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
/**
|
|
216
|
+
* @public
|
|
217
|
+
* @description Request payload
|
|
218
|
+
* @property {string} request - request name.
|
|
219
|
+
* @property {unknown} params - request parameters.
|
|
220
|
+
*/
|
|
221
|
+
export declare interface BaseRequestConfig {
|
|
222
|
+
/**
|
|
223
|
+
* @description request name.
|
|
224
|
+
*/
|
|
225
|
+
request: string;
|
|
226
|
+
/**
|
|
227
|
+
* @description request parameters.
|
|
228
|
+
*/
|
|
229
|
+
params?: unknown;
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
/* Excluded from this release type: BaseRequestCtor */
|
|
233
|
+
|
|
234
|
+
/* Excluded from this release type: BaseRequestHandler */
|
|
235
|
+
|
|
236
|
+
/**
|
|
237
|
+
* @public
|
|
238
|
+
* @description Shape of response
|
|
239
|
+
* @property {boolean} success - Indicates whether operation was success.
|
|
240
|
+
* @property {ErrorInfo} errorInfo - detailed error description. {@link ErrorInfo}
|
|
241
|
+
*/
|
|
242
|
+
export declare interface BaseResponse {
|
|
243
|
+
/**
|
|
244
|
+
* @description Indicates whether operation was success.
|
|
245
|
+
*/
|
|
246
|
+
success: boolean;
|
|
247
|
+
/**
|
|
248
|
+
* @description detailed error description. {@link ErrorInfo}
|
|
249
|
+
*/
|
|
250
|
+
errorInfo?: ErrorInfo;
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
/* Excluded from this release type: BaseToolbarViewElementConfig */
|
|
254
|
+
|
|
255
|
+
/**
|
|
256
|
+
* @public
|
|
257
|
+
* @description Registration config for defining user components in Creatio platform.
|
|
258
|
+
* @property {string} type - type of view element. Used to specify view element in schema.
|
|
259
|
+
* @property {Record<string, CrtInputRegistrationConfig>=} inputs {@link CrtInputRegistrationConfig} - map
|
|
260
|
+
* of component inputs. Communication chanel to send update from Creatio platform to component
|
|
261
|
+
* @property {Record<string, unknown>=} outputs - map of component outputs.
|
|
262
|
+
* Communication chanel to send update from component to Creatio platform.
|
|
263
|
+
* @property {Record<string, unknown>=} validationInputs - map of component validationInputs.
|
|
264
|
+
* Communication chanel to receive updates relates to validation.
|
|
265
|
+
* To properly declare validationInfo field:
|
|
266
|
+
* 1. Declare input field inside inputs section. For example `count`
|
|
267
|
+
* 2. In validationInputs section declare same field which ends with ValidationInfo.
|
|
268
|
+
* For previous example `countValidationInfo`
|
|
269
|
+
*
|
|
270
|
+
* @example
|
|
271
|
+
* const config: BaseViewElementRegistrationConfig = {
|
|
272
|
+
* type: 'usr.Component',
|
|
273
|
+
* inputs: {
|
|
274
|
+
* entitySchemaName: {},
|
|
275
|
+
* user: {},
|
|
276
|
+
* count: {}
|
|
277
|
+
* },
|
|
278
|
+
* outputs: {
|
|
279
|
+
* countChange: {}
|
|
280
|
+
* },
|
|
281
|
+
* validationInputs: {
|
|
282
|
+
* countValidationInfo: {}
|
|
283
|
+
* }
|
|
284
|
+
* }
|
|
285
|
+
*/
|
|
286
|
+
export declare interface BaseViewElementRegistrationConfig {
|
|
287
|
+
/**
|
|
288
|
+
* @description type of view element. Used to specify view element in schema.
|
|
289
|
+
*/
|
|
290
|
+
type: string;
|
|
291
|
+
/* Excluded from this release type: contentSlots */
|
|
292
|
+
/**
|
|
293
|
+
* @description {@link CrtInputRegistrationConfig} map
|
|
294
|
+
* of component inputs. Communication chanel to send update from Creatio platform to component
|
|
295
|
+
*/
|
|
296
|
+
inputs?: Record<string, CrtInputRegistrationConfig>;
|
|
297
|
+
/**
|
|
298
|
+
* @description map of component outputs.
|
|
299
|
+
* Communication chanel to send update from component to Creatio platform.
|
|
300
|
+
*/
|
|
301
|
+
outputs?: Record<string, unknown>;
|
|
302
|
+
/**
|
|
303
|
+
* @description map of component validationInputs.
|
|
304
|
+
* Communication chanel to receive updates relates to validation.
|
|
305
|
+
* To properly declare validationInfo field:
|
|
306
|
+
* 1. Declare input field inside inputs section. For example `count`
|
|
307
|
+
* 2. In validationInputs section declare same field which ends with ValidationInfo.
|
|
308
|
+
* For previous example `countValidationInfo`
|
|
309
|
+
*/
|
|
310
|
+
validationInputs?: Record<string, unknown>;
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
export declare class BetweenFilter extends SingleFilter {
|
|
314
|
+
readonly rightLessExpression: BaseExpression;
|
|
315
|
+
readonly rightGreaterExpression: BaseExpression;
|
|
316
|
+
constructor(leftExpression: BaseExpression, rightLessExpression: BaseExpression, rightGreaterExpression: BaseExpression);
|
|
317
|
+
clone(): BetweenFilter;
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
/**
|
|
321
|
+
* @public
|
|
322
|
+
* @description Function required to bootstrapping elements defined in CrtModules.
|
|
323
|
+
* Call this function as soon as possible during bootstrapping your application.
|
|
324
|
+
* @param type - module type
|
|
325
|
+
* @param options - {@link BootstrapOptions}
|
|
326
|
+
*
|
|
327
|
+
* @example
|
|
328
|
+
* bootstrapCrtModule(AppModule)
|
|
329
|
+
*/
|
|
330
|
+
export declare function bootstrapCrtModule(type: Type, options?: BootstrapOptions): void;
|
|
331
|
+
|
|
332
|
+
/* Excluded from this release type: _bootstrapCrtModule */
|
|
333
|
+
|
|
334
|
+
/* Excluded from this release type: BootstrapNotifier */
|
|
335
|
+
|
|
336
|
+
/**
|
|
337
|
+
* @public
|
|
338
|
+
* @description Module bootstrap options
|
|
339
|
+
*/
|
|
340
|
+
export declare interface BootstrapOptions {
|
|
341
|
+
/**
|
|
342
|
+
* Function to be used to translate localizable values of class metadata
|
|
343
|
+
*/
|
|
344
|
+
localizeMetadata?: LocalizeFn;
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
/* Excluded from this release type: checkCrtTypeNamePascalCase */
|
|
348
|
+
|
|
349
|
+
/* Excluded from this release type: checkIfTypeRegistered */
|
|
350
|
+
|
|
351
|
+
/* Excluded from this release type: checkOnlyOneRegistration */
|
|
352
|
+
|
|
353
|
+
/* Excluded from this release type: checkTypeNameFormat */
|
|
354
|
+
|
|
355
|
+
/* Excluded from this release type: checkTypeNamePascalCase */
|
|
356
|
+
|
|
357
|
+
export declare class ColumnExpression extends BaseExpression {
|
|
358
|
+
readonly expressionType: ExpressionType;
|
|
359
|
+
columnPath: string;
|
|
360
|
+
constructor(config: ColumnExpressionConfig);
|
|
361
|
+
clone(): ColumnExpression;
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
export declare type ColumnExpressionConfig = ExpressionConfig<ColumnExpression> & Pick<ColumnExpression, 'columnPath'>;
|
|
365
|
+
|
|
366
|
+
export declare class CompareFilter extends SingleFilter {
|
|
367
|
+
readonly rightExpression: BaseExpression;
|
|
368
|
+
constructor(comparisonType: ComparisonType, leftExpression: BaseExpression, rightExpression: BaseExpression);
|
|
369
|
+
clone(): CompareFilter;
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
export declare enum ComparisonType {
|
|
373
|
+
Between = 0,
|
|
374
|
+
Contain = 11,
|
|
375
|
+
End_with = 13,
|
|
376
|
+
Equal = 3,
|
|
377
|
+
Exists = 15,
|
|
378
|
+
Greater = 7,
|
|
379
|
+
Greater_or_equal = 8,
|
|
380
|
+
Is_not_null = 2,
|
|
381
|
+
Is_null = 1,
|
|
382
|
+
Less = 5,
|
|
383
|
+
Less_or_equal = 6,
|
|
384
|
+
Not_contain = 12,
|
|
385
|
+
Not_end_with = 14,
|
|
386
|
+
Not_equal = 4,
|
|
387
|
+
Not_exists = 16,
|
|
388
|
+
Not_start_with = 10,
|
|
389
|
+
Start_with = 9
|
|
390
|
+
}
|
|
391
|
+
|
|
392
|
+
export declare interface ConditionalValueItem {
|
|
393
|
+
expressionType: ExpressionType;
|
|
394
|
+
parameter: {
|
|
395
|
+
dataValueType: DataValueType;
|
|
396
|
+
value: string;
|
|
397
|
+
};
|
|
398
|
+
}
|
|
399
|
+
|
|
400
|
+
/**
|
|
401
|
+
* @public
|
|
402
|
+
* @description Shape to implementing Converter.
|
|
403
|
+
* @template V
|
|
404
|
+
* @template R
|
|
405
|
+
*/
|
|
406
|
+
export declare interface Converter<V = unknown, R = unknown> {
|
|
407
|
+
/**
|
|
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}
|
|
413
|
+
*/
|
|
414
|
+
convert(value: V, context: ViewModelContext, ...args: unknown[]): R;
|
|
415
|
+
}
|
|
416
|
+
|
|
417
|
+
export declare type ConverterCtor = new () => Converter;
|
|
418
|
+
|
|
419
|
+
/* Excluded from this release type: CrtControl */
|
|
420
|
+
|
|
421
|
+
/* Excluded from this release type: CrtConverter */
|
|
422
|
+
|
|
423
|
+
/* Excluded from this release type: CrtDesignTimeViewElement */
|
|
424
|
+
|
|
425
|
+
/**
|
|
426
|
+
* @public
|
|
427
|
+
* @description Creatio platform interacts with input's of user-defined component through CrtInput decorator.
|
|
428
|
+
* @param config {@link CrtInputRegistrationConfig}
|
|
429
|
+
*
|
|
430
|
+
* @example
|
|
431
|
+
* export class AppComponent {
|
|
432
|
+
* @CrtInput()
|
|
433
|
+
* public value!: string;
|
|
434
|
+
* }
|
|
435
|
+
*/
|
|
436
|
+
export declare function CrtInput(config?: CrtInputRegistrationConfig): (target: any, propertyKey: string) => void;
|
|
437
|
+
|
|
438
|
+
/* Excluded from this release type: crtInputPrefix */
|
|
439
|
+
|
|
440
|
+
/**
|
|
441
|
+
* @public
|
|
442
|
+
*/
|
|
443
|
+
export declare class CrtInputRegistrationConfig {
|
|
444
|
+
/* Excluded from this release type: propertyBindable */
|
|
445
|
+
}
|
|
446
|
+
|
|
447
|
+
/**
|
|
448
|
+
* @public
|
|
449
|
+
* @description Decorator to declare design time configuration for view element.
|
|
450
|
+
* @param config - registration config {@link InterfaceDesignerItemDefinition}.
|
|
451
|
+
*
|
|
452
|
+
* @example
|
|
453
|
+
* @CrtViewElement({
|
|
454
|
+
* type: "usr.Example',
|
|
455
|
+
* selector: 'usr-example',
|
|
456
|
+
* })
|
|
457
|
+
* @CrtInterfaceDesignerItem({
|
|
458
|
+
* toolbarConfig: {
|
|
459
|
+
* caption: 'usrExampleCaption',
|
|
460
|
+
* name: 'usrExampleName',
|
|
461
|
+
* icon: require(`!!raw-loader?{esModule:false}!../assets/icon.svg`)
|
|
462
|
+
* hint: 'usrExampleHint',
|
|
463
|
+
* defaultPropertyValues: {
|
|
464
|
+
* value: 'This is default value',
|
|
465
|
+
* },
|
|
466
|
+
* },
|
|
467
|
+
* })
|
|
468
|
+
* @Component({
|
|
469
|
+
* selector: 'usr-example',
|
|
470
|
+
* templateUrl: './app.component.html',
|
|
471
|
+
* styleUrls: ['./app.component.scss'],
|
|
472
|
+
* encapsulation: ViewEncapsulation.ShadowDom,
|
|
473
|
+
* })
|
|
474
|
+
* export class AppComponent {
|
|
475
|
+
* @Input()
|
|
476
|
+
* @CrtInput()
|
|
477
|
+
* public value!: string;
|
|
478
|
+
* }
|
|
479
|
+
*/
|
|
480
|
+
export declare function CrtInterfaceDesignerItem(config: InterfaceDesignerItemDefinition): (type: Type) => void;
|
|
481
|
+
|
|
482
|
+
/**
|
|
483
|
+
* @public
|
|
484
|
+
* @description CrtModule decorator is a 'container' where user actually setup elements.
|
|
485
|
+
* In could contain viewElements, definitions of other CrtModules.
|
|
486
|
+
* @param moduleDefinition - {@link ModuleDefinition}
|
|
487
|
+
*
|
|
488
|
+
* @example
|
|
489
|
+
* @CrtModule({
|
|
490
|
+
* viewElements: [AppComponent],
|
|
491
|
+
* })
|
|
492
|
+
* @NgModule({
|
|
493
|
+
* declarations: [AppComponent],
|
|
494
|
+
* imports: [BrowserModule],
|
|
495
|
+
* providers: [],
|
|
496
|
+
* })
|
|
497
|
+
* export class AppModule {}
|
|
498
|
+
*/
|
|
499
|
+
export declare function CrtModule(moduleDefinition: ModuleDefinition): (type: Type) => void;
|
|
500
|
+
|
|
501
|
+
/**
|
|
502
|
+
* @public
|
|
503
|
+
* @description User-defined components could notify Creatio platform about changes through CrtOutput decorator.
|
|
504
|
+
* @example
|
|
505
|
+
* export class AppComponent {
|
|
506
|
+
* @Input()
|
|
507
|
+
* @CrtOutput()
|
|
508
|
+
* public valueChange;
|
|
509
|
+
* }
|
|
510
|
+
*/
|
|
511
|
+
export declare function CrtOutput(): (target: any, propertyKey: string) => void;
|
|
512
|
+
|
|
513
|
+
/* Excluded from this release type: crtOutputPrefix */
|
|
514
|
+
|
|
515
|
+
/* Excluded from this release type: CrtRequest */
|
|
516
|
+
|
|
517
|
+
/* Excluded from this release type: CrtRequestHandler */
|
|
518
|
+
|
|
519
|
+
/**
|
|
520
|
+
* @public
|
|
521
|
+
* @description Validation error with message
|
|
522
|
+
* @property {string} message - error message.
|
|
523
|
+
*/
|
|
524
|
+
export declare interface CrtValidationError {
|
|
525
|
+
/**
|
|
526
|
+
* @description error message.
|
|
527
|
+
*/
|
|
528
|
+
message: string;
|
|
529
|
+
}
|
|
530
|
+
|
|
531
|
+
/**
|
|
532
|
+
* @public
|
|
533
|
+
* @description Generic shape of validation errors
|
|
534
|
+
*/
|
|
535
|
+
export declare interface CrtValidationErrors {
|
|
536
|
+
[key: string]: CrtValidationError;
|
|
537
|
+
}
|
|
538
|
+
|
|
539
|
+
/**
|
|
540
|
+
* @public
|
|
541
|
+
* @description Information relates validation.
|
|
542
|
+
* Includes fields to customize behavior depends on validation
|
|
543
|
+
* @property {boolean} valid - indicates whether input is valid.
|
|
544
|
+
* @property {CrtValidationErrors | null} errors - validation errors shape. {@link CrtValidationErrors}
|
|
545
|
+
* @property {boolean} dirty - indicates whether input was changed.
|
|
546
|
+
* @property {boolean} touched - indicates whether input was touched.
|
|
547
|
+
*/
|
|
548
|
+
export declare interface CrtValidationInfo {
|
|
549
|
+
/**
|
|
550
|
+
* @description indicates whether input is valid.
|
|
551
|
+
*/
|
|
552
|
+
readonly valid: boolean;
|
|
553
|
+
/**
|
|
554
|
+
* @description - validation errors shape. {@link CrtValidationErrors}
|
|
555
|
+
*/
|
|
556
|
+
readonly errors: CrtValidationErrors | null;
|
|
557
|
+
/**
|
|
558
|
+
* @description indicates whether input was changed.
|
|
559
|
+
*/
|
|
560
|
+
readonly dirty: boolean;
|
|
561
|
+
/**
|
|
562
|
+
* @description indicates whether input was touched.
|
|
563
|
+
*/
|
|
564
|
+
readonly touched: boolean;
|
|
565
|
+
}
|
|
566
|
+
|
|
567
|
+
/**
|
|
568
|
+
* @public
|
|
569
|
+
* @description User-defined components receive validationInfo changes through CrtValidationInput decorator.
|
|
570
|
+
* Make sure you have defined input for every validationInfo input.
|
|
571
|
+
* To properly declare validationInfo field:
|
|
572
|
+
* 1. Declare input field inside inputs section. For example `value`
|
|
573
|
+
* 2. In validationInputs section declare same field which ends with ValidationInfo.
|
|
574
|
+
* For previous example `valueValidationInfo`
|
|
575
|
+
*
|
|
576
|
+
* @example
|
|
577
|
+
* export class AppComponent {
|
|
578
|
+
* @CrtInput()
|
|
579
|
+
public value;
|
|
580
|
+
*
|
|
581
|
+
* @CrtValidationInput()
|
|
582
|
+
* public valueValidationInfo;
|
|
583
|
+
* }
|
|
584
|
+
*/
|
|
585
|
+
export declare function CrtValidationInput(): (target: any, propertyKey: string) => void;
|
|
586
|
+
|
|
587
|
+
/* Excluded from this release type: crtValidationInputPrefix */
|
|
588
|
+
|
|
589
|
+
/* Excluded from this release type: CrtValidatorFn */
|
|
590
|
+
|
|
591
|
+
/**
|
|
592
|
+
* @public
|
|
593
|
+
* @description CrtViewElement decorator allows user to declare components in Creatio platform.
|
|
594
|
+
* Make sure component is specified in viewElements section of CrtModule.
|
|
595
|
+
* @param config - registration config. {@link ViewElementRegistrationConfig}.
|
|
596
|
+
*
|
|
597
|
+
* @example
|
|
598
|
+
* @CrtViewElement({
|
|
599
|
+
* type: 'usr.Example',
|
|
600
|
+
* selector: 'usr-example',
|
|
601
|
+
* })
|
|
602
|
+
* export class AppComponent {
|
|
603
|
+
* @Input()
|
|
604
|
+
* @CrtInput()
|
|
605
|
+
* public value!: string;
|
|
606
|
+
* }
|
|
607
|
+
*/
|
|
608
|
+
export declare function CrtViewElement(config: ViewElementRegistrationConfig): (type: Type) => void;
|
|
609
|
+
|
|
610
|
+
/**
|
|
611
|
+
* @public
|
|
612
|
+
* @class DataRequest
|
|
613
|
+
* @description Definition of data source request.
|
|
614
|
+
* @extends {BaseRequest} {@link BaseRequest}
|
|
615
|
+
* @property {string} dataSourceName - name of assigned data source.
|
|
616
|
+
*/
|
|
617
|
+
export declare class DataRequest extends BaseRequest {
|
|
618
|
+
/**
|
|
619
|
+
* @description name of assigned data source.
|
|
620
|
+
*/
|
|
621
|
+
readonly dataSourceName: string;
|
|
622
|
+
}
|
|
623
|
+
|
|
624
|
+
export declare interface DataSourceAggregationConfig {
|
|
625
|
+
aggregationFunction?: AggregationFunction;
|
|
626
|
+
filter?: FilterGroup;
|
|
627
|
+
sortByColumn?: string;
|
|
628
|
+
sortByDirection?: OrderDirection;
|
|
629
|
+
}
|
|
630
|
+
|
|
631
|
+
/**
|
|
632
|
+
* @public
|
|
633
|
+
*/
|
|
634
|
+
export declare interface DataSourceAttribute {
|
|
635
|
+
name: string;
|
|
636
|
+
path: string;
|
|
637
|
+
caption?: string;
|
|
638
|
+
dataValueType?: DataValueType;
|
|
639
|
+
aggregationConfig?: DataSourceAggregationConfig;
|
|
640
|
+
}
|
|
641
|
+
|
|
642
|
+
export declare interface DataSourceCanExecuteOperationPayload {
|
|
643
|
+
primaryColumnValue?: string;
|
|
644
|
+
}
|
|
645
|
+
|
|
646
|
+
export declare interface DataSourceCanExecuteOperationResult {
|
|
647
|
+
result: boolean;
|
|
648
|
+
message?: string;
|
|
649
|
+
}
|
|
650
|
+
|
|
651
|
+
/* Excluded from this release type: DataSourceConfig */
|
|
652
|
+
|
|
653
|
+
/**
|
|
654
|
+
* @public
|
|
655
|
+
*/
|
|
656
|
+
export declare interface DataSourceInsertResult extends DataSourceSaveResult {
|
|
657
|
+
primaryAttributes: Array<Record<string, unknown>>;
|
|
658
|
+
}
|
|
659
|
+
|
|
660
|
+
/* Excluded from this release type: DataSourceInstanceConfig */
|
|
661
|
+
|
|
662
|
+
/**
|
|
663
|
+
* @public
|
|
664
|
+
*/
|
|
665
|
+
export declare interface DataSourceLoadOptions {
|
|
666
|
+
pagingConfig?: DataSourcePagingConfig;
|
|
667
|
+
sortingConfig?: DataSourceSortingConfig;
|
|
668
|
+
}
|
|
669
|
+
|
|
670
|
+
/**
|
|
671
|
+
* @public
|
|
672
|
+
*/
|
|
673
|
+
export declare interface DataSourcePagingConfig {
|
|
674
|
+
rowsOffset: number;
|
|
675
|
+
rowCount: number;
|
|
676
|
+
}
|
|
677
|
+
|
|
678
|
+
/**
|
|
679
|
+
* @public
|
|
680
|
+
*/
|
|
681
|
+
export declare type DataSourceParameter = BaseDataSourceParameter | PrimaryDisplayFilterDataSourceParameter;
|
|
682
|
+
|
|
683
|
+
/**
|
|
684
|
+
* @public
|
|
685
|
+
*/
|
|
686
|
+
export declare interface DataSourceParameterRelationConfig {
|
|
687
|
+
dataSchemaName: string;
|
|
688
|
+
attributePath: string;
|
|
689
|
+
relationPath: string;
|
|
690
|
+
}
|
|
691
|
+
|
|
692
|
+
/**
|
|
693
|
+
* @public
|
|
694
|
+
*/
|
|
695
|
+
export declare type DataSourceParameters = DataSourceParameter[];
|
|
696
|
+
|
|
697
|
+
/**
|
|
698
|
+
* @public
|
|
699
|
+
* @description Data source save response
|
|
700
|
+
* @property {boolean} success - indicates whether operation was success.
|
|
701
|
+
* @property {number} rowsAffected - count of affected rows.
|
|
702
|
+
* @property {string} errorInfo - error message.
|
|
703
|
+
*/
|
|
704
|
+
export declare interface DataSourceSaveResult {
|
|
705
|
+
/**
|
|
706
|
+
* @description Indicates whether operation was success.
|
|
707
|
+
*/
|
|
708
|
+
success: boolean;
|
|
709
|
+
/**
|
|
710
|
+
* @description Count of affected rows.
|
|
711
|
+
*/
|
|
712
|
+
rowsAffected: number;
|
|
713
|
+
/**
|
|
714
|
+
* @description Error message.
|
|
715
|
+
*/
|
|
716
|
+
errorInfo: string;
|
|
717
|
+
}
|
|
718
|
+
|
|
719
|
+
/* Excluded from this release type: DataSourceScope */
|
|
720
|
+
|
|
721
|
+
/**
|
|
722
|
+
* @public
|
|
723
|
+
*/
|
|
724
|
+
export declare interface DataSourceSortingConfig {
|
|
725
|
+
columns: SortColumnOptions[];
|
|
726
|
+
}
|
|
727
|
+
|
|
728
|
+
export declare enum DataValueType {
|
|
729
|
+
Guid = 0,
|
|
730
|
+
Text = 1,
|
|
731
|
+
Integer = 4,
|
|
732
|
+
Float = 5,
|
|
733
|
+
Money = 6,
|
|
734
|
+
DateTime = 7,
|
|
735
|
+
Date = 8,
|
|
736
|
+
Time = 9,
|
|
737
|
+
Lookup = 10,
|
|
738
|
+
Enum = 11,
|
|
739
|
+
Boolean = 12,
|
|
740
|
+
Blob = 13,
|
|
741
|
+
Image = 14,
|
|
742
|
+
CUSTOM_OBJECT = 15,
|
|
743
|
+
IMAGELOOKUP = 16,
|
|
744
|
+
COLLECTION = 17,
|
|
745
|
+
COLOR = 18,
|
|
746
|
+
LOCALIZABLE_STRING = 19,
|
|
747
|
+
ENTITY = 20,
|
|
748
|
+
ENTITY_COLLECTION = 21,
|
|
749
|
+
ENTITY_COLUMN_MAPPING_COLLECTION = 22,
|
|
750
|
+
HASH_TEXT = 23,
|
|
751
|
+
SECURE_TEXT = 24,
|
|
752
|
+
FILE = 25,
|
|
753
|
+
MAPPING = 26,
|
|
754
|
+
SHORT_TEXT = 27,
|
|
755
|
+
MEDIUM_TEXT = 28,
|
|
756
|
+
MAXSIZE_TEXT = 29,
|
|
757
|
+
LONG_TEXT = 30,
|
|
758
|
+
FLOAT1 = 31,
|
|
759
|
+
FLOAT2 = 32,
|
|
760
|
+
FLOAT3 = 33,
|
|
761
|
+
FLOAT4 = 34,
|
|
762
|
+
LOCALIZABLE_PARAMETER_VALUES_LIST = 35,
|
|
763
|
+
METADATA_TEXT = 36,
|
|
764
|
+
STAGE_INDICATOR = 37,
|
|
765
|
+
OBJECT_LIST = 38,
|
|
766
|
+
COMPOSITE_OBJECT_LIST = 39,
|
|
767
|
+
FLOAT8 = 40,
|
|
768
|
+
PHONE_TEXT = 42
|
|
769
|
+
}
|
|
770
|
+
|
|
771
|
+
export declare class DatePartFunctionColumn extends BaseQueryColumn<DatePartFunctionExpression> {
|
|
772
|
+
constructor(datePartType: DatePartType, functionArgument: BaseExpression);
|
|
773
|
+
get datePartType(): DatePartType;
|
|
774
|
+
}
|
|
775
|
+
|
|
776
|
+
export declare class DatePartFunctionExpression extends ArgumentFunctionExpression {
|
|
777
|
+
readonly functionType: FunctionType;
|
|
778
|
+
readonly datePartType: DatePartType;
|
|
779
|
+
constructor(config: DatePartFunctionExpressionConfig);
|
|
780
|
+
clone(): DatePartFunctionExpression;
|
|
781
|
+
}
|
|
782
|
+
|
|
783
|
+
export declare type DatePartFunctionExpressionConfig = ArgumentFunctionExpressionConfig<DatePartFunctionExpression> & Pick<DatePartFunctionExpression, 'datePartType'>;
|
|
784
|
+
|
|
785
|
+
export declare enum DatePartType {
|
|
786
|
+
/** Empty value. */
|
|
787
|
+
None = 0,
|
|
788
|
+
/** Day. */
|
|
789
|
+
Day = 1,
|
|
790
|
+
/** Week. */
|
|
791
|
+
Week = 2,
|
|
792
|
+
/** Month. */
|
|
793
|
+
Month = 3,
|
|
794
|
+
/** Year. */
|
|
795
|
+
Year = 4,
|
|
796
|
+
/** Day of the week. */
|
|
797
|
+
WeekDay = 5,
|
|
798
|
+
/** Hour. */
|
|
799
|
+
Hour = 6,
|
|
800
|
+
/** Minute. */
|
|
801
|
+
HourMinute = 7
|
|
802
|
+
}
|
|
803
|
+
|
|
804
|
+
/* Excluded from this release type: DeleteQuery */
|
|
805
|
+
|
|
806
|
+
/* Excluded from this release type: DesignerToolGroupType */
|
|
807
|
+
|
|
808
|
+
/* Excluded from this release type: DesignTimeViewElementRegistry */
|
|
809
|
+
|
|
810
|
+
/* Excluded from this release type: DesignTimeViewElementRegistryItem */
|
|
811
|
+
|
|
812
|
+
/* Excluded from this release type: designTimeViewElementRegistryKey */
|
|
813
|
+
|
|
814
|
+
/* Excluded from this release type: EMPTY_GUID */
|
|
815
|
+
|
|
816
|
+
export declare interface Entity {
|
|
817
|
+
[key: string]: EntityColumnValue;
|
|
818
|
+
}
|
|
819
|
+
|
|
820
|
+
export declare type EntityColumnValue = boolean | number | string | Guid | Date | LookupValue | null;
|
|
821
|
+
|
|
822
|
+
export declare class EntityQueryColumn extends BaseQueryColumn<ColumnExpression> {
|
|
823
|
+
constructor(columnPath: string);
|
|
824
|
+
}
|
|
825
|
+
|
|
826
|
+
/* Excluded from this release type: EntitySchemaQuery */
|
|
827
|
+
|
|
828
|
+
/**
|
|
829
|
+
* @public
|
|
830
|
+
* @description Shape for detailed error explanation.
|
|
831
|
+
* @property {string} errorCode - Error code.
|
|
832
|
+
* @property {string} message - Error message.
|
|
833
|
+
* @property {string} stackTrace - Stack at the moment of causing an error.
|
|
834
|
+
*/
|
|
835
|
+
export declare interface ErrorInfo {
|
|
836
|
+
/**
|
|
837
|
+
* @description Error code.
|
|
838
|
+
*/
|
|
839
|
+
errorCode: string;
|
|
840
|
+
/**
|
|
841
|
+
* @description Error message.
|
|
842
|
+
*/
|
|
843
|
+
message: string;
|
|
844
|
+
/**
|
|
845
|
+
* @description Stack at the moment of causing an error
|
|
846
|
+
*/
|
|
847
|
+
stackTrace: string;
|
|
848
|
+
}
|
|
849
|
+
|
|
850
|
+
export declare class ExistsFilter extends SingleFilter {
|
|
851
|
+
readonly subFilters: FilterGroup;
|
|
852
|
+
readonly isAggregative: boolean;
|
|
853
|
+
constructor(leftExpression: BaseExpression, subFilters: FilterGroup, comparisonType?: ComparisonType, isAggregative?: boolean);
|
|
854
|
+
clone(): ExistsFilter;
|
|
855
|
+
}
|
|
856
|
+
|
|
857
|
+
export declare const EXPRESSION_TYPE_MOCK: ExpressionType;
|
|
858
|
+
|
|
859
|
+
export declare type ExpressionConfig<TExpression extends BaseExpression> = Partial<Omit<TExpression, 'expressionType'>>;
|
|
860
|
+
|
|
861
|
+
export declare class ExpressionMock extends BaseExpression {
|
|
862
|
+
readonly expressionType: ExpressionType;
|
|
863
|
+
constructor(config?: ExpressionConfig<ExpressionMock>);
|
|
864
|
+
get plainObject(): object;
|
|
865
|
+
clone(): ExpressionMock;
|
|
866
|
+
}
|
|
867
|
+
|
|
868
|
+
export declare enum ExpressionType {
|
|
869
|
+
SchemaColumn = 0,
|
|
870
|
+
Function = 1,
|
|
871
|
+
Parameter = 2,
|
|
872
|
+
SubQuery = 3,
|
|
873
|
+
ArithmeticOperation = 4
|
|
874
|
+
}
|
|
875
|
+
|
|
876
|
+
/* Excluded from this release type: ExtraToolbarViewElementConfig */
|
|
877
|
+
|
|
878
|
+
/**
|
|
879
|
+
* @public
|
|
880
|
+
* @class FeatureService
|
|
881
|
+
* @classdesc Service to working with Creatio platform features using handler chain
|
|
882
|
+
* @extends {BaseHandlerChainService}
|
|
883
|
+
*/
|
|
884
|
+
export declare class FeatureService extends BaseHandlerChainService {
|
|
885
|
+
/* Excluded from this release type: requestType */
|
|
886
|
+
/**
|
|
887
|
+
* @description Method designed to get state for single feature
|
|
888
|
+
* @param {string} code - feature code
|
|
889
|
+
* @returns `Promise<boolean>`
|
|
890
|
+
*/
|
|
891
|
+
getFeatureState: (code: string) => Promise<boolean>;
|
|
892
|
+
/**
|
|
893
|
+
* @description Method designed to get feature states
|
|
894
|
+
* @param {string[]} codes - feature codes
|
|
895
|
+
* @returns `Promise<boolean[]>`
|
|
896
|
+
*/
|
|
897
|
+
getFeaturesState: (codes: string[]) => Promise<boolean[]>;
|
|
898
|
+
}
|
|
899
|
+
|
|
900
|
+
/* Excluded from this release type: FileValue */
|
|
901
|
+
|
|
902
|
+
export declare class FilterGroup extends BaseFilter {
|
|
903
|
+
filters: Map<string, BaseFilter>;
|
|
904
|
+
get items(): {
|
|
905
|
+
[key: string]: BaseFilter;
|
|
906
|
+
};
|
|
907
|
+
logicalOperation: LogicalOperatorType;
|
|
908
|
+
constructor(logicalOperation?: LogicalOperatorType);
|
|
909
|
+
/**
|
|
910
|
+
* Returns filter item by index.
|
|
911
|
+
* @param index Item index.
|
|
912
|
+
* @returns Filter.
|
|
913
|
+
*/
|
|
914
|
+
getItemByIndex(index: number): BaseFilter;
|
|
915
|
+
addSchemaColumnFilterWithParameter(comparisonType: ComparisonType, columnPath: string, parameterValue: EntityColumnValue): void;
|
|
916
|
+
addSchemaColumnInFilterWithParameters(comparisonType: ComparisonType, columnPath: string, parameterValues: EntityColumnValue[]): void;
|
|
917
|
+
addSchemaColumnIsNullFilter(columnPath: string): void;
|
|
918
|
+
addSchemaColumnIsNotNullFilter(columnPath: string): void;
|
|
919
|
+
addExistsFilter(columnPath: string, subFilters?: FilterGroup): void;
|
|
920
|
+
addNotExistsFilter(columnPath: string, subFilters?: FilterGroup): void;
|
|
921
|
+
add(filter: BaseFilter, filterKey?: Guid): void;
|
|
922
|
+
clone(): FilterGroup;
|
|
923
|
+
}
|
|
924
|
+
|
|
925
|
+
export declare class FilterMock extends BaseFilter {
|
|
926
|
+
constructor(filterType?: FilterType);
|
|
927
|
+
get plainObject(): object;
|
|
928
|
+
clone(): FilterMock;
|
|
929
|
+
}
|
|
930
|
+
|
|
931
|
+
export declare enum FilterType {
|
|
932
|
+
None = 0,
|
|
933
|
+
Compare = 1,
|
|
934
|
+
IsNull = 2,
|
|
935
|
+
Between = 3,
|
|
936
|
+
In = 4,
|
|
937
|
+
Exists = 5,
|
|
938
|
+
FilterGroup = 6
|
|
939
|
+
}
|
|
940
|
+
|
|
941
|
+
export declare abstract class FunctionExpression extends BaseExpression {
|
|
942
|
+
readonly expressionType: ExpressionType;
|
|
943
|
+
abstract readonly functionType: FunctionType;
|
|
944
|
+
protected constructor(config: FunctionExpressionConfig<FunctionExpression>);
|
|
945
|
+
abstract clone(): FunctionExpression;
|
|
946
|
+
}
|
|
947
|
+
|
|
948
|
+
export declare type FunctionExpressionConfig<TExpression extends FunctionExpression> = Omit<ExpressionConfig<TExpression>, 'functionType'>;
|
|
949
|
+
|
|
950
|
+
export declare enum FunctionType {
|
|
951
|
+
None = 0,
|
|
952
|
+
/** Substitution by macro. */
|
|
953
|
+
Macros = 1,
|
|
954
|
+
/** Aggregating function. */
|
|
955
|
+
Aggregation = 2,
|
|
956
|
+
/** Date fragment. */
|
|
957
|
+
DatePart = 3,
|
|
958
|
+
/** The size of the value in bytes, used for binary data. */
|
|
959
|
+
Length = 4,
|
|
960
|
+
/** Window query function */
|
|
961
|
+
Window = 5
|
|
962
|
+
}
|
|
963
|
+
|
|
964
|
+
/* Excluded from this release type: generateGuid */
|
|
965
|
+
|
|
966
|
+
/* Excluded from this release type: getCrtInputsMetadata */
|
|
967
|
+
|
|
968
|
+
/* Excluded from this release type: getCrtOutputsMetadata */
|
|
969
|
+
|
|
970
|
+
/* Excluded from this release type: getCrtValidationInputsMetadata */
|
|
971
|
+
|
|
972
|
+
/* Excluded from this release type: getDesignTimeViewElementMetadata */
|
|
973
|
+
|
|
974
|
+
/* Excluded from this release type: getHandlerChainServiceMetadata */
|
|
975
|
+
|
|
976
|
+
/* Excluded from this release type: getInterfaceDesignerItemMetadata */
|
|
977
|
+
|
|
978
|
+
/* Excluded from this release type: getModuleMetadata */
|
|
979
|
+
|
|
980
|
+
/* Excluded from this release type: getRequestHandlerMetadata */
|
|
981
|
+
|
|
982
|
+
/* Excluded from this release type: getViewElementMetadata */
|
|
983
|
+
|
|
984
|
+
/* Excluded from this release type: GlobalConvertersRegistryService */
|
|
985
|
+
|
|
986
|
+
/* Excluded from this release type: GroupedDateValue */
|
|
987
|
+
|
|
988
|
+
/**
|
|
989
|
+
* Type for Guid value.
|
|
990
|
+
* @public
|
|
991
|
+
*/
|
|
992
|
+
export declare type Guid = string;
|
|
993
|
+
|
|
994
|
+
/**
|
|
995
|
+
* @public
|
|
996
|
+
* @class HandlerChainService
|
|
997
|
+
* @classdesc Service to design handlers in chain.
|
|
998
|
+
*/
|
|
999
|
+
export declare class HandlerChainService {
|
|
1000
|
+
private get _chain();
|
|
1001
|
+
private set _chain(value);
|
|
1002
|
+
private static _instance;
|
|
1003
|
+
static get instance(): HandlerChainService;
|
|
1004
|
+
private constructor();
|
|
1005
|
+
private _createGlobalHandlerChain;
|
|
1006
|
+
/* Excluded from this release type: register */
|
|
1007
|
+
/**
|
|
1008
|
+
* @description Method to process passed request
|
|
1009
|
+
* @param request - {@link BaseRequest}
|
|
1010
|
+
* @return `Promise<unknown>`
|
|
1011
|
+
*/
|
|
1012
|
+
process(request: BaseRequest): Promise<unknown>;
|
|
1013
|
+
}
|
|
1014
|
+
|
|
1015
|
+
/* Excluded from this release type: HandlerChainServiceRegistryItem */
|
|
1016
|
+
|
|
1017
|
+
/* Excluded from this release type: HandlerChainServicesRegistry */
|
|
1018
|
+
|
|
1019
|
+
/* Excluded from this release type: hasInterfaceDesignerItemMetadata */
|
|
1020
|
+
|
|
1021
|
+
/**
|
|
1022
|
+
* @public
|
|
1023
|
+
* @class HttpClientService
|
|
1024
|
+
* @classdesc Http service to perform Http requests
|
|
1025
|
+
* @extends {BaseHandlerChainService}
|
|
1026
|
+
*/
|
|
1027
|
+
export declare class HttpClientService extends BaseHandlerChainService {
|
|
1028
|
+
/* Excluded from this release type: requestType */
|
|
1029
|
+
get(url: string, options: {
|
|
1030
|
+
headers?: HttpHeaders;
|
|
1031
|
+
responseType: 'arraybuffer';
|
|
1032
|
+
}): Promise<HttpResponse<ArrayBuffer>>;
|
|
1033
|
+
get(url: string, options: {
|
|
1034
|
+
headers?: HttpHeaders;
|
|
1035
|
+
responseType: 'blob';
|
|
1036
|
+
}): Promise<HttpResponse<Blob>>;
|
|
1037
|
+
get(url: string, options: {
|
|
1038
|
+
headers?: HttpHeaders;
|
|
1039
|
+
responseType: 'text';
|
|
1040
|
+
}): Promise<HttpResponse<string>>;
|
|
1041
|
+
get(url: string, options: {
|
|
1042
|
+
headers?: HttpHeaders;
|
|
1043
|
+
responseType?: 'json';
|
|
1044
|
+
}): Promise<HttpResponse>;
|
|
1045
|
+
get<T>(url: string, options: {
|
|
1046
|
+
headers?: HttpHeaders;
|
|
1047
|
+
responseType?: 'json';
|
|
1048
|
+
}): Promise<HttpResponse<T>>;
|
|
1049
|
+
post(url: string, body: unknown | null, options: {
|
|
1050
|
+
headers?: HttpHeaders;
|
|
1051
|
+
responseType: 'arraybuffer';
|
|
1052
|
+
}): Promise<HttpResponse<ArrayBuffer>>;
|
|
1053
|
+
post(url: string, body: unknown | null, options: {
|
|
1054
|
+
headers?: HttpHeaders;
|
|
1055
|
+
responseType: 'blob';
|
|
1056
|
+
}): Promise<HttpResponse<Blob>>;
|
|
1057
|
+
post(url: string, body: unknown | null, options: {
|
|
1058
|
+
headers?: HttpHeaders;
|
|
1059
|
+
responseType: 'text';
|
|
1060
|
+
}): Promise<HttpResponse<string>>;
|
|
1061
|
+
post(url: string, body: unknown | null, options: {
|
|
1062
|
+
headers?: HttpHeaders;
|
|
1063
|
+
responseType?: 'json';
|
|
1064
|
+
}): Promise<HttpResponse>;
|
|
1065
|
+
post<T>(url: string, body: unknown | null, options: {
|
|
1066
|
+
headers?: HttpHeaders;
|
|
1067
|
+
responseType?: 'json';
|
|
1068
|
+
}): Promise<HttpResponse<T>>;
|
|
1069
|
+
delete(url: string, options: {
|
|
1070
|
+
headers?: HttpHeaders;
|
|
1071
|
+
responseType: 'arraybuffer';
|
|
1072
|
+
body?: unknown | null;
|
|
1073
|
+
}): Promise<HttpResponse<ArrayBuffer>>;
|
|
1074
|
+
delete(url: string, options: {
|
|
1075
|
+
headers?: HttpHeaders;
|
|
1076
|
+
responseType: 'blob';
|
|
1077
|
+
body?: unknown | null;
|
|
1078
|
+
}): Promise<HttpResponse<Blob>>;
|
|
1079
|
+
delete(url: string, options: {
|
|
1080
|
+
headers?: HttpHeaders;
|
|
1081
|
+
responseType: 'text';
|
|
1082
|
+
body?: unknown | null;
|
|
1083
|
+
}): Promise<HttpResponse<string>>;
|
|
1084
|
+
delete(url: string, options: {
|
|
1085
|
+
headers?: HttpHeaders;
|
|
1086
|
+
responseType?: 'json';
|
|
1087
|
+
body?: unknown | null;
|
|
1088
|
+
}): Promise<HttpResponse>;
|
|
1089
|
+
delete<T>(url: string, options: {
|
|
1090
|
+
headers?: HttpHeaders;
|
|
1091
|
+
responseType?: 'json';
|
|
1092
|
+
body?: unknown | null;
|
|
1093
|
+
}): Promise<HttpResponse<T>>;
|
|
1094
|
+
put(url: string, body: unknown | null, options: {
|
|
1095
|
+
headers?: HttpHeaders;
|
|
1096
|
+
responseType: 'arraybuffer';
|
|
1097
|
+
}): Promise<HttpResponse<ArrayBuffer>>;
|
|
1098
|
+
put(url: string, body: unknown | null, options: {
|
|
1099
|
+
headers?: HttpHeaders;
|
|
1100
|
+
responseType: 'blob';
|
|
1101
|
+
}): Promise<HttpResponse<Blob>>;
|
|
1102
|
+
put(url: string, body: unknown | null, options: {
|
|
1103
|
+
headers?: HttpHeaders;
|
|
1104
|
+
responseType: 'text';
|
|
1105
|
+
}): Promise<HttpResponse<string>>;
|
|
1106
|
+
put(url: string, body: unknown | null, options: {
|
|
1107
|
+
headers?: HttpHeaders;
|
|
1108
|
+
responseType?: 'json';
|
|
1109
|
+
}): Promise<HttpResponse>;
|
|
1110
|
+
put<T>(url: string, body: unknown | null, options: {
|
|
1111
|
+
headers?: HttpHeaders;
|
|
1112
|
+
responseType?: 'json';
|
|
1113
|
+
}): Promise<HttpResponse<T>>;
|
|
1114
|
+
patch(url: string, body: unknown | null, options: {
|
|
1115
|
+
headers?: HttpHeaders;
|
|
1116
|
+
responseType: 'arraybuffer';
|
|
1117
|
+
}): Promise<HttpResponse<ArrayBuffer>>;
|
|
1118
|
+
patch(url: string, body: unknown | null, options: {
|
|
1119
|
+
headers?: HttpHeaders;
|
|
1120
|
+
responseType: 'blob';
|
|
1121
|
+
}): Promise<HttpResponse<Blob>>;
|
|
1122
|
+
patch(url: string, body: unknown | null, options: {
|
|
1123
|
+
headers?: HttpHeaders;
|
|
1124
|
+
responseType: 'text';
|
|
1125
|
+
}): Promise<HttpResponse<string>>;
|
|
1126
|
+
patch(url: string, body: unknown | null, options: {
|
|
1127
|
+
headers?: HttpHeaders;
|
|
1128
|
+
responseType?: 'json';
|
|
1129
|
+
}): Promise<HttpResponse>;
|
|
1130
|
+
patch<T>(url: string, body: unknown | null, options: {
|
|
1131
|
+
headers?: HttpHeaders;
|
|
1132
|
+
responseType?: 'json';
|
|
1133
|
+
}): Promise<HttpResponse<T>>;
|
|
1134
|
+
}
|
|
1135
|
+
|
|
1136
|
+
/**
|
|
1137
|
+
* @public
|
|
1138
|
+
* @description Key-value shape for HttpHeaders
|
|
1139
|
+
*/
|
|
1140
|
+
export declare interface HttpHeaders {
|
|
1141
|
+
[header: string]: string;
|
|
1142
|
+
}
|
|
1143
|
+
|
|
1144
|
+
/**
|
|
1145
|
+
* @public
|
|
1146
|
+
* @description Http response
|
|
1147
|
+
* @template T
|
|
1148
|
+
* @property {HttpHeaders} headers - response headers {@link HttpHeaders}
|
|
1149
|
+
* @property {number} status - response status
|
|
1150
|
+
* @property {string} statusText - text of response
|
|
1151
|
+
* @property {string | null} url - response url
|
|
1152
|
+
* @property {boolean} ok - ok status
|
|
1153
|
+
* @property {T | null} body - response body
|
|
1154
|
+
*/
|
|
1155
|
+
export declare interface HttpResponse<T = unknown> {
|
|
1156
|
+
/**
|
|
1157
|
+
* @description response headers {@link HttpHeaders}
|
|
1158
|
+
*/
|
|
1159
|
+
headers: HttpHeaders;
|
|
1160
|
+
/**
|
|
1161
|
+
* @description response status
|
|
1162
|
+
*/
|
|
1163
|
+
status: number;
|
|
1164
|
+
/**
|
|
1165
|
+
* @description text of response
|
|
1166
|
+
*/
|
|
1167
|
+
statusText: string;
|
|
1168
|
+
/**
|
|
1169
|
+
* @description response url
|
|
1170
|
+
*/
|
|
1171
|
+
url: string | null;
|
|
1172
|
+
/**
|
|
1173
|
+
* @description ok status
|
|
1174
|
+
*/
|
|
1175
|
+
ok: boolean;
|
|
1176
|
+
/**
|
|
1177
|
+
* @description response body
|
|
1178
|
+
*/
|
|
1179
|
+
body: T | null;
|
|
1180
|
+
}
|
|
1181
|
+
|
|
1182
|
+
/* Excluded from this release type: ImplementUsingHandlerChain */
|
|
1183
|
+
|
|
1184
|
+
export declare class InFilter extends SingleFilter {
|
|
1185
|
+
readonly rightExpressions: BaseExpression[];
|
|
1186
|
+
constructor(comparisonType: ComparisonType, leftExpression: BaseExpression, rightExpressions: BaseExpression[]);
|
|
1187
|
+
clone(): InFilter;
|
|
1188
|
+
}
|
|
1189
|
+
|
|
1190
|
+
/* Excluded from this release type: InsertQuery */
|
|
1191
|
+
|
|
1192
|
+
/**
|
|
1193
|
+
* @public
|
|
1194
|
+
* @description Config used to register view element options in interface designer.
|
|
1195
|
+
* User-defined view elements will be displayed in Custom Elements group of interface designer.
|
|
1196
|
+
*/
|
|
1197
|
+
export declare interface InterfaceDesignerItemDefinition {
|
|
1198
|
+
/**
|
|
1199
|
+
* Config for defining view element options in left panel of Interface designer.
|
|
1200
|
+
*/
|
|
1201
|
+
toolbarConfig: {
|
|
1202
|
+
/**
|
|
1203
|
+
* Caption of view element in toolbar.
|
|
1204
|
+
*/
|
|
1205
|
+
caption: string | LocalizableValue;
|
|
1206
|
+
/**
|
|
1207
|
+
* Name of view element in toolbar.
|
|
1208
|
+
*/
|
|
1209
|
+
name: string;
|
|
1210
|
+
/**
|
|
1211
|
+
* Require path to load icon that will be displayed for view element
|
|
1212
|
+
* in left panel of Interface designer.
|
|
1213
|
+
* @example icon: require(`!!raw-loader?{esModule:false}!../assets/icon.svg`),
|
|
1214
|
+
*/
|
|
1215
|
+
icon: string;
|
|
1216
|
+
/**
|
|
1217
|
+
* Hint which will be displayed on hover.
|
|
1218
|
+
*/
|
|
1219
|
+
hint?: string;
|
|
1220
|
+
/**
|
|
1221
|
+
* Map of default values which will be set after drag&drop.
|
|
1222
|
+
*/
|
|
1223
|
+
defaultPropertyValues?: Record<string, unknown | LocalizableValue>;
|
|
1224
|
+
/* Excluded from this release type: groupType */
|
|
1225
|
+
};
|
|
1226
|
+
/* Excluded from this release type: viewElementGroupType */
|
|
1227
|
+
/* Excluded from this release type: typeCaption */
|
|
1228
|
+
/* Excluded from this release type: typeRef */
|
|
1229
|
+
}
|
|
1230
|
+
|
|
1231
|
+
/* Excluded from this release type: InterfaceDesignerItemMetadata */
|
|
1232
|
+
|
|
1233
|
+
/* Excluded from this release type: InterfaceDesignerItemRegistrationConfig */
|
|
1234
|
+
|
|
1235
|
+
/* Excluded from this release type: InterfaceDesignerItemRegistry */
|
|
1236
|
+
|
|
1237
|
+
/* Excluded from this release type: interfaceDesignerItemRegistryKey */
|
|
1238
|
+
|
|
1239
|
+
/* Excluded from this release type: InterfaceDesignerRegistryItem */
|
|
1240
|
+
|
|
1241
|
+
/* Excluded from this release type: InternalInterfaceDesignerItemRegistrationConfig */
|
|
1242
|
+
|
|
1243
|
+
/* Excluded from this release type: InternalRequestHandlerRegistry */
|
|
1244
|
+
|
|
1245
|
+
/* Excluded from this release type: InternalRequestHandlerRegistryType */
|
|
1246
|
+
|
|
1247
|
+
/* Excluded from this release type: InternalToolbarViewElementCollectionItemConfig */
|
|
1248
|
+
|
|
1249
|
+
/* Excluded from this release type: InternalToolbarViewElementConfig */
|
|
1250
|
+
|
|
1251
|
+
/* Excluded from this release type: InternalToolbarViewElementConfigCollection */
|
|
1252
|
+
|
|
1253
|
+
/* Excluded from this release type: isEmptyGuid */
|
|
1254
|
+
|
|
1255
|
+
/* Excluded from this release type: isGuid */
|
|
1256
|
+
|
|
1257
|
+
export declare class IsNullFilter extends SingleFilter {
|
|
1258
|
+
constructor(comparisonType: ComparisonType, leftExpression: BaseExpression);
|
|
1259
|
+
get isNull(): boolean;
|
|
1260
|
+
clone(): IsNullFilter;
|
|
1261
|
+
}
|
|
1262
|
+
|
|
1263
|
+
export declare class ItemNotFoundException extends Error {
|
|
1264
|
+
constructor(key: string);
|
|
1265
|
+
}
|
|
1266
|
+
|
|
1267
|
+
/**
|
|
1268
|
+
* @public
|
|
1269
|
+
*/
|
|
1270
|
+
export declare type JsonArray = Array<JsonData>;
|
|
1271
|
+
|
|
1272
|
+
/**
|
|
1273
|
+
* @public
|
|
1274
|
+
*/
|
|
1275
|
+
export declare type JsonData = string | number | boolean | null | undefined | JsonObject | JsonArray;
|
|
1276
|
+
|
|
1277
|
+
/**
|
|
1278
|
+
* @public
|
|
1279
|
+
*/
|
|
1280
|
+
export declare interface JsonObject {
|
|
1281
|
+
[key: string]: JsonData;
|
|
1282
|
+
}
|
|
1283
|
+
|
|
1284
|
+
export declare class LengthFunctionColumn extends BaseQueryColumn<LengthFunctionExpression> {
|
|
1285
|
+
constructor(functionArgument: ColumnExpression);
|
|
1286
|
+
}
|
|
1287
|
+
|
|
1288
|
+
export declare class LengthFunctionExpression extends ArgumentFunctionExpression {
|
|
1289
|
+
readonly functionType: FunctionType;
|
|
1290
|
+
readonly functionArgument: ColumnExpression;
|
|
1291
|
+
constructor(config: LengthFunctionExpressionConfig);
|
|
1292
|
+
clone(): LengthFunctionExpression;
|
|
1293
|
+
}
|
|
1294
|
+
|
|
1295
|
+
export declare type LengthFunctionExpressionConfig = ArgumentFunctionExpressionConfig<LengthFunctionExpression>;
|
|
1296
|
+
|
|
1297
|
+
/**
|
|
1298
|
+
* @public
|
|
1299
|
+
*/
|
|
1300
|
+
export declare class LocalizableValue {
|
|
1301
|
+
readonly key: string;
|
|
1302
|
+
constructor(key: string);
|
|
1303
|
+
}
|
|
1304
|
+
|
|
1305
|
+
/**
|
|
1306
|
+
* @public
|
|
1307
|
+
* @description Use this function in decorators to indicate that a value should be localized.
|
|
1308
|
+
* Note that the "localizeMetadata" bootstrap option should be provided,
|
|
1309
|
+
* otherwise the value cannot be localized.
|
|
1310
|
+
*
|
|
1311
|
+
* @example
|
|
1312
|
+
*
|
|
1313
|
+
* ### Using 'localize' in decorator
|
|
1314
|
+
* ```ts
|
|
1315
|
+
* @CrtInterfaceDesignerItem({
|
|
1316
|
+
* toolbarConfig: {
|
|
1317
|
+
* caption: localize('MyElement.Caption')
|
|
1318
|
+
* }
|
|
1319
|
+
* })
|
|
1320
|
+
* class MyElement {}
|
|
1321
|
+
* ```
|
|
1322
|
+
* ### Passing 'localizeMetadata' bootstrap option
|
|
1323
|
+
* ```ts
|
|
1324
|
+
* bootstrapCrtModule(MyModule, {
|
|
1325
|
+
* localizeMetadata: (key: string) => thirdPartyTranslateService.translate(key)
|
|
1326
|
+
* });
|
|
1327
|
+
* ```
|
|
1328
|
+
*/
|
|
1329
|
+
export declare function localize(key: string): LocalizableValue;
|
|
1330
|
+
|
|
1331
|
+
/**
|
|
1332
|
+
* @public
|
|
1333
|
+
* @description Function that takes a key to translate, and returns the translated value.
|
|
1334
|
+
*/
|
|
1335
|
+
export declare type LocalizeFn = (key: string) => string;
|
|
1336
|
+
|
|
1337
|
+
export declare enum LogicalOperatorType {
|
|
1338
|
+
And = 0,
|
|
1339
|
+
Or = 1
|
|
1340
|
+
}
|
|
1341
|
+
|
|
1342
|
+
/**
|
|
1343
|
+
* @public
|
|
1344
|
+
* @description Required shape for lookup.
|
|
1345
|
+
* @extends {JsonObject}
|
|
1346
|
+
* @property {string} displayValue - Value witch will be displayed in lookup
|
|
1347
|
+
* @property {string} primaryImageValue - Image for lookup value
|
|
1348
|
+
* @property {Guid} value - {@link Guid} - actual lookup value
|
|
1349
|
+
*/
|
|
1350
|
+
export declare interface LookupValue extends JsonObject {
|
|
1351
|
+
/**
|
|
1352
|
+
* @description Value witch will be displayed in lookup
|
|
1353
|
+
*/
|
|
1354
|
+
displayValue: string;
|
|
1355
|
+
/**
|
|
1356
|
+
* @description Image for lookup value
|
|
1357
|
+
*/
|
|
1358
|
+
primaryImageValue?: string;
|
|
1359
|
+
/**
|
|
1360
|
+
* @description actual lookup value
|
|
1361
|
+
*/
|
|
1362
|
+
value: Guid;
|
|
1363
|
+
}
|
|
1364
|
+
|
|
1365
|
+
/**
|
|
1366
|
+
* @public
|
|
1367
|
+
* @description Lookup value with code
|
|
1368
|
+
* @extends {LookupValue}
|
|
1369
|
+
* @property {string} code - code of lookup value
|
|
1370
|
+
*/
|
|
1371
|
+
export declare interface LookupValueWithCode extends LookupValue {
|
|
1372
|
+
/**
|
|
1373
|
+
* @description code of lookup value
|
|
1374
|
+
*/
|
|
1375
|
+
code: string;
|
|
1376
|
+
}
|
|
1377
|
+
|
|
1378
|
+
export declare class MacrosFunctionColumn extends BaseQueryColumn<MacrosFunctionExpression> {
|
|
1379
|
+
constructor(macrosType: QueryMacrosType);
|
|
1380
|
+
}
|
|
1381
|
+
|
|
1382
|
+
export declare class MacrosFunctionExpression extends FunctionExpression {
|
|
1383
|
+
readonly functionType: FunctionType;
|
|
1384
|
+
readonly macrosType: QueryMacrosType;
|
|
1385
|
+
constructor(config: MacrosFunctionExpressionConfig);
|
|
1386
|
+
clone(): MacrosFunctionExpression;
|
|
1387
|
+
}
|
|
1388
|
+
|
|
1389
|
+
export declare type MacrosFunctionExpressionConfig = FunctionExpressionConfig<MacrosFunctionExpression> & Pick<MacrosFunctionExpression, 'macrosType'>;
|
|
1390
|
+
|
|
1391
|
+
/**
|
|
1392
|
+
* @public
|
|
1393
|
+
* @class MaskService
|
|
1394
|
+
* @classdesc Service to working with mask using handler chain
|
|
1395
|
+
* @extends {BaseHandlerChainService}
|
|
1396
|
+
*/
|
|
1397
|
+
export declare class MaskService extends BaseHandlerChainService {
|
|
1398
|
+
/* Excluded from this release type: requestType */
|
|
1399
|
+
/**
|
|
1400
|
+
* @description Method to show body mask on the page
|
|
1401
|
+
* @param {MaskSettings} settings - mask settings {@link MaskSettings}
|
|
1402
|
+
*/
|
|
1403
|
+
showBodyMask: (settings?: MaskSettings) => Promise<void>;
|
|
1404
|
+
/**
|
|
1405
|
+
* @description Method to hide body mask
|
|
1406
|
+
*/
|
|
1407
|
+
hideBodyMask: () => Promise<void>;
|
|
1408
|
+
}
|
|
1409
|
+
|
|
1410
|
+
/**
|
|
1411
|
+
* @public
|
|
1412
|
+
* @description Settings for displaying mask.
|
|
1413
|
+
* @property {number} delay - The duration in milliseconds until which the mask delaying.
|
|
1414
|
+
*/
|
|
1415
|
+
export declare interface MaskSettings {
|
|
1416
|
+
/**
|
|
1417
|
+
* @description The duration in milliseconds until which the mask delaying.
|
|
1418
|
+
*/
|
|
1419
|
+
delay: number;
|
|
1420
|
+
}
|
|
1421
|
+
|
|
1422
|
+
/* Excluded from this release type: MetadataProvider */
|
|
1423
|
+
|
|
1424
|
+
/* Excluded from this release type: MethodInvokeRequest */
|
|
1425
|
+
|
|
1426
|
+
/**
|
|
1427
|
+
* @public
|
|
1428
|
+
*/
|
|
1429
|
+
export declare class Model extends BaseHandlerChainService {
|
|
1430
|
+
private static _instance;
|
|
1431
|
+
private _crtModel;
|
|
1432
|
+
/* Excluded from this release type: requestType */
|
|
1433
|
+
private constructor();
|
|
1434
|
+
private static get instance();
|
|
1435
|
+
private _create;
|
|
1436
|
+
static create(dataSchema: string): Promise<Model>;
|
|
1437
|
+
getSchema(): Promise<unknown>;
|
|
1438
|
+
load(config?: {
|
|
1439
|
+
attributes?: string[] | DataSourceAttribute[];
|
|
1440
|
+
parameters?: DataSourceParameters;
|
|
1441
|
+
loadOptions?: DataSourceLoadOptions;
|
|
1442
|
+
}): Promise<JsonArray>;
|
|
1443
|
+
insert(dto: JsonObject): Promise<DataSourceSaveResult>;
|
|
1444
|
+
update(dto: JsonObject, parameters: DataSourceParameters): Promise<DataSourceSaveResult>;
|
|
1445
|
+
copy(primaryColumnValue: string, data?: JsonObject): Promise<JsonObject>;
|
|
1446
|
+
create(data?: JsonObject): Promise<void>;
|
|
1447
|
+
delete(parameters: DataSourceParameters): Promise<DataSourceSaveResult>;
|
|
1448
|
+
canSave(params: DataSourceCanExecuteOperationPayload): Promise<DataSourceCanExecuteOperationResult>;
|
|
1449
|
+
canDelete(params: DataSourceCanExecuteOperationPayload): Promise<DataSourceCanExecuteOperationResult>;
|
|
1450
|
+
}
|
|
1451
|
+
|
|
1452
|
+
/* Excluded from this release type: ModelInitConfig */
|
|
1453
|
+
|
|
1454
|
+
/* Excluded from this release type: ModelInPageAction */
|
|
1455
|
+
|
|
1456
|
+
/**
|
|
1457
|
+
* @public
|
|
1458
|
+
*/
|
|
1459
|
+
export declare enum ModelParameterType {
|
|
1460
|
+
PrimaryColumnValue = "primaryColumnValue",
|
|
1461
|
+
Filter = "filter",
|
|
1462
|
+
PrimaryDisplayValueFilter = "primaryDisplayValueFilter",
|
|
1463
|
+
Empty = "empty",
|
|
1464
|
+
Never = "never"
|
|
1465
|
+
}
|
|
1466
|
+
|
|
1467
|
+
/**
|
|
1468
|
+
* @public
|
|
1469
|
+
* @description Definition of CrtModule. Use this to register elements in Creatio platform.
|
|
1470
|
+
* @property {Type[]} includes - Array of other CrnModules which are included in current.
|
|
1471
|
+
* 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.
|
|
1474
|
+
* @example
|
|
1475
|
+
* @CrtModule({
|
|
1476
|
+
* viewElements: [AppComponent, UserComponent],
|
|
1477
|
+
* includes: [NotifyModule]
|
|
1478
|
+
* })
|
|
1479
|
+
* @NgModule({
|
|
1480
|
+
* declarations: [AppComponent, UserComponent],
|
|
1481
|
+
* imports: [BrowserModule],
|
|
1482
|
+
* providers: [],
|
|
1483
|
+
* })
|
|
1484
|
+
* export class AppModule {}
|
|
1485
|
+
*/
|
|
1486
|
+
export declare interface ModuleDefinition {
|
|
1487
|
+
/**
|
|
1488
|
+
* @description Array of other CrnModules which are included in current.
|
|
1489
|
+
* This allows easily create chains of CrtModules. Bootstrapping will be done through all module chain
|
|
1490
|
+
*/
|
|
1491
|
+
includes?: Type[];
|
|
1492
|
+
/**
|
|
1493
|
+
* @description Array of user-defined view elements which will be registered
|
|
1494
|
+
* in Creatio platform.
|
|
1495
|
+
*/
|
|
1496
|
+
viewElements?: Type[];
|
|
1497
|
+
/* Excluded from this release type: designTimeViewElements */
|
|
1498
|
+
/* Excluded from this release type: requestHandlers */
|
|
1499
|
+
/* Excluded from this release type: converters */
|
|
1500
|
+
/* Excluded from this release type: handlerChainServices */
|
|
1501
|
+
}
|
|
1502
|
+
|
|
1503
|
+
/* Excluded from this release type: NextHandlerAlreadySpecifiedException */
|
|
1504
|
+
|
|
1505
|
+
/* Excluded from this release type: objectDeepKeys */
|
|
1506
|
+
|
|
1507
|
+
export declare enum OrderDirection {
|
|
1508
|
+
None = 0,
|
|
1509
|
+
Asc = 1,
|
|
1510
|
+
Desc = 2
|
|
1511
|
+
}
|
|
1512
|
+
|
|
1513
|
+
export declare class ParameterExpression extends BaseExpression {
|
|
1514
|
+
readonly expressionType: ExpressionType;
|
|
1515
|
+
readonly value: EntityColumnValue;
|
|
1516
|
+
readonly dataValueType: DataValueType;
|
|
1517
|
+
constructor(config: ParameterExpressionConfig);
|
|
1518
|
+
get parameter(): {
|
|
1519
|
+
value?: EntityColumnValue;
|
|
1520
|
+
arrayValue?: string[];
|
|
1521
|
+
dataValueType: DataValueType;
|
|
1522
|
+
};
|
|
1523
|
+
private _convertStringToBlobArray;
|
|
1524
|
+
private _getParameterValueMetadata;
|
|
1525
|
+
clone(): ParameterExpression;
|
|
1526
|
+
}
|
|
1527
|
+
|
|
1528
|
+
export declare type ParameterExpressionConfig = ExpressionConfig<ParameterExpression> & Pick<ParameterExpression, 'value'>;
|
|
1529
|
+
|
|
1530
|
+
export declare class ParameterQueryColumn extends BaseQueryColumn<ParameterExpression> {
|
|
1531
|
+
constructor(value: EntityColumnValue, dataValueType?: DataValueType);
|
|
1532
|
+
}
|
|
1533
|
+
|
|
1534
|
+
/**
|
|
1535
|
+
* @public
|
|
1536
|
+
*/
|
|
1537
|
+
export declare interface PrimaryDisplayFilterDataSourceParameter extends BaseDataSourceParameter {
|
|
1538
|
+
type: ModelParameterType.PrimaryDisplayValueFilter;
|
|
1539
|
+
value: string;
|
|
1540
|
+
comparisonType: ComparisonType;
|
|
1541
|
+
}
|
|
1542
|
+
|
|
1543
|
+
export declare enum QueryMacrosType {
|
|
1544
|
+
/** Macro type not defined. */
|
|
1545
|
+
None = 0,
|
|
1546
|
+
/** Current user. */
|
|
1547
|
+
CurrentUser = 1,
|
|
1548
|
+
/** Current user contact. */
|
|
1549
|
+
CurrentUserContact = 2,
|
|
1550
|
+
/** Yesterday. */
|
|
1551
|
+
Yesterday = 3,
|
|
1552
|
+
/** Today. */
|
|
1553
|
+
Today = 4,
|
|
1554
|
+
/** Tomorrow. */
|
|
1555
|
+
Tomorrow = 5,
|
|
1556
|
+
/** Previous week. */
|
|
1557
|
+
PreviousWeek = 6,
|
|
1558
|
+
/** This week. */
|
|
1559
|
+
CurrentWeek = 7,
|
|
1560
|
+
/** Next week. */
|
|
1561
|
+
NextWeek = 8,
|
|
1562
|
+
/** Previous month. */
|
|
1563
|
+
PreviousMonth = 9,
|
|
1564
|
+
/** Current month. */
|
|
1565
|
+
CurrentMonth = 10,
|
|
1566
|
+
/** Next month. */
|
|
1567
|
+
NextMonth = 11,
|
|
1568
|
+
/** Previous quarter. */
|
|
1569
|
+
PreviousQuarter = 12,
|
|
1570
|
+
/** Current quarter. */
|
|
1571
|
+
CurrentQuarter = 13,
|
|
1572
|
+
/** Next quarter. */
|
|
1573
|
+
NextQuarter = 14,
|
|
1574
|
+
/** Previous half of the year. */
|
|
1575
|
+
PreviousHalfYear = 15,
|
|
1576
|
+
/** Current half-year. */
|
|
1577
|
+
CurrentHalfYear = 16,
|
|
1578
|
+
/** Next half-year. */
|
|
1579
|
+
NextHalfYear = 17,
|
|
1580
|
+
/** Last year. */
|
|
1581
|
+
PreviousYear = 18,
|
|
1582
|
+
/** This year. */
|
|
1583
|
+
CurrentYear = 19,
|
|
1584
|
+
/** Previous hour. */
|
|
1585
|
+
PreviousHour = 20,
|
|
1586
|
+
/** Current hour. */
|
|
1587
|
+
CurrentHour = 21,
|
|
1588
|
+
/** Next hour. */
|
|
1589
|
+
NextHour = 22,
|
|
1590
|
+
/** Next year. */
|
|
1591
|
+
NextYear = 23,
|
|
1592
|
+
/** Next N Days. */
|
|
1593
|
+
NextNDays = 24,
|
|
1594
|
+
/** Previous N days. */
|
|
1595
|
+
PreviousNDays = 25,
|
|
1596
|
+
/** Next N hours. */
|
|
1597
|
+
NextNHours = 26,
|
|
1598
|
+
/** Previous N hours. */
|
|
1599
|
+
PreviousNHours = 27,
|
|
1600
|
+
/** Primary column. */
|
|
1601
|
+
PrimaryColumn = 34,
|
|
1602
|
+
/** Primary displayed column. */
|
|
1603
|
+
PrimaryDisplayColumn = 35,
|
|
1604
|
+
/** Primary image display column. */
|
|
1605
|
+
PrimaryImageColumn = 36,
|
|
1606
|
+
/** Anniversary today. */
|
|
1607
|
+
DayOfYearToday = 37,
|
|
1608
|
+
/** Anniversary on the date computed as today plus days offset. */
|
|
1609
|
+
DayOfYearTodayPlusDaysOffset = 38,
|
|
1610
|
+
/** Anniversary on the next several days. */
|
|
1611
|
+
NextNDaysOfYear = 39,
|
|
1612
|
+
/** Anniversary on the previous several days. */
|
|
1613
|
+
PreviousNDaysOfYear = 40
|
|
1614
|
+
}
|
|
1615
|
+
|
|
1616
|
+
/* Excluded from this release type: QueryOperationType */
|
|
1617
|
+
|
|
1618
|
+
/**
|
|
1619
|
+
* @public
|
|
1620
|
+
* @description Response for querying of system settings
|
|
1621
|
+
* @extends {BaseResponse}
|
|
1622
|
+
* @property {Record<string, SysSetting>} values - system settings values
|
|
1623
|
+
*/
|
|
1624
|
+
export declare interface QuerySysSettingsResponse extends BaseResponse {
|
|
1625
|
+
/**
|
|
1626
|
+
* @type {Record<string, SysSetting>}
|
|
1627
|
+
* @description system settings values. {@link SysSetting}
|
|
1628
|
+
* @memberof QuerySysSettingsResponse
|
|
1629
|
+
*/
|
|
1630
|
+
values: Record<string, SysSetting>;
|
|
1631
|
+
}
|
|
1632
|
+
|
|
1633
|
+
/* Excluded from this release type: registerHandlerChainServices */
|
|
1634
|
+
|
|
1635
|
+
/**
|
|
1636
|
+
* @public
|
|
1637
|
+
* @description Function allows to register user-defined component as view element in Creatio platform.
|
|
1638
|
+
* @param config - registration config. {@link ViewElementRegistrationConfig}
|
|
1639
|
+
* @example
|
|
1640
|
+
* sdk.registerViewElement({
|
|
1641
|
+
* type: 'usr.Timeline',
|
|
1642
|
+
* selector: 'usr-timeline',
|
|
1643
|
+
* inputs: {
|
|
1644
|
+
* primaryColumnValue: {},
|
|
1645
|
+
* cardSchemaName: {},
|
|
1646
|
+
* entitySchemaName: {}
|
|
1647
|
+
* }
|
|
1648
|
+
* });
|
|
1649
|
+
*/
|
|
1650
|
+
export declare function registerViewElement(config: ViewElementRegistrationConfig): void;
|
|
1651
|
+
|
|
1652
|
+
/* Excluded from this release type: RegistryItemsStore */
|
|
1653
|
+
|
|
1654
|
+
/* Excluded from this release type: RemoveRequestHandlerListener */
|
|
1655
|
+
|
|
1656
|
+
/* Excluded from this release type: RequestHandler */
|
|
1657
|
+
|
|
1658
|
+
/* Excluded from this release type: RequestHandlerCtor */
|
|
1659
|
+
|
|
1660
|
+
/* Excluded from this release type: RequestHandlerFactory */
|
|
1661
|
+
|
|
1662
|
+
/* Excluded from this release type: RequestHandlerMapValue */
|
|
1663
|
+
|
|
1664
|
+
/* Excluded from this release type: RequestHandlerRegistrationConfig */
|
|
1665
|
+
|
|
1666
|
+
/* Excluded from this release type: RequestHandlerRegistryService */
|
|
1667
|
+
|
|
1668
|
+
/* Excluded from this release type: RequestRegistrationConfig */
|
|
1669
|
+
|
|
1670
|
+
/* Excluded from this release type: RequestRegistryService */
|
|
1671
|
+
|
|
1672
|
+
/**
|
|
1673
|
+
* @public
|
|
1674
|
+
* @class RightsService
|
|
1675
|
+
* @classdesc Service to working rights using handler chain
|
|
1676
|
+
* @extends {BaseHandlerChainService}
|
|
1677
|
+
*/
|
|
1678
|
+
export declare class RightsService extends BaseHandlerChainService {
|
|
1679
|
+
/* Excluded from this release type: requestType */
|
|
1680
|
+
/**
|
|
1681
|
+
* @description Method to recognize whether user can execute operation
|
|
1682
|
+
* @param {string} operationName - operation name
|
|
1683
|
+
* @returns `Promise<boolean>`
|
|
1684
|
+
*/
|
|
1685
|
+
getCanExecuteOperation: (operationName: string) => Promise<boolean>;
|
|
1686
|
+
/**
|
|
1687
|
+
* @description Method to recognize whether user can execute operations
|
|
1688
|
+
* @param {string[]} operationNames - operation names
|
|
1689
|
+
* @returns `Promise<boolean[]>`
|
|
1690
|
+
*/
|
|
1691
|
+
getCanExecuteOperations: (operationNames: string[]) => Promise<boolean[]>;
|
|
1692
|
+
}
|
|
1693
|
+
|
|
1694
|
+
/**
|
|
1695
|
+
* @public
|
|
1696
|
+
* @description Response for saving system settings
|
|
1697
|
+
* @extends {BaseResponse}
|
|
1698
|
+
* @property {Record<string, any>} saveResult - saving result
|
|
1699
|
+
* @property {number} rowsAffected - Count of affected rows
|
|
1700
|
+
*/
|
|
1701
|
+
export declare interface SaveSysSettingsResponse extends BaseResponse {
|
|
1702
|
+
/**
|
|
1703
|
+
* @description saving result
|
|
1704
|
+
*/
|
|
1705
|
+
saveResult: Record<string, any>;
|
|
1706
|
+
/**
|
|
1707
|
+
* @description Count of affected rows
|
|
1708
|
+
*/
|
|
1709
|
+
rowsAffected: number;
|
|
1710
|
+
/* Excluded from this release type: nextPrcElReady */
|
|
1711
|
+
}
|
|
1712
|
+
|
|
1713
|
+
/* Excluded from this release type: setDesignTimeViewElementMetadata */
|
|
1714
|
+
|
|
1715
|
+
/* Excluded from this release type: setInterfaceDesignerItemMetadata */
|
|
1716
|
+
|
|
1717
|
+
/* Excluded from this release type: setModuleMetadata */
|
|
1718
|
+
|
|
1719
|
+
/* Excluded from this release type: setRequestHandlerMetadata */
|
|
1720
|
+
|
|
1721
|
+
/* Excluded from this release type: setViewElementMetadata */
|
|
1722
|
+
|
|
1723
|
+
export declare abstract class SingleFilter extends BaseFilter {
|
|
1724
|
+
readonly comparisonType: ComparisonType;
|
|
1725
|
+
readonly leftExpression: BaseExpression;
|
|
1726
|
+
protected constructor(filterType: FilterType, comparisonType: ComparisonType, leftExpression: BaseExpression);
|
|
1727
|
+
}
|
|
1728
|
+
|
|
1729
|
+
/**
|
|
1730
|
+
* @public
|
|
1731
|
+
*/
|
|
1732
|
+
export declare interface SortColumnOptions {
|
|
1733
|
+
columnName: string;
|
|
1734
|
+
direction: SortDirection;
|
|
1735
|
+
}
|
|
1736
|
+
|
|
1737
|
+
/**
|
|
1738
|
+
* @public
|
|
1739
|
+
* @description sorting direction
|
|
1740
|
+
*/
|
|
1741
|
+
export declare type SortDirection = 'asc' | 'desc' | 'none';
|
|
1742
|
+
|
|
1743
|
+
export declare class SubQueryColumn extends BaseQueryColumn<SubQueryExpression> {
|
|
1744
|
+
constructor(columnPath: string, subFilters?: FilterGroup);
|
|
1745
|
+
}
|
|
1746
|
+
|
|
1747
|
+
export declare class SubQueryExpression extends BaseExpression {
|
|
1748
|
+
readonly expressionType: ExpressionType;
|
|
1749
|
+
columnPath: string;
|
|
1750
|
+
readonly subFilters: FilterGroup;
|
|
1751
|
+
readonly subOrderDirection?: number;
|
|
1752
|
+
readonly subOrderColumn?: string;
|
|
1753
|
+
constructor(config: SubQueryExpressionConfig);
|
|
1754
|
+
clone(): SubQueryExpression;
|
|
1755
|
+
}
|
|
1756
|
+
|
|
1757
|
+
export declare type SubQueryExpressionConfig = ExpressionConfig<SubQueryExpression> & Pick<SubQueryExpression, 'columnPath'>;
|
|
1758
|
+
|
|
1759
|
+
/* Excluded from this release type: Subscriber */
|
|
1760
|
+
|
|
1761
|
+
/* Excluded from this release type: Subscription */
|
|
1762
|
+
|
|
1763
|
+
export declare interface SysImageValue extends LookupValue {
|
|
1764
|
+
url?: string;
|
|
1765
|
+
}
|
|
1766
|
+
|
|
1767
|
+
/**
|
|
1768
|
+
* @public
|
|
1769
|
+
* @class SysSetting
|
|
1770
|
+
* @classdesc Class contains info related system setting
|
|
1771
|
+
* @property {Guid} id - id of system setting.
|
|
1772
|
+
* @property {string} name - name of system setting.
|
|
1773
|
+
* @property {string} code - code of system setting.
|
|
1774
|
+
* @property {isCacheable} boolean - indicator whether system setting is cacheable
|
|
1775
|
+
* @property {any} value - value of system setting
|
|
1776
|
+
* @property {DataValueType} dataValueType - system setting {@link DataValueType}
|
|
1777
|
+
*/
|
|
1778
|
+
export declare class SysSetting {
|
|
1779
|
+
/**
|
|
1780
|
+
* @description id of system setting
|
|
1781
|
+
*/
|
|
1782
|
+
id?: Guid;
|
|
1783
|
+
/**
|
|
1784
|
+
* @description name of system setting
|
|
1785
|
+
*/
|
|
1786
|
+
name?: string;
|
|
1787
|
+
/**
|
|
1788
|
+
* @description code of system setting
|
|
1789
|
+
*/
|
|
1790
|
+
code?: string;
|
|
1791
|
+
/**
|
|
1792
|
+
* @description indicator whether system setting is cacheable
|
|
1793
|
+
*/
|
|
1794
|
+
isCacheable?: boolean;
|
|
1795
|
+
/**
|
|
1796
|
+
* @description value of system setting
|
|
1797
|
+
*/
|
|
1798
|
+
value?: any;
|
|
1799
|
+
/**
|
|
1800
|
+
* @description system setting {@link DataValueType}
|
|
1801
|
+
*/
|
|
1802
|
+
dataValueType?: DataValueType;
|
|
1803
|
+
}
|
|
1804
|
+
|
|
1805
|
+
/**
|
|
1806
|
+
* @public
|
|
1807
|
+
* @class SysSettingsService
|
|
1808
|
+
* @classdesc Service to working with system settings using handler chain
|
|
1809
|
+
* @extends {BaseHandlerChainService}
|
|
1810
|
+
*/
|
|
1811
|
+
export declare class SysSettingsService extends BaseHandlerChainService {
|
|
1812
|
+
/* Excluded from this release type: requestType */
|
|
1813
|
+
/**
|
|
1814
|
+
* @description Method to get system settings by codes
|
|
1815
|
+
* @param {string[]} sysSettingCodes - system settings codes
|
|
1816
|
+
* @returns `Promise<QuerySysSettingsResponse>` {@link QuerySysSettingsResponse}
|
|
1817
|
+
*/
|
|
1818
|
+
getByCodes: (sysSettingCodes: string[]) => Promise<QuerySysSettingsResponse>;
|
|
1819
|
+
/**
|
|
1820
|
+
* @description Method to get system setting by code
|
|
1821
|
+
* @param {string} sysSettingCode - system settings code
|
|
1822
|
+
* @returns `Promise<SysSetting>`
|
|
1823
|
+
*/
|
|
1824
|
+
getByCode: (sysSettingCode: string) => Promise<SysSetting>;
|
|
1825
|
+
/**
|
|
1826
|
+
* @description Method to update system setting
|
|
1827
|
+
* @param {SysSettingValue} sysSettingValue - {@link SysSettingValue}
|
|
1828
|
+
* @returns `Promise<SaveSysSettingsResponse>` {@link SaveSysSettingsResponse}
|
|
1829
|
+
*/
|
|
1830
|
+
update: (sysSettingValue: SysSettingValue) => Promise<SaveSysSettingsResponse>;
|
|
1831
|
+
/**
|
|
1832
|
+
* @description Method to bulk update system settings
|
|
1833
|
+
* @param {SysSettingValue[]} sysSettingValues - system settings values {@link SysSettingValue}
|
|
1834
|
+
* @returns `Promise<SaveSysSettingsResponse>` {@link SaveSysSettingsResponse}
|
|
1835
|
+
*/
|
|
1836
|
+
updateMany: (sysSettingValues: SysSettingValue[]) => Promise<SaveSysSettingsResponse>;
|
|
1837
|
+
}
|
|
1838
|
+
|
|
1839
|
+
/**
|
|
1840
|
+
* @public
|
|
1841
|
+
* @class SysSettingValue
|
|
1842
|
+
* @classdesc Shape to describe system setting value
|
|
1843
|
+
* @property {string} code - code of system setting
|
|
1844
|
+
* @property {any} value - value of system setting
|
|
1845
|
+
*/
|
|
1846
|
+
export declare class SysSettingValue {
|
|
1847
|
+
/**
|
|
1848
|
+
* @description code of system setting.
|
|
1849
|
+
*/
|
|
1850
|
+
code?: string;
|
|
1851
|
+
/**
|
|
1852
|
+
* @description value of system setting
|
|
1853
|
+
*/
|
|
1854
|
+
value?: any;
|
|
1855
|
+
}
|
|
1856
|
+
|
|
1857
|
+
/**
|
|
1858
|
+
* @public
|
|
1859
|
+
* @description Shape of system values
|
|
1860
|
+
* @property {LookupValue} maintainer - maintainer
|
|
1861
|
+
* @property {number} moneyDisplayPrecision - precision used for displaying money
|
|
1862
|
+
* @property {number} maxEntitySchemaNameLength - max length of entity schema
|
|
1863
|
+
* @property {LookupValue} workspace - workplace info
|
|
1864
|
+
* @property {LookupValue} userAccount - user info
|
|
1865
|
+
* @property {string} userTimezoneCode - code of user's timezone
|
|
1866
|
+
* @property {number} userTimezoneOffset - offset for user timezone
|
|
1867
|
+
* @property {LookupValue} userContact - user contact info
|
|
1868
|
+
* @property {LookupValueWithCode} primaryLanguage - primary language
|
|
1869
|
+
* @property {LookupValue} primaryCulture - primary culture
|
|
1870
|
+
* @property {LookupValue} userCulture - user culture
|
|
1871
|
+
*/
|
|
1872
|
+
export declare interface SysValues {
|
|
1873
|
+
/**
|
|
1874
|
+
* @description maintainer
|
|
1875
|
+
*/
|
|
1876
|
+
maintainer: LookupValue;
|
|
1877
|
+
/**
|
|
1878
|
+
* @description precision used for displaying money
|
|
1879
|
+
*/
|
|
1880
|
+
moneyDisplayPrecision: number;
|
|
1881
|
+
/**
|
|
1882
|
+
* @description max length of entity schema
|
|
1883
|
+
*/
|
|
1884
|
+
maxEntitySchemaNameLength: number;
|
|
1885
|
+
/**
|
|
1886
|
+
* @description workplace info
|
|
1887
|
+
*/
|
|
1888
|
+
workspace: LookupValue;
|
|
1889
|
+
/**
|
|
1890
|
+
* @description user info
|
|
1891
|
+
*/
|
|
1892
|
+
userAccount: LookupValue;
|
|
1893
|
+
/**
|
|
1894
|
+
* @description code of user's timezone
|
|
1895
|
+
*/
|
|
1896
|
+
userTimezoneCode: string;
|
|
1897
|
+
/**
|
|
1898
|
+
* @description offset for user timezone
|
|
1899
|
+
*/
|
|
1900
|
+
userTimezoneOffset: number;
|
|
1901
|
+
/**
|
|
1902
|
+
* @description user contact info
|
|
1903
|
+
*/
|
|
1904
|
+
userContact: LookupValue;
|
|
1905
|
+
/**
|
|
1906
|
+
* @description primary language
|
|
1907
|
+
*/
|
|
1908
|
+
primaryLanguage: LookupValueWithCode;
|
|
1909
|
+
/**
|
|
1910
|
+
* @description primary culture
|
|
1911
|
+
*/
|
|
1912
|
+
primaryCulture: LookupValue;
|
|
1913
|
+
/**
|
|
1914
|
+
* @description user culture
|
|
1915
|
+
*/
|
|
1916
|
+
userCulture: LookupValue;
|
|
1917
|
+
}
|
|
1918
|
+
|
|
1919
|
+
/**
|
|
1920
|
+
* @public
|
|
1921
|
+
* @classdesc
|
|
1922
|
+
* @class SysValuesService Service to working with system values using handler chain
|
|
1923
|
+
* @extends {BaseHandlerChainService}
|
|
1924
|
+
*/
|
|
1925
|
+
export declare class SysValuesService extends BaseHandlerChainService {
|
|
1926
|
+
/* Excluded from this release type: requestType */
|
|
1927
|
+
/**
|
|
1928
|
+
* @description Method to load system values
|
|
1929
|
+
* @returns `Promise<SysValues>` {@link SysValues}
|
|
1930
|
+
*/
|
|
1931
|
+
loadSysValues: () => Promise<SysValues>;
|
|
1932
|
+
}
|
|
1933
|
+
|
|
1934
|
+
/* Excluded from this release type: toAggregationType */
|
|
1935
|
+
|
|
1936
|
+
/* Excluded from this release type: ToolbarViewElementConfig */
|
|
1937
|
+
|
|
1938
|
+
/* Excluded from this release type: ToolbarViewElementConfigType */
|
|
1939
|
+
|
|
1940
|
+
/* Excluded from this release type: toPascalCase */
|
|
1941
|
+
|
|
1942
|
+
/**
|
|
1943
|
+
* @public
|
|
1944
|
+
* @description Shape for generic type.
|
|
1945
|
+
*/
|
|
1946
|
+
export declare type Type<T = any> = new (...args: any[]) => T;
|
|
1947
|
+
|
|
1948
|
+
/* Excluded from this release type: UnsubscribeListener */
|
|
1949
|
+
|
|
1950
|
+
/* Excluded from this release type: UpdateQuery */
|
|
1951
|
+
|
|
1952
|
+
export declare class ValidationUtilities {
|
|
1953
|
+
static checkArgumentEmpty<T>(argumentName: string, argumentValue: T | null | undefined): asserts argumentValue is T;
|
|
1954
|
+
static checkArrayEmpty<T>(argumentName: string, argumentValue: ArrayLike<T>): void;
|
|
1955
|
+
static checkStringIsNotEmpty(argumentName: string, argumentValue: string): string;
|
|
1956
|
+
static checkArgumentOutOfRange(argumentName: string, argumentValue: number, range: {
|
|
1957
|
+
begin?: number;
|
|
1958
|
+
end?: number;
|
|
1959
|
+
}): void;
|
|
1960
|
+
}
|
|
1961
|
+
|
|
1962
|
+
/* Excluded from this release type: ValidatorConfig */
|
|
1963
|
+
|
|
1964
|
+
/* Excluded from this release type: ValidatorParameters */
|
|
1965
|
+
|
|
1966
|
+
/* Excluded from this release type: ValidatorSchemaConfig */
|
|
1967
|
+
|
|
1968
|
+
/**
|
|
1969
|
+
* @public
|
|
1970
|
+
* @description - base response with returned value
|
|
1971
|
+
* @extends {BaseResponse} {@link BaseResponse}
|
|
1972
|
+
* @property {T} value - returned value
|
|
1973
|
+
* @template T
|
|
1974
|
+
*/
|
|
1975
|
+
export declare interface ValueResponse<T> extends BaseResponse {
|
|
1976
|
+
value: T;
|
|
1977
|
+
}
|
|
1978
|
+
|
|
1979
|
+
/* Excluded from this release type: ViewElementDataGroupType */
|
|
1980
|
+
|
|
1981
|
+
/* Excluded from this release type: ViewElementGroupType */
|
|
1982
|
+
|
|
1983
|
+
/* Excluded from this release type: ViewElementMetadata */
|
|
1984
|
+
|
|
1985
|
+
/**
|
|
1986
|
+
* @public
|
|
1987
|
+
* @description Config to specify view element options.
|
|
1988
|
+
* @extends {BaseViewElementRegistrationConfig} {@link BaseViewElementRegistrationConfig}
|
|
1989
|
+
* @property {string} selector - view element tag selector; View element appears in DOM with this selector.
|
|
1990
|
+
*
|
|
1991
|
+
* @example
|
|
1992
|
+
* ```
|
|
1993
|
+
* @CrtViewElement({
|
|
1994
|
+
* type: 'usr.Example',
|
|
1995
|
+
* selector: 'usr-example',
|
|
1996
|
+
* })
|
|
1997
|
+
* ```
|
|
1998
|
+
*/
|
|
1999
|
+
export declare interface ViewElementRegistrationConfig extends BaseViewElementRegistrationConfig {
|
|
2000
|
+
/**
|
|
2001
|
+
* @description view element tag selector; View element appears in DOM with this selector.
|
|
2002
|
+
*/
|
|
2003
|
+
selector: string;
|
|
2004
|
+
}
|
|
2005
|
+
|
|
2006
|
+
/* Excluded from this release type: ViewElementRegistry */
|
|
2007
|
+
|
|
2008
|
+
/* Excluded from this release type: ViewElementRegistryItem */
|
|
2009
|
+
|
|
2010
|
+
/* Excluded from this release type: viewElementRegistryKey */
|
|
2011
|
+
|
|
2012
|
+
/**
|
|
2013
|
+
* @public
|
|
2014
|
+
* @description Interface describes view model context.
|
|
2015
|
+
* Could contain any pair of key-value
|
|
2016
|
+
*/
|
|
2017
|
+
export declare interface ViewModelContext {
|
|
2018
|
+
[key: string]: any;
|
|
2019
|
+
}
|
|
2020
|
+
|
|
2021
|
+
export declare class WindowFunctionColumn extends BaseQueryColumn<WindowFunctionExpression> {
|
|
2022
|
+
constructor(functionArgument: AggregationFunctionExpression);
|
|
2023
|
+
}
|
|
2024
|
+
|
|
2025
|
+
export declare class WindowFunctionExpression extends ArgumentFunctionExpression {
|
|
2026
|
+
readonly functionType: FunctionType;
|
|
2027
|
+
readonly functionArgument: AggregationFunctionExpression;
|
|
2028
|
+
constructor(config: WindowFunctionExpressionConfig);
|
|
2029
|
+
clone(): WindowFunctionExpression;
|
|
2030
|
+
}
|
|
2031
|
+
|
|
2032
|
+
export declare type WindowFunctionExpressionConfig = ArgumentFunctionExpressionConfig<WindowFunctionExpression>;
|
|
2033
|
+
|
|
2034
|
+
export { }
|