@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,14 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@acorex-platform/framework-server/file-storage/domain",
|
|
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-shared": "0.0.0-ACOREX"
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './lib';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../libs/framework/server/file-storage/domain/src/index.ts"],"names":[],"mappings":";;;AAAA,gDAAsB"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export declare const RootConfig: {
|
|
2
|
+
readonly config: {
|
|
3
|
+
readonly i18n: "file-storage";
|
|
4
|
+
readonly module: "FileStorage";
|
|
5
|
+
};
|
|
6
|
+
readonly module: {
|
|
7
|
+
readonly module: "file-storage";
|
|
8
|
+
readonly name: "FileStorage";
|
|
9
|
+
readonly title: "@file-storage:module.title";
|
|
10
|
+
readonly icon: "fa-light fa-file-arrow-up";
|
|
11
|
+
};
|
|
12
|
+
readonly entities: {
|
|
13
|
+
readonly file: {
|
|
14
|
+
readonly name: "file";
|
|
15
|
+
readonly source: "FileStorage.File";
|
|
16
|
+
readonly title: "@file-storage:entities.file.title";
|
|
17
|
+
readonly titlePlural: "@file-storage:entities.file.plural";
|
|
18
|
+
readonly icon: "fa-light fa-file";
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RootConfig = void 0;
|
|
4
|
+
const config = {
|
|
5
|
+
i18n: 'file-storage',
|
|
6
|
+
module: 'FileStorage',
|
|
7
|
+
};
|
|
8
|
+
exports.RootConfig = {
|
|
9
|
+
config,
|
|
10
|
+
module: {
|
|
11
|
+
module: 'file-storage',
|
|
12
|
+
name: config.module,
|
|
13
|
+
title: `@${config.i18n}:module.title`,
|
|
14
|
+
icon: 'fa-light fa-file-arrow-up',
|
|
15
|
+
},
|
|
16
|
+
entities: {
|
|
17
|
+
file: {
|
|
18
|
+
name: 'file',
|
|
19
|
+
source: `${config.module}.File`,
|
|
20
|
+
title: `@${config.i18n}:entities.file.title`,
|
|
21
|
+
titlePlural: `@${config.i18n}:entities.file.plural`,
|
|
22
|
+
icon: 'fa-light fa-file',
|
|
23
|
+
},
|
|
24
|
+
},
|
|
25
|
+
};
|
|
26
|
+
//# sourceMappingURL=root-config.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"root-config.js","sourceRoot":"","sources":["../../../../../../../../../libs/framework/server/file-storage/domain/src/lib/contracts/root-config.ts"],"names":[],"mappings":";;;AAAA,MAAM,MAAM,GAAG;IACb,IAAI,EAAE,cAAc;IACpB,MAAM,EAAE,aAAa;CACb,CAAC;AAEE,QAAA,UAAU,GAAG;IACxB,MAAM;IACN,MAAM,EAAE;QACN,MAAM,EAAE,cAAc;QACtB,IAAI,EAAE,MAAM,CAAC,MAAM;QACnB,KAAK,EAAE,IAAI,MAAM,CAAC,IAAI,eAAe;QACrC,IAAI,EAAE,2BAA2B;KAClC;IACD,QAAQ,EAAE;QACR,IAAI,EAAE;YACJ,IAAI,EAAE,MAAM;YACZ,MAAM,EAAE,GAAG,MAAM,CAAC,MAAM,OAAO;YAC/B,KAAK,EAAE,IAAI,MAAM,CAAC,IAAI,sBAAsB;YAC5C,WAAW,EAAE,IAAI,MAAM,CAAC,IAAI,uBAAuB;YACnD,IAAI,EAAE,kBAAkB;SACzB;KACF;CACO,CAAC"}
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.fileEntityFactory = fileEntityFactory;
|
|
4
|
+
const core_1 = require("@acorex-platform/framework-shared/core");
|
|
5
|
+
const entity_1 = require("@acorex-platform/framework-shared/entity");
|
|
6
|
+
const root_config_1 = require("../contracts/root-config");
|
|
7
|
+
function fileProp(name, groupId, schema, options) {
|
|
8
|
+
return {
|
|
9
|
+
name,
|
|
10
|
+
title: `@file-storage:entities.file.props.${name}`,
|
|
11
|
+
groupId,
|
|
12
|
+
schema,
|
|
13
|
+
...options,
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
async function fileEntityFactory() {
|
|
17
|
+
const entityDef = {
|
|
18
|
+
module: root_config_1.RootConfig.module.name,
|
|
19
|
+
name: root_config_1.RootConfig.entities.file.name,
|
|
20
|
+
title: root_config_1.RootConfig.entities.file.title,
|
|
21
|
+
icon: root_config_1.RootConfig.entities.file.icon,
|
|
22
|
+
formats: {
|
|
23
|
+
individual: 'File',
|
|
24
|
+
plural: 'Files',
|
|
25
|
+
},
|
|
26
|
+
plugins: [{ name: 'history' }],
|
|
27
|
+
relatedEntities: [],
|
|
28
|
+
groups: [
|
|
29
|
+
{ id: 'basic-info', title: '@file-storage:entities.file.groups.basic-info' },
|
|
30
|
+
{ id: 'reference', title: '@file-storage:entities.file.groups.reference' },
|
|
31
|
+
{ id: 'storage', title: '@file-storage:entities.file.groups.storage' },
|
|
32
|
+
],
|
|
33
|
+
properties: [
|
|
34
|
+
fileProp('name', 'basic-info', {
|
|
35
|
+
dataType: 'string',
|
|
36
|
+
readonly: true,
|
|
37
|
+
interface: { type: core_1.AXPWidgetsList.Editors.TextBox },
|
|
38
|
+
}),
|
|
39
|
+
fileProp('title', 'basic-info', {
|
|
40
|
+
dataType: 'string',
|
|
41
|
+
readonly: true,
|
|
42
|
+
interface: { type: core_1.AXPWidgetsList.Editors.TextBox },
|
|
43
|
+
}),
|
|
44
|
+
fileProp('description', 'basic-info', {
|
|
45
|
+
dataType: 'string',
|
|
46
|
+
readonly: true,
|
|
47
|
+
interface: { type: core_1.AXPWidgetsList.Editors.LargeTextBox },
|
|
48
|
+
}),
|
|
49
|
+
fileProp('mimeType', 'basic-info', {
|
|
50
|
+
dataType: 'string',
|
|
51
|
+
readonly: true,
|
|
52
|
+
interface: { type: core_1.AXPWidgetsList.Editors.TextBox },
|
|
53
|
+
}),
|
|
54
|
+
fileProp('size', 'basic-info', {
|
|
55
|
+
dataType: 'number',
|
|
56
|
+
readonly: true,
|
|
57
|
+
interface: { type: core_1.AXPWidgetsList.Editors.NumberBox },
|
|
58
|
+
}),
|
|
59
|
+
fileProp('status', 'basic-info', {
|
|
60
|
+
dataType: 'string',
|
|
61
|
+
readonly: true,
|
|
62
|
+
interface: { type: core_1.AXPWidgetsList.Editors.TextBox },
|
|
63
|
+
}),
|
|
64
|
+
fileProp('category', 'reference', {
|
|
65
|
+
dataType: 'string',
|
|
66
|
+
readonly: true,
|
|
67
|
+
interface: { type: core_1.AXPWidgetsList.Editors.TextBox },
|
|
68
|
+
}),
|
|
69
|
+
fileProp('refId', 'reference', {
|
|
70
|
+
dataType: 'string',
|
|
71
|
+
readonly: true,
|
|
72
|
+
interface: { type: core_1.AXPWidgetsList.Editors.TextBox },
|
|
73
|
+
}),
|
|
74
|
+
fileProp('refType', 'reference', {
|
|
75
|
+
dataType: 'string',
|
|
76
|
+
readonly: true,
|
|
77
|
+
interface: { type: core_1.AXPWidgetsList.Editors.TextBox },
|
|
78
|
+
}),
|
|
79
|
+
fileProp('path', 'storage', {
|
|
80
|
+
dataType: 'string',
|
|
81
|
+
readonly: true,
|
|
82
|
+
interface: { type: core_1.AXPWidgetsList.Editors.TextBox },
|
|
83
|
+
}),
|
|
84
|
+
fileProp('storagePath', 'storage', {
|
|
85
|
+
dataType: 'string',
|
|
86
|
+
readonly: true,
|
|
87
|
+
interface: { type: core_1.AXPWidgetsList.Editors.TextBox },
|
|
88
|
+
}),
|
|
89
|
+
fileProp('binaryProvider', 'storage', {
|
|
90
|
+
dataType: 'string',
|
|
91
|
+
readonly: true,
|
|
92
|
+
interface: { type: core_1.AXPWidgetsList.Editors.TextBox },
|
|
93
|
+
}),
|
|
94
|
+
fileProp('isPublic', 'storage', {
|
|
95
|
+
dataType: 'boolean',
|
|
96
|
+
readonly: true,
|
|
97
|
+
interface: { type: core_1.AXPWidgetsList.Editors.CheckBox },
|
|
98
|
+
}),
|
|
99
|
+
fileProp('isPrimary', 'storage', {
|
|
100
|
+
dataType: 'boolean',
|
|
101
|
+
readonly: true,
|
|
102
|
+
interface: { type: core_1.AXPWidgetsList.Editors.CheckBox },
|
|
103
|
+
}),
|
|
104
|
+
fileProp('uploadedAt', 'storage', {
|
|
105
|
+
dataType: 'string',
|
|
106
|
+
readonly: true,
|
|
107
|
+
interface: { type: core_1.AXPWidgetsList.Editors.TextBox },
|
|
108
|
+
}),
|
|
109
|
+
fileProp('metadata', 'storage', {
|
|
110
|
+
dataType: 'object',
|
|
111
|
+
readonly: true,
|
|
112
|
+
visible: false,
|
|
113
|
+
interface: { type: core_1.AXPWidgetsList.Editors.TextBox },
|
|
114
|
+
}),
|
|
115
|
+
],
|
|
116
|
+
columns: [
|
|
117
|
+
{ name: 'name' },
|
|
118
|
+
{ name: 'mimeType' },
|
|
119
|
+
{ name: 'size' },
|
|
120
|
+
{ name: 'status' },
|
|
121
|
+
{ name: 'refType' },
|
|
122
|
+
{ name: 'refId' },
|
|
123
|
+
{ name: 'uploadedAt' },
|
|
124
|
+
],
|
|
125
|
+
interfaces: {
|
|
126
|
+
master: {
|
|
127
|
+
list: {
|
|
128
|
+
actions: [...(0, entity_1.entityMasterCrudActions)()],
|
|
129
|
+
views: [(0, entity_1.createAllQueryView)({ sorts: [{ name: 'uploadedAt', dir: 'desc' }] })],
|
|
130
|
+
},
|
|
131
|
+
single: {
|
|
132
|
+
title: root_config_1.RootConfig.entities.file.title,
|
|
133
|
+
sections: [
|
|
134
|
+
{ id: 'basic-info' },
|
|
135
|
+
{ id: 'reference' },
|
|
136
|
+
{ id: 'storage' },
|
|
137
|
+
],
|
|
138
|
+
actions: [...(0, entity_1.entityMasterRecordActions)()],
|
|
139
|
+
},
|
|
140
|
+
},
|
|
141
|
+
},
|
|
142
|
+
};
|
|
143
|
+
return entityDef;
|
|
144
|
+
}
|
|
145
|
+
//# sourceMappingURL=file.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"file.entity.js","sourceRoot":"","sources":["../../../../../../../../../libs/framework/server/file-storage/domain/src/lib/file/file.entity.ts"],"names":[],"mappings":";;AAyBA,8CAiIC;AA1JD,iEAAwE;AACxE,qEAMkD;AAClD,0DAAsD;AAEtD,SAAS,QAAQ,CACf,IAAY,EACZ,OAAe,EACf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AAE,EAAE,IAAI,EAAE,qBAAc,CAAC,OAAO,CAAC,OAAO,EAAE;aACpD,CAAC;SACH;QACD,OAAO,EAAE;YACP,EAAE,IAAI,EAAE,MAAM,EAAE;YAChB,EAAE,IAAI,EAAE,UAAU,EAAE;YACpB,EAAE,IAAI,EAAE,MAAM,EAAE;YAChB,EAAE,IAAI,EAAE,QAAQ,EAAE;YAClB,EAAE,IAAI,EAAE,SAAS,EAAE;YACnB,EAAE,IAAI,EAAE,OAAO,EAAE;YACjB,EAAE,IAAI,EAAE,YAAY,EAAE;SACvB;QACD,UAAU,EAAE;YACV,MAAM,EAAE;gBACN,IAAI,EAAE;oBACJ,OAAO,EAAE,CAAC,GAAG,IAAA,gCAAuB,GAAE,CAAC;oBACvC,KAAK,EAAE,CAAC,IAAA,2BAAkB,EAAC,EAAE,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,YAAY,EAAE,GAAG,EAAE,MAAM,EAAE,CAAC,EAAE,CAAC,CAAC;iBAC9E;gBACD,MAAM,EAAE;oBACN,KAAK,EAAE,wBAAU,CAAC,QAAQ,CAAC,IAAI,CAAC,KAAK;oBACrC,QAAQ,EAAE;wBACR,EAAE,EAAE,EAAE,YAAY,EAAE;wBACpB,EAAE,EAAE,EAAE,WAAW,EAAE;wBACnB,EAAE,EAAE,EAAE,SAAS,EAAE;qBAClB;oBACD,OAAO,EAAE,CAAC,GAAG,IAAA,kCAAyB,GAAE,CAAC;iBAC1C;aACF;SACF;KACF,CAAC;IAEF,OAAO,SAAS,CAAC;AACnB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './file.entity';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../../libs/framework/server/file-storage/domain/src/lib/file/index.ts"],"names":[],"mappings":";;;AAAA,wDAA8B"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
tslib_1.__exportStar(require("./contracts/root-config"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./file"), exports);
|
|
6
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../libs/framework/server/file-storage/domain/src/lib/index.ts"],"names":[],"mappings":";;;AAAA,kEAAwC;AACxC,iDAAuB"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@acorex-platform/framework-server/file-storage/entity",
|
|
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/file-storage/abstract": "0.0.0-ACOREX",
|
|
13
|
+
"@acorex-platform/framework-server/file-storage/database": "0.0.0-ACOREX",
|
|
14
|
+
"@acorex-platform/framework-server/file-storage/local": "0.0.0-ACOREX",
|
|
15
|
+
"@acorex-platform/framework-server/jql/abstract": "0.0.0-ACOREX",
|
|
16
|
+
"@acorex-platform/framework-shared": "0.0.0-ACOREX",
|
|
17
|
+
"@nestjs/common": "^11.0.0"
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export * from './lib/file-storage-infrastructure.service';
|
|
2
|
+
export * from './lib/entity-file-storage.module';
|
|
3
|
+
export * from './lib/file-entity-jql-source';
|
|
4
|
+
export * from './lib/file-entity.mapper';
|
|
5
|
+
export * from './lib/file-entity.repository';
|
|
6
|
+
export * from './lib/file-metadata.service';
|
|
7
|
+
export * from './lib/file-storage-engine.registry';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
tslib_1.__exportStar(require("./lib/file-storage-infrastructure.service"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./lib/entity-file-storage.module"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("./lib/file-entity-jql-source"), exports);
|
|
7
|
+
tslib_1.__exportStar(require("./lib/file-entity.mapper"), exports);
|
|
8
|
+
tslib_1.__exportStar(require("./lib/file-entity.repository"), exports);
|
|
9
|
+
tslib_1.__exportStar(require("./lib/file-metadata.service"), exports);
|
|
10
|
+
tslib_1.__exportStar(require("./lib/file-storage-engine.registry"), exports);
|
|
11
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../libs/framework/server/file-storage/entity/src/index.ts"],"names":[],"mappings":";;;AAAA,oFAA0D;AAC1D,2EAAiD;AACjD,uEAA6C;AAC7C,mEAAyC;AACzC,uEAA6C;AAC7C,sEAA4C;AAC5C,6EAAmD"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EntityFileStorageModule = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const common_1 = require("@nestjs/common");
|
|
6
|
+
const file_entity_repository_1 = require("./file-entity.repository");
|
|
7
|
+
const file_metadata_service_1 = require("./file-metadata.service");
|
|
8
|
+
//#region ---- Entity file storage module (metadata only) ----
|
|
9
|
+
let EntityFileStorageModule = class EntityFileStorageModule {
|
|
10
|
+
};
|
|
11
|
+
exports.EntityFileStorageModule = EntityFileStorageModule;
|
|
12
|
+
exports.EntityFileStorageModule = EntityFileStorageModule = tslib_1.__decorate([
|
|
13
|
+
(0, common_1.Module)({
|
|
14
|
+
providers: [file_entity_repository_1.FileEntityRepository, file_metadata_service_1.FileMetadataService],
|
|
15
|
+
exports: [file_metadata_service_1.FileMetadataService, file_entity_repository_1.FileEntityRepository],
|
|
16
|
+
})
|
|
17
|
+
], EntityFileStorageModule);
|
|
18
|
+
//#endregion
|
|
19
|
+
//# sourceMappingURL=entity-file-storage.module.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"entity-file-storage.module.js","sourceRoot":"","sources":["../../../../../../../../libs/framework/server/file-storage/entity/src/lib/entity-file-storage.module.ts"],"names":[],"mappings":";;;;AAAA,2CAAwC;AACxC,qEAAgE;AAChE,mEAA8D;AAE9D,8DAA8D;AAMvD,IAAM,uBAAuB,GAA7B,MAAM,uBAAuB;CAAG,CAAA;AAA1B,0DAAuB;kCAAvB,uBAAuB;IAJnC,IAAA,eAAM,EAAC;QACN,SAAS,EAAE,CAAC,6CAAoB,EAAE,2CAAmB,CAAC;QACtD,OAAO,EAAE,CAAC,2CAAmB,EAAE,6CAAoB,CAAC;KACrD,CAAC;GACW,uBAAuB,CAAG;AAEvC,YAAY"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { JqlSource } from '@acorex-platform/framework-server/jql/abstract';
|
|
2
|
+
export declare const FILE_ENTITY_JQL_SOURCE = "file_entities";
|
|
3
|
+
export declare function resolveFileEntityCollectionName(): string;
|
|
4
|
+
export declare const FILE_ENTITY_TABLE_DDL_POSTGRES: (table: string) => string;
|
|
5
|
+
/** JQL source for file metadata entities (no inline binary). */
|
|
6
|
+
export declare function createFileEntityJqlSource(collectionName?: string): JqlSource;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FILE_ENTITY_TABLE_DDL_POSTGRES = exports.FILE_ENTITY_JQL_SOURCE = void 0;
|
|
4
|
+
exports.resolveFileEntityCollectionName = resolveFileEntityCollectionName;
|
|
5
|
+
exports.createFileEntityJqlSource = createFileEntityJqlSource;
|
|
6
|
+
//#region ---- JQL source ----
|
|
7
|
+
exports.FILE_ENTITY_JQL_SOURCE = 'file_entities';
|
|
8
|
+
const DEFAULT_COLLECTION = 'file_entities';
|
|
9
|
+
function resolveFileEntityCollectionName() {
|
|
10
|
+
return process.env['FILE_ENTITY_COLLECTION'] ?? process.env['FILE_STORAGE_COLLECTION'] ?? DEFAULT_COLLECTION;
|
|
11
|
+
}
|
|
12
|
+
const FILE_ENTITY_TABLE_DDL_POSTGRES = (table) => `
|
|
13
|
+
CREATE TABLE IF NOT EXISTS ${table} (
|
|
14
|
+
id TEXT PRIMARY KEY,
|
|
15
|
+
ref_id TEXT NOT NULL,
|
|
16
|
+
ref_type TEXT NOT NULL,
|
|
17
|
+
category TEXT NOT NULL,
|
|
18
|
+
status TEXT NOT NULL,
|
|
19
|
+
payload JSONB NOT NULL
|
|
20
|
+
);
|
|
21
|
+
CREATE INDEX IF NOT EXISTS idx_${table}_ref
|
|
22
|
+
ON ${table} (ref_type, ref_id, category);
|
|
23
|
+
CREATE INDEX IF NOT EXISTS idx_${table}_status
|
|
24
|
+
ON ${table} (status);
|
|
25
|
+
`;
|
|
26
|
+
exports.FILE_ENTITY_TABLE_DDL_POSTGRES = FILE_ENTITY_TABLE_DDL_POSTGRES;
|
|
27
|
+
/** JQL source for file metadata entities (no inline binary). */
|
|
28
|
+
function createFileEntityJqlSource(collectionName) {
|
|
29
|
+
const collection = collectionName ?? resolveFileEntityCollectionName();
|
|
30
|
+
return {
|
|
31
|
+
name: exports.FILE_ENTITY_JQL_SOURCE,
|
|
32
|
+
storage: 'document',
|
|
33
|
+
table: collection,
|
|
34
|
+
collection,
|
|
35
|
+
documentColumn: 'payload',
|
|
36
|
+
idField: 'fileId',
|
|
37
|
+
fields: {
|
|
38
|
+
fileId: { column: 'id', jsonPath: 'fileId' },
|
|
39
|
+
refId: { column: 'ref_id', jsonPath: 'refId' },
|
|
40
|
+
refType: { column: 'ref_type', jsonPath: 'refType' },
|
|
41
|
+
category: { column: 'category', jsonPath: 'category' },
|
|
42
|
+
status: { column: 'status', jsonPath: 'status' },
|
|
43
|
+
},
|
|
44
|
+
schema: {
|
|
45
|
+
ddl: (0, exports.FILE_ENTITY_TABLE_DDL_POSTGRES)(collection),
|
|
46
|
+
indexes: [
|
|
47
|
+
{ refType: 1, refId: 1, category: 1 },
|
|
48
|
+
{ status: 1 },
|
|
49
|
+
{ fileId: 1 },
|
|
50
|
+
],
|
|
51
|
+
},
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
//#endregion
|
|
55
|
+
//# sourceMappingURL=file-entity-jql-source.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"file-entity-jql-source.js","sourceRoot":"","sources":["../../../../../../../../libs/framework/server/file-storage/entity/src/lib/file-entity-jql-source.ts"],"names":[],"mappings":";;;AAQA,0EAEC;AAkBD,8DAyBC;AAnDD,8BAA8B;AAEjB,QAAA,sBAAsB,GAAG,eAAe,CAAC;AAEtD,MAAM,kBAAkB,GAAG,eAAe,CAAC;AAE3C,SAAgB,+BAA+B;IAC7C,OAAO,OAAO,CAAC,GAAG,CAAC,wBAAwB,CAAC,IAAI,OAAO,CAAC,GAAG,CAAC,yBAAyB,CAAC,IAAI,kBAAkB,CAAC;AAC/G,CAAC;AAEM,MAAM,8BAA8B,GAAG,CAAC,KAAa,EAAU,EAAE,CAAC;+BAC1C,KAAK;;;;;;;;mCAQD,KAAK;SAC/B,KAAK;mCACqB,KAAK;SAC/B,KAAK;CACb,CAAC;AAbW,QAAA,8BAA8B,kCAazC;AAEF,gEAAgE;AAChE,SAAgB,yBAAyB,CAAC,cAAuB;IAC/D,MAAM,UAAU,GAAG,cAAc,IAAI,+BAA+B,EAAE,CAAC;IACvE,OAAO;QACL,IAAI,EAAE,8BAAsB;QAC5B,OAAO,EAAE,UAAU;QACnB,KAAK,EAAE,UAAU;QACjB,UAAU;QACV,cAAc,EAAE,SAAS;QACzB,OAAO,EAAE,QAAQ;QACjB,MAAM,EAAE;YACN,MAAM,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE;YAC5C,KAAK,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE;YAC9C,OAAO,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,QAAQ,EAAE,SAAS,EAAE;YACpD,QAAQ,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,QAAQ,EAAE,UAAU,EAAE;YACtD,MAAM,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE;SACjD;QACD,MAAM,EAAE;YACN,GAAG,EAAE,IAAA,sCAA8B,EAAC,UAAU,CAAC;YAC/C,OAAO,EAAE;gBACP,EAAE,OAAO,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,QAAQ,EAAE,CAAC,EAAE;gBACrC,EAAE,MAAM,EAAE,CAAC,EAAE;gBACb,EAAE,MAAM,EAAE,CAAC,EAAE;aACd;SACF;KACF,CAAC;AACJ,CAAC;AAED,YAAY"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { FileEntityRecord, FileStorageDocument } from '@acorex-platform/framework-server/file-storage/abstract';
|
|
2
|
+
export declare function fileEntityToDocument(record: FileEntityRecord): FileStorageDocument;
|
|
3
|
+
export declare function documentToFileEntity(document: FileStorageDocument): FileEntityRecord;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.fileEntityToDocument = fileEntityToDocument;
|
|
4
|
+
exports.documentToFileEntity = documentToFileEntity;
|
|
5
|
+
//#region ---- File entity mapping ----
|
|
6
|
+
function fileEntityToDocument(record) {
|
|
7
|
+
return {
|
|
8
|
+
fileId: record.fileId,
|
|
9
|
+
refId: record.refId,
|
|
10
|
+
refType: record.refType,
|
|
11
|
+
category: record.category,
|
|
12
|
+
name: record.name,
|
|
13
|
+
path: record.path,
|
|
14
|
+
mimeType: record.mimeType,
|
|
15
|
+
size: record.size,
|
|
16
|
+
uploadedAt: record.uploadedAt,
|
|
17
|
+
isPublic: record.isPublic,
|
|
18
|
+
isPrimary: record.isPrimary,
|
|
19
|
+
status: record.status,
|
|
20
|
+
metadata: record.metadata,
|
|
21
|
+
storagePath: record.storagePath,
|
|
22
|
+
binaryProvider: record.binaryProvider,
|
|
23
|
+
title: record.title,
|
|
24
|
+
description: record.description,
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
function documentToFileEntity(document) {
|
|
28
|
+
if (!document.storagePath) {
|
|
29
|
+
throw new Error(`File entity missing storagePath: ${document.fileId}`);
|
|
30
|
+
}
|
|
31
|
+
return {
|
|
32
|
+
fileId: document.fileId,
|
|
33
|
+
refId: document.refId,
|
|
34
|
+
refType: document.refType,
|
|
35
|
+
category: document.category,
|
|
36
|
+
name: document.name,
|
|
37
|
+
path: document.path,
|
|
38
|
+
mimeType: document.mimeType,
|
|
39
|
+
size: document.size,
|
|
40
|
+
uploadedAt: document.uploadedAt,
|
|
41
|
+
isPublic: document.isPublic,
|
|
42
|
+
isPrimary: document.isPrimary,
|
|
43
|
+
status: document.status,
|
|
44
|
+
metadata: document.metadata,
|
|
45
|
+
storagePath: document.storagePath,
|
|
46
|
+
binaryProvider: document.binaryProvider ?? 'local',
|
|
47
|
+
title: document.title,
|
|
48
|
+
description: document.description,
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
//#endregion
|
|
52
|
+
//# sourceMappingURL=file-entity.mapper.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"file-entity.mapper.js","sourceRoot":"","sources":["../../../../../../../../libs/framework/server/file-storage/entity/src/lib/file-entity.mapper.ts"],"names":[],"mappings":";;AAIA,oDAoBC;AAED,oDAwBC;AAhDD,uCAAuC;AAEvC,SAAgB,oBAAoB,CAAC,MAAwB;IAC3D,OAAO;Q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,QAAQ,CAAC,SAAS;QAC7B,MAAM,EAAE,QAAQ,CAAC,MAAM;QACvB,QAAQ,EAAE,QAAQ,CAAC,QAAQ;QAC3B,WAAW,EAAE,QAAQ,CAAC,WAAW;QACjC,cAAc,EAAE,QAAQ,CAAC,cAAc,IAAI,OAAO;QAClD,KAAK,EAAE,QAAQ,CAAC,KAAK;QACrB,WAAW,EAAE,QAAQ,CAAC,WAAW;KAClC,CAAC;AACJ,CAAC;AAED,YAAY"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { AXPFileStorageStatus } from '@acorex-platform/framework-shared/core';
|
|
2
|
+
import { type FileEntityRecord, type FileStorageFindFilter } from '@acorex-platform/framework-server/file-storage/abstract';
|
|
3
|
+
import { JqlEngineBase } from '@acorex-platform/framework-server/jql/abstract';
|
|
4
|
+
export declare class FileEntityRepository {
|
|
5
|
+
private readonly engine;
|
|
6
|
+
constructor(engine: JqlEngineBase);
|
|
7
|
+
insert(record: FileEntityRecord): Promise<void>;
|
|
8
|
+
update(record: FileEntityRecord): Promise<void>;
|
|
9
|
+
findById(fileId: string): Promise<FileEntityRecord | null>;
|
|
10
|
+
findMany(ids: string[]): Promise<FileEntityRecord[]>;
|
|
11
|
+
find(filter: FileStorageFindFilter, committedOnly: boolean): Promise<FileEntityRecord[]>;
|
|
12
|
+
delete(fileId: string): Promise<void>;
|
|
13
|
+
setStatus(fileId: string, status: AXPFileStorageStatus): Promise<void>;
|
|
14
|
+
private buildFindFilter;
|
|
15
|
+
}
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FileEntityRepository = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const core_1 = require("@acorex-platform/framework-shared/core");
|
|
6
|
+
const abstract_1 = require("@acorex-platform/framework-server/file-storage/abstract");
|
|
7
|
+
const abstract_2 = require("@acorex-platform/framework-server/jql/abstract");
|
|
8
|
+
const common_1 = require("@nestjs/common");
|
|
9
|
+
const file_entity_jql_source_1 = require("./file-entity-jql-source");
|
|
10
|
+
//#region ---- File entity repository ----
|
|
11
|
+
let FileEntityRepository = class FileEntityRepository {
|
|
12
|
+
constructor(engine) {
|
|
13
|
+
this.engine = engine;
|
|
14
|
+
}
|
|
15
|
+
async insert(record) {
|
|
16
|
+
await this.engine.insert({
|
|
17
|
+
into: file_entity_jql_source_1.FILE_ENTITY_JQL_SOURCE,
|
|
18
|
+
documents: [record],
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
async update(record) {
|
|
22
|
+
await this.engine.update({
|
|
23
|
+
update: file_entity_jql_source_1.FILE_ENTITY_JQL_SOURCE,
|
|
24
|
+
where: (0, abstract_2.eqCondition)('fileId', record.fileId),
|
|
25
|
+
set: record,
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
async findById(fileId) {
|
|
29
|
+
const record = await this.engine.findOne({
|
|
30
|
+
from: file_entity_jql_source_1.FILE_ENTITY_JQL_SOURCE,
|
|
31
|
+
where: (0, abstract_2.eqCondition)('fileId', fileId),
|
|
32
|
+
});
|
|
33
|
+
return record ?? null;
|
|
34
|
+
}
|
|
35
|
+
async findMany(ids) {
|
|
36
|
+
if (ids.length === 0) {
|
|
37
|
+
return [];
|
|
38
|
+
}
|
|
39
|
+
const result = await this.engine.find({
|
|
40
|
+
from: file_entity_jql_source_1.FILE_ENTITY_JQL_SOURCE,
|
|
41
|
+
where: { field: 'fileId', op: 'in', value: ids },
|
|
42
|
+
});
|
|
43
|
+
return result.items;
|
|
44
|
+
}
|
|
45
|
+
async find(filter, committedOnly) {
|
|
46
|
+
const where = this.buildFindFilter(filter, committedOnly);
|
|
47
|
+
const result = await this.engine.find({
|
|
48
|
+
from: file_entity_jql_source_1.FILE_ENTITY_JQL_SOURCE,
|
|
49
|
+
where,
|
|
50
|
+
});
|
|
51
|
+
return result.items;
|
|
52
|
+
}
|
|
53
|
+
async delete(fileId) {
|
|
54
|
+
await this.engine.delete({
|
|
55
|
+
from: file_entity_jql_source_1.FILE_ENTITY_JQL_SOURCE,
|
|
56
|
+
where: (0, abstract_2.eqCondition)('fileId', fileId),
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
async setStatus(fileId, status) {
|
|
60
|
+
await this.engine.update({
|
|
61
|
+
update: file_entity_jql_source_1.FILE_ENTITY_JQL_SOURCE,
|
|
62
|
+
where: (0, abstract_2.eqCondition)('fileId', fileId),
|
|
63
|
+
set: { status },
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
buildFindFilter(filter, committedOnly) {
|
|
67
|
+
const conditions = [];
|
|
68
|
+
if (committedOnly) {
|
|
69
|
+
conditions.push((0, abstract_2.eqCondition)('status', core_1.AXPFileStorageStatus.Committed));
|
|
70
|
+
}
|
|
71
|
+
if (filter.refId) {
|
|
72
|
+
conditions.push((0, abstract_2.eqCondition)('refId', filter.refId));
|
|
73
|
+
}
|
|
74
|
+
if (filter.refType) {
|
|
75
|
+
conditions.push((0, abstract_2.eqCondition)('refType', filter.refType));
|
|
76
|
+
}
|
|
77
|
+
if (filter.category) {
|
|
78
|
+
conditions.push((0, abstract_2.eqCondition)('category', filter.category));
|
|
79
|
+
}
|
|
80
|
+
if (filter.mimeType) {
|
|
81
|
+
conditions.push((0, abstract_2.eqCondition)('mimeType', filter.mimeType));
|
|
82
|
+
}
|
|
83
|
+
if (filter.isPublic !== undefined) {
|
|
84
|
+
conditions.push((0, abstract_2.eqCondition)('isPublic', filter.isPublic));
|
|
85
|
+
}
|
|
86
|
+
if (filter.isPrimary !== undefined) {
|
|
87
|
+
conditions.push((0, abstract_2.eqCondition)('isPrimary', filter.isPrimary));
|
|
88
|
+
}
|
|
89
|
+
if (filter.uploadedAtFrom) {
|
|
90
|
+
conditions.push({ field: 'uploadedAt', op: 'gte', value: filter.uploadedAtFrom });
|
|
91
|
+
}
|
|
92
|
+
if (filter.uploadedAtTo) {
|
|
93
|
+
conditions.push({ field: 'uploadedAt', op: 'lte', value: filter.uploadedAtTo });
|
|
94
|
+
}
|
|
95
|
+
return conditions.reduce((acc, condition) => (0, abstract_2.andFilters)(acc, condition), undefined) ?? (0, abstract_2.eqCondition)('status', core_1.AXPFileStorageStatus.Committed);
|
|
96
|
+
}
|
|
97
|
+
};
|
|
98
|
+
exports.FileEntityRepository = FileEntityRepository;
|
|
99
|
+
exports.FileEntityRepository = FileEntityRepository = tslib_1.__decorate([
|
|
100
|
+
(0, common_1.Injectable)(),
|
|
101
|
+
tslib_1.__param(0, (0, common_1.Inject)(abstract_1.FILE_STORAGE_JQL_ENGINE)),
|
|
102
|
+
tslib_1.__metadata("design:paramtypes", [abstract_2.JqlEngineBase])
|
|
103
|
+
], FileEntityRepository);
|
|
104
|
+
//#endregion
|
|
105
|
+
//# sourceMappingURL=file-entity.repository.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"file-entity.repository.js","sourceRoot":"","sources":["../../../../../../../../libs/framework/server/file-storage/entity/src/lib/file-entity.repository.ts"],"names":[],"mappings":";;;;AAAA,iEAA8E;AAC9E,sFAIiE;AACjE,6EAKwD;AACxD,2CAAoD;AACpD,qEAAkE;AAElE,0CAA0C;AAGnC,IAAM,oBAAoB,GAA1B,MAAM,oBAAoB;IAC/B,YAEmB,MAAqB;QAArB,WAAM,GAAN,MAAM,CAAe;IACrC,CAAC;IAEJ,KAAK,CAAC,MAAM,CAAC,MAAwB;QACnC,MAAM,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC;YACvB,IAAI,EAAE,+CAAsB;YAC5B,SAAS,EAAE,CAAC,MAA4C,CAAC;SAC1D,CAAC,CAAC;IACL,CAAC;IAED,KAAK,CAAC,MAAM,CAAC,MAAwB;QACnC,MAAM,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC;YACvB,MAAM,EAAE,+CAAsB;YAC9B,KAAK,EAAE,IAAA,sBAAW,EAAC,QAAQ,EAAE,MAAM,CAAC,MAAM,CAAC;YA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M,CAAC,SAAS,KAAK,SAAS,EAAE,CAAC;YACnC,UAAU,CAAC,IAAI,CAAC,IAAA,sBAAW,EAAC,WAAW,EAAE,MAAM,CAAC,SAAS,CAAC,CAAC,CAAC;QAC9D,CAAC;QACD,IAAI,MAAM,CAAC,cAAc,EAAE,CAAC;YAC1B,UAAU,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,YAAY,EAAE,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,CAAC,cAAc,EAAE,CAAC,CAAC;QACpF,CAAC;QACD,IAAI,MAAM,CAAC,YAAY,EAAE,CAAC;YACxB,UAAU,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,YAAY,EAAE,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,CAAC,YAAY,EAAE,CAAC,CAAC;QAClF,CAAC;QAED,OAAO,UAAU,CAAC,MAAM,CACtB,CAAC,GAAG,EAAE,SAAS,EAAE,EAAE,CAAC,IAAA,qBAAU,EAAC,GAAG,EAAE,SAAS,CAAC,EAC9C,SAAS,CACV,IAAI,IAAA,sBAAW,EAAC,QAAQ,EAAE,2BAAoB,CAAC,SAAS,CAAC,CAAC;IAC7D,CAAC;CACF,CAAA;AArGY,oDAAoB;+BAApB,oBAAoB;IADhC,IAAA,mBAAU,GAAE;IAGR,mBAAA,IAAA,eAAM,EAAC,kCAAuB,CAAC,CAAA;6CACP,wBAAa;GAH7B,oBAAoB,CAqGhC;AAED,YAAY"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { FileEntityRecord, FileStorageFindFilter } from '@acorex-platform/framework-server/file-storage/abstract';
|
|
2
|
+
import { AXPFileStorageStatus } from '@acorex-platform/framework-shared/core';
|
|
3
|
+
import { FileEntityRepository } from './file-entity.repository';
|
|
4
|
+
export declare class FileMetadataService {
|
|
5
|
+
private readonly repository;
|
|
6
|
+
constructor(repository: FileEntityRepository);
|
|
7
|
+
insert(record: FileEntityRecord): Promise<void>;
|
|
8
|
+
update(record: FileEntityRecord): Promise<void>;
|
|
9
|
+
findById(fileId: string): Promise<FileEntityRecord | null>;
|
|
10
|
+
findMany(ids: string[]): Promise<FileEntityRecord[]>;
|
|
11
|
+
find(filter: FileStorageFindFilter, committedOnly: boolean): Promise<FileEntityRecord[]>;
|
|
12
|
+
delete(fileId: string): Promise<void>;
|
|
13
|
+
setStatus(fileId: string, status: AXPFileStorageStatus): Promise<void>;
|
|
14
|
+
requireById(fileId: string): Promise<FileEntityRecord>;
|
|
15
|
+
}
|