@creatio-devkit/common 0.809.0 → 0.811.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 +6 -0
- package/esm2020/lib/base-exports.mjs +2 -0
- package/esm2020/lib/external/functions/aggregation-adapter.mjs +4 -4
- package/esm2020/lib/external/functions/date-part-type-adapter.mjs +2 -2
- package/esm2020/lib/external/functions/function-type-adapter.mjs +2 -2
- package/esm2020/lib/external/functions/order-direction-adapter.mjs +2 -2
- package/esm2020/lib/external/models/attribute-value-config.mjs +1 -1
- package/esm2020/lib/external/models/date-time/grouped-date-value.mjs +1 -1
- package/esm2020/lib/external/models/file-value.model.mjs +1 -1
- package/esm2020/lib/index.mjs +2 -7
- package/esm2020/lib/internal/decorators/design-time-view-element/design-time-view-element.decorator.mjs +2 -1
- package/esm2020/lib/internal/decorators/request/request.decorator.mjs +1 -1
- package/esm2020/lib/internal/enums/designer-group-type.enum.mjs +3 -1
- package/esm2020/lib/internal/enums/handler-source-type.enum.mjs +2 -1
- package/esm2020/lib/internal/enums/index.mjs +3 -7
- package/esm2020/lib/internal/enums/view-element-group-type.enum.mjs +2 -1
- package/esm2020/lib/internal/models/converter/converter-registry-item.mjs +1 -1
- package/esm2020/lib/internal/models/design-time-view-element-registry-item.mjs +1 -1
- package/esm2020/lib/internal/models/handler-chain-service-registry-item.mjs +1 -1
- package/esm2020/lib/internal/models/index.mjs +1 -2
- package/esm2020/lib/internal/models/injection-context/injection-context.mjs +1 -1
- package/esm2020/lib/internal/models/interface-designer-item/base-interface-designer-item-registration-config.mjs +1 -1
- package/esm2020/lib/internal/models/interface-designer-item/interface-designer-item-registration-config.model.mjs +2 -1
- package/esm2020/lib/internal/models/interface-designer-item/toolbar-view-element-config.mjs +1 -1
- package/esm2020/lib/internal/models/interface-designer-registry-item.mjs +1 -1
- package/esm2020/lib/internal/models/internal-interface-designer-item-registration-config.model.mjs +1 -1
- package/esm2020/lib/internal/models/request/method-invoke-request.mjs +4 -4
- package/esm2020/lib/internal/models/request-handler/handler-config.mjs +1 -1
- package/esm2020/lib/internal/models/request-handler/handler-source.mjs +1 -1
- package/esm2020/lib/internal/models/request-handler/request-handler-factory.mjs +1 -1
- package/esm2020/lib/internal/models/request-handler/request-handler-registration-config.model.mjs +1 -1
- package/esm2020/lib/internal/models/validator/validator-registry-item.mjs +1 -1
- package/esm2020/lib/internal/models/view-element/angular-view-element-registration-config.model.mjs +1 -1
- package/esm2020/lib/internal/models/view-element-registry-item.mjs +1 -1
- package/esm2020/lib/internal/services/base-registry/base-registry.mjs +10 -4
- package/esm2020/lib/internal/services/bootstrap-notifier/bootstrap-notifier.mjs +5 -4
- package/esm2020/lib/internal/services/design-time-view-element-registry/design-time-view-element-registry.mjs +4 -3
- package/esm2020/lib/internal/services/element-registration-checker/element-registration-checker.mjs +8 -1
- package/esm2020/lib/internal/services/global-converters-registry/converter-registry.mjs +4 -3
- package/esm2020/lib/internal/services/handler-chain-services-registry/handler-chain-services-registry.mjs +3 -3
- package/esm2020/lib/internal/services/interface-designer-item-registry/interface-designer-item-registry.mjs +4 -3
- package/esm2020/lib/internal/services/pkg-topology-registry/pkg-topology-registry.mjs +3 -3
- package/esm2020/lib/internal/services/remote-entries-registry/remote-entries-registry.mjs +3 -3
- package/esm2020/lib/internal/services/request-handler-registry/request-handler-registry.service.mjs +17 -1
- package/esm2020/lib/internal/services/request-registry/request-registry.service.mjs +1 -1
- package/esm2020/lib/internal/services/validator-registry/validator-registry.mjs +4 -3
- package/esm2020/lib/internal/services/view-element-registry/view-element-registry.mjs +4 -3
- package/esm2020/lib/internal/utils/handlers-order-comparer.mjs +1 -1
- package/esm2020/lib/internal/utils/instantiate.mjs +8 -1
- package/esm2020/lib/internal/utils/localization-utils.mjs +1 -1
- package/esm2020/lib/internal/utils/metadata-utils.mjs +1 -1
- package/esm2020/lib/public/decorators/converter/converter.decorator.mjs +1 -1
- package/esm2020/lib/public/decorators/interface-designer-item/interface-designer-item.decorator.mjs +1 -2
- package/esm2020/lib/public/decorators/module/module.decorator.mjs +1 -1
- package/esm2020/lib/public/decorators/request-handler/request-handler.decorator.mjs +6 -2
- package/esm2020/lib/public/decorators/validator/validator.decorator.mjs +6 -2
- package/esm2020/lib/public/decorators/view-element/view-element.decorator.mjs +1 -1
- package/esm2020/lib/public/enums/data-source-load-type.enum.mjs +10 -0
- package/esm2020/lib/public/enums/index.mjs +2 -4
- package/esm2020/lib/public/functions/bootstrap-crt-module-handler-chain-services.mjs +1 -1
- package/esm2020/lib/public/functions/bootstrap-crt-module.mjs +27 -7
- package/esm2020/lib/public/functions/register-angular-view-element.mjs +1 -1
- package/esm2020/lib/public/handlers/base-request-handler.mjs +4 -4
- package/esm2020/lib/public/models/converter.model.mjs +1 -1
- package/esm2020/lib/public/models/entity.model.mjs +1 -1
- package/esm2020/lib/public/models/image-value.model.mjs +1 -1
- package/esm2020/lib/public/models/index.mjs +1 -4
- package/esm2020/lib/public/models/interface-designer-item/interface-designer-item-definition.mjs +1 -1
- package/esm2020/lib/public/models/module-definition.mjs +1 -1
- package/esm2020/lib/public/models/request/data-source-request.mjs +4 -4
- package/esm2020/lib/public/models/request/index.mjs +1 -2
- package/esm2020/lib/public/models/request-handler/index.mjs +1 -2
- package/esm2020/lib/public/models/view-element/base-view-element-registration-config.mjs +1 -1
- package/esm2020/lib/public/models/view-element/index.mjs +2 -1
- package/esm2020/lib/public/models/view-element/view-element-reuse-strategy.enum.mjs +15 -0
- package/esm2020/lib/public/services/crt-zone/crt-zone.service.mjs +22 -0
- package/esm2020/lib/public/services/crt-zone/index.mjs +2 -0
- package/esm2020/lib/public/services/handler-chain/handler-chain.service.mjs +19 -7
- package/esm2020/lib/public/services/handler-chain/internal-handler-chain.mjs +33 -2
- package/esm2020/lib/public/services/http-client/http-client.service.mjs +16 -6
- package/esm2020/lib/public/services/index.mjs +2 -1
- package/esm2020/lib/public/services/mask-service/mask.service.mjs +1 -1
- package/esm2020/lib/public/services/mask-service/schema-view-mask.request.mjs +2 -2
- package/esm2020/lib/public/services/model/index.mjs +1 -12
- package/esm2020/lib/public/services/model/model.mjs +18 -1
- package/esm2020/lib/public/services/sys-settings/sys-setting.model.mjs +3 -3
- package/esm2020/lib/public/services/sys-settings/sys-settings.service.mjs +2 -1
- package/esm2020/lib/public/services/sys-values/sys-values.mjs +1 -1
- package/esm2020/lib/public/types/index.mjs +2 -13
- package/esm2020/lib/public/types/teardown-logic.type.mjs +2 -0
- package/fesm2015/creatio-devkit-common.mjs +294 -1439
- package/fesm2015/creatio-devkit-common.mjs.map +1 -1
- package/fesm2020/creatio-devkit-common.mjs +293 -1455
- package/fesm2020/creatio-devkit-common.mjs.map +1 -1
- package/index.d.ts +375 -940
- package/package.json +6 -6
- package/esm2020/lib/external/utils/date-utils.mjs +0 -29
- package/esm2020/lib/external/utils/index.mjs +0 -2
- package/esm2020/lib/internal/enums/data-schema-attribute-type.enum.mjs +0 -21
- package/esm2020/lib/internal/enums/data-schema-type.enum.mjs +0 -10
- package/esm2020/lib/internal/enums/data-source-scope.enum.mjs +0 -9
- package/esm2020/lib/internal/enums/default-value-source.enum.mjs +0 -12
- package/esm2020/lib/internal/esq/data-model/index.mjs +0 -3
- package/esm2020/lib/internal/esq/data-model/metadata-provider/metadata-provider.mjs +0 -2
- package/esm2020/lib/internal/esq/data-model/queries/base-filterable-query.mjs +0 -15
- package/esm2020/lib/internal/esq/data-model/queries/base-query.mjs +0 -20
- package/esm2020/lib/internal/esq/data-model/queries/delete-query.mjs +0 -12
- package/esm2020/lib/internal/esq/data-model/queries/entity-schema-query.mjs +0 -211
- package/esm2020/lib/internal/esq/data-model/queries/index.mjs +0 -9
- package/esm2020/lib/internal/esq/data-model/queries/insert-query.mjs +0 -37
- package/esm2020/lib/internal/esq/data-model/queries/query-operation-type.mjs +0 -15
- package/esm2020/lib/internal/esq/data-model/queries/select-localization-query.mjs +0 -7
- package/esm2020/lib/internal/esq/data-model/queries/update-query.mjs +0 -43
- package/esm2020/lib/internal/esq/index.mjs +0 -2
- package/esm2020/lib/internal/model/data-schema/data-schema-attribute-aggregation-config.model.mjs +0 -2
- package/esm2020/lib/internal/model/data-schema/data-schema-attribute-function-config.model.mjs +0 -2
- package/esm2020/lib/internal/model/data-schema/data-schema-validator-config.model.mjs +0 -2
- package/esm2020/lib/internal/model/data-schema/index.mjs +0 -4
- package/esm2020/lib/internal/model/data-source-config.mjs +0 -2
- package/esm2020/lib/internal/model/index.mjs +0 -3
- package/esm2020/lib/internal/models/default-value-schema.mjs +0 -2
- package/esm2020/lib/public/enums/aggregation-function.enum.mjs +0 -18
- package/esm2020/lib/public/enums/aggregation-type.enum.mjs +0 -18
- package/esm2020/lib/public/enums/data-value-type.enum.mjs +0 -48
- package/esm2020/lib/public/esq/data-model/columns/arithmetic/arithmetic-query-column.mjs +0 -9
- package/esm2020/lib/public/esq/data-model/columns/base-query-column.mjs +0 -45
- package/esm2020/lib/public/esq/data-model/columns/entity-column/entity-query-column.mjs +0 -9
- package/esm2020/lib/public/esq/data-model/columns/functions/aggregation-function-column.mjs +0 -13
- package/esm2020/lib/public/esq/data-model/columns/functions/date-part-function-column.mjs +0 -17
- package/esm2020/lib/public/esq/data-model/columns/functions/length-function-column.mjs +0 -9
- package/esm2020/lib/public/esq/data-model/columns/functions/macros-function-column.mjs +0 -9
- package/esm2020/lib/public/esq/data-model/columns/functions/window-function-column.mjs +0 -9
- package/esm2020/lib/public/esq/data-model/columns/index.mjs +0 -12
- package/esm2020/lib/public/esq/data-model/columns/parameters/parameter-query-column.mjs +0 -9
- package/esm2020/lib/public/esq/data-model/columns/sub-queries/aggregation-sub-query-column.mjs +0 -15
- package/esm2020/lib/public/esq/data-model/columns/sub-queries/sub-query-column.mjs +0 -9
- package/esm2020/lib/public/esq/data-model/enums/aggregation-eval-type.enum.mjs +0 -10
- package/esm2020/lib/public/esq/data-model/enums/arithmetic-operation.enum.mjs +0 -12
- package/esm2020/lib/public/esq/data-model/enums/comparison-type.enum.mjs +0 -21
- package/esm2020/lib/public/esq/data-model/enums/date-part-type.enum.mjs +0 -20
- package/esm2020/lib/public/esq/data-model/enums/expression-type.enum.mjs +0 -9
- package/esm2020/lib/public/esq/data-model/enums/filter-type.enum.mjs +0 -11
- package/esm2020/lib/public/esq/data-model/enums/function-type.enum.mjs +0 -19
- package/esm2020/lib/public/esq/data-model/enums/index.mjs +0 -12
- package/esm2020/lib/public/esq/data-model/enums/logical-operator-type.enum.mjs +0 -6
- package/esm2020/lib/public/esq/data-model/enums/order-direction.enum.mjs +0 -7
- package/esm2020/lib/public/esq/data-model/enums/query-macros-type.enum.mjs +0 -76
- package/esm2020/lib/public/esq/data-model/expressions/arithmetic/arithmetic-expression.mjs +0 -15
- package/esm2020/lib/public/esq/data-model/expressions/arithmetic/index.mjs +0 -2
- package/esm2020/lib/public/esq/data-model/expressions/base-expression.mjs +0 -7
- package/esm2020/lib/public/esq/data-model/expressions/columns/column-expression.mjs +0 -13
- package/esm2020/lib/public/esq/data-model/expressions/columns/index.mjs +0 -2
- package/esm2020/lib/public/esq/data-model/expressions/functions/aggregation-function-expression.mjs +0 -14
- package/esm2020/lib/public/esq/data-model/expressions/functions/argument-function-expression.mjs +0 -8
- package/esm2020/lib/public/esq/data-model/expressions/functions/date-part-function-expression.mjs +0 -13
- package/esm2020/lib/public/esq/data-model/expressions/functions/function-expression.mjs +0 -9
- package/esm2020/lib/public/esq/data-model/expressions/functions/index.mjs +0 -8
- package/esm2020/lib/public/esq/data-model/expressions/functions/length-function-expression.mjs +0 -12
- package/esm2020/lib/public/esq/data-model/expressions/functions/macros-function-expression.mjs +0 -13
- package/esm2020/lib/public/esq/data-model/expressions/functions/window-function-expression.mjs +0 -12
- package/esm2020/lib/public/esq/data-model/expressions/index.mjs +0 -8
- package/esm2020/lib/public/esq/data-model/expressions/mocks/expression.mock.mjs +0 -17
- package/esm2020/lib/public/esq/data-model/expressions/mocks/index.mjs +0 -2
- package/esm2020/lib/public/esq/data-model/expressions/parameters/index.mjs +0 -2
- package/esm2020/lib/public/esq/data-model/expressions/parameters/parameter-expression.mjs +0 -87
- package/esm2020/lib/public/esq/data-model/expressions/sub-queries/aggregation-sub-query-expression.mjs +0 -11
- package/esm2020/lib/public/esq/data-model/expressions/sub-queries/index.mjs +0 -3
- package/esm2020/lib/public/esq/data-model/expressions/sub-queries/sub-query-expression.mjs +0 -17
- package/esm2020/lib/public/esq/data-model/filters/base-filter.mjs +0 -8
- package/esm2020/lib/public/esq/data-model/filters/between-filter.mjs +0 -13
- package/esm2020/lib/public/esq/data-model/filters/compare-filter.mjs +0 -12
- package/esm2020/lib/public/esq/data-model/filters/exists-filter.mjs +0 -13
- package/esm2020/lib/public/esq/data-model/filters/filter-group.mjs +0 -105
- package/esm2020/lib/public/esq/data-model/filters/in-filter.mjs +0 -12
- package/esm2020/lib/public/esq/data-model/filters/index.mjs +0 -10
- package/esm2020/lib/public/esq/data-model/filters/isnull-filter.mjs +0 -21
- package/esm2020/lib/public/esq/data-model/filters/mocks/filter.mock.mjs +0 -16
- package/esm2020/lib/public/esq/data-model/filters/mocks/index.mjs +0 -2
- package/esm2020/lib/public/esq/data-model/filters/single-filter.mjs +0 -9
- package/esm2020/lib/public/esq/data-model/index.mjs +0 -5
- package/esm2020/lib/public/esq/index.mjs +0 -2
- package/esm2020/lib/public/exceptions/argument-empty-exception.mjs +0 -7
- package/esm2020/lib/public/exceptions/argument-out-of-range-exception.mjs +0 -7
- package/esm2020/lib/public/exceptions/index.mjs +0 -6
- package/esm2020/lib/public/exceptions/item-not-found-exception.mjs +0 -7
- package/esm2020/lib/public/exceptions/next-handler-already-specified-exception.mjs +0 -9
- package/esm2020/lib/public/exceptions/validation-utilities.mjs +0 -32
- package/esm2020/lib/public/models/data-source/data-source-insert-result.model.mjs +0 -2
- package/esm2020/lib/public/models/data-source/data-source-save-result.model.mjs +0 -2
- package/esm2020/lib/public/models/data-source/index.mjs +0 -3
- package/esm2020/lib/public/models/lookup-value.model.mjs +0 -2
- package/esm2020/lib/public/models/request/base-request.mjs +0 -9
- package/esm2020/lib/public/models/request-handler/request-handler.mjs +0 -2
- package/esm2020/lib/public/models/view-model-context.mjs +0 -2
- package/esm2020/lib/public/services/model/data-schema-attribute.mjs +0 -2
- package/esm2020/lib/public/services/model/data-schema.mjs +0 -2
- package/esm2020/lib/public/services/model/data-source-aggregation-config.mjs +0 -2
- package/esm2020/lib/public/services/model/data-source-attribute.mjs +0 -2
- package/esm2020/lib/public/services/model/data-source-can-execute-operation.mjs +0 -2
- package/esm2020/lib/public/services/model/data-source-function-config.mjs +0 -2
- package/esm2020/lib/public/services/model/data-source-paging-config.mjs +0 -2
- package/esm2020/lib/public/services/model/data-source-parameter.mjs +0 -12
- package/esm2020/lib/public/services/model/data-source-sorting-config.mjs +0 -2
- package/esm2020/lib/public/services/model/model-load-options.mjs +0 -2
- package/esm2020/lib/public/types/abstract-type.mjs +0 -2
- package/esm2020/lib/public/types/aggregation-eval.type.mjs +0 -2
- package/esm2020/lib/public/types/date-part.type.mjs +0 -2
- package/esm2020/lib/public/types/entity-column-value.mjs +0 -2
- package/esm2020/lib/public/types/function.type.mjs +0 -2
- package/esm2020/lib/public/types/guid.type.mjs +0 -53
- package/esm2020/lib/public/types/json-data.type.mjs +0 -2
- package/esm2020/lib/public/types/localizable-string.type.mjs +0 -2
- package/esm2020/lib/public/types/localize-fn.type.mjs +0 -2
- package/esm2020/lib/public/types/resolve-dependency-fn.type.mjs +0 -2
- package/esm2020/lib/public/types/sort-direction.type.mjs +0 -2
- package/esm2020/lib/public/types/type.mjs +0 -2
|
@@ -1,973 +1,28 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { ɵAggregationType, ɵAggregationFunction, ɵAggregationEvalType, ɵDatePartType, ɵFunctionType, ɵOrderDirection, ɵgenerateGuid, ɵNextHandlerAlreadySpecifiedException, ɵBaseRequest } from '@creatio/base';
|
|
2
|
+
export { ɵAggregationEvalType as AggregationEvalType, ɵAggregationFunction as AggregationFunction, ɵAggregationFunctionColumn as AggregationFunctionColumn, ɵAggregationFunctionExpression as AggregationFunctionExpression, ɵAggregationSubQueryColumn as AggregationSubQueryColumn, ɵAggregationSubQueryExpression as AggregationSubQueryExpression, ɵAggregationType as AggregationType, ɵArgumentEmptyException as ArgumentEmptyException, ɵArgumentFunctionExpression as ArgumentFunctionExpression, ɵArgumentOutOfRangeException as ArgumentOutOfRangeException, ɵArithmeticExpression as ArithmeticExpression, ɵArithmeticOperation as ArithmeticOperation, ɵArithmeticQueryColumn as ArithmeticQueryColumn, ɵBaseExpression as BaseExpression, ɵBaseExpressionParser as BaseExpressionParser, ɵBaseFilter as BaseFilter, ɵBaseFilterParser as BaseFilterParser, ɵBaseFilterableQuery as BaseFilterableQuery, ɵBaseQuery as BaseQuery, ɵBaseQueryColumn as BaseQueryColumn, ɵBaseRequest as BaseRequest, ɵBetweenFilter as BetweenFilter, ɵColumnExpression as ColumnExpression, ɵCompareFilter as CompareFilter, ɵComparisonType as ComparisonType, ɵDEFAULT_COLUMN_PLAIN_OBJ as DEFAULT_COLUMN_PLAIN_OBJ, ɵDEFAULT_FILTER_PLAIN_OBJ as DEFAULT_FILTER_PLAIN_OBJ, ɵDataSchemaAttributeType as DataSchemaAttributeType, ɵDataSchemaAttributeUsageType as DataSchemaAttributeUsageType, ɵDataSchemaType as DataSchemaType, ɵDataSourceScope as DataSourceScope, ɵDataValueType as DataValueType, ɵDatePartFunctionColumn as DatePartFunctionColumn, ɵDatePartFunctionExpression as DatePartFunctionExpression, ɵDatePartType as DatePartType, ɵDefaultValueSource as DefaultValueSource, ɵDeleteQuery as DeleteQuery, ɵEMPTY_GUID as EMPTY_GUID, ɵEntityQueryColumn as EntityQueryColumn, ɵEntitySchemaQuery as EntitySchemaQuery, ɵExistsFilter as ExistsFilter, ɵExpressionMock as ExpressionMock, ɵExpressionParser as ExpressionParser, ɵExpressionResolver as ExpressionResolver, ɵExpressionType as ExpressionType, ɵFilterGroup as FilterGroup, ɵFilterMock as FilterMock, ɵFilterParser as FilterParser, ɵFilterResolver as FilterResolver, ɵFilterType as FilterType, ɵFunctionExpression as FunctionExpression, ɵFunctionType as FunctionType, ɵInFilter as InFilter, ɵInsertQuery as InsertQuery, ɵIsNullFilter as IsNullFilter, ɵItemNotFoundException as ItemNotFoundException, ɵLengthFunctionColumn as LengthFunctionColumn, ɵLengthFunctionExpression as LengthFunctionExpression, ɵLogicalOperatorType as LogicalOperatorType, ɵMacrosFunctionColumn as MacrosFunctionColumn, ɵMacrosFunctionExpression as MacrosFunctionExpression, ɵModelParameterType as ModelParameterType, ɵNextHandlerAlreadySpecifiedException as NextHandlerAlreadySpecifiedException, ɵOrderDirection as OrderDirection, ɵParameterExpression as ParameterExpression, ɵParameterQueryColumn as ParameterQueryColumn, ɵQueryMacrosType as QueryMacrosType, ɵQueryOperationType as QueryOperationType, ɵSelectLocalizationQuery as SelectLocalizationQuery, ɵSingleFilter as SingleFilter, ɵSubQueryColumn as SubQueryColumn, ɵSubQueryExpression as SubQueryExpression, ɵUpdateQuery as UpdateQuery, ɵValidationUtilities as ValidationUtilities, ɵWindowFunctionColumn as WindowFunctionColumn, ɵWindowFunctionExpression as WindowFunctionExpression, ɵencodeDate as encodeDate, ɵgenerateGuid as generateGuid, ɵgetColumnPlainObj as getColumnPlainObj, ɵgetFilterPlainObj as getFilterPlainObj, ɵisEmptyGuid as isEmptyGuid, ɵisGuid as isGuid, ɵparserMock as parserMock, ɵtoLocalISOString as toLocalISOString } from '@creatio/base';
|
|
3
|
+
import { __awaiter, __decorate, __metadata } from 'tslib';
|
|
3
4
|
import { get, set, upperFirst, camelCase, isEqual, cloneDeep } from 'lodash';
|
|
4
5
|
import 'reflect-metadata';
|
|
5
6
|
|
|
6
|
-
var DataValueType;
|
|
7
|
-
(function (DataValueType) {
|
|
8
|
-
DataValueType[DataValueType["Guid"] = 0] = "Guid";
|
|
9
|
-
DataValueType[DataValueType["Text"] = 1] = "Text";
|
|
10
|
-
DataValueType[DataValueType["Integer"] = 4] = "Integer";
|
|
11
|
-
DataValueType[DataValueType["Float"] = 5] = "Float";
|
|
12
|
-
DataValueType[DataValueType["Money"] = 6] = "Money";
|
|
13
|
-
DataValueType[DataValueType["DateTime"] = 7] = "DateTime";
|
|
14
|
-
DataValueType[DataValueType["Date"] = 8] = "Date";
|
|
15
|
-
DataValueType[DataValueType["Time"] = 9] = "Time";
|
|
16
|
-
DataValueType[DataValueType["Lookup"] = 10] = "Lookup";
|
|
17
|
-
DataValueType[DataValueType["Enum"] = 11] = "Enum";
|
|
18
|
-
DataValueType[DataValueType["Boolean"] = 12] = "Boolean";
|
|
19
|
-
DataValueType[DataValueType["Blob"] = 13] = "Blob";
|
|
20
|
-
DataValueType[DataValueType["Image"] = 14] = "Image";
|
|
21
|
-
DataValueType[DataValueType["CUSTOM_OBJECT"] = 15] = "CUSTOM_OBJECT";
|
|
22
|
-
DataValueType[DataValueType["IMAGELOOKUP"] = 16] = "IMAGELOOKUP";
|
|
23
|
-
DataValueType[DataValueType["COLLECTION"] = 17] = "COLLECTION";
|
|
24
|
-
DataValueType[DataValueType["Color"] = 18] = "Color";
|
|
25
|
-
DataValueType[DataValueType["LOCALIZABLE_STRING"] = 19] = "LOCALIZABLE_STRING";
|
|
26
|
-
DataValueType[DataValueType["ENTITY"] = 20] = "ENTITY";
|
|
27
|
-
DataValueType[DataValueType["ENTITY_COLLECTION"] = 21] = "ENTITY_COLLECTION";
|
|
28
|
-
DataValueType[DataValueType["ENTITY_COLUMN_MAPPING_COLLECTION"] = 22] = "ENTITY_COLUMN_MAPPING_COLLECTION";
|
|
29
|
-
DataValueType[DataValueType["HASH_TEXT"] = 23] = "HASH_TEXT";
|
|
30
|
-
DataValueType[DataValueType["SECURE_TEXT"] = 24] = "SECURE_TEXT";
|
|
31
|
-
DataValueType[DataValueType["FILE"] = 25] = "FILE";
|
|
32
|
-
DataValueType[DataValueType["MAPPING"] = 26] = "MAPPING";
|
|
33
|
-
DataValueType[DataValueType["SHORT_TEXT"] = 27] = "SHORT_TEXT";
|
|
34
|
-
DataValueType[DataValueType["MEDIUM_TEXT"] = 28] = "MEDIUM_TEXT";
|
|
35
|
-
DataValueType[DataValueType["MAXSIZE_TEXT"] = 29] = "MAXSIZE_TEXT";
|
|
36
|
-
DataValueType[DataValueType["LONG_TEXT"] = 30] = "LONG_TEXT";
|
|
37
|
-
DataValueType[DataValueType["FLOAT1"] = 31] = "FLOAT1";
|
|
38
|
-
DataValueType[DataValueType["FLOAT2"] = 32] = "FLOAT2";
|
|
39
|
-
DataValueType[DataValueType["FLOAT3"] = 33] = "FLOAT3";
|
|
40
|
-
DataValueType[DataValueType["FLOAT4"] = 34] = "FLOAT4";
|
|
41
|
-
DataValueType[DataValueType["LOCALIZABLE_PARAMETER_VALUES_LIST"] = 35] = "LOCALIZABLE_PARAMETER_VALUES_LIST";
|
|
42
|
-
DataValueType[DataValueType["METADATA_TEXT"] = 36] = "METADATA_TEXT";
|
|
43
|
-
DataValueType[DataValueType["STAGE_INDICATOR"] = 37] = "STAGE_INDICATOR";
|
|
44
|
-
DataValueType[DataValueType["OBJECT_LIST"] = 38] = "OBJECT_LIST";
|
|
45
|
-
DataValueType[DataValueType["COMPOSITE_OBJECT_LIST"] = 39] = "COMPOSITE_OBJECT_LIST";
|
|
46
|
-
DataValueType[DataValueType["FLOAT8"] = 40] = "FLOAT8";
|
|
47
|
-
DataValueType[DataValueType["FILE_LOCATOR"] = 41] = "FILE_LOCATOR";
|
|
48
|
-
DataValueType[DataValueType["PHONE_TEXT"] = 42] = "PHONE_TEXT";
|
|
49
|
-
DataValueType[DataValueType["RICH_TEXT"] = 43] = "RICH_TEXT";
|
|
50
|
-
DataValueType[DataValueType["WEB_TEXT"] = 44] = "WEB_TEXT";
|
|
51
|
-
DataValueType[DataValueType["EMAIL_TEXT"] = 45] = "EMAIL_TEXT";
|
|
52
|
-
})(DataValueType || (DataValueType = {}));
|
|
53
|
-
|
|
54
|
-
var AggregationType;
|
|
55
|
-
(function (AggregationType) {
|
|
56
|
-
/** Aggregation function type not defined. */
|
|
57
|
-
AggregationType[AggregationType["None"] = 0] = "None";
|
|
58
|
-
/** Aggregation function type not defined. */
|
|
59
|
-
AggregationType[AggregationType["Count"] = 1] = "Count";
|
|
60
|
-
/** Sum of values of all elements. */
|
|
61
|
-
AggregationType[AggregationType["Sum"] = 2] = "Sum";
|
|
62
|
-
/** Average value for all elements. */
|
|
63
|
-
AggregationType[AggregationType["Avg"] = 3] = "Avg";
|
|
64
|
-
/** The minimum value among all elements. */
|
|
65
|
-
AggregationType[AggregationType["Min"] = 4] = "Min";
|
|
66
|
-
/** The maximum value among all elements. */
|
|
67
|
-
AggregationType[AggregationType["Max"] = 5] = "Max";
|
|
68
|
-
/** Top one record from collection. */
|
|
69
|
-
AggregationType[AggregationType["TopOne"] = 6] = "TopOne";
|
|
70
|
-
})(AggregationType || (AggregationType = {}));
|
|
71
|
-
|
|
72
|
-
var AggregationFunction;
|
|
73
|
-
(function (AggregationFunction) {
|
|
74
|
-
/** Aggregation function type not defined. */
|
|
75
|
-
AggregationFunction["None"] = "";
|
|
76
|
-
/** Aggregation function type not defined. */
|
|
77
|
-
AggregationFunction["Count"] = "Count";
|
|
78
|
-
/** Sum of values of all elements. */
|
|
79
|
-
AggregationFunction["Sum"] = "Sum";
|
|
80
|
-
/** Average value for all elements. */
|
|
81
|
-
AggregationFunction["Avg"] = "Avg";
|
|
82
|
-
/** The minimum value among all elements. */
|
|
83
|
-
AggregationFunction["Min"] = "Min";
|
|
84
|
-
/** The maximum value among all elements. */
|
|
85
|
-
AggregationFunction["Max"] = "Max";
|
|
86
|
-
/** Top one record from collection. */
|
|
87
|
-
AggregationFunction["TopOne"] = "TopOne";
|
|
88
|
-
})(AggregationFunction || (AggregationFunction = {}));
|
|
89
|
-
|
|
90
|
-
var LogicalOperatorType;
|
|
91
|
-
(function (LogicalOperatorType) {
|
|
92
|
-
LogicalOperatorType[LogicalOperatorType["And"] = 0] = "And";
|
|
93
|
-
LogicalOperatorType[LogicalOperatorType["Or"] = 1] = "Or";
|
|
94
|
-
})(LogicalOperatorType || (LogicalOperatorType = {}));
|
|
95
|
-
|
|
96
|
-
var AggregationEvalType;
|
|
97
|
-
(function (AggregationEvalType) {
|
|
98
|
-
/** The scope of the aggregating function is not defined. */
|
|
99
|
-
AggregationEvalType[AggregationEvalType["None"] = 0] = "None";
|
|
100
|
-
/** Applies to all elements. */
|
|
101
|
-
AggregationEvalType[AggregationEvalType["All"] = 1] = "All";
|
|
102
|
-
/** Applies to unique values. */
|
|
103
|
-
AggregationEvalType[AggregationEvalType["Distinct"] = 2] = "Distinct";
|
|
104
|
-
})(AggregationEvalType || (AggregationEvalType = {}));
|
|
105
|
-
|
|
106
|
-
var ArithmeticOperation;
|
|
107
|
-
(function (ArithmeticOperation) {
|
|
108
|
-
/** Addition. */
|
|
109
|
-
ArithmeticOperation[ArithmeticOperation["Addition"] = 0] = "Addition";
|
|
110
|
-
/** Subtraction. */
|
|
111
|
-
ArithmeticOperation[ArithmeticOperation["Subtraction"] = 1] = "Subtraction";
|
|
112
|
-
/** Multiplication. */
|
|
113
|
-
ArithmeticOperation[ArithmeticOperation["Multiplication"] = 2] = "Multiplication";
|
|
114
|
-
/** Division. */
|
|
115
|
-
ArithmeticOperation[ArithmeticOperation["Division"] = 3] = "Division";
|
|
116
|
-
})(ArithmeticOperation || (ArithmeticOperation = {}));
|
|
117
|
-
|
|
118
|
-
var ComparisonType;
|
|
119
|
-
(function (ComparisonType) {
|
|
120
|
-
ComparisonType[ComparisonType["Between"] = 0] = "Between";
|
|
121
|
-
ComparisonType[ComparisonType["Contain"] = 11] = "Contain";
|
|
122
|
-
ComparisonType[ComparisonType["End_with"] = 13] = "End_with";
|
|
123
|
-
ComparisonType[ComparisonType["Equal"] = 3] = "Equal";
|
|
124
|
-
ComparisonType[ComparisonType["Exists"] = 15] = "Exists";
|
|
125
|
-
ComparisonType[ComparisonType["Greater"] = 7] = "Greater";
|
|
126
|
-
ComparisonType[ComparisonType["Greater_or_equal"] = 8] = "Greater_or_equal";
|
|
127
|
-
ComparisonType[ComparisonType["Is_not_null"] = 2] = "Is_not_null";
|
|
128
|
-
ComparisonType[ComparisonType["Is_null"] = 1] = "Is_null";
|
|
129
|
-
ComparisonType[ComparisonType["Less"] = 5] = "Less";
|
|
130
|
-
ComparisonType[ComparisonType["Less_or_equal"] = 6] = "Less_or_equal";
|
|
131
|
-
ComparisonType[ComparisonType["Not_contain"] = 12] = "Not_contain";
|
|
132
|
-
ComparisonType[ComparisonType["Not_end_with"] = 14] = "Not_end_with";
|
|
133
|
-
ComparisonType[ComparisonType["Not_equal"] = 4] = "Not_equal";
|
|
134
|
-
ComparisonType[ComparisonType["Not_exists"] = 16] = "Not_exists";
|
|
135
|
-
ComparisonType[ComparisonType["Not_start_with"] = 10] = "Not_start_with";
|
|
136
|
-
ComparisonType[ComparisonType["Start_with"] = 9] = "Start_with";
|
|
137
|
-
})(ComparisonType || (ComparisonType = {}));
|
|
138
|
-
|
|
139
|
-
var DatePartType;
|
|
140
|
-
(function (DatePartType) {
|
|
141
|
-
/** Empty value. */
|
|
142
|
-
DatePartType[DatePartType["None"] = 0] = "None";
|
|
143
|
-
/** Day. */
|
|
144
|
-
DatePartType[DatePartType["Day"] = 1] = "Day";
|
|
145
|
-
/** Week. */
|
|
146
|
-
DatePartType[DatePartType["Week"] = 2] = "Week";
|
|
147
|
-
/** Month. */
|
|
148
|
-
DatePartType[DatePartType["Month"] = 3] = "Month";
|
|
149
|
-
/** Year. */
|
|
150
|
-
DatePartType[DatePartType["Year"] = 4] = "Year";
|
|
151
|
-
/** Day of the week. */
|
|
152
|
-
DatePartType[DatePartType["WeekDay"] = 5] = "WeekDay";
|
|
153
|
-
/** Hour. */
|
|
154
|
-
DatePartType[DatePartType["Hour"] = 6] = "Hour";
|
|
155
|
-
/** Minute. */
|
|
156
|
-
DatePartType[DatePartType["HourMinute"] = 7] = "HourMinute";
|
|
157
|
-
})(DatePartType || (DatePartType = {}));
|
|
158
|
-
|
|
159
|
-
var ExpressionType;
|
|
160
|
-
(function (ExpressionType) {
|
|
161
|
-
ExpressionType[ExpressionType["SchemaColumn"] = 0] = "SchemaColumn";
|
|
162
|
-
ExpressionType[ExpressionType["Function"] = 1] = "Function";
|
|
163
|
-
ExpressionType[ExpressionType["Parameter"] = 2] = "Parameter";
|
|
164
|
-
ExpressionType[ExpressionType["SubQuery"] = 3] = "SubQuery";
|
|
165
|
-
ExpressionType[ExpressionType["ArithmeticOperation"] = 4] = "ArithmeticOperation";
|
|
166
|
-
})(ExpressionType || (ExpressionType = {}));
|
|
167
|
-
|
|
168
|
-
var FilterType;
|
|
169
|
-
(function (FilterType) {
|
|
170
|
-
FilterType[FilterType["None"] = 0] = "None";
|
|
171
|
-
FilterType[FilterType["Compare"] = 1] = "Compare";
|
|
172
|
-
FilterType[FilterType["IsNull"] = 2] = "IsNull";
|
|
173
|
-
FilterType[FilterType["Between"] = 3] = "Between";
|
|
174
|
-
FilterType[FilterType["In"] = 4] = "In";
|
|
175
|
-
FilterType[FilterType["Exists"] = 5] = "Exists";
|
|
176
|
-
FilterType[FilterType["FilterGroup"] = 6] = "FilterGroup";
|
|
177
|
-
})(FilterType || (FilterType = {}));
|
|
178
|
-
|
|
179
|
-
var FunctionType;
|
|
180
|
-
(function (FunctionType) {
|
|
181
|
-
FunctionType[FunctionType["None"] = 0] = "None";
|
|
182
|
-
/** Substitution by macro. */
|
|
183
|
-
FunctionType[FunctionType["Macros"] = 1] = "Macros";
|
|
184
|
-
/** Aggregating function. */
|
|
185
|
-
FunctionType[FunctionType["Aggregation"] = 2] = "Aggregation";
|
|
186
|
-
/** Date fragment. */
|
|
187
|
-
FunctionType[FunctionType["DatePart"] = 3] = "DatePart";
|
|
188
|
-
/** The size of the value in bytes, used for binary data. */
|
|
189
|
-
FunctionType[FunctionType["Length"] = 4] = "Length";
|
|
190
|
-
/** Window query function */
|
|
191
|
-
FunctionType[FunctionType["Window"] = 5] = "Window";
|
|
192
|
-
/** Date add. */
|
|
193
|
-
FunctionType[FunctionType["DateAdd"] = 6] = "DateAdd";
|
|
194
|
-
/** Date diff. */
|
|
195
|
-
FunctionType[FunctionType["DateDiff"] = 7] = "DateDiff";
|
|
196
|
-
})(FunctionType || (FunctionType = {}));
|
|
197
|
-
|
|
198
|
-
var OrderDirection;
|
|
199
|
-
(function (OrderDirection) {
|
|
200
|
-
OrderDirection[OrderDirection["None"] = 0] = "None";
|
|
201
|
-
OrderDirection[OrderDirection["Asc"] = 1] = "Asc";
|
|
202
|
-
OrderDirection[OrderDirection["Desc"] = 2] = "Desc";
|
|
203
|
-
})(OrderDirection || (OrderDirection = {}));
|
|
204
|
-
|
|
205
|
-
var QueryMacrosType;
|
|
206
|
-
(function (QueryMacrosType) {
|
|
207
|
-
/** Macro type not defined. */
|
|
208
|
-
QueryMacrosType[QueryMacrosType["None"] = 0] = "None";
|
|
209
|
-
/** Current user. */
|
|
210
|
-
QueryMacrosType[QueryMacrosType["CurrentUser"] = 1] = "CurrentUser";
|
|
211
|
-
/** Current user contact. */
|
|
212
|
-
QueryMacrosType[QueryMacrosType["CurrentUserContact"] = 2] = "CurrentUserContact";
|
|
213
|
-
/** Yesterday. */
|
|
214
|
-
QueryMacrosType[QueryMacrosType["Yesterday"] = 3] = "Yesterday";
|
|
215
|
-
/** Today. */
|
|
216
|
-
QueryMacrosType[QueryMacrosType["Today"] = 4] = "Today";
|
|
217
|
-
/** Tomorrow. */
|
|
218
|
-
QueryMacrosType[QueryMacrosType["Tomorrow"] = 5] = "Tomorrow";
|
|
219
|
-
/** Previous week. */
|
|
220
|
-
QueryMacrosType[QueryMacrosType["PreviousWeek"] = 6] = "PreviousWeek";
|
|
221
|
-
/** This week. */
|
|
222
|
-
QueryMacrosType[QueryMacrosType["CurrentWeek"] = 7] = "CurrentWeek";
|
|
223
|
-
/** Next week. */
|
|
224
|
-
QueryMacrosType[QueryMacrosType["NextWeek"] = 8] = "NextWeek";
|
|
225
|
-
/** Previous month. */
|
|
226
|
-
QueryMacrosType[QueryMacrosType["PreviousMonth"] = 9] = "PreviousMonth";
|
|
227
|
-
/** Current month. */
|
|
228
|
-
QueryMacrosType[QueryMacrosType["CurrentMonth"] = 10] = "CurrentMonth";
|
|
229
|
-
/** Next month. */
|
|
230
|
-
QueryMacrosType[QueryMacrosType["NextMonth"] = 11] = "NextMonth";
|
|
231
|
-
/** Previous quarter. */
|
|
232
|
-
QueryMacrosType[QueryMacrosType["PreviousQuarter"] = 12] = "PreviousQuarter";
|
|
233
|
-
/** Current quarter. */
|
|
234
|
-
QueryMacrosType[QueryMacrosType["CurrentQuarter"] = 13] = "CurrentQuarter";
|
|
235
|
-
/** Next quarter. */
|
|
236
|
-
QueryMacrosType[QueryMacrosType["NextQuarter"] = 14] = "NextQuarter";
|
|
237
|
-
/** Previous half of the year. */
|
|
238
|
-
QueryMacrosType[QueryMacrosType["PreviousHalfYear"] = 15] = "PreviousHalfYear";
|
|
239
|
-
/** Current half-year. */
|
|
240
|
-
QueryMacrosType[QueryMacrosType["CurrentHalfYear"] = 16] = "CurrentHalfYear";
|
|
241
|
-
/** Next half-year. */
|
|
242
|
-
QueryMacrosType[QueryMacrosType["NextHalfYear"] = 17] = "NextHalfYear";
|
|
243
|
-
/** Last year. */
|
|
244
|
-
QueryMacrosType[QueryMacrosType["PreviousYear"] = 18] = "PreviousYear";
|
|
245
|
-
/** This year. */
|
|
246
|
-
QueryMacrosType[QueryMacrosType["CurrentYear"] = 19] = "CurrentYear";
|
|
247
|
-
/** Previous hour. */
|
|
248
|
-
QueryMacrosType[QueryMacrosType["PreviousHour"] = 20] = "PreviousHour";
|
|
249
|
-
/** Current hour. */
|
|
250
|
-
QueryMacrosType[QueryMacrosType["CurrentHour"] = 21] = "CurrentHour";
|
|
251
|
-
/** Next hour. */
|
|
252
|
-
QueryMacrosType[QueryMacrosType["NextHour"] = 22] = "NextHour";
|
|
253
|
-
/** Next year. */
|
|
254
|
-
QueryMacrosType[QueryMacrosType["NextYear"] = 23] = "NextYear";
|
|
255
|
-
/** Next N Days. */
|
|
256
|
-
QueryMacrosType[QueryMacrosType["NextNDays"] = 24] = "NextNDays";
|
|
257
|
-
/** Previous N days. */
|
|
258
|
-
QueryMacrosType[QueryMacrosType["PreviousNDays"] = 25] = "PreviousNDays";
|
|
259
|
-
/** Next N hours. */
|
|
260
|
-
QueryMacrosType[QueryMacrosType["NextNHours"] = 26] = "NextNHours";
|
|
261
|
-
/** Previous N hours. */
|
|
262
|
-
QueryMacrosType[QueryMacrosType["PreviousNHours"] = 27] = "PreviousNHours";
|
|
263
|
-
/** Primary column. */
|
|
264
|
-
QueryMacrosType[QueryMacrosType["PrimaryColumn"] = 34] = "PrimaryColumn";
|
|
265
|
-
/** Primary displayed column. */
|
|
266
|
-
QueryMacrosType[QueryMacrosType["PrimaryDisplayColumn"] = 35] = "PrimaryDisplayColumn";
|
|
267
|
-
/** Primary image display column. */
|
|
268
|
-
QueryMacrosType[QueryMacrosType["PrimaryImageColumn"] = 36] = "PrimaryImageColumn";
|
|
269
|
-
/** Anniversary today. */
|
|
270
|
-
QueryMacrosType[QueryMacrosType["DayOfYearToday"] = 37] = "DayOfYearToday";
|
|
271
|
-
/** Anniversary on the date computed as today plus days offset. */
|
|
272
|
-
QueryMacrosType[QueryMacrosType["DayOfYearTodayPlusDaysOffset"] = 38] = "DayOfYearTodayPlusDaysOffset";
|
|
273
|
-
/** Anniversary on the next several days. */
|
|
274
|
-
QueryMacrosType[QueryMacrosType["NextNDaysOfYear"] = 39] = "NextNDaysOfYear";
|
|
275
|
-
/** Anniversary on the previous several days. */
|
|
276
|
-
QueryMacrosType[QueryMacrosType["PreviousNDaysOfYear"] = 40] = "PreviousNDaysOfYear";
|
|
277
|
-
/** Primary color display column. */
|
|
278
|
-
QueryMacrosType[QueryMacrosType["PrimaryColorColumn"] = 41] = "PrimaryColorColumn";
|
|
279
|
-
})(QueryMacrosType || (QueryMacrosType = {}));
|
|
280
|
-
|
|
281
|
-
class BaseExpression {
|
|
282
|
-
constructor(config) {
|
|
283
|
-
this.isBlock = false;
|
|
284
|
-
this.isBlock = config === null || config === void 0 ? void 0 : config.isBlock;
|
|
285
|
-
}
|
|
286
|
-
}
|
|
287
|
-
|
|
288
|
-
class ArithmeticExpression extends BaseExpression {
|
|
289
|
-
constructor(config) {
|
|
290
|
-
super(config);
|
|
291
|
-
this.expressionType = ExpressionType.ArithmeticOperation;
|
|
292
|
-
this.arithmeticOperation = config === null || config === void 0 ? void 0 : config.arithmeticOperation;
|
|
293
|
-
this.leftArithmeticOperand = config === null || config === void 0 ? void 0 : config.leftArithmeticOperand.clone();
|
|
294
|
-
this.rightArithmeticOperand = config === null || config === void 0 ? void 0 : config.rightArithmeticOperand.clone();
|
|
295
|
-
}
|
|
296
|
-
clone() {
|
|
297
|
-
return new ArithmeticExpression(this);
|
|
298
|
-
}
|
|
299
|
-
}
|
|
300
|
-
|
|
301
|
-
class ColumnExpression extends BaseExpression {
|
|
302
|
-
constructor(config) {
|
|
303
|
-
super(config);
|
|
304
|
-
this.expressionType = ExpressionType.SchemaColumn;
|
|
305
|
-
this.columnPath = config === null || config === void 0 ? void 0 : config.columnPath;
|
|
306
|
-
}
|
|
307
|
-
clone() {
|
|
308
|
-
return new ColumnExpression(this);
|
|
309
|
-
}
|
|
310
|
-
}
|
|
311
|
-
|
|
312
|
-
class FunctionExpression extends BaseExpression {
|
|
313
|
-
constructor(config) {
|
|
314
|
-
super(config);
|
|
315
|
-
this.expressionType = ExpressionType.Function;
|
|
316
|
-
}
|
|
317
|
-
}
|
|
318
|
-
|
|
319
|
-
class ArgumentFunctionExpression extends FunctionExpression {
|
|
320
|
-
constructor(config) {
|
|
321
|
-
super(config);
|
|
322
|
-
this.functionArgument = config === null || config === void 0 ? void 0 : config.functionArgument.clone();
|
|
323
|
-
}
|
|
324
|
-
}
|
|
325
|
-
|
|
326
|
-
class AggregationFunctionExpression extends ArgumentFunctionExpression {
|
|
327
|
-
constructor(config) {
|
|
328
|
-
super(config);
|
|
329
|
-
this.functionType = FunctionType.Aggregation;
|
|
330
|
-
this.aggregationType = config === null || config === void 0 ? void 0 : config.aggregationType;
|
|
331
|
-
this.aggregationEvalType = config === null || config === void 0 ? void 0 : config.aggregationEvalType;
|
|
332
|
-
}
|
|
333
|
-
clone() {
|
|
334
|
-
return new AggregationFunctionExpression(this);
|
|
335
|
-
}
|
|
336
|
-
}
|
|
337
|
-
|
|
338
|
-
class DatePartFunctionExpression extends ArgumentFunctionExpression {
|
|
339
|
-
constructor(config) {
|
|
340
|
-
super(config);
|
|
341
|
-
this.functionType = FunctionType.DatePart;
|
|
342
|
-
this.datePartType = config === null || config === void 0 ? void 0 : config.datePartType;
|
|
343
|
-
}
|
|
344
|
-
clone() {
|
|
345
|
-
return new DatePartFunctionExpression(this);
|
|
346
|
-
}
|
|
347
|
-
}
|
|
348
|
-
|
|
349
|
-
class LengthFunctionExpression extends ArgumentFunctionExpression {
|
|
350
|
-
constructor(config) {
|
|
351
|
-
super(config);
|
|
352
|
-
this.functionType = FunctionType.Length;
|
|
353
|
-
}
|
|
354
|
-
clone() {
|
|
355
|
-
return new LengthFunctionExpression(this);
|
|
356
|
-
}
|
|
357
|
-
}
|
|
358
|
-
|
|
359
|
-
class MacrosFunctionExpression extends FunctionExpression {
|
|
360
|
-
constructor(config) {
|
|
361
|
-
super(config);
|
|
362
|
-
this.functionType = FunctionType.Macros;
|
|
363
|
-
this.macrosType = config === null || config === void 0 ? void 0 : config.macrosType;
|
|
364
|
-
}
|
|
365
|
-
clone() {
|
|
366
|
-
return new MacrosFunctionExpression(this);
|
|
367
|
-
}
|
|
368
|
-
}
|
|
369
|
-
|
|
370
|
-
class WindowFunctionExpression extends ArgumentFunctionExpression {
|
|
371
|
-
constructor(config) {
|
|
372
|
-
super(config);
|
|
373
|
-
this.functionType = FunctionType.Window;
|
|
374
|
-
}
|
|
375
|
-
clone() {
|
|
376
|
-
return new WindowFunctionExpression(this);
|
|
377
|
-
}
|
|
378
|
-
}
|
|
379
|
-
|
|
380
|
-
/**
|
|
381
|
-
* @internal
|
|
382
|
-
* Returns a string represent of date in ISO 8601 without time zone specification(doesn't convert it
|
|
383
|
-
* using local timezone).
|
|
384
|
-
*
|
|
385
|
-
* Example:
|
|
386
|
-
*
|
|
387
|
-
* const date = new Date(2018, 01, 20, 15, 10, 30);
|
|
388
|
-
* const result = toLocalISOString(date);
|
|
389
|
-
* //result: '2018-02-20T15:10:30'
|
|
390
|
-
*
|
|
391
|
-
* @param date Date value.
|
|
392
|
-
*/
|
|
393
|
-
function toLocalISOString(date) {
|
|
394
|
-
if (!(date instanceof Date)) {
|
|
395
|
-
throw new TypeError();
|
|
396
|
-
}
|
|
397
|
-
const timeZoneOffset = date.getTimezoneOffset() * 60000;
|
|
398
|
-
return new Date(date.getTime() - timeZoneOffset).toISOString().slice(0, -1);
|
|
399
|
-
}
|
|
400
|
-
/**
|
|
401
|
-
* @internal
|
|
402
|
-
* Returns encoded date in string value.
|
|
403
|
-
* @param date Date value.
|
|
404
|
-
*/
|
|
405
|
-
function encodeDate(date) {
|
|
406
|
-
return `"${toLocalISOString(date)}"`;
|
|
407
|
-
}
|
|
408
|
-
|
|
409
|
-
class ParameterExpression extends BaseExpression {
|
|
410
|
-
constructor(config) {
|
|
411
|
-
var _a;
|
|
412
|
-
super(config);
|
|
413
|
-
this.expressionType = ExpressionType.Parameter;
|
|
414
|
-
const value = config === null || config === void 0 ? void 0 : config.value;
|
|
415
|
-
if (value instanceof Date) {
|
|
416
|
-
const cloneDate = new Date();
|
|
417
|
-
cloneDate.setTime(value.getTime());
|
|
418
|
-
this.value = cloneDate;
|
|
419
|
-
}
|
|
420
|
-
else if (!value) {
|
|
421
|
-
this.value = value;
|
|
422
|
-
}
|
|
423
|
-
else {
|
|
424
|
-
this.value = typeof value === 'object' ? Object.assign({}, value) : value;
|
|
425
|
-
}
|
|
426
|
-
this.dataValueType = (_a = config === null || config === void 0 ? void 0 : config.dataValueType) !== null && _a !== void 0 ? _a : DataValueType.Text;
|
|
427
|
-
}
|
|
428
|
-
get parameter() {
|
|
429
|
-
return Object.assign({ dataValueType: this.dataValueType }, this._getParameterValueMetadata());
|
|
430
|
-
}
|
|
431
|
-
_convertStringToBlobArray(str) {
|
|
432
|
-
const out = [];
|
|
433
|
-
let position = 0;
|
|
434
|
-
for (let i = 0; i < str.length; i++) {
|
|
435
|
-
const code = str.charCodeAt(i);
|
|
436
|
-
if (code < 128) {
|
|
437
|
-
out[position++] = String.fromCharCode(code);
|
|
438
|
-
}
|
|
439
|
-
else if (code < 2048) {
|
|
440
|
-
/* eslint-disable no-bitwise */
|
|
441
|
-
out[position++] = String.fromCharCode((code >> 6) | 192);
|
|
442
|
-
out[position++] = String.fromCharCode((code & 63) | 128);
|
|
443
|
-
}
|
|
444
|
-
else {
|
|
445
|
-
out[position++] = String.fromCharCode((code >> 12) | 224);
|
|
446
|
-
out[position++] = String.fromCharCode(((code >> 6) & 63) | 128);
|
|
447
|
-
out[position++] = String.fromCharCode((code & 63) | 128);
|
|
448
|
-
/* eslint-enable no-bitwise */
|
|
449
|
-
}
|
|
450
|
-
}
|
|
451
|
-
return out;
|
|
452
|
-
}
|
|
453
|
-
_getParameterValueMetadata() {
|
|
454
|
-
if (this.dataValueType === DataValueType.Blob) {
|
|
455
|
-
return {
|
|
456
|
-
arrayValue: !this.value ? [] : this._convertStringToBlobArray(this.value),
|
|
457
|
-
};
|
|
458
|
-
}
|
|
459
|
-
else if (this.value instanceof Date) {
|
|
460
|
-
return {
|
|
461
|
-
value: encodeDate(this.value),
|
|
462
|
-
};
|
|
463
|
-
}
|
|
464
|
-
else {
|
|
465
|
-
return {
|
|
466
|
-
value: this.value,
|
|
467
|
-
};
|
|
468
|
-
}
|
|
469
|
-
}
|
|
470
|
-
clone() {
|
|
471
|
-
return new ParameterExpression(this);
|
|
472
|
-
}
|
|
473
|
-
}
|
|
474
|
-
__decorate([
|
|
475
|
-
Exclude(),
|
|
476
|
-
__metadata("design:type", Object)
|
|
477
|
-
], ParameterExpression.prototype, "value", void 0);
|
|
478
|
-
__decorate([
|
|
479
|
-
Exclude(),
|
|
480
|
-
__metadata("design:type", Number)
|
|
481
|
-
], ParameterExpression.prototype, "dataValueType", void 0);
|
|
482
|
-
__decorate([
|
|
483
|
-
Expose(),
|
|
484
|
-
__metadata("design:type", Object),
|
|
485
|
-
__metadata("design:paramtypes", [])
|
|
486
|
-
], ParameterExpression.prototype, "parameter", null);
|
|
487
|
-
|
|
488
|
-
class SubQueryExpression extends BaseExpression {
|
|
489
|
-
constructor(config) {
|
|
490
|
-
super(config);
|
|
491
|
-
this.expressionType = ExpressionType.SubQuery;
|
|
492
|
-
this.columnPath = config === null || config === void 0 ? void 0 : config.columnPath;
|
|
493
|
-
const subFilter = config === null || config === void 0 ? void 0 : config.subFilters;
|
|
494
|
-
this.subFilters = typeof (subFilter === null || subFilter === void 0 ? void 0 : subFilter.clone) === 'function' ? subFilter.clone() : subFilter;
|
|
495
|
-
this.subOrderDirection = config.subOrderDirection;
|
|
496
|
-
this.subOrderColumn = config.subOrderColumn;
|
|
497
|
-
}
|
|
498
|
-
clone() {
|
|
499
|
-
return new SubQueryExpression(this);
|
|
500
|
-
}
|
|
501
|
-
}
|
|
502
|
-
|
|
503
|
-
class AggregationSubQueryExpression extends SubQueryExpression {
|
|
504
|
-
constructor(config) {
|
|
505
|
-
super(config);
|
|
506
|
-
this.aggregationType = config === null || config === void 0 ? void 0 : config.aggregationType;
|
|
507
|
-
}
|
|
508
|
-
clone() {
|
|
509
|
-
return new AggregationSubQueryExpression(this);
|
|
510
|
-
}
|
|
511
|
-
}
|
|
512
|
-
|
|
513
|
-
const EXPRESSION_TYPE_MOCK = -1;
|
|
514
|
-
class ExpressionMock extends BaseExpression {
|
|
515
|
-
constructor(config) {
|
|
516
|
-
super(config || {});
|
|
517
|
-
this.expressionType = EXPRESSION_TYPE_MOCK;
|
|
518
|
-
}
|
|
519
|
-
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
520
|
-
get plainObject() {
|
|
521
|
-
return classToPlain(this, { exposeUnsetFields: false, excludePrefixes: ['_'] });
|
|
522
|
-
}
|
|
523
|
-
clone() {
|
|
524
|
-
return new ExpressionMock(this);
|
|
525
|
-
}
|
|
526
|
-
}
|
|
527
|
-
|
|
528
|
-
class BaseFilter {
|
|
529
|
-
constructor(filterType) {
|
|
530
|
-
this.isEnabled = true;
|
|
531
|
-
this.trimDateTimeParameterToDate = false;
|
|
532
|
-
this.filterType = filterType;
|
|
533
|
-
}
|
|
534
|
-
}
|
|
535
|
-
|
|
536
|
-
class FilterMock extends BaseFilter {
|
|
537
|
-
constructor(filterType = FilterType.None) {
|
|
538
|
-
super(filterType);
|
|
539
|
-
}
|
|
540
|
-
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
541
|
-
get plainObject() {
|
|
542
|
-
return classToPlain(this, { exposeUnsetFields: false, excludePrefixes: ['_'] });
|
|
543
|
-
}
|
|
544
|
-
clone() {
|
|
545
|
-
return new FilterMock(this.filterType);
|
|
546
|
-
}
|
|
547
|
-
}
|
|
548
|
-
|
|
549
|
-
class SingleFilter extends BaseFilter {
|
|
550
|
-
constructor(filterType, comparisonType, leftExpression) {
|
|
551
|
-
super(filterType);
|
|
552
|
-
this.comparisonType = comparisonType;
|
|
553
|
-
this.leftExpression = leftExpression.clone();
|
|
554
|
-
}
|
|
555
|
-
}
|
|
556
|
-
|
|
557
|
-
class CompareFilter extends SingleFilter {
|
|
558
|
-
constructor(comparisonType, leftExpression, rightExpression) {
|
|
559
|
-
super(FilterType.Compare, comparisonType, leftExpression);
|
|
560
|
-
this.rightExpression = rightExpression.clone();
|
|
561
|
-
}
|
|
562
|
-
clone() {
|
|
563
|
-
return new CompareFilter(this.comparisonType, this.leftExpression, this.rightExpression);
|
|
564
|
-
}
|
|
565
|
-
}
|
|
566
|
-
|
|
567
|
-
class BetweenFilter extends SingleFilter {
|
|
568
|
-
constructor(leftExpression, rightLessExpression, rightGreaterExpression) {
|
|
569
|
-
super(FilterType.Between, ComparisonType.Between, leftExpression);
|
|
570
|
-
this.rightLessExpression = rightLessExpression.clone();
|
|
571
|
-
this.rightGreaterExpression = rightGreaterExpression.clone();
|
|
572
|
-
}
|
|
573
|
-
clone() {
|
|
574
|
-
return new BetweenFilter(this.leftExpression, this.rightLessExpression, this.rightGreaterExpression);
|
|
575
|
-
}
|
|
576
|
-
}
|
|
577
|
-
|
|
578
|
-
class ExistsFilter extends SingleFilter {
|
|
579
|
-
constructor(leftExpression, subFilters, comparisonType = ComparisonType.Exists, isAggregative = true) {
|
|
580
|
-
super(FilterType.Exists, comparisonType, leftExpression);
|
|
581
|
-
this.subFilters = subFilters === null || subFilters === void 0 ? void 0 : subFilters.clone();
|
|
582
|
-
this.isAggregative = isAggregative;
|
|
583
|
-
}
|
|
584
|
-
clone() {
|
|
585
|
-
return new ExistsFilter(this.leftExpression, this.subFilters, this.comparisonType, this.isAggregative);
|
|
586
|
-
}
|
|
587
|
-
}
|
|
588
|
-
|
|
589
|
-
class InFilter extends SingleFilter {
|
|
590
|
-
constructor(comparisonType, leftExpression, rightExpressions) {
|
|
591
|
-
super(FilterType.In, comparisonType, leftExpression);
|
|
592
|
-
this.rightExpressions = rightExpressions.map((expression) => expression.clone());
|
|
593
|
-
}
|
|
594
|
-
clone() {
|
|
595
|
-
return new InFilter(this.comparisonType, this.leftExpression, this.rightExpressions);
|
|
596
|
-
}
|
|
597
|
-
}
|
|
598
|
-
|
|
599
|
-
class IsNullFilter extends SingleFilter {
|
|
600
|
-
constructor(comparisonType, leftExpression) {
|
|
601
|
-
super(FilterType.IsNull, comparisonType, leftExpression);
|
|
602
|
-
}
|
|
603
|
-
get isNull() {
|
|
604
|
-
return this.comparisonType === ComparisonType.Is_null;
|
|
605
|
-
}
|
|
606
|
-
clone() {
|
|
607
|
-
return new IsNullFilter(this.comparisonType, this.leftExpression);
|
|
608
|
-
}
|
|
609
|
-
}
|
|
610
|
-
__decorate([
|
|
611
|
-
Expose(),
|
|
612
|
-
__metadata("design:type", Boolean),
|
|
613
|
-
__metadata("design:paramtypes", [])
|
|
614
|
-
], IsNullFilter.prototype, "isNull", null);
|
|
615
|
-
|
|
616
|
-
/**
|
|
617
|
-
* Empty Guid constant.
|
|
618
|
-
* @internal
|
|
619
|
-
*/
|
|
620
|
-
const EMPTY_GUID = '00000000-0000-0000-0000-000000000000';
|
|
621
|
-
/**
|
|
622
|
-
* Regular expression for Guid validation.
|
|
623
|
-
* @internal
|
|
624
|
-
*/
|
|
625
|
-
const validator = new RegExp('^[a-z0-9]{8}-[a-z0-9]{4}-[a-z0-9]{4}-[a-z0-9]{4}-[a-z0-9]{12}$', 'i');
|
|
626
|
-
/**
|
|
627
|
-
* Generates guid part.
|
|
628
|
-
* @param length Part length.
|
|
629
|
-
* @internal
|
|
630
|
-
*/
|
|
631
|
-
function generateGuidPart(length) {
|
|
632
|
-
let out = '';
|
|
633
|
-
for (let i = 0; i < length; i++) {
|
|
634
|
-
// eslint-disable-next-line no-bitwise
|
|
635
|
-
out += (((1 + Math.random()) * 0x10000) | 0).toString(16).substring(1);
|
|
636
|
-
}
|
|
637
|
-
return out;
|
|
638
|
-
}
|
|
639
|
-
/**
|
|
640
|
-
* Generates new Guid.
|
|
641
|
-
* @internal
|
|
642
|
-
*/
|
|
643
|
-
function generateGuid() {
|
|
644
|
-
return [
|
|
645
|
-
generateGuidPart(2),
|
|
646
|
-
generateGuidPart(1),
|
|
647
|
-
generateGuidPart(1),
|
|
648
|
-
generateGuidPart(1),
|
|
649
|
-
generateGuidPart(3),
|
|
650
|
-
].join('-');
|
|
651
|
-
}
|
|
652
|
-
/**
|
|
653
|
-
* Checks if value is Guid.
|
|
654
|
-
* @param value Value for check.
|
|
655
|
-
* @internal
|
|
656
|
-
*/
|
|
657
|
-
function isGuid(value) {
|
|
658
|
-
return Boolean(value) && validator.test(value);
|
|
659
|
-
}
|
|
660
|
-
/**
|
|
661
|
-
* Checks if Guid is empty value or equal to EMPTY_GUID.
|
|
662
|
-
* @param guid Guid for check.
|
|
663
|
-
* @internal
|
|
664
|
-
*/
|
|
665
|
-
function isEmptyGuid(guid) {
|
|
666
|
-
return !guid || guid === EMPTY_GUID;
|
|
667
|
-
}
|
|
668
|
-
|
|
669
|
-
/**
|
|
670
|
-
* @internal
|
|
671
|
-
*/
|
|
672
|
-
class NextHandlerAlreadySpecifiedException extends Error {
|
|
673
|
-
constructor() {
|
|
674
|
-
super('Next handler already specified');
|
|
675
|
-
}
|
|
676
|
-
}
|
|
677
|
-
|
|
678
|
-
class ArgumentEmptyException extends Error {
|
|
679
|
-
// region Constructors: Public
|
|
680
|
-
constructor(argumentName) {
|
|
681
|
-
super(`Argument with name '${argumentName}' is empty.`);
|
|
682
|
-
}
|
|
683
|
-
}
|
|
684
|
-
|
|
685
|
-
class ArgumentOutOfRangeException extends Error {
|
|
686
|
-
// region Constructors: Public
|
|
687
|
-
constructor(argumentName) {
|
|
688
|
-
super(`Argument with name '${argumentName}' is out of range.`);
|
|
689
|
-
}
|
|
690
|
-
}
|
|
691
|
-
|
|
692
|
-
class ItemNotFoundException extends Error {
|
|
693
|
-
// region Constructors: Public
|
|
694
|
-
constructor(key) {
|
|
695
|
-
super(`Item with key '${key}' does not exist.`);
|
|
696
|
-
}
|
|
697
|
-
}
|
|
698
|
-
|
|
699
|
-
class ValidationUtilities {
|
|
700
|
-
// region Methods: Public
|
|
701
|
-
static checkArgumentEmpty(argumentName, argumentValue) {
|
|
702
|
-
if (argumentValue === undefined || argumentValue === null) {
|
|
703
|
-
throw new ArgumentEmptyException(argumentName);
|
|
704
|
-
}
|
|
705
|
-
}
|
|
706
|
-
static checkArrayEmpty(argumentName, argumentValue) {
|
|
707
|
-
ValidationUtilities.checkArgumentEmpty(argumentName, argumentValue);
|
|
708
|
-
if (argumentValue.length === 0) {
|
|
709
|
-
throw new ArgumentEmptyException(argumentName);
|
|
710
|
-
}
|
|
711
|
-
}
|
|
712
|
-
static checkStringIsNotEmpty(argumentName, argumentValue) {
|
|
713
|
-
this.checkArgumentEmpty(argumentName, argumentValue);
|
|
714
|
-
if (argumentValue === '') {
|
|
715
|
-
throw new ArgumentEmptyException(argumentName);
|
|
716
|
-
}
|
|
717
|
-
return argumentValue;
|
|
718
|
-
}
|
|
719
|
-
static checkArgumentOutOfRange(argumentName, argumentValue, range) {
|
|
720
|
-
if (range.begin && argumentValue < range.begin) {
|
|
721
|
-
throw new ArgumentOutOfRangeException(argumentName);
|
|
722
|
-
}
|
|
723
|
-
if (range.end && argumentValue > range.end) {
|
|
724
|
-
throw new ArgumentOutOfRangeException(argumentName);
|
|
725
|
-
}
|
|
726
|
-
}
|
|
727
|
-
}
|
|
728
|
-
|
|
729
|
-
class FilterGroup extends BaseFilter {
|
|
730
|
-
constructor(logicalOperation = LogicalOperatorType.And) {
|
|
731
|
-
super(FilterType.FilterGroup);
|
|
732
|
-
this.filters = new Map();
|
|
733
|
-
this.logicalOperation = logicalOperation;
|
|
734
|
-
}
|
|
735
|
-
get items() {
|
|
736
|
-
return classToPlain(this.filters, {
|
|
737
|
-
exposeUnsetFields: false,
|
|
738
|
-
excludePrefixes: ['_'],
|
|
739
|
-
});
|
|
740
|
-
}
|
|
741
|
-
/**
|
|
742
|
-
* Returns filter item by index.
|
|
743
|
-
* @param index Item index.
|
|
744
|
-
* @returns Filter.
|
|
745
|
-
*/
|
|
746
|
-
getItemByIndex(index) {
|
|
747
|
-
return this.items[Object.keys(this.items)[index]];
|
|
748
|
-
}
|
|
749
|
-
addSchemaColumnFilterWithParameter(comparisonType, columnPath, parameterValue) {
|
|
750
|
-
const leftExpression = new ColumnExpression({ columnPath });
|
|
751
|
-
const rightExpression = new ParameterExpression({ value: parameterValue });
|
|
752
|
-
const filter = new CompareFilter(comparisonType, leftExpression, rightExpression);
|
|
753
|
-
this.add(filter);
|
|
754
|
-
}
|
|
755
|
-
addSchemaColumnInFilterWithParameters(comparisonType, columnPath, parameterValues) {
|
|
756
|
-
const leftExpression = new ColumnExpression({ columnPath });
|
|
757
|
-
const expressions = parameterValues.map((singleParameterValue) => new ParameterExpression({
|
|
758
|
-
value: singleParameterValue,
|
|
759
|
-
}));
|
|
760
|
-
const filter = new InFilter(comparisonType, leftExpression, expressions);
|
|
761
|
-
this.add(filter);
|
|
762
|
-
}
|
|
763
|
-
addSchemaColumnIsNullFilter(columnPath) {
|
|
764
|
-
const leftExpression = new ColumnExpression({ columnPath });
|
|
765
|
-
const filter = new IsNullFilter(ComparisonType.Is_null, leftExpression);
|
|
766
|
-
this.add(filter);
|
|
767
|
-
}
|
|
768
|
-
addSchemaColumnIsNotNullFilter(columnPath) {
|
|
769
|
-
const leftExpression = new ColumnExpression({ columnPath });
|
|
770
|
-
const filter = new IsNullFilter(ComparisonType.Is_not_null, leftExpression);
|
|
771
|
-
this.add(filter);
|
|
772
|
-
}
|
|
773
|
-
/**
|
|
774
|
-
* Creates and adds filter between less value and greater value.
|
|
775
|
-
* @param columnPath Column path.
|
|
776
|
-
* @param lessParamValue Less parameter value.
|
|
777
|
-
* @param greaterParamValue Greater parameter value.
|
|
778
|
-
*/
|
|
779
|
-
addSchemaColumnBetweenFilterWithParameters(columnPath, lessParamValue, greaterParamValue) {
|
|
780
|
-
const leftExpression = new ColumnExpression({ columnPath });
|
|
781
|
-
const rightLessExpression = new ParameterExpression({ value: lessParamValue });
|
|
782
|
-
const rightGreaterExpression = new ParameterExpression({ value: greaterParamValue });
|
|
783
|
-
const filter = new BetweenFilter(leftExpression, rightLessExpression, rightGreaterExpression);
|
|
784
|
-
this.add(filter);
|
|
785
|
-
}
|
|
786
|
-
addExistsFilter(columnPath, subFilters) {
|
|
787
|
-
const leftExpression = new ColumnExpression({ columnPath });
|
|
788
|
-
const filter = new ExistsFilter(leftExpression, subFilters);
|
|
789
|
-
this.add(filter);
|
|
790
|
-
}
|
|
791
|
-
addNotExistsFilter(columnPath, subFilters) {
|
|
792
|
-
const leftExpression = new ColumnExpression({ columnPath });
|
|
793
|
-
const filter = new ExistsFilter(leftExpression, subFilters, ComparisonType.Not_exists);
|
|
794
|
-
this.add(filter);
|
|
795
|
-
}
|
|
796
|
-
add(filter, filterKey) {
|
|
797
|
-
ValidationUtilities.checkArgumentEmpty('filter', filter);
|
|
798
|
-
const key = filterKey || generateGuid();
|
|
799
|
-
this.filters.set(key, filter);
|
|
800
|
-
}
|
|
801
|
-
clone() {
|
|
802
|
-
const filterGroup = new FilterGroup(this.logicalOperation);
|
|
803
|
-
this.filters.forEach((filter, filterKey) => {
|
|
804
|
-
filterGroup.filters.set(filterKey, filter.clone());
|
|
805
|
-
});
|
|
806
|
-
return filterGroup;
|
|
807
|
-
}
|
|
808
|
-
}
|
|
809
|
-
__decorate([
|
|
810
|
-
Exclude(),
|
|
811
|
-
__metadata("design:type", Object)
|
|
812
|
-
], FilterGroup.prototype, "filters", void 0);
|
|
813
|
-
__decorate([
|
|
814
|
-
Expose(),
|
|
815
|
-
__metadata("design:type", Object),
|
|
816
|
-
__metadata("design:paramtypes", [])
|
|
817
|
-
], FilterGroup.prototype, "items", null);
|
|
818
|
-
|
|
819
|
-
class BaseQueryColumn {
|
|
820
|
-
constructor(expression) {
|
|
821
|
-
this.orderDirection = OrderDirection.None;
|
|
822
|
-
this.orderPosition = -1;
|
|
823
|
-
this.isVisible = true;
|
|
824
|
-
this.expression = expression;
|
|
825
|
-
}
|
|
826
|
-
/**
|
|
827
|
-
* Adds ordering options.
|
|
828
|
-
* @param orderDirection Direction.
|
|
829
|
-
* @param orderPosition Position.
|
|
830
|
-
* @returns Self.
|
|
831
|
-
*/
|
|
832
|
-
withOrdering(orderDirection, orderPosition) {
|
|
833
|
-
ValidationUtilities.checkArgumentEmpty('orderDirection', orderDirection);
|
|
834
|
-
ValidationUtilities.checkArgumentEmpty('orderPosition', orderPosition);
|
|
835
|
-
ValidationUtilities.checkArgumentOutOfRange('orderPosition', orderPosition, { begin: -1 });
|
|
836
|
-
this.orderDirection = orderDirection;
|
|
837
|
-
this.orderPosition = orderPosition;
|
|
838
|
-
return this;
|
|
839
|
-
}
|
|
840
|
-
/**
|
|
841
|
-
* Adds options.
|
|
842
|
-
* @param options Options.
|
|
843
|
-
* @returns Self.
|
|
844
|
-
*/
|
|
845
|
-
withOptions(options) {
|
|
846
|
-
var _a;
|
|
847
|
-
ValidationUtilities.checkArgumentEmpty('options', options);
|
|
848
|
-
this.isVisible = (_a = options.isVisible) !== null && _a !== void 0 ? _a : true;
|
|
849
|
-
return this;
|
|
850
|
-
}
|
|
851
|
-
/**
|
|
852
|
-
* Adds caption.
|
|
853
|
-
* @param caption Caption.
|
|
854
|
-
* @returns Self.
|
|
855
|
-
*/
|
|
856
|
-
withCaption(caption) {
|
|
857
|
-
ValidationUtilities.checkArgumentEmpty('caption', caption);
|
|
858
|
-
this.caption = caption;
|
|
859
|
-
return this;
|
|
860
|
-
}
|
|
861
|
-
}
|
|
862
|
-
|
|
863
|
-
class ArithmeticQueryColumn extends BaseQueryColumn {
|
|
864
|
-
// region Constructors: Public
|
|
865
|
-
constructor(arithmeticOperation, leftArithmeticOperand, rightArithmeticOperand) {
|
|
866
|
-
super(new ArithmeticExpression({ arithmeticOperation, leftArithmeticOperand, rightArithmeticOperand }));
|
|
867
|
-
}
|
|
868
|
-
}
|
|
869
|
-
|
|
870
|
-
class EntityQueryColumn extends BaseQueryColumn {
|
|
871
|
-
// region Constructors: Public
|
|
872
|
-
constructor(columnPath) {
|
|
873
|
-
super(new ColumnExpression({ columnPath }));
|
|
874
|
-
}
|
|
875
|
-
}
|
|
876
|
-
|
|
877
|
-
class ParameterQueryColumn extends BaseQueryColumn {
|
|
878
|
-
// region Constructors: Public
|
|
879
|
-
constructor(value, dataValueType) {
|
|
880
|
-
super(new ParameterExpression({ value, dataValueType }));
|
|
881
|
-
}
|
|
882
|
-
}
|
|
883
|
-
|
|
884
|
-
class AggregationSubQueryColumn extends BaseQueryColumn {
|
|
885
|
-
// region Constructors: Public
|
|
886
|
-
constructor(columnPath, aggregationType, subFilters, subOrderDirection, subOrderColumn) {
|
|
887
|
-
super(new AggregationSubQueryExpression({
|
|
888
|
-
aggregationType,
|
|
889
|
-
columnPath,
|
|
890
|
-
subFilters,
|
|
891
|
-
subOrderDirection,
|
|
892
|
-
subOrderColumn,
|
|
893
|
-
}));
|
|
894
|
-
}
|
|
895
|
-
}
|
|
896
|
-
|
|
897
|
-
class SubQueryColumn extends BaseQueryColumn {
|
|
898
|
-
// region Constructors: Public
|
|
899
|
-
constructor(columnPath, subFilters) {
|
|
900
|
-
super(new SubQueryExpression({ columnPath, subFilters }));
|
|
901
|
-
}
|
|
902
|
-
}
|
|
903
|
-
|
|
904
|
-
class AggregationFunctionColumn extends BaseQueryColumn {
|
|
905
|
-
// region Constructors: Public
|
|
906
|
-
constructor(aggregationType, aggregationEvalType, functionArgument) {
|
|
907
|
-
super(new AggregationFunctionExpression({
|
|
908
|
-
aggregationType,
|
|
909
|
-
aggregationEvalType,
|
|
910
|
-
functionArgument,
|
|
911
|
-
}));
|
|
912
|
-
}
|
|
913
|
-
}
|
|
914
|
-
|
|
915
|
-
class DatePartFunctionColumn extends BaseQueryColumn {
|
|
916
|
-
// region Constructors: Public
|
|
917
|
-
constructor(datePartType, functionArgument) {
|
|
918
|
-
super(new DatePartFunctionExpression({
|
|
919
|
-
datePartType,
|
|
920
|
-
functionArgument,
|
|
921
|
-
}));
|
|
922
|
-
}
|
|
923
|
-
// endregion
|
|
924
|
-
// region Properties: Public
|
|
925
|
-
get datePartType() {
|
|
926
|
-
var _a;
|
|
927
|
-
return (_a = this.expression) === null || _a === void 0 ? void 0 : _a.datePartType;
|
|
928
|
-
}
|
|
929
|
-
}
|
|
930
|
-
|
|
931
|
-
class LengthFunctionColumn extends BaseQueryColumn {
|
|
932
|
-
// region Constructors: Public
|
|
933
|
-
constructor(functionArgument) {
|
|
934
|
-
super(new LengthFunctionExpression({ functionArgument }));
|
|
935
|
-
}
|
|
936
|
-
}
|
|
937
|
-
|
|
938
|
-
class MacrosFunctionColumn extends BaseQueryColumn {
|
|
939
|
-
// region Constructors: Public
|
|
940
|
-
constructor(macrosType) {
|
|
941
|
-
super(new MacrosFunctionExpression({ macrosType }));
|
|
942
|
-
}
|
|
943
|
-
}
|
|
944
|
-
|
|
945
|
-
class WindowFunctionColumn extends BaseQueryColumn {
|
|
946
|
-
// region Constructors: Public
|
|
947
|
-
constructor(functionArgument) {
|
|
948
|
-
super(new WindowFunctionExpression({ functionArgument }));
|
|
949
|
-
}
|
|
950
|
-
}
|
|
951
|
-
|
|
952
7
|
/**
|
|
953
8
|
* @internal
|
|
954
9
|
*/
|
|
955
10
|
function toAggregationType(aggregationFunction) {
|
|
956
11
|
switch (aggregationFunction) {
|
|
957
|
-
case
|
|
958
|
-
return
|
|
959
|
-
case
|
|
960
|
-
return
|
|
961
|
-
case
|
|
962
|
-
return
|
|
963
|
-
case
|
|
964
|
-
return
|
|
965
|
-
case
|
|
966
|
-
return
|
|
967
|
-
case
|
|
968
|
-
return
|
|
12
|
+
case ɵAggregationFunction.Count:
|
|
13
|
+
return ɵAggregationType.Count;
|
|
14
|
+
case ɵAggregationFunction.Sum:
|
|
15
|
+
return ɵAggregationType.Sum;
|
|
16
|
+
case ɵAggregationFunction.Avg:
|
|
17
|
+
return ɵAggregationType.Avg;
|
|
18
|
+
case ɵAggregationFunction.Min:
|
|
19
|
+
return ɵAggregationType.Min;
|
|
20
|
+
case ɵAggregationFunction.Max:
|
|
21
|
+
return ɵAggregationType.Max;
|
|
22
|
+
case ɵAggregationFunction.TopOne:
|
|
23
|
+
return ɵAggregationType.TopOne;
|
|
969
24
|
default:
|
|
970
|
-
return
|
|
25
|
+
return ɵAggregationType.None;
|
|
971
26
|
}
|
|
972
27
|
}
|
|
973
28
|
/**
|
|
@@ -975,20 +30,20 @@ function toAggregationType(aggregationFunction) {
|
|
|
975
30
|
*/
|
|
976
31
|
function toAggregationFunction(aggregationType) {
|
|
977
32
|
switch (aggregationType) {
|
|
978
|
-
case
|
|
979
|
-
return
|
|
980
|
-
case
|
|
981
|
-
return
|
|
982
|
-
case
|
|
983
|
-
return
|
|
984
|
-
case
|
|
985
|
-
return
|
|
986
|
-
case
|
|
987
|
-
return
|
|
988
|
-
case
|
|
989
|
-
return
|
|
33
|
+
case ɵAggregationType.Count:
|
|
34
|
+
return ɵAggregationFunction.Count;
|
|
35
|
+
case ɵAggregationType.Sum:
|
|
36
|
+
return ɵAggregationFunction.Sum;
|
|
37
|
+
case ɵAggregationType.Avg:
|
|
38
|
+
return ɵAggregationFunction.Avg;
|
|
39
|
+
case ɵAggregationType.Min:
|
|
40
|
+
return ɵAggregationFunction.Min;
|
|
41
|
+
case ɵAggregationType.Max:
|
|
42
|
+
return ɵAggregationFunction.Max;
|
|
43
|
+
case ɵAggregationType.TopOne:
|
|
44
|
+
return ɵAggregationFunction.TopOne;
|
|
990
45
|
default:
|
|
991
|
-
return
|
|
46
|
+
return ɵAggregationFunction.None;
|
|
992
47
|
}
|
|
993
48
|
}
|
|
994
49
|
/**
|
|
@@ -997,11 +52,11 @@ function toAggregationFunction(aggregationType) {
|
|
|
997
52
|
function toAggregationEvalType(aggregationEval) {
|
|
998
53
|
switch (aggregationEval) {
|
|
999
54
|
case 'all':
|
|
1000
|
-
return
|
|
55
|
+
return ɵAggregationEvalType.All;
|
|
1001
56
|
case 'distinct':
|
|
1002
|
-
return
|
|
57
|
+
return ɵAggregationEvalType.Distinct;
|
|
1003
58
|
default:
|
|
1004
|
-
return
|
|
59
|
+
return ɵAggregationEvalType.None;
|
|
1005
60
|
}
|
|
1006
61
|
}
|
|
1007
62
|
/**
|
|
@@ -1009,9 +64,9 @@ function toAggregationEvalType(aggregationEval) {
|
|
|
1009
64
|
*/
|
|
1010
65
|
function toAggregationEval(aggregationEvalType) {
|
|
1011
66
|
switch (aggregationEvalType) {
|
|
1012
|
-
case
|
|
67
|
+
case ɵAggregationEvalType.All:
|
|
1013
68
|
return 'all';
|
|
1014
|
-
case
|
|
69
|
+
case ɵAggregationEvalType.Distinct:
|
|
1015
70
|
return 'distinct';
|
|
1016
71
|
default:
|
|
1017
72
|
return 'none';
|
|
@@ -1024,21 +79,21 @@ function toAggregationEval(aggregationEvalType) {
|
|
|
1024
79
|
function toDatePartType(aggregationFunction) {
|
|
1025
80
|
switch (aggregationFunction) {
|
|
1026
81
|
case 'minute':
|
|
1027
|
-
return
|
|
82
|
+
return ɵDatePartType.HourMinute;
|
|
1028
83
|
case 'hour':
|
|
1029
|
-
return
|
|
84
|
+
return ɵDatePartType.Hour;
|
|
1030
85
|
case 'day':
|
|
1031
|
-
return
|
|
86
|
+
return ɵDatePartType.Day;
|
|
1032
87
|
case 'weekday':
|
|
1033
|
-
return
|
|
88
|
+
return ɵDatePartType.WeekDay;
|
|
1034
89
|
case 'week':
|
|
1035
|
-
return
|
|
90
|
+
return ɵDatePartType.Week;
|
|
1036
91
|
case 'month':
|
|
1037
|
-
return
|
|
92
|
+
return ɵDatePartType.Month;
|
|
1038
93
|
case 'year':
|
|
1039
|
-
return
|
|
94
|
+
return ɵDatePartType.Year;
|
|
1040
95
|
default:
|
|
1041
|
-
return
|
|
96
|
+
return ɵDatePartType.None;
|
|
1042
97
|
}
|
|
1043
98
|
}
|
|
1044
99
|
/**
|
|
@@ -1046,19 +101,19 @@ function toDatePartType(aggregationFunction) {
|
|
|
1046
101
|
*/
|
|
1047
102
|
function toDatePart(aggregationType) {
|
|
1048
103
|
switch (aggregationType) {
|
|
1049
|
-
case
|
|
104
|
+
case ɵDatePartType.HourMinute:
|
|
1050
105
|
return 'minute';
|
|
1051
|
-
case
|
|
106
|
+
case ɵDatePartType.Hour:
|
|
1052
107
|
return 'hour';
|
|
1053
|
-
case
|
|
108
|
+
case ɵDatePartType.Day:
|
|
1054
109
|
return 'day';
|
|
1055
|
-
case
|
|
110
|
+
case ɵDatePartType.WeekDay:
|
|
1056
111
|
return 'weekday';
|
|
1057
|
-
case
|
|
112
|
+
case ɵDatePartType.Week:
|
|
1058
113
|
return 'week';
|
|
1059
|
-
case
|
|
114
|
+
case ɵDatePartType.Month:
|
|
1060
115
|
return 'month';
|
|
1061
|
-
case
|
|
116
|
+
case ɵDatePartType.Year:
|
|
1062
117
|
return 'year';
|
|
1063
118
|
default:
|
|
1064
119
|
return 'none';
|
|
@@ -1070,9 +125,9 @@ function toDatePart(aggregationType) {
|
|
|
1070
125
|
*/
|
|
1071
126
|
function toStringFunctionType(functionType) {
|
|
1072
127
|
switch (functionType) {
|
|
1073
|
-
case
|
|
128
|
+
case ɵFunctionType.Aggregation:
|
|
1074
129
|
return 'aggregation';
|
|
1075
|
-
case
|
|
130
|
+
case ɵFunctionType.DatePart:
|
|
1076
131
|
return 'datePart';
|
|
1077
132
|
default:
|
|
1078
133
|
return 'none';
|
|
@@ -1084,11 +139,11 @@ function toStringFunctionType(functionType) {
|
|
|
1084
139
|
function toNumericFunctionType(functionType) {
|
|
1085
140
|
switch (functionType) {
|
|
1086
141
|
case 'aggregation':
|
|
1087
|
-
return
|
|
142
|
+
return ɵFunctionType.Aggregation;
|
|
1088
143
|
case 'datePart':
|
|
1089
|
-
return
|
|
144
|
+
return ɵFunctionType.DatePart;
|
|
1090
145
|
default:
|
|
1091
|
-
return
|
|
146
|
+
return ɵFunctionType.None;
|
|
1092
147
|
}
|
|
1093
148
|
}
|
|
1094
149
|
|
|
@@ -1098,11 +153,11 @@ function toNumericFunctionType(functionType) {
|
|
|
1098
153
|
function toOrderDirection(sortDirection) {
|
|
1099
154
|
switch (sortDirection) {
|
|
1100
155
|
case 'asc':
|
|
1101
|
-
return
|
|
156
|
+
return ɵOrderDirection.Asc;
|
|
1102
157
|
case 'desc':
|
|
1103
|
-
return
|
|
158
|
+
return ɵOrderDirection.Desc;
|
|
1104
159
|
default:
|
|
1105
|
-
return
|
|
160
|
+
return ɵOrderDirection.None;
|
|
1106
161
|
}
|
|
1107
162
|
}
|
|
1108
163
|
/**
|
|
@@ -1110,9 +165,9 @@ function toOrderDirection(sortDirection) {
|
|
|
1110
165
|
*/
|
|
1111
166
|
function toSortDirection(orderDirection) {
|
|
1112
167
|
switch (orderDirection) {
|
|
1113
|
-
case
|
|
168
|
+
case ɵOrderDirection.Asc:
|
|
1114
169
|
return 'asc';
|
|
1115
|
-
case
|
|
170
|
+
case ɵOrderDirection.Desc:
|
|
1116
171
|
return 'desc';
|
|
1117
172
|
default:
|
|
1118
173
|
return 'none';
|
|
@@ -1138,6 +193,7 @@ const crtInjectPrefix = 'crtInject:';
|
|
|
1138
193
|
|
|
1139
194
|
/**
|
|
1140
195
|
* @internal
|
|
196
|
+
* @hostPublicApi
|
|
1141
197
|
*/
|
|
1142
198
|
var ViewElementGroupType;
|
|
1143
199
|
(function (ViewElementGroupType) {
|
|
@@ -1150,6 +206,7 @@ var ViewElementGroupType;
|
|
|
1150
206
|
|
|
1151
207
|
/**
|
|
1152
208
|
* @internal
|
|
209
|
+
* @hostPublicApi
|
|
1153
210
|
*/
|
|
1154
211
|
var ViewElementDataGroupType;
|
|
1155
212
|
(function (ViewElementDataGroupType) {
|
|
@@ -1157,32 +214,15 @@ var ViewElementDataGroupType;
|
|
|
1157
214
|
})(ViewElementDataGroupType || (ViewElementDataGroupType = {}));
|
|
1158
215
|
/**
|
|
1159
216
|
* @internal
|
|
217
|
+
* @hostPublicApi
|
|
1160
218
|
*/
|
|
1161
219
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
1162
220
|
const DesignerToolGroupType = Object.assign(Object.assign({}, ViewElementDataGroupType), ViewElementGroupType);
|
|
1163
221
|
|
|
1164
|
-
/**
|
|
1165
|
-
* @internal
|
|
1166
|
-
*/
|
|
1167
|
-
var DataSourceScope;
|
|
1168
|
-
(function (DataSourceScope) {
|
|
1169
|
-
DataSourceScope["ViewElement"] = "viewElement";
|
|
1170
|
-
DataSourceScope["Page"] = "page";
|
|
1171
|
-
})(DataSourceScope || (DataSourceScope = {}));
|
|
1172
|
-
|
|
1173
|
-
/**
|
|
1174
|
-
* @internal
|
|
1175
|
-
*/
|
|
1176
|
-
var ModelInPageAction;
|
|
1177
|
-
(function (ModelInPageAction) {
|
|
1178
|
-
ModelInPageAction["Edit"] = "edit";
|
|
1179
|
-
ModelInPageAction["Add"] = "add";
|
|
1180
|
-
ModelInPageAction["Copy"] = "copy";
|
|
1181
|
-
})(ModelInPageAction || (ModelInPageAction = {}));
|
|
1182
|
-
|
|
1183
222
|
/**
|
|
1184
223
|
* Handler source types in order of call priority.
|
|
1185
224
|
* @internal
|
|
225
|
+
* @hostPublicApi
|
|
1186
226
|
*/
|
|
1187
227
|
var HandlerSourceType;
|
|
1188
228
|
(function (HandlerSourceType) {
|
|
@@ -1194,52 +234,25 @@ var HandlerSourceType;
|
|
|
1194
234
|
/**
|
|
1195
235
|
* @internal
|
|
1196
236
|
*/
|
|
1197
|
-
var
|
|
1198
|
-
(function (
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
DataSchemaAttributeType["FunctionAttribute"] = "Function";
|
|
1204
|
-
})(DataSchemaAttributeType || (DataSchemaAttributeType = {}));
|
|
1205
|
-
/**
|
|
1206
|
-
* @internal
|
|
1207
|
-
*/
|
|
1208
|
-
var DataSchemaAttributeUsageType;
|
|
1209
|
-
(function (DataSchemaAttributeUsageType) {
|
|
1210
|
-
DataSchemaAttributeUsageType[DataSchemaAttributeUsageType["General"] = 0] = "General";
|
|
1211
|
-
DataSchemaAttributeUsageType[DataSchemaAttributeUsageType["Advanced"] = 1] = "Advanced";
|
|
1212
|
-
DataSchemaAttributeUsageType[DataSchemaAttributeUsageType["None"] = 2] = "None";
|
|
1213
|
-
})(DataSchemaAttributeUsageType || (DataSchemaAttributeUsageType = {}));
|
|
1214
|
-
|
|
1215
|
-
/**
|
|
1216
|
-
* Type of DataSchema. In combination with the name is used for unique identification of {@link DataSchema}.
|
|
1217
|
-
* @internal
|
|
1218
|
-
*/
|
|
1219
|
-
var DataSchemaType;
|
|
1220
|
-
(function (DataSchemaType) {
|
|
1221
|
-
DataSchemaType["Entity"] = "Entity";
|
|
1222
|
-
DataSchemaType["ClientUnit"] = "ClientUnit";
|
|
1223
|
-
})(DataSchemaType || (DataSchemaType = {}));
|
|
1224
|
-
|
|
1225
|
-
/**
|
|
1226
|
-
* @internal
|
|
1227
|
-
*/
|
|
1228
|
-
var DefaultValueSource;
|
|
1229
|
-
(function (DefaultValueSource) {
|
|
1230
|
-
DefaultValueSource[DefaultValueSource["None"] = 0] = "None";
|
|
1231
|
-
DefaultValueSource[DefaultValueSource["Const"] = 1] = "Const";
|
|
1232
|
-
DefaultValueSource[DefaultValueSource["Settings"] = 2] = "Settings";
|
|
1233
|
-
DefaultValueSource[DefaultValueSource["SystemValue"] = 3] = "SystemValue";
|
|
1234
|
-
DefaultValueSource[DefaultValueSource["Sequence"] = 4] = "Sequence";
|
|
1235
|
-
})(DefaultValueSource || (DefaultValueSource = {}));
|
|
237
|
+
var ModelInPageAction;
|
|
238
|
+
(function (ModelInPageAction) {
|
|
239
|
+
ModelInPageAction["Edit"] = "edit";
|
|
240
|
+
ModelInPageAction["Add"] = "add";
|
|
241
|
+
ModelInPageAction["Copy"] = "copy";
|
|
242
|
+
})(ModelInPageAction || (ModelInPageAction = {}));
|
|
1236
243
|
|
|
1237
244
|
const global$3 = window;
|
|
1238
245
|
/**
|
|
1239
|
-
* @
|
|
246
|
+
* @public
|
|
247
|
+
* @description For internal use only.
|
|
248
|
+
* @hostPublicApi
|
|
1240
249
|
*/
|
|
1241
|
-
|
|
250
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
251
|
+
class ɵBaseRegistry {
|
|
1242
252
|
constructor() {
|
|
253
|
+
/**
|
|
254
|
+
* @hostPubicApi available through window.creatio.registry.<registryKey>.store
|
|
255
|
+
*/
|
|
1243
256
|
this.store = {
|
|
1244
257
|
typeInfos: new Map(),
|
|
1245
258
|
};
|
|
@@ -1256,12 +269,12 @@ class BaseRegistry {
|
|
|
1256
269
|
return this._instance.store;
|
|
1257
270
|
}
|
|
1258
271
|
}
|
|
1259
|
-
|
|
272
|
+
ɵBaseRegistry._prefix = 'creatio.registry.';
|
|
1260
273
|
|
|
1261
274
|
/**
|
|
1262
275
|
* @internal
|
|
1263
276
|
*/
|
|
1264
|
-
class PkgTopology extends
|
|
277
|
+
class PkgTopology extends ɵBaseRegistry {
|
|
1265
278
|
static get items() {
|
|
1266
279
|
return this.store.typeInfos;
|
|
1267
280
|
}
|
|
@@ -1318,17 +331,29 @@ class HandlersOrderComparer {
|
|
|
1318
331
|
|
|
1319
332
|
/**
|
|
1320
333
|
* @internal
|
|
334
|
+
* @hostPublicApi available through window.handlerChain
|
|
1321
335
|
*/
|
|
1322
336
|
class InternalHandlerChain {
|
|
1323
337
|
constructor() {
|
|
1324
338
|
this._handlers = [];
|
|
339
|
+
this._requestListeners = new Map();
|
|
1325
340
|
this._handlersCache = new Map();
|
|
1326
341
|
this._handlersScopesByContextId = new Map();
|
|
342
|
+
/**
|
|
343
|
+
* @hostPublicApi
|
|
344
|
+
*/
|
|
1327
345
|
this.handlerChain$ = {
|
|
346
|
+
/**
|
|
347
|
+
* @hostPublicApi
|
|
348
|
+
*/
|
|
1328
349
|
process: (request) => __awaiter(this, void 0, void 0, function* () {
|
|
1329
350
|
const handler = this._getHandler(request);
|
|
351
|
+
this._requestListeners.forEach((listener) => listener === null || listener === void 0 ? void 0 : listener(request));
|
|
1330
352
|
return handler === null || handler === void 0 ? void 0 : handler.handle(request);
|
|
1331
353
|
}),
|
|
354
|
+
/**
|
|
355
|
+
* @hostPublicApi
|
|
356
|
+
*/
|
|
1332
357
|
register: (info) => {
|
|
1333
358
|
this._handlersCache.delete(info.requestType);
|
|
1334
359
|
this._handlers.push(info);
|
|
@@ -1343,8 +368,27 @@ class InternalHandlerChain {
|
|
|
1343
368
|
}
|
|
1344
369
|
};
|
|
1345
370
|
},
|
|
371
|
+
/**
|
|
372
|
+
* @hostPublicApi
|
|
373
|
+
*/
|
|
374
|
+
subscribe: (callback, context) => {
|
|
375
|
+
if (!callback) {
|
|
376
|
+
return () => void 0;
|
|
377
|
+
}
|
|
378
|
+
const listenerId = ɵgenerateGuid();
|
|
379
|
+
const listenerFn = (request) => {
|
|
380
|
+
if (!context || request.$context === context) {
|
|
381
|
+
callback(request);
|
|
382
|
+
}
|
|
383
|
+
};
|
|
384
|
+
this._requestListeners.set(listenerId, listenerFn);
|
|
385
|
+
return () => this._requestListeners.delete(listenerId);
|
|
386
|
+
},
|
|
1346
387
|
};
|
|
1347
388
|
}
|
|
389
|
+
/**
|
|
390
|
+
* @hostPublicApi
|
|
391
|
+
*/
|
|
1348
392
|
clearContextedHandlersCache(contextId) {
|
|
1349
393
|
var _a;
|
|
1350
394
|
const configs = (_a = this._handlersScopesByContextId.get(contextId)) !== null && _a !== void 0 ? _a : [];
|
|
@@ -1431,7 +475,7 @@ class InternalHandlerChain {
|
|
|
1431
475
|
handlers[index].setNext(handlers[index + 1]);
|
|
1432
476
|
}
|
|
1433
477
|
catch (error) {
|
|
1434
|
-
if (error instanceof
|
|
478
|
+
if (error instanceof ɵNextHandlerAlreadySpecifiedException) {
|
|
1435
479
|
throw new Error('Handler factory should return new instance of ' +
|
|
1436
480
|
'BaseRequestHandler class or its subclass ' +
|
|
1437
481
|
'(next handler should not be specified)');
|
|
@@ -1449,11 +493,6 @@ const global$2 = window;
|
|
|
1449
493
|
* @classdesc Service to design handlers in chain.
|
|
1450
494
|
*/
|
|
1451
495
|
class HandlerChainService {
|
|
1452
|
-
constructor() {
|
|
1453
|
-
if (!this._chain) {
|
|
1454
|
-
this._createGlobalHandlerChain();
|
|
1455
|
-
}
|
|
1456
|
-
}
|
|
1457
496
|
get _chain() {
|
|
1458
497
|
return global$2.handlerChain;
|
|
1459
498
|
}
|
|
@@ -1463,6 +502,11 @@ class HandlerChainService {
|
|
|
1463
502
|
static get instance() {
|
|
1464
503
|
return HandlerChainService._instance || (HandlerChainService._instance = new HandlerChainService());
|
|
1465
504
|
}
|
|
505
|
+
constructor() {
|
|
506
|
+
if (!this._chain) {
|
|
507
|
+
this._createGlobalHandlerChain();
|
|
508
|
+
}
|
|
509
|
+
}
|
|
1466
510
|
_createGlobalHandlerChain() {
|
|
1467
511
|
this._chain = new InternalHandlerChain();
|
|
1468
512
|
}
|
|
@@ -1480,12 +524,24 @@ class HandlerChainService {
|
|
|
1480
524
|
}
|
|
1481
525
|
/**
|
|
1482
526
|
* @description Method to process passed request
|
|
1483
|
-
* @param request - {@link
|
|
527
|
+
* @param request - {@link ɵBaseRequest}
|
|
1484
528
|
* @return `Promise<unknown>`
|
|
1485
529
|
*/
|
|
1486
530
|
process(request) {
|
|
1487
531
|
return this._chain.handlerChain$.process(request);
|
|
1488
532
|
}
|
|
533
|
+
/**
|
|
534
|
+
* @internal
|
|
535
|
+
* Subscribes to requests.
|
|
536
|
+
* @param callback A handler function for each request triggered.
|
|
537
|
+
* @param context (optional) A context in which the requests were triggered.
|
|
538
|
+
* The `callback` will be called only for requests with specified context.
|
|
539
|
+
* If not specified, will be called for all requests.
|
|
540
|
+
* @returns A function to cancel the subscription.
|
|
541
|
+
*/
|
|
542
|
+
subscribe(callback, context) {
|
|
543
|
+
return this._chain.handlerChain$.subscribe(callback, context);
|
|
544
|
+
}
|
|
1489
545
|
}
|
|
1490
546
|
|
|
1491
547
|
/**
|
|
@@ -1533,6 +589,13 @@ function checkTypeNameFormat(type, element) {
|
|
|
1533
589
|
throw new Error(`Error when register ${type}. Type property should have format "VendorPrefix.${element}"`);
|
|
1534
590
|
}
|
|
1535
591
|
}
|
|
592
|
+
/**
|
|
593
|
+
* @public
|
|
594
|
+
* @description For internal use only.
|
|
595
|
+
*/
|
|
596
|
+
function ɵcheckTypeNameFormat(type, element) {
|
|
597
|
+
return checkTypeNameFormat(type, element);
|
|
598
|
+
}
|
|
1536
599
|
/**
|
|
1537
600
|
* @internal
|
|
1538
601
|
*/
|
|
@@ -1579,23 +642,36 @@ function checkOnlyOneRegistration(type, item, map) {
|
|
|
1579
642
|
var _a;
|
|
1580
643
|
/**
|
|
1581
644
|
* @internal
|
|
645
|
+
* @hostPublicApi available through window.creatio.requestHandlerRegistry
|
|
1582
646
|
*/
|
|
1583
647
|
class InternalRequestHandlerRegistryType {
|
|
648
|
+
/**
|
|
649
|
+
* @publicHostApi
|
|
650
|
+
*/
|
|
1584
651
|
static get requestHandlersMap() {
|
|
1585
652
|
return this._requestHandlersMap;
|
|
1586
653
|
}
|
|
654
|
+
/**
|
|
655
|
+
* @publicHostApi
|
|
656
|
+
*/
|
|
1587
657
|
static onAddRequestHandler(handler) {
|
|
1588
658
|
this._addItemListeners.push(handler);
|
|
1589
659
|
return () => {
|
|
1590
660
|
this._addItemListeners.splice(this._addItemListeners.indexOf(handler), 1);
|
|
1591
661
|
};
|
|
1592
662
|
}
|
|
663
|
+
/**
|
|
664
|
+
* @publicHostApi
|
|
665
|
+
*/
|
|
1593
666
|
static onRemoveRequestHandler(handler) {
|
|
1594
667
|
this._removeItemListeners.push(handler);
|
|
1595
668
|
return () => {
|
|
1596
669
|
this._removeItemListeners.splice(this._removeItemListeners.indexOf(handler), 1);
|
|
1597
670
|
};
|
|
1598
671
|
}
|
|
672
|
+
/**
|
|
673
|
+
* @publicHostApi
|
|
674
|
+
*/
|
|
1599
675
|
static addRequestHandler(handlerType, config) {
|
|
1600
676
|
if (!this._requestHandlersMap.has(handlerType)) {
|
|
1601
677
|
this._requestHandlersMap.set(handlerType, config);
|
|
@@ -1604,6 +680,9 @@ class InternalRequestHandlerRegistryType {
|
|
|
1604
680
|
}
|
|
1605
681
|
}
|
|
1606
682
|
}
|
|
683
|
+
/**
|
|
684
|
+
* @publicHostApi
|
|
685
|
+
*/
|
|
1607
686
|
static removeRequestHandler(handlerType) {
|
|
1608
687
|
const config = this._requestHandlersMap.get(handlerType);
|
|
1609
688
|
if (config) {
|
|
@@ -1688,8 +767,9 @@ RequestRegistryService._requestsRegistrationInfos = new Map();
|
|
|
1688
767
|
|
|
1689
768
|
/**
|
|
1690
769
|
* @internal
|
|
770
|
+
* @hostPublicApi available through window.creatio.registry.ConverterRegistry
|
|
1691
771
|
*/
|
|
1692
|
-
class ConverterRegistry extends
|
|
772
|
+
class ConverterRegistry extends ɵBaseRegistry {
|
|
1693
773
|
static get(type) {
|
|
1694
774
|
if (!this.store.typeInfos.has(type)) {
|
|
1695
775
|
throw new Error(`'${type}' converter doesn't exist`);
|
|
@@ -1714,8 +794,9 @@ ConverterRegistry.registryKey = 'ConverterRegistry';
|
|
|
1714
794
|
const viewElementRegistryKey = 'ViewElementRegistry';
|
|
1715
795
|
/**
|
|
1716
796
|
* @internal
|
|
797
|
+
* @hostPublicApi available through window.creatio.registry.ValidatorRegistry
|
|
1717
798
|
*/
|
|
1718
|
-
class ViewElementRegistry extends
|
|
799
|
+
class ViewElementRegistry extends ɵBaseRegistry {
|
|
1719
800
|
static validate(config) {
|
|
1720
801
|
checkTypeNameFormat(config.type, 'ViewElementTypeName');
|
|
1721
802
|
checkOnlyOneRegistration(config.type, config, ViewElementRegistry.viewElements);
|
|
@@ -1740,8 +821,9 @@ ViewElementRegistry.registryKey = viewElementRegistryKey;
|
|
|
1740
821
|
const interfaceDesignerItemRegistryKey = 'InterfaceDesignerItemRegistry';
|
|
1741
822
|
/**
|
|
1742
823
|
* @internal
|
|
824
|
+
* @hostPublicApi available through window.creatio.registry.InterfaceDesignerItemRegistry
|
|
1743
825
|
*/
|
|
1744
|
-
class InterfaceDesignerItemRegistry extends
|
|
826
|
+
class InterfaceDesignerItemRegistry extends ɵBaseRegistry {
|
|
1745
827
|
static validate(config) {
|
|
1746
828
|
checkTypeNameFormat(config.type, 'InterfaceDesignerItemTypeName');
|
|
1747
829
|
checkCrtTypeNamePascalCase(config.type);
|
|
@@ -1764,15 +846,16 @@ const global = window;
|
|
|
1764
846
|
* @internal
|
|
1765
847
|
*/
|
|
1766
848
|
class BootstrapNotifier {
|
|
1767
|
-
constructor() {
|
|
1768
|
-
this._subscribers = new Set();
|
|
1769
|
-
}
|
|
1770
849
|
static get instance() {
|
|
1771
850
|
if (!global.__crtModuleBootstrapNotifier) {
|
|
1772
851
|
global.__crtModuleBootstrapNotifier = new BootstrapNotifier();
|
|
1773
852
|
}
|
|
1774
853
|
return global.__crtModuleBootstrapNotifier;
|
|
1775
854
|
}
|
|
855
|
+
constructor() {
|
|
856
|
+
this._subscribers = new Set();
|
|
857
|
+
// private constructor prevent instantiation via 'new' keyword
|
|
858
|
+
}
|
|
1776
859
|
notify(moduleType) {
|
|
1777
860
|
for (const subscriber of this._subscribers.values()) {
|
|
1778
861
|
subscriber(moduleType);
|
|
@@ -1789,7 +872,7 @@ class BootstrapNotifier {
|
|
|
1789
872
|
/**
|
|
1790
873
|
* @internal
|
|
1791
874
|
*/
|
|
1792
|
-
class HandlerChainServicesRegistry extends
|
|
875
|
+
class HandlerChainServicesRegistry extends ɵBaseRegistry {
|
|
1793
876
|
static validate({ requestType }) {
|
|
1794
877
|
checkTypeNameFormat(requestType, this.registryKey);
|
|
1795
878
|
checkCrtTypeNamePascalCase(requestType);
|
|
@@ -1816,8 +899,9 @@ HandlerChainServicesRegistry.registryKey = 'HandlerChainServicesRegistry';
|
|
|
1816
899
|
const designTimeViewElementRegistryKey = 'DesignTimeViewElementRegistry';
|
|
1817
900
|
/**
|
|
1818
901
|
* @internal
|
|
902
|
+
* @hostPublicApi available through window.creatio.registry.DesignTimeViewElementRegistry
|
|
1819
903
|
*/
|
|
1820
|
-
class DesignTimeViewElementRegistry extends
|
|
904
|
+
class DesignTimeViewElementRegistry extends ɵBaseRegistry {
|
|
1821
905
|
static validate(config) {
|
|
1822
906
|
checkTypeNameFormat(config.type, 'DesignTimeViewElementRegistryItemTypeName');
|
|
1823
907
|
checkCrtTypeNamePascalCase(config.type);
|
|
@@ -1850,8 +934,9 @@ class ValidatorMapValue {
|
|
|
1850
934
|
const validatorRegistryKey = 'ValidatorRegistry';
|
|
1851
935
|
/**
|
|
1852
936
|
* @internal
|
|
937
|
+
* @hostPublicApi available through window.creatio.registry.ValidatorRegistry
|
|
1853
938
|
*/
|
|
1854
|
-
class ValidatorRegistry extends
|
|
939
|
+
class ValidatorRegistry extends ɵBaseRegistry {
|
|
1855
940
|
static _has(configType, type) {
|
|
1856
941
|
var _a;
|
|
1857
942
|
return ValidatorRegistry.items.has(configType) && ((_a = ValidatorRegistry.items.get(configType)) === null || _a === void 0 ? void 0 : _a.typeRef) !== type;
|
|
@@ -1875,7 +960,7 @@ ValidatorRegistry.registryKey = validatorRegistryKey;
|
|
|
1875
960
|
* @internal
|
|
1876
961
|
* @dontChange
|
|
1877
962
|
*/
|
|
1878
|
-
class RemoteEntriesRegistry extends
|
|
963
|
+
class RemoteEntriesRegistry extends ɵBaseRegistry {
|
|
1879
964
|
/**
|
|
1880
965
|
* @dontChange
|
|
1881
966
|
*/
|
|
@@ -2121,32 +1206,45 @@ function instantiate(type, resolveDependency) {
|
|
|
2121
1206
|
}
|
|
2122
1207
|
return new type();
|
|
2123
1208
|
}
|
|
2124
|
-
|
|
2125
1209
|
/**
|
|
2126
1210
|
* @public
|
|
1211
|
+
* @description For internal use only.
|
|
2127
1212
|
*/
|
|
2128
|
-
|
|
1213
|
+
function ɵinstantiate(type, resolveDependency) {
|
|
1214
|
+
return instantiate(type, resolveDependency);
|
|
2129
1215
|
}
|
|
2130
1216
|
|
|
2131
1217
|
/**
|
|
2132
1218
|
* @public
|
|
2133
|
-
* @class BaseRequest
|
|
2134
|
-
* @describe Base definition of request.
|
|
2135
|
-
* @template TEvent
|
|
2136
1219
|
*/
|
|
2137
|
-
class
|
|
1220
|
+
class CrtInputRegistrationConfig {
|
|
2138
1221
|
}
|
|
2139
1222
|
|
|
2140
1223
|
/**
|
|
2141
1224
|
* @public
|
|
2142
1225
|
* @class DataRequest
|
|
2143
1226
|
* @description Definition of data source request.
|
|
2144
|
-
* @extends {
|
|
1227
|
+
* @extends {ɵBaseRequest} {@link ɵBaseRequest}
|
|
2145
1228
|
* @property {string} dataSourceName - name of assigned data source.
|
|
2146
1229
|
*/
|
|
2147
|
-
class DataRequest extends
|
|
1230
|
+
class DataRequest extends ɵBaseRequest {
|
|
2148
1231
|
}
|
|
2149
1232
|
|
|
1233
|
+
/**
|
|
1234
|
+
* @internal
|
|
1235
|
+
*/
|
|
1236
|
+
var ViewElementReuseStrategy;
|
|
1237
|
+
(function (ViewElementReuseStrategy) {
|
|
1238
|
+
/**
|
|
1239
|
+
* Reuse early created view element when it state changed
|
|
1240
|
+
*/
|
|
1241
|
+
ViewElementReuseStrategy[ViewElementReuseStrategy["Reuse"] = 0] = "Reuse";
|
|
1242
|
+
/**
|
|
1243
|
+
* Rerender(recreate) view element when it state changed
|
|
1244
|
+
*/
|
|
1245
|
+
ViewElementReuseStrategy[ViewElementReuseStrategy["Rerender"] = 1] = "Rerender";
|
|
1246
|
+
})(ViewElementReuseStrategy || (ViewElementReuseStrategy = {}));
|
|
1247
|
+
|
|
2150
1248
|
/**
|
|
2151
1249
|
* @public
|
|
2152
1250
|
* @description Abstract Base Validator class for designing custom validators.
|
|
@@ -2234,6 +1332,7 @@ function applyLocalizeMetadataFn(obj, localizeMetadata) {
|
|
|
2234
1332
|
/**
|
|
2235
1333
|
* @internal
|
|
2236
1334
|
*/
|
|
1335
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
2237
1336
|
function CrtDesignTimeViewElement(config) {
|
|
2238
1337
|
return function (type) {
|
|
2239
1338
|
const registrationConfig = Object.assign(Object.assign({}, config), { typeRef: type });
|
|
@@ -2255,324 +1354,7 @@ function CrtRequest(config) {
|
|
|
2255
1354
|
|
|
2256
1355
|
/**
|
|
2257
1356
|
* @internal
|
|
2258
|
-
|
|
2259
|
-
class BaseQuery {
|
|
2260
|
-
// region Constructors: Protected
|
|
2261
|
-
constructor(operationType, rootSchemaName) {
|
|
2262
|
-
this.operationType = operationType;
|
|
2263
|
-
this.rootSchemaName = rootSchemaName;
|
|
2264
|
-
ValidationUtilities.checkArgumentEmpty('_operationType', operationType);
|
|
2265
|
-
ValidationUtilities.checkArgumentEmpty('_rootSchemaName', rootSchemaName);
|
|
2266
|
-
}
|
|
2267
|
-
// endregion
|
|
2268
|
-
// region Methods: Public
|
|
2269
|
-
getMetadata() {
|
|
2270
|
-
return classToPlain(this, { exposeUnsetFields: false, excludePrefixes: ['_'] });
|
|
2271
|
-
}
|
|
2272
|
-
}
|
|
2273
|
-
|
|
2274
|
-
/**
|
|
2275
|
-
* @internal
|
|
2276
|
-
*/
|
|
2277
|
-
class BaseFilterableQuery extends BaseQuery {
|
|
2278
|
-
// endregion
|
|
2279
|
-
// region Constructors: Protected
|
|
2280
|
-
constructor(operationType, rootSchemaName) {
|
|
2281
|
-
super(operationType, rootSchemaName);
|
|
2282
|
-
// region Properties: Public
|
|
2283
|
-
this.filters = new FilterGroup();
|
|
2284
|
-
}
|
|
2285
|
-
}
|
|
2286
|
-
|
|
2287
|
-
/**
|
|
2288
|
-
* @internal
|
|
2289
|
-
*/
|
|
2290
|
-
var QueryOperationType;
|
|
2291
|
-
(function (QueryOperationType) {
|
|
2292
|
-
QueryOperationType[QueryOperationType["Select"] = 0] = "Select";
|
|
2293
|
-
QueryOperationType[QueryOperationType["Insert"] = 1] = "Insert";
|
|
2294
|
-
QueryOperationType[QueryOperationType["Update"] = 2] = "Update";
|
|
2295
|
-
QueryOperationType[QueryOperationType["Delete"] = 3] = "Delete";
|
|
2296
|
-
// Batch,
|
|
2297
|
-
// ListSelect,
|
|
2298
|
-
// FilteredSelect,
|
|
2299
|
-
// LookupSelect
|
|
2300
|
-
})(QueryOperationType || (QueryOperationType = {}));
|
|
2301
|
-
|
|
2302
|
-
/**
|
|
2303
|
-
* @internal
|
|
2304
|
-
*/
|
|
2305
|
-
class DeleteQuery extends BaseFilterableQuery {
|
|
2306
|
-
// region Constructors: Public
|
|
2307
|
-
constructor(rootSchemaName) {
|
|
2308
|
-
super(QueryOperationType.Delete, rootSchemaName);
|
|
2309
|
-
}
|
|
2310
|
-
}
|
|
2311
|
-
|
|
2312
|
-
/**
|
|
2313
|
-
* @internal
|
|
2314
|
-
*/
|
|
2315
|
-
class EntitySchemaQuery extends BaseFilterableQuery {
|
|
2316
|
-
// endregion
|
|
2317
|
-
// region Constructors: Public
|
|
2318
|
-
constructor(rootSchemaName) {
|
|
2319
|
-
super(QueryOperationType.Select, rootSchemaName);
|
|
2320
|
-
// region Properties: Private
|
|
2321
|
-
this._columns = new Map();
|
|
2322
|
-
// endregion
|
|
2323
|
-
// region Properties: Public
|
|
2324
|
-
this.isDistinct = false;
|
|
2325
|
-
/**
|
|
2326
|
-
* Number of rows to select.
|
|
2327
|
-
*/
|
|
2328
|
-
this.rowCount = -1;
|
|
2329
|
-
/**
|
|
2330
|
-
* Rows count to skip.
|
|
2331
|
-
*/
|
|
2332
|
-
this.rowsOffset = -1;
|
|
2333
|
-
this.useLocalization = true;
|
|
2334
|
-
this._getIsPageable = () => this.rowCount > 0 && this.rowsOffset > -1;
|
|
2335
|
-
}
|
|
2336
|
-
// endregion
|
|
2337
|
-
// region Methods: Private
|
|
2338
|
-
_internalAddColumn(key, column) {
|
|
2339
|
-
if (!this._columns.has(key)) {
|
|
2340
|
-
this._columns.set(key, column);
|
|
2341
|
-
}
|
|
2342
|
-
}
|
|
2343
|
-
// endregion
|
|
2344
|
-
// region Methods: Public
|
|
2345
|
-
/**
|
|
2346
|
-
* Returns column instance by column alias.
|
|
2347
|
-
* @param columnAlias Column alias.
|
|
2348
|
-
* @returns [BaseQueryColumn] Column instance.
|
|
2349
|
-
*/
|
|
2350
|
-
getColumn(columnAlias) {
|
|
2351
|
-
if (!this._columns.has(columnAlias)) {
|
|
2352
|
-
throw new ItemNotFoundException(columnAlias);
|
|
2353
|
-
}
|
|
2354
|
-
return this.findColumn(columnAlias);
|
|
2355
|
-
}
|
|
2356
|
-
/**
|
|
2357
|
-
* Returns column instance by column alias if not found returns null.
|
|
2358
|
-
*/
|
|
2359
|
-
findColumn(columnAlias) {
|
|
2360
|
-
return this._columns.get(columnAlias);
|
|
2361
|
-
}
|
|
2362
|
-
/**
|
|
2363
|
-
* @inheritDoc
|
|
2364
|
-
*/
|
|
2365
|
-
getMetadata() {
|
|
2366
|
-
return Object.assign(Object.assign({}, super.getMetadata()), { columns: {
|
|
2367
|
-
items: classToPlain(this._columns, { exposeUnsetFields: false, excludePrefixes: ['_'] }),
|
|
2368
|
-
}, allColumns: false, isDistinct: this.isDistinct, ignoreDisplayValues: false, rowCount: this.rowCount, rowsOffset: this.rowsOffset, isPageable: this._getIsPageable(), conditionalValues: this.conditionalValues ? this.conditionalValues : null, isHierarchical: false, hierarchicalMaxDepth: 0, hierarchicalColumnName: null, hierarchicalColumnValue: null, useLocalization: this.useLocalization, useRecordDeactivation: false });
|
|
2369
|
-
}
|
|
2370
|
-
/**
|
|
2371
|
-
* Add column.
|
|
2372
|
-
* @param column Column path.
|
|
2373
|
-
* @param columnAlias Column alias.
|
|
2374
|
-
* @returns [BaseQueryColumn] Column instance.
|
|
2375
|
-
*/
|
|
2376
|
-
addColumn(column, columnAlias) {
|
|
2377
|
-
this._internalAddColumn(columnAlias, column);
|
|
2378
|
-
return column;
|
|
2379
|
-
}
|
|
2380
|
-
/**
|
|
2381
|
-
* Add column by column path.
|
|
2382
|
-
* @param columnPath Column path.
|
|
2383
|
-
* @param columnAlias Column alias.
|
|
2384
|
-
* @returns [EntityQueryColumn] Column instance.
|
|
2385
|
-
*/
|
|
2386
|
-
addSchemaColumn(columnPath, columnAlias) {
|
|
2387
|
-
ValidationUtilities.checkArgumentEmpty('columnPath', columnPath);
|
|
2388
|
-
const column = new EntityQueryColumn(columnPath);
|
|
2389
|
-
this._internalAddColumn(columnAlias || columnPath, column);
|
|
2390
|
-
return column;
|
|
2391
|
-
}
|
|
2392
|
-
/**
|
|
2393
|
-
* Add aggregation sub query column.
|
|
2394
|
-
* @param columnPath Column path.
|
|
2395
|
-
* @param aggregationType Aggregation type.
|
|
2396
|
-
* @param subFilters Sub query filters.
|
|
2397
|
-
* @param columnAlias Column alias.
|
|
2398
|
-
* @returns [AggregationSubQueryColumn] Column instance.
|
|
2399
|
-
*/
|
|
2400
|
-
addAggregationSubQueryColumn(columnPath, aggregationType, aggregationConfig, columnAlias) {
|
|
2401
|
-
const column = new AggregationSubQueryColumn(columnPath, aggregationType, aggregationConfig.filter, aggregationConfig.sortByDirection, aggregationConfig.sortByColumn);
|
|
2402
|
-
this._internalAddColumn(columnAlias || columnPath, column);
|
|
2403
|
-
return column;
|
|
2404
|
-
}
|
|
2405
|
-
/**
|
|
2406
|
-
* Add parameter column.
|
|
2407
|
-
* @param value Parameter value.
|
|
2408
|
-
* @param dataValueType Parameter data value type.
|
|
2409
|
-
* @param columnAlias Column alias.
|
|
2410
|
-
* @returns [ParameterQueryColumn] Column instance.
|
|
2411
|
-
*/
|
|
2412
|
-
addParameterColumn(value, dataValueType, columnAlias) {
|
|
2413
|
-
const column = new ParameterQueryColumn(value, dataValueType);
|
|
2414
|
-
this._internalAddColumn(columnAlias, column);
|
|
2415
|
-
return column;
|
|
2416
|
-
}
|
|
2417
|
-
/**
|
|
2418
|
-
* Add arithmetic column.
|
|
2419
|
-
* @param arithmeticOperation Arithmetic operation.
|
|
2420
|
-
* @param leftArithmeticOperand Left arithmetic operand expression.
|
|
2421
|
-
* @param rightArithmeticOperand Right arithmetic operand expression.
|
|
2422
|
-
* @param columnAlias Column alias.
|
|
2423
|
-
* @returns [ArithmeticQueryColumn] Column instance.
|
|
2424
|
-
*/
|
|
2425
|
-
addArithmeticColumn(arithmeticOperation, leftArithmeticOperand, rightArithmeticOperand, columnAlias) {
|
|
2426
|
-
const column = new ArithmeticQueryColumn(arithmeticOperation, leftArithmeticOperand, rightArithmeticOperand);
|
|
2427
|
-
this._internalAddColumn(columnAlias, column);
|
|
2428
|
-
return column;
|
|
2429
|
-
}
|
|
2430
|
-
/**
|
|
2431
|
-
* Add macros function column.
|
|
2432
|
-
* @param queryMacrosType Macros type.
|
|
2433
|
-
* @param columnAlias Column alias.
|
|
2434
|
-
* @returns [MacrosFunctionColumn] Column instance.
|
|
2435
|
-
*/
|
|
2436
|
-
addMacrosFunctionColumn(queryMacrosType, columnAlias) {
|
|
2437
|
-
const column = new MacrosFunctionColumn(queryMacrosType);
|
|
2438
|
-
this._internalAddColumn(columnAlias, column);
|
|
2439
|
-
return column;
|
|
2440
|
-
}
|
|
2441
|
-
/**
|
|
2442
|
-
* Add date part function column.
|
|
2443
|
-
* @param columnPath Column path.
|
|
2444
|
-
* @param datePartType Date part type.
|
|
2445
|
-
* @param columnAlias Column alias.
|
|
2446
|
-
* @returns [DatePartFunctionColumn] Column instance.
|
|
2447
|
-
*/
|
|
2448
|
-
addDatePartFunctionColumn(columnPath, datePartType, columnAlias) {
|
|
2449
|
-
const functionArgument = new ColumnExpression({ columnPath });
|
|
2450
|
-
const column = new DatePartFunctionColumn(datePartType, functionArgument);
|
|
2451
|
-
this._internalAddColumn(columnAlias, column);
|
|
2452
|
-
return column;
|
|
2453
|
-
}
|
|
2454
|
-
/**
|
|
2455
|
-
* Add aggregation function column.
|
|
2456
|
-
* @param columnPath Column path.
|
|
2457
|
-
* @param aggregationType Aggregation type.
|
|
2458
|
-
* @param columnAlias Column alias.
|
|
2459
|
-
* @param aggregationEvalType Aggregation eval type.
|
|
2460
|
-
* @returns [AggregationFunctionColumn] Column instance.
|
|
2461
|
-
*/
|
|
2462
|
-
addAggregationFunctionColumn(columnPath, aggregationType, columnAlias, aggregationEvalType = AggregationEvalType.None) {
|
|
2463
|
-
const functionArgument = new ColumnExpression({ columnPath });
|
|
2464
|
-
const column = new AggregationFunctionColumn(aggregationType, aggregationEvalType, functionArgument);
|
|
2465
|
-
this._internalAddColumn(columnAlias, column);
|
|
2466
|
-
return column;
|
|
2467
|
-
}
|
|
2468
|
-
/**
|
|
2469
|
-
* Add length function column.
|
|
2470
|
-
* @param columnPath Column path.
|
|
2471
|
-
* @param columnAlias Column alias.
|
|
2472
|
-
* @returns [LengthFunctionColumn] Column instance.
|
|
2473
|
-
*/
|
|
2474
|
-
addLengthFunctionColumn(columnPath, columnAlias) {
|
|
2475
|
-
const functionArgument = new ColumnExpression({ columnPath });
|
|
2476
|
-
const column = new LengthFunctionColumn(functionArgument);
|
|
2477
|
-
this._internalAddColumn(columnAlias, column);
|
|
2478
|
-
return column;
|
|
2479
|
-
}
|
|
2480
|
-
/**
|
|
2481
|
-
* Add window function column.
|
|
2482
|
-
* @param columnPath Column path.
|
|
2483
|
-
* @param aggregationType Aggregation type.
|
|
2484
|
-
* @param columnAlias Column alias.
|
|
2485
|
-
* @param aggregationEvalType Aggregation eval type.
|
|
2486
|
-
* @returns [WindowFunctionColumn] Column instance.
|
|
2487
|
-
*/
|
|
2488
|
-
addWindowFunctionColumn(columnPath, aggregationType, columnAlias, aggregationEvalType = AggregationEvalType.None) {
|
|
2489
|
-
const functionArgument = new AggregationFunctionExpression({
|
|
2490
|
-
aggregationType,
|
|
2491
|
-
aggregationEvalType,
|
|
2492
|
-
functionArgument: new ColumnExpression({ columnPath }),
|
|
2493
|
-
});
|
|
2494
|
-
const column = new WindowFunctionColumn(functionArgument);
|
|
2495
|
-
this._internalAddColumn(columnAlias, column);
|
|
2496
|
-
return column;
|
|
2497
|
-
}
|
|
2498
|
-
}
|
|
2499
|
-
|
|
2500
|
-
/**
|
|
2501
|
-
* @internal
|
|
2502
|
-
*/
|
|
2503
|
-
class InsertQuery extends BaseQuery {
|
|
2504
|
-
// endregion
|
|
2505
|
-
// region Constructors: Public
|
|
2506
|
-
constructor(rootSchemaName) {
|
|
2507
|
-
super(QueryOperationType.Insert, rootSchemaName);
|
|
2508
|
-
// region Fields: Private
|
|
2509
|
-
this._columnValues = new Map();
|
|
2510
|
-
}
|
|
2511
|
-
// endregion
|
|
2512
|
-
// region Properties: Public
|
|
2513
|
-
get columnValues() {
|
|
2514
|
-
return {
|
|
2515
|
-
items: classToPlain(this._columnValues),
|
|
2516
|
-
};
|
|
2517
|
-
}
|
|
2518
|
-
// endregion
|
|
2519
|
-
// region Methods: Public
|
|
2520
|
-
addColumn(columnName, columnValue, dataValueType) {
|
|
2521
|
-
ValidationUtilities.checkArgumentEmpty('columnName', columnName);
|
|
2522
|
-
this._columnValues.set(columnName, new ParameterExpression({ value: columnValue, dataValueType }));
|
|
2523
|
-
}
|
|
2524
|
-
}
|
|
2525
|
-
__decorate([
|
|
2526
|
-
Expose(),
|
|
2527
|
-
__metadata("design:type", Object),
|
|
2528
|
-
__metadata("design:paramtypes", [])
|
|
2529
|
-
], InsertQuery.prototype, "columnValues", null);
|
|
2530
|
-
|
|
2531
|
-
/**
|
|
2532
|
-
* @internal
|
|
2533
|
-
*/
|
|
2534
|
-
class UpdateQuery extends BaseFilterableQuery {
|
|
2535
|
-
// endregion
|
|
2536
|
-
// region Constructors: Public
|
|
2537
|
-
constructor(rootSchemaName) {
|
|
2538
|
-
super(QueryOperationType.Update, rootSchemaName);
|
|
2539
|
-
// region Fields: Private
|
|
2540
|
-
this._columnValues = new Map();
|
|
2541
|
-
// endregion
|
|
2542
|
-
// region Fields: Public
|
|
2543
|
-
/**
|
|
2544
|
-
* Flag that indicates whether to force save data.
|
|
2545
|
-
*/
|
|
2546
|
-
this.isForceUpdate = false;
|
|
2547
|
-
}
|
|
2548
|
-
// endregion
|
|
2549
|
-
// region Properties: Public
|
|
2550
|
-
get columnValues() {
|
|
2551
|
-
return {
|
|
2552
|
-
items: classToPlain(this._columnValues),
|
|
2553
|
-
};
|
|
2554
|
-
}
|
|
2555
|
-
// endregion
|
|
2556
|
-
// region Methods: Public
|
|
2557
|
-
addColumn(columnName, columnValue, dataValueType) {
|
|
2558
|
-
ValidationUtilities.checkArgumentEmpty('columnName', columnName);
|
|
2559
|
-
this._columnValues.set(columnName, new ParameterExpression({ value: columnValue, dataValueType }));
|
|
2560
|
-
}
|
|
2561
|
-
}
|
|
2562
|
-
__decorate([
|
|
2563
|
-
Expose(),
|
|
2564
|
-
__metadata("design:type", Object),
|
|
2565
|
-
__metadata("design:paramtypes", [])
|
|
2566
|
-
], UpdateQuery.prototype, "columnValues", null);
|
|
2567
|
-
|
|
2568
|
-
/**
|
|
2569
|
-
* @internal
|
|
2570
|
-
*/
|
|
2571
|
-
class SelectLocalizationQuery extends EntitySchemaQuery {
|
|
2572
|
-
}
|
|
2573
|
-
|
|
2574
|
-
/**
|
|
2575
|
-
* @internal
|
|
1357
|
+
* @hostPublicApi
|
|
2576
1358
|
*/
|
|
2577
1359
|
class InterfaceDesignerItemRegistrationConfig {
|
|
2578
1360
|
}
|
|
@@ -2581,11 +1363,11 @@ class InterfaceDesignerItemRegistrationConfig {
|
|
|
2581
1363
|
* @internal
|
|
2582
1364
|
* @class MethodInvokeRequest
|
|
2583
1365
|
* @description Definition of invoke method request.
|
|
2584
|
-
* @extends {
|
|
1366
|
+
* @extends {ɵBaseRequest} {@link ɵBaseRequest}
|
|
2585
1367
|
* @property {string} method - method name.
|
|
2586
1368
|
* @property {unknown[]} args - arguments passing to the method.
|
|
2587
1369
|
*/
|
|
2588
|
-
class MethodInvokeRequest extends
|
|
1370
|
+
class MethodInvokeRequest extends ɵBaseRequest {
|
|
2589
1371
|
}
|
|
2590
1372
|
|
|
2591
1373
|
/**
|
|
@@ -2704,7 +1486,6 @@ function CrtModule(moduleDefinition) {
|
|
|
2704
1486
|
return (type) => setModuleMetadata(moduleDefinition, type);
|
|
2705
1487
|
}
|
|
2706
1488
|
|
|
2707
|
-
// noinspection ES6PreferShortImport
|
|
2708
1489
|
/**
|
|
2709
1490
|
* @internal
|
|
2710
1491
|
*/
|
|
@@ -2750,7 +1531,11 @@ function CrtInject(token) {
|
|
|
2750
1531
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
2751
1532
|
function CrtValidator(config) {
|
|
2752
1533
|
if (!config) {
|
|
2753
|
-
return (type) => {
|
|
1534
|
+
return (type) => {
|
|
1535
|
+
// the decorator won't do anything by itself,
|
|
1536
|
+
// but will be used by the compiler to generate class metadata,
|
|
1537
|
+
// which is required for DI
|
|
1538
|
+
};
|
|
2754
1539
|
}
|
|
2755
1540
|
return function (type) {
|
|
2756
1541
|
checkTypeNameFormat(config.type, 'ValidatorTypeName');
|
|
@@ -2765,7 +1550,11 @@ function CrtValidator(config) {
|
|
|
2765
1550
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
2766
1551
|
function CrtRequestHandler(config) {
|
|
2767
1552
|
if (!config) {
|
|
2768
|
-
return (type) => {
|
|
1553
|
+
return (type) => {
|
|
1554
|
+
// the decorator won't do anything by itself,
|
|
1555
|
+
// but will be used by the compiler to generate class metadata,
|
|
1556
|
+
// which is required for DI
|
|
1557
|
+
};
|
|
2769
1558
|
}
|
|
2770
1559
|
return function (type) {
|
|
2771
1560
|
checkTypeNameFormat(config.type, 'RequestHandlerTypeName');
|
|
@@ -2793,6 +1582,16 @@ function CrtConverter(config) {
|
|
|
2793
1582
|
};
|
|
2794
1583
|
}
|
|
2795
1584
|
|
|
1585
|
+
/**
|
|
1586
|
+
* @internal
|
|
1587
|
+
*/
|
|
1588
|
+
var DataSourceLoadType;
|
|
1589
|
+
(function (DataSourceLoadType) {
|
|
1590
|
+
DataSourceLoadType["LoadNext"] = "loadNext";
|
|
1591
|
+
DataSourceLoadType["Load"] = "load";
|
|
1592
|
+
DataSourceLoadType["Reload"] = "reload";
|
|
1593
|
+
})(DataSourceLoadType || (DataSourceLoadType = {}));
|
|
1594
|
+
|
|
2796
1595
|
/**
|
|
2797
1596
|
* @public
|
|
2798
1597
|
* @description Function allows to register user-defined component as view element in Creatio platform.
|
|
@@ -2937,10 +1736,7 @@ function registerRequestHandlers(types, options, remoteName) {
|
|
|
2937
1736
|
RequestHandlerRegistryService.register(registrationConfig, type);
|
|
2938
1737
|
});
|
|
2939
1738
|
}
|
|
2940
|
-
|
|
2941
|
-
* @internal
|
|
2942
|
-
*/
|
|
2943
|
-
function _bootstrapCrtModule(name, type, options) {
|
|
1739
|
+
function bootstrapDefaultCrtModule(name, type, options) {
|
|
2944
1740
|
var _a;
|
|
2945
1741
|
try {
|
|
2946
1742
|
const moduleDefinition = getModuleMetadata(type);
|
|
@@ -2960,12 +1756,34 @@ function _bootstrapCrtModule(name, type, options) {
|
|
|
2960
1756
|
if (moduleDefinition.converters) {
|
|
2961
1757
|
registerConverters(moduleDefinition.converters, options);
|
|
2962
1758
|
}
|
|
2963
|
-
(_a = moduleDefinition.includes) === null || _a === void 0 ? void 0 : _a.forEach((t) =>
|
|
1759
|
+
(_a = moduleDefinition.includes) === null || _a === void 0 ? void 0 : _a.forEach((t) => {
|
|
1760
|
+
bootstrapDefaultCrtModule(name, t, options);
|
|
1761
|
+
bootstrapPredefinedModules(name, t, options);
|
|
1762
|
+
});
|
|
2964
1763
|
}
|
|
2965
1764
|
catch (error) {
|
|
2966
1765
|
console.error(error);
|
|
2967
1766
|
}
|
|
2968
1767
|
}
|
|
1768
|
+
/**
|
|
1769
|
+
* @internal
|
|
1770
|
+
*/
|
|
1771
|
+
function bootstrapPredefinedModules(name, type, options) {
|
|
1772
|
+
const modulePrefix = 'module:';
|
|
1773
|
+
const metadataKeys = Reflect.getOwnMetadataKeys(type);
|
|
1774
|
+
for (const key of metadataKeys) {
|
|
1775
|
+
if (typeof key === 'string' && key.startsWith(modulePrefix)) {
|
|
1776
|
+
const moduleType = key.substring(modulePrefix.length);
|
|
1777
|
+
const predefinedBootstrapper = Reflect.getOwnMetadata('moduleBootstrapper:' + moduleType, type);
|
|
1778
|
+
try {
|
|
1779
|
+
predefinedBootstrapper(name, type, options);
|
|
1780
|
+
}
|
|
1781
|
+
catch (error) {
|
|
1782
|
+
console.error(error);
|
|
1783
|
+
}
|
|
1784
|
+
}
|
|
1785
|
+
}
|
|
1786
|
+
}
|
|
2969
1787
|
/**
|
|
2970
1788
|
* @internal
|
|
2971
1789
|
*/
|
|
@@ -2983,7 +1801,8 @@ function bootstrapCrtModule(...args) {
|
|
|
2983
1801
|
throw new Error('Host module cannot have name');
|
|
2984
1802
|
}
|
|
2985
1803
|
}
|
|
2986
|
-
|
|
1804
|
+
bootstrapDefaultCrtModule(name, type, options);
|
|
1805
|
+
bootstrapPredefinedModules(name, type, options);
|
|
2987
1806
|
if (options.moduleType === 'remote') {
|
|
2988
1807
|
BootstrapNotifier.instance.notify(type);
|
|
2989
1808
|
}
|
|
@@ -3065,11 +1884,11 @@ class BaseRequestHandler {
|
|
|
3065
1884
|
}
|
|
3066
1885
|
/**
|
|
3067
1886
|
* @description Method to set request handler to handler chain.
|
|
3068
|
-
* @param next - link for next request handler - {@link
|
|
1887
|
+
* @param next - link for next request handler - {@link ɵRequestHandler}
|
|
3069
1888
|
*/
|
|
3070
1889
|
setNext(next) {
|
|
3071
1890
|
if (this._next) {
|
|
3072
|
-
throw new
|
|
1891
|
+
throw new ɵNextHandlerAlreadySpecifiedException();
|
|
3073
1892
|
}
|
|
3074
1893
|
this._next = next;
|
|
3075
1894
|
}
|
|
@@ -3135,6 +1954,7 @@ __decorate([
|
|
|
3135
1954
|
* @classdesc Service to working with system settings using handler chain
|
|
3136
1955
|
* @extends {BaseHandlerChainService}
|
|
3137
1956
|
*/
|
|
1957
|
+
// TODO RND-45286 (implement BaseSysSettingsService)
|
|
3138
1958
|
class SysSettingsService extends BaseHandlerChainService {
|
|
3139
1959
|
constructor() {
|
|
3140
1960
|
super(...arguments);
|
|
@@ -3165,13 +1985,13 @@ __decorate([
|
|
|
3165
1985
|
* @public
|
|
3166
1986
|
* @class SysSetting
|
|
3167
1987
|
* @classdesc Class contains info related system setting
|
|
3168
|
-
* @property {
|
|
1988
|
+
* @property {ɵGuid} id - id of system setting.
|
|
3169
1989
|
* @property {string} name - name of system setting.
|
|
3170
1990
|
* @property {string} code - code of system setting.
|
|
3171
1991
|
* @property {isCacheable} boolean - indicator whether system setting is cacheable
|
|
3172
1992
|
* @property {any} value - value of system setting
|
|
3173
1993
|
* @property {string} displayValue - display value of system setting
|
|
3174
|
-
* @property {
|
|
1994
|
+
* @property {ɵDataValueType} ɵDataValueType - system setting {@link ɵDataValueType}
|
|
3175
1995
|
*/
|
|
3176
1996
|
class SysSetting {
|
|
3177
1997
|
}
|
|
@@ -3222,27 +2042,37 @@ class HttpClientService extends BaseHandlerChainService {
|
|
|
3222
2042
|
* @description HTTP GET request.
|
|
3223
2043
|
* @return `Promise<HttpResponse> | void` {(Promise<HttpResponse> | void)}
|
|
3224
2044
|
*/
|
|
3225
|
-
get() {
|
|
2045
|
+
get() {
|
|
2046
|
+
// the method will be implemented dynamically by the decorator
|
|
2047
|
+
}
|
|
3226
2048
|
/**
|
|
3227
2049
|
* @description HTTP POST request.
|
|
3228
2050
|
* @return `Promise<HttpResponse> | void` {(Promise<HttpResponse> | void)}
|
|
3229
2051
|
*/
|
|
3230
|
-
post() {
|
|
2052
|
+
post() {
|
|
2053
|
+
// the method will be implemented dynamically by the decorator
|
|
2054
|
+
}
|
|
3231
2055
|
/**
|
|
3232
2056
|
* @description HTTP DELETE request.
|
|
3233
2057
|
* @return `Promise<HttpResponse> | void` {(Promise<HttpResponse> | void)}
|
|
3234
2058
|
*/
|
|
3235
|
-
delete() {
|
|
2059
|
+
delete() {
|
|
2060
|
+
// the method will be implemented dynamically by the decorator
|
|
2061
|
+
}
|
|
3236
2062
|
/**
|
|
3237
2063
|
* @description HTTP PUT request.
|
|
3238
2064
|
* @return `Promise<HttpResponse> | void`` {(Promise<HttpResponse> | void)}
|
|
3239
2065
|
*/
|
|
3240
|
-
put() {
|
|
2066
|
+
put() {
|
|
2067
|
+
// the method will be implemented dynamically by the decorator
|
|
2068
|
+
}
|
|
3241
2069
|
/**
|
|
3242
2070
|
* @description HTTP PATCH request.
|
|
3243
2071
|
* @return `Promise<HttpResponse> | void` {(Promise<HttpResponse> | void)}
|
|
3244
2072
|
*/
|
|
3245
|
-
patch() {
|
|
2073
|
+
patch() {
|
|
2074
|
+
// the method will be implemented dynamically by the decorator
|
|
2075
|
+
}
|
|
3246
2076
|
}
|
|
3247
2077
|
__decorate([
|
|
3248
2078
|
ImplementUsingHandlerChain(),
|
|
@@ -3286,7 +2116,7 @@ var SchemaViewMaskRequestAction;
|
|
|
3286
2116
|
/**
|
|
3287
2117
|
* @internal
|
|
3288
2118
|
*/
|
|
3289
|
-
class SchemaViewMaskRequest extends
|
|
2119
|
+
class SchemaViewMaskRequest extends ɵBaseRequest {
|
|
3290
2120
|
constructor(action, taskName, $context) {
|
|
3291
2121
|
super();
|
|
3292
2122
|
this.action = action;
|
|
@@ -3341,6 +2171,10 @@ __decorate([
|
|
|
3341
2171
|
__metadata("design:type", Function)
|
|
3342
2172
|
], MaskService.prototype, "hideBodyMask", void 0);
|
|
3343
2173
|
|
|
2174
|
+
/**
|
|
2175
|
+
* @internal
|
|
2176
|
+
*/
|
|
2177
|
+
const _from = Symbol('CreateModelFrom');
|
|
3344
2178
|
/**
|
|
3345
2179
|
* @public
|
|
3346
2180
|
*/
|
|
@@ -3359,6 +2193,20 @@ class Model extends BaseHandlerChainService {
|
|
|
3359
2193
|
}
|
|
3360
2194
|
return this._instance;
|
|
3361
2195
|
}
|
|
2196
|
+
/**
|
|
2197
|
+
* @internal
|
|
2198
|
+
* Gets the model name.
|
|
2199
|
+
*/
|
|
2200
|
+
get name() {
|
|
2201
|
+
var _a;
|
|
2202
|
+
return (_a = this._crtModel) === null || _a === void 0 ? void 0 : _a.name;
|
|
2203
|
+
}
|
|
2204
|
+
/**
|
|
2205
|
+
* @internal
|
|
2206
|
+
*/
|
|
2207
|
+
static [_from](crtModel) {
|
|
2208
|
+
return new Model(crtModel);
|
|
2209
|
+
}
|
|
3362
2210
|
static create(dataSchema) {
|
|
3363
2211
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3364
2212
|
const crtModel = yield this.instance._create({
|
|
@@ -3407,19 +2255,26 @@ __decorate([
|
|
|
3407
2255
|
|
|
3408
2256
|
/**
|
|
3409
2257
|
* @public
|
|
2258
|
+
* @classdesc Service to handling a way of tasks execution in Creatio plaform
|
|
2259
|
+
* @extends {BaseHandlerChainService}
|
|
3410
2260
|
*/
|
|
3411
|
-
|
|
3412
|
-
(
|
|
3413
|
-
|
|
3414
|
-
|
|
3415
|
-
|
|
3416
|
-
|
|
3417
|
-
|
|
3418
|
-
}
|
|
2261
|
+
class CrtZoneService extends BaseHandlerChainService {
|
|
2262
|
+
constructor() {
|
|
2263
|
+
super(...arguments);
|
|
2264
|
+
/**
|
|
2265
|
+
* @internal
|
|
2266
|
+
*/
|
|
2267
|
+
this.requestType = 'crt.ZoneService';
|
|
2268
|
+
}
|
|
2269
|
+
}
|
|
2270
|
+
__decorate([
|
|
2271
|
+
ImplementUsingHandlerChain(),
|
|
2272
|
+
__metadata("design:type", Function)
|
|
2273
|
+
], CrtZoneService.prototype, "runOutside", void 0);
|
|
3419
2274
|
|
|
3420
2275
|
/**
|
|
3421
2276
|
* Generated bundle index. Do not edit.
|
|
3422
2277
|
*/
|
|
3423
2278
|
|
|
3424
|
-
export {
|
|
2279
|
+
export { BaseRequestHandler, BaseValidator, BootstrapNotifier, ConverterRegistry, CrtConverter, CrtDesignTimeViewElement, CrtInject, CrtInput, CrtInputRegistrationConfig, CrtInterfaceDesignerItem, CrtModule, CrtOutput, CrtRequest, CrtRequestHandler, CrtValidationInput, CrtValidator, CrtViewElement, CrtZoneService, DataRequest, DataSourceLoadType, DesignTimeViewElementRegistry, DesignerToolGroupType, FeatureService, HandlerChainService, HandlerChainServicesRegistry, HandlerSourceType, HandlersOrderComparer, HttpClientService, ImplementUsingHandlerChain, InterfaceDesignerItemRegistrationConfig, InterfaceDesignerItemRegistry, InternalRequestHandlerRegistry, InternalRequestHandlerRegistryType, LocalizableValue, MaskService, MethodInvokeRequest, Model, ModelInPageAction, PkgTopology, RemoteEntriesRegistry, RemoteEntryType, RequestHandlerRegistryService, RequestRegistryService, RightsService, SchemaViewMaskRequest, SchemaViewMaskRequestAction, SysSetting, SysSettingValue, SysSettingsService, SysValuesService, ValidatorMapValue, ValidatorRegistry, ViewElementDataGroupType, ViewElementGroupType, ViewElementRegistry, ViewElementReuseStrategy, _from, applyLocalizeMetadataFn, bootstrapCrtModule, bootstrapCrtModuleHandlerChainServices, checkCrtTypeNamePascalCase, checkIfTypeRegistered, checkOnlyOneRegistration, checkTypeNameFormat, checkTypeNamePascalCase, crtInjectPrefix, crtInputPrefix, crtOutputPrefix, crtValidationInputPrefix, designTimeViewElementRegistryKey, getConverterMetadata, getCrtInputsMetadata, getCrtOutputsMetadata, getCrtValidationInputsMetadata, getDesignTimeViewElementMetadata, getHandlerChainServiceMetadata, getInterfaceDesignerItemMetadata, getModuleMetadata, getRequestHandlerMetadata, getTypeDependencies, getValidatorMetadata, getViewElementMetadata, hasInterfaceDesignerItemMetadata, instantiate, interfaceDesignerItemRegistryKey, isComponentPropertyBindable, localize, objectDeepKeys, registerAngularViewElement, registerViewElement, setConverterMetadata, setDesignTimeViewElementMetadata, setInterfaceDesignerItemMetadata, setModuleMetadata, setRequestHandlerMetadata, setValidatorMetadata, setViewElementMetadata, toAggregationEval, toAggregationEvalType, toAggregationFunction, toAggregationType, toDatePart, toDatePartType, toNumericFunctionType, toOrderDirection, toPascalCase, toSortDirection, toStringFunctionType, validatorRegistryKey, viewElementRegistryKey, ɵBaseRegistry, ɵcheckTypeNameFormat, ɵinstantiate };
|
|
3425
2280
|
//# sourceMappingURL=creatio-devkit-common.mjs.map
|