@creatio-devkit/common 0.809.0 → 0.810.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +4 -0
- package/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 -8
- package/esm2020/lib/internal/decorators/design-time-view-element/design-time-view-element.decorator.mjs +1 -1
- package/esm2020/lib/internal/decorators/request/request.decorator.mjs +1 -1
- package/esm2020/lib/internal/enums/index.mjs +3 -7
- 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/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 +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/request-handler-factory.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/services/base-registry/base-registry.mjs +6 -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 +3 -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 +3 -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 +3 -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 +1 -1
- package/esm2020/lib/internal/services/request-registry/request-registry.service.mjs +1 -1
- package/esm2020/lib/internal/services/validator-registry/validator-registry.mjs +3 -3
- package/esm2020/lib/internal/services/view-element-registry/view-element-registry.mjs +3 -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/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/services/handler-chain/handler-chain.service.mjs +7 -7
- package/esm2020/lib/public/services/handler-chain/internal-handler-chain.mjs +2 -2
- package/esm2020/lib/public/services/http-client/http-client.service.mjs +16 -6
- 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 +1 -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/fesm2015/creatio-devkit-common.mjs +162 -1443
- package/fesm2015/creatio-devkit-common.mjs.map +1 -1
- package/fesm2020/creatio-devkit-common.mjs +162 -1459
- package/fesm2020/creatio-devkit-common.mjs.map +1 -1
- package/index.d.ts +341 -944
- 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/enums/index.mjs +0 -4
- 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/index.mjs +0 -13
- 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, ɵ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';
|
|
@@ -1161,25 +216,6 @@ var ViewElementDataGroupType;
|
|
|
1161
216
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
1162
217
|
const DesignerToolGroupType = Object.assign(Object.assign({}, ViewElementDataGroupType), ViewElementGroupType);
|
|
1163
218
|
|
|
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
219
|
/**
|
|
1184
220
|
* Handler source types in order of call priority.
|
|
1185
221
|
* @internal
|
|
@@ -1194,51 +230,20 @@ var HandlerSourceType;
|
|
|
1194
230
|
/**
|
|
1195
231
|
* @internal
|
|
1196
232
|
*/
|
|
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 = {}));
|
|
233
|
+
var ModelInPageAction;
|
|
234
|
+
(function (ModelInPageAction) {
|
|
235
|
+
ModelInPageAction["Edit"] = "edit";
|
|
236
|
+
ModelInPageAction["Add"] = "add";
|
|
237
|
+
ModelInPageAction["Copy"] = "copy";
|
|
238
|
+
})(ModelInPageAction || (ModelInPageAction = {}));
|
|
1236
239
|
|
|
1237
240
|
const global$3 = window;
|
|
1238
241
|
/**
|
|
1239
|
-
* @
|
|
242
|
+
* @public
|
|
243
|
+
* @description For internal use only.
|
|
1240
244
|
*/
|
|
1241
|
-
|
|
245
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
246
|
+
class ɵBaseRegistry {
|
|
1242
247
|
constructor() {
|
|
1243
248
|
this.store = {
|
|
1244
249
|
typeInfos: new Map(),
|
|
@@ -1256,12 +261,12 @@ class BaseRegistry {
|
|
|
1256
261
|
return this._instance.store;
|
|
1257
262
|
}
|
|
1258
263
|
}
|
|
1259
|
-
|
|
264
|
+
ɵBaseRegistry._prefix = 'creatio.registry.';
|
|
1260
265
|
|
|
1261
266
|
/**
|
|
1262
267
|
* @internal
|
|
1263
268
|
*/
|
|
1264
|
-
class PkgTopology extends
|
|
269
|
+
class PkgTopology extends ɵBaseRegistry {
|
|
1265
270
|
static get items() {
|
|
1266
271
|
return this.store.typeInfos;
|
|
1267
272
|
}
|
|
@@ -1431,7 +436,7 @@ class InternalHandlerChain {
|
|
|
1431
436
|
handlers[index].setNext(handlers[index + 1]);
|
|
1432
437
|
}
|
|
1433
438
|
catch (error) {
|
|
1434
|
-
if (error instanceof
|
|
439
|
+
if (error instanceof ɵNextHandlerAlreadySpecifiedException) {
|
|
1435
440
|
throw new Error('Handler factory should return new instance of ' +
|
|
1436
441
|
'BaseRequestHandler class or its subclass ' +
|
|
1437
442
|
'(next handler should not be specified)');
|
|
@@ -1449,11 +454,6 @@ const global$2 = window;
|
|
|
1449
454
|
* @classdesc Service to design handlers in chain.
|
|
1450
455
|
*/
|
|
1451
456
|
class HandlerChainService {
|
|
1452
|
-
constructor() {
|
|
1453
|
-
if (!this._chain) {
|
|
1454
|
-
this._createGlobalHandlerChain();
|
|
1455
|
-
}
|
|
1456
|
-
}
|
|
1457
457
|
get _chain() {
|
|
1458
458
|
return global$2.handlerChain;
|
|
1459
459
|
}
|
|
@@ -1463,6 +463,11 @@ class HandlerChainService {
|
|
|
1463
463
|
static get instance() {
|
|
1464
464
|
return HandlerChainService._instance || (HandlerChainService._instance = new HandlerChainService());
|
|
1465
465
|
}
|
|
466
|
+
constructor() {
|
|
467
|
+
if (!this._chain) {
|
|
468
|
+
this._createGlobalHandlerChain();
|
|
469
|
+
}
|
|
470
|
+
}
|
|
1466
471
|
_createGlobalHandlerChain() {
|
|
1467
472
|
this._chain = new InternalHandlerChain();
|
|
1468
473
|
}
|
|
@@ -1480,7 +485,7 @@ class HandlerChainService {
|
|
|
1480
485
|
}
|
|
1481
486
|
/**
|
|
1482
487
|
* @description Method to process passed request
|
|
1483
|
-
* @param request - {@link
|
|
488
|
+
* @param request - {@link ɵBaseRequest}
|
|
1484
489
|
* @return `Promise<unknown>`
|
|
1485
490
|
*/
|
|
1486
491
|
process(request) {
|
|
@@ -1533,6 +538,13 @@ function checkTypeNameFormat(type, element) {
|
|
|
1533
538
|
throw new Error(`Error when register ${type}. Type property should have format "VendorPrefix.${element}"`);
|
|
1534
539
|
}
|
|
1535
540
|
}
|
|
541
|
+
/**
|
|
542
|
+
* @public
|
|
543
|
+
* @description For internal use only.
|
|
544
|
+
*/
|
|
545
|
+
function ɵcheckTypeNameFormat(type, element) {
|
|
546
|
+
return checkTypeNameFormat(type, element);
|
|
547
|
+
}
|
|
1536
548
|
/**
|
|
1537
549
|
* @internal
|
|
1538
550
|
*/
|
|
@@ -1689,7 +701,7 @@ RequestRegistryService._requestsRegistrationInfos = new Map();
|
|
|
1689
701
|
/**
|
|
1690
702
|
* @internal
|
|
1691
703
|
*/
|
|
1692
|
-
class ConverterRegistry extends
|
|
704
|
+
class ConverterRegistry extends ɵBaseRegistry {
|
|
1693
705
|
static get(type) {
|
|
1694
706
|
if (!this.store.typeInfos.has(type)) {
|
|
1695
707
|
throw new Error(`'${type}' converter doesn't exist`);
|
|
@@ -1715,7 +727,7 @@ const viewElementRegistryKey = 'ViewElementRegistry';
|
|
|
1715
727
|
/**
|
|
1716
728
|
* @internal
|
|
1717
729
|
*/
|
|
1718
|
-
class ViewElementRegistry extends
|
|
730
|
+
class ViewElementRegistry extends ɵBaseRegistry {
|
|
1719
731
|
static validate(config) {
|
|
1720
732
|
checkTypeNameFormat(config.type, 'ViewElementTypeName');
|
|
1721
733
|
checkOnlyOneRegistration(config.type, config, ViewElementRegistry.viewElements);
|
|
@@ -1741,7 +753,7 @@ const interfaceDesignerItemRegistryKey = 'InterfaceDesignerItemRegistry';
|
|
|
1741
753
|
/**
|
|
1742
754
|
* @internal
|
|
1743
755
|
*/
|
|
1744
|
-
class InterfaceDesignerItemRegistry extends
|
|
756
|
+
class InterfaceDesignerItemRegistry extends ɵBaseRegistry {
|
|
1745
757
|
static validate(config) {
|
|
1746
758
|
checkTypeNameFormat(config.type, 'InterfaceDesignerItemTypeName');
|
|
1747
759
|
checkCrtTypeNamePascalCase(config.type);
|
|
@@ -1764,15 +776,16 @@ const global = window;
|
|
|
1764
776
|
* @internal
|
|
1765
777
|
*/
|
|
1766
778
|
class BootstrapNotifier {
|
|
1767
|
-
constructor() {
|
|
1768
|
-
this._subscribers = new Set();
|
|
1769
|
-
}
|
|
1770
779
|
static get instance() {
|
|
1771
780
|
if (!global.__crtModuleBootstrapNotifier) {
|
|
1772
781
|
global.__crtModuleBootstrapNotifier = new BootstrapNotifier();
|
|
1773
782
|
}
|
|
1774
783
|
return global.__crtModuleBootstrapNotifier;
|
|
1775
784
|
}
|
|
785
|
+
constructor() {
|
|
786
|
+
this._subscribers = new Set();
|
|
787
|
+
// private constructor prevent instantiation via 'new' keyword
|
|
788
|
+
}
|
|
1776
789
|
notify(moduleType) {
|
|
1777
790
|
for (const subscriber of this._subscribers.values()) {
|
|
1778
791
|
subscriber(moduleType);
|
|
@@ -1789,7 +802,7 @@ class BootstrapNotifier {
|
|
|
1789
802
|
/**
|
|
1790
803
|
* @internal
|
|
1791
804
|
*/
|
|
1792
|
-
class HandlerChainServicesRegistry extends
|
|
805
|
+
class HandlerChainServicesRegistry extends ɵBaseRegistry {
|
|
1793
806
|
static validate({ requestType }) {
|
|
1794
807
|
checkTypeNameFormat(requestType, this.registryKey);
|
|
1795
808
|
checkCrtTypeNamePascalCase(requestType);
|
|
@@ -1817,7 +830,7 @@ const designTimeViewElementRegistryKey = 'DesignTimeViewElementRegistry';
|
|
|
1817
830
|
/**
|
|
1818
831
|
* @internal
|
|
1819
832
|
*/
|
|
1820
|
-
class DesignTimeViewElementRegistry extends
|
|
833
|
+
class DesignTimeViewElementRegistry extends ɵBaseRegistry {
|
|
1821
834
|
static validate(config) {
|
|
1822
835
|
checkTypeNameFormat(config.type, 'DesignTimeViewElementRegistryItemTypeName');
|
|
1823
836
|
checkCrtTypeNamePascalCase(config.type);
|
|
@@ -1851,7 +864,7 @@ const validatorRegistryKey = 'ValidatorRegistry';
|
|
|
1851
864
|
/**
|
|
1852
865
|
* @internal
|
|
1853
866
|
*/
|
|
1854
|
-
class ValidatorRegistry extends
|
|
867
|
+
class ValidatorRegistry extends ɵBaseRegistry {
|
|
1855
868
|
static _has(configType, type) {
|
|
1856
869
|
var _a;
|
|
1857
870
|
return ValidatorRegistry.items.has(configType) && ((_a = ValidatorRegistry.items.get(configType)) === null || _a === void 0 ? void 0 : _a.typeRef) !== type;
|
|
@@ -1875,7 +888,7 @@ ValidatorRegistry.registryKey = validatorRegistryKey;
|
|
|
1875
888
|
* @internal
|
|
1876
889
|
* @dontChange
|
|
1877
890
|
*/
|
|
1878
|
-
class RemoteEntriesRegistry extends
|
|
891
|
+
class RemoteEntriesRegistry extends ɵBaseRegistry {
|
|
1879
892
|
/**
|
|
1880
893
|
* @dontChange
|
|
1881
894
|
*/
|
|
@@ -2121,30 +1134,28 @@ function instantiate(type, resolveDependency) {
|
|
|
2121
1134
|
}
|
|
2122
1135
|
return new type();
|
|
2123
1136
|
}
|
|
2124
|
-
|
|
2125
1137
|
/**
|
|
2126
1138
|
* @public
|
|
1139
|
+
* @description For internal use only.
|
|
2127
1140
|
*/
|
|
2128
|
-
|
|
1141
|
+
function ɵinstantiate(type, resolveDependency) {
|
|
1142
|
+
return instantiate(type, resolveDependency);
|
|
2129
1143
|
}
|
|
2130
1144
|
|
|
2131
1145
|
/**
|
|
2132
1146
|
* @public
|
|
2133
|
-
* @class BaseRequest
|
|
2134
|
-
* @describe Base definition of request.
|
|
2135
|
-
* @template TEvent
|
|
2136
1147
|
*/
|
|
2137
|
-
class
|
|
1148
|
+
class CrtInputRegistrationConfig {
|
|
2138
1149
|
}
|
|
2139
1150
|
|
|
2140
1151
|
/**
|
|
2141
1152
|
* @public
|
|
2142
1153
|
* @class DataRequest
|
|
2143
1154
|
* @description Definition of data source request.
|
|
2144
|
-
* @extends {
|
|
1155
|
+
* @extends {ɵBaseRequest} {@link ɵBaseRequest}
|
|
2145
1156
|
* @property {string} dataSourceName - name of assigned data source.
|
|
2146
1157
|
*/
|
|
2147
|
-
class DataRequest extends
|
|
1158
|
+
class DataRequest extends ɵBaseRequest {
|
|
2148
1159
|
}
|
|
2149
1160
|
|
|
2150
1161
|
/**
|
|
@@ -2253,324 +1264,6 @@ function CrtRequest(config) {
|
|
|
2253
1264
|
};
|
|
2254
1265
|
}
|
|
2255
1266
|
|
|
2256
|
-
/**
|
|
2257
|
-
* @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
1267
|
/**
|
|
2575
1268
|
* @internal
|
|
2576
1269
|
*/
|
|
@@ -2581,11 +1274,11 @@ class InterfaceDesignerItemRegistrationConfig {
|
|
|
2581
1274
|
* @internal
|
|
2582
1275
|
* @class MethodInvokeRequest
|
|
2583
1276
|
* @description Definition of invoke method request.
|
|
2584
|
-
* @extends {
|
|
1277
|
+
* @extends {ɵBaseRequest} {@link ɵBaseRequest}
|
|
2585
1278
|
* @property {string} method - method name.
|
|
2586
1279
|
* @property {unknown[]} args - arguments passing to the method.
|
|
2587
1280
|
*/
|
|
2588
|
-
class MethodInvokeRequest extends
|
|
1281
|
+
class MethodInvokeRequest extends ɵBaseRequest {
|
|
2589
1282
|
}
|
|
2590
1283
|
|
|
2591
1284
|
/**
|
|
@@ -2704,7 +1397,6 @@ function CrtModule(moduleDefinition) {
|
|
|
2704
1397
|
return (type) => setModuleMetadata(moduleDefinition, type);
|
|
2705
1398
|
}
|
|
2706
1399
|
|
|
2707
|
-
// noinspection ES6PreferShortImport
|
|
2708
1400
|
/**
|
|
2709
1401
|
* @internal
|
|
2710
1402
|
*/
|
|
@@ -2750,7 +1442,11 @@ function CrtInject(token) {
|
|
|
2750
1442
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
2751
1443
|
function CrtValidator(config) {
|
|
2752
1444
|
if (!config) {
|
|
2753
|
-
return (type) => {
|
|
1445
|
+
return (type) => {
|
|
1446
|
+
// the decorator won't do anything by itself,
|
|
1447
|
+
// but will be used by the compiler to generate class metadata,
|
|
1448
|
+
// which is required for DI
|
|
1449
|
+
};
|
|
2754
1450
|
}
|
|
2755
1451
|
return function (type) {
|
|
2756
1452
|
checkTypeNameFormat(config.type, 'ValidatorTypeName');
|
|
@@ -2765,7 +1461,11 @@ function CrtValidator(config) {
|
|
|
2765
1461
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
2766
1462
|
function CrtRequestHandler(config) {
|
|
2767
1463
|
if (!config) {
|
|
2768
|
-
return (type) => {
|
|
1464
|
+
return (type) => {
|
|
1465
|
+
// the decorator won't do anything by itself,
|
|
1466
|
+
// but will be used by the compiler to generate class metadata,
|
|
1467
|
+
// which is required for DI
|
|
1468
|
+
};
|
|
2769
1469
|
}
|
|
2770
1470
|
return function (type) {
|
|
2771
1471
|
checkTypeNameFormat(config.type, 'RequestHandlerTypeName');
|
|
@@ -2937,10 +1637,7 @@ function registerRequestHandlers(types, options, remoteName) {
|
|
|
2937
1637
|
RequestHandlerRegistryService.register(registrationConfig, type);
|
|
2938
1638
|
});
|
|
2939
1639
|
}
|
|
2940
|
-
|
|
2941
|
-
* @internal
|
|
2942
|
-
*/
|
|
2943
|
-
function _bootstrapCrtModule(name, type, options) {
|
|
1640
|
+
function bootstrapDefaultCrtModule(name, type, options) {
|
|
2944
1641
|
var _a;
|
|
2945
1642
|
try {
|
|
2946
1643
|
const moduleDefinition = getModuleMetadata(type);
|
|
@@ -2960,12 +1657,34 @@ function _bootstrapCrtModule(name, type, options) {
|
|
|
2960
1657
|
if (moduleDefinition.converters) {
|
|
2961
1658
|
registerConverters(moduleDefinition.converters, options);
|
|
2962
1659
|
}
|
|
2963
|
-
(_a = moduleDefinition.includes) === null || _a === void 0 ? void 0 : _a.forEach((t) =>
|
|
1660
|
+
(_a = moduleDefinition.includes) === null || _a === void 0 ? void 0 : _a.forEach((t) => {
|
|
1661
|
+
bootstrapDefaultCrtModule(name, t, options);
|
|
1662
|
+
bootstrapPredefinedModules(name, t, options);
|
|
1663
|
+
});
|
|
2964
1664
|
}
|
|
2965
1665
|
catch (error) {
|
|
2966
1666
|
console.error(error);
|
|
2967
1667
|
}
|
|
2968
1668
|
}
|
|
1669
|
+
/**
|
|
1670
|
+
* @internal
|
|
1671
|
+
*/
|
|
1672
|
+
function bootstrapPredefinedModules(name, type, options) {
|
|
1673
|
+
const modulePrefix = 'module:';
|
|
1674
|
+
const metadataKeys = Reflect.getOwnMetadataKeys(type);
|
|
1675
|
+
for (const key of metadataKeys) {
|
|
1676
|
+
if (typeof key === 'string' && key.startsWith(modulePrefix)) {
|
|
1677
|
+
const moduleType = key.substring(modulePrefix.length);
|
|
1678
|
+
const predefinedBootstrapper = Reflect.getOwnMetadata('moduleBootstrapper:' + moduleType, type);
|
|
1679
|
+
try {
|
|
1680
|
+
predefinedBootstrapper(name, type, options);
|
|
1681
|
+
}
|
|
1682
|
+
catch (error) {
|
|
1683
|
+
console.error(error);
|
|
1684
|
+
}
|
|
1685
|
+
}
|
|
1686
|
+
}
|
|
1687
|
+
}
|
|
2969
1688
|
/**
|
|
2970
1689
|
* @internal
|
|
2971
1690
|
*/
|
|
@@ -2983,7 +1702,8 @@ function bootstrapCrtModule(...args) {
|
|
|
2983
1702
|
throw new Error('Host module cannot have name');
|
|
2984
1703
|
}
|
|
2985
1704
|
}
|
|
2986
|
-
|
|
1705
|
+
bootstrapDefaultCrtModule(name, type, options);
|
|
1706
|
+
bootstrapPredefinedModules(name, type, options);
|
|
2987
1707
|
if (options.moduleType === 'remote') {
|
|
2988
1708
|
BootstrapNotifier.instance.notify(type);
|
|
2989
1709
|
}
|
|
@@ -3065,11 +1785,11 @@ class BaseRequestHandler {
|
|
|
3065
1785
|
}
|
|
3066
1786
|
/**
|
|
3067
1787
|
* @description Method to set request handler to handler chain.
|
|
3068
|
-
* @param next - link for next request handler - {@link
|
|
1788
|
+
* @param next - link for next request handler - {@link ɵRequestHandler}
|
|
3069
1789
|
*/
|
|
3070
1790
|
setNext(next) {
|
|
3071
1791
|
if (this._next) {
|
|
3072
|
-
throw new
|
|
1792
|
+
throw new ɵNextHandlerAlreadySpecifiedException();
|
|
3073
1793
|
}
|
|
3074
1794
|
this._next = next;
|
|
3075
1795
|
}
|
|
@@ -3135,6 +1855,7 @@ __decorate([
|
|
|
3135
1855
|
* @classdesc Service to working with system settings using handler chain
|
|
3136
1856
|
* @extends {BaseHandlerChainService}
|
|
3137
1857
|
*/
|
|
1858
|
+
// TODO RND-45286 (implement BaseSysSettingsService)
|
|
3138
1859
|
class SysSettingsService extends BaseHandlerChainService {
|
|
3139
1860
|
constructor() {
|
|
3140
1861
|
super(...arguments);
|
|
@@ -3165,13 +1886,13 @@ __decorate([
|
|
|
3165
1886
|
* @public
|
|
3166
1887
|
* @class SysSetting
|
|
3167
1888
|
* @classdesc Class contains info related system setting
|
|
3168
|
-
* @property {
|
|
1889
|
+
* @property {ɵGuid} id - id of system setting.
|
|
3169
1890
|
* @property {string} name - name of system setting.
|
|
3170
1891
|
* @property {string} code - code of system setting.
|
|
3171
1892
|
* @property {isCacheable} boolean - indicator whether system setting is cacheable
|
|
3172
1893
|
* @property {any} value - value of system setting
|
|
3173
1894
|
* @property {string} displayValue - display value of system setting
|
|
3174
|
-
* @property {
|
|
1895
|
+
* @property {ɵDataValueType} ɵDataValueType - system setting {@link ɵDataValueType}
|
|
3175
1896
|
*/
|
|
3176
1897
|
class SysSetting {
|
|
3177
1898
|
}
|
|
@@ -3222,27 +1943,37 @@ class HttpClientService extends BaseHandlerChainService {
|
|
|
3222
1943
|
* @description HTTP GET request.
|
|
3223
1944
|
* @return `Promise<HttpResponse> | void` {(Promise<HttpResponse> | void)}
|
|
3224
1945
|
*/
|
|
3225
|
-
get() {
|
|
1946
|
+
get() {
|
|
1947
|
+
// the method will be implemented dynamically by the decorator
|
|
1948
|
+
}
|
|
3226
1949
|
/**
|
|
3227
1950
|
* @description HTTP POST request.
|
|
3228
1951
|
* @return `Promise<HttpResponse> | void` {(Promise<HttpResponse> | void)}
|
|
3229
1952
|
*/
|
|
3230
|
-
post() {
|
|
1953
|
+
post() {
|
|
1954
|
+
// the method will be implemented dynamically by the decorator
|
|
1955
|
+
}
|
|
3231
1956
|
/**
|
|
3232
1957
|
* @description HTTP DELETE request.
|
|
3233
1958
|
* @return `Promise<HttpResponse> | void` {(Promise<HttpResponse> | void)}
|
|
3234
1959
|
*/
|
|
3235
|
-
delete() {
|
|
1960
|
+
delete() {
|
|
1961
|
+
// the method will be implemented dynamically by the decorator
|
|
1962
|
+
}
|
|
3236
1963
|
/**
|
|
3237
1964
|
* @description HTTP PUT request.
|
|
3238
1965
|
* @return `Promise<HttpResponse> | void`` {(Promise<HttpResponse> | void)}
|
|
3239
1966
|
*/
|
|
3240
|
-
put() {
|
|
1967
|
+
put() {
|
|
1968
|
+
// the method will be implemented dynamically by the decorator
|
|
1969
|
+
}
|
|
3241
1970
|
/**
|
|
3242
1971
|
* @description HTTP PATCH request.
|
|
3243
1972
|
* @return `Promise<HttpResponse> | void` {(Promise<HttpResponse> | void)}
|
|
3244
1973
|
*/
|
|
3245
|
-
patch() {
|
|
1974
|
+
patch() {
|
|
1975
|
+
// the method will be implemented dynamically by the decorator
|
|
1976
|
+
}
|
|
3246
1977
|
}
|
|
3247
1978
|
__decorate([
|
|
3248
1979
|
ImplementUsingHandlerChain(),
|
|
@@ -3286,7 +2017,7 @@ var SchemaViewMaskRequestAction;
|
|
|
3286
2017
|
/**
|
|
3287
2018
|
* @internal
|
|
3288
2019
|
*/
|
|
3289
|
-
class SchemaViewMaskRequest extends
|
|
2020
|
+
class SchemaViewMaskRequest extends ɵBaseRequest {
|
|
3290
2021
|
constructor(action, taskName, $context) {
|
|
3291
2022
|
super();
|
|
3292
2023
|
this.action = action;
|
|
@@ -3405,21 +2136,9 @@ __decorate([
|
|
|
3405
2136
|
__metadata("design:type", Function)
|
|
3406
2137
|
], Model.prototype, "_create", void 0);
|
|
3407
2138
|
|
|
3408
|
-
/**
|
|
3409
|
-
* @public
|
|
3410
|
-
*/
|
|
3411
|
-
var ModelParameterType;
|
|
3412
|
-
(function (ModelParameterType) {
|
|
3413
|
-
ModelParameterType["PrimaryColumnValue"] = "primaryColumnValue";
|
|
3414
|
-
ModelParameterType["Filter"] = "filter";
|
|
3415
|
-
ModelParameterType["PrimaryDisplayValueFilter"] = "primaryDisplayValueFilter";
|
|
3416
|
-
ModelParameterType["Empty"] = "empty";
|
|
3417
|
-
ModelParameterType["Never"] = "never";
|
|
3418
|
-
})(ModelParameterType || (ModelParameterType = {}));
|
|
3419
|
-
|
|
3420
2139
|
/**
|
|
3421
2140
|
* Generated bundle index. Do not edit.
|
|
3422
2141
|
*/
|
|
3423
2142
|
|
|
3424
|
-
export {
|
|
2143
|
+
export { BaseRequestHandler, BaseValidator, BootstrapNotifier, ConverterRegistry, CrtConverter, CrtDesignTimeViewElement, CrtInject, CrtInput, CrtInputRegistrationConfig, CrtInterfaceDesignerItem, CrtModule, CrtOutput, CrtRequest, CrtRequestHandler, CrtValidationInput, CrtValidator, CrtViewElement, DataRequest, 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, 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
2144
|
//# sourceMappingURL=creatio-devkit-common.mjs.map
|