@creatio/base 0.815.0 → 0.820.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 +2 -0
- package/esm2022/lib/external/utils/date-utils.mjs +51 -0
- package/esm2022/lib/internal/enums/platform-apis.enum.mjs +16 -0
- package/esm2022/lib/internal/models/compatible-apis.model.mjs +2 -0
- package/esm2022/lib/internal/models/filtration-platform-api-options.model.mjs +2 -0
- package/esm2022/lib/internal/models/index.mjs +5 -0
- package/esm2022/lib/internal/models/platform-api-options.model.mjs +2 -0
- package/esm2022/lib/public/enums/message-channel-type.enum.mjs +24 -0
- package/esm2022/lib/public/esq/data-model/expressions/arithmetic/arithmetic-expression.mjs +60 -0
- package/esm2022/lib/public/esq/data-model/expressions/base-expression.mjs +68 -0
- package/esm2022/lib/public/esq/data-model/expressions/columns/column-expression.mjs +55 -0
- package/esm2022/lib/public/esq/data-model/expressions/functions/aggregation-function-expression.mjs +50 -0
- package/esm2022/lib/public/esq/data-model/expressions/functions/argument-function-expression.mjs +40 -0
- package/esm2022/lib/public/esq/data-model/expressions/functions/date-part-function-expression.mjs +43 -0
- package/esm2022/lib/public/esq/data-model/expressions/functions/function-expression.mjs +30 -0
- package/esm2022/lib/public/esq/data-model/expressions/functions/length-function-expression.mjs +43 -0
- package/esm2022/lib/public/esq/data-model/expressions/functions/macros-function-expression.mjs +53 -0
- package/esm2022/lib/public/esq/data-model/expressions/functions/window-function-expression.mjs +41 -0
- package/{esm2020 → esm2022}/lib/public/esq/data-model/expressions/mocks/expression.mock.mjs +7 -7
- package/esm2022/lib/public/esq/data-model/expressions/parameters/parameter-expression.mjs +117 -0
- package/esm2022/lib/public/esq/data-model/expressions/sub-queries/aggregation-sub-query-expression.mjs +43 -0
- package/esm2022/lib/public/esq/data-model/expressions/sub-queries/sub-query-expression.mjs +82 -0
- package/esm2022/lib/public/esq/data-model/filters/base-filter.mjs +68 -0
- package/esm2022/lib/public/esq/data-model/filters/between-filter.mjs +58 -0
- package/esm2022/lib/public/esq/data-model/filters/compare-filter.mjs +52 -0
- package/esm2022/lib/public/esq/data-model/filters/exists-filter.mjs +64 -0
- package/esm2022/lib/public/esq/data-model/filters/filter-group.mjs +247 -0
- package/esm2022/lib/public/esq/data-model/filters/in-filter.mjs +57 -0
- package/esm2022/lib/public/esq/data-model/filters/isnull-filter.mjs +52 -0
- package/esm2022/lib/public/esq/data-model/filters/mocks/filter.mock.mjs +34 -0
- package/esm2022/lib/public/esq/data-model/filters/single-filter.mjs +39 -0
- package/{esm2020 → esm2022}/lib/public/esq/data-model/queries/base-filterable-query.mjs +1 -1
- package/esm2022/lib/public/esq/data-model/queries/entity-schema-query.mjs +242 -0
- package/esm2022/lib/public/exceptions/validation-utilities.mjs +66 -0
- package/{esm2020 → esm2022}/lib/public/models/index.mjs +2 -1
- package/esm2022/lib/public/models/message-channel-event.mjs +3 -0
- package/esm2022/lib/public/models/request/request-registration-config.model.mjs +2 -0
- package/esm2022/lib/public/models/subscription.mjs +39 -0
- package/{esm2020 → esm2022}/lib/public/services/index.mjs +2 -1
- package/esm2022/lib/public/services/message-channel/base-message-channel.service.mjs +3 -0
- package/esm2022/lib/public/services/message-channel/index.mjs +2 -0
- package/esm2022/lib/public/types/guid.type.mjs +53 -0
- package/{fesm2020 → fesm2022}/creatio-base.mjs +202 -120
- package/fesm2022/creatio-base.mjs.map +1 -0
- package/index.d.ts +130 -11
- package/package.json +7 -16
- package/esm2020/lib/external/utils/date-utils.mjs +0 -29
- package/esm2020/lib/internal/enums/platform-apis.enum.mjs +0 -12
- package/esm2020/lib/internal/models/index.mjs +0 -2
- package/esm2020/lib/public/enums/message-channel-type.enum.mjs +0 -11
- package/esm2020/lib/public/esq/data-model/expressions/arithmetic/arithmetic-expression.mjs +0 -60
- package/esm2020/lib/public/esq/data-model/expressions/base-expression.mjs +0 -68
- package/esm2020/lib/public/esq/data-model/expressions/columns/column-expression.mjs +0 -55
- package/esm2020/lib/public/esq/data-model/expressions/functions/aggregation-function-expression.mjs +0 -50
- package/esm2020/lib/public/esq/data-model/expressions/functions/argument-function-expression.mjs +0 -40
- package/esm2020/lib/public/esq/data-model/expressions/functions/date-part-function-expression.mjs +0 -43
- package/esm2020/lib/public/esq/data-model/expressions/functions/function-expression.mjs +0 -30
- package/esm2020/lib/public/esq/data-model/expressions/functions/length-function-expression.mjs +0 -43
- package/esm2020/lib/public/esq/data-model/expressions/functions/macros-function-expression.mjs +0 -53
- package/esm2020/lib/public/esq/data-model/expressions/functions/window-function-expression.mjs +0 -41
- package/esm2020/lib/public/esq/data-model/expressions/parameters/parameter-expression.mjs +0 -117
- package/esm2020/lib/public/esq/data-model/expressions/sub-queries/aggregation-sub-query-expression.mjs +0 -43
- package/esm2020/lib/public/esq/data-model/expressions/sub-queries/sub-query-expression.mjs +0 -82
- package/esm2020/lib/public/esq/data-model/filters/base-filter.mjs +0 -68
- package/esm2020/lib/public/esq/data-model/filters/between-filter.mjs +0 -58
- package/esm2020/lib/public/esq/data-model/filters/compare-filter.mjs +0 -52
- package/esm2020/lib/public/esq/data-model/filters/exists-filter.mjs +0 -64
- package/esm2020/lib/public/esq/data-model/filters/filter-group.mjs +0 -247
- package/esm2020/lib/public/esq/data-model/filters/in-filter.mjs +0 -57
- package/esm2020/lib/public/esq/data-model/filters/isnull-filter.mjs +0 -52
- package/esm2020/lib/public/esq/data-model/filters/mocks/filter.mock.mjs +0 -34
- package/esm2020/lib/public/esq/data-model/filters/single-filter.mjs +0 -39
- package/esm2020/lib/public/esq/data-model/queries/entity-schema-query.mjs +0 -242
- package/esm2020/lib/public/exceptions/validation-utilities.mjs +0 -66
- package/esm2020/lib/public/models/message-channel-event.mjs +0 -2
- package/esm2020/lib/public/models/request/request-registration-config.model.mjs +0 -2
- package/esm2020/lib/public/types/guid.type.mjs +0 -53
- package/fesm2015/creatio-base.mjs +0 -3313
- package/fesm2015/creatio-base.mjs.map +0 -1
- package/fesm2020/creatio-base.mjs.map +0 -1
- /package/{esm2020 → esm2022}/creatio-base.mjs +0 -0
- /package/{esm2020 → esm2022}/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/external/utils/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/internal/enums/data-schema-attribute-type.enum.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/internal/enums/data-source-scope.enum.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/internal/enums/default-value-source.enum.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/internal/enums/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/internal/enums/lookup-mode.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/internal/model/data-schema/data-schema-attribute-aggregation-config.model.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/internal/model/data-schema/data-schema-attribute-function-config.model.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/internal/model/data-schema/data-schema-validator-config.model.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/internal/model/data-schema/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/internal/model/data-source-config.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/internal/model/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/internal/models/default-value-schema.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/enums/aggregation-function.enum.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/enums/aggregation-type.enum.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/enums/data-schema-type.enum.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/enums/data-value-type.enum.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/enums/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/enums/model-in-page-action.enum.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/esq/data-model/columns/arithmetic/arithmetic-query-column.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/esq/data-model/columns/base-query-column.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/esq/data-model/columns/entity-column/entity-query-column.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/esq/data-model/columns/functions/aggregation-function-column.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/esq/data-model/columns/functions/date-part-function-column.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/esq/data-model/columns/functions/length-function-column.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/esq/data-model/columns/functions/macros-function-column.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/esq/data-model/columns/functions/window-function-column.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/esq/data-model/columns/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/esq/data-model/columns/parameters/parameter-query-column.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/esq/data-model/columns/query-column-test-utils.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/esq/data-model/columns/sub-queries/aggregation-sub-query-column.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/esq/data-model/columns/sub-queries/sub-query-column.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/esq/data-model/enums/admin-unit-role-sources.enum.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/esq/data-model/enums/aggregation-eval-type.enum.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/esq/data-model/enums/arithmetic-operation.enum.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/esq/data-model/enums/comparison-type.enum.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/esq/data-model/enums/date-part-type.enum.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/esq/data-model/enums/expression-type.enum.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/esq/data-model/enums/filter-type.enum.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/esq/data-model/enums/function-type.enum.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/esq/data-model/enums/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/esq/data-model/enums/logical-operator-type.enum.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/esq/data-model/enums/order-direction.enum.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/esq/data-model/enums/query-macros-type.enum.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/esq/data-model/expressions/arithmetic/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/esq/data-model/expressions/columns/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/esq/data-model/expressions/expression-parser/base-expression-parser.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/esq/data-model/expressions/expression-parser/expression-parser.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/esq/data-model/expressions/expression-parser/expression-resolver.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/esq/data-model/expressions/expression-parser/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/esq/data-model/expressions/functions/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/esq/data-model/expressions/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/esq/data-model/expressions/mocks/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/esq/data-model/expressions/parameters/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/esq/data-model/expressions/sub-queries/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/esq/data-model/filters/filter-parser/base-filter-parser.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/esq/data-model/filters/filter-parser/filter-parser.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/esq/data-model/filters/filter-parser/filter-resolver.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/esq/data-model/filters/filter-parser/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/esq/data-model/filters/filter-test-utils.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/esq/data-model/filters/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/esq/data-model/filters/mocks/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/esq/data-model/filters/mocks/parser.mock.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/esq/data-model/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/esq/data-model/metadata-provider/metadata-provider.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/esq/data-model/queries/base-query.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/esq/data-model/queries/delete-query.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/esq/data-model/queries/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/esq/data-model/queries/insert-query.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/esq/data-model/queries/query-operation-type.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/esq/data-model/queries/select-localization-query.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/esq/data-model/queries/update-query.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/esq/data-model/used-column.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/esq/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/exceptions/argument-empty-exception.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/exceptions/argument-out-of-range-exception.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/exceptions/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/exceptions/item-not-found-exception.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/exceptions/next-handler-already-specified-exception.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/interfaces/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/interfaces/serializable.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/models/data-source/data-source-insert-result.model.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/models/data-source/data-source-save-result.model.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/models/data-source/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/models/item-creation-config.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/models/lookup-value.model.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/models/model-init-config.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/models/request/base-request.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/models/request/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/models/request-handler/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/models/request-handler/request-handler.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/models/view-model-collection.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/models/view-model-context.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/services/dialog/dialog.service.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/services/dialog/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/services/dialog/models/base-dialog-button-config.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/services/dialog/models/dialog-action.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/services/dialog/models/dialog-config.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/services/dialog/models/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/services/mask-service/base-mask.service.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/services/mask-service/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/services/mask-service/schema-view-mask.request.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/services/model/base-model.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/services/model/data-schema-attribute.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/services/model/data-schema.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/services/model/data-source-aggregation-config.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/services/model/data-source-attribute.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/services/model/data-source-can-execute-operation.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/services/model/data-source-function-config.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/services/model/data-source-paging-config.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/services/model/data-source-parameter.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/services/model/data-source-sorting-config.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/services/model/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/services/model/model-load-options.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/services/sys-settings/base-sys-settings.service.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/services/sys-settings/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/types/abstract-type.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/types/aggregation-eval.type.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/types/button-color.type.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/types/date-part.type.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/types/entity-column-value.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/types/function.type.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/types/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/types/json-data.type.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/types/localizable-string.type.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/types/localize-fn.type.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/types/resolve-dependency-fn.type.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/types/sort-direction.type.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/types/teardown-logic.type.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/types/type.mjs +0 -0
|
@@ -1,3313 +0,0 @@
|
|
|
1
|
-
import { classToPlain, Exclude, Expose } from 'class-transformer';
|
|
2
|
-
import { __decorate, __metadata } from 'tslib';
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* @public
|
|
6
|
-
* Returns a string represent of date in ISO 8601 without time zone specification(doesn't convert it
|
|
7
|
-
* using local timezone).
|
|
8
|
-
*
|
|
9
|
-
* Example:
|
|
10
|
-
*
|
|
11
|
-
* const date = new Date(2018, 01, 20, 15, 10, 30);
|
|
12
|
-
* const result = toLocalISOString(date);
|
|
13
|
-
* //result: '2018-02-20T15:10:30'
|
|
14
|
-
*
|
|
15
|
-
* @param date Date value.
|
|
16
|
-
*/
|
|
17
|
-
function ɵtoLocalISOString(date) {
|
|
18
|
-
if (!(date instanceof Date)) {
|
|
19
|
-
throw new TypeError();
|
|
20
|
-
}
|
|
21
|
-
const timeZoneOffset = date.getTimezoneOffset() * 60000;
|
|
22
|
-
return new Date(date.getTime() - timeZoneOffset).toISOString().slice(0, -1);
|
|
23
|
-
}
|
|
24
|
-
/**
|
|
25
|
-
* @public
|
|
26
|
-
* Returns encoded date in string value.
|
|
27
|
-
* @param date Date value.
|
|
28
|
-
*/
|
|
29
|
-
function ɵencodeDate(date) {
|
|
30
|
-
return `"${ɵtoLocalISOString(date)}"`;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
/**
|
|
34
|
-
* @public
|
|
35
|
-
*/
|
|
36
|
-
var ɵDataSourceScope;
|
|
37
|
-
(function (ɵDataSourceScope) {
|
|
38
|
-
ɵDataSourceScope["ViewElement"] = "viewElement";
|
|
39
|
-
ɵDataSourceScope["Page"] = "page";
|
|
40
|
-
})(ɵDataSourceScope || (ɵDataSourceScope = {}));
|
|
41
|
-
|
|
42
|
-
/**
|
|
43
|
-
* @public
|
|
44
|
-
*/
|
|
45
|
-
var ɵDataSchemaAttributeType;
|
|
46
|
-
(function (ɵDataSchemaAttributeType) {
|
|
47
|
-
ɵDataSchemaAttributeType["OwnAttribute"] = "Own";
|
|
48
|
-
ɵDataSchemaAttributeType["ForwardReferenceAttribute"] = "ForwardReference";
|
|
49
|
-
ɵDataSchemaAttributeType["BackReferenceAttribute"] = "BackReference";
|
|
50
|
-
ɵDataSchemaAttributeType["AggregationAttribute"] = "Aggregation";
|
|
51
|
-
ɵDataSchemaAttributeType["FunctionAttribute"] = "Function";
|
|
52
|
-
})(ɵDataSchemaAttributeType || (ɵDataSchemaAttributeType = {}));
|
|
53
|
-
/**
|
|
54
|
-
* @public
|
|
55
|
-
*/
|
|
56
|
-
var ɵDataSchemaAttributeUsageType;
|
|
57
|
-
(function (ɵDataSchemaAttributeUsageType) {
|
|
58
|
-
ɵDataSchemaAttributeUsageType[ɵDataSchemaAttributeUsageType["General"] = 0] = "General";
|
|
59
|
-
ɵDataSchemaAttributeUsageType[ɵDataSchemaAttributeUsageType["Advanced"] = 1] = "Advanced";
|
|
60
|
-
ɵDataSchemaAttributeUsageType[ɵDataSchemaAttributeUsageType["None"] = 2] = "None";
|
|
61
|
-
})(ɵDataSchemaAttributeUsageType || (ɵDataSchemaAttributeUsageType = {}));
|
|
62
|
-
|
|
63
|
-
/**
|
|
64
|
-
* @public
|
|
65
|
-
*/
|
|
66
|
-
var ɵDefaultValueSource;
|
|
67
|
-
(function (ɵDefaultValueSource) {
|
|
68
|
-
ɵDefaultValueSource[ɵDefaultValueSource["None"] = 0] = "None";
|
|
69
|
-
ɵDefaultValueSource[ɵDefaultValueSource["Const"] = 1] = "Const";
|
|
70
|
-
ɵDefaultValueSource[ɵDefaultValueSource["Settings"] = 2] = "Settings";
|
|
71
|
-
ɵDefaultValueSource[ɵDefaultValueSource["SystemValue"] = 3] = "SystemValue";
|
|
72
|
-
ɵDefaultValueSource[ɵDefaultValueSource["Sequence"] = 4] = "Sequence";
|
|
73
|
-
})(ɵDefaultValueSource || (ɵDefaultValueSource = {}));
|
|
74
|
-
|
|
75
|
-
/**
|
|
76
|
-
* Lookup mode
|
|
77
|
-
* @internal
|
|
78
|
-
*/
|
|
79
|
-
var LookupMode;
|
|
80
|
-
(function (LookupMode) {
|
|
81
|
-
LookupMode["List"] = "List";
|
|
82
|
-
LookupMode["SelectionWindow"] = "SelectionWindow";
|
|
83
|
-
})(LookupMode || (LookupMode = {}));
|
|
84
|
-
|
|
85
|
-
/**
|
|
86
|
-
* Available platform APIs
|
|
87
|
-
*/
|
|
88
|
-
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
89
|
-
var ɵPlatformAPIs;
|
|
90
|
-
(function (ɵPlatformAPIs) {
|
|
91
|
-
/**
|
|
92
|
-
* Selection metadata API.
|
|
93
|
-
*/
|
|
94
|
-
ɵPlatformAPIs["Selection"] = "selection";
|
|
95
|
-
})(ɵPlatformAPIs || (ɵPlatformAPIs = {}));
|
|
96
|
-
|
|
97
|
-
/**
|
|
98
|
-
* @public
|
|
99
|
-
* Types of values.
|
|
100
|
-
*/
|
|
101
|
-
var ɵDataValueType;
|
|
102
|
-
(function (ɵDataValueType) {
|
|
103
|
-
/**
|
|
104
|
-
* @description Global unique identifier.
|
|
105
|
-
*/
|
|
106
|
-
ɵDataValueType[ɵDataValueType["Guid"] = 0] = "Guid";
|
|
107
|
-
/**
|
|
108
|
-
* @description String.
|
|
109
|
-
*/
|
|
110
|
-
ɵDataValueType[ɵDataValueType["Text"] = 1] = "Text";
|
|
111
|
-
/**
|
|
112
|
-
* @description Integer.
|
|
113
|
-
*/
|
|
114
|
-
ɵDataValueType[ɵDataValueType["Integer"] = 4] = "Integer";
|
|
115
|
-
/**
|
|
116
|
-
* @description Real number.
|
|
117
|
-
*/
|
|
118
|
-
ɵDataValueType[ɵDataValueType["Float"] = 5] = "Float";
|
|
119
|
-
/**
|
|
120
|
-
* @description Currency.
|
|
121
|
-
*/
|
|
122
|
-
ɵDataValueType[ɵDataValueType["Money"] = 6] = "Money";
|
|
123
|
-
/**
|
|
124
|
-
* @description Date and time.
|
|
125
|
-
*/
|
|
126
|
-
ɵDataValueType[ɵDataValueType["DateTime"] = 7] = "DateTime";
|
|
127
|
-
/**
|
|
128
|
-
* @description Date.
|
|
129
|
-
*/
|
|
130
|
-
ɵDataValueType[ɵDataValueType["Date"] = 8] = "Date";
|
|
131
|
-
/**
|
|
132
|
-
* @description Time.
|
|
133
|
-
*/
|
|
134
|
-
ɵDataValueType[ɵDataValueType["Time"] = 9] = "Time";
|
|
135
|
-
/**
|
|
136
|
-
* @description Lookup.
|
|
137
|
-
*/
|
|
138
|
-
ɵDataValueType[ɵDataValueType["Lookup"] = 10] = "Lookup";
|
|
139
|
-
/**
|
|
140
|
-
* @description Enumeration.
|
|
141
|
-
*/
|
|
142
|
-
ɵDataValueType[ɵDataValueType["Enum"] = 11] = "Enum";
|
|
143
|
-
/**
|
|
144
|
-
* @description Boolean.
|
|
145
|
-
*/
|
|
146
|
-
ɵDataValueType[ɵDataValueType["Boolean"] = 12] = "Boolean";
|
|
147
|
-
/**
|
|
148
|
-
* @description Binary data object.
|
|
149
|
-
*/
|
|
150
|
-
ɵDataValueType[ɵDataValueType["Blob"] = 13] = "Blob";
|
|
151
|
-
/**
|
|
152
|
-
* @description The object of image binary data.
|
|
153
|
-
*/
|
|
154
|
-
ɵDataValueType[ɵDataValueType["Image"] = 14] = "Image";
|
|
155
|
-
/**
|
|
156
|
-
* @description Custom object.
|
|
157
|
-
*/
|
|
158
|
-
ɵDataValueType[ɵDataValueType["CUSTOM_OBJECT"] = 15] = "CUSTOM_OBJECT";
|
|
159
|
-
/**
|
|
160
|
-
* @description Image from a lookup.
|
|
161
|
-
*/
|
|
162
|
-
ɵDataValueType[ɵDataValueType["IMAGELOOKUP"] = 16] = "IMAGELOOKUP";
|
|
163
|
-
/**
|
|
164
|
-
* @description Collection of items.
|
|
165
|
-
*/
|
|
166
|
-
ɵDataValueType[ɵDataValueType["COLLECTION"] = 17] = "COLLECTION";
|
|
167
|
-
/**
|
|
168
|
-
* @description Color.
|
|
169
|
-
*/
|
|
170
|
-
ɵDataValueType[ɵDataValueType["Color"] = 18] = "Color";
|
|
171
|
-
/**
|
|
172
|
-
* @description Localized string.
|
|
173
|
-
*/
|
|
174
|
-
ɵDataValueType[ɵDataValueType["LOCALIZABLE_STRING"] = 19] = "LOCALIZABLE_STRING";
|
|
175
|
-
/**
|
|
176
|
-
* @description Object (Entity).
|
|
177
|
-
*/
|
|
178
|
-
ɵDataValueType[ɵDataValueType["ENTITY"] = 20] = "ENTITY";
|
|
179
|
-
/**
|
|
180
|
-
* @description Collection of objects (EntityCollection).
|
|
181
|
-
*/
|
|
182
|
-
ɵDataValueType[ɵDataValueType["ENTITY_COLLECTION"] = 21] = "ENTITY_COLLECTION";
|
|
183
|
-
/**
|
|
184
|
-
* @description List of object column values (EntityColumnMappingCollection).
|
|
185
|
-
*/
|
|
186
|
-
ɵDataValueType[ɵDataValueType["ENTITY_COLUMN_MAPPING_COLLECTION"] = 22] = "ENTITY_COLUMN_MAPPING_COLLECTION";
|
|
187
|
-
/**
|
|
188
|
-
* @description Hash string.
|
|
189
|
-
*/
|
|
190
|
-
ɵDataValueType[ɵDataValueType["HASH_TEXT"] = 23] = "HASH_TEXT";
|
|
191
|
-
/**
|
|
192
|
-
* @description Encrypted string.
|
|
193
|
-
*/
|
|
194
|
-
ɵDataValueType[ɵDataValueType["SECURE_TEXT"] = 24] = "SECURE_TEXT";
|
|
195
|
-
/**
|
|
196
|
-
* @description File.
|
|
197
|
-
*/
|
|
198
|
-
ɵDataValueType[ɵDataValueType["FILE"] = 25] = "FILE";
|
|
199
|
-
/**
|
|
200
|
-
* @description Mapping.
|
|
201
|
-
*/
|
|
202
|
-
ɵDataValueType[ɵDataValueType["MAPPING"] = 26] = "MAPPING";
|
|
203
|
-
/**
|
|
204
|
-
* @description Short length text.
|
|
205
|
-
*/
|
|
206
|
-
ɵDataValueType[ɵDataValueType["SHORT_TEXT"] = 27] = "SHORT_TEXT";
|
|
207
|
-
/**
|
|
208
|
-
* @description Medium length text.
|
|
209
|
-
*/
|
|
210
|
-
ɵDataValueType[ɵDataValueType["MEDIUM_TEXT"] = 28] = "MEDIUM_TEXT";
|
|
211
|
-
/**
|
|
212
|
-
* @description Unlimited length text.
|
|
213
|
-
*/
|
|
214
|
-
ɵDataValueType[ɵDataValueType["MAXSIZE_TEXT"] = 29] = "MAXSIZE_TEXT";
|
|
215
|
-
/**
|
|
216
|
-
* @description Long length text.
|
|
217
|
-
*/
|
|
218
|
-
ɵDataValueType[ɵDataValueType["LONG_TEXT"] = 30] = "LONG_TEXT";
|
|
219
|
-
ɵDataValueType[ɵDataValueType["FLOAT1"] = 31] = "FLOAT1";
|
|
220
|
-
ɵDataValueType[ɵDataValueType["FLOAT2"] = 32] = "FLOAT2";
|
|
221
|
-
ɵDataValueType[ɵDataValueType["FLOAT3"] = 33] = "FLOAT3";
|
|
222
|
-
ɵDataValueType[ɵDataValueType["FLOAT4"] = 34] = "FLOAT4";
|
|
223
|
-
/**
|
|
224
|
-
* @description Localizable parameter values list.
|
|
225
|
-
*/
|
|
226
|
-
ɵDataValueType[ɵDataValueType["LOCALIZABLE_PARAMETER_VALUES_LIST"] = 35] = "LOCALIZABLE_PARAMETER_VALUES_LIST";
|
|
227
|
-
/**
|
|
228
|
-
* @description Process not localizable text.
|
|
229
|
-
*/
|
|
230
|
-
ɵDataValueType[ɵDataValueType["METADATA_TEXT"] = 36] = "METADATA_TEXT";
|
|
231
|
-
/**
|
|
232
|
-
* @description Stage indicator.
|
|
233
|
-
*/
|
|
234
|
-
ɵDataValueType[ɵDataValueType["STAGE_INDICATOR"] = 37] = "STAGE_INDICATOR";
|
|
235
|
-
/**
|
|
236
|
-
* @description Serializable list of values.
|
|
237
|
-
*/
|
|
238
|
-
ɵDataValueType[ɵDataValueType["OBJECT_LIST"] = 38] = "OBJECT_LIST";
|
|
239
|
-
/**
|
|
240
|
-
* @description Serializable list of composite values.
|
|
241
|
-
*/
|
|
242
|
-
ɵDataValueType[ɵDataValueType["COMPOSITE_OBJECT_LIST"] = 39] = "COMPOSITE_OBJECT_LIST";
|
|
243
|
-
ɵDataValueType[ɵDataValueType["FLOAT8"] = 40] = "FLOAT8";
|
|
244
|
-
/**
|
|
245
|
-
* @description File.
|
|
246
|
-
*/
|
|
247
|
-
ɵDataValueType[ɵDataValueType["FILE_LOCATOR"] = 41] = "FILE_LOCATOR";
|
|
248
|
-
/**
|
|
249
|
-
* @description Phone.
|
|
250
|
-
*/
|
|
251
|
-
ɵDataValueType[ɵDataValueType["PHONE_TEXT"] = 42] = "PHONE_TEXT";
|
|
252
|
-
/**
|
|
253
|
-
* @description Text with formating tags.
|
|
254
|
-
*/
|
|
255
|
-
ɵDataValueType[ɵDataValueType["RICH_TEXT"] = 43] = "RICH_TEXT";
|
|
256
|
-
/**
|
|
257
|
-
* @description Web link.
|
|
258
|
-
*/
|
|
259
|
-
ɵDataValueType[ɵDataValueType["WEB_TEXT"] = 44] = "WEB_TEXT";
|
|
260
|
-
/**
|
|
261
|
-
* @description Email.
|
|
262
|
-
*/
|
|
263
|
-
ɵDataValueType[ɵDataValueType["EMAIL_TEXT"] = 45] = "EMAIL_TEXT";
|
|
264
|
-
ɵDataValueType[ɵDataValueType["COMPOSITE_OBJECT"] = 46] = "COMPOSITE_OBJECT";
|
|
265
|
-
})(ɵDataValueType || (ɵDataValueType = {}));
|
|
266
|
-
|
|
267
|
-
/**
|
|
268
|
-
* @public
|
|
269
|
-
* The type of the aggregation (can be set to None).
|
|
270
|
-
*/
|
|
271
|
-
var ɵAggregationType;
|
|
272
|
-
(function (ɵAggregationType) {
|
|
273
|
-
/**
|
|
274
|
-
* @description Aggregation function type not defined.
|
|
275
|
-
*/
|
|
276
|
-
ɵAggregationType[ɵAggregationType["None"] = 0] = "None";
|
|
277
|
-
/**
|
|
278
|
-
* @description Aggregation function type not defined.
|
|
279
|
-
*/
|
|
280
|
-
ɵAggregationType[ɵAggregationType["Count"] = 1] = "Count";
|
|
281
|
-
/**
|
|
282
|
-
* @description Sum of values of all elements.
|
|
283
|
-
*/
|
|
284
|
-
ɵAggregationType[ɵAggregationType["Sum"] = 2] = "Sum";
|
|
285
|
-
/**
|
|
286
|
-
* @description Average value for all elements.
|
|
287
|
-
*/
|
|
288
|
-
ɵAggregationType[ɵAggregationType["Avg"] = 3] = "Avg";
|
|
289
|
-
/**
|
|
290
|
-
* @description The minimum value among all elements.
|
|
291
|
-
*/
|
|
292
|
-
ɵAggregationType[ɵAggregationType["Min"] = 4] = "Min";
|
|
293
|
-
/**
|
|
294
|
-
* @description The maximum value among all elements.
|
|
295
|
-
*/
|
|
296
|
-
ɵAggregationType[ɵAggregationType["Max"] = 5] = "Max";
|
|
297
|
-
/**
|
|
298
|
-
* @description Top one record from collection.
|
|
299
|
-
*/
|
|
300
|
-
ɵAggregationType[ɵAggregationType["TopOne"] = 6] = "TopOne";
|
|
301
|
-
})(ɵAggregationType || (ɵAggregationType = {}));
|
|
302
|
-
|
|
303
|
-
/**
|
|
304
|
-
* @public
|
|
305
|
-
* The type of the aggregation function (can be set to None).
|
|
306
|
-
*/
|
|
307
|
-
var ɵAggregationFunction;
|
|
308
|
-
(function (ɵAggregationFunction) {
|
|
309
|
-
/**
|
|
310
|
-
* @description Aggregation function type not defined.
|
|
311
|
-
*/
|
|
312
|
-
ɵAggregationFunction["None"] = "";
|
|
313
|
-
/**
|
|
314
|
-
* @description Aggregation function type not defined.
|
|
315
|
-
*/
|
|
316
|
-
ɵAggregationFunction["Count"] = "Count";
|
|
317
|
-
/**
|
|
318
|
-
* @description Sum of values of all elements.
|
|
319
|
-
*/
|
|
320
|
-
ɵAggregationFunction["Sum"] = "Sum";
|
|
321
|
-
/**
|
|
322
|
-
* @description Average value for all elements.
|
|
323
|
-
*/
|
|
324
|
-
ɵAggregationFunction["Avg"] = "Avg";
|
|
325
|
-
/**
|
|
326
|
-
* @description The minimum value among all elements.
|
|
327
|
-
*/
|
|
328
|
-
ɵAggregationFunction["Min"] = "Min";
|
|
329
|
-
/**
|
|
330
|
-
* @description The maximum value among all elements.
|
|
331
|
-
*/
|
|
332
|
-
ɵAggregationFunction["Max"] = "Max";
|
|
333
|
-
/**
|
|
334
|
-
* @description Top one record from collection.
|
|
335
|
-
*/
|
|
336
|
-
ɵAggregationFunction["TopOne"] = "TopOne";
|
|
337
|
-
})(ɵAggregationFunction || (ɵAggregationFunction = {}));
|
|
338
|
-
|
|
339
|
-
/**
|
|
340
|
-
* @public
|
|
341
|
-
* @decription Type of DataSchema. In combination with the name is used for unique identification of {@link ɵDataSchema}.
|
|
342
|
-
*/
|
|
343
|
-
var ɵDataSchemaType;
|
|
344
|
-
(function (ɵDataSchemaType) {
|
|
345
|
-
/**
|
|
346
|
-
* @description Entity.
|
|
347
|
-
*/
|
|
348
|
-
ɵDataSchemaType["Entity"] = "Entity";
|
|
349
|
-
/**
|
|
350
|
-
* @description Client unit.
|
|
351
|
-
*/
|
|
352
|
-
ɵDataSchemaType["ClientUnit"] = "ClientUnit";
|
|
353
|
-
/**
|
|
354
|
-
* @description Intent.
|
|
355
|
-
*/
|
|
356
|
-
ɵDataSchemaType["Intent"] = "Intent";
|
|
357
|
-
})(ɵDataSchemaType || (ɵDataSchemaType = {}));
|
|
358
|
-
|
|
359
|
-
/**
|
|
360
|
-
* @public
|
|
361
|
-
* @description Type of the action of the model.
|
|
362
|
-
*/
|
|
363
|
-
var ɵModelInPageAction;
|
|
364
|
-
(function (ɵModelInPageAction) {
|
|
365
|
-
/**
|
|
366
|
-
* @description Action for editing existed record.
|
|
367
|
-
*/
|
|
368
|
-
ɵModelInPageAction["Edit"] = "edit";
|
|
369
|
-
/**
|
|
370
|
-
* @description Action for adding new record.
|
|
371
|
-
*/
|
|
372
|
-
ɵModelInPageAction["Add"] = "add";
|
|
373
|
-
/**
|
|
374
|
-
* @description Action for copying the record.
|
|
375
|
-
*/
|
|
376
|
-
ɵModelInPageAction["Copy"] = "copy";
|
|
377
|
-
})(ɵModelInPageAction || (ɵModelInPageAction = {}));
|
|
378
|
-
|
|
379
|
-
/**
|
|
380
|
-
* @public
|
|
381
|
-
* @description type of sending message.
|
|
382
|
-
*/
|
|
383
|
-
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
384
|
-
var ɵMessageChannelType;
|
|
385
|
-
(function (ɵMessageChannelType) {
|
|
386
|
-
ɵMessageChannelType["PTP"] = "PTPMsg";
|
|
387
|
-
ɵMessageChannelType["BROADCAST"] = "BroadcastMsg";
|
|
388
|
-
})(ɵMessageChannelType || (ɵMessageChannelType = {}));
|
|
389
|
-
|
|
390
|
-
/**
|
|
391
|
-
* @public
|
|
392
|
-
* @description SysAdminUnitInRole source type.
|
|
393
|
-
*/
|
|
394
|
-
var eAdminUnitRoleSources;
|
|
395
|
-
(function (eAdminUnitRoleSources) {
|
|
396
|
-
/**
|
|
397
|
-
* @description Empty value.
|
|
398
|
-
*/
|
|
399
|
-
eAdminUnitRoleSources[eAdminUnitRoleSources["None"] = 0] = "None";
|
|
400
|
-
/**
|
|
401
|
-
* @description Self.
|
|
402
|
-
*/
|
|
403
|
-
eAdminUnitRoleSources[eAdminUnitRoleSources["Self"] = 1] = "Self";
|
|
404
|
-
/**
|
|
405
|
-
* @description Explicit entry into role.
|
|
406
|
-
*/
|
|
407
|
-
eAdminUnitRoleSources[eAdminUnitRoleSources["ExplicitEntry"] = 2] = "ExplicitEntry";
|
|
408
|
-
/**
|
|
409
|
-
* @description Delegated role.
|
|
410
|
-
*/
|
|
411
|
-
eAdminUnitRoleSources[eAdminUnitRoleSources["Delegated"] = 4] = "Delegated";
|
|
412
|
-
/**
|
|
413
|
-
* @description Gets functional role from organizational role.
|
|
414
|
-
*/
|
|
415
|
-
eAdminUnitRoleSources[eAdminUnitRoleSources["FuncRoleFromOrgRole"] = 8] = "FuncRoleFromOrgRole";
|
|
416
|
-
/**
|
|
417
|
-
* @description Gets role up hierarchy from role.
|
|
418
|
-
*/
|
|
419
|
-
eAdminUnitRoleSources[eAdminUnitRoleSources["UpHierarchy"] = 16] = "UpHierarchy";
|
|
420
|
-
/**
|
|
421
|
-
* @description Gets role as a manager.
|
|
422
|
-
*/
|
|
423
|
-
eAdminUnitRoleSources[eAdminUnitRoleSources["AsManager"] = 32] = "AsManager";
|
|
424
|
-
/**
|
|
425
|
-
* @description Gets all roles.
|
|
426
|
-
*/
|
|
427
|
-
eAdminUnitRoleSources[eAdminUnitRoleSources["All"] = 63] = "All";
|
|
428
|
-
})(eAdminUnitRoleSources || (eAdminUnitRoleSources = {}));
|
|
429
|
-
|
|
430
|
-
/**
|
|
431
|
-
* @public
|
|
432
|
-
* @description Scope of the aggregation function.
|
|
433
|
-
*/
|
|
434
|
-
var ɵAggregationEvalType;
|
|
435
|
-
(function (ɵAggregationEvalType) {
|
|
436
|
-
/**
|
|
437
|
-
* @description The scope of the aggregating function is not defined.
|
|
438
|
-
*/
|
|
439
|
-
ɵAggregationEvalType[ɵAggregationEvalType["None"] = 0] = "None";
|
|
440
|
-
/**
|
|
441
|
-
* @description Applies to all elements.
|
|
442
|
-
*/
|
|
443
|
-
ɵAggregationEvalType[ɵAggregationEvalType["All"] = 1] = "All";
|
|
444
|
-
/**
|
|
445
|
-
* @description Applies to unique values.
|
|
446
|
-
*/
|
|
447
|
-
ɵAggregationEvalType[ɵAggregationEvalType["Distinct"] = 2] = "Distinct";
|
|
448
|
-
})(ɵAggregationEvalType || (ɵAggregationEvalType = {}));
|
|
449
|
-
|
|
450
|
-
/**
|
|
451
|
-
* @public
|
|
452
|
-
* @description Arithmetic operation.
|
|
453
|
-
*/
|
|
454
|
-
var ɵArithmeticOperation;
|
|
455
|
-
(function (ɵArithmeticOperation) {
|
|
456
|
-
/**
|
|
457
|
-
* @description Addition.
|
|
458
|
-
*/
|
|
459
|
-
ɵArithmeticOperation[ɵArithmeticOperation["Addition"] = 0] = "Addition";
|
|
460
|
-
/**
|
|
461
|
-
* @description Subtraction.
|
|
462
|
-
*/
|
|
463
|
-
ɵArithmeticOperation[ɵArithmeticOperation["Subtraction"] = 1] = "Subtraction";
|
|
464
|
-
/**
|
|
465
|
-
* @description Multiplication.
|
|
466
|
-
*/
|
|
467
|
-
ɵArithmeticOperation[ɵArithmeticOperation["Multiplication"] = 2] = "Multiplication";
|
|
468
|
-
/**
|
|
469
|
-
* @description Division.
|
|
470
|
-
*/
|
|
471
|
-
ɵArithmeticOperation[ɵArithmeticOperation["Division"] = 3] = "Division";
|
|
472
|
-
})(ɵArithmeticOperation || (ɵArithmeticOperation = {}));
|
|
473
|
-
|
|
474
|
-
/**
|
|
475
|
-
* @public
|
|
476
|
-
* @description The type of comparison operation in the filter.
|
|
477
|
-
*/
|
|
478
|
-
/* eslint-disable @typescript-eslint/naming-convention */
|
|
479
|
-
var ɵComparisonType;
|
|
480
|
-
(function (ɵComparisonType) {
|
|
481
|
-
/**
|
|
482
|
-
* @public
|
|
483
|
-
* @description Value is between two specified values.
|
|
484
|
-
*/
|
|
485
|
-
ɵComparisonType[ɵComparisonType["Between"] = 0] = "Between";
|
|
486
|
-
/**
|
|
487
|
-
* @public
|
|
488
|
-
* @description Value contains a specified substring.
|
|
489
|
-
*/
|
|
490
|
-
ɵComparisonType[ɵComparisonType["Contain"] = 11] = "Contain";
|
|
491
|
-
/**
|
|
492
|
-
* @public
|
|
493
|
-
* @description Value ends with a specified substring.
|
|
494
|
-
*/
|
|
495
|
-
ɵComparisonType[ɵComparisonType["End_with"] = 13] = "End_with";
|
|
496
|
-
/**
|
|
497
|
-
* @public
|
|
498
|
-
* @description Value is equal to a specified value.
|
|
499
|
-
*/
|
|
500
|
-
ɵComparisonType[ɵComparisonType["Equal"] = 3] = "Equal";
|
|
501
|
-
/**
|
|
502
|
-
* @public
|
|
503
|
-
* @description Value exists (is not null or undefined).
|
|
504
|
-
*/
|
|
505
|
-
ɵComparisonType[ɵComparisonType["Exists"] = 15] = "Exists";
|
|
506
|
-
/**
|
|
507
|
-
* @public
|
|
508
|
-
* @description Value is greater than a specified value.
|
|
509
|
-
*/
|
|
510
|
-
ɵComparisonType[ɵComparisonType["Greater"] = 7] = "Greater";
|
|
511
|
-
/**
|
|
512
|
-
* @public
|
|
513
|
-
* @description Value is greater than or equal to a specified value.
|
|
514
|
-
*/
|
|
515
|
-
ɵComparisonType[ɵComparisonType["Greater_or_equal"] = 8] = "Greater_or_equal";
|
|
516
|
-
/**
|
|
517
|
-
* @public
|
|
518
|
-
* @description Value is not null.
|
|
519
|
-
*/
|
|
520
|
-
ɵComparisonType[ɵComparisonType["Is_not_null"] = 2] = "Is_not_null";
|
|
521
|
-
/**
|
|
522
|
-
* @public
|
|
523
|
-
* @description Value is null.
|
|
524
|
-
*/
|
|
525
|
-
ɵComparisonType[ɵComparisonType["Is_null"] = 1] = "Is_null";
|
|
526
|
-
/**
|
|
527
|
-
* @public
|
|
528
|
-
* @description Value is less than a specified value.
|
|
529
|
-
*/
|
|
530
|
-
ɵComparisonType[ɵComparisonType["Less"] = 5] = "Less";
|
|
531
|
-
/**
|
|
532
|
-
* @public
|
|
533
|
-
* @description Value is less than or equal to a specified value.
|
|
534
|
-
*/
|
|
535
|
-
ɵComparisonType[ɵComparisonType["Less_or_equal"] = 6] = "Less_or_equal";
|
|
536
|
-
/**
|
|
537
|
-
* @public
|
|
538
|
-
* @description Value does not contain a specified substring.
|
|
539
|
-
*/
|
|
540
|
-
ɵComparisonType[ɵComparisonType["Not_contain"] = 12] = "Not_contain";
|
|
541
|
-
/**
|
|
542
|
-
* @public
|
|
543
|
-
* @description Value does not end with a specified substring.
|
|
544
|
-
*/
|
|
545
|
-
ɵComparisonType[ɵComparisonType["Not_end_with"] = 14] = "Not_end_with";
|
|
546
|
-
/**
|
|
547
|
-
* @public
|
|
548
|
-
* @description Value is not equal to a specified value.
|
|
549
|
-
*/
|
|
550
|
-
ɵComparisonType[ɵComparisonType["Not_equal"] = 4] = "Not_equal";
|
|
551
|
-
/**
|
|
552
|
-
* @public
|
|
553
|
-
* @description Value does not exist (is null or undefined).
|
|
554
|
-
*/
|
|
555
|
-
ɵComparisonType[ɵComparisonType["Not_exists"] = 16] = "Not_exists";
|
|
556
|
-
/**
|
|
557
|
-
* @public
|
|
558
|
-
* @description Value does not start with a specified substring.
|
|
559
|
-
*/
|
|
560
|
-
ɵComparisonType[ɵComparisonType["Not_start_with"] = 10] = "Not_start_with";
|
|
561
|
-
/**
|
|
562
|
-
* @public
|
|
563
|
-
* @description Value starts with a specified substring.
|
|
564
|
-
*/
|
|
565
|
-
ɵComparisonType[ɵComparisonType["Start_with"] = 9] = "Start_with";
|
|
566
|
-
})(ɵComparisonType || (ɵComparisonType = {}));
|
|
567
|
-
|
|
568
|
-
/**
|
|
569
|
-
* @public
|
|
570
|
-
* @description Part of the date.
|
|
571
|
-
*/
|
|
572
|
-
var ɵDatePartType;
|
|
573
|
-
(function (ɵDatePartType) {
|
|
574
|
-
/**
|
|
575
|
-
* @description Empty value.
|
|
576
|
-
*/
|
|
577
|
-
ɵDatePartType[ɵDatePartType["None"] = 0] = "None";
|
|
578
|
-
/**
|
|
579
|
-
* @description Day.
|
|
580
|
-
*/
|
|
581
|
-
ɵDatePartType[ɵDatePartType["Day"] = 1] = "Day";
|
|
582
|
-
/**
|
|
583
|
-
* @description Week.
|
|
584
|
-
*/
|
|
585
|
-
ɵDatePartType[ɵDatePartType["Week"] = 2] = "Week";
|
|
586
|
-
/**
|
|
587
|
-
* @description Month.
|
|
588
|
-
*/
|
|
589
|
-
ɵDatePartType[ɵDatePartType["Month"] = 3] = "Month";
|
|
590
|
-
/**
|
|
591
|
-
* @description Year.
|
|
592
|
-
*/
|
|
593
|
-
ɵDatePartType[ɵDatePartType["Year"] = 4] = "Year";
|
|
594
|
-
/**
|
|
595
|
-
* @description Day of the week.
|
|
596
|
-
*/
|
|
597
|
-
ɵDatePartType[ɵDatePartType["WeekDay"] = 5] = "WeekDay";
|
|
598
|
-
/**
|
|
599
|
-
* @description Hour.
|
|
600
|
-
*/
|
|
601
|
-
ɵDatePartType[ɵDatePartType["Hour"] = 6] = "Hour";
|
|
602
|
-
/**
|
|
603
|
-
* @description Minute.
|
|
604
|
-
*/
|
|
605
|
-
ɵDatePartType[ɵDatePartType["HourMinute"] = 7] = "HourMinute";
|
|
606
|
-
})(ɵDatePartType || (ɵDatePartType = {}));
|
|
607
|
-
|
|
608
|
-
/**
|
|
609
|
-
* @public
|
|
610
|
-
* @description Type of expression.
|
|
611
|
-
*/
|
|
612
|
-
var ɵExpressionType;
|
|
613
|
-
(function (ɵExpressionType) {
|
|
614
|
-
/**
|
|
615
|
-
* @description Column.
|
|
616
|
-
*/
|
|
617
|
-
ɵExpressionType[ɵExpressionType["SchemaColumn"] = 0] = "SchemaColumn";
|
|
618
|
-
/**
|
|
619
|
-
* @description Function.
|
|
620
|
-
*/
|
|
621
|
-
ɵExpressionType[ɵExpressionType["Function"] = 1] = "Function";
|
|
622
|
-
/**
|
|
623
|
-
* @description Parameter.
|
|
624
|
-
*/
|
|
625
|
-
ɵExpressionType[ɵExpressionType["Parameter"] = 2] = "Parameter";
|
|
626
|
-
/**
|
|
627
|
-
* @description Subselect query.
|
|
628
|
-
*/
|
|
629
|
-
ɵExpressionType[ɵExpressionType["SubQuery"] = 3] = "SubQuery";
|
|
630
|
-
/**
|
|
631
|
-
* @description Arithmetic operation.
|
|
632
|
-
*/
|
|
633
|
-
ɵExpressionType[ɵExpressionType["ArithmeticOperation"] = 4] = "ArithmeticOperation";
|
|
634
|
-
})(ɵExpressionType || (ɵExpressionType = {}));
|
|
635
|
-
|
|
636
|
-
/**
|
|
637
|
-
* @public
|
|
638
|
-
* @description The type of filter.
|
|
639
|
-
*/
|
|
640
|
-
var ɵFilterType;
|
|
641
|
-
(function (ɵFilterType) {
|
|
642
|
-
/**
|
|
643
|
-
* @public
|
|
644
|
-
* @description No filter applied.
|
|
645
|
-
*/
|
|
646
|
-
ɵFilterType[ɵFilterType["None"] = 0] = "None";
|
|
647
|
-
/**
|
|
648
|
-
* @public
|
|
649
|
-
* @description Comparison filter (e.g., equal to, greater than).
|
|
650
|
-
*/
|
|
651
|
-
ɵFilterType[ɵFilterType["Compare"] = 1] = "Compare";
|
|
652
|
-
/**
|
|
653
|
-
* @public
|
|
654
|
-
* @description Checks if a value is null.
|
|
655
|
-
*/
|
|
656
|
-
ɵFilterType[ɵFilterType["IsNull"] = 2] = "IsNull";
|
|
657
|
-
/**
|
|
658
|
-
* @public
|
|
659
|
-
* @description Checks if a value is between two specified values.
|
|
660
|
-
*/
|
|
661
|
-
ɵFilterType[ɵFilterType["Between"] = 3] = "Between";
|
|
662
|
-
/**
|
|
663
|
-
* @public
|
|
664
|
-
* @description Checks if a value is in a specified set of values.
|
|
665
|
-
*/
|
|
666
|
-
ɵFilterType[ɵFilterType["In"] = 4] = "In";
|
|
667
|
-
/**
|
|
668
|
-
* @public
|
|
669
|
-
* @description Checks if a value exists.
|
|
670
|
-
*/
|
|
671
|
-
ɵFilterType[ɵFilterType["Exists"] = 5] = "Exists";
|
|
672
|
-
/**
|
|
673
|
-
* @public
|
|
674
|
-
* @description A group of filters combined with logical operators (AND, OR).
|
|
675
|
-
*/
|
|
676
|
-
ɵFilterType[ɵFilterType["FilterGroup"] = 6] = "FilterGroup";
|
|
677
|
-
})(ɵFilterType || (ɵFilterType = {}));
|
|
678
|
-
|
|
679
|
-
/**
|
|
680
|
-
* @public
|
|
681
|
-
* @description The type of function in the filter.
|
|
682
|
-
*/
|
|
683
|
-
var ɵFunctionType;
|
|
684
|
-
(function (ɵFunctionType) {
|
|
685
|
-
/**
|
|
686
|
-
* @description Function type not defined.
|
|
687
|
-
* */
|
|
688
|
-
ɵFunctionType[ɵFunctionType["None"] = 0] = "None";
|
|
689
|
-
/**
|
|
690
|
-
* @description Substitution by macro.
|
|
691
|
-
* */
|
|
692
|
-
ɵFunctionType[ɵFunctionType["Macros"] = 1] = "Macros";
|
|
693
|
-
/**
|
|
694
|
-
* @description Aggregating function.
|
|
695
|
-
* */
|
|
696
|
-
ɵFunctionType[ɵFunctionType["Aggregation"] = 2] = "Aggregation";
|
|
697
|
-
/**
|
|
698
|
-
* @description Date fragment.
|
|
699
|
-
* */
|
|
700
|
-
ɵFunctionType[ɵFunctionType["DatePart"] = 3] = "DatePart";
|
|
701
|
-
/**
|
|
702
|
-
* @description The size of the value in bytes, used for binary data.
|
|
703
|
-
* */
|
|
704
|
-
ɵFunctionType[ɵFunctionType["Length"] = 4] = "Length";
|
|
705
|
-
/**
|
|
706
|
-
* @description Window query function
|
|
707
|
-
* */
|
|
708
|
-
ɵFunctionType[ɵFunctionType["Window"] = 5] = "Window";
|
|
709
|
-
/**
|
|
710
|
-
* @description Date add.
|
|
711
|
-
* */
|
|
712
|
-
ɵFunctionType[ɵFunctionType["DateAdd"] = 6] = "DateAdd";
|
|
713
|
-
/**
|
|
714
|
-
* @description Date diff.
|
|
715
|
-
* */
|
|
716
|
-
ɵFunctionType[ɵFunctionType["DateDiff"] = 7] = "DateDiff";
|
|
717
|
-
})(ɵFunctionType || (ɵFunctionType = {}));
|
|
718
|
-
|
|
719
|
-
/**
|
|
720
|
-
* @public
|
|
721
|
-
* @description The type of logical operation.
|
|
722
|
-
*/
|
|
723
|
-
var ɵLogicalOperatorType;
|
|
724
|
-
(function (ɵLogicalOperatorType) {
|
|
725
|
-
/**
|
|
726
|
-
* @description Logical And.
|
|
727
|
-
*/
|
|
728
|
-
ɵLogicalOperatorType[ɵLogicalOperatorType["And"] = 0] = "And";
|
|
729
|
-
/**
|
|
730
|
-
* @description Logical Or.
|
|
731
|
-
*/
|
|
732
|
-
ɵLogicalOperatorType[ɵLogicalOperatorType["Or"] = 1] = "Or";
|
|
733
|
-
})(ɵLogicalOperatorType || (ɵLogicalOperatorType = {}));
|
|
734
|
-
|
|
735
|
-
/**
|
|
736
|
-
* @public
|
|
737
|
-
* @description Sort order (can be set to None).
|
|
738
|
-
*/
|
|
739
|
-
var ɵOrderDirection;
|
|
740
|
-
(function (ɵOrderDirection) {
|
|
741
|
-
/**
|
|
742
|
-
* @description Order not defined.
|
|
743
|
-
* */
|
|
744
|
-
ɵOrderDirection[ɵOrderDirection["None"] = 0] = "None";
|
|
745
|
-
/**
|
|
746
|
-
* @description Ascending.
|
|
747
|
-
* */
|
|
748
|
-
ɵOrderDirection[ɵOrderDirection["Asc"] = 1] = "Asc";
|
|
749
|
-
/**
|
|
750
|
-
* @description Descending.
|
|
751
|
-
* */
|
|
752
|
-
ɵOrderDirection[ɵOrderDirection["Desc"] = 2] = "Desc";
|
|
753
|
-
})(ɵOrderDirection || (ɵOrderDirection = {}));
|
|
754
|
-
|
|
755
|
-
/**
|
|
756
|
-
* @public
|
|
757
|
-
* @description The type of macros.
|
|
758
|
-
*/
|
|
759
|
-
var ɵQueryMacrosType;
|
|
760
|
-
(function (ɵQueryMacrosType) {
|
|
761
|
-
/**
|
|
762
|
-
* @description Macro type not defined.
|
|
763
|
-
*/
|
|
764
|
-
ɵQueryMacrosType[ɵQueryMacrosType["None"] = 0] = "None";
|
|
765
|
-
/**
|
|
766
|
-
* @description Current user.
|
|
767
|
-
*/
|
|
768
|
-
ɵQueryMacrosType[ɵQueryMacrosType["CurrentUser"] = 1] = "CurrentUser";
|
|
769
|
-
/**
|
|
770
|
-
* @description Current user contact.
|
|
771
|
-
*/
|
|
772
|
-
ɵQueryMacrosType[ɵQueryMacrosType["CurrentUserContact"] = 2] = "CurrentUserContact";
|
|
773
|
-
/**
|
|
774
|
-
* @description Yesterday.
|
|
775
|
-
*/
|
|
776
|
-
ɵQueryMacrosType[ɵQueryMacrosType["Yesterday"] = 3] = "Yesterday";
|
|
777
|
-
/**
|
|
778
|
-
* @description Today.
|
|
779
|
-
*/
|
|
780
|
-
ɵQueryMacrosType[ɵQueryMacrosType["Today"] = 4] = "Today";
|
|
781
|
-
/**
|
|
782
|
-
* @description Tomorrow.
|
|
783
|
-
*/
|
|
784
|
-
ɵQueryMacrosType[ɵQueryMacrosType["Tomorrow"] = 5] = "Tomorrow";
|
|
785
|
-
/**
|
|
786
|
-
* @description Previous week.
|
|
787
|
-
*/
|
|
788
|
-
ɵQueryMacrosType[ɵQueryMacrosType["PreviousWeek"] = 6] = "PreviousWeek";
|
|
789
|
-
/**
|
|
790
|
-
* @description This week.
|
|
791
|
-
*/
|
|
792
|
-
ɵQueryMacrosType[ɵQueryMacrosType["CurrentWeek"] = 7] = "CurrentWeek";
|
|
793
|
-
/**
|
|
794
|
-
* @description Next week.
|
|
795
|
-
*/
|
|
796
|
-
ɵQueryMacrosType[ɵQueryMacrosType["NextWeek"] = 8] = "NextWeek";
|
|
797
|
-
/**
|
|
798
|
-
* @description Previous month.
|
|
799
|
-
*/
|
|
800
|
-
ɵQueryMacrosType[ɵQueryMacrosType["PreviousMonth"] = 9] = "PreviousMonth";
|
|
801
|
-
/**
|
|
802
|
-
* @description Current month.
|
|
803
|
-
*/
|
|
804
|
-
ɵQueryMacrosType[ɵQueryMacrosType["CurrentMonth"] = 10] = "CurrentMonth";
|
|
805
|
-
/**
|
|
806
|
-
* @description Next month.
|
|
807
|
-
*/
|
|
808
|
-
ɵQueryMacrosType[ɵQueryMacrosType["NextMonth"] = 11] = "NextMonth";
|
|
809
|
-
/**
|
|
810
|
-
* @description Previous quarter.
|
|
811
|
-
*/
|
|
812
|
-
ɵQueryMacrosType[ɵQueryMacrosType["PreviousQuarter"] = 12] = "PreviousQuarter";
|
|
813
|
-
/**
|
|
814
|
-
* @description Current quarter.
|
|
815
|
-
*/
|
|
816
|
-
ɵQueryMacrosType[ɵQueryMacrosType["CurrentQuarter"] = 13] = "CurrentQuarter";
|
|
817
|
-
/**
|
|
818
|
-
* @description Next quarter.
|
|
819
|
-
*/
|
|
820
|
-
ɵQueryMacrosType[ɵQueryMacrosType["NextQuarter"] = 14] = "NextQuarter";
|
|
821
|
-
/**
|
|
822
|
-
* @description Previous half of the year.
|
|
823
|
-
*/
|
|
824
|
-
ɵQueryMacrosType[ɵQueryMacrosType["PreviousHalfYear"] = 15] = "PreviousHalfYear";
|
|
825
|
-
/**
|
|
826
|
-
* @description Current half-year.
|
|
827
|
-
*/
|
|
828
|
-
ɵQueryMacrosType[ɵQueryMacrosType["CurrentHalfYear"] = 16] = "CurrentHalfYear";
|
|
829
|
-
/**
|
|
830
|
-
* @description Next half-year.
|
|
831
|
-
*/
|
|
832
|
-
ɵQueryMacrosType[ɵQueryMacrosType["NextHalfYear"] = 17] = "NextHalfYear";
|
|
833
|
-
/**
|
|
834
|
-
* @description Last year.
|
|
835
|
-
*/
|
|
836
|
-
ɵQueryMacrosType[ɵQueryMacrosType["PreviousYear"] = 18] = "PreviousYear";
|
|
837
|
-
/**
|
|
838
|
-
* @description This year.
|
|
839
|
-
*/
|
|
840
|
-
ɵQueryMacrosType[ɵQueryMacrosType["CurrentYear"] = 19] = "CurrentYear";
|
|
841
|
-
/**
|
|
842
|
-
* @description Previous hour.
|
|
843
|
-
*/
|
|
844
|
-
ɵQueryMacrosType[ɵQueryMacrosType["PreviousHour"] = 20] = "PreviousHour";
|
|
845
|
-
/**
|
|
846
|
-
* @description Current hour.
|
|
847
|
-
*/
|
|
848
|
-
ɵQueryMacrosType[ɵQueryMacrosType["CurrentHour"] = 21] = "CurrentHour";
|
|
849
|
-
/**
|
|
850
|
-
* @description Next hour.
|
|
851
|
-
*/
|
|
852
|
-
ɵQueryMacrosType[ɵQueryMacrosType["NextHour"] = 22] = "NextHour";
|
|
853
|
-
/**
|
|
854
|
-
* @description Next year.
|
|
855
|
-
*/
|
|
856
|
-
ɵQueryMacrosType[ɵQueryMacrosType["NextYear"] = 23] = "NextYear";
|
|
857
|
-
/**
|
|
858
|
-
* @description Next N Days.
|
|
859
|
-
*/
|
|
860
|
-
ɵQueryMacrosType[ɵQueryMacrosType["NextNDays"] = 24] = "NextNDays";
|
|
861
|
-
/**
|
|
862
|
-
* @description Previous N days.
|
|
863
|
-
*/
|
|
864
|
-
ɵQueryMacrosType[ɵQueryMacrosType["PreviousNDays"] = 25] = "PreviousNDays";
|
|
865
|
-
/**
|
|
866
|
-
* @description Next N hours.
|
|
867
|
-
*/
|
|
868
|
-
ɵQueryMacrosType[ɵQueryMacrosType["NextNHours"] = 26] = "NextNHours";
|
|
869
|
-
/**
|
|
870
|
-
* @description Previous N hours.
|
|
871
|
-
*/
|
|
872
|
-
ɵQueryMacrosType[ɵQueryMacrosType["PreviousNHours"] = 27] = "PreviousNHours";
|
|
873
|
-
/**
|
|
874
|
-
* @description Primary column.
|
|
875
|
-
*/
|
|
876
|
-
ɵQueryMacrosType[ɵQueryMacrosType["PrimaryColumn"] = 34] = "PrimaryColumn";
|
|
877
|
-
/**
|
|
878
|
-
* @description Primary displayed column.
|
|
879
|
-
*/
|
|
880
|
-
ɵQueryMacrosType[ɵQueryMacrosType["PrimaryDisplayColumn"] = 35] = "PrimaryDisplayColumn";
|
|
881
|
-
/**
|
|
882
|
-
* @description Primary image display column.
|
|
883
|
-
*/
|
|
884
|
-
ɵQueryMacrosType[ɵQueryMacrosType["PrimaryImageColumn"] = 36] = "PrimaryImageColumn";
|
|
885
|
-
/**
|
|
886
|
-
* @description Anniversary today.
|
|
887
|
-
*/
|
|
888
|
-
ɵQueryMacrosType[ɵQueryMacrosType["DayOfYearToday"] = 37] = "DayOfYearToday";
|
|
889
|
-
/**
|
|
890
|
-
* @description Anniversary on the date computed as today plus days offset.
|
|
891
|
-
*/
|
|
892
|
-
ɵQueryMacrosType[ɵQueryMacrosType["DayOfYearTodayPlusDaysOffset"] = 38] = "DayOfYearTodayPlusDaysOffset";
|
|
893
|
-
/**
|
|
894
|
-
* @description Anniversary on the next several days.
|
|
895
|
-
*/
|
|
896
|
-
ɵQueryMacrosType[ɵQueryMacrosType["NextNDaysOfYear"] = 39] = "NextNDaysOfYear";
|
|
897
|
-
/**
|
|
898
|
-
* @description Anniversary on the previous several days.
|
|
899
|
-
*/
|
|
900
|
-
ɵQueryMacrosType[ɵQueryMacrosType["PreviousNDaysOfYear"] = 40] = "PreviousNDaysOfYear";
|
|
901
|
-
/**
|
|
902
|
-
* @description Primary color display column.
|
|
903
|
-
*/
|
|
904
|
-
ɵQueryMacrosType[ɵQueryMacrosType["PrimaryColorColumn"] = 41] = "PrimaryColorColumn";
|
|
905
|
-
})(ɵQueryMacrosType || (ɵQueryMacrosType = {}));
|
|
906
|
-
|
|
907
|
-
/**
|
|
908
|
-
* @public
|
|
909
|
-
* @abstract
|
|
910
|
-
* @description The base class of the expression.
|
|
911
|
-
* @extends {ɵSerializable}
|
|
912
|
-
*/
|
|
913
|
-
class ɵBaseExpression {
|
|
914
|
-
/**
|
|
915
|
-
* @internal
|
|
916
|
-
* @dontChange
|
|
917
|
-
*/
|
|
918
|
-
static get _instanceOfKeys() {
|
|
919
|
-
return [this._instanceOfKey];
|
|
920
|
-
}
|
|
921
|
-
/**
|
|
922
|
-
* @public
|
|
923
|
-
* @description Method for checking if an instance is of the current class type.
|
|
924
|
-
* @param instance - The instance to check.
|
|
925
|
-
* @returns `true` if the instance is of the current class type, `false` otherwise.
|
|
926
|
-
*/
|
|
927
|
-
static [Symbol.hasInstance](instance) {
|
|
928
|
-
var _a, _b;
|
|
929
|
-
const instanceOfKeys = (_b = (_a = instance === null || instance === void 0 ? void 0 : instance.constructor) === null || _a === void 0 ? void 0 : _a['_instanceOfKeys']) !== null && _b !== void 0 ? _b : [];
|
|
930
|
-
return instanceOfKeys.includes(this._instanceOfKey);
|
|
931
|
-
}
|
|
932
|
-
constructor(config) {
|
|
933
|
-
/**
|
|
934
|
-
* @description True if expression has brackets.
|
|
935
|
-
*/
|
|
936
|
-
this.isBlock = false;
|
|
937
|
-
this.isBlock = config === null || config === void 0 ? void 0 : config.isBlock;
|
|
938
|
-
}
|
|
939
|
-
/**
|
|
940
|
-
* @public
|
|
941
|
-
* @description Parses expression from json.
|
|
942
|
-
*/
|
|
943
|
-
static fromJson(dto, filterParser, expressionParser) {
|
|
944
|
-
throw new Error(`fromJson not supported on expression type ${this.constructor.name}`);
|
|
945
|
-
}
|
|
946
|
-
/**
|
|
947
|
-
* @description Converts instance to json object.
|
|
948
|
-
* @param item - The instance to serialize.
|
|
949
|
-
*/
|
|
950
|
-
serializeItem(item) {
|
|
951
|
-
return typeof item.toJson === 'function'
|
|
952
|
-
? item.toJson()
|
|
953
|
-
: classToPlain(item, {
|
|
954
|
-
exposeUnsetFields: false,
|
|
955
|
-
excludePrefixes: ['_'],
|
|
956
|
-
});
|
|
957
|
-
}
|
|
958
|
-
/**
|
|
959
|
-
* @public
|
|
960
|
-
* @description Converts instance to json object.
|
|
961
|
-
*/
|
|
962
|
-
toJson() {
|
|
963
|
-
return classToPlain(this, {
|
|
964
|
-
exposeUnsetFields: false,
|
|
965
|
-
excludePrefixes: ['_'],
|
|
966
|
-
});
|
|
967
|
-
}
|
|
968
|
-
}
|
|
969
|
-
/**
|
|
970
|
-
* @internal
|
|
971
|
-
* @dontChange
|
|
972
|
-
*/
|
|
973
|
-
ɵBaseExpression._instanceOfKey = 'devkit_BaseExpression';
|
|
974
|
-
|
|
975
|
-
/**
|
|
976
|
-
* @public
|
|
977
|
-
* @description Arithmetic expression.
|
|
978
|
-
* @extends {ɵBaseExpression}
|
|
979
|
-
*/
|
|
980
|
-
class ɵArithmeticExpression extends ɵBaseExpression {
|
|
981
|
-
/**
|
|
982
|
-
* @internal
|
|
983
|
-
* @dontChange
|
|
984
|
-
*/
|
|
985
|
-
static get _instanceOfKeys() {
|
|
986
|
-
return [...ɵBaseExpression._instanceOfKeys, this._instanceOfKey];
|
|
987
|
-
}
|
|
988
|
-
constructor(config) {
|
|
989
|
-
super(config);
|
|
990
|
-
/**
|
|
991
|
-
* @description Expression type. Default 'ArithmeticOperation'.
|
|
992
|
-
*/
|
|
993
|
-
this.expressionType = ɵExpressionType.ArithmeticOperation;
|
|
994
|
-
this.arithmeticOperation = config === null || config === void 0 ? void 0 : config.arithmeticOperation;
|
|
995
|
-
this.leftArithmeticOperand = config === null || config === void 0 ? void 0 : config.leftArithmeticOperand.clone();
|
|
996
|
-
this.rightArithmeticOperand = config === null || config === void 0 ? void 0 : config.rightArithmeticOperand.clone();
|
|
997
|
-
}
|
|
998
|
-
/**
|
|
999
|
-
* Parses expression from json.
|
|
1000
|
-
* @public
|
|
1001
|
-
*/
|
|
1002
|
-
static fromJson(dto, filterParser, expressionParser) {
|
|
1003
|
-
const leftArithmeticOperand = expressionParser === null || expressionParser === void 0 ? void 0 : expressionParser.fromJson(dto['leftArithmeticOperand'], filterParser);
|
|
1004
|
-
const rightArithmeticOperand = expressionParser === null || expressionParser === void 0 ? void 0 : expressionParser.fromJson(dto['rightArithmeticOperand'], filterParser);
|
|
1005
|
-
const config = {
|
|
1006
|
-
leftArithmeticOperand,
|
|
1007
|
-
rightArithmeticOperand,
|
|
1008
|
-
arithmeticOperation: dto['arithmeticOperation'],
|
|
1009
|
-
isBlock: dto['isBlock'],
|
|
1010
|
-
};
|
|
1011
|
-
return new ɵArithmeticExpression(config);
|
|
1012
|
-
}
|
|
1013
|
-
/**
|
|
1014
|
-
* @public
|
|
1015
|
-
* @description Clones instance.
|
|
1016
|
-
*/
|
|
1017
|
-
clone() {
|
|
1018
|
-
return new ɵArithmeticExpression(this);
|
|
1019
|
-
}
|
|
1020
|
-
/**
|
|
1021
|
-
* @internal
|
|
1022
|
-
*/
|
|
1023
|
-
_getUsedColumns() {
|
|
1024
|
-
return [...this.leftArithmeticOperand._getUsedColumns(), ...this.rightArithmeticOperand._getUsedColumns()];
|
|
1025
|
-
}
|
|
1026
|
-
}
|
|
1027
|
-
/**
|
|
1028
|
-
* @internal
|
|
1029
|
-
* @dontChange
|
|
1030
|
-
*/
|
|
1031
|
-
ɵArithmeticExpression._instanceOfKey = 'devkit_ArithmeticExpression';
|
|
1032
|
-
|
|
1033
|
-
/**
|
|
1034
|
-
* @public
|
|
1035
|
-
* @description A class that defines an expression of type column EntitySchema.
|
|
1036
|
-
* @extends {ɵBaseExpression}
|
|
1037
|
-
*/
|
|
1038
|
-
class ɵColumnExpression extends ɵBaseExpression {
|
|
1039
|
-
/**
|
|
1040
|
-
* @internal
|
|
1041
|
-
* @dontChange
|
|
1042
|
-
*/
|
|
1043
|
-
static get _instanceOfKeys() {
|
|
1044
|
-
return [...ɵBaseExpression._instanceOfKeys, this._instanceOfKey];
|
|
1045
|
-
}
|
|
1046
|
-
constructor(config) {
|
|
1047
|
-
super(config);
|
|
1048
|
-
/**
|
|
1049
|
-
* @description Type of expression.
|
|
1050
|
-
*/
|
|
1051
|
-
this.expressionType = ɵExpressionType.SchemaColumn;
|
|
1052
|
-
this.columnPath = config === null || config === void 0 ? void 0 : config.columnPath;
|
|
1053
|
-
}
|
|
1054
|
-
/**
|
|
1055
|
-
* Parses expression from json.
|
|
1056
|
-
* @public
|
|
1057
|
-
* @param dto - Serialized object.
|
|
1058
|
-
*/
|
|
1059
|
-
static fromJson(dto) {
|
|
1060
|
-
const expression = new ɵColumnExpression({ columnPath: dto['columnPath'] });
|
|
1061
|
-
return expression;
|
|
1062
|
-
}
|
|
1063
|
-
/**
|
|
1064
|
-
* @description Clones instance.
|
|
1065
|
-
*/
|
|
1066
|
-
clone() {
|
|
1067
|
-
return new ɵColumnExpression(this);
|
|
1068
|
-
}
|
|
1069
|
-
/**
|
|
1070
|
-
* @internal
|
|
1071
|
-
*/
|
|
1072
|
-
_getUsedColumns() {
|
|
1073
|
-
return [
|
|
1074
|
-
{
|
|
1075
|
-
path: this.columnPath,
|
|
1076
|
-
},
|
|
1077
|
-
];
|
|
1078
|
-
}
|
|
1079
|
-
}
|
|
1080
|
-
/**
|
|
1081
|
-
* @internal
|
|
1082
|
-
* @dontChange
|
|
1083
|
-
*/
|
|
1084
|
-
ɵColumnExpression._instanceOfKey = 'devkit_ColumnExpression';
|
|
1085
|
-
|
|
1086
|
-
/**
|
|
1087
|
-
* @public
|
|
1088
|
-
* @description Expression parser interface.
|
|
1089
|
-
*/
|
|
1090
|
-
class ɵBaseExpressionParser {
|
|
1091
|
-
/**
|
|
1092
|
-
* @public
|
|
1093
|
-
* @description Parses filter from json.
|
|
1094
|
-
* @param dto - Serialized object.
|
|
1095
|
-
* @param filterParser - Type of parser.
|
|
1096
|
-
* @return InstanceType of expression.
|
|
1097
|
-
*/
|
|
1098
|
-
static fromJson(dto, filterParser) {
|
|
1099
|
-
throw new Error('not implemented');
|
|
1100
|
-
}
|
|
1101
|
-
}
|
|
1102
|
-
|
|
1103
|
-
/**
|
|
1104
|
-
* @public
|
|
1105
|
-
* @abstract
|
|
1106
|
-
* @description A class that describes a functional expression.
|
|
1107
|
-
* @extends {ɵFunctionExpression}
|
|
1108
|
-
*/
|
|
1109
|
-
class ɵFunctionExpression extends ɵBaseExpression {
|
|
1110
|
-
/**
|
|
1111
|
-
* @internal
|
|
1112
|
-
* @dontChange
|
|
1113
|
-
*/
|
|
1114
|
-
static get _instanceOfKeys() {
|
|
1115
|
-
return [...ɵBaseExpression._instanceOfKeys, this._instanceOfKey];
|
|
1116
|
-
}
|
|
1117
|
-
constructor(config) {
|
|
1118
|
-
super(config);
|
|
1119
|
-
/**
|
|
1120
|
-
* @description Expression type. Default 'Function'.
|
|
1121
|
-
*/
|
|
1122
|
-
this.expressionType = ɵExpressionType.Function;
|
|
1123
|
-
}
|
|
1124
|
-
}
|
|
1125
|
-
/**
|
|
1126
|
-
* @internal
|
|
1127
|
-
* @dontChange
|
|
1128
|
-
*/
|
|
1129
|
-
ɵFunctionExpression._instanceOfKey = 'devkit_FunctionExpression';
|
|
1130
|
-
|
|
1131
|
-
/**
|
|
1132
|
-
* @public
|
|
1133
|
-
* @abstract
|
|
1134
|
-
* @description A class that describes a functional expression with argument.
|
|
1135
|
-
* @extends {ɵFunctionExpression}
|
|
1136
|
-
*/
|
|
1137
|
-
class ɵArgumentFunctionExpression extends ɵFunctionExpression {
|
|
1138
|
-
/**
|
|
1139
|
-
* @internal
|
|
1140
|
-
* @dontChange
|
|
1141
|
-
*/
|
|
1142
|
-
static get _instanceOfKeys() {
|
|
1143
|
-
return [...ɵFunctionExpression._instanceOfKeys, this._instanceOfKey];
|
|
1144
|
-
}
|
|
1145
|
-
constructor(config) {
|
|
1146
|
-
var _a;
|
|
1147
|
-
super(config);
|
|
1148
|
-
this.functionArgument = (_a = config === null || config === void 0 ? void 0 : config.functionArgument) === null || _a === void 0 ? void 0 : _a.clone();
|
|
1149
|
-
}
|
|
1150
|
-
/** {@inheritDoc ɵBaseExpression.toJson} */
|
|
1151
|
-
toJson() {
|
|
1152
|
-
const result = super.toJson();
|
|
1153
|
-
if (this.functionArgument) {
|
|
1154
|
-
result['functionArgument'] = this.serializeItem(this.functionArgument);
|
|
1155
|
-
}
|
|
1156
|
-
return result;
|
|
1157
|
-
}
|
|
1158
|
-
/**
|
|
1159
|
-
* @internal
|
|
1160
|
-
*/
|
|
1161
|
-
_getUsedColumns() {
|
|
1162
|
-
var _a, _b;
|
|
1163
|
-
return (_b = (_a = this.functionArgument) === null || _a === void 0 ? void 0 : _a._getUsedColumns()) !== null && _b !== void 0 ? _b : [];
|
|
1164
|
-
}
|
|
1165
|
-
}
|
|
1166
|
-
/**
|
|
1167
|
-
* @internal
|
|
1168
|
-
* @dontChange
|
|
1169
|
-
*/
|
|
1170
|
-
ɵArgumentFunctionExpression._instanceOfKey = 'devkit_ArgumentFunctionExpression';
|
|
1171
|
-
|
|
1172
|
-
/**
|
|
1173
|
-
* @public
|
|
1174
|
-
* @description A class that describes expression with aggregate function.
|
|
1175
|
-
* @extends {ɵArgumentFunctionExpression}
|
|
1176
|
-
*/
|
|
1177
|
-
class ɵAggregationFunctionExpression extends ɵArgumentFunctionExpression {
|
|
1178
|
-
/**
|
|
1179
|
-
* @internal
|
|
1180
|
-
* @dontChange
|
|
1181
|
-
*/
|
|
1182
|
-
static get _instanceOfKeys() {
|
|
1183
|
-
return [...ɵArgumentFunctionExpression._instanceOfKeys, this._instanceOfKey];
|
|
1184
|
-
}
|
|
1185
|
-
constructor(config) {
|
|
1186
|
-
super(config);
|
|
1187
|
-
/**
|
|
1188
|
-
* @description The type of the functional expression passed for initialization.
|
|
1189
|
-
*/
|
|
1190
|
-
this.functionType = ɵFunctionType.Aggregation;
|
|
1191
|
-
this.aggregationType = config === null || config === void 0 ? void 0 : config.aggregationType;
|
|
1192
|
-
this.aggregationEvalType = config === null || config === void 0 ? void 0 : config.aggregationEvalType;
|
|
1193
|
-
}
|
|
1194
|
-
/**
|
|
1195
|
-
* Parses expression from json.
|
|
1196
|
-
* @public
|
|
1197
|
-
*/
|
|
1198
|
-
static fromJson(dto, filterParser, expressionParser) {
|
|
1199
|
-
const functionArgument = expressionParser === null || expressionParser === void 0 ? void 0 : expressionParser.fromJson(dto['functionArgument'], filterParser);
|
|
1200
|
-
const aggregationType = dto['aggregationType'];
|
|
1201
|
-
const aggregationEvalType = dto['aggregationEvalType'];
|
|
1202
|
-
return new ɵAggregationFunctionExpression({
|
|
1203
|
-
functionArgument,
|
|
1204
|
-
aggregationType,
|
|
1205
|
-
aggregationEvalType,
|
|
1206
|
-
isBlock: dto['isBlock'],
|
|
1207
|
-
});
|
|
1208
|
-
}
|
|
1209
|
-
/** {@inheritDoc ɵBaseExpression.clone} */
|
|
1210
|
-
clone() {
|
|
1211
|
-
return new ɵAggregationFunctionExpression(this);
|
|
1212
|
-
}
|
|
1213
|
-
}
|
|
1214
|
-
/**
|
|
1215
|
-
* @internal
|
|
1216
|
-
* @dontChange
|
|
1217
|
-
*/
|
|
1218
|
-
ɵAggregationFunctionExpression._instanceOfKey = 'devkit_AggregationFunctionExpression';
|
|
1219
|
-
|
|
1220
|
-
/**
|
|
1221
|
-
* @public
|
|
1222
|
-
* @description A class that describes expression part of date function.
|
|
1223
|
-
* @extends {ɵArgumentFunctionExpression}
|
|
1224
|
-
*/
|
|
1225
|
-
class ɵDatePartFunctionExpression extends ɵArgumentFunctionExpression {
|
|
1226
|
-
/**
|
|
1227
|
-
* @internal
|
|
1228
|
-
* @dontChange
|
|
1229
|
-
*/
|
|
1230
|
-
static get _instanceOfKeys() {
|
|
1231
|
-
return [...ɵArgumentFunctionExpression._instanceOfKeys, this._instanceOfKey];
|
|
1232
|
-
}
|
|
1233
|
-
constructor(config) {
|
|
1234
|
-
super(config);
|
|
1235
|
-
/**
|
|
1236
|
-
* @description Function type. Default 'DatePart'.
|
|
1237
|
-
*/
|
|
1238
|
-
this.functionType = ɵFunctionType.DatePart;
|
|
1239
|
-
this.datePartType = config === null || config === void 0 ? void 0 : config.datePartType;
|
|
1240
|
-
}
|
|
1241
|
-
/**
|
|
1242
|
-
* Parses expression from json.
|
|
1243
|
-
* @public
|
|
1244
|
-
*/
|
|
1245
|
-
static fromJson(dto, filterParser, expressionParser) {
|
|
1246
|
-
const functionArgument = expressionParser === null || expressionParser === void 0 ? void 0 : expressionParser.fromJson(dto['functionArgument'], filterParser);
|
|
1247
|
-
const datePartType = dto['datePartType'];
|
|
1248
|
-
return new ɵDatePartFunctionExpression({ functionArgument, datePartType, isBlock: dto['isBlock'] });
|
|
1249
|
-
}
|
|
1250
|
-
/** {@inheritDoc ɵBaseExpression.clone} */
|
|
1251
|
-
clone() {
|
|
1252
|
-
return new ɵDatePartFunctionExpression(this);
|
|
1253
|
-
}
|
|
1254
|
-
}
|
|
1255
|
-
/**
|
|
1256
|
-
* @internal
|
|
1257
|
-
* @dontChange
|
|
1258
|
-
*/
|
|
1259
|
-
ɵDatePartFunctionExpression._instanceOfKey = 'devkit_DatePartFunctionExpression';
|
|
1260
|
-
|
|
1261
|
-
/**
|
|
1262
|
-
* @public
|
|
1263
|
-
* @description A class that describes expression with length function.
|
|
1264
|
-
* @extends {ɵArgumentFunctionExpression}
|
|
1265
|
-
*/
|
|
1266
|
-
class ɵLengthFunctionExpression extends ɵArgumentFunctionExpression {
|
|
1267
|
-
/**
|
|
1268
|
-
* @internal
|
|
1269
|
-
* @dontChange
|
|
1270
|
-
*/
|
|
1271
|
-
static get _instanceOfKeys() {
|
|
1272
|
-
return [...ɵArgumentFunctionExpression._instanceOfKeys, this._instanceOfKey];
|
|
1273
|
-
}
|
|
1274
|
-
constructor(config) {
|
|
1275
|
-
super(config);
|
|
1276
|
-
/**
|
|
1277
|
-
* @description Function type. Default 'Length'.
|
|
1278
|
-
*/
|
|
1279
|
-
this.functionType = ɵFunctionType.Length;
|
|
1280
|
-
}
|
|
1281
|
-
/**
|
|
1282
|
-
* Parses expression from json.
|
|
1283
|
-
* @public
|
|
1284
|
-
*/
|
|
1285
|
-
static fromJson(dto, filterParser, expressionParser) {
|
|
1286
|
-
const functionArgument = expressionParser === null || expressionParser === void 0 ? void 0 : expressionParser.fromJson(dto['functionArgument'], filterParser);
|
|
1287
|
-
return new ɵLengthFunctionExpression({ functionArgument, isBlock: dto['isBlock'] });
|
|
1288
|
-
}
|
|
1289
|
-
/**
|
|
1290
|
-
* @description Method to create cloned instance.
|
|
1291
|
-
*/
|
|
1292
|
-
clone() {
|
|
1293
|
-
return new ɵLengthFunctionExpression(this);
|
|
1294
|
-
}
|
|
1295
|
-
}
|
|
1296
|
-
/**
|
|
1297
|
-
* @internal
|
|
1298
|
-
* @dontChange
|
|
1299
|
-
*/
|
|
1300
|
-
ɵLengthFunctionExpression._instanceOfKey = 'devkit_LengthFunctionExpression';
|
|
1301
|
-
|
|
1302
|
-
/**
|
|
1303
|
-
* @public
|
|
1304
|
-
* @description A class that describes expression with macros function.
|
|
1305
|
-
* @extends {ɵFunctionExpression}
|
|
1306
|
-
*/
|
|
1307
|
-
class ɵMacrosFunctionExpression extends ɵFunctionExpression {
|
|
1308
|
-
/**
|
|
1309
|
-
* @internal
|
|
1310
|
-
* @dontChange
|
|
1311
|
-
*/
|
|
1312
|
-
static get _instanceOfKeys() {
|
|
1313
|
-
return [...ɵFunctionExpression._instanceOfKeys, this._instanceOfKey];
|
|
1314
|
-
}
|
|
1315
|
-
constructor(config) {
|
|
1316
|
-
super(config);
|
|
1317
|
-
/**
|
|
1318
|
-
* @description Function type. Default 'Macros'.
|
|
1319
|
-
*/
|
|
1320
|
-
this.functionType = ɵFunctionType.Macros;
|
|
1321
|
-
this.macrosType = config === null || config === void 0 ? void 0 : config.macrosType;
|
|
1322
|
-
this.functionArgument = config === null || config === void 0 ? void 0 : config.functionArgument;
|
|
1323
|
-
}
|
|
1324
|
-
/**
|
|
1325
|
-
* Parses expression from json.
|
|
1326
|
-
* @public
|
|
1327
|
-
*/
|
|
1328
|
-
static fromJson(dto, filterParser, expressionParser) {
|
|
1329
|
-
const functionArgument = filterParser && expressionParser && dto['functionArgument']
|
|
1330
|
-
? expressionParser.fromJson(dto['functionArgument'], filterParser)
|
|
1331
|
-
: undefined;
|
|
1332
|
-
return new ɵMacrosFunctionExpression({ functionArgument, macrosType: dto['macrosType'] });
|
|
1333
|
-
}
|
|
1334
|
-
/**
|
|
1335
|
-
* @description method to create cloned instance.
|
|
1336
|
-
*/
|
|
1337
|
-
clone() {
|
|
1338
|
-
return new ɵMacrosFunctionExpression(this);
|
|
1339
|
-
}
|
|
1340
|
-
/**
|
|
1341
|
-
* @internal
|
|
1342
|
-
*/
|
|
1343
|
-
_getUsedColumns() {
|
|
1344
|
-
var _a, _b;
|
|
1345
|
-
return (_b = (_a = this.functionArgument) === null || _a === void 0 ? void 0 : _a._getUsedColumns()) !== null && _b !== void 0 ? _b : [];
|
|
1346
|
-
}
|
|
1347
|
-
}
|
|
1348
|
-
/**
|
|
1349
|
-
* @internal
|
|
1350
|
-
* @dontChange
|
|
1351
|
-
*/
|
|
1352
|
-
ɵMacrosFunctionExpression._instanceOfKey = 'devkit_MacrosFunctionExpression';
|
|
1353
|
-
|
|
1354
|
-
/**
|
|
1355
|
-
* @public
|
|
1356
|
-
* @description A class that describes expression with window function.
|
|
1357
|
-
* @extends {ɵArgumentFunctionExpression}
|
|
1358
|
-
*/
|
|
1359
|
-
class ɵWindowFunctionExpression extends ɵArgumentFunctionExpression {
|
|
1360
|
-
/**
|
|
1361
|
-
* @internal
|
|
1362
|
-
* @dontChange
|
|
1363
|
-
*/
|
|
1364
|
-
static get _instanceOfKeys() {
|
|
1365
|
-
return [...ɵArgumentFunctionExpression._instanceOfKeys, this._instanceOfKey];
|
|
1366
|
-
}
|
|
1367
|
-
constructor(config) {
|
|
1368
|
-
super(config);
|
|
1369
|
-
/**
|
|
1370
|
-
* @description Function type.
|
|
1371
|
-
*/
|
|
1372
|
-
this.functionType = ɵFunctionType.Window;
|
|
1373
|
-
}
|
|
1374
|
-
/**
|
|
1375
|
-
* Parses expression from json.
|
|
1376
|
-
* @public
|
|
1377
|
-
*/
|
|
1378
|
-
static fromJson(dto, filterParser, expressionParser) {
|
|
1379
|
-
const functionArgument = expressionParser === null || expressionParser === void 0 ? void 0 : expressionParser.fromJson(dto['functionArgument'], filterParser);
|
|
1380
|
-
return new ɵWindowFunctionExpression({ functionArgument, isBlock: dto['isBlock'] });
|
|
1381
|
-
}
|
|
1382
|
-
/** {@inheritDoc ɵBaseExpression.clone} */
|
|
1383
|
-
clone() {
|
|
1384
|
-
return new ɵWindowFunctionExpression(this);
|
|
1385
|
-
}
|
|
1386
|
-
}
|
|
1387
|
-
/**
|
|
1388
|
-
* @internal
|
|
1389
|
-
* @dontChange
|
|
1390
|
-
*/
|
|
1391
|
-
ɵWindowFunctionExpression._instanceOfKey = 'devkit_WindowFunctionExpression';
|
|
1392
|
-
|
|
1393
|
-
/**
|
|
1394
|
-
* @public
|
|
1395
|
-
* @description The class that defines the parametric expression.
|
|
1396
|
-
* @extends {ɵBaseExpression}
|
|
1397
|
-
*/
|
|
1398
|
-
class ɵParameterExpression extends ɵBaseExpression {
|
|
1399
|
-
/**
|
|
1400
|
-
* @internal
|
|
1401
|
-
* @dontChange
|
|
1402
|
-
*/
|
|
1403
|
-
static get _instanceOfKeys() {
|
|
1404
|
-
return [...ɵBaseExpression._instanceOfKeys, this._instanceOfKey];
|
|
1405
|
-
}
|
|
1406
|
-
constructor(config) {
|
|
1407
|
-
var _a;
|
|
1408
|
-
super(config);
|
|
1409
|
-
/**
|
|
1410
|
-
* @description Type of expression.
|
|
1411
|
-
*/
|
|
1412
|
-
this.expressionType = ɵExpressionType.Parameter;
|
|
1413
|
-
const value = config === null || config === void 0 ? void 0 : config.value;
|
|
1414
|
-
if (value instanceof Date) {
|
|
1415
|
-
const cloneDate = new Date();
|
|
1416
|
-
cloneDate.setTime(value.getTime());
|
|
1417
|
-
this.value = cloneDate;
|
|
1418
|
-
}
|
|
1419
|
-
else if (!value) {
|
|
1420
|
-
this.value = value;
|
|
1421
|
-
}
|
|
1422
|
-
else {
|
|
1423
|
-
this.value = typeof value === 'object' ? Object.assign({}, value) : value;
|
|
1424
|
-
}
|
|
1425
|
-
this.dataValueType = (_a = config === null || config === void 0 ? void 0 : config.dataValueType) !== null && _a !== void 0 ? _a : ɵDataValueType.Text;
|
|
1426
|
-
this.parameter = Object.assign({ dataValueType: this.dataValueType }, this._getParameterValueMetadata());
|
|
1427
|
-
}
|
|
1428
|
-
/**
|
|
1429
|
-
* Parses expression from json.
|
|
1430
|
-
* @public
|
|
1431
|
-
*/
|
|
1432
|
-
static fromJson(dto) {
|
|
1433
|
-
const expression = new ɵParameterExpression(dto['parameter']);
|
|
1434
|
-
return expression;
|
|
1435
|
-
}
|
|
1436
|
-
_convertStringToBlobArray(str) {
|
|
1437
|
-
const out = [];
|
|
1438
|
-
let position = 0;
|
|
1439
|
-
for (let i = 0; i < str.length; i++) {
|
|
1440
|
-
const code = str.charCodeAt(i);
|
|
1441
|
-
if (code < 128) {
|
|
1442
|
-
out[position++] = String.fromCharCode(code);
|
|
1443
|
-
}
|
|
1444
|
-
else if (code < 2048) {
|
|
1445
|
-
/* eslint-disable no-bitwise */
|
|
1446
|
-
out[position++] = String.fromCharCode((code >> 6) | 192);
|
|
1447
|
-
out[position++] = String.fromCharCode((code & 63) | 128);
|
|
1448
|
-
}
|
|
1449
|
-
else {
|
|
1450
|
-
out[position++] = String.fromCharCode((code >> 12) | 224);
|
|
1451
|
-
out[position++] = String.fromCharCode(((code >> 6) & 63) | 128);
|
|
1452
|
-
out[position++] = String.fromCharCode((code & 63) | 128);
|
|
1453
|
-
/* eslint-enable no-bitwise */
|
|
1454
|
-
}
|
|
1455
|
-
}
|
|
1456
|
-
return out;
|
|
1457
|
-
}
|
|
1458
|
-
_getParameterValueMetadata() {
|
|
1459
|
-
if (this.dataValueType === ɵDataValueType.Blob) {
|
|
1460
|
-
return {
|
|
1461
|
-
arrayValue: !this.value ? [] : this._convertStringToBlobArray(this.value),
|
|
1462
|
-
};
|
|
1463
|
-
}
|
|
1464
|
-
else if (this.value instanceof Date) {
|
|
1465
|
-
return {
|
|
1466
|
-
value: ɵencodeDate(this.value),
|
|
1467
|
-
};
|
|
1468
|
-
}
|
|
1469
|
-
else {
|
|
1470
|
-
return {
|
|
1471
|
-
value: this.value,
|
|
1472
|
-
};
|
|
1473
|
-
}
|
|
1474
|
-
}
|
|
1475
|
-
/**
|
|
1476
|
-
* @description Returns cloned instance.
|
|
1477
|
-
*/
|
|
1478
|
-
clone() {
|
|
1479
|
-
return new ɵParameterExpression(this);
|
|
1480
|
-
}
|
|
1481
|
-
/**
|
|
1482
|
-
* @internal
|
|
1483
|
-
*/
|
|
1484
|
-
_getUsedColumns() {
|
|
1485
|
-
return [];
|
|
1486
|
-
}
|
|
1487
|
-
}
|
|
1488
|
-
/**
|
|
1489
|
-
* @internal
|
|
1490
|
-
* @dontChange
|
|
1491
|
-
*/
|
|
1492
|
-
ɵParameterExpression._instanceOfKey = 'devkit_ParameterExpression';
|
|
1493
|
-
__decorate([
|
|
1494
|
-
Exclude(),
|
|
1495
|
-
__metadata("design:type", Object)
|
|
1496
|
-
], ɵParameterExpression.prototype, "value", void 0);
|
|
1497
|
-
__decorate([
|
|
1498
|
-
Exclude(),
|
|
1499
|
-
__metadata("design:type", Number)
|
|
1500
|
-
], ɵParameterExpression.prototype, "dataValueType", void 0);
|
|
1501
|
-
|
|
1502
|
-
/**
|
|
1503
|
-
* @public
|
|
1504
|
-
* @abstract
|
|
1505
|
-
* @description The base class of the filter.
|
|
1506
|
-
* @extends {ɵSerializable}
|
|
1507
|
-
*/
|
|
1508
|
-
class ɵBaseFilter {
|
|
1509
|
-
/**
|
|
1510
|
-
* @internal
|
|
1511
|
-
* @dontChange
|
|
1512
|
-
*/
|
|
1513
|
-
static get _instanceOfKeys() {
|
|
1514
|
-
return [this._instanceOfKey];
|
|
1515
|
-
}
|
|
1516
|
-
/**
|
|
1517
|
-
* @public
|
|
1518
|
-
* @description Method for checking if an instance is of the current class type.
|
|
1519
|
-
* @param instance - The instance to check.
|
|
1520
|
-
* @returns `true` if the instance is of the current class type, `false` otherwise.
|
|
1521
|
-
*/
|
|
1522
|
-
static [Symbol.hasInstance](instance) {
|
|
1523
|
-
var _a, _b;
|
|
1524
|
-
const instanceOfKeys = (_b = (_a = instance === null || instance === void 0 ? void 0 : instance.constructor) === null || _a === void 0 ? void 0 : _a['_instanceOfKeys']) !== null && _b !== void 0 ? _b : [];
|
|
1525
|
-
return instanceOfKeys.includes(this._instanceOfKey);
|
|
1526
|
-
}
|
|
1527
|
-
constructor(filterType) {
|
|
1528
|
-
/**
|
|
1529
|
-
* @description Indicates that the filter is active and will be taken into account when building the query.
|
|
1530
|
-
*/
|
|
1531
|
-
this.isEnabled = true;
|
|
1532
|
-
/**
|
|
1533
|
-
* @description Drop the time for the date / time type parameters.
|
|
1534
|
-
*/
|
|
1535
|
-
this.trimDateTimeParameterToDate = false;
|
|
1536
|
-
this.filterType = filterType;
|
|
1537
|
-
}
|
|
1538
|
-
/**
|
|
1539
|
-
* Parses filter from json.
|
|
1540
|
-
* @public
|
|
1541
|
-
*/
|
|
1542
|
-
static fromJson(dto, filterParser, expressionParser) {
|
|
1543
|
-
throw new Error(`fromJson not supported on filter type ${this.constructor.name}`);
|
|
1544
|
-
}
|
|
1545
|
-
serializeItem(item) {
|
|
1546
|
-
return typeof item.toJson === 'function'
|
|
1547
|
-
? item.toJson()
|
|
1548
|
-
: classToPlain(item, {
|
|
1549
|
-
exposeUnsetFields: false,
|
|
1550
|
-
excludePrefixes: ['_'],
|
|
1551
|
-
});
|
|
1552
|
-
}
|
|
1553
|
-
/**
|
|
1554
|
-
* Converts instance to json object.
|
|
1555
|
-
* @public
|
|
1556
|
-
*/
|
|
1557
|
-
toJson() {
|
|
1558
|
-
return classToPlain(this, {
|
|
1559
|
-
exposeUnsetFields: false,
|
|
1560
|
-
excludePrefixes: ['_'],
|
|
1561
|
-
});
|
|
1562
|
-
}
|
|
1563
|
-
}
|
|
1564
|
-
/**
|
|
1565
|
-
* @internal
|
|
1566
|
-
* @dontChange
|
|
1567
|
-
*/
|
|
1568
|
-
ɵBaseFilter._instanceOfKey = 'devkit_BaseFilter';
|
|
1569
|
-
|
|
1570
|
-
/**
|
|
1571
|
-
* @public
|
|
1572
|
-
* @description Basic filter class with one condition.
|
|
1573
|
-
* @extends {ɵBaseFilter}
|
|
1574
|
-
*/
|
|
1575
|
-
class ɵSingleFilter extends ɵBaseFilter {
|
|
1576
|
-
/**
|
|
1577
|
-
* @internal
|
|
1578
|
-
* @dontChange
|
|
1579
|
-
*/
|
|
1580
|
-
static get _instanceOfKeys() {
|
|
1581
|
-
return [...ɵBaseFilter._instanceOfKeys, this._instanceOfKey];
|
|
1582
|
-
}
|
|
1583
|
-
constructor(filterType, comparisonType, leftExpression) {
|
|
1584
|
-
super(filterType);
|
|
1585
|
-
this.comparisonType = comparisonType;
|
|
1586
|
-
this.leftExpression = leftExpression === null || leftExpression === void 0 ? void 0 : leftExpression.clone();
|
|
1587
|
-
}
|
|
1588
|
-
/** {@inheritDoc ɵSerializable.toJson} */
|
|
1589
|
-
toJson() {
|
|
1590
|
-
return Object.assign(Object.assign({}, super.toJson()), { leftExpression: this.serializeItem(this.leftExpression) });
|
|
1591
|
-
}
|
|
1592
|
-
/**
|
|
1593
|
-
* @internal
|
|
1594
|
-
*/
|
|
1595
|
-
_getUsedColumns() {
|
|
1596
|
-
return this.leftExpression._getUsedColumns();
|
|
1597
|
-
}
|
|
1598
|
-
}
|
|
1599
|
-
/**
|
|
1600
|
-
* @internal
|
|
1601
|
-
* @dontChange
|
|
1602
|
-
*/
|
|
1603
|
-
ɵSingleFilter._instanceOfKey = 'devkit_SingleFilter';
|
|
1604
|
-
|
|
1605
|
-
/**
|
|
1606
|
-
* @public
|
|
1607
|
-
* @description Filter class of the "Between" type.
|
|
1608
|
-
* @extends {ɵSingleFilter}
|
|
1609
|
-
*/
|
|
1610
|
-
class ɵBetweenFilter extends ɵSingleFilter {
|
|
1611
|
-
/**
|
|
1612
|
-
* @internal
|
|
1613
|
-
* @dontChange
|
|
1614
|
-
*/
|
|
1615
|
-
static get _instanceOfKeys() {
|
|
1616
|
-
return [...ɵSingleFilter._instanceOfKeys, this._instanceOfKey];
|
|
1617
|
-
}
|
|
1618
|
-
constructor(leftExpression, rightLessExpression, rightGreaterExpression) {
|
|
1619
|
-
super(ɵFilterType.Between, ɵComparisonType.Between, leftExpression);
|
|
1620
|
-
this.rightLessExpression = rightLessExpression === null || rightLessExpression === void 0 ? void 0 : rightLessExpression.clone();
|
|
1621
|
-
this.rightGreaterExpression = rightGreaterExpression === null || rightGreaterExpression === void 0 ? void 0 : rightGreaterExpression.clone();
|
|
1622
|
-
}
|
|
1623
|
-
/**
|
|
1624
|
-
* Parses filter from json.
|
|
1625
|
-
* @public
|
|
1626
|
-
*/
|
|
1627
|
-
static fromJson(dto, filterParser, expressionParser) {
|
|
1628
|
-
const filter = new ɵBetweenFilter(expressionParser.fromJson(dto['leftExpression'], filterParser), expressionParser.fromJson(dto['rightLessExpression'], filterParser), expressionParser.fromJson(dto['rightGreaterExpression'], filterParser));
|
|
1629
|
-
return filter;
|
|
1630
|
-
}
|
|
1631
|
-
clone() {
|
|
1632
|
-
const filter = new ɵBetweenFilter(this.leftExpression, this.rightLessExpression, this.rightGreaterExpression);
|
|
1633
|
-
filter.isEnabled = this.isEnabled;
|
|
1634
|
-
filter.trimDateTimeParameterToDate = this.trimDateTimeParameterToDate;
|
|
1635
|
-
return filter;
|
|
1636
|
-
}
|
|
1637
|
-
toJson() {
|
|
1638
|
-
return Object.assign(Object.assign({}, super.toJson()), { rightLessExpression: this.serializeItem(this.rightLessExpression), rightGreaterExpression: this.serializeItem(this.rightGreaterExpression) });
|
|
1639
|
-
}
|
|
1640
|
-
/**
|
|
1641
|
-
* @internal
|
|
1642
|
-
*/
|
|
1643
|
-
_getUsedColumns() {
|
|
1644
|
-
return [
|
|
1645
|
-
...super._getUsedColumns(),
|
|
1646
|
-
...this.rightLessExpression._getUsedColumns(),
|
|
1647
|
-
...this.rightGreaterExpression._getUsedColumns(),
|
|
1648
|
-
];
|
|
1649
|
-
}
|
|
1650
|
-
}
|
|
1651
|
-
/**
|
|
1652
|
-
* @internal
|
|
1653
|
-
* @dontChange
|
|
1654
|
-
*/
|
|
1655
|
-
ɵBetweenFilter._instanceOfKey = 'devkit_BetweenFilter';
|
|
1656
|
-
|
|
1657
|
-
/**
|
|
1658
|
-
* @public
|
|
1659
|
-
* @description Comparison filter class.
|
|
1660
|
-
* @extends {ɵSingleFilter}
|
|
1661
|
-
*/
|
|
1662
|
-
class ɵCompareFilter extends ɵSingleFilter {
|
|
1663
|
-
/**
|
|
1664
|
-
* @internal
|
|
1665
|
-
* @dontChange
|
|
1666
|
-
*/
|
|
1667
|
-
static get _instanceOfKeys() {
|
|
1668
|
-
return [...ɵSingleFilter._instanceOfKeys, this._instanceOfKey];
|
|
1669
|
-
}
|
|
1670
|
-
constructor(comparisonType, leftExpression, rightExpression) {
|
|
1671
|
-
super(ɵFilterType.Compare, comparisonType, leftExpression);
|
|
1672
|
-
this.rightExpression = rightExpression === null || rightExpression === void 0 ? void 0 : rightExpression.clone();
|
|
1673
|
-
}
|
|
1674
|
-
/**
|
|
1675
|
-
* Parses filter from json.
|
|
1676
|
-
* @public
|
|
1677
|
-
*/
|
|
1678
|
-
static fromJson(dto, filterParser, expressionParser) {
|
|
1679
|
-
const filter = new ɵCompareFilter(dto['comparisonType'], expressionParser.fromJson(dto['leftExpression'], filterParser), expressionParser.fromJson(dto['rightExpression'], filterParser));
|
|
1680
|
-
return filter;
|
|
1681
|
-
}
|
|
1682
|
-
clone() {
|
|
1683
|
-
const filter = new ɵCompareFilter(this.comparisonType, this.leftExpression, this.rightExpression);
|
|
1684
|
-
filter.isEnabled = this.isEnabled;
|
|
1685
|
-
filter.trimDateTimeParameterToDate = this.trimDateTimeParameterToDate;
|
|
1686
|
-
return filter;
|
|
1687
|
-
}
|
|
1688
|
-
toJson() {
|
|
1689
|
-
return Object.assign(Object.assign({}, super.toJson()), { rightExpression: this.serializeItem(this.rightExpression) });
|
|
1690
|
-
}
|
|
1691
|
-
/**
|
|
1692
|
-
* @internal
|
|
1693
|
-
*/
|
|
1694
|
-
_getUsedColumns() {
|
|
1695
|
-
return [...super._getUsedColumns(), ...this.rightExpression._getUsedColumns()];
|
|
1696
|
-
}
|
|
1697
|
-
}
|
|
1698
|
-
/**
|
|
1699
|
-
* @internal
|
|
1700
|
-
* @dontChange
|
|
1701
|
-
*/
|
|
1702
|
-
ɵCompareFilter._instanceOfKey = 'devkit_CompareFilter';
|
|
1703
|
-
|
|
1704
|
-
/**
|
|
1705
|
-
* @public
|
|
1706
|
-
* @description The comparison filter class [Exists according to the specified condition].
|
|
1707
|
-
* @extends {ɵSingleFilter}
|
|
1708
|
-
*/
|
|
1709
|
-
class ɵExistsFilter extends ɵSingleFilter {
|
|
1710
|
-
/**
|
|
1711
|
-
* @internal
|
|
1712
|
-
* @dontChange
|
|
1713
|
-
*/
|
|
1714
|
-
static get _instanceOfKeys() {
|
|
1715
|
-
return [...ɵSingleFilter._instanceOfKeys, this._instanceOfKey];
|
|
1716
|
-
}
|
|
1717
|
-
constructor(leftExpression, subFilters, comparisonType = ɵComparisonType.Exists, isAggregative = true) {
|
|
1718
|
-
super(ɵFilterType.Exists, comparisonType, leftExpression);
|
|
1719
|
-
this.subFilters = subFilters === null || subFilters === void 0 ? void 0 : subFilters.clone();
|
|
1720
|
-
this.isAggregative = isAggregative;
|
|
1721
|
-
}
|
|
1722
|
-
/**
|
|
1723
|
-
* Parses filter from json.
|
|
1724
|
-
* @public
|
|
1725
|
-
*/
|
|
1726
|
-
static fromJson(dto, filterParser, expressionParser) {
|
|
1727
|
-
const leftExpression = expressionParser.fromJson(dto['leftExpression'], filterParser);
|
|
1728
|
-
const subFiltersDto = dto['subFilters'];
|
|
1729
|
-
let subFilters;
|
|
1730
|
-
if (subFiltersDto) {
|
|
1731
|
-
subFilters = filterParser.fromJson(dto['subFilters']);
|
|
1732
|
-
}
|
|
1733
|
-
return new ɵExistsFilter(leftExpression, subFilters, dto['comparisonType'], dto['isAggregative']);
|
|
1734
|
-
}
|
|
1735
|
-
/**
|
|
1736
|
-
* @public
|
|
1737
|
-
* @description Clones instance.
|
|
1738
|
-
*/
|
|
1739
|
-
clone() {
|
|
1740
|
-
const filter = new ɵExistsFilter(this.leftExpression, this.subFilters, this.comparisonType, this.isAggregative);
|
|
1741
|
-
filter.isEnabled = this.isEnabled;
|
|
1742
|
-
filter.trimDateTimeParameterToDate = this.trimDateTimeParameterToDate;
|
|
1743
|
-
return filter;
|
|
1744
|
-
}
|
|
1745
|
-
/** {@inheritDoc ɵSerializable.toJson} */
|
|
1746
|
-
toJson() {
|
|
1747
|
-
const result = super.toJson();
|
|
1748
|
-
if (this.subFilters) {
|
|
1749
|
-
result['subFilters'] = this.serializeItem(this.subFilters);
|
|
1750
|
-
}
|
|
1751
|
-
return result;
|
|
1752
|
-
}
|
|
1753
|
-
/**
|
|
1754
|
-
* @internal
|
|
1755
|
-
*/
|
|
1756
|
-
_getUsedColumns() {
|
|
1757
|
-
var _a, _b;
|
|
1758
|
-
return [...super._getUsedColumns(), ...((_b = (_a = this.subFilters) === null || _a === void 0 ? void 0 : _a._getUsedColumns()) !== null && _b !== void 0 ? _b : [])];
|
|
1759
|
-
}
|
|
1760
|
-
}
|
|
1761
|
-
/**
|
|
1762
|
-
* @internal
|
|
1763
|
-
* @dontChange
|
|
1764
|
-
*/
|
|
1765
|
-
ɵExistsFilter._instanceOfKey = 'devkit_ExistsFilter';
|
|
1766
|
-
|
|
1767
|
-
/**
|
|
1768
|
-
* @public
|
|
1769
|
-
* @description In-Filter Class
|
|
1770
|
-
* @extends {ɵSingleFilter}
|
|
1771
|
-
*/
|
|
1772
|
-
class ɵInFilter extends ɵSingleFilter {
|
|
1773
|
-
/**
|
|
1774
|
-
* @internal
|
|
1775
|
-
* @dontChange
|
|
1776
|
-
*/
|
|
1777
|
-
static get _instanceOfKeys() {
|
|
1778
|
-
return [...ɵSingleFilter._instanceOfKeys, this._instanceOfKey];
|
|
1779
|
-
}
|
|
1780
|
-
constructor(comparisonType, leftExpression, rightExpressions) {
|
|
1781
|
-
var _a;
|
|
1782
|
-
super(ɵFilterType.In, comparisonType, leftExpression);
|
|
1783
|
-
this.rightExpressions = (_a = rightExpressions.map((expression) => expression === null || expression === void 0 ? void 0 : expression.clone())) !== null && _a !== void 0 ? _a : [];
|
|
1784
|
-
}
|
|
1785
|
-
/**
|
|
1786
|
-
* @description Parses in filter from json.
|
|
1787
|
-
* @public
|
|
1788
|
-
*/
|
|
1789
|
-
static fromJson(dto, filterParser, expressionParser) {
|
|
1790
|
-
var _a;
|
|
1791
|
-
const dtoRightExpressions = ((_a = dto['rightExpressions']) !== null && _a !== void 0 ? _a : []);
|
|
1792
|
-
return new ɵInFilter(dto['comparisonType'], expressionParser.fromJson(dto['leftExpression'], filterParser), dtoRightExpressions.map((expression) => expressionParser.fromJson(expression, filterParser)));
|
|
1793
|
-
}
|
|
1794
|
-
/** {@inheritDoc ɵBaseFilter.clone} */
|
|
1795
|
-
clone() {
|
|
1796
|
-
const filter = new ɵInFilter(this.comparisonType, this.leftExpression, this.rightExpressions);
|
|
1797
|
-
filter.isEnabled = this.isEnabled;
|
|
1798
|
-
filter.trimDateTimeParameterToDate = this.trimDateTimeParameterToDate;
|
|
1799
|
-
return filter;
|
|
1800
|
-
}
|
|
1801
|
-
/** {@inheritDoc ɵSerializable.toJson} */
|
|
1802
|
-
toJson() {
|
|
1803
|
-
return Object.assign(Object.assign({}, super.toJson()), { rightExpressions: this.rightExpressions.map((expression) => this.serializeItem(expression)) });
|
|
1804
|
-
}
|
|
1805
|
-
/**
|
|
1806
|
-
* @internal
|
|
1807
|
-
*/
|
|
1808
|
-
_getUsedColumns() {
|
|
1809
|
-
const rightExpressionsUsedColumns = this.rightExpressions
|
|
1810
|
-
.map((expression) => expression._getUsedColumns())
|
|
1811
|
-
.flat();
|
|
1812
|
-
return [...super._getUsedColumns(), ...rightExpressionsUsedColumns];
|
|
1813
|
-
}
|
|
1814
|
-
}
|
|
1815
|
-
/**
|
|
1816
|
-
* @internal
|
|
1817
|
-
* @dontChange
|
|
1818
|
-
*/
|
|
1819
|
-
ɵInFilter._instanceOfKey = 'devkit_InFilter';
|
|
1820
|
-
|
|
1821
|
-
/**
|
|
1822
|
-
* @public
|
|
1823
|
-
* @description IsNull filter Class
|
|
1824
|
-
* @extends {ɵSingleFilter}
|
|
1825
|
-
*/
|
|
1826
|
-
class ɵIsNullFilter extends ɵSingleFilter {
|
|
1827
|
-
/**
|
|
1828
|
-
* @internal
|
|
1829
|
-
* @dontChange
|
|
1830
|
-
*/
|
|
1831
|
-
static get _instanceOfKeys() {
|
|
1832
|
-
return [...ɵSingleFilter._instanceOfKeys, this._instanceOfKey];
|
|
1833
|
-
}
|
|
1834
|
-
constructor(comparisonType, leftExpression) {
|
|
1835
|
-
super(ɵFilterType.IsNull, comparisonType, leftExpression);
|
|
1836
|
-
}
|
|
1837
|
-
/**
|
|
1838
|
-
* @description Flag that indicates if expression is empty or not.
|
|
1839
|
-
*/
|
|
1840
|
-
get isNull() {
|
|
1841
|
-
return this.comparisonType === ɵComparisonType.Is_null;
|
|
1842
|
-
}
|
|
1843
|
-
/**
|
|
1844
|
-
* @description Parses isNull filter from json.
|
|
1845
|
-
* @public
|
|
1846
|
-
*/
|
|
1847
|
-
static fromJson(dto, filterParser, expressionParser) {
|
|
1848
|
-
return new ɵIsNullFilter(dto['comparisonType'], expressionParser.fromJson(dto['leftExpression'], filterParser));
|
|
1849
|
-
}
|
|
1850
|
-
/** {@inheritDoc ɵBaseFilter.clone} */
|
|
1851
|
-
clone() {
|
|
1852
|
-
const filter = new ɵIsNullFilter(this.comparisonType, this.leftExpression);
|
|
1853
|
-
filter.isEnabled = this.isEnabled;
|
|
1854
|
-
filter.trimDateTimeParameterToDate = this.trimDateTimeParameterToDate;
|
|
1855
|
-
return filter;
|
|
1856
|
-
}
|
|
1857
|
-
}
|
|
1858
|
-
/**
|
|
1859
|
-
* @internal
|
|
1860
|
-
* @dontChange
|
|
1861
|
-
*/
|
|
1862
|
-
ɵIsNullFilter._instanceOfKey = 'devkit_IsNullFilter';
|
|
1863
|
-
__decorate([
|
|
1864
|
-
Expose(),
|
|
1865
|
-
__metadata("design:type", Boolean),
|
|
1866
|
-
__metadata("design:paramtypes", [])
|
|
1867
|
-
], ɵIsNullFilter.prototype, "isNull", null);
|
|
1868
|
-
|
|
1869
|
-
/**
|
|
1870
|
-
* @public
|
|
1871
|
-
* @description Empty Guid constant.
|
|
1872
|
-
*/
|
|
1873
|
-
const ɵEMPTY_GUID = '00000000-0000-0000-0000-000000000000';
|
|
1874
|
-
/**
|
|
1875
|
-
* @description Regular expression for Guid validation.
|
|
1876
|
-
* @public
|
|
1877
|
-
*/
|
|
1878
|
-
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');
|
|
1879
|
-
/**
|
|
1880
|
-
* @description Generates guid part.
|
|
1881
|
-
* @param length Part length.
|
|
1882
|
-
* @public
|
|
1883
|
-
*/
|
|
1884
|
-
function generateGuidPart(length) {
|
|
1885
|
-
let out = '';
|
|
1886
|
-
for (let i = 0; i < length; i++) {
|
|
1887
|
-
// eslint-disable-next-line no-bitwise
|
|
1888
|
-
out += (((1 + Math.random()) * 0x10000) | 0).toString(16).substring(1);
|
|
1889
|
-
}
|
|
1890
|
-
return out;
|
|
1891
|
-
}
|
|
1892
|
-
/**
|
|
1893
|
-
* @description Generates new Guid.
|
|
1894
|
-
* @public
|
|
1895
|
-
*/
|
|
1896
|
-
function ɵgenerateGuid() {
|
|
1897
|
-
return [
|
|
1898
|
-
generateGuidPart(2),
|
|
1899
|
-
generateGuidPart(1),
|
|
1900
|
-
generateGuidPart(1),
|
|
1901
|
-
generateGuidPart(1),
|
|
1902
|
-
generateGuidPart(3),
|
|
1903
|
-
].join('-');
|
|
1904
|
-
}
|
|
1905
|
-
/**
|
|
1906
|
-
* @description Checks if value is Guid.
|
|
1907
|
-
* @param value Value for check.
|
|
1908
|
-
* @public
|
|
1909
|
-
*/
|
|
1910
|
-
function ɵisGuid(value) {
|
|
1911
|
-
return Boolean(value) && validator.test(value);
|
|
1912
|
-
}
|
|
1913
|
-
/**
|
|
1914
|
-
* @description Checks if Guid is empty value or equal to EMPTY_GUID.
|
|
1915
|
-
* @param guid Guid for check.
|
|
1916
|
-
* @public
|
|
1917
|
-
*/
|
|
1918
|
-
function ɵisEmptyGuid(guid) {
|
|
1919
|
-
return !guid || guid === ɵEMPTY_GUID;
|
|
1920
|
-
}
|
|
1921
|
-
|
|
1922
|
-
/**
|
|
1923
|
-
* @public
|
|
1924
|
-
* @description An exception thrown when next handler already specified.
|
|
1925
|
-
*/
|
|
1926
|
-
class ɵNextHandlerAlreadySpecifiedException extends Error {
|
|
1927
|
-
constructor() {
|
|
1928
|
-
super('Next handler already specified');
|
|
1929
|
-
}
|
|
1930
|
-
}
|
|
1931
|
-
|
|
1932
|
-
/**
|
|
1933
|
-
* @public
|
|
1934
|
-
* @description The exception thrown when trying to pass an empty or null argument.
|
|
1935
|
-
* @extends {Error}
|
|
1936
|
-
*/
|
|
1937
|
-
class ɵArgumentEmptyException extends Error {
|
|
1938
|
-
// region Constructors: Public
|
|
1939
|
-
constructor(argumentName) {
|
|
1940
|
-
super(`Argument with name '${argumentName}' is empty.`);
|
|
1941
|
-
}
|
|
1942
|
-
}
|
|
1943
|
-
|
|
1944
|
-
/**
|
|
1945
|
-
* @public
|
|
1946
|
-
* @description The exception thrown when trying to pass argument that not in range.
|
|
1947
|
-
* @extends {Error}
|
|
1948
|
-
*/
|
|
1949
|
-
class ɵArgumentOutOfRangeException extends Error {
|
|
1950
|
-
// region Constructors: Public
|
|
1951
|
-
constructor(argumentName) {
|
|
1952
|
-
super(`Argument with name '${argumentName}' is out of range.`);
|
|
1953
|
-
}
|
|
1954
|
-
}
|
|
1955
|
-
|
|
1956
|
-
/**
|
|
1957
|
-
* @public
|
|
1958
|
-
* @description An exception thrown when trying to retrieve a collection item and it not exists.
|
|
1959
|
-
* @extends {Error}
|
|
1960
|
-
*/
|
|
1961
|
-
class ɵItemNotFoundException extends Error {
|
|
1962
|
-
// region Constructors: Public
|
|
1963
|
-
constructor(key) {
|
|
1964
|
-
super(`Item with key '${key}' does not exist.`);
|
|
1965
|
-
}
|
|
1966
|
-
}
|
|
1967
|
-
|
|
1968
|
-
/**
|
|
1969
|
-
* @public
|
|
1970
|
-
* @description Utilities class with various validation methods.
|
|
1971
|
-
*/
|
|
1972
|
-
class ɵValidationUtilities {
|
|
1973
|
-
// region Methods: Public
|
|
1974
|
-
/**
|
|
1975
|
-
* @public
|
|
1976
|
-
* @description Checks if argument is empty.
|
|
1977
|
-
* @param argumentName - Argument name.
|
|
1978
|
-
* @param argumentValue - Value of argument.
|
|
1979
|
-
*/
|
|
1980
|
-
static checkArgumentEmpty(argumentName, argumentValue) {
|
|
1981
|
-
if (argumentValue === undefined || argumentValue === null) {
|
|
1982
|
-
throw new ɵArgumentEmptyException(argumentName);
|
|
1983
|
-
}
|
|
1984
|
-
}
|
|
1985
|
-
/**
|
|
1986
|
-
* @public
|
|
1987
|
-
* @description Checks if array is empty.
|
|
1988
|
-
* @param argumentName - Argument name.
|
|
1989
|
-
* @param argumentValue - Value of argument.
|
|
1990
|
-
*/
|
|
1991
|
-
static checkArrayEmpty(argumentName, argumentValue) {
|
|
1992
|
-
ɵValidationUtilities.checkArgumentEmpty(argumentName, argumentValue);
|
|
1993
|
-
if (argumentValue.length === 0) {
|
|
1994
|
-
throw new ɵArgumentEmptyException(argumentName);
|
|
1995
|
-
}
|
|
1996
|
-
}
|
|
1997
|
-
/**
|
|
1998
|
-
* @public
|
|
1999
|
-
* @description Checks if string is empty.
|
|
2000
|
-
* @param argumentName - Argument name.
|
|
2001
|
-
* @param argumentValue - Value of argument.
|
|
2002
|
-
*/
|
|
2003
|
-
static checkStringIsNotEmpty(argumentName, argumentValue) {
|
|
2004
|
-
this.checkArgumentEmpty(argumentName, argumentValue);
|
|
2005
|
-
if (argumentValue === '') {
|
|
2006
|
-
throw new ɵArgumentEmptyException(argumentName);
|
|
2007
|
-
}
|
|
2008
|
-
return argumentValue;
|
|
2009
|
-
}
|
|
2010
|
-
/**
|
|
2011
|
-
* @public
|
|
2012
|
-
* @description Checks if argument in range.
|
|
2013
|
-
* @param argumentName - Argument name.
|
|
2014
|
-
* @param argumentValue - Value of argument.
|
|
2015
|
-
* @param range - Range.
|
|
2016
|
-
*/
|
|
2017
|
-
static checkArgumentOutOfRange(argumentName, argumentValue, range) {
|
|
2018
|
-
if (range.begin && argumentValue < range.begin) {
|
|
2019
|
-
throw new ɵArgumentOutOfRangeException(argumentName);
|
|
2020
|
-
}
|
|
2021
|
-
if (range.end && argumentValue > range.end) {
|
|
2022
|
-
throw new ɵArgumentOutOfRangeException(argumentName);
|
|
2023
|
-
}
|
|
2024
|
-
}
|
|
2025
|
-
static checkEnumOutOfRange(argumentName, argumentValue, range) {
|
|
2026
|
-
if (!range || !Object.values(range).includes(argumentValue)) {
|
|
2027
|
-
throw new ɵArgumentOutOfRangeException(argumentName);
|
|
2028
|
-
}
|
|
2029
|
-
}
|
|
2030
|
-
}
|
|
2031
|
-
|
|
2032
|
-
/**
|
|
2033
|
-
* @public
|
|
2034
|
-
* @description Group of filters. Groups of filters can be nested into each other,
|
|
2035
|
-
* i.e. The collection itself can be an element of another collection.
|
|
2036
|
-
* @extends {ɵBaseFilter}
|
|
2037
|
-
*/
|
|
2038
|
-
class ɵFilterGroup extends ɵBaseFilter {
|
|
2039
|
-
/**
|
|
2040
|
-
* @internal
|
|
2041
|
-
* @dontChange
|
|
2042
|
-
*/
|
|
2043
|
-
static get _instanceOfKeys() {
|
|
2044
|
-
return [...ɵBaseFilter._instanceOfKeys, this._instanceOfKey];
|
|
2045
|
-
}
|
|
2046
|
-
/**
|
|
2047
|
-
* @public
|
|
2048
|
-
* @description Return collecion of deserialized filters.
|
|
2049
|
-
*/
|
|
2050
|
-
get items() {
|
|
2051
|
-
const result = {};
|
|
2052
|
-
this.filters.forEach((filter, key) => {
|
|
2053
|
-
result[key] = this.serializeItem(filter);
|
|
2054
|
-
});
|
|
2055
|
-
return result;
|
|
2056
|
-
}
|
|
2057
|
-
constructor(logicalOperation = ɵLogicalOperatorType.And, rootSchemaName) {
|
|
2058
|
-
super(ɵFilterType.FilterGroup);
|
|
2059
|
-
/**
|
|
2060
|
-
* @public
|
|
2061
|
-
* @description Collection of child filters.
|
|
2062
|
-
*/
|
|
2063
|
-
this.filters = new Map();
|
|
2064
|
-
this.logicalOperation = logicalOperation;
|
|
2065
|
-
this.rootSchemaName = rootSchemaName;
|
|
2066
|
-
}
|
|
2067
|
-
/**
|
|
2068
|
-
* @public
|
|
2069
|
-
* @description Parses filter group from json.
|
|
2070
|
-
*/
|
|
2071
|
-
static fromJson(dto, filterParser) {
|
|
2072
|
-
const logicalOperation = dto['logicalOperation'];
|
|
2073
|
-
const group = new ɵFilterGroup(logicalOperation || ɵLogicalOperatorType.And, dto['rootSchemaName']);
|
|
2074
|
-
Object.entries(dto['items']).forEach(([key, filterDTO]) => {
|
|
2075
|
-
group.add(filterParser.fromJson(filterDTO), key);
|
|
2076
|
-
});
|
|
2077
|
-
return group;
|
|
2078
|
-
}
|
|
2079
|
-
/** {@inheritDoc ɵSerializable.toJson} */
|
|
2080
|
-
toJson() {
|
|
2081
|
-
const result = {};
|
|
2082
|
-
result['filterType'] = this.filterType;
|
|
2083
|
-
result['isEnabled'] = this.isEnabled;
|
|
2084
|
-
result['logicalOperation'] = this.logicalOperation;
|
|
2085
|
-
result['trimDateTimeParameterToDate'] = this.trimDateTimeParameterToDate;
|
|
2086
|
-
result['items'] = this.items;
|
|
2087
|
-
if (this.rootSchemaName) {
|
|
2088
|
-
result['rootSchemaName'] = this.rootSchemaName;
|
|
2089
|
-
}
|
|
2090
|
-
return result;
|
|
2091
|
-
}
|
|
2092
|
-
_createParameterValueExpressions(values) {
|
|
2093
|
-
return values.map((value) => new ɵParameterExpression({
|
|
2094
|
-
value: value,
|
|
2095
|
-
}));
|
|
2096
|
-
}
|
|
2097
|
-
/**
|
|
2098
|
-
* @public
|
|
2099
|
-
* @description Returns filter item by index.
|
|
2100
|
-
* @param index Item index.
|
|
2101
|
-
* @returns Filter.
|
|
2102
|
-
*/
|
|
2103
|
-
getItemByIndex(index) {
|
|
2104
|
-
return this.items[Object.keys(this.items)[index]];
|
|
2105
|
-
}
|
|
2106
|
-
/**
|
|
2107
|
-
* @public
|
|
2108
|
-
* @description Creates and adds compare filter by value.
|
|
2109
|
-
* @param comparisonType Comparison type.
|
|
2110
|
-
* @param columnPath Column path.
|
|
2111
|
-
* @param parameterValue Parameter value.
|
|
2112
|
-
* @param filterKey Filter key.
|
|
2113
|
-
*/
|
|
2114
|
-
addSchemaColumnFilterWithParameter(comparisonType, columnPath, parameterValue, filterKey) {
|
|
2115
|
-
const leftExpression = new ɵColumnExpression({ columnPath });
|
|
2116
|
-
const rightExpression = new ɵParameterExpression({ value: parameterValue });
|
|
2117
|
-
const filter = new ɵCompareFilter(comparisonType, leftExpression, rightExpression);
|
|
2118
|
-
this.add(filter, filterKey);
|
|
2119
|
-
}
|
|
2120
|
-
/**
|
|
2121
|
-
* @public
|
|
2122
|
-
* @description Creates and adds in filter by values.
|
|
2123
|
-
* @param comparisonType Comparison type.
|
|
2124
|
-
* @param columnPath Column path.
|
|
2125
|
-
* @param parameterValues Parameter values.
|
|
2126
|
-
* @param filterKey Filter key.
|
|
2127
|
-
*/
|
|
2128
|
-
addSchemaColumnInFilterWithParameters(comparisonType, columnPath, parameterValues, filterKey) {
|
|
2129
|
-
const leftExpression = new ɵColumnExpression({ columnPath });
|
|
2130
|
-
const expressions = this._createParameterValueExpressions(parameterValues);
|
|
2131
|
-
const filter = new ɵInFilter(comparisonType, leftExpression, expressions);
|
|
2132
|
-
this.add(filter, filterKey);
|
|
2133
|
-
}
|
|
2134
|
-
/**
|
|
2135
|
-
* @public
|
|
2136
|
-
* @description Creates and adds in filter for primary column.
|
|
2137
|
-
* @param primaryColumnValues Primary column values.
|
|
2138
|
-
* @param filterKey Filter key.
|
|
2139
|
-
*/
|
|
2140
|
-
addPrimarySchemaColumnInFilter(primaryColumnValues, filterKey) {
|
|
2141
|
-
const leftExpression = new ɵMacrosFunctionExpression({ macrosType: ɵQueryMacrosType.PrimaryColumn });
|
|
2142
|
-
const expressions = this._createParameterValueExpressions(primaryColumnValues);
|
|
2143
|
-
const filter = new ɵInFilter(ɵComparisonType.Equal, leftExpression, expressions);
|
|
2144
|
-
this.add(filter, filterKey);
|
|
2145
|
-
}
|
|
2146
|
-
/**
|
|
2147
|
-
* @public
|
|
2148
|
-
* @description Creates and adds null filter.
|
|
2149
|
-
* @param columnPath Path of column.
|
|
2150
|
-
* @param filterKey Filter key.
|
|
2151
|
-
*/
|
|
2152
|
-
addSchemaColumnIsNullFilter(columnPath, filterKey) {
|
|
2153
|
-
const leftExpression = new ɵColumnExpression({ columnPath });
|
|
2154
|
-
const filter = new ɵIsNullFilter(ɵComparisonType.Is_null, leftExpression);
|
|
2155
|
-
this.add(filter, filterKey);
|
|
2156
|
-
}
|
|
2157
|
-
/**
|
|
2158
|
-
* @public
|
|
2159
|
-
* @description Creates and adds not null filter.
|
|
2160
|
-
* @param columnPath Column path.
|
|
2161
|
-
* @param filterKey Filter key.
|
|
2162
|
-
*/
|
|
2163
|
-
addSchemaColumnIsNotNullFilter(columnPath, filterKey) {
|
|
2164
|
-
const leftExpression = new ɵColumnExpression({ columnPath });
|
|
2165
|
-
const filter = new ɵIsNullFilter(ɵComparisonType.Is_not_null, leftExpression);
|
|
2166
|
-
this.add(filter, filterKey);
|
|
2167
|
-
}
|
|
2168
|
-
/**
|
|
2169
|
-
* @public
|
|
2170
|
-
* @description Creates and adds filter between less value and greater value.
|
|
2171
|
-
* @param columnPath Column path.
|
|
2172
|
-
* @param lessParamValue Less parameter value.
|
|
2173
|
-
* @param greaterParamValue Greater parameter value.
|
|
2174
|
-
* @param filterKey Filter key.
|
|
2175
|
-
*/
|
|
2176
|
-
addSchemaColumnBetweenFilterWithParameters(columnPath, lessParamValue, greaterParamValue, filterKey) {
|
|
2177
|
-
const leftExpression = new ɵColumnExpression({ columnPath });
|
|
2178
|
-
const rightLessExpression = new ɵParameterExpression({ value: lessParamValue });
|
|
2179
|
-
const rightGreaterExpression = new ɵParameterExpression({ value: greaterParamValue });
|
|
2180
|
-
const filter = new ɵBetweenFilter(leftExpression, rightLessExpression, rightGreaterExpression);
|
|
2181
|
-
this.add(filter, filterKey);
|
|
2182
|
-
}
|
|
2183
|
-
/**
|
|
2184
|
-
* @public
|
|
2185
|
-
* @description Creates and adds exists filter.
|
|
2186
|
-
* @param columnPath Column path.
|
|
2187
|
-
* @param subFilters Filters for exists expression.
|
|
2188
|
-
* @param filterKey Filter key.
|
|
2189
|
-
*/
|
|
2190
|
-
addExistsFilter(columnPath, subFilters, filterKey) {
|
|
2191
|
-
const leftExpression = new ɵColumnExpression({ columnPath });
|
|
2192
|
-
const filter = new ɵExistsFilter(leftExpression, subFilters);
|
|
2193
|
-
this.add(filter, filterKey);
|
|
2194
|
-
}
|
|
2195
|
-
/**
|
|
2196
|
-
* @public
|
|
2197
|
-
* @description Creates and adds not exists filter.
|
|
2198
|
-
* @param columnPath Column path.
|
|
2199
|
-
* @param subFilters Filters for exist expression.
|
|
2200
|
-
* @param filterKey Filter key.
|
|
2201
|
-
*/
|
|
2202
|
-
addNotExistsFilter(columnPath, subFilters, filterKey) {
|
|
2203
|
-
const leftExpression = new ɵColumnExpression({ columnPath });
|
|
2204
|
-
const filter = new ɵExistsFilter(leftExpression, subFilters, ɵComparisonType.Not_exists);
|
|
2205
|
-
this.add(filter, filterKey);
|
|
2206
|
-
}
|
|
2207
|
-
/**
|
|
2208
|
-
* @public
|
|
2209
|
-
* @description Adds filter.
|
|
2210
|
-
* @param filter Instance of filter.
|
|
2211
|
-
* @param filterKey Filter key.
|
|
2212
|
-
*/
|
|
2213
|
-
add(filter, filterKey) {
|
|
2214
|
-
ɵValidationUtilities.checkArgumentEmpty('filter', filter);
|
|
2215
|
-
const key = filterKey || ɵgenerateGuid();
|
|
2216
|
-
this.filters.set(key, filter);
|
|
2217
|
-
}
|
|
2218
|
-
/**
|
|
2219
|
-
* @public
|
|
2220
|
-
* @description Clones instance.
|
|
2221
|
-
*/
|
|
2222
|
-
clone() {
|
|
2223
|
-
const filterGroup = new ɵFilterGroup(this.logicalOperation, this.rootSchemaName);
|
|
2224
|
-
this.filters.forEach((filter, filterKey) => {
|
|
2225
|
-
filterGroup.filters.set(filterKey, filter.clone());
|
|
2226
|
-
});
|
|
2227
|
-
filterGroup.isEnabled = this.isEnabled;
|
|
2228
|
-
filterGroup.trimDateTimeParameterToDate = this.trimDateTimeParameterToDate;
|
|
2229
|
-
return filterGroup;
|
|
2230
|
-
}
|
|
2231
|
-
/**
|
|
2232
|
-
* @internal
|
|
2233
|
-
*/
|
|
2234
|
-
_getUsedColumns() {
|
|
2235
|
-
const result = [];
|
|
2236
|
-
this.filters.forEach((filter) => {
|
|
2237
|
-
let filterUsedColumns = filter._getUsedColumns ? filter._getUsedColumns() : [];
|
|
2238
|
-
filterUsedColumns = filterUsedColumns.map((usedColumn) => {
|
|
2239
|
-
var _a;
|
|
2240
|
-
return ({
|
|
2241
|
-
path: usedColumn.path,
|
|
2242
|
-
schemaName: (_a = usedColumn.schemaName) !== null && _a !== void 0 ? _a : this.rootSchemaName,
|
|
2243
|
-
});
|
|
2244
|
-
});
|
|
2245
|
-
result.push(...filterUsedColumns);
|
|
2246
|
-
});
|
|
2247
|
-
return result;
|
|
2248
|
-
}
|
|
2249
|
-
}
|
|
2250
|
-
/**
|
|
2251
|
-
* @internal
|
|
2252
|
-
* @dontChange
|
|
2253
|
-
*/
|
|
2254
|
-
ɵFilterGroup._instanceOfKey = 'devkit_FilterGroup';
|
|
2255
|
-
__decorate([
|
|
2256
|
-
Exclude(),
|
|
2257
|
-
__metadata("design:type", Object)
|
|
2258
|
-
], ɵFilterGroup.prototype, "filters", void 0);
|
|
2259
|
-
__decorate([
|
|
2260
|
-
Expose(),
|
|
2261
|
-
__metadata("design:type", Object),
|
|
2262
|
-
__metadata("design:paramtypes", [])
|
|
2263
|
-
], ɵFilterGroup.prototype, "items", null);
|
|
2264
|
-
|
|
2265
|
-
/**
|
|
2266
|
-
* @public
|
|
2267
|
-
* @description The class that defines the sub query expression.
|
|
2268
|
-
* @extends {ɵBaseExpression}
|
|
2269
|
-
*/
|
|
2270
|
-
class ɵSubQueryExpression extends ɵBaseExpression {
|
|
2271
|
-
/**
|
|
2272
|
-
* @internal
|
|
2273
|
-
* @dontChange
|
|
2274
|
-
*/
|
|
2275
|
-
static get _instanceOfKeys() {
|
|
2276
|
-
return [...ɵBaseExpression._instanceOfKeys, this._instanceOfKey];
|
|
2277
|
-
}
|
|
2278
|
-
constructor(config) {
|
|
2279
|
-
super(config);
|
|
2280
|
-
/**
|
|
2281
|
-
* @description Type of expression.
|
|
2282
|
-
*/
|
|
2283
|
-
this.expressionType = ɵExpressionType.SubQuery;
|
|
2284
|
-
this.columnPath = config === null || config === void 0 ? void 0 : config.columnPath;
|
|
2285
|
-
const subFilters = config === null || config === void 0 ? void 0 : config.subFilters;
|
|
2286
|
-
if (typeof (subFilters === null || subFilters === void 0 ? void 0 : subFilters.clone) === 'function') {
|
|
2287
|
-
this.subFilters = subFilters.clone();
|
|
2288
|
-
}
|
|
2289
|
-
else if (subFilters) {
|
|
2290
|
-
this.subFilters = new ɵFilterGroup(subFilters.logicalOperation, subFilters.rootSchemaName);
|
|
2291
|
-
Object.entries(subFilters.items).forEach(([key, filter]) => {
|
|
2292
|
-
this.subFilters.add(filter, key);
|
|
2293
|
-
});
|
|
2294
|
-
}
|
|
2295
|
-
else {
|
|
2296
|
-
this.subFilters = subFilters;
|
|
2297
|
-
}
|
|
2298
|
-
this.subOrderDirection = config.subOrderDirection;
|
|
2299
|
-
this.subOrderColumn = config.subOrderColumn;
|
|
2300
|
-
}
|
|
2301
|
-
/**
|
|
2302
|
-
* Parses expression from json.
|
|
2303
|
-
* @public
|
|
2304
|
-
*/
|
|
2305
|
-
static fromJson(dto, filterParser) {
|
|
2306
|
-
const expression = new ɵSubQueryExpression({
|
|
2307
|
-
columnPath: dto['columnPath'],
|
|
2308
|
-
subFilters: filterParser.fromJson(dto['subFilters']),
|
|
2309
|
-
subOrderDirection: dto['subOrderDirection'],
|
|
2310
|
-
subOrderColumn: dto['subOrderColumn'],
|
|
2311
|
-
});
|
|
2312
|
-
return expression;
|
|
2313
|
-
}
|
|
2314
|
-
/** {@inheritDoc ɵBaseExpression.clone} */
|
|
2315
|
-
clone() {
|
|
2316
|
-
return new ɵSubQueryExpression(this);
|
|
2317
|
-
}
|
|
2318
|
-
/** {@inheritDoc ɵBaseExpression.toJson} */
|
|
2319
|
-
toJson() {
|
|
2320
|
-
const result = super.toJson();
|
|
2321
|
-
if (this.subFilters) {
|
|
2322
|
-
result['subFilters'] = this.serializeItem(this.subFilters);
|
|
2323
|
-
}
|
|
2324
|
-
return result;
|
|
2325
|
-
}
|
|
2326
|
-
/**
|
|
2327
|
-
* @internal
|
|
2328
|
-
*/
|
|
2329
|
-
_getUsedColumns() {
|
|
2330
|
-
var _a, _b;
|
|
2331
|
-
return [
|
|
2332
|
-
{
|
|
2333
|
-
path: this.columnPath,
|
|
2334
|
-
},
|
|
2335
|
-
...((_b = (_a = this.subFilters) === null || _a === void 0 ? void 0 : _a._getUsedColumns()) !== null && _b !== void 0 ? _b : []),
|
|
2336
|
-
];
|
|
2337
|
-
}
|
|
2338
|
-
}
|
|
2339
|
-
/**
|
|
2340
|
-
* @internal
|
|
2341
|
-
* @dontChange
|
|
2342
|
-
*/
|
|
2343
|
-
ɵSubQueryExpression._instanceOfKey = 'devkit_SubQueryExpression';
|
|
2344
|
-
|
|
2345
|
-
/**
|
|
2346
|
-
* @public
|
|
2347
|
-
* @description A class that describes expression with aggregation sub query.
|
|
2348
|
-
* @extends {ɵSubQueryExpression}
|
|
2349
|
-
*/
|
|
2350
|
-
class ɵAggregationSubQueryExpression extends ɵSubQueryExpression {
|
|
2351
|
-
/**
|
|
2352
|
-
* @internal
|
|
2353
|
-
* @dontChange
|
|
2354
|
-
*/
|
|
2355
|
-
static get _instanceOfKeys() {
|
|
2356
|
-
return [...ɵSubQueryExpression._instanceOfKeys, this._instanceOfKey];
|
|
2357
|
-
}
|
|
2358
|
-
constructor(config) {
|
|
2359
|
-
super(config);
|
|
2360
|
-
this.aggregationType = config === null || config === void 0 ? void 0 : config.aggregationType;
|
|
2361
|
-
this.functionType = config === null || config === void 0 ? void 0 : config.functionType;
|
|
2362
|
-
}
|
|
2363
|
-
/**
|
|
2364
|
-
* Parses expression from json.
|
|
2365
|
-
* @public
|
|
2366
|
-
*/
|
|
2367
|
-
static fromJson(dto, filterParser) {
|
|
2368
|
-
const subQueryExpression = super.fromJson(dto, filterParser);
|
|
2369
|
-
const expression = new ɵAggregationSubQueryExpression(Object.assign({ aggregationType: dto['aggregationType'], functionType: dto['functionType'] }, subQueryExpression));
|
|
2370
|
-
return expression;
|
|
2371
|
-
}
|
|
2372
|
-
/** {@inheritDoc ɵBaseExpression.clone} */
|
|
2373
|
-
clone() {
|
|
2374
|
-
return new ɵAggregationSubQueryExpression(this);
|
|
2375
|
-
}
|
|
2376
|
-
}
|
|
2377
|
-
/**
|
|
2378
|
-
* @internal
|
|
2379
|
-
* @dontChange
|
|
2380
|
-
*/
|
|
2381
|
-
ɵAggregationSubQueryExpression._instanceOfKey = 'devkit_AggregationSubQueryExpression';
|
|
2382
|
-
|
|
2383
|
-
/**
|
|
2384
|
-
* @public
|
|
2385
|
-
* @description Function expression resolver.
|
|
2386
|
-
*/
|
|
2387
|
-
class FunctionExpressionResolver {
|
|
2388
|
-
static resolve(dto) {
|
|
2389
|
-
const expressionClass = {
|
|
2390
|
-
[ɵFunctionType.Macros]: ɵMacrosFunctionExpression,
|
|
2391
|
-
[ɵFunctionType.Length]: ɵLengthFunctionExpression,
|
|
2392
|
-
[ɵFunctionType.Window]: ɵWindowFunctionExpression,
|
|
2393
|
-
[ɵFunctionType.DatePart]: ɵDatePartFunctionExpression,
|
|
2394
|
-
[ɵFunctionType.DateAdd]: ɵDatePartFunctionExpression,
|
|
2395
|
-
[ɵFunctionType.DateDiff]: ɵDatePartFunctionExpression,
|
|
2396
|
-
};
|
|
2397
|
-
return expressionClass[dto['functionType']];
|
|
2398
|
-
}
|
|
2399
|
-
}
|
|
2400
|
-
/**
|
|
2401
|
-
* @description Expression resolver.
|
|
2402
|
-
* @public
|
|
2403
|
-
*/
|
|
2404
|
-
class ɵExpressionResolver {
|
|
2405
|
-
/**
|
|
2406
|
-
* @public
|
|
2407
|
-
* @description Resolves class of expression.
|
|
2408
|
-
* @param expressionType - Type of expression.
|
|
2409
|
-
* @param dto - Serialized object.
|
|
2410
|
-
* @return Class of expression.
|
|
2411
|
-
*/
|
|
2412
|
-
static resolve(expressionType, dto) {
|
|
2413
|
-
const expressionClass = {
|
|
2414
|
-
[ɵExpressionType.SchemaColumn]: ɵColumnExpression,
|
|
2415
|
-
[ɵExpressionType.Parameter]: ɵParameterExpression,
|
|
2416
|
-
[ɵExpressionType.SubQuery]: ɵAggregationSubQueryExpression,
|
|
2417
|
-
[ɵExpressionType.ArithmeticOperation]: ɵArithmeticExpression,
|
|
2418
|
-
[ɵExpressionType.Function]: FunctionExpressionResolver.resolve(dto),
|
|
2419
|
-
};
|
|
2420
|
-
return expressionClass[expressionType];
|
|
2421
|
-
}
|
|
2422
|
-
}
|
|
2423
|
-
|
|
2424
|
-
/**
|
|
2425
|
-
* @public
|
|
2426
|
-
* @description Expression parser.
|
|
2427
|
-
* @extends {ɵBaseExpressionParser}
|
|
2428
|
-
*/
|
|
2429
|
-
class ɵExpressionParser extends ɵBaseExpressionParser {
|
|
2430
|
-
/**
|
|
2431
|
-
* @public
|
|
2432
|
-
* @description Parses expression from json.
|
|
2433
|
-
*/
|
|
2434
|
-
static fromJson(dto, filterParser) {
|
|
2435
|
-
const expressionType = dto['expressionType'];
|
|
2436
|
-
return ɵExpressionResolver.resolve(expressionType, dto).fromJson(dto, filterParser, ɵExpressionParser);
|
|
2437
|
-
}
|
|
2438
|
-
}
|
|
2439
|
-
|
|
2440
|
-
/**
|
|
2441
|
-
* @internal
|
|
2442
|
-
*/
|
|
2443
|
-
const ɵEXPRESSION_TYPE_MOCK = -1;
|
|
2444
|
-
class ɵExpressionMock extends ɵBaseExpression {
|
|
2445
|
-
/**
|
|
2446
|
-
* @internal
|
|
2447
|
-
* @dontChange
|
|
2448
|
-
*/
|
|
2449
|
-
static get _instanceOfKeys() {
|
|
2450
|
-
return [...ɵBaseExpression._instanceOfKeys, this._instanceOfKey];
|
|
2451
|
-
}
|
|
2452
|
-
constructor(config) {
|
|
2453
|
-
super(config || {});
|
|
2454
|
-
this.expressionType = ɵEXPRESSION_TYPE_MOCK;
|
|
2455
|
-
}
|
|
2456
|
-
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
2457
|
-
get plainObject() {
|
|
2458
|
-
return classToPlain(this, { exposeUnsetFields: false, excludePrefixes: ['_'] });
|
|
2459
|
-
}
|
|
2460
|
-
clone() {
|
|
2461
|
-
return new ɵExpressionMock(this);
|
|
2462
|
-
}
|
|
2463
|
-
/**
|
|
2464
|
-
* @internal
|
|
2465
|
-
*/
|
|
2466
|
-
_getUsedColumns() {
|
|
2467
|
-
return [];
|
|
2468
|
-
}
|
|
2469
|
-
}
|
|
2470
|
-
/**
|
|
2471
|
-
* @internal
|
|
2472
|
-
* @dontChange
|
|
2473
|
-
*/
|
|
2474
|
-
ɵExpressionMock._instanceOfKey = 'devkit_ExpressionMock';
|
|
2475
|
-
|
|
2476
|
-
class ɵFilterMock extends ɵBaseFilter {
|
|
2477
|
-
/**
|
|
2478
|
-
* @internal
|
|
2479
|
-
* @dontChange
|
|
2480
|
-
*/
|
|
2481
|
-
static get _instanceOfKeys() {
|
|
2482
|
-
return [...ɵBaseFilter._instanceOfKeys, this._instanceOfKey];
|
|
2483
|
-
}
|
|
2484
|
-
constructor(filterType = ɵFilterType.None) {
|
|
2485
|
-
super(filterType);
|
|
2486
|
-
}
|
|
2487
|
-
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
2488
|
-
get plainObject() {
|
|
2489
|
-
return classToPlain(this, { exposeUnsetFields: false, excludePrefixes: ['_'] });
|
|
2490
|
-
}
|
|
2491
|
-
clone() {
|
|
2492
|
-
return new ɵFilterMock(this.filterType);
|
|
2493
|
-
}
|
|
2494
|
-
/**
|
|
2495
|
-
* @internal
|
|
2496
|
-
*/
|
|
2497
|
-
_getUsedColumns() {
|
|
2498
|
-
return [];
|
|
2499
|
-
}
|
|
2500
|
-
}
|
|
2501
|
-
/**
|
|
2502
|
-
* @internal
|
|
2503
|
-
* @dontChange
|
|
2504
|
-
*/
|
|
2505
|
-
ɵFilterMock._instanceOfKey = 'devkit_FilterMock';
|
|
2506
|
-
|
|
2507
|
-
/**
|
|
2508
|
-
* @internal
|
|
2509
|
-
*/
|
|
2510
|
-
const ɵparserMock = {
|
|
2511
|
-
fromJson: (data) => (Object.assign(Object.assign({}, data), { clone: () => data })),
|
|
2512
|
-
clone: () => this,
|
|
2513
|
-
};
|
|
2514
|
-
|
|
2515
|
-
/**
|
|
2516
|
-
* @public
|
|
2517
|
-
* @description Filter parser interface.
|
|
2518
|
-
*/
|
|
2519
|
-
class ɵBaseFilterParser {
|
|
2520
|
-
/**
|
|
2521
|
-
* @description Creates filter from JSON.
|
|
2522
|
-
* @param dto - Serialized filter.
|
|
2523
|
-
* @return Instance of filter.
|
|
2524
|
-
*/
|
|
2525
|
-
static fromJson(dto) {
|
|
2526
|
-
throw new Error('not implemented');
|
|
2527
|
-
}
|
|
2528
|
-
}
|
|
2529
|
-
|
|
2530
|
-
/**
|
|
2531
|
-
* @public
|
|
2532
|
-
* @description Filter resolver.
|
|
2533
|
-
*/
|
|
2534
|
-
class ɵFilterResolver {
|
|
2535
|
-
/**
|
|
2536
|
-
* @public
|
|
2537
|
-
* @description Resolves class of filter.
|
|
2538
|
-
* @param filterType - Type of filter.
|
|
2539
|
-
* @return Class of filter.
|
|
2540
|
-
*/
|
|
2541
|
-
static resolve(filterType) {
|
|
2542
|
-
const filterClass = {
|
|
2543
|
-
[ɵFilterType.Compare]: ɵCompareFilter,
|
|
2544
|
-
[ɵFilterType.FilterGroup]: ɵFilterGroup,
|
|
2545
|
-
[ɵFilterType.In]: ɵInFilter,
|
|
2546
|
-
[ɵFilterType.IsNull]: ɵIsNullFilter,
|
|
2547
|
-
[ɵFilterType.Exists]: ɵExistsFilter,
|
|
2548
|
-
[ɵFilterType.Between]: ɵBetweenFilter,
|
|
2549
|
-
};
|
|
2550
|
-
return filterClass[filterType];
|
|
2551
|
-
}
|
|
2552
|
-
}
|
|
2553
|
-
|
|
2554
|
-
/**
|
|
2555
|
-
* @public
|
|
2556
|
-
* @description Filter parser.
|
|
2557
|
-
*/
|
|
2558
|
-
class ɵFilterParser extends ɵBaseFilterParser {
|
|
2559
|
-
/**
|
|
2560
|
-
* @description Creates filter from JSON.
|
|
2561
|
-
* @param dto - Serialized filter.
|
|
2562
|
-
*/
|
|
2563
|
-
static fromJson(dto) {
|
|
2564
|
-
const filterType = dto['filterType'];
|
|
2565
|
-
const isEnabled = dto['isEnabled'];
|
|
2566
|
-
const trimDateTimeParameterToDate = dto['trimDateTimeParameterToDate'];
|
|
2567
|
-
const filter = ɵFilterResolver.resolve(filterType).fromJson(dto, ɵFilterParser, ɵExpressionParser);
|
|
2568
|
-
filter.isEnabled = isEnabled !== false;
|
|
2569
|
-
filter.trimDateTimeParameterToDate = trimDateTimeParameterToDate === true;
|
|
2570
|
-
return filter;
|
|
2571
|
-
}
|
|
2572
|
-
}
|
|
2573
|
-
|
|
2574
|
-
/**
|
|
2575
|
-
* @internal
|
|
2576
|
-
*/
|
|
2577
|
-
const ɵDEFAULT_FILTER_PLAIN_OBJ = {
|
|
2578
|
-
isEnabled: true,
|
|
2579
|
-
trimDateTimeParameterToDate: false,
|
|
2580
|
-
};
|
|
2581
|
-
/**
|
|
2582
|
-
* @internal
|
|
2583
|
-
*/
|
|
2584
|
-
function ɵgetFilterPlainObj(filterPlainObj) {
|
|
2585
|
-
return Object.assign(Object.assign({}, ɵDEFAULT_FILTER_PLAIN_OBJ), filterPlainObj);
|
|
2586
|
-
}
|
|
2587
|
-
|
|
2588
|
-
/**
|
|
2589
|
-
* @public
|
|
2590
|
-
* @abstract
|
|
2591
|
-
* @classdesc Class contains info about column for query.
|
|
2592
|
-
*/
|
|
2593
|
-
class ɵBaseQueryColumn {
|
|
2594
|
-
constructor(expression) {
|
|
2595
|
-
/**
|
|
2596
|
-
* @description Order direction.
|
|
2597
|
-
*/
|
|
2598
|
-
this.orderDirection = ɵOrderDirection.None;
|
|
2599
|
-
/**
|
|
2600
|
-
* @description Column order position.
|
|
2601
|
-
*/
|
|
2602
|
-
this.orderPosition = -1;
|
|
2603
|
-
/**
|
|
2604
|
-
* @description If true then column data will be present in the result set.
|
|
2605
|
-
*/
|
|
2606
|
-
this.isVisible = true;
|
|
2607
|
-
this.expression = expression;
|
|
2608
|
-
}
|
|
2609
|
-
/**
|
|
2610
|
-
* Adds ordering options.
|
|
2611
|
-
* @param orderDirection Direction.
|
|
2612
|
-
* @param orderPosition Position.
|
|
2613
|
-
* @returns Self.
|
|
2614
|
-
*/
|
|
2615
|
-
withOrdering(orderDirection, orderPosition) {
|
|
2616
|
-
ɵValidationUtilities.checkArgumentEmpty('orderDirection', orderDirection);
|
|
2617
|
-
ɵValidationUtilities.checkArgumentEmpty('orderPosition', orderPosition);
|
|
2618
|
-
ɵValidationUtilities.checkArgumentOutOfRange('orderPosition', orderPosition, { begin: -1 });
|
|
2619
|
-
this.orderDirection = orderDirection;
|
|
2620
|
-
this.orderPosition = orderPosition;
|
|
2621
|
-
return this;
|
|
2622
|
-
}
|
|
2623
|
-
/**
|
|
2624
|
-
* Adds options.
|
|
2625
|
-
* @param options Options.
|
|
2626
|
-
* @returns Self.
|
|
2627
|
-
*/
|
|
2628
|
-
withOptions(options) {
|
|
2629
|
-
var _a;
|
|
2630
|
-
ɵValidationUtilities.checkArgumentEmpty('options', options);
|
|
2631
|
-
this.isVisible = (_a = options.isVisible) !== null && _a !== void 0 ? _a : true;
|
|
2632
|
-
return this;
|
|
2633
|
-
}
|
|
2634
|
-
/**
|
|
2635
|
-
* Adds caption.
|
|
2636
|
-
* @param caption Caption.
|
|
2637
|
-
* @returns Self.
|
|
2638
|
-
*/
|
|
2639
|
-
withCaption(caption) {
|
|
2640
|
-
ɵValidationUtilities.checkArgumentEmpty('caption', caption);
|
|
2641
|
-
this.caption = caption;
|
|
2642
|
-
return this;
|
|
2643
|
-
}
|
|
2644
|
-
/**
|
|
2645
|
-
* @internal
|
|
2646
|
-
*/
|
|
2647
|
-
_getUsedColumns() {
|
|
2648
|
-
return this.expression._getUsedColumns();
|
|
2649
|
-
}
|
|
2650
|
-
}
|
|
2651
|
-
|
|
2652
|
-
/**
|
|
2653
|
-
* @public
|
|
2654
|
-
* @classdesc Class contains info about column with arithmetic operation.
|
|
2655
|
-
* @extends {ɵBaseQueryColumn}
|
|
2656
|
-
*/
|
|
2657
|
-
class ɵArithmeticQueryColumn extends ɵBaseQueryColumn {
|
|
2658
|
-
// region Constructors: Public
|
|
2659
|
-
constructor(arithmeticOperation, leftArithmeticOperand, rightArithmeticOperand) {
|
|
2660
|
-
super(new ɵArithmeticExpression({ arithmeticOperation, leftArithmeticOperand, rightArithmeticOperand }));
|
|
2661
|
-
}
|
|
2662
|
-
}
|
|
2663
|
-
|
|
2664
|
-
/**
|
|
2665
|
-
* @public
|
|
2666
|
-
* @classdesc Class contains info about common column from entity.
|
|
2667
|
-
* @extends {ɵBaseQueryColumn}
|
|
2668
|
-
*/
|
|
2669
|
-
class ɵEntityQueryColumn extends ɵBaseQueryColumn {
|
|
2670
|
-
// region Constructors: Public
|
|
2671
|
-
constructor(columnPath) {
|
|
2672
|
-
super(new ɵColumnExpression({ columnPath }));
|
|
2673
|
-
}
|
|
2674
|
-
}
|
|
2675
|
-
|
|
2676
|
-
/**
|
|
2677
|
-
* @public
|
|
2678
|
-
* @classdesc Class contains info about column that contains parameter.
|
|
2679
|
-
* @extends {ɵBaseQueryColumn}
|
|
2680
|
-
*/
|
|
2681
|
-
class ɵParameterQueryColumn extends ɵBaseQueryColumn {
|
|
2682
|
-
// region Constructors: Public
|
|
2683
|
-
constructor(value, dataValueType) {
|
|
2684
|
-
super(new ɵParameterExpression({ value, dataValueType }));
|
|
2685
|
-
}
|
|
2686
|
-
}
|
|
2687
|
-
|
|
2688
|
-
/**
|
|
2689
|
-
* @public
|
|
2690
|
-
* @classdesc Class contains info about column with sub query and aggregation.
|
|
2691
|
-
* @extends {ɵBaseQueryColumn}
|
|
2692
|
-
*/
|
|
2693
|
-
class ɵAggregationSubQueryColumn extends ɵBaseQueryColumn {
|
|
2694
|
-
// region Constructors: Public
|
|
2695
|
-
constructor(columnPath, aggregationType, subFilters, subOrderDirection, subOrderColumn) {
|
|
2696
|
-
super(new ɵAggregationSubQueryExpression({
|
|
2697
|
-
aggregationType,
|
|
2698
|
-
columnPath,
|
|
2699
|
-
subFilters,
|
|
2700
|
-
subOrderDirection,
|
|
2701
|
-
subOrderColumn,
|
|
2702
|
-
}));
|
|
2703
|
-
}
|
|
2704
|
-
}
|
|
2705
|
-
|
|
2706
|
-
/**
|
|
2707
|
-
* @public
|
|
2708
|
-
* @classdesc Class contains info about column with sub query.
|
|
2709
|
-
* @extends {ɵBaseQueryColumn}
|
|
2710
|
-
*/
|
|
2711
|
-
class ɵSubQueryColumn extends ɵBaseQueryColumn {
|
|
2712
|
-
// region Constructors: Public
|
|
2713
|
-
constructor(columnPath, subFilters) {
|
|
2714
|
-
super(new ɵSubQueryExpression({ columnPath, subFilters }));
|
|
2715
|
-
}
|
|
2716
|
-
}
|
|
2717
|
-
|
|
2718
|
-
/**
|
|
2719
|
-
* @public
|
|
2720
|
-
* @classdesc Class contains info about column with aggregation function.
|
|
2721
|
-
* @extends {ɵBaseQueryColumn}
|
|
2722
|
-
*/
|
|
2723
|
-
class ɵAggregationFunctionColumn extends ɵBaseQueryColumn {
|
|
2724
|
-
// region Constructors: Public
|
|
2725
|
-
constructor(aggregationType, aggregationEvalType, functionArgument) {
|
|
2726
|
-
super(new ɵAggregationFunctionExpression({
|
|
2727
|
-
aggregationType,
|
|
2728
|
-
aggregationEvalType,
|
|
2729
|
-
functionArgument,
|
|
2730
|
-
}));
|
|
2731
|
-
}
|
|
2732
|
-
}
|
|
2733
|
-
|
|
2734
|
-
/**
|
|
2735
|
-
* @public
|
|
2736
|
-
* @classdesc Class contains info about column with date part.
|
|
2737
|
-
* @extends {ɵBaseQueryColumn}
|
|
2738
|
-
*/
|
|
2739
|
-
class ɵDatePartFunctionColumn extends ɵBaseQueryColumn {
|
|
2740
|
-
// region Constructors: Public
|
|
2741
|
-
constructor(datePartType, functionArgument) {
|
|
2742
|
-
super(new ɵDatePartFunctionExpression({
|
|
2743
|
-
datePartType,
|
|
2744
|
-
functionArgument,
|
|
2745
|
-
}));
|
|
2746
|
-
}
|
|
2747
|
-
// endregion
|
|
2748
|
-
// region Properties: Public
|
|
2749
|
-
/**
|
|
2750
|
-
* @description Part of date.
|
|
2751
|
-
*/
|
|
2752
|
-
get datePartType() {
|
|
2753
|
-
var _a;
|
|
2754
|
-
return (_a = this.expression) === null || _a === void 0 ? void 0 : _a.datePartType;
|
|
2755
|
-
}
|
|
2756
|
-
}
|
|
2757
|
-
|
|
2758
|
-
/**
|
|
2759
|
-
* @public
|
|
2760
|
-
* @classdesc Class contains info about column with length function.
|
|
2761
|
-
* @extends {ɵBaseQueryColumn}
|
|
2762
|
-
*/
|
|
2763
|
-
class ɵLengthFunctionColumn extends ɵBaseQueryColumn {
|
|
2764
|
-
// region Constructors: Public
|
|
2765
|
-
constructor(functionArgument) {
|
|
2766
|
-
super(new ɵLengthFunctionExpression({ functionArgument }));
|
|
2767
|
-
}
|
|
2768
|
-
}
|
|
2769
|
-
|
|
2770
|
-
/**
|
|
2771
|
-
* @public
|
|
2772
|
-
* @classdesc Class contains info about column with macros function.
|
|
2773
|
-
* @extends {ɵBaseQueryColumn}
|
|
2774
|
-
*/
|
|
2775
|
-
class ɵMacrosFunctionColumn extends ɵBaseQueryColumn {
|
|
2776
|
-
// region Constructors: Public
|
|
2777
|
-
constructor(macrosType) {
|
|
2778
|
-
super(new ɵMacrosFunctionExpression({ macrosType }));
|
|
2779
|
-
}
|
|
2780
|
-
}
|
|
2781
|
-
|
|
2782
|
-
/**
|
|
2783
|
-
* @public
|
|
2784
|
-
* @classdesc Class contains info about column with window function.
|
|
2785
|
-
* @extends {ɵBaseQueryColumn}
|
|
2786
|
-
*/
|
|
2787
|
-
class ɵWindowFunctionColumn extends ɵBaseQueryColumn {
|
|
2788
|
-
// region Constructors: Public
|
|
2789
|
-
constructor(functionArgument) {
|
|
2790
|
-
super(new ɵWindowFunctionExpression({ functionArgument }));
|
|
2791
|
-
}
|
|
2792
|
-
}
|
|
2793
|
-
|
|
2794
|
-
/**
|
|
2795
|
-
* @internal
|
|
2796
|
-
*/
|
|
2797
|
-
const ɵDEFAULT_COLUMN_PLAIN_OBJ = {
|
|
2798
|
-
isVisible: true,
|
|
2799
|
-
orderPosition: -1,
|
|
2800
|
-
orderDirection: ɵOrderDirection.None,
|
|
2801
|
-
};
|
|
2802
|
-
/**
|
|
2803
|
-
* @internal
|
|
2804
|
-
*/
|
|
2805
|
-
function ɵgetColumnPlainObj(expressionPlainObj) {
|
|
2806
|
-
return Object.assign(Object.assign({}, ɵDEFAULT_COLUMN_PLAIN_OBJ), { expression: expressionPlainObj });
|
|
2807
|
-
}
|
|
2808
|
-
|
|
2809
|
-
/**
|
|
2810
|
-
* @public
|
|
2811
|
-
* @description The base class of the data request. Implements {@link ɵMetadataProvider}
|
|
2812
|
-
*/
|
|
2813
|
-
class ɵBaseQuery {
|
|
2814
|
-
// region Constructors: Protected
|
|
2815
|
-
constructor(operationType, rootSchemaName) {
|
|
2816
|
-
this.operationType = operationType;
|
|
2817
|
-
this.rootSchemaName = rootSchemaName;
|
|
2818
|
-
ɵValidationUtilities.checkArgumentEmpty('_operationType', operationType);
|
|
2819
|
-
ɵValidationUtilities.checkArgumentEmpty('_rootSchemaName', rootSchemaName);
|
|
2820
|
-
}
|
|
2821
|
-
// endregion
|
|
2822
|
-
// region Methods: Public
|
|
2823
|
-
/** {@inheritDoc ɵMetadataProvider.getMetadata} */
|
|
2824
|
-
getMetadata() {
|
|
2825
|
-
return classToPlain(this, { exposeUnsetFields: false, excludePrefixes: ['_'] });
|
|
2826
|
-
}
|
|
2827
|
-
}
|
|
2828
|
-
|
|
2829
|
-
/**
|
|
2830
|
-
* @public
|
|
2831
|
-
* @description The base class of the filtered data request.
|
|
2832
|
-
* @extends {ɵBaseQuery}
|
|
2833
|
-
*/
|
|
2834
|
-
class ɵBaseFilterableQuery extends ɵBaseQuery {
|
|
2835
|
-
constructor(operationType, rootSchemaName) {
|
|
2836
|
-
super(operationType, rootSchemaName);
|
|
2837
|
-
/**
|
|
2838
|
-
* @description Collection of filters.
|
|
2839
|
-
*/
|
|
2840
|
-
this.filters = new ɵFilterGroup();
|
|
2841
|
-
}
|
|
2842
|
-
/**
|
|
2843
|
-
* @public
|
|
2844
|
-
* @description Clears all filters.
|
|
2845
|
-
*/
|
|
2846
|
-
clearFilters() {
|
|
2847
|
-
this.filters.filters.clear();
|
|
2848
|
-
}
|
|
2849
|
-
/** {@inheritDoc ɵMetadataProvider.getMetadata} */
|
|
2850
|
-
getMetadata() {
|
|
2851
|
-
return Object.assign(Object.assign({}, super.getMetadata()), { filters: this.filters.toJson() });
|
|
2852
|
-
}
|
|
2853
|
-
/**
|
|
2854
|
-
* @internal
|
|
2855
|
-
*/
|
|
2856
|
-
_getUsedColumns() {
|
|
2857
|
-
const usedColumns = this.filters._getUsedColumns();
|
|
2858
|
-
usedColumns.forEach((usedColumn) => {
|
|
2859
|
-
if (!usedColumn.schemaName) {
|
|
2860
|
-
usedColumn.schemaName = this.rootSchemaName;
|
|
2861
|
-
}
|
|
2862
|
-
});
|
|
2863
|
-
return usedColumns;
|
|
2864
|
-
}
|
|
2865
|
-
}
|
|
2866
|
-
__decorate([
|
|
2867
|
-
Exclude(),
|
|
2868
|
-
__metadata("design:type", Object)
|
|
2869
|
-
], ɵBaseFilterableQuery.prototype, "filters", void 0);
|
|
2870
|
-
|
|
2871
|
-
/**
|
|
2872
|
-
* @public
|
|
2873
|
-
* @description Type of data query
|
|
2874
|
-
*/
|
|
2875
|
-
var ɵQueryOperationType;
|
|
2876
|
-
(function (ɵQueryOperationType) {
|
|
2877
|
-
/**
|
|
2878
|
-
* @description Select query.
|
|
2879
|
-
*/
|
|
2880
|
-
ɵQueryOperationType[ɵQueryOperationType["Select"] = 0] = "Select";
|
|
2881
|
-
/**
|
|
2882
|
-
* @description Insert query.
|
|
2883
|
-
*/
|
|
2884
|
-
ɵQueryOperationType[ɵQueryOperationType["Insert"] = 1] = "Insert";
|
|
2885
|
-
/**
|
|
2886
|
-
* @description Edit query.
|
|
2887
|
-
*/
|
|
2888
|
-
ɵQueryOperationType[ɵQueryOperationType["Update"] = 2] = "Update";
|
|
2889
|
-
/**
|
|
2890
|
-
* @description Delete query.
|
|
2891
|
-
*/
|
|
2892
|
-
ɵQueryOperationType[ɵQueryOperationType["Delete"] = 3] = "Delete";
|
|
2893
|
-
// Batch,
|
|
2894
|
-
// ListSelect,
|
|
2895
|
-
// FilteredSelect,
|
|
2896
|
-
// LookupSelect
|
|
2897
|
-
})(ɵQueryOperationType || (ɵQueryOperationType = {}));
|
|
2898
|
-
|
|
2899
|
-
/**
|
|
2900
|
-
* @public
|
|
2901
|
-
* @description Request to delete data.
|
|
2902
|
-
* @extends {ɵBaseFilterableQuery}
|
|
2903
|
-
*/
|
|
2904
|
-
class ɵDeleteQuery extends ɵBaseFilterableQuery {
|
|
2905
|
-
// region Constructors: Public
|
|
2906
|
-
constructor(rootSchemaName) {
|
|
2907
|
-
super(ɵQueryOperationType.Delete, rootSchemaName);
|
|
2908
|
-
}
|
|
2909
|
-
}
|
|
2910
|
-
|
|
2911
|
-
/**
|
|
2912
|
-
* @public
|
|
2913
|
-
* @description The query class for data fetching.
|
|
2914
|
-
* @extends {ɵBaseFilterableQuery}
|
|
2915
|
-
*/
|
|
2916
|
-
class ɵEntitySchemaQuery extends ɵBaseFilterableQuery {
|
|
2917
|
-
constructor(rootSchemaName) {
|
|
2918
|
-
super(ɵQueryOperationType.Select, rootSchemaName);
|
|
2919
|
-
this._columns = new Map();
|
|
2920
|
-
/**
|
|
2921
|
-
* @description Determines if merge duplicates in query result.
|
|
2922
|
-
*/
|
|
2923
|
-
this.isDistinct = false;
|
|
2924
|
-
/**
|
|
2925
|
-
* @description Number of rows to select.
|
|
2926
|
-
*/
|
|
2927
|
-
this.rowCount = -1;
|
|
2928
|
-
/**
|
|
2929
|
-
* @description Rows count to skip.
|
|
2930
|
-
*/
|
|
2931
|
-
this.rowsOffset = -1;
|
|
2932
|
-
/**
|
|
2933
|
-
* @description The parameter that determines whether to use the localized data.
|
|
2934
|
-
*/
|
|
2935
|
-
this.useLocalization = true;
|
|
2936
|
-
/**
|
|
2937
|
-
* @description Represent parameter which determines disabling data in filtering.
|
|
2938
|
-
*/
|
|
2939
|
-
this.useRecordDeactivation = false;
|
|
2940
|
-
this._getIsPageable = () => this.rowCount > 0 && this.rowsOffset > -1;
|
|
2941
|
-
}
|
|
2942
|
-
_internalAddColumn(key, column) {
|
|
2943
|
-
if (!this._columns.has(key)) {
|
|
2944
|
-
this._columns.set(key, column);
|
|
2945
|
-
}
|
|
2946
|
-
}
|
|
2947
|
-
// endregion
|
|
2948
|
-
// region Methods: Public
|
|
2949
|
-
/**
|
|
2950
|
-
* @public
|
|
2951
|
-
* @description Returns column instance by column alias.
|
|
2952
|
-
* @param columnAlias Column alias.
|
|
2953
|
-
* @returns [BaseQueryColumn] Column instance.
|
|
2954
|
-
*/
|
|
2955
|
-
getColumn(columnAlias) {
|
|
2956
|
-
if (!this._columns.has(columnAlias)) {
|
|
2957
|
-
throw new ɵItemNotFoundException(columnAlias);
|
|
2958
|
-
}
|
|
2959
|
-
return this.findColumn(columnAlias);
|
|
2960
|
-
}
|
|
2961
|
-
/**
|
|
2962
|
-
* @public
|
|
2963
|
-
* @description Returns column instance by column alias if not found returns null.
|
|
2964
|
-
*/
|
|
2965
|
-
findColumn(columnAlias) {
|
|
2966
|
-
return this._columns.get(columnAlias);
|
|
2967
|
-
}
|
|
2968
|
-
/** {@inheritDoc ɵMetadataProvider.getMetadata} */
|
|
2969
|
-
getMetadata() {
|
|
2970
|
-
return Object.assign(Object.assign({}, super.getMetadata()), { columns: {
|
|
2971
|
-
items: classToPlain(this._columns, { exposeUnsetFields: false, excludePrefixes: ['_'] }),
|
|
2972
|
-
}, allColumns: false, isDistinct: this.isDistinct, ignoreDisplayValues: false, rowCount: this.rowCount, rowsOffset: this.rowsOffset, adminUnitRoleSources: this.adminUnitRoleSources, isPageable: this._getIsPageable(), conditionalValues: this.conditionalValues ? this.conditionalValues : null, isHierarchical: false, hierarchicalMaxDepth: 0, hierarchicalColumnName: null, hierarchicalColumnValue: null, useLocalization: this.useLocalization, useRecordDeactivation: this.useRecordDeactivation });
|
|
2973
|
-
}
|
|
2974
|
-
/**
|
|
2975
|
-
* @public
|
|
2976
|
-
* @description Add column.
|
|
2977
|
-
* @param column Column path.
|
|
2978
|
-
* @param columnAlias Column alias.
|
|
2979
|
-
* @returns [BaseQueryColumn] Column instance.
|
|
2980
|
-
*/
|
|
2981
|
-
addColumn(column, columnAlias) {
|
|
2982
|
-
this._internalAddColumn(columnAlias, column);
|
|
2983
|
-
return column;
|
|
2984
|
-
}
|
|
2985
|
-
/**
|
|
2986
|
-
* @public
|
|
2987
|
-
* @description Add column by column path.
|
|
2988
|
-
* @param columnPath Column path.
|
|
2989
|
-
* @param columnAlias Column alias.
|
|
2990
|
-
* @returns [EntityQueryColumn] Column instance.
|
|
2991
|
-
*/
|
|
2992
|
-
addSchemaColumn(columnPath, columnAlias) {
|
|
2993
|
-
ɵValidationUtilities.checkArgumentEmpty('columnPath', columnPath);
|
|
2994
|
-
const column = new ɵEntityQueryColumn(columnPath);
|
|
2995
|
-
this._internalAddColumn(columnAlias || columnPath, column);
|
|
2996
|
-
return column;
|
|
2997
|
-
}
|
|
2998
|
-
/**
|
|
2999
|
-
* @public
|
|
3000
|
-
* @description Add aggregation sub query column.
|
|
3001
|
-
* @param columnPath Column path.
|
|
3002
|
-
* @param aggregationType Aggregation type.
|
|
3003
|
-
* @param subFilters Sub query filters.
|
|
3004
|
-
* @param columnAlias Column alias.
|
|
3005
|
-
* @returns [AggregationSubQueryColumn] Column instance.
|
|
3006
|
-
*/
|
|
3007
|
-
addAggregationSubQueryColumn(columnPath, aggregationType, aggregationConfig, columnAlias) {
|
|
3008
|
-
const column = new ɵAggregationSubQueryColumn(columnPath, aggregationType, aggregationConfig.filter, aggregationConfig.sortByDirection, aggregationConfig.sortByColumn);
|
|
3009
|
-
this._internalAddColumn(columnAlias || columnPath, column);
|
|
3010
|
-
return column;
|
|
3011
|
-
}
|
|
3012
|
-
/**
|
|
3013
|
-
* @public
|
|
3014
|
-
* @description Add parameter column.
|
|
3015
|
-
* @param value Parameter value.
|
|
3016
|
-
* @param dataValueType Parameter data value type.
|
|
3017
|
-
* @param columnAlias Column alias.
|
|
3018
|
-
* @returns [ParameterQueryColumn] Column instance.
|
|
3019
|
-
*/
|
|
3020
|
-
addParameterColumn(value, dataValueType, columnAlias) {
|
|
3021
|
-
const column = new ɵParameterQueryColumn(value, dataValueType);
|
|
3022
|
-
this._internalAddColumn(columnAlias, column);
|
|
3023
|
-
return column;
|
|
3024
|
-
}
|
|
3025
|
-
/**
|
|
3026
|
-
* @public
|
|
3027
|
-
* @description Add arithmetic column.
|
|
3028
|
-
* @param arithmeticOperation Arithmetic operation.
|
|
3029
|
-
* @param leftArithmeticOperand Left arithmetic operand expression.
|
|
3030
|
-
* @param rightArithmeticOperand Right arithmetic operand expression.
|
|
3031
|
-
* @param columnAlias Column alias.
|
|
3032
|
-
* @returns [ArithmeticQueryColumn] Column instance.
|
|
3033
|
-
*/
|
|
3034
|
-
addArithmeticColumn(arithmeticOperation, leftArithmeticOperand, rightArithmeticOperand, columnAlias) {
|
|
3035
|
-
const column = new ɵArithmeticQueryColumn(arithmeticOperation, leftArithmeticOperand, rightArithmeticOperand);
|
|
3036
|
-
this._internalAddColumn(columnAlias, column);
|
|
3037
|
-
return column;
|
|
3038
|
-
}
|
|
3039
|
-
/**
|
|
3040
|
-
* @public
|
|
3041
|
-
* @description Add macros function column.
|
|
3042
|
-
* @param queryMacrosType Macros type.
|
|
3043
|
-
* @param columnAlias Column alias.
|
|
3044
|
-
* @returns [MacrosFunctionColumn] Column instance.
|
|
3045
|
-
*/
|
|
3046
|
-
addMacrosFunctionColumn(queryMacrosType, columnAlias) {
|
|
3047
|
-
const column = new ɵMacrosFunctionColumn(queryMacrosType);
|
|
3048
|
-
this._internalAddColumn(columnAlias, column);
|
|
3049
|
-
return column;
|
|
3050
|
-
}
|
|
3051
|
-
/**
|
|
3052
|
-
* @public
|
|
3053
|
-
* @description Add date part function column.
|
|
3054
|
-
* @param columnPath Column path.
|
|
3055
|
-
* @param datePartType Date part type.
|
|
3056
|
-
* @param columnAlias Column alias.
|
|
3057
|
-
* @returns [DatePartFunctionColumn] Column instance.
|
|
3058
|
-
*/
|
|
3059
|
-
addDatePartFunctionColumn(columnPath, datePartType, columnAlias) {
|
|
3060
|
-
const functionArgument = new ɵColumnExpression({ columnPath });
|
|
3061
|
-
const column = new ɵDatePartFunctionColumn(datePartType, functionArgument);
|
|
3062
|
-
this._internalAddColumn(columnAlias, column);
|
|
3063
|
-
return column;
|
|
3064
|
-
}
|
|
3065
|
-
/**
|
|
3066
|
-
* @public
|
|
3067
|
-
* @description Add aggregation function column.
|
|
3068
|
-
* @param columnPath Column path.
|
|
3069
|
-
* @param aggregationType Aggregation type.
|
|
3070
|
-
* @param columnAlias Column alias.
|
|
3071
|
-
* @param aggregationEvalType Aggregation eval type.
|
|
3072
|
-
* @returns [AggregationFunctionColumn] Column instance.
|
|
3073
|
-
*/
|
|
3074
|
-
addAggregationFunctionColumn(columnPath, aggregationType, columnAlias, aggregationEvalType = ɵAggregationEvalType.None) {
|
|
3075
|
-
const functionArgument = new ɵColumnExpression({ columnPath });
|
|
3076
|
-
const column = new ɵAggregationFunctionColumn(aggregationType, aggregationEvalType, functionArgument);
|
|
3077
|
-
this._internalAddColumn(columnAlias, column);
|
|
3078
|
-
return column;
|
|
3079
|
-
}
|
|
3080
|
-
/**
|
|
3081
|
-
* @public
|
|
3082
|
-
* @description Add length function column.
|
|
3083
|
-
* @param columnPath Column path.
|
|
3084
|
-
* @param columnAlias Column alias.
|
|
3085
|
-
* @returns [LengthFunctionColumn] Column instance.
|
|
3086
|
-
*/
|
|
3087
|
-
addLengthFunctionColumn(columnPath, columnAlias) {
|
|
3088
|
-
const functionArgument = new ɵColumnExpression({ columnPath });
|
|
3089
|
-
const column = new ɵLengthFunctionColumn(functionArgument);
|
|
3090
|
-
this._internalAddColumn(columnAlias, column);
|
|
3091
|
-
return column;
|
|
3092
|
-
}
|
|
3093
|
-
/**
|
|
3094
|
-
* @public
|
|
3095
|
-
* @description Add window function column.
|
|
3096
|
-
* @param columnPath Column path.
|
|
3097
|
-
* @param aggregationType Aggregation type.
|
|
3098
|
-
* @param columnAlias Column alias.
|
|
3099
|
-
* @param aggregationEvalType Aggregation eval type.
|
|
3100
|
-
* @returns [WindowFunctionColumn] Column instance.
|
|
3101
|
-
*/
|
|
3102
|
-
addWindowFunctionColumn(columnPath, aggregationType, columnAlias, aggregationEvalType = ɵAggregationEvalType.None) {
|
|
3103
|
-
const functionArgument = new ɵAggregationFunctionExpression({
|
|
3104
|
-
aggregationType,
|
|
3105
|
-
aggregationEvalType,
|
|
3106
|
-
functionArgument: new ɵColumnExpression({ columnPath }),
|
|
3107
|
-
});
|
|
3108
|
-
const column = new ɵWindowFunctionColumn(functionArgument);
|
|
3109
|
-
this._internalAddColumn(columnAlias, column);
|
|
3110
|
-
return column;
|
|
3111
|
-
}
|
|
3112
|
-
/**
|
|
3113
|
-
* @internal
|
|
3114
|
-
*/
|
|
3115
|
-
_getUsedColumns() {
|
|
3116
|
-
const usedColumns = [];
|
|
3117
|
-
this._columns.forEach((column) => {
|
|
3118
|
-
usedColumns.push(...column._getUsedColumns());
|
|
3119
|
-
});
|
|
3120
|
-
usedColumns.forEach((usedColumn) => {
|
|
3121
|
-
if (!usedColumn.schemaName) {
|
|
3122
|
-
usedColumn.schemaName = this.rootSchemaName;
|
|
3123
|
-
}
|
|
3124
|
-
});
|
|
3125
|
-
return [...usedColumns, ...super._getUsedColumns()];
|
|
3126
|
-
}
|
|
3127
|
-
}
|
|
3128
|
-
|
|
3129
|
-
/**
|
|
3130
|
-
* @public
|
|
3131
|
-
* @description Request to insert data.
|
|
3132
|
-
*/
|
|
3133
|
-
class ɵInsertQuery extends ɵBaseQuery {
|
|
3134
|
-
// endregion
|
|
3135
|
-
// region Constructors: Public
|
|
3136
|
-
constructor(rootSchemaName) {
|
|
3137
|
-
super(ɵQueryOperationType.Insert, rootSchemaName);
|
|
3138
|
-
// region Fields: Private
|
|
3139
|
-
this._columnValues = new Map();
|
|
3140
|
-
}
|
|
3141
|
-
// endregion
|
|
3142
|
-
// region Properties: Public
|
|
3143
|
-
/**
|
|
3144
|
-
* @description A collection of column values for updating entities.
|
|
3145
|
-
*/
|
|
3146
|
-
get columnValues() {
|
|
3147
|
-
return {
|
|
3148
|
-
items: classToPlain(this._columnValues),
|
|
3149
|
-
};
|
|
3150
|
-
}
|
|
3151
|
-
// endregion
|
|
3152
|
-
// region Methods: Public
|
|
3153
|
-
/**
|
|
3154
|
-
* @public
|
|
3155
|
-
* @description Adds the value parameter. An instance of the value-parameter is created and
|
|
3156
|
-
* is added to the column values collection.
|
|
3157
|
-
* @param columnName The alias of the column to set value in
|
|
3158
|
-
* @param columnValue The value of the parameter. The value must match the data type.
|
|
3159
|
-
* @param dataValueType The type of the given parameter value.
|
|
3160
|
-
*/
|
|
3161
|
-
addColumn(columnName, columnValue, dataValueType) {
|
|
3162
|
-
ɵValidationUtilities.checkArgumentEmpty('columnName', columnName);
|
|
3163
|
-
this._columnValues.set(columnName, new ɵParameterExpression({ value: columnValue, dataValueType }));
|
|
3164
|
-
}
|
|
3165
|
-
}
|
|
3166
|
-
__decorate([
|
|
3167
|
-
Expose(),
|
|
3168
|
-
__metadata("design:type", Object),
|
|
3169
|
-
__metadata("design:paramtypes", [])
|
|
3170
|
-
], ɵInsertQuery.prototype, "columnValues", null);
|
|
3171
|
-
|
|
3172
|
-
/**
|
|
3173
|
-
* @public
|
|
3174
|
-
* @description Request for data changes.
|
|
3175
|
-
* @extends {ɵBaseFilterableQuery}
|
|
3176
|
-
*/
|
|
3177
|
-
class ɵUpdateQuery extends ɵBaseFilterableQuery {
|
|
3178
|
-
// endregion
|
|
3179
|
-
// region Constructors: Public
|
|
3180
|
-
constructor(rootSchemaName) {
|
|
3181
|
-
super(ɵQueryOperationType.Update, rootSchemaName);
|
|
3182
|
-
// region Fields: Private
|
|
3183
|
-
this._columnValues = new Map();
|
|
3184
|
-
// endregion
|
|
3185
|
-
// region Fields: Public
|
|
3186
|
-
/**
|
|
3187
|
-
* @description Flag that indicates whether to force save data.
|
|
3188
|
-
*/
|
|
3189
|
-
this.isForceUpdate = false;
|
|
3190
|
-
}
|
|
3191
|
-
// endregion
|
|
3192
|
-
// region Properties: Public
|
|
3193
|
-
/**
|
|
3194
|
-
* @description A collection of column values for updating entities.
|
|
3195
|
-
*/
|
|
3196
|
-
get columnValues() {
|
|
3197
|
-
return {
|
|
3198
|
-
items: classToPlain(this._columnValues),
|
|
3199
|
-
};
|
|
3200
|
-
}
|
|
3201
|
-
// endregion
|
|
3202
|
-
// region Methods: Public
|
|
3203
|
-
/**
|
|
3204
|
-
* @public
|
|
3205
|
-
* @description Adds the value parameter. An instance of the value-parameter is created and
|
|
3206
|
-
* is added to the column values collection.
|
|
3207
|
-
* @param columnName The alias of the column to set value in
|
|
3208
|
-
* @param columnValue The value of the parameter. The value must match the data type.
|
|
3209
|
-
* @param dataValueType The type of the given parameter value.
|
|
3210
|
-
*/
|
|
3211
|
-
addColumn(columnName, columnValue, dataValueType) {
|
|
3212
|
-
ɵValidationUtilities.checkArgumentEmpty('columnName', columnName);
|
|
3213
|
-
this._columnValues.set(columnName, new ɵParameterExpression({ value: columnValue, dataValueType }));
|
|
3214
|
-
}
|
|
3215
|
-
}
|
|
3216
|
-
__decorate([
|
|
3217
|
-
Expose(),
|
|
3218
|
-
__metadata("design:type", Object),
|
|
3219
|
-
__metadata("design:paramtypes", [])
|
|
3220
|
-
], ɵUpdateQuery.prototype, "columnValues", null);
|
|
3221
|
-
|
|
3222
|
-
/**
|
|
3223
|
-
* @public
|
|
3224
|
-
* @description The query class for localized data fetching.
|
|
3225
|
-
* @extends {ɵEntitySchemaQuery}
|
|
3226
|
-
*/
|
|
3227
|
-
class ɵSelectLocalizationQuery extends ɵEntitySchemaQuery {
|
|
3228
|
-
}
|
|
3229
|
-
|
|
3230
|
-
/**
|
|
3231
|
-
* @public
|
|
3232
|
-
* @description Base definition of request.
|
|
3233
|
-
* @template TEvent
|
|
3234
|
-
*/
|
|
3235
|
-
class ɵBaseRequest {
|
|
3236
|
-
}
|
|
3237
|
-
|
|
3238
|
-
/**
|
|
3239
|
-
* @public
|
|
3240
|
-
* @description Enum for model parameter types.
|
|
3241
|
-
*/
|
|
3242
|
-
var ɵModelParameterType;
|
|
3243
|
-
(function (ɵModelParameterType) {
|
|
3244
|
-
/**
|
|
3245
|
-
* @public
|
|
3246
|
-
* @description Parameter represents primary column value.
|
|
3247
|
-
*/
|
|
3248
|
-
ɵModelParameterType["PrimaryColumnValue"] = "primaryColumnValue";
|
|
3249
|
-
/**
|
|
3250
|
-
* @public
|
|
3251
|
-
* @description Parameter represents column value.
|
|
3252
|
-
*/
|
|
3253
|
-
ɵModelParameterType["ColumnValue"] = "columnValue";
|
|
3254
|
-
/**
|
|
3255
|
-
* @public
|
|
3256
|
-
* @description Parameter represents filter value.
|
|
3257
|
-
*/
|
|
3258
|
-
ɵModelParameterType["Filter"] = "filter";
|
|
3259
|
-
/**
|
|
3260
|
-
* @public
|
|
3261
|
-
* @description Parameter represents primary display value filter.
|
|
3262
|
-
*/
|
|
3263
|
-
ɵModelParameterType["PrimaryDisplayValueFilter"] = "primaryDisplayValueFilter";
|
|
3264
|
-
/**
|
|
3265
|
-
* @public
|
|
3266
|
-
* @description Parameter is empty.
|
|
3267
|
-
*/
|
|
3268
|
-
ɵModelParameterType["Empty"] = "empty";
|
|
3269
|
-
/**
|
|
3270
|
-
* @public
|
|
3271
|
-
* @description Parameter is never used.
|
|
3272
|
-
*/
|
|
3273
|
-
ɵModelParameterType["Never"] = "never";
|
|
3274
|
-
})(ɵModelParameterType || (ɵModelParameterType = {}));
|
|
3275
|
-
|
|
3276
|
-
/**
|
|
3277
|
-
* @public
|
|
3278
|
-
* @description Actions of mask request.
|
|
3279
|
-
*/
|
|
3280
|
-
var ɵSchemaViewMaskRequestAction;
|
|
3281
|
-
(function (ɵSchemaViewMaskRequestAction) {
|
|
3282
|
-
/**
|
|
3283
|
-
* @description To add task.
|
|
3284
|
-
*/
|
|
3285
|
-
ɵSchemaViewMaskRequestAction["AddTask"] = "addTask";
|
|
3286
|
-
/**
|
|
3287
|
-
* @description To remove task.
|
|
3288
|
-
*/
|
|
3289
|
-
ɵSchemaViewMaskRequestAction["RemoveTask"] = "removeTask";
|
|
3290
|
-
})(ɵSchemaViewMaskRequestAction || (ɵSchemaViewMaskRequestAction = {}));
|
|
3291
|
-
/**
|
|
3292
|
-
* @public
|
|
3293
|
-
* @description Request to show mask.
|
|
3294
|
-
*/
|
|
3295
|
-
class ɵSchemaViewMaskRequest extends ɵBaseRequest {
|
|
3296
|
-
constructor(action, taskName, $context) {
|
|
3297
|
-
super();
|
|
3298
|
-
this.action = action;
|
|
3299
|
-
this.taskName = taskName;
|
|
3300
|
-
this.$context = $context;
|
|
3301
|
-
/**
|
|
3302
|
-
* @description Request type
|
|
3303
|
-
*/
|
|
3304
|
-
this.type = 'crt.SchemaViewMaskRequest';
|
|
3305
|
-
}
|
|
3306
|
-
}
|
|
3307
|
-
|
|
3308
|
-
/**
|
|
3309
|
-
* Generated bundle index. Do not edit.
|
|
3310
|
-
*/
|
|
3311
|
-
|
|
3312
|
-
export { LookupMode, eAdminUnitRoleSources, ɵAggregationEvalType, ɵAggregationFunction, ɵAggregationFunctionColumn, ɵAggregationFunctionExpression, ɵAggregationSubQueryColumn, ɵAggregationSubQueryExpression, ɵAggregationType, ɵArgumentEmptyException, ɵArgumentFunctionExpression, ɵArgumentOutOfRangeException, ɵArithmeticExpression, ɵArithmeticOperation, ɵArithmeticQueryColumn, ɵBaseExpression, ɵBaseExpressionParser, ɵBaseFilter, ɵBaseFilterParser, ɵBaseFilterableQuery, ɵBaseQuery, ɵBaseQueryColumn, ɵBaseRequest, ɵBetweenFilter, ɵColumnExpression, ɵCompareFilter, ɵComparisonType, ɵDEFAULT_COLUMN_PLAIN_OBJ, ɵDEFAULT_FILTER_PLAIN_OBJ, ɵDataSchemaAttributeType, ɵDataSchemaAttributeUsageType, ɵDataSchemaType, ɵDataSourceScope, ɵDataValueType, ɵDatePartFunctionColumn, ɵDatePartFunctionExpression, ɵDatePartType, ɵDefaultValueSource, ɵDeleteQuery, ɵEMPTY_GUID, ɵEXPRESSION_TYPE_MOCK, ɵEntityQueryColumn, ɵEntitySchemaQuery, ɵExistsFilter, ɵExpressionMock, ɵExpressionParser, ɵExpressionResolver, ɵExpressionType, ɵFilterGroup, ɵFilterMock, ɵFilterParser, ɵFilterResolver, ɵFilterType, ɵFunctionExpression, ɵFunctionType, ɵInFilter, ɵInsertQuery, ɵIsNullFilter, ɵItemNotFoundException, ɵLengthFunctionColumn, ɵLengthFunctionExpression, ɵLogicalOperatorType, ɵMacrosFunctionColumn, ɵMacrosFunctionExpression, ɵMessageChannelType, ɵModelInPageAction, ɵModelParameterType, ɵNextHandlerAlreadySpecifiedException, ɵOrderDirection, ɵParameterExpression, ɵParameterQueryColumn, ɵPlatformAPIs, ɵQueryMacrosType, ɵQueryOperationType, ɵSchemaViewMaskRequest, ɵSchemaViewMaskRequestAction, ɵSelectLocalizationQuery, ɵSingleFilter, ɵSubQueryColumn, ɵSubQueryExpression, ɵUpdateQuery, ɵValidationUtilities, ɵWindowFunctionColumn, ɵWindowFunctionExpression, ɵencodeDate, ɵgenerateGuid, ɵgetColumnPlainObj, ɵgetFilterPlainObj, ɵisEmptyGuid, ɵisGuid, ɵparserMock, ɵtoLocalISOString };
|
|
3313
|
-
//# sourceMappingURL=creatio-base.mjs.map
|