@acorex-platform/framework-server 0.0.10
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/core/README.md +17 -0
- package/core/package.json +15 -0
- package/core/src/index.d.ts +2 -0
- package/core/src/index.js +6 -0
- package/core/src/index.js.map +1 -0
- package/core/src/lib/core.module.d.ts +2 -0
- package/core/src/lib/core.module.js +16 -0
- package/core/src/lib/core.module.js.map +1 -0
- package/core/src/lib/entity-storage/backends/logging.entity-storage.backend.d.ts +17 -0
- package/core/src/lib/entity-storage/backends/logging.entity-storage.backend.js +57 -0
- package/core/src/lib/entity-storage/backends/logging.entity-storage.backend.js.map +1 -0
- package/core/src/lib/entity-storage/entity-storage-backend.interface.d.ts +1 -0
- package/core/src/lib/entity-storage/entity-storage-backend.interface.js +3 -0
- package/core/src/lib/entity-storage/entity-storage-backend.interface.js.map +1 -0
- package/core/src/lib/entity-storage/entity-storage-logging.module.d.ts +4 -0
- package/core/src/lib/entity-storage/entity-storage-logging.module.js +28 -0
- package/core/src/lib/entity-storage/entity-storage-logging.module.js.map +1 -0
- package/core/src/lib/entity-storage/entity-storage-middleware.service.d.ts +45 -0
- package/core/src/lib/entity-storage/entity-storage-middleware.service.js +247 -0
- package/core/src/lib/entity-storage/entity-storage-middleware.service.js.map +1 -0
- package/core/src/lib/entity-storage/entity-storage-request-context.d.ts +6 -0
- package/core/src/lib/entity-storage/entity-storage-request-context.js +25 -0
- package/core/src/lib/entity-storage/entity-storage-request-context.js.map +1 -0
- package/core/src/lib/entity-storage/entity-storage.controller.d.ts +14 -0
- package/core/src/lib/entity-storage/entity-storage.controller.js +137 -0
- package/core/src/lib/entity-storage/entity-storage.controller.js.map +1 -0
- package/core/src/lib/entity-storage/entity-storage.module.d.ts +8 -0
- package/core/src/lib/entity-storage/entity-storage.module.js +47 -0
- package/core/src/lib/entity-storage/entity-storage.module.js.map +1 -0
- package/core/src/lib/entity-storage/entity-storage.tokens.d.ts +2 -0
- package/core/src/lib/entity-storage/entity-storage.tokens.js +7 -0
- package/core/src/lib/entity-storage/entity-storage.tokens.js.map +1 -0
- package/core/src/lib/entity-storage/entity-storage.types.d.ts +41 -0
- package/core/src/lib/entity-storage/entity-storage.types.js +4 -0
- package/core/src/lib/entity-storage/entity-storage.types.js.map +1 -0
- package/core/src/lib/entity-storage/errors/middleware-abort.error.d.ts +18 -0
- package/core/src/lib/entity-storage/errors/middleware-abort.error.js +36 -0
- package/core/src/lib/entity-storage/errors/middleware-abort.error.js.map +1 -0
- package/core/src/lib/entity-storage/index.d.ts +14 -0
- package/core/src/lib/entity-storage/index.js +18 -0
- package/core/src/lib/entity-storage/index.js.map +1 -0
- package/core/src/lib/entity-storage/middlewares/category-hierarchy-filter.middleware.d.ts +10 -0
- package/core/src/lib/entity-storage/middlewares/category-hierarchy-filter.middleware.js +57 -0
- package/core/src/lib/entity-storage/middlewares/category-hierarchy-filter.middleware.js.map +1 -0
- package/core/src/lib/entity-storage/middlewares/entity-storage-request-context.middleware.d.ts +9 -0
- package/core/src/lib/entity-storage/middlewares/entity-storage-request-context.middleware.js +22 -0
- package/core/src/lib/entity-storage/middlewares/entity-storage-request-context.middleware.js.map +1 -0
- package/core/src/lib/entity-storage/middlewares/request-log.middleware.d.ts +11 -0
- package/core/src/lib/entity-storage/middlewares/request-log.middleware.js +26 -0
- package/core/src/lib/entity-storage/middlewares/request-log.middleware.js.map +1 -0
- package/core/src/lib/entity-storage/utils/entity-route.util.d.ts +24 -0
- package/core/src/lib/entity-storage/utils/entity-route.util.js +96 -0
- package/core/src/lib/entity-storage/utils/entity-route.util.js.map +1 -0
- package/domain/abstract/package.json +11 -0
- package/domain/abstract/src/index.d.ts +17 -0
- package/domain/abstract/src/index.js +30 -0
- package/domain/abstract/src/index.js.map +1 -0
- package/domain/abstract/src/lib/definitions/aggregate-definition.types.d.ts +13 -0
- package/domain/abstract/src/lib/definitions/aggregate-definition.types.js +3 -0
- package/domain/abstract/src/lib/definitions/aggregate-definition.types.js.map +1 -0
- package/domain/abstract/src/lib/definitions/base.types.d.ts +32 -0
- package/domain/abstract/src/lib/definitions/base.types.js +17 -0
- package/domain/abstract/src/lib/definitions/base.types.js.map +1 -0
- package/domain/abstract/src/lib/definitions/command-registry.types.d.ts +16 -0
- package/domain/abstract/src/lib/definitions/command-registry.types.js +3 -0
- package/domain/abstract/src/lib/definitions/command-registry.types.js.map +1 -0
- package/domain/abstract/src/lib/definitions/entity-definition.types.d.ts +66 -0
- package/domain/abstract/src/lib/definitions/entity-definition.types.js +10 -0
- package/domain/abstract/src/lib/definitions/entity-definition.types.js.map +1 -0
- package/domain/abstract/src/lib/definitions/interface-definition.types.d.ts +27 -0
- package/domain/abstract/src/lib/definitions/interface-definition.types.js +3 -0
- package/domain/abstract/src/lib/definitions/interface-definition.types.js.map +1 -0
- package/domain/abstract/src/lib/definitions/menu-definition.types.d.ts +35 -0
- package/domain/abstract/src/lib/definitions/menu-definition.types.js +3 -0
- package/domain/abstract/src/lib/definitions/menu-definition.types.js.map +1 -0
- package/domain/abstract/src/lib/definitions/module-definition.types.d.ts +6 -0
- package/domain/abstract/src/lib/definitions/module-definition.types.js +3 -0
- package/domain/abstract/src/lib/definitions/module-definition.types.js.map +1 -0
- package/domain/abstract/src/lib/definitions/permission-definition.types.d.ts +24 -0
- package/domain/abstract/src/lib/definitions/permission-definition.types.js +3 -0
- package/domain/abstract/src/lib/definitions/permission-definition.types.js.map +1 -0
- package/domain/abstract/src/lib/definitions/plugin-definition.types.d.ts +14 -0
- package/domain/abstract/src/lib/definitions/plugin-definition.types.js +3 -0
- package/domain/abstract/src/lib/definitions/plugin-definition.types.js.map +1 -0
- package/domain/abstract/src/lib/definitions/property-definition.types.d.ts +32 -0
- package/domain/abstract/src/lib/definitions/property-definition.types.js +3 -0
- package/domain/abstract/src/lib/definitions/property-definition.types.js.map +1 -0
- package/domain/abstract/src/lib/definitions/query-registry.types.d.ts +15 -0
- package/domain/abstract/src/lib/definitions/query-registry.types.js +3 -0
- package/domain/abstract/src/lib/definitions/query-registry.types.js.map +1 -0
- package/domain/abstract/src/lib/definitions/relation-definition.types.d.ts +26 -0
- package/domain/abstract/src/lib/definitions/relation-definition.types.js +16 -0
- package/domain/abstract/src/lib/definitions/relation-definition.types.js.map +1 -0
- package/domain/abstract/src/lib/definitions/validation-definition.types.d.ts +19 -0
- package/domain/abstract/src/lib/definitions/validation-definition.types.js +3 -0
- package/domain/abstract/src/lib/definitions/validation-definition.types.js.map +1 -0
- package/domain/abstract/src/lib/definitions/widget-catalog.types.d.ts +7 -0
- package/domain/abstract/src/lib/definitions/widget-catalog.types.js +3 -0
- package/domain/abstract/src/lib/definitions/widget-catalog.types.js.map +1 -0
- package/domain/abstract/src/lib/interfaces/domain-definition-loader.interface.d.ts +10 -0
- package/domain/abstract/src/lib/interfaces/domain-definition-loader.interface.js +9 -0
- package/domain/abstract/src/lib/interfaces/domain-definition-loader.interface.js.map +1 -0
- package/domain/abstract/src/lib/interfaces/domain-definition.types.d.ts +12 -0
- package/domain/abstract/src/lib/interfaces/domain-definition.types.js +3 -0
- package/domain/abstract/src/lib/interfaces/domain-definition.types.js.map +1 -0
- package/domain/abstract/src/lib/types/domain-core.types.d.ts +15 -0
- package/domain/abstract/src/lib/types/domain-core.types.js +5 -0
- package/domain/abstract/src/lib/types/domain-core.types.js.map +1 -0
- package/domain/providers/package.json +19 -0
- package/domain/providers/src/index.d.ts +22 -0
- package/domain/providers/src/index.js +26 -0
- package/domain/providers/src/index.js.map +1 -0
- package/domain/providers/src/lib/domain-definition-jql-schema.d.ts +17 -0
- package/domain/providers/src/lib/domain-definition-jql-schema.js +95 -0
- package/domain/providers/src/lib/domain-definition-jql-schema.js.map +1 -0
- package/domain/providers/src/lib/domain-definition-jql-sources.d.ts +10 -0
- package/domain/providers/src/lib/domain-definition-jql-sources.js +82 -0
- package/domain/providers/src/lib/domain-definition-jql-sources.js.map +1 -0
- package/domain/providers/src/lib/domain-definition-jql.loader.d.ts +37 -0
- package/domain/providers/src/lib/domain-definition-jql.loader.js +219 -0
- package/domain/providers/src/lib/domain-definition-jql.loader.js.map +1 -0
- package/domain/providers/src/lib/domain-definition-store.constants.d.ts +17 -0
- package/domain/providers/src/lib/domain-definition-store.constants.js +22 -0
- package/domain/providers/src/lib/domain-definition-store.constants.js.map +1 -0
- package/domain/providers/src/lib/domain-entity-schema.loader.d.ts +11 -0
- package/domain/providers/src/lib/domain-entity-schema.loader.js +38 -0
- package/domain/providers/src/lib/domain-entity-schema.loader.js.map +1 -0
- package/domain/providers/src/lib/domain-entity-validator.module.d.ts +6 -0
- package/domain/providers/src/lib/domain-entity-validator.module.js +22 -0
- package/domain/providers/src/lib/domain-entity-validator.module.js.map +1 -0
- package/domain/providers/src/lib/domain-jql-instance.resolve.d.ts +6 -0
- package/domain/providers/src/lib/domain-jql-instance.resolve.js +18 -0
- package/domain/providers/src/lib/domain-jql-instance.resolve.js.map +1 -0
- package/domain/providers/src/lib/domain-middleware-entity-storage.bootstrap.d.ts +33 -0
- package/domain/providers/src/lib/domain-middleware-entity-storage.bootstrap.js +73 -0
- package/domain/providers/src/lib/domain-middleware-entity-storage.bootstrap.js.map +1 -0
- package/domain/providers/src/lib/domain-middleware.module.d.ts +6 -0
- package/domain/providers/src/lib/domain-middleware.module.js +80 -0
- package/domain/providers/src/lib/domain-middleware.module.js.map +1 -0
- package/domain/providers/src/lib/domain-provider.module.d.ts +7 -0
- package/domain/providers/src/lib/domain-provider.module.js +62 -0
- package/domain/providers/src/lib/domain-provider.module.js.map +1 -0
- package/domain/providers/src/lib/domain-provider.resolve.d.ts +6 -0
- package/domain/providers/src/lib/domain-provider.resolve.js +31 -0
- package/domain/providers/src/lib/domain-provider.resolve.js.map +1 -0
- package/domain/providers/src/lib/domain-provider.types.d.ts +1 -0
- package/domain/providers/src/lib/domain-provider.types.js +5 -0
- package/domain/providers/src/lib/domain-provider.types.js.map +1 -0
- package/domain/providers/src/lib/middlewares/category-resolver.middleware.d.ts +25 -0
- package/domain/providers/src/lib/middlewares/category-resolver.middleware.js +159 -0
- package/domain/providers/src/lib/middlewares/category-resolver.middleware.js.map +1 -0
- package/domain/providers/src/lib/middlewares/child-count.middleware.d.ts +14 -0
- package/domain/providers/src/lib/middlewares/child-count.middleware.js +74 -0
- package/domain/providers/src/lib/middlewares/child-count.middleware.js.map +1 -0
- package/domain/providers/src/lib/middlewares/domain-validation.middleware.d.ts +15 -0
- package/domain/providers/src/lib/middlewares/domain-validation.middleware.js +58 -0
- package/domain/providers/src/lib/middlewares/domain-validation.middleware.js.map +1 -0
- package/domain/providers/src/lib/middlewares/entity-get-by-diagnostic.middleware.d.ts +9 -0
- package/domain/providers/src/lib/middlewares/entity-get-by-diagnostic.middleware.js +27 -0
- package/domain/providers/src/lib/middlewares/entity-get-by-diagnostic.middleware.js.map +1 -0
- package/domain/providers/src/lib/middlewares/entity-mutation-diagnostic.middleware.d.ts +9 -0
- package/domain/providers/src/lib/middlewares/entity-mutation-diagnostic.middleware.js +27 -0
- package/domain/providers/src/lib/middlewares/entity-mutation-diagnostic.middleware.js.map +1 -0
- package/domain/providers/src/lib/middlewares/entity-query-filter-diagnostic.middleware.d.ts +9 -0
- package/domain/providers/src/lib/middlewares/entity-query-filter-diagnostic.middleware.js +28 -0
- package/domain/providers/src/lib/middlewares/entity-query-filter-diagnostic.middleware.js.map +1 -0
- package/domain/providers/src/lib/middlewares/lookup-resolver.middleware.d.ts +15 -0
- package/domain/providers/src/lib/middlewares/lookup-resolver.middleware.js +99 -0
- package/domain/providers/src/lib/middlewares/lookup-resolver.middleware.js.map +1 -0
- package/domain/providers/src/lib/middlewares/merge-detail-relation.middleware.d.ts +20 -0
- package/domain/providers/src/lib/middlewares/merge-detail-relation.middleware.js +263 -0
- package/domain/providers/src/lib/middlewares/merge-detail-relation.middleware.js.map +1 -0
- package/domain/providers/src/lib/middlewares/primary.middleware.d.ts +15 -0
- package/domain/providers/src/lib/middlewares/primary.middleware.js +94 -0
- package/domain/providers/src/lib/middlewares/primary.middleware.js.map +1 -0
- package/domain/providers/src/lib/middlewares/related-entity-cascade-delete.middleware.d.ts +15 -0
- package/domain/providers/src/lib/middlewares/related-entity-cascade-delete.middleware.js +47 -0
- package/domain/providers/src/lib/middlewares/related-entity-cascade-delete.middleware.js.map +1 -0
- package/domain/providers/src/lib/middlewares/status-default.middleware.d.ts +15 -0
- package/domain/providers/src/lib/middlewares/status-default.middleware.js +61 -0
- package/domain/providers/src/lib/middlewares/status-default.middleware.js.map +1 -0
- package/domain/providers/src/lib/services/related-entity-cascade.service.d.ts +26 -0
- package/domain/providers/src/lib/services/related-entity-cascade.service.js +166 -0
- package/domain/providers/src/lib/services/related-entity-cascade.service.js.map +1 -0
- package/domain/providers/src/lib/utils/domain-path.util.d.ts +4 -0
- package/domain/providers/src/lib/utils/domain-path.util.js +42 -0
- package/domain/providers/src/lib/utils/domain-path.util.js.map +1 -0
- package/domain/providers/src/lib/utils/domain-record.util.d.ts +4 -0
- package/domain/providers/src/lib/utils/domain-record.util.js +52 -0
- package/domain/providers/src/lib/utils/domain-record.util.js.map +1 -0
- package/domain/providers/src/lib/utils/expression-evaluator.util.d.ts +11 -0
- package/domain/providers/src/lib/utils/expression-evaluator.util.js +74 -0
- package/domain/providers/src/lib/utils/expression-evaluator.util.js.map +1 -0
- package/domain/providers/src/lib/utils/in-memory-query.util.d.ts +13 -0
- package/domain/providers/src/lib/utils/in-memory-query.util.js +91 -0
- package/domain/providers/src/lib/utils/in-memory-query.util.js.map +1 -0
- package/domain/providers/src/lib/utils/merge-detail-query.util.d.ts +28 -0
- package/domain/providers/src/lib/utils/merge-detail-query.util.js +119 -0
- package/domain/providers/src/lib/utils/merge-detail-query.util.js.map +1 -0
- package/domain/providers/src/lib/utils/parse-related-entity-cascade.util.d.ts +16 -0
- package/domain/providers/src/lib/utils/parse-related-entity-cascade.util.js +109 -0
- package/domain/providers/src/lib/utils/parse-related-entity-cascade.util.js.map +1 -0
- package/domain/providers/src/lib/utils/policy-field.util.d.ts +3 -0
- package/domain/providers/src/lib/utils/policy-field.util.js +95 -0
- package/domain/providers/src/lib/utils/policy-field.util.js.map +1 -0
- package/domain/providers/src/lib/validators/domain-entity.validator.d.ts +32 -0
- package/domain/providers/src/lib/validators/domain-entity.validator.js +281 -0
- package/domain/providers/src/lib/validators/domain-entity.validator.js.map +1 -0
- package/domain/seed/package.json +17 -0
- package/domain/seed/src/index.d.ts +5 -0
- package/domain/seed/src/index.js +9 -0
- package/domain/seed/src/index.js.map +1 -0
- package/domain/seed/src/lib/axp-entity-to-definition.converter.d.ts +9 -0
- package/domain/seed/src/lib/axp-entity-to-definition.converter.js +64 -0
- package/domain/seed/src/lib/axp-entity-to-definition.converter.js.map +1 -0
- package/domain/seed/src/lib/category-companion-entity.builder.d.ts +30 -0
- package/domain/seed/src/lib/category-companion-entity.builder.js +178 -0
- package/domain/seed/src/lib/category-companion-entity.builder.js.map +1 -0
- package/domain/seed/src/lib/collect-entity-factories.util.d.ts +7 -0
- package/domain/seed/src/lib/collect-entity-factories.util.js +25 -0
- package/domain/seed/src/lib/collect-entity-factories.util.js.map +1 -0
- package/domain/seed/src/lib/domain-definition-seed.provider.d.ts +13 -0
- package/domain/seed/src/lib/domain-definition-seed.provider.js +75 -0
- package/domain/seed/src/lib/domain-definition-seed.provider.js.map +1 -0
- package/domain/seed/src/lib/domain-seed.types.d.ts +8 -0
- package/domain/seed/src/lib/domain-seed.types.js +4 -0
- package/domain/seed/src/lib/domain-seed.types.js.map +1 -0
- package/file-storage/abstract/package.json +15 -0
- package/file-storage/abstract/src/index.d.ts +5 -0
- package/file-storage/abstract/src/index.js +9 -0
- package/file-storage/abstract/src/index.js.map +1 -0
- package/file-storage/abstract/src/lib/file-storage-backend.interface.d.ts +12 -0
- package/file-storage/abstract/src/lib/file-storage-backend.interface.js +4 -0
- package/file-storage/abstract/src/lib/file-storage-backend.interface.js.map +1 -0
- package/file-storage/abstract/src/lib/file-storage-engine.interface.d.ts +14 -0
- package/file-storage/abstract/src/lib/file-storage-engine.interface.js +5 -0
- package/file-storage/abstract/src/lib/file-storage-engine.interface.js.map +1 -0
- package/file-storage/abstract/src/lib/file-storage.mapper.d.ts +8 -0
- package/file-storage/abstract/src/lib/file-storage.mapper.js +54 -0
- package/file-storage/abstract/src/lib/file-storage.mapper.js.map +1 -0
- package/file-storage/abstract/src/lib/file-storage.tokens.d.ts +10 -0
- package/file-storage/abstract/src/lib/file-storage.tokens.js +16 -0
- package/file-storage/abstract/src/lib/file-storage.tokens.js.map +1 -0
- package/file-storage/abstract/src/lib/file-storage.types.d.ts +86 -0
- package/file-storage/abstract/src/lib/file-storage.types.js +4 -0
- package/file-storage/abstract/src/lib/file-storage.types.js.map +1 -0
- package/file-storage/database/package.json +17 -0
- package/file-storage/database/src/index.d.ts +3 -0
- package/file-storage/database/src/index.js +7 -0
- package/file-storage/database/src/index.js.map +1 -0
- package/file-storage/database/src/lib/database-file-storage-engine.module.d.ts +2 -0
- package/file-storage/database/src/lib/database-file-storage-engine.module.js +18 -0
- package/file-storage/database/src/lib/database-file-storage-engine.module.js.map +1 -0
- package/file-storage/database/src/lib/file-binary-blob-jql-source.d.ts +5 -0
- package/file-storage/database/src/lib/file-binary-blob-jql-source.js +40 -0
- package/file-storage/database/src/lib/file-binary-blob-jql-source.js.map +1 -0
- package/file-storage/database/src/lib/jql-binary-file-storage.engine.d.ts +13 -0
- package/file-storage/database/src/lib/jql-binary-file-storage.engine.js +59 -0
- package/file-storage/database/src/lib/jql-binary-file-storage.engine.js.map +1 -0
- package/file-storage/domain/package.json +14 -0
- package/file-storage/domain/src/index.d.ts +1 -0
- package/file-storage/domain/src/index.js +5 -0
- package/file-storage/domain/src/index.js.map +1 -0
- package/file-storage/domain/src/lib/contracts/root-config.d.ts +21 -0
- package/file-storage/domain/src/lib/contracts/root-config.js +26 -0
- package/file-storage/domain/src/lib/contracts/root-config.js.map +1 -0
- package/file-storage/domain/src/lib/file/file.entity.d.ts +2 -0
- package/file-storage/domain/src/lib/file/file.entity.js +145 -0
- package/file-storage/domain/src/lib/file/file.entity.js.map +1 -0
- package/file-storage/domain/src/lib/file/index.d.ts +1 -0
- package/file-storage/domain/src/lib/file/index.js +5 -0
- package/file-storage/domain/src/lib/file/index.js.map +1 -0
- package/file-storage/domain/src/lib/index.d.ts +2 -0
- package/file-storage/domain/src/lib/index.js +6 -0
- package/file-storage/domain/src/lib/index.js.map +1 -0
- package/file-storage/entity/package.json +19 -0
- package/file-storage/entity/src/index.d.ts +7 -0
- package/file-storage/entity/src/index.js +11 -0
- package/file-storage/entity/src/index.js.map +1 -0
- package/file-storage/entity/src/lib/entity-file-storage.module.d.ts +2 -0
- package/file-storage/entity/src/lib/entity-file-storage.module.js +19 -0
- package/file-storage/entity/src/lib/entity-file-storage.module.js.map +1 -0
- package/file-storage/entity/src/lib/file-entity-jql-source.d.ts +6 -0
- package/file-storage/entity/src/lib/file-entity-jql-source.js +55 -0
- package/file-storage/entity/src/lib/file-entity-jql-source.js.map +1 -0
- package/file-storage/entity/src/lib/file-entity.mapper.d.ts +3 -0
- package/file-storage/entity/src/lib/file-entity.mapper.js +52 -0
- package/file-storage/entity/src/lib/file-entity.mapper.js.map +1 -0
- package/file-storage/entity/src/lib/file-entity.repository.d.ts +15 -0
- package/file-storage/entity/src/lib/file-entity.repository.js +105 -0
- package/file-storage/entity/src/lib/file-entity.repository.js.map +1 -0
- package/file-storage/entity/src/lib/file-metadata.service.d.ts +15 -0
- package/file-storage/entity/src/lib/file-metadata.service.js +47 -0
- package/file-storage/entity/src/lib/file-metadata.service.js.map +1 -0
- package/file-storage/entity/src/lib/file-storage-engine.registry.d.ts +10 -0
- package/file-storage/entity/src/lib/file-storage-engine.registry.js +42 -0
- package/file-storage/entity/src/lib/file-storage-engine.registry.js.map +1 -0
- package/file-storage/entity/src/lib/file-storage-infrastructure.service.d.ts +24 -0
- package/file-storage/entity/src/lib/file-storage-infrastructure.service.js +145 -0
- package/file-storage/entity/src/lib/file-storage-infrastructure.service.js.map +1 -0
- package/file-storage/http/package.json +18 -0
- package/file-storage/http/src/index.d.ts +3 -0
- package/file-storage/http/src/index.js +7 -0
- package/file-storage/http/src/index.js.map +1 -0
- package/file-storage/http/src/lib/file-storage-facade.service.d.ts +37 -0
- package/file-storage/http/src/lib/file-storage-facade.service.js +58 -0
- package/file-storage/http/src/lib/file-storage-facade.service.js.map +1 -0
- package/file-storage/http/src/lib/file-storage-http.module.d.ts +2 -0
- package/file-storage/http/src/lib/file-storage-http.module.js +20 -0
- package/file-storage/http/src/lib/file-storage-http.module.js.map +1 -0
- package/file-storage/http/src/lib/file-storage.controller.d.ts +25 -0
- package/file-storage/http/src/lib/file-storage.controller.js +188 -0
- package/file-storage/http/src/lib/file-storage.controller.js.map +1 -0
- package/file-storage/local/package.json +16 -0
- package/file-storage/local/src/index.d.ts +4 -0
- package/file-storage/local/src/index.js +8 -0
- package/file-storage/local/src/index.js.map +1 -0
- package/file-storage/local/src/lib/filename.util.d.ts +14 -0
- package/file-storage/local/src/lib/filename.util.js +71 -0
- package/file-storage/local/src/lib/filename.util.js.map +1 -0
- package/file-storage/local/src/lib/local-disk-file-storage.engine.d.ts +9 -0
- package/file-storage/local/src/lib/local-disk-file-storage.engine.js +49 -0
- package/file-storage/local/src/lib/local-disk-file-storage.engine.js.map +1 -0
- package/file-storage/local/src/lib/local-file-storage-engine.module.d.ts +2 -0
- package/file-storage/local/src/lib/local-file-storage-engine.module.js +18 -0
- package/file-storage/local/src/lib/local-file-storage-engine.module.js.map +1 -0
- package/file-storage/local/src/lib/local-file-storage.config.d.ts +1 -0
- package/file-storage/local/src/lib/local-file-storage.config.js +10 -0
- package/file-storage/local/src/lib/local-file-storage.config.js.map +1 -0
- package/file-storage/providers/package.json +21 -0
- package/file-storage/providers/src/index.d.ts +5 -0
- package/file-storage/providers/src/index.js +8 -0
- package/file-storage/providers/src/index.js.map +1 -0
- package/file-storage/providers/src/lib/file-storage-jql-instance.resolve.d.ts +5 -0
- package/file-storage/providers/src/lib/file-storage-jql-instance.resolve.js +16 -0
- package/file-storage/providers/src/lib/file-storage-jql-instance.resolve.js.map +1 -0
- package/file-storage/providers/src/lib/file-storage-provider.module.d.ts +8 -0
- package/file-storage/providers/src/lib/file-storage-provider.module.js +70 -0
- package/file-storage/providers/src/lib/file-storage-provider.module.js.map +1 -0
- package/file-storage/providers/src/lib/file-storage-provider.resolve.d.ts +5 -0
- package/file-storage/providers/src/lib/file-storage-provider.resolve.js +20 -0
- package/file-storage/providers/src/lib/file-storage-provider.resolve.js.map +1 -0
- package/file-storage/providers/src/lib/file-storage-provider.types.d.ts +1 -0
- package/file-storage/providers/src/lib/file-storage-provider.types.js +5 -0
- package/file-storage/providers/src/lib/file-storage-provider.types.js.map +1 -0
- package/identifier/package.json +17 -0
- package/identifier/src/index.d.ts +5 -0
- package/identifier/src/index.js +9 -0
- package/identifier/src/index.js.map +1 -0
- package/identifier/src/lib/identifier-engine.service.d.ts +26 -0
- package/identifier/src/lib/identifier-engine.service.js +198 -0
- package/identifier/src/lib/identifier-engine.service.js.map +1 -0
- package/identifier/src/lib/identifier-rule.registry.d.ts +17 -0
- package/identifier/src/lib/identifier-rule.registry.js +84 -0
- package/identifier/src/lib/identifier-rule.registry.js.map +1 -0
- package/identifier/src/lib/identifier-sequence.store.d.ts +24 -0
- package/identifier/src/lib/identifier-sequence.store.js +40 -0
- package/identifier/src/lib/identifier-sequence.store.js.map +1 -0
- package/identifier/src/lib/identifier.module.d.ts +5 -0
- package/identifier/src/lib/identifier.module.js +58 -0
- package/identifier/src/lib/identifier.module.js.map +1 -0
- package/identifier/src/lib/identifier.providers.d.ts +25 -0
- package/identifier/src/lib/identifier.providers.js +108 -0
- package/identifier/src/lib/identifier.providers.js.map +1 -0
- package/identifier/src/lib/identifier.types.d.ts +31 -0
- package/identifier/src/lib/identifier.types.js +5 -0
- package/identifier/src/lib/identifier.types.js.map +1 -0
- package/identifier/src/lib/pattern-engine.d.ts +20 -0
- package/identifier/src/lib/pattern-engine.js +70 -0
- package/identifier/src/lib/pattern-engine.js.map +1 -0
- package/identifier/src/lib/token-registry.service.d.ts +8 -0
- package/identifier/src/lib/token-registry.service.js +27 -0
- package/identifier/src/lib/token-registry.service.js.map +1 -0
- package/identifier/src/lib/tokens-default.d.ts +33 -0
- package/identifier/src/lib/tokens-default.js +99 -0
- package/identifier/src/lib/tokens-default.js.map +1 -0
- package/identifier/src/lib/tokens.types.d.ts +54 -0
- package/identifier/src/lib/tokens.types.js +8 -0
- package/identifier/src/lib/tokens.types.js.map +1 -0
- package/identifier/src/lib/utils.d.ts +2 -0
- package/identifier/src/lib/utils.js +17 -0
- package/identifier/src/lib/utils.js.map +1 -0
- package/jql/abstract/package.json +14 -0
- package/jql/abstract/src/index.d.ts +26 -0
- package/jql/abstract/src/index.js +30 -0
- package/jql/abstract/src/index.js.map +1 -0
- package/jql/abstract/src/lib/entity-schema/entity-schema-naming.util.d.ts +6 -0
- package/jql/abstract/src/lib/entity-schema/entity-schema-naming.util.js +31 -0
- package/jql/abstract/src/lib/entity-schema/entity-schema-naming.util.js.map +1 -0
- package/jql/abstract/src/lib/entity-schema/entity-storage-source.util.d.ts +2 -0
- package/jql/abstract/src/lib/entity-schema/entity-storage-source.util.js +26 -0
- package/jql/abstract/src/lib/entity-schema/entity-storage-source.util.js.map +1 -0
- package/jql/abstract/src/lib/entity-schema/jql-entity-schema-not-found.error.d.ts +3 -0
- package/jql/abstract/src/lib/entity-schema/jql-entity-schema-not-found.error.js +13 -0
- package/jql/abstract/src/lib/entity-schema/jql-entity-schema-not-found.error.js.map +1 -0
- package/jql/abstract/src/lib/entity-schema/jql-entity-schema.types.d.ts +35 -0
- package/jql/abstract/src/lib/entity-schema/jql-entity-schema.types.js +5 -0
- package/jql/abstract/src/lib/entity-schema/jql-entity-schema.types.js.map +1 -0
- package/jql/abstract/src/lib/entity-store/category-hierarchy-filter.util.d.ts +37 -0
- package/jql/abstract/src/lib/entity-store/category-hierarchy-filter.util.js +138 -0
- package/jql/abstract/src/lib/entity-store/category-hierarchy-filter.util.js.map +1 -0
- package/jql/abstract/src/lib/entity-store/entity-fulltext-search-paths.util.d.ts +25 -0
- package/jql/abstract/src/lib/entity-store/entity-fulltext-search-paths.util.js +128 -0
- package/jql/abstract/src/lib/entity-store/entity-fulltext-search-paths.util.js.map +1 -0
- package/jql/abstract/src/lib/entity-store/entity-fulltext-search.util.d.ts +44 -0
- package/jql/abstract/src/lib/entity-store/entity-fulltext-search.util.js +193 -0
- package/jql/abstract/src/lib/entity-store/entity-fulltext-search.util.js.map +1 -0
- package/jql/abstract/src/lib/entity-store/entity-store-aggregate.util.d.ts +6 -0
- package/jql/abstract/src/lib/entity-store/entity-store-aggregate.util.js +45 -0
- package/jql/abstract/src/lib/entity-store/entity-store-aggregate.util.js.map +1 -0
- package/jql/abstract/src/lib/entity-store/entity-store-backend.interface.d.ts +16 -0
- package/jql/abstract/src/lib/entity-store/entity-store-backend.interface.js +4 -0
- package/jql/abstract/src/lib/entity-store/entity-store-backend.interface.js.map +1 -0
- package/jql/abstract/src/lib/entity-store/entity-store-initial.types.d.ts +6 -0
- package/jql/abstract/src/lib/entity-store/entity-store-initial.types.js +5 -0
- package/jql/abstract/src/lib/entity-store/entity-store-initial.types.js.map +1 -0
- package/jql/abstract/src/lib/entity-store/entity-store-request.util.d.ts +18 -0
- package/jql/abstract/src/lib/entity-store/entity-store-request.util.js +144 -0
- package/jql/abstract/src/lib/entity-store/entity-store-request.util.js.map +1 -0
- package/jql/abstract/src/lib/entity-store/entity-store.service.d.ts +34 -0
- package/jql/abstract/src/lib/entity-store/entity-store.service.js +181 -0
- package/jql/abstract/src/lib/entity-store/entity-store.service.js.map +1 -0
- package/jql/abstract/src/lib/entity-store/entity-store.tokens.d.ts +6 -0
- package/jql/abstract/src/lib/entity-store/entity-store.tokens.js +12 -0
- package/jql/abstract/src/lib/entity-store/entity-store.tokens.js.map +1 -0
- package/jql/abstract/src/lib/entity-store/entity-store.types.d.ts +20 -0
- package/jql/abstract/src/lib/entity-store/entity-store.types.js +5 -0
- package/jql/abstract/src/lib/entity-store/entity-store.types.js.map +1 -0
- package/jql/abstract/src/lib/entity-store/entity-visibility-filter.util.d.ts +22 -0
- package/jql/abstract/src/lib/entity-store/entity-visibility-filter.util.js +99 -0
- package/jql/abstract/src/lib/entity-store/entity-visibility-filter.util.js.map +1 -0
- package/jql/abstract/src/lib/entity-store/json-store-record-id.util.d.ts +2 -0
- package/jql/abstract/src/lib/entity-store/json-store-record-id.util.js +23 -0
- package/jql/abstract/src/lib/entity-store/json-store-record-id.util.js.map +1 -0
- package/jql/abstract/src/lib/jql-engine.base.d.ts +43 -0
- package/jql/abstract/src/lib/jql-engine.base.js +79 -0
- package/jql/abstract/src/lib/jql-engine.base.js.map +1 -0
- package/jql/abstract/src/lib/jql-engine.interface.d.ts +20 -0
- package/jql/abstract/src/lib/jql-engine.interface.js +4 -0
- package/jql/abstract/src/lib/jql-engine.interface.js.map +1 -0
- package/jql/abstract/src/lib/jql-filter.util.d.ts +5 -0
- package/jql/abstract/src/lib/jql-filter.util.js +37 -0
- package/jql/abstract/src/lib/jql-filter.util.js.map +1 -0
- package/jql/abstract/src/lib/jql-operator.util.d.ts +3 -0
- package/jql/abstract/src/lib/jql-operator.util.js +39 -0
- package/jql/abstract/src/lib/jql-operator.util.js.map +1 -0
- package/jql/abstract/src/lib/jql-source-registry.d.ts +10 -0
- package/jql/abstract/src/lib/jql-source-registry.js +41 -0
- package/jql/abstract/src/lib/jql-source-registry.js.map +1 -0
- package/jql/abstract/src/lib/jql-source.types.d.ts +35 -0
- package/jql/abstract/src/lib/jql-source.types.js +5 -0
- package/jql/abstract/src/lib/jql-source.types.js.map +1 -0
- package/jql/abstract/src/lib/jql.tokens.d.ts +10 -0
- package/jql/abstract/src/lib/jql.tokens.js +22 -0
- package/jql/abstract/src/lib/jql.tokens.js.map +1 -0
- package/jql/abstract/src/lib/jql.types.d.ts +64 -0
- package/jql/abstract/src/lib/jql.types.js +11 -0
- package/jql/abstract/src/lib/jql.types.js.map +1 -0
- package/jql/abstract/src/lib/odata/odata-query.parser.d.ts +15 -0
- package/jql/abstract/src/lib/odata/odata-query.parser.js +318 -0
- package/jql/abstract/src/lib/odata/odata-query.parser.js.map +1 -0
- package/jql/abstract/src/lib/odata/odata-query.types.d.ts +21 -0
- package/jql/abstract/src/lib/odata/odata-query.types.js +4 -0
- package/jql/abstract/src/lib/odata/odata-query.types.js.map +1 -0
- package/jql/json/package.json +15 -0
- package/jql/json/src/index.d.ts +4 -0
- package/jql/json/src/index.js +8 -0
- package/jql/json/src/index.js.map +1 -0
- package/jql/json/src/lib/jql-json.config.d.ts +6 -0
- package/jql/json/src/lib/jql-json.config.js +20 -0
- package/jql/json/src/lib/jql-json.config.js.map +1 -0
- package/jql/json/src/lib/jql-json.engine.d.ts +22 -0
- package/jql/json/src/lib/jql-json.engine.js +187 -0
- package/jql/json/src/lib/jql-json.engine.js.map +1 -0
- package/jql/json/src/lib/jql-json.filter.d.ts +2 -0
- package/jql/json/src/lib/jql-json.filter.js +175 -0
- package/jql/json/src/lib/jql-json.filter.js.map +1 -0
- package/jql/json/src/lib/jql-json.module.d.ts +6 -0
- package/jql/json/src/lib/jql-json.module.js +49 -0
- package/jql/json/src/lib/jql-json.module.js.map +1 -0
- package/jql/mongodb/package.json +17 -0
- package/jql/mongodb/src/index.d.ts +5 -0
- package/jql/mongodb/src/index.js +9 -0
- package/jql/mongodb/src/index.js.map +1 -0
- package/jql/mongodb/src/lib/compile/filter-compiler.d.ts +3 -0
- package/jql/mongodb/src/lib/compile/filter-compiler.js +70 -0
- package/jql/mongodb/src/lib/compile/filter-compiler.js.map +1 -0
- package/jql/mongodb/src/lib/compile/sort-builder.d.ts +3 -0
- package/jql/mongodb/src/lib/compile/sort-builder.js +16 -0
- package/jql/mongodb/src/lib/compile/sort-builder.js.map +1 -0
- package/jql/mongodb/src/lib/document-mapper.d.ts +3 -0
- package/jql/mongodb/src/lib/document-mapper.js +14 -0
- package/jql/mongodb/src/lib/document-mapper.js.map +1 -0
- package/jql/mongodb/src/lib/jql-mongodb.config.d.ts +5 -0
- package/jql/mongodb/src/lib/jql-mongodb.config.js +10 -0
- package/jql/mongodb/src/lib/jql-mongodb.config.js.map +1 -0
- package/jql/mongodb/src/lib/jql-mongodb.engine.d.ts +33 -0
- package/jql/mongodb/src/lib/jql-mongodb.engine.js +259 -0
- package/jql/mongodb/src/lib/jql-mongodb.engine.js.map +1 -0
- package/jql/mongodb/src/lib/jql-mongodb.module.d.ts +7 -0
- package/jql/mongodb/src/lib/jql-mongodb.module.js +58 -0
- package/jql/mongodb/src/lib/jql-mongodb.module.js.map +1 -0
- package/jql/mongodb/src/lib/jql-mongodb.tokens.d.ts +1 -0
- package/jql/mongodb/src/lib/jql-mongodb.tokens.js +7 -0
- package/jql/mongodb/src/lib/jql-mongodb.tokens.js.map +1 -0
- package/jql/postgres/package.json +17 -0
- package/jql/postgres/src/index.d.ts +5 -0
- package/jql/postgres/src/index.js +9 -0
- package/jql/postgres/src/index.js.map +1 -0
- package/jql/postgres/src/lib/compile/aggregate-builder.d.ts +5 -0
- package/jql/postgres/src/lib/compile/aggregate-builder.js +48 -0
- package/jql/postgres/src/lib/compile/aggregate-builder.js.map +1 -0
- package/jql/postgres/src/lib/compile/field-resolver.d.ts +4 -0
- package/jql/postgres/src/lib/compile/field-resolver.js +66 -0
- package/jql/postgres/src/lib/compile/field-resolver.js.map +1 -0
- package/jql/postgres/src/lib/compile/filter-compiler.d.ts +7 -0
- package/jql/postgres/src/lib/compile/filter-compiler.js +129 -0
- package/jql/postgres/src/lib/compile/filter-compiler.js.map +1 -0
- package/jql/postgres/src/lib/compile/pg-placeholders.util.d.ts +4 -0
- package/jql/postgres/src/lib/compile/pg-placeholders.util.js +16 -0
- package/jql/postgres/src/lib/compile/pg-placeholders.util.js.map +1 -0
- package/jql/postgres/src/lib/compile/query-builder.d.ts +7 -0
- package/jql/postgres/src/lib/compile/query-builder.js +58 -0
- package/jql/postgres/src/lib/compile/query-builder.js.map +1 -0
- package/jql/postgres/src/lib/compile/sql-where.types.d.ts +8 -0
- package/jql/postgres/src/lib/compile/sql-where.types.js +5 -0
- package/jql/postgres/src/lib/compile/sql-where.types.js.map +1 -0
- package/jql/postgres/src/lib/document-mapper.d.ts +2 -0
- package/jql/postgres/src/lib/document-mapper.js +21 -0
- package/jql/postgres/src/lib/document-mapper.js.map +1 -0
- package/jql/postgres/src/lib/jql-postgres.config.d.ts +5 -0
- package/jql/postgres/src/lib/jql-postgres.config.js +10 -0
- package/jql/postgres/src/lib/jql-postgres.config.js.map +1 -0
- package/jql/postgres/src/lib/jql-postgres.engine.d.ts +32 -0
- package/jql/postgres/src/lib/jql-postgres.engine.js +286 -0
- package/jql/postgres/src/lib/jql-postgres.engine.js.map +1 -0
- package/jql/postgres/src/lib/jql-postgres.module.d.ts +7 -0
- package/jql/postgres/src/lib/jql-postgres.module.js +61 -0
- package/jql/postgres/src/lib/jql-postgres.module.js.map +1 -0
- package/jql/postgres/src/lib/jql-postgres.tokens.d.ts +1 -0
- package/jql/postgres/src/lib/jql-postgres.tokens.js +7 -0
- package/jql/postgres/src/lib/jql-postgres.tokens.js.map +1 -0
- package/jql/postgres/src/lib/postgres-connection.util.d.ts +5 -0
- package/jql/postgres/src/lib/postgres-connection.util.js +18 -0
- package/jql/postgres/src/lib/postgres-connection.util.js.map +1 -0
- package/jql/postgres/src/lib/structured-document-mapper.d.ts +6 -0
- package/jql/postgres/src/lib/structured-document-mapper.js +84 -0
- package/jql/postgres/src/lib/structured-document-mapper.js.map +1 -0
- package/jql/providers/package.json +20 -0
- package/jql/providers/src/index.d.ts +8 -0
- package/jql/providers/src/index.js +11 -0
- package/jql/providers/src/index.js.map +1 -0
- package/jql/providers/src/lib/entity-storage-instance.resolve.d.ts +5 -0
- package/jql/providers/src/lib/entity-storage-instance.resolve.js +16 -0
- package/jql/providers/src/lib/entity-storage-instance.resolve.js.map +1 -0
- package/jql/providers/src/lib/jql-entity-store.config.d.ts +6 -0
- package/jql/providers/src/lib/jql-entity-store.config.js +17 -0
- package/jql/providers/src/lib/jql-entity-store.config.js.map +1 -0
- package/jql/providers/src/lib/jql-instance-db.resolve.d.ts +6 -0
- package/jql/providers/src/lib/jql-instance-db.resolve.js +21 -0
- package/jql/providers/src/lib/jql-instance-db.resolve.js.map +1 -0
- package/jql/providers/src/lib/jql-instance.types.d.ts +12 -0
- package/jql/providers/src/lib/jql-instance.types.js +5 -0
- package/jql/providers/src/lib/jql-instance.types.js.map +1 -0
- package/jql/providers/src/lib/jql-provider.module.d.ts +8 -0
- package/jql/providers/src/lib/jql-provider.module.js +54 -0
- package/jql/providers/src/lib/jql-provider.module.js.map +1 -0
- package/jql/providers/src/lib/jql-provider.resolve.d.ts +5 -0
- package/jql/providers/src/lib/jql-provider.resolve.js +26 -0
- package/jql/providers/src/lib/jql-provider.resolve.js.map +1 -0
- package/jql/providers/src/lib/jql-provider.types.d.ts +1 -0
- package/jql/providers/src/lib/jql-provider.types.js +5 -0
- package/jql/providers/src/lib/jql-provider.types.js.map +1 -0
- package/jql/providers/src/lib/jql.module.d.ts +6 -0
- package/jql/providers/src/lib/jql.module.js +134 -0
- package/jql/providers/src/lib/jql.module.js.map +1 -0
- package/jql/schema/package.json +18 -0
- package/jql/schema/src/index.d.ts +9 -0
- package/jql/schema/src/index.js +13 -0
- package/jql/schema/src/index.js.map +1 -0
- package/jql/schema/src/lib/domain-data-type.mapper.d.ts +6 -0
- package/jql/schema/src/lib/domain-data-type.mapper.js +54 -0
- package/jql/schema/src/lib/domain-data-type.mapper.js.map +1 -0
- package/jql/schema/src/lib/entity-schema-builder.d.ts +14 -0
- package/jql/schema/src/lib/entity-schema-builder.js +147 -0
- package/jql/schema/src/lib/entity-schema-builder.js.map +1 -0
- package/jql/schema/src/lib/entity-schema-jql-source.factory.d.ts +5 -0
- package/jql/schema/src/lib/entity-schema-jql-source.factory.js +75 -0
- package/jql/schema/src/lib/entity-schema-jql-source.factory.js.map +1 -0
- package/jql/schema/src/lib/jql-auto-migrator.d.ts +17 -0
- package/jql/schema/src/lib/jql-auto-migrator.js +106 -0
- package/jql/schema/src/lib/jql-auto-migrator.js.map +1 -0
- package/jql/schema/src/lib/jql-schema-history.hydrator.d.ts +4 -0
- package/jql/schema/src/lib/jql-schema-history.hydrator.js +113 -0
- package/jql/schema/src/lib/jql-schema-history.hydrator.js.map +1 -0
- package/jql/schema/src/lib/jql-schema-registry.service.d.ts +8 -0
- package/jql/schema/src/lib/jql-schema-registry.service.js +29 -0
- package/jql/schema/src/lib/jql-schema-registry.service.js.map +1 -0
- package/jql/schema/src/lib/jql-schema.controller.d.ts +14 -0
- package/jql/schema/src/lib/jql-schema.controller.js +28 -0
- package/jql/schema/src/lib/jql-schema.controller.js.map +1 -0
- package/jql/schema/src/lib/jql-schema.module.d.ts +4 -0
- package/jql/schema/src/lib/jql-schema.module.js +35 -0
- package/jql/schema/src/lib/jql-schema.module.js.map +1 -0
- package/jql/schema/src/lib/jql-schema.service.d.ts +30 -0
- package/jql/schema/src/lib/jql-schema.service.js +121 -0
- package/jql/schema/src/lib/jql-schema.service.js.map +1 -0
- package/jql/seed/package.json +18 -0
- package/jql/seed/src/index.d.ts +13 -0
- package/jql/seed/src/index.js +17 -0
- package/jql/seed/src/index.js.map +1 -0
- package/jql/seed/src/lib/entity-data-seed.provider.d.ts +14 -0
- package/jql/seed/src/lib/entity-data-seed.provider.js +45 -0
- package/jql/seed/src/lib/entity-data-seed.provider.js.map +1 -0
- package/jql/seed/src/lib/entity-seed-storage.adapter.d.ts +3 -0
- package/jql/seed/src/lib/entity-seed-storage.adapter.js +25 -0
- package/jql/seed/src/lib/entity-seed-storage.adapter.js.map +1 -0
- package/jql/seed/src/lib/jql-auto-seed.resolve.d.ts +4 -0
- package/jql/seed/src/lib/jql-auto-seed.resolve.js +13 -0
- package/jql/seed/src/lib/jql-auto-seed.resolve.js.map +1 -0
- package/jql/seed/src/lib/jql-auto-seed.service.d.ts +8 -0
- package/jql/seed/src/lib/jql-auto-seed.service.js +29 -0
- package/jql/seed/src/lib/jql-auto-seed.service.js.map +1 -0
- package/jql/seed/src/lib/jql-engine-registry.service.d.ts +7 -0
- package/jql/seed/src/lib/jql-engine-registry.service.js +31 -0
- package/jql/seed/src/lib/jql-engine-registry.service.js.map +1 -0
- package/jql/seed/src/lib/jql-multi-seed-runner.service.d.ts +11 -0
- package/jql/seed/src/lib/jql-multi-seed-runner.service.js +56 -0
- package/jql/seed/src/lib/jql-multi-seed-runner.service.js.map +1 -0
- package/jql/seed/src/lib/jql-seed-phase.resolve.d.ts +10 -0
- package/jql/seed/src/lib/jql-seed-phase.resolve.js +36 -0
- package/jql/seed/src/lib/jql-seed-phase.resolve.js.map +1 -0
- package/jql/seed/src/lib/jql-seed-provider.interface.d.ts +10 -0
- package/jql/seed/src/lib/jql-seed-provider.interface.js +4 -0
- package/jql/seed/src/lib/jql-seed-provider.interface.js.map +1 -0
- package/jql/seed/src/lib/jql-seed-runner.service.d.ts +19 -0
- package/jql/seed/src/lib/jql-seed-runner.service.js +50 -0
- package/jql/seed/src/lib/jql-seed-runner.service.js.map +1 -0
- package/jql/seed/src/lib/jql-seed-target.types.d.ts +28 -0
- package/jql/seed/src/lib/jql-seed-target.types.js +4 -0
- package/jql/seed/src/lib/jql-seed-target.types.js.map +1 -0
- package/jql/seed/src/lib/jql-seed.module.d.ts +14 -0
- package/jql/seed/src/lib/jql-seed.module.js +68 -0
- package/jql/seed/src/lib/jql-seed.module.js.map +1 -0
- package/jql/seed/src/lib/jql-seed.tokens.d.ts +5 -0
- package/jql/seed/src/lib/jql-seed.tokens.js +11 -0
- package/jql/seed/src/lib/jql-seed.tokens.js.map +1 -0
- package/jql/seed/src/lib/jql-store-seed.writer.d.ts +11 -0
- package/jql/seed/src/lib/jql-store-seed.writer.js +55 -0
- package/jql/seed/src/lib/jql-store-seed.writer.js.map +1 -0
- package/jql/sqlite/package.json +17 -0
- package/jql/sqlite/src/index.d.ts +3 -0
- package/jql/sqlite/src/index.js +7 -0
- package/jql/sqlite/src/index.js.map +1 -0
- package/jql/sqlite/src/lib/jql-sqlite.config.d.ts +6 -0
- package/jql/sqlite/src/lib/jql-sqlite.config.js +18 -0
- package/jql/sqlite/src/lib/jql-sqlite.config.js.map +1 -0
- package/jql/sqlite/src/lib/jql-sqlite.engine.d.ts +29 -0
- package/jql/sqlite/src/lib/jql-sqlite.engine.js +237 -0
- package/jql/sqlite/src/lib/jql-sqlite.engine.js.map +1 -0
- package/jql/sqlite/src/lib/jql-sqlite.module.d.ts +7 -0
- package/jql/sqlite/src/lib/jql-sqlite.module.js +51 -0
- package/jql/sqlite/src/lib/jql-sqlite.module.js.map +1 -0
- package/package.json +108 -0
- package/report/package.json +17 -0
- package/report/src/index.d.ts +8 -0
- package/report/src/index.js +12 -0
- package/report/src/index.js.map +1 -0
- package/report/src/lib/report-definition.registry.d.ts +20 -0
- package/report/src/lib/report-definition.registry.js +134 -0
- package/report/src/lib/report-definition.registry.js.map +1 -0
- package/report/src/lib/report-execute.service.d.ts +14 -0
- package/report/src/lib/report-execute.service.js +115 -0
- package/report/src/lib/report-execute.service.js.map +1 -0
- package/report/src/lib/report-query.registry.d.ts +19 -0
- package/report/src/lib/report-query.registry.js +73 -0
- package/report/src/lib/report-query.registry.js.map +1 -0
- package/report/src/lib/report-result-normalizer.d.ts +6 -0
- package/report/src/lib/report-result-normalizer.js +108 -0
- package/report/src/lib/report-result-normalizer.js.map +1 -0
- package/report/src/lib/report-summary.util.d.ts +9 -0
- package/report/src/lib/report-summary.util.js +56 -0
- package/report/src/lib/report-summary.util.js.map +1 -0
- package/report/src/lib/report.decorators.d.ts +6 -0
- package/report/src/lib/report.decorators.js +15 -0
- package/report/src/lib/report.decorators.js.map +1 -0
- package/report/src/lib/report.module.d.ts +2 -0
- package/report/src/lib/report.module.js +32 -0
- package/report/src/lib/report.module.js.map +1 -0
- package/report/src/lib/report.types.d.ts +74 -0
- package/report/src/lib/report.types.js +10 -0
- package/report/src/lib/report.types.js.map +1 -0
- package/report/src/lib/report.util.d.ts +1 -0
- package/report/src/lib/report.util.js +19 -0
- package/report/src/lib/report.util.js.map +1 -0
- package/security/package.json +17 -0
- package/security/src/index.d.ts +13 -0
- package/security/src/index.js +17 -0
- package/security/src/index.js.map +1 -0
- package/security/src/lib/auth/auth.controller.d.ts +10 -0
- package/security/src/lib/auth/auth.controller.js +117 -0
- package/security/src/lib/auth/auth.controller.js.map +1 -0
- package/security/src/lib/auth/auth.service.d.ts +22 -0
- package/security/src/lib/auth/auth.service.js +238 -0
- package/security/src/lib/auth/auth.service.js.map +1 -0
- package/security/src/lib/auth/auth.types.d.ts +69 -0
- package/security/src/lib/auth/auth.types.js +5 -0
- package/security/src/lib/auth/auth.types.js.map +1 -0
- package/security/src/lib/auth/jwt-auth.guard.d.ts +14 -0
- package/security/src/lib/auth/jwt-auth.guard.js +68 -0
- package/security/src/lib/auth/jwt-auth.guard.js.map +1 -0
- package/security/src/lib/auth/public.decorator.d.ts +3 -0
- package/security/src/lib/auth/public.decorator.js +11 -0
- package/security/src/lib/auth/public.decorator.js.map +1 -0
- package/security/src/lib/authorization/platform-root-user.util.d.ts +18 -0
- package/security/src/lib/authorization/platform-root-user.util.js +51 -0
- package/security/src/lib/authorization/platform-root-user.util.js.map +1 -0
- package/security/src/lib/entity-storage/policy-enforce.middleware.d.ts +26 -0
- package/security/src/lib/entity-storage/policy-enforce.middleware.js +207 -0
- package/security/src/lib/entity-storage/policy-enforce.middleware.js.map +1 -0
- package/security/src/lib/entity-storage/policy-expression-evaluator.util.d.ts +7 -0
- package/security/src/lib/entity-storage/policy-expression-evaluator.util.js +70 -0
- package/security/src/lib/entity-storage/policy-expression-evaluator.util.js.map +1 -0
- package/security/src/lib/entity-storage/policy-field.util.d.ts +3 -0
- package/security/src/lib/entity-storage/policy-field.util.js +95 -0
- package/security/src/lib/entity-storage/policy-field.util.js.map +1 -0
- package/security/src/lib/entity-storage/visibility-filter.middleware.d.ts +29 -0
- package/security/src/lib/entity-storage/visibility-filter.middleware.js +84 -0
- package/security/src/lib/entity-storage/visibility-filter.middleware.js.map +1 -0
- package/security/src/lib/security.module.d.ts +8 -0
- package/security/src/lib/security.module.js +65 -0
- package/security/src/lib/security.module.js.map +1 -0
- package/security/src/lib/session/abp.controller.d.ts +9 -0
- package/security/src/lib/session/abp.controller.js +38 -0
- package/security/src/lib/session/abp.controller.js.map +1 -0
- package/security/src/lib/session/applications.controller.d.ts +9 -0
- package/security/src/lib/session/applications.controller.js +38 -0
- package/security/src/lib/session/applications.controller.js.map +1 -0
- package/security/src/lib/session/backend-session.service.d.ts +21 -0
- package/security/src/lib/session/backend-session.service.js +51 -0
- package/security/src/lib/session/backend-session.service.js.map +1 -0
- package/security/src/lib/session/backend-session.types.d.ts +7 -0
- package/security/src/lib/session/backend-session.types.js +5 -0
- package/security/src/lib/session/backend-session.types.js.map +1 -0
- package/security/src/lib/session/current-session.decorator.d.ts +2 -0
- package/security/src/lib/session/current-session.decorator.js +12 -0
- package/security/src/lib/session/current-session.decorator.js.map +1 -0
- package/security/src/lib/session/optional-jwt-session.middleware.d.ts +22 -0
- package/security/src/lib/session/optional-jwt-session.middleware.js +59 -0
- package/security/src/lib/session/optional-jwt-session.middleware.js.map +1 -0
- package/security/src/lib/session/session-context.service.d.ts +21 -0
- package/security/src/lib/session/session-context.service.js +204 -0
- package/security/src/lib/session/session-context.service.js.map +1 -0
- package/security/src/lib/session/session-context.types.d.ts +31 -0
- package/security/src/lib/session/session-context.types.js +5 -0
- package/security/src/lib/session/session-context.types.js.map +1 -0
- package/security/src/lib/session/tenants.controller.d.ts +9 -0
- package/security/src/lib/session/tenants.controller.js +38 -0
- package/security/src/lib/session/tenants.controller.js.map +1 -0
- package/swagger/package.json +18 -0
- package/swagger/src/index.d.ts +6 -0
- package/swagger/src/index.js +10 -0
- package/swagger/src/index.js.map +1 -0
- package/swagger/src/lib/entity-storage-swagger.module.d.ts +2 -0
- package/swagger/src/lib/entity-storage-swagger.module.js +18 -0
- package/swagger/src/lib/entity-storage-swagger.module.js.map +1 -0
- package/swagger/src/lib/entity-storage-swagger.service.d.ts +11 -0
- package/swagger/src/lib/entity-storage-swagger.service.js +189 -0
- package/swagger/src/lib/entity-storage-swagger.service.js.map +1 -0
- package/swagger/src/lib/swagger.helpers.d.ts +3 -0
- package/swagger/src/lib/swagger.helpers.js +14 -0
- package/swagger/src/lib/swagger.helpers.js.map +1 -0
- package/swagger/src/lib/swagger.setup.d.ts +11 -0
- package/swagger/src/lib/swagger.setup.js +77 -0
- package/swagger/src/lib/swagger.setup.js.map +1 -0
- package/swagger/src/lib/swagger.tokens.d.ts +1 -0
- package/swagger/src/lib/swagger.tokens.js +7 -0
- package/swagger/src/lib/swagger.tokens.js.map +1 -0
- package/swagger/src/lib/swagger.types.d.ts +29 -0
- package/swagger/src/lib/swagger.types.js +5 -0
- package/swagger/src/lib/swagger.types.js.map +1 -0
- package/swagger/src/lib/utils/openapi-schema.util.d.ts +4 -0
- package/swagger/src/lib/utils/openapi-schema.util.js +64 -0
- package/swagger/src/lib/utils/openapi-schema.util.js.map +1 -0
- package/workflow/package.json +20 -0
- package/workflow/src/index.d.ts +7 -0
- package/workflow/src/index.js +11 -0
- package/workflow/src/index.js.map +1 -0
- package/workflow/src/lib/activities/handlers/assign-to-manager.activity.d.ts +9 -0
- package/workflow/src/lib/activities/handlers/assign-to-manager.activity.js +164 -0
- package/workflow/src/lib/activities/handlers/assign-to-manager.activity.js.map +1 -0
- package/workflow/src/lib/activities/handlers/built-in.activities.d.ts +13 -0
- package/workflow/src/lib/activities/handlers/built-in.activities.js +166 -0
- package/workflow/src/lib/activities/handlers/built-in.activities.js.map +1 -0
- package/workflow/src/lib/activities/handlers/check-permission.activity.d.ts +8 -0
- package/workflow/src/lib/activities/handlers/check-permission.activity.js +36 -0
- package/workflow/src/lib/activities/handlers/check-permission.activity.js.map +1 -0
- package/workflow/src/lib/activities/handlers/distribution-record.activity.d.ts +5 -0
- package/workflow/src/lib/activities/handlers/distribution-record.activity.js +65 -0
- package/workflow/src/lib/activities/handlers/distribution-record.activity.js.map +1 -0
- package/workflow/src/lib/activities/handlers/entity-create.activity.d.ts +5 -0
- package/workflow/src/lib/activities/handlers/entity-create.activity.js +55 -0
- package/workflow/src/lib/activities/handlers/entity-create.activity.js.map +1 -0
- package/workflow/src/lib/activities/handlers/entity-delete.activity.d.ts +5 -0
- package/workflow/src/lib/activities/handlers/entity-delete.activity.js +48 -0
- package/workflow/src/lib/activities/handlers/entity-delete.activity.js.map +1 -0
- package/workflow/src/lib/activities/handlers/entity-read.activity.d.ts +5 -0
- package/workflow/src/lib/activities/handlers/entity-read.activity.js +54 -0
- package/workflow/src/lib/activities/handlers/entity-read.activity.js.map +1 -0
- package/workflow/src/lib/activities/handlers/entity-update.activity.d.ts +5 -0
- package/workflow/src/lib/activities/handlers/entity-update.activity.js +55 -0
- package/workflow/src/lib/activities/handlers/entity-update.activity.js.map +1 -0
- package/workflow/src/lib/activities/handlers/get-current-session-user.activity.d.ts +5 -0
- package/workflow/src/lib/activities/handlers/get-current-session-user.activity.js +24 -0
- package/workflow/src/lib/activities/handlers/get-current-session-user.activity.js.map +1 -0
- package/workflow/src/lib/activities/handlers/get-current-user-manager.activity.d.ts +5 -0
- package/workflow/src/lib/activities/handlers/get-current-user-manager.activity.js +50 -0
- package/workflow/src/lib/activities/handlers/get-current-user-manager.activity.js.map +1 -0
- package/workflow/src/lib/activities/handlers/if.activity.d.ts +5 -0
- package/workflow/src/lib/activities/handlers/if.activity.js +25 -0
- package/workflow/src/lib/activities/handlers/if.activity.js.map +1 -0
- package/workflow/src/lib/activities/handlers/index.d.ts +11 -0
- package/workflow/src/lib/activities/handlers/index.js +15 -0
- package/workflow/src/lib/activities/handlers/index.js.map +1 -0
- package/workflow/src/lib/activities/index.d.ts +7 -0
- package/workflow/src/lib/activities/index.js +11 -0
- package/workflow/src/lib/activities/index.js.map +1 -0
- package/workflow/src/lib/activities/workflow-activity-execution.types.d.ts +17 -0
- package/workflow/src/lib/activities/workflow-activity-execution.types.js +4 -0
- package/workflow/src/lib/activities/workflow-activity-execution.types.js.map +1 -0
- package/workflow/src/lib/activities/workflow-activity.constants.d.ts +4 -0
- package/workflow/src/lib/activities/workflow-activity.constants.js +10 -0
- package/workflow/src/lib/activities/workflow-activity.constants.js.map +1 -0
- package/workflow/src/lib/activities/workflow-activity.registry.d.ts +15 -0
- package/workflow/src/lib/activities/workflow-activity.registry.js +78 -0
- package/workflow/src/lib/activities/workflow-activity.registry.js.map +1 -0
- package/workflow/src/lib/activities/workflow-activity.utils.d.ts +24 -0
- package/workflow/src/lib/activities/workflow-activity.utils.js +108 -0
- package/workflow/src/lib/activities/workflow-activity.utils.js.map +1 -0
- package/workflow/src/lib/activities/workflow-permission.service.d.ts +21 -0
- package/workflow/src/lib/activities/workflow-permission.service.js +99 -0
- package/workflow/src/lib/activities/workflow-permission.service.js.map +1 -0
- package/workflow/src/lib/activities/workflow-request-session.adapter.d.ts +9 -0
- package/workflow/src/lib/activities/workflow-request-session.adapter.js +29 -0
- package/workflow/src/lib/activities/workflow-request-session.adapter.js.map +1 -0
- package/workflow/src/lib/activity/activity.types.d.ts +130 -0
- package/workflow/src/lib/activity/activity.types.js +8 -0
- package/workflow/src/lib/activity/activity.types.js.map +1 -0
- package/workflow/src/lib/authorization/platform-root-user.util.d.ts +1 -0
- package/workflow/src/lib/authorization/platform-root-user.util.js +16 -0
- package/workflow/src/lib/authorization/platform-root-user.util.js.map +1 -0
- package/workflow/src/lib/jobs/workflow-job-dispatcher.service.d.ts +20 -0
- package/workflow/src/lib/jobs/workflow-job-dispatcher.service.js +59 -0
- package/workflow/src/lib/jobs/workflow-job-dispatcher.service.js.map +1 -0
- package/workflow/src/lib/jobs/workflow-jobs.constants.d.ts +2 -0
- package/workflow/src/lib/jobs/workflow-jobs.constants.js +8 -0
- package/workflow/src/lib/jobs/workflow-jobs.constants.js.map +1 -0
- package/workflow/src/lib/jobs/workflow-jobs.module.d.ts +9 -0
- package/workflow/src/lib/jobs/workflow-jobs.module.js +53 -0
- package/workflow/src/lib/jobs/workflow-jobs.module.js.map +1 -0
- package/workflow/src/lib/jobs/workflow-maintenance.scheduler.d.ts +10 -0
- package/workflow/src/lib/jobs/workflow-maintenance.scheduler.js +43 -0
- package/workflow/src/lib/jobs/workflow-maintenance.scheduler.js.map +1 -0
- package/workflow/src/lib/jobs/workflow-redis.config.d.ts +6 -0
- package/workflow/src/lib/jobs/workflow-redis.config.js +18 -0
- package/workflow/src/lib/jobs/workflow-redis.config.js.map +1 -0
- package/workflow/src/lib/jobs/workflow-start-job.types.d.ts +6 -0
- package/workflow/src/lib/jobs/workflow-start-job.types.js +4 -0
- package/workflow/src/lib/jobs/workflow-start-job.types.js.map +1 -0
- package/workflow/src/lib/jobs/workflow-start.processor.d.ts +10 -0
- package/workflow/src/lib/jobs/workflow-start.processor.js +31 -0
- package/workflow/src/lib/jobs/workflow-start.processor.js.map +1 -0
- package/workflow/src/lib/middlewares/automation-command.middleware.d.ts +13 -0
- package/workflow/src/lib/middlewares/automation-command.middleware.js +38 -0
- package/workflow/src/lib/middlewares/automation-command.middleware.js.map +1 -0
- package/workflow/src/lib/middlewares/document-workflow-trigger.middleware.d.ts +17 -0
- package/workflow/src/lib/middlewares/document-workflow-trigger.middleware.js +104 -0
- package/workflow/src/lib/middlewares/document-workflow-trigger.middleware.js.map +1 -0
- package/workflow/src/lib/middlewares/workflow-trigger-guard.d.ts +2 -0
- package/workflow/src/lib/middlewares/workflow-trigger-guard.js +16 -0
- package/workflow/src/lib/middlewares/workflow-trigger-guard.js.map +1 -0
- package/workflow/src/lib/middlewares/workflow-trigger.middleware.d.ts +18 -0
- package/workflow/src/lib/middlewares/workflow-trigger.middleware.js +190 -0
- package/workflow/src/lib/middlewares/workflow-trigger.middleware.js.map +1 -0
- package/workflow/src/lib/runtime/entity-workflow-info.sync.d.ts +14 -0
- package/workflow/src/lib/runtime/entity-workflow-info.sync.js +43 -0
- package/workflow/src/lib/runtime/entity-workflow-info.sync.js.map +1 -0
- package/workflow/src/lib/runtime/jql-workflow-execution-store.service.d.ts +27 -0
- package/workflow/src/lib/runtime/jql-workflow-execution-store.service.js +212 -0
- package/workflow/src/lib/runtime/jql-workflow-execution-store.service.js.map +1 -0
- package/workflow/src/lib/runtime/platform-core.types.d.ts +18 -0
- package/workflow/src/lib/runtime/platform-core.types.js +5 -0
- package/workflow/src/lib/runtime/platform-core.types.js.map +1 -0
- package/workflow/src/lib/runtime/record-workflow-info.util.d.ts +12 -0
- package/workflow/src/lib/runtime/record-workflow-info.util.js +14 -0
- package/workflow/src/lib/runtime/record-workflow-info.util.js.map +1 -0
- package/workflow/src/lib/runtime/workflow-activity-definition.service.d.ts +8 -0
- package/workflow/src/lib/runtime/workflow-activity-definition.service.js +45 -0
- package/workflow/src/lib/runtime/workflow-activity-definition.service.js.map +1 -0
- package/workflow/src/lib/runtime/workflow-definition.types.d.ts +164 -0
- package/workflow/src/lib/runtime/workflow-definition.types.js +4 -0
- package/workflow/src/lib/runtime/workflow-definition.types.js.map +1 -0
- package/workflow/src/lib/runtime/workflow-engine.errors.d.ts +28 -0
- package/workflow/src/lib/runtime/workflow-engine.errors.js +51 -0
- package/workflow/src/lib/runtime/workflow-engine.errors.js.map +1 -0
- package/workflow/src/lib/runtime/workflow-engine.service.d.ts +373 -0
- package/workflow/src/lib/runtime/workflow-engine.service.js +2922 -0
- package/workflow/src/lib/runtime/workflow-engine.service.js.map +1 -0
- package/workflow/src/lib/runtime/workflow-execution-store.service.d.ts +35 -0
- package/workflow/src/lib/runtime/workflow-execution-store.service.js +57 -0
- package/workflow/src/lib/runtime/workflow-execution-store.service.js.map +1 -0
- package/workflow/src/lib/runtime/workflow-expression-evaluator.service.d.ts +7 -0
- package/workflow/src/lib/runtime/workflow-expression-evaluator.service.js +80 -0
- package/workflow/src/lib/runtime/workflow-expression-evaluator.service.js.map +1 -0
- package/workflow/src/lib/runtime/workflow-expression-scope.service.d.ts +101 -0
- package/workflow/src/lib/runtime/workflow-expression-scope.service.js +214 -0
- package/workflow/src/lib/runtime/workflow-expression-scope.service.js.map +1 -0
- package/workflow/src/lib/runtime/workflow-instance.types.d.ts +374 -0
- package/workflow/src/lib/runtime/workflow-instance.types.js +8 -0
- package/workflow/src/lib/runtime/workflow-instance.types.js.map +1 -0
- package/workflow/src/lib/runtime/workflow-management.const.d.ts +6 -0
- package/workflow/src/lib/runtime/workflow-management.const.js +12 -0
- package/workflow/src/lib/runtime/workflow-management.const.js.map +1 -0
- package/workflow/src/lib/runtime/workflow-runtime.types.d.ts +263 -0
- package/workflow/src/lib/runtime/workflow-runtime.types.js +15 -0
- package/workflow/src/lib/runtime/workflow-runtime.types.js.map +1 -0
- package/workflow/src/lib/utils/multilanguage.util.d.ts +2 -0
- package/workflow/src/lib/utils/multilanguage.util.js +21 -0
- package/workflow/src/lib/utils/multilanguage.util.js.map +1 -0
- package/workflow/src/lib/utils/uuid.util.d.ts +1 -0
- package/workflow/src/lib/utils/uuid.util.js +10 -0
- package/workflow/src/lib/utils/uuid.util.js.map +1 -0
- package/workflow/src/lib/workflow.module.d.ts +2 -0
- package/workflow/src/lib/workflow.module.js +92 -0
- package/workflow/src/lib/workflow.module.js.map +1 -0
|
@@ -0,0 +1,281 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DomainEntityValidator = exports.DomainEntityValidationError = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const common_1 = require("@nestjs/common");
|
|
6
|
+
class DomainEntityValidationError extends Error {
|
|
7
|
+
constructor(message, errors = [], code = 'VALIDATION_ERROR', status = 400) {
|
|
8
|
+
super(message);
|
|
9
|
+
this.errors = errors;
|
|
10
|
+
this.code = code;
|
|
11
|
+
this.status = status;
|
|
12
|
+
this.name = 'DomainEntityValidationError';
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
exports.DomainEntityValidationError = DomainEntityValidationError;
|
|
16
|
+
let DomainEntityValidator = class DomainEntityValidator {
|
|
17
|
+
constructor(loader) {
|
|
18
|
+
this.loader = loader;
|
|
19
|
+
this.validationCatalog = null;
|
|
20
|
+
}
|
|
21
|
+
/** Validates seed/create payloads against domain entity definitions. */
|
|
22
|
+
async validateForCreate(entityName, data, backend) {
|
|
23
|
+
await this.validateMutation({
|
|
24
|
+
op: 'create',
|
|
25
|
+
entityName,
|
|
26
|
+
data,
|
|
27
|
+
backend,
|
|
28
|
+
skipWhenDefinitionMissing: false,
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
/** Validates REST create/update payloads against domain entity definitions. */
|
|
32
|
+
async validateMutation(options) {
|
|
33
|
+
if (!this.loader) {
|
|
34
|
+
if (options.skipWhenDefinitionMissing) {
|
|
35
|
+
return;
|
|
36
|
+
}
|
|
37
|
+
throw new DomainEntityValidationError('Domain definition loader is not configured.', [], 'LOADER_NOT_CONFIGURED', 500);
|
|
38
|
+
}
|
|
39
|
+
const parts = options.entityName.split('.');
|
|
40
|
+
const moduleName = parts[0] ?? '';
|
|
41
|
+
const entityPath = parts.slice(1).join('.') || (parts[0] ?? '');
|
|
42
|
+
const entityDefinition = await this.resolveEntityDefinition(moduleName, entityPath);
|
|
43
|
+
if (!entityDefinition?.fields?.length) {
|
|
44
|
+
if (options.skipWhenDefinitionMissing) {
|
|
45
|
+
return;
|
|
46
|
+
}
|
|
47
|
+
throw new DomainEntityValidationError(`Entity "${options.entityName}" not found in domain definitions. Seed definitions manually before seeding data.`, [], 'ENTITY_NOT_FOUND', 404);
|
|
48
|
+
}
|
|
49
|
+
const catalog = await this.loadValidationCatalog();
|
|
50
|
+
const fields = entityDefinition.fields;
|
|
51
|
+
const errors = [];
|
|
52
|
+
if (options.op === 'update' && options.id) {
|
|
53
|
+
const previous = await options.backend.getOne(options.entityName, options.id).catch(() => null);
|
|
54
|
+
const merged = {
|
|
55
|
+
...(previous ?? {}),
|
|
56
|
+
...options.data,
|
|
57
|
+
};
|
|
58
|
+
errors.push(...validateEntityData(merged, fields, catalog));
|
|
59
|
+
}
|
|
60
|
+
else {
|
|
61
|
+
errors.push(...validateEntityData(options.data, fields, catalog));
|
|
62
|
+
}
|
|
63
|
+
if (errors.length) {
|
|
64
|
+
throw new DomainEntityValidationError(`Entity "${options.entityName}" validation failed: ${errors.join(' | ')}`, errors);
|
|
65
|
+
}
|
|
66
|
+
const existing = options.op === 'update' && options.id
|
|
67
|
+
? await options.backend.getOne(options.entityName, options.id).catch(() => null)
|
|
68
|
+
: null;
|
|
69
|
+
const dataForUnique = existing != null
|
|
70
|
+
? { ...existing, ...options.data }
|
|
71
|
+
: options.data;
|
|
72
|
+
for (const field of fields) {
|
|
73
|
+
const hasUnique = field.validations?.some((rule) => rule.rule === 'unique' && shouldRunOnServer(rule, catalog));
|
|
74
|
+
if (!hasUnique) {
|
|
75
|
+
continue;
|
|
76
|
+
}
|
|
77
|
+
const uniqueError = await validateUniqueField(options.entityName, field.name, field.title ?? field.name, dataForUnique, options.backend, options.op === 'update' ? options.id : undefined);
|
|
78
|
+
if (uniqueError) {
|
|
79
|
+
throw uniqueError;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
async resolveEntityDefinition(moduleName, entityName) {
|
|
84
|
+
if (!this.loader) {
|
|
85
|
+
return null;
|
|
86
|
+
}
|
|
87
|
+
const storageLoader = this.loader;
|
|
88
|
+
if (storageLoader.resolveEntityForStorage) {
|
|
89
|
+
const definition = await storageLoader.resolveEntityForStorage(moduleName, entityName);
|
|
90
|
+
if (definition) {
|
|
91
|
+
return definition;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
const path = entityName.includes('.') ? entityName : `${moduleName}.${entityName}`;
|
|
95
|
+
const definition = await this.loader.loadEntity(path);
|
|
96
|
+
if (definition?.fields?.length) {
|
|
97
|
+
return definition;
|
|
98
|
+
}
|
|
99
|
+
return null;
|
|
100
|
+
}
|
|
101
|
+
async loadValidationCatalog() {
|
|
102
|
+
if (this.validationCatalog) {
|
|
103
|
+
return this.validationCatalog;
|
|
104
|
+
}
|
|
105
|
+
const catalog = new Map();
|
|
106
|
+
if (!this.loader) {
|
|
107
|
+
this.validationCatalog = catalog;
|
|
108
|
+
return catalog;
|
|
109
|
+
}
|
|
110
|
+
const rules = await this.loader.loadValidationRules();
|
|
111
|
+
for (const rule of rules) {
|
|
112
|
+
if (typeof rule.rule === 'string') {
|
|
113
|
+
catalog.set(rule.rule, rule);
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
this.validationCatalog = catalog;
|
|
117
|
+
return catalog;
|
|
118
|
+
}
|
|
119
|
+
};
|
|
120
|
+
exports.DomainEntityValidator = DomainEntityValidator;
|
|
121
|
+
exports.DomainEntityValidator = DomainEntityValidator = tslib_1.__decorate([
|
|
122
|
+
(0, common_1.Injectable)(),
|
|
123
|
+
tslib_1.__param(0, (0, common_1.Optional)()),
|
|
124
|
+
tslib_1.__metadata("design:paramtypes", [Object])
|
|
125
|
+
], DomainEntityValidator);
|
|
126
|
+
//#endregion
|
|
127
|
+
//#region ---- Validation helpers ----
|
|
128
|
+
function shouldRunOnServer(rule, catalog) {
|
|
129
|
+
const meta = catalog.get(rule.rule);
|
|
130
|
+
if (!meta?.runAt) {
|
|
131
|
+
return true;
|
|
132
|
+
}
|
|
133
|
+
return meta.runAt === 'server' || meta.runAt === 'both';
|
|
134
|
+
}
|
|
135
|
+
function getDisplayLabel(field) {
|
|
136
|
+
const title = field.title ?? field.name;
|
|
137
|
+
if (typeof title === 'string' &&
|
|
138
|
+
(title.startsWith('@') || title.includes('t("') || title.includes("t('"))) {
|
|
139
|
+
return field.name;
|
|
140
|
+
}
|
|
141
|
+
return title;
|
|
142
|
+
}
|
|
143
|
+
function getEntityShortLabel(entityName) {
|
|
144
|
+
const parts = entityName.split('.');
|
|
145
|
+
return parts[parts.length - 1] || entityName;
|
|
146
|
+
}
|
|
147
|
+
function normalizeFieldLabel(rawTitle, fieldName) {
|
|
148
|
+
let base;
|
|
149
|
+
if (typeof rawTitle === 'string') {
|
|
150
|
+
if (rawTitle.startsWith('@') || rawTitle.includes('t("') || rawTitle.includes("t('")) {
|
|
151
|
+
base = fieldName;
|
|
152
|
+
}
|
|
153
|
+
else {
|
|
154
|
+
base = rawTitle;
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
else {
|
|
158
|
+
base = fieldName;
|
|
159
|
+
}
|
|
160
|
+
const last = base.split('.').pop() ?? base;
|
|
161
|
+
const clean = last.replace(/[_-]+/g, ' ').trim();
|
|
162
|
+
if (!clean) {
|
|
163
|
+
return fieldName;
|
|
164
|
+
}
|
|
165
|
+
return clean.charAt(0).toUpperCase() + clean.slice(1);
|
|
166
|
+
}
|
|
167
|
+
function validateEntityData(data, fields, catalog) {
|
|
168
|
+
const errors = [];
|
|
169
|
+
if (!data || typeof data !== 'object') {
|
|
170
|
+
return ['Invalid data'];
|
|
171
|
+
}
|
|
172
|
+
for (const field of fields) {
|
|
173
|
+
const value = getNestedValue(data, field.name);
|
|
174
|
+
const hasValue = value !== undefined && value !== null;
|
|
175
|
+
const strVal = typeof value === 'string' ? value.trim() : String(value ?? '');
|
|
176
|
+
const label = getDisplayLabel(field);
|
|
177
|
+
for (const validation of field.validations ?? []) {
|
|
178
|
+
if (!shouldRunOnServer(validation, catalog)) {
|
|
179
|
+
continue;
|
|
180
|
+
}
|
|
181
|
+
if (validation.rule === 'required') {
|
|
182
|
+
if (!hasValue || (typeof value === 'string' && strVal === '')) {
|
|
183
|
+
errors.push(`${label} is required`);
|
|
184
|
+
break;
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
else if (validation.rule === 'at-least-one-of') {
|
|
188
|
+
const paths = validation.options?.paths ?? [];
|
|
189
|
+
const customMessage = validation.options?.message;
|
|
190
|
+
const anySet = paths.some((path) => hasMeaningfulValueAtPath(data, path));
|
|
191
|
+
if (!anySet) {
|
|
192
|
+
errors.push(customMessage ?? `${label}: at least one of ${paths.join(', ')} must be set`);
|
|
193
|
+
}
|
|
194
|
+
break;
|
|
195
|
+
}
|
|
196
|
+
else if (validation.rule === 'minLength' && hasValue) {
|
|
197
|
+
const min = validation.options?.value ??
|
|
198
|
+
validation.options?.minLength;
|
|
199
|
+
if (min != null && strVal.length < min) {
|
|
200
|
+
errors.push(`${label} must be at least ${min} characters`);
|
|
201
|
+
break;
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
else if (validation.rule === 'maxLength' && hasValue) {
|
|
205
|
+
const max = validation.options?.value ??
|
|
206
|
+
validation.options?.maxLength;
|
|
207
|
+
if (max != null && strVal.length > max) {
|
|
208
|
+
errors.push(`${label} must be at most ${max} characters`);
|
|
209
|
+
break;
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
else if (validation.rule === 'email' && hasValue) {
|
|
213
|
+
if (!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(strVal)) {
|
|
214
|
+
errors.push(`${label} must be a valid email`);
|
|
215
|
+
break;
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
return errors;
|
|
221
|
+
}
|
|
222
|
+
async function validateUniqueField(entityName, fieldName, fieldTitle, data, backend, excludeId) {
|
|
223
|
+
const value = getNestedValue(data, fieldName);
|
|
224
|
+
if (value === undefined) {
|
|
225
|
+
return null;
|
|
226
|
+
}
|
|
227
|
+
const filters = [
|
|
228
|
+
{ field: fieldName, operator: { type: 'equal' }, value },
|
|
229
|
+
];
|
|
230
|
+
if (excludeId) {
|
|
231
|
+
filters.push({ field: 'id', operator: { type: 'notEqual' }, value: excludeId });
|
|
232
|
+
}
|
|
233
|
+
const result = await backend.query(entityName, {
|
|
234
|
+
filter: { field: null, logic: 'and', operator: null, filters },
|
|
235
|
+
skip: 0,
|
|
236
|
+
take: 1,
|
|
237
|
+
});
|
|
238
|
+
if (result.items?.length) {
|
|
239
|
+
const entityLabel = getEntityShortLabel(entityName);
|
|
240
|
+
const fieldLabel = normalizeFieldLabel(fieldTitle, fieldName);
|
|
241
|
+
return new DomainEntityValidationError(`The value for field "${fieldLabel}" of "${entityLabel}" already exists and must be unique.`, [], 'UNIQUE_FIELD_VIOLATION', 409);
|
|
242
|
+
}
|
|
243
|
+
return null;
|
|
244
|
+
}
|
|
245
|
+
function getNestedValue(obj, path) {
|
|
246
|
+
let current = obj;
|
|
247
|
+
for (const part of path.split('.')) {
|
|
248
|
+
if (current == null || typeof current !== 'object') {
|
|
249
|
+
return undefined;
|
|
250
|
+
}
|
|
251
|
+
current = current[part];
|
|
252
|
+
}
|
|
253
|
+
return current;
|
|
254
|
+
}
|
|
255
|
+
function hasMeaningfulValueAtPath(data, path) {
|
|
256
|
+
const value = getNestedValue(data, path);
|
|
257
|
+
if (value === undefined || value === null) {
|
|
258
|
+
return false;
|
|
259
|
+
}
|
|
260
|
+
if (typeof value === 'string') {
|
|
261
|
+
return value.trim() !== '';
|
|
262
|
+
}
|
|
263
|
+
if (typeof value === 'number') {
|
|
264
|
+
return !Number.isNaN(value);
|
|
265
|
+
}
|
|
266
|
+
if (typeof value === 'object' && value !== null && 'id' in value) {
|
|
267
|
+
const id = value.id;
|
|
268
|
+
if (id === undefined || id === null) {
|
|
269
|
+
return false;
|
|
270
|
+
}
|
|
271
|
+
if (typeof id === 'string') {
|
|
272
|
+
return id.trim() !== '';
|
|
273
|
+
}
|
|
274
|
+
if (typeof id === 'number') {
|
|
275
|
+
return !Number.isNaN(id);
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
return false;
|
|
279
|
+
}
|
|
280
|
+
//#endregion
|
|
281
|
+
//# sourceMappingURL=domain-entity.validator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"domain-entity.validator.js","sourceRoot":"","sources":["../../../../../../../../../libs/framework/server/domain/providers/src/lib/validators/domain-entity.validator.ts"],"names":[],"mappings":";;;;AAAA,2CAAsD;AA2BtD,MAAa,2BAA4B,SAAQ,KAAK;IACpD,YACE,OAAe,EACN,SAAmB,EAAE,EACrB,OAAO,kBAAk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K,CAAC;IACf,CAAC;IACD,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;QAC9B,OAAO,KAAK,CAAC,IAAI,EAAE,KAAK,EAAE,CAAC;IAC7B,CAAC;IACD,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;QAC9B,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;IAC9B,CAAC;IACD,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,IAAI,IAAI,IAAI,IAAI,KAAK,EAAE,CAAC;QACjE,MAAM,EAAE,GAAI,KAA0B,CAAC,EAAE,CAAC;QAC1C,IAAI,EAAE,KAAK,SAAS,IAAI,EAAE,KAAK,IAAI,EAAE,CAAC;YACpC,OAAO,KAAK,CAAC;QACf,CAAC;QACD,IAAI,OAAO,EAAE,KAAK,QAAQ,EAAE,CAAC;YAC3B,OAAO,EAAE,CAAC,IAAI,EAAE,KAAK,EAAE,CAAC;QAC1B,CAAC;QACD,IAAI,OAAO,EAAE,KAAK,QAAQ,EAAE,CAAC;YAC3B,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;QAC3B,CAAC;IACH,CAAC;IACD,OAAO,KAAK,CAAC;AACf,CAAC;AAED,YAAY"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@acorex-platform/framework-server/domain/seed",
|
|
3
|
+
"version": "0.0.0-ACOREX",
|
|
4
|
+
"private": true,
|
|
5
|
+
"type": "commonjs",
|
|
6
|
+
"main": "./src/index.js",
|
|
7
|
+
"types": "./src/index.d.ts",
|
|
8
|
+
"dependencies": {
|
|
9
|
+
"tslib": "^2.3.0"
|
|
10
|
+
},
|
|
11
|
+
"peerDependencies": {
|
|
12
|
+
"@acorex-platform/framework-server/domain/abstract": "0.0.0-ACOREX",
|
|
13
|
+
"@acorex-platform/framework-server/domain/providers": "0.0.0-ACOREX",
|
|
14
|
+
"@acorex-platform/framework-server/jql/seed": "0.0.0-ACOREX",
|
|
15
|
+
"@acorex-platform/framework-shared/core": "0.0.1"
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
tslib_1.__exportStar(require("./lib/domain-seed.types"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./lib/collect-entity-factories.util"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("./lib/axp-entity-to-definition.converter"), exports);
|
|
7
|
+
tslib_1.__exportStar(require("./lib/category-companion-entity.builder"), exports);
|
|
8
|
+
tslib_1.__exportStar(require("./lib/domain-definition-seed.provider"), exports);
|
|
9
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../libs/framework/server/domain/seed/src/index.ts"],"names":[],"mappings":";;;AAAA,kEAAwC;AACxC,8EAAoD;AACpD,mFAAyD;AACzD,kFAAwD;AACxD,gFAAsD"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type AXPEntityDefinition } from '@acorex-platform/framework-server/domain/abstract';
|
|
2
|
+
import type { AXPEntity } from '@acorex-platform/framework-shared/entity';
|
|
3
|
+
/**
|
|
4
|
+
* Maps a layout {@link AXPEntity} (module `*.entity.ts` factories) to a domain
|
|
5
|
+
* {@link AXPEntityDefinition} stored in the entity-definition JQL `entities` store.
|
|
6
|
+
*/
|
|
7
|
+
export declare function axpEntityToEntityDefinition(entity: AXPEntity): AXPEntityDefinition;
|
|
8
|
+
/** Builds the domain-definition store row for one entity. */
|
|
9
|
+
export declare function buildDomainEntityStoreRecord(entity: AXPEntity): Record<string, unknown>;
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.axpEntityToEntityDefinition = axpEntityToEntityDefinition;
|
|
4
|
+
exports.buildDomainEntityStoreRecord = buildDomainEntityStoreRecord;
|
|
5
|
+
const abstract_1 = require("@acorex-platform/framework-server/domain/abstract");
|
|
6
|
+
//#region ---- AXPEntity → AXPEntityDefinition ----
|
|
7
|
+
/**
|
|
8
|
+
* Maps a layout {@link AXPEntity} (module `*.entity.ts` factories) to a domain
|
|
9
|
+
* {@link AXPEntityDefinition} stored in the entity-definition JQL `entities` store.
|
|
10
|
+
*/
|
|
11
|
+
function axpEntityToEntityDefinition(entity) {
|
|
12
|
+
return {
|
|
13
|
+
name: entity.name,
|
|
14
|
+
title: entity.title,
|
|
15
|
+
module: entity.module,
|
|
16
|
+
type: abstract_1.AXPEntityType.Entity,
|
|
17
|
+
icon: entity.icon,
|
|
18
|
+
plugins: entity.plugins,
|
|
19
|
+
groups: entity.groups,
|
|
20
|
+
columns: entity.columns?.map((column) => typeof column === 'string' ? { name: column } : { name: column.name }),
|
|
21
|
+
formats: entity.formats,
|
|
22
|
+
fields: entity.properties.map(propertyToField),
|
|
23
|
+
relatedEntities: entity.relatedEntities,
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
function propertyToField(property) {
|
|
27
|
+
const widgetType = property.schema.interface?.type ?? 'text-editor';
|
|
28
|
+
const interfaceOptions = property.schema.interface?.options;
|
|
29
|
+
const field = {
|
|
30
|
+
name: property.name,
|
|
31
|
+
title: property.title,
|
|
32
|
+
description: property.description,
|
|
33
|
+
dataType: property.schema.dataType,
|
|
34
|
+
interface: {
|
|
35
|
+
name: String(widgetType),
|
|
36
|
+
title: property.title,
|
|
37
|
+
...(interfaceOptions ? { options: interfaceOptions } : {}),
|
|
38
|
+
},
|
|
39
|
+
validations: property.validations,
|
|
40
|
+
fieldFeatures: {
|
|
41
|
+
nullable: property.schema.nullable ?? true,
|
|
42
|
+
readOnly: Boolean(property.schema.readonly),
|
|
43
|
+
},
|
|
44
|
+
};
|
|
45
|
+
if (property.groupId) {
|
|
46
|
+
field.groupId = property.groupId;
|
|
47
|
+
}
|
|
48
|
+
if (property.options) {
|
|
49
|
+
field.options = property.options;
|
|
50
|
+
}
|
|
51
|
+
return field;
|
|
52
|
+
}
|
|
53
|
+
/** Builds the domain-definition store row for one entity. */
|
|
54
|
+
function buildDomainEntityStoreRecord(entity) {
|
|
55
|
+
const entityFullName = `${entity.module}.${entity.name}`;
|
|
56
|
+
return {
|
|
57
|
+
id: entityFullName,
|
|
58
|
+
name: entity.name,
|
|
59
|
+
module_id: entity.module,
|
|
60
|
+
definition: axpEntityToEntityDefinition(entity),
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
//#endregion
|
|
64
|
+
//# sourceMappingURL=axp-entity-to-definition.converter.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"axp-entity-to-definition.converter.js","sourceRoot":"","sources":["../../../../../../../../libs/framework/server/domain/seed/src/lib/axp-entity-to-definition.converter.ts"],"names":[],"mappings":";;AAkBA,kEAgBC;AAuCD,oEASC;AAlFD,gFAK2D;AAO3D,mDAAmD;AAEnD;;;GAGG;AACH,SAAgB,2BAA2B,CAAC,MAAiB;IAC3D,OAAO;QACL,IAAI,EAAE,MAAM,CAAC,IAAI;QACjB,KAAK,EAAE,MAAM,CAAC,KAAK;QACnB,MAAM,EAAE,MAAM,CAAC,MAAM;QACrB,IAAI,EAAE,wBAAa,CAAC,MAAM;QAC1B,IAAI,EAAE,MAAM,CAAC,IAAI;QACjB,OAAO,EAAE,MAAM,CAAC,OAAO;QACvB,MAAM,EAAE,MAAM,CAAC,MAAM;QACrB,OAAO,EAAE,MAAM,CAAC,OAAO,EAAE,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CACtC,OAAO,MAAM,KAAK,QAAQ,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,MAAM,CAAC,IAAI,EAAE,CACtE;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D,SAAgB,4BAA4B,CAAC,MAAiB;IAC5D,MAAM,cAAc,GAAG,GAAG,MAAM,CAAC,MAAM,IAAI,MAAM,CAAC,IAAI,EAAE,CAAC;IAEzD,OAAO;QACL,EAAE,EAAE,cAAc;QAClB,IAAI,EAAE,MAAM,CAAC,IAAI;QACjB,SAAS,EAAE,MAAM,CAAC,MAAM;QACxB,UAAU,EAAE,2BAA2B,CAAC,MAAM,CAAC;KAChD,CAAC;AACJ,CAAC;AAED,YAAY"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { AXPEntity } from '@acorex-platform/framework-shared/entity';
|
|
2
|
+
/** Mirrors {@link AXPCategoryPluginOptions} on the client category plugin. */
|
|
3
|
+
export interface CategoryPluginOptions {
|
|
4
|
+
categoryEntity?: string;
|
|
5
|
+
propertyName?: string;
|
|
6
|
+
allowMultiple?: boolean;
|
|
7
|
+
textField?: string;
|
|
8
|
+
valueField?: string;
|
|
9
|
+
parentKey?: string;
|
|
10
|
+
readonly?: boolean;
|
|
11
|
+
appearance?: {
|
|
12
|
+
icon?: boolean;
|
|
13
|
+
color?: boolean;
|
|
14
|
+
};
|
|
15
|
+
metaData?: {
|
|
16
|
+
enabled: boolean;
|
|
17
|
+
title?: string;
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Builds the companion `{BaseEntity}Category` layout entity for domain-definition seeding.
|
|
22
|
+
* Mirrors client {@link AXMEntityCategoryProvider} (dynamic category entity generation).
|
|
23
|
+
*
|
|
24
|
+
* Returns `null` when:
|
|
25
|
+
* - base entity has no category plugin
|
|
26
|
+
* - `categoryEntity` option points to a custom entity defined elsewhere
|
|
27
|
+
*/
|
|
28
|
+
export declare function buildCategoryCompanionEntity(baseEntity: AXPEntity): AXPEntity | null;
|
|
29
|
+
/** Resolves companion category entity keys for all base entities (for diagnostics/tests). */
|
|
30
|
+
export declare function resolveCategoryCompanionEntityKeys(baseEntities: readonly AXPEntity[]): string[];
|
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.buildCategoryCompanionEntity = buildCategoryCompanionEntity;
|
|
4
|
+
exports.resolveCategoryCompanionEntityKeys = resolveCategoryCompanionEntityKeys;
|
|
5
|
+
const CATEGORY_PLUGIN_NAMES = new Set(['category', 'common.category']);
|
|
6
|
+
function isCategoryPlugin(plugin) {
|
|
7
|
+
const name = plugin.name?.trim() ?? '';
|
|
8
|
+
return CATEGORY_PLUGIN_NAMES.has(name) || name.endsWith('.category');
|
|
9
|
+
}
|
|
10
|
+
function readCategoryPlugin(baseEntity) {
|
|
11
|
+
const plugin = baseEntity.plugins?.find(isCategoryPlugin);
|
|
12
|
+
if (!plugin) {
|
|
13
|
+
return null;
|
|
14
|
+
}
|
|
15
|
+
return {
|
|
16
|
+
plugin,
|
|
17
|
+
options: (plugin.options ?? {}),
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
function resolveMetaDataBuilderTitle(baseEntity, options) {
|
|
21
|
+
const metaDataFormPlugin = baseEntity.plugins?.find((p) => p.name === 'meta-data-form');
|
|
22
|
+
const pluginTitle = metaDataFormPlugin?.options?.['title'];
|
|
23
|
+
if (typeof pluginTitle === 'string' && pluginTitle.trim().length > 0) {
|
|
24
|
+
return pluginTitle.trim();
|
|
25
|
+
}
|
|
26
|
+
const extensionTitle = baseEntity['extensions'];
|
|
27
|
+
const extEntry = extensionTitle?.metaDataForm
|
|
28
|
+
? Object.values(extensionTitle.metaDataForm).find((ext) => ext?.title?.trim())
|
|
29
|
+
: undefined;
|
|
30
|
+
if (extEntry?.title?.trim()) {
|
|
31
|
+
return extEntry.title.trim();
|
|
32
|
+
}
|
|
33
|
+
if (options.metaData?.title?.trim()) {
|
|
34
|
+
return options.metaData.title.trim();
|
|
35
|
+
}
|
|
36
|
+
return undefined;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Builds the companion `{BaseEntity}Category` layout entity for domain-definition seeding.
|
|
40
|
+
* Mirrors client {@link AXMEntityCategoryProvider} (dynamic category entity generation).
|
|
41
|
+
*
|
|
42
|
+
* Returns `null` when:
|
|
43
|
+
* - base entity has no category plugin
|
|
44
|
+
* - `categoryEntity` option points to a custom entity defined elsewhere
|
|
45
|
+
*/
|
|
46
|
+
function buildCategoryCompanionEntity(baseEntity) {
|
|
47
|
+
if (!baseEntity.module?.trim() || !baseEntity.name?.trim()) {
|
|
48
|
+
return null;
|
|
49
|
+
}
|
|
50
|
+
const categoryConfig = readCategoryPlugin(baseEntity);
|
|
51
|
+
if (!categoryConfig) {
|
|
52
|
+
return null;
|
|
53
|
+
}
|
|
54
|
+
const { options } = categoryConfig;
|
|
55
|
+
if (options.categoryEntity?.trim()) {
|
|
56
|
+
return null;
|
|
57
|
+
}
|
|
58
|
+
const categoryEntityName = `${baseEntity.name}Category`;
|
|
59
|
+
const categoryEntityKey = `${baseEntity.module}.${categoryEntityName}`;
|
|
60
|
+
const appearanceConfig = options.appearance;
|
|
61
|
+
const enableAppearance = appearanceConfig?.icon === true || appearanceConfig?.color === true;
|
|
62
|
+
const enableMetaDataSelector = options.metaData?.enabled === true;
|
|
63
|
+
const metaDataBuilderTitle = enableMetaDataSelector
|
|
64
|
+
? resolveMetaDataBuilderTitle(baseEntity, options)
|
|
65
|
+
: undefined;
|
|
66
|
+
const properties = [
|
|
67
|
+
{
|
|
68
|
+
name: 'title',
|
|
69
|
+
title: '@general:terms.common.title',
|
|
70
|
+
groupId: 'basic-info',
|
|
71
|
+
options: {
|
|
72
|
+
sort: { enabled: true },
|
|
73
|
+
filter: { advance: { enabled: true }, inline: { enabled: true } },
|
|
74
|
+
},
|
|
75
|
+
schema: { dataType: 'string', interface: { type: 'text-editor' } },
|
|
76
|
+
validations: [{ rule: 'required' }],
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
name: 'parentId',
|
|
80
|
+
title: '@general:terms.classification.parent',
|
|
81
|
+
groupId: 'basic-info',
|
|
82
|
+
schema: {
|
|
83
|
+
dataType: 'string',
|
|
84
|
+
interface: {
|
|
85
|
+
type: 'entity-category-editor',
|
|
86
|
+
options: { entity: categoryEntityKey },
|
|
87
|
+
},
|
|
88
|
+
},
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
name: 'description',
|
|
92
|
+
title: '@general:terms.common.description',
|
|
93
|
+
groupId: 'basic-info',
|
|
94
|
+
schema: { dataType: 'string', interface: { type: 'large-text-editor' } },
|
|
95
|
+
},
|
|
96
|
+
];
|
|
97
|
+
if (enableAppearance && appearanceConfig?.color !== false) {
|
|
98
|
+
properties.push({
|
|
99
|
+
name: 'color',
|
|
100
|
+
title: '@general:terms.common.color',
|
|
101
|
+
groupId: 'appearance',
|
|
102
|
+
schema: { dataType: 'string', interface: { type: 'color-palette-editor' } },
|
|
103
|
+
});
|
|
104
|
+
}
|
|
105
|
+
if (enableAppearance && appearanceConfig?.icon !== false) {
|
|
106
|
+
properties.push({
|
|
107
|
+
name: 'icon',
|
|
108
|
+
title: '@general:terms.common.icon',
|
|
109
|
+
groupId: 'appearance',
|
|
110
|
+
schema: { dataType: 'string', interface: { type: 'icon-chooser' } },
|
|
111
|
+
});
|
|
112
|
+
}
|
|
113
|
+
if (enableMetaDataSelector) {
|
|
114
|
+
properties.push({
|
|
115
|
+
name: 'metaDataList',
|
|
116
|
+
title: metaDataBuilderTitle ??
|
|
117
|
+
'@data-management:metadata-definitions.actions.configure-meta-data.title',
|
|
118
|
+
groupId: 'meta-data-config',
|
|
119
|
+
schema: {
|
|
120
|
+
dataType: 'object',
|
|
121
|
+
interface: { type: 'meta-data-builder-editor' },
|
|
122
|
+
},
|
|
123
|
+
});
|
|
124
|
+
}
|
|
125
|
+
return {
|
|
126
|
+
module: baseEntity.module,
|
|
127
|
+
name: categoryEntityName,
|
|
128
|
+
parentKey: options.parentKey?.trim() || 'parentId',
|
|
129
|
+
title: '@general:terms.classification.category',
|
|
130
|
+
formats: {
|
|
131
|
+
individual: '@general:terms.classification.category',
|
|
132
|
+
plural: '@general:terms.classification.categories',
|
|
133
|
+
searchResult: {
|
|
134
|
+
title: '{{ title }}',
|
|
135
|
+
description: '{{ module }}',
|
|
136
|
+
},
|
|
137
|
+
},
|
|
138
|
+
plugins: enableMetaDataSelector
|
|
139
|
+
? [
|
|
140
|
+
{
|
|
141
|
+
name: 'meta-data-builder',
|
|
142
|
+
...(metaDataBuilderTitle ? { options: { title: metaDataBuilderTitle } } : {}),
|
|
143
|
+
},
|
|
144
|
+
]
|
|
145
|
+
: [],
|
|
146
|
+
relatedEntities: [],
|
|
147
|
+
groups: [
|
|
148
|
+
{ id: 'basic-info', title: '@general:terms.interface.basic-info' },
|
|
149
|
+
...(enableAppearance
|
|
150
|
+
? [{ id: 'appearance', title: '@general:terms.interface.appearance' }]
|
|
151
|
+
: []),
|
|
152
|
+
...(enableMetaDataSelector
|
|
153
|
+
? [
|
|
154
|
+
{
|
|
155
|
+
id: 'meta-data-config',
|
|
156
|
+
title: metaDataBuilderTitle ??
|
|
157
|
+
'@data-management:metadata-definitions.actions.configure-meta-data.title',
|
|
158
|
+
},
|
|
159
|
+
]
|
|
160
|
+
: []),
|
|
161
|
+
],
|
|
162
|
+
properties,
|
|
163
|
+
columns: [{ name: 'title' }, { name: 'description' }],
|
|
164
|
+
};
|
|
165
|
+
}
|
|
166
|
+
/** Resolves companion category entity keys for all base entities (for diagnostics/tests). */
|
|
167
|
+
function resolveCategoryCompanionEntityKeys(baseEntities) {
|
|
168
|
+
const keys = [];
|
|
169
|
+
for (const entity of baseEntities) {
|
|
170
|
+
const companion = buildCategoryCompanionEntity(entity);
|
|
171
|
+
if (companion) {
|
|
172
|
+
keys.push(`${companion.module}.${companion.name}`);
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
return keys;
|
|
176
|
+
}
|
|
177
|
+
//#endregion
|
|
178
|
+
//# sourceMappingURL=category-companion-entity.builder.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"category-companion-entity.builder.js","sourceRoot":"","sources":["../../../../../../../../libs/framework/server/domain/seed/src/lib/category-companion-entity.builder.ts"],"names":[],"mappings":";;AA+EA,oEAmIC;AAGD,gFAWC;AAvMD,MAAM,qBAAqB,GAAG,IAAI,GAAG,CAAC,CAAC,UAAU,EAAE,iBAAiB,CAAC,CAAC,CAAC;AAEvE,SAAS,gBAAgB,CAAC,MAAuB;IAC/C,MAAM,IAAI,GAAG,MAAM,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IACvC,OAAO,qBAAqB,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,IAAI,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC;AACvE,CAAC;AAED,SAAS,kBAAkB,CAAC,UAAqB;IAI/C,MAAM,MAAM,GAAG,UAAU,CAAC,OAAO,EAAE,IAAI,CAAC,gBAAgB,CAAC,CAAC;IAC1D,IAAI,CAAC,MAAM,EAAE,CAAC;QACZ,OAAO,IAAI,CAAC;IACd,CAAC;IAED,OAAO;QACL,MAAM;QACN,OAAO,EAAE,CAAC,MAAM,CAAC,OAAO,IAAI,EAAE,CAA0B;KACzD,CAAC;AACJ,CAAC;AAED,SAAS,2BAA2B,CAAC,UAAqB,EAAE,OAA8B;IACxF,MAAM,kBAAkB,GAAG,UAAU,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,KAAK,gBAAgB,CAAC,CAAC;IACxF,MAAM,WAAW,GAAG,kBAAkB,EAAE,OAAO,EAAE,CAAC,OAAO,CAAC,CAAC;IAC3D,IAAI,OAAO,WAAW,KAAK,QAAQ,IAAI,WAAW,CAAC,IAAI,EAAE,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QACrE,OAAO,WAAW,CAAC,IAAI,EAAE,CAAC;IAC5B,CAAC;IAED,MAAM,cAAc,GAAI,UAAiD,CAAC,YAAY,CAEzE,CAAC;IACd,MAA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,CAAC,oBAAoB,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,EAAE,KAAK,EAAE,oBAAoB,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;iBAC9E;aACF;YACH,CAAC,CAAC,EAAE;QACN,eAAe,EAAE,EAAE;QACnB,MAAM,EAAE;YACN,EAAE,EAAE,EAAE,YAAY,EAAE,KAAK,EAAE,qCAAqC,EAAE;YAClE,GAAG,CAAC,gBAAgB;gBAClB,CAAC,CAAC,CAAC,EAAE,EAAE,EAAE,YAAY,EAAE,KAAK,EAAE,qCAAqC,EAAE,CAAC;gBACtE,CAAC,CAAC,EAAE,CAAC;YACP,GAAG,CAAC,sBAAsB;gBACxB,CAAC,CAAC;oBACE;wBACE,EAAE,EAAE,kBAAkB;wBACtB,KAAK,EACH,oBAAoB;4BACpB,yEAAyE;qBAC5E;iBACF;gBACH,CAAC,CAAC,EAAE,CAAC;SACR;QACD,UAAU;QACV,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,aAAa,EAAE,CAAC;KACtD,CAAC;AACJ,CAAC;AAED,6FAA6F;AAC7F,SAAgB,kCAAkC,CAAC,YAAkC;IACnF,MAAM,IAAI,GAAa,EAAE,CAAC;IAE1B,KAAK,MAAM,MAAM,IAAI,YAAY,EAAE,CAAC;QAClC,MAAM,SAAS,GAAG,4BAA4B,CAAC,MAAM,CAAC,CAAC;QACvD,IAAI,SAAS,EAAE,CAAC;YACd,IAAI,CAAC,IAAI,CAAC,GAAG,SAAS,CAAC,MAAM,IAAI,SAAS,CAAC,IAAI,EAAE,CAAC,CAAC;QACrD,CAAC;IACH,CAAC;IAED,OAAO,IAAI,CAAC;AACd,CAAC;AAED,YAAY"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { AXPDomainEntityFactory } from './domain-seed.types';
|
|
2
|
+
/**
|
|
3
|
+
* Collects async entity factory functions from a domain package namespace export.
|
|
4
|
+
* Matches exported zero-arg functions whose name contains `Factory` (any casing),
|
|
5
|
+
* e.g. `localesFactory`, `tenantEntityFactory`, `factoryAssessmentCase`.
|
|
6
|
+
*/
|
|
7
|
+
export declare function collectEntityFactories(moduleExports: Record<string, unknown>): AXPDomainEntityFactory[];
|