@rockster/core 0.0.1 → 0.0.4
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/access/access.module.d.ts +11 -0
- package/access/access.module.js +60 -0
- package/access/access.module.js.map +1 -0
- package/access/controllers/controllers.d.ts +6 -0
- package/access/controllers/controllers.js +16 -0
- package/access/controllers/controllers.js.map +1 -0
- package/access/controllers/scope-group-user.controller.d.ts +13 -0
- package/access/controllers/scope-group-user.controller.js +84 -0
- package/access/controllers/scope-group-user.controller.js.map +1 -0
- package/access/controllers/scope-group.controller.d.ts +19 -0
- package/access/controllers/scope-group.controller.js +123 -0
- package/access/controllers/scope-group.controller.js.map +1 -0
- package/access/controllers/scope-key.controller.d.ts +7 -0
- package/access/controllers/scope-key.controller.js +45 -0
- package/access/controllers/scope-key.controller.js.map +1 -0
- package/access/controllers/scope-owner.controller.d.ts +8 -0
- package/access/controllers/scope-owner.controller.js +66 -0
- package/access/controllers/scope-owner.controller.js.map +1 -0
- package/access/controllers/scope-user.controller.d.ts +14 -0
- package/access/controllers/scope-user.controller.js +95 -0
- package/access/controllers/scope-user.controller.js.map +1 -0
- package/access/entities/entities.d.ts +6 -0
- package/access/entities/entities.js +18 -0
- package/access/entities/entities.js.map +1 -0
- package/access/entities/index.d.ts +5 -0
- package/access/entities/index.js +22 -0
- package/access/entities/index.js.map +1 -0
- package/access/entities/scope-access.d.ts +9 -0
- package/access/entities/scope-access.js +58 -0
- package/access/entities/scope-access.js.map +1 -0
- package/access/entities/scope-group-user.d.ts +7 -0
- package/access/entities/scope-group-user.js +47 -0
- package/access/entities/scope-group-user.js.map +1 -0
- package/access/entities/scope-group.d.ts +9 -0
- package/access/entities/scope-group.js +56 -0
- package/access/entities/scope-group.js.map +1 -0
- package/access/entities/scope-key.d.ts +5 -0
- package/access/entities/scope-key.js +35 -0
- package/access/entities/scope-key.js.map +1 -0
- package/access/entities/scope-owner.d.ts +7 -0
- package/access/entities/scope-owner.js +45 -0
- package/access/entities/scope-owner.js.map +1 -0
- package/access/env.d.ts +10 -0
- package/access/env.js +10 -0
- package/access/env.js.map +1 -0
- package/access/functions/get-context-id-service.d.ts +1 -0
- package/access/functions/get-context-id-service.js +8 -0
- package/access/functions/get-context-id-service.js.map +1 -0
- package/access/functions/get-is-owner.d.ts +1 -0
- package/access/functions/get-is-owner.js +8 -0
- package/access/functions/get-is-owner.js.map +1 -0
- package/access/functions/get-user-keys.d.ts +2 -0
- package/access/functions/get-user-keys.js +10 -0
- package/access/functions/get-user-keys.js.map +1 -0
- package/access/functions/index.d.ts +3 -0
- package/access/functions/index.js +20 -0
- package/access/functions/index.js.map +1 -0
- package/access/functions/register-scope.d.ts +8 -0
- package/access/functions/register-scope.js +82 -0
- package/access/functions/register-scope.js.map +1 -0
- package/access/index.d.ts +5 -0
- package/access/index.js +22 -0
- package/access/index.js.map +1 -0
- package/access/interfaces/index.d.ts +2 -0
- package/access/interfaces/index.js +19 -0
- package/access/interfaces/index.js.map +1 -0
- package/access/interfaces/scope-service-registry.d.ts +6 -0
- package/access/interfaces/scope-service-registry.js +3 -0
- package/access/interfaces/scope-service-registry.js.map +1 -0
- package/access/interfaces/scope-service.d.ts +12 -0
- package/access/interfaces/scope-service.js +3 -0
- package/access/interfaces/scope-service.js.map +1 -0
- package/access/models/scope-context.d.ts +4 -0
- package/access/models/scope-context.js +27 -0
- package/access/models/scope-context.js.map +1 -0
- package/access/models/scope-keys-update.d.ts +7 -0
- package/access/models/scope-keys-update.js +38 -0
- package/access/models/scope-keys-update.js.map +1 -0
- package/access/models/scope-owner.d.ts +5 -0
- package/access/models/scope-owner.js +32 -0
- package/access/models/scope-owner.js.map +1 -0
- package/access/models/scope-user-mapped.d.ts +8 -0
- package/access/models/scope-user-mapped.js +42 -0
- package/access/models/scope-user-mapped.js.map +1 -0
- package/access/models/scope-user.d.ts +9 -0
- package/access/models/scope-user.js +49 -0
- package/access/models/scope-user.js.map +1 -0
- package/access/queries/scope-group-user.query.d.ts +1 -0
- package/access/queries/scope-group-user.query.js +26 -0
- package/access/queries/scope-group-user.query.js.map +1 -0
- package/access/queries/scope-group.query.d.ts +1 -0
- package/access/queries/scope-group.query.js +12 -0
- package/access/queries/scope-group.query.js.map +1 -0
- package/access/services/index.d.ts +6 -0
- package/access/services/index.js +23 -0
- package/access/services/index.js.map +1 -0
- package/access/services/scope-access.service.d.ts +11 -0
- package/access/services/scope-access.service.js +87 -0
- package/access/services/scope-access.service.js.map +1 -0
- package/access/services/scope-group-user.service.d.ts +8 -0
- package/access/services/scope-group-user.service.js +49 -0
- package/access/services/scope-group-user.service.js.map +1 -0
- package/access/services/scope-group.service.d.ts +7 -0
- package/access/services/scope-group.service.js +38 -0
- package/access/services/scope-group.service.js.map +1 -0
- package/access/services/scope-key.service.d.ts +9 -0
- package/access/services/scope-key.service.js +52 -0
- package/access/services/scope-key.service.js.map +1 -0
- package/access/services/scope-owner.service.d.ts +7 -0
- package/access/services/scope-owner.service.js +35 -0
- package/access/services/scope-owner.service.js.map +1 -0
- package/access/services/scope-service.d.ts +10 -0
- package/access/services/scope-service.js +52 -0
- package/access/services/scope-service.js.map +1 -0
- package/cache/cache-cleaner.js +1 -0
- package/cache/cache-cleaner.js.map +1 -0
- package/cache/cache.controller.js +1 -0
- package/cache/cache.controller.js.map +1 -0
- package/cache/constants.js +1 -0
- package/cache/constants.js.map +1 -0
- package/cache/decorators/index.js +1 -0
- package/cache/decorators/index.js.map +1 -0
- package/cache/decorators/inject-cache.decorator.js +1 -0
- package/cache/decorators/inject-cache.decorator.js.map +1 -0
- package/cache/decorators/key-value.js +1 -0
- package/cache/decorators/key-value.js.map +1 -0
- package/cache/functions/get-cache.js +1 -0
- package/cache/functions/get-cache.js.map +1 -0
- package/cache/functions/get-key.-handle.js +1 -0
- package/cache/functions/get-key.-handle.js.map +1 -0
- package/cache/index.js +1 -0
- package/cache/index.js.map +1 -0
- package/cache/interfaces/cache-instance.js +1 -0
- package/cache/interfaces/cache-instance.js.map +1 -0
- package/cache/interfaces/cache-key-options.js +1 -0
- package/cache/interfaces/cache-key-options.js.map +1 -0
- package/cache/interfaces/cache-options.js +1 -0
- package/cache/interfaces/cache-options.js.map +1 -0
- package/cache/interfaces/get-key-value-handle.js +1 -0
- package/cache/interfaces/get-key-value-handle.js.map +1 -0
- package/cache/interfaces/index.js +1 -0
- package/cache/interfaces/index.js.map +1 -0
- package/command/constants.js +1 -0
- package/command/constants.js.map +1 -0
- package/command/decorators/index.js +1 -0
- package/command/decorators/index.js.map +1 -0
- package/command/decorators/only-modify.decorator.js +1 -0
- package/command/decorators/only-modify.decorator.js.map +1 -0
- package/command/decorators/post-action.decorator.js +1 -0
- package/command/decorators/post-action.decorator.js.map +1 -0
- package/command/decorators/post-content.decorator.js +1 -0
- package/command/decorators/post-content.decorator.js.map +1 -0
- package/command/decorators/read-only.decorator.js +1 -0
- package/command/decorators/read-only.decorator.js.map +1 -0
- package/command/decorators/remove-action.decorator.js +1 -0
- package/command/decorators/remove-action.decorator.js.map +1 -0
- package/command/decorators/remove-content.decorator.js +1 -0
- package/command/decorators/remove-content.decorator.js.map +1 -0
- package/command/functions/execute-post.js +7 -7
- package/command/functions/execute-post.js.map +1 -0
- package/command/functions/execute-remove.js +1 -0
- package/command/functions/execute-remove.js.map +1 -0
- package/command/interfaces/command-property.js +1 -0
- package/command/interfaces/command-property.js.map +1 -0
- package/command/interfaces/index.js +1 -0
- package/command/interfaces/index.js.map +1 -0
- package/command/interfaces/post-action-options.js +1 -0
- package/command/interfaces/post-action-options.js.map +1 -0
- package/command/interfaces/post-content.js +1 -0
- package/command/interfaces/post-content.js.map +1 -0
- package/command/interfaces/remove-aciton-options.js +1 -0
- package/command/interfaces/remove-aciton-options.js.map +1 -0
- package/command/interfaces/remove-content.js +1 -0
- package/command/interfaces/remove-content.js.map +1 -0
- package/command/services/post-action-builder.js +13 -2
- package/command/services/post-action-builder.js.map +1 -0
- package/command/services/remove-action-builder.js +13 -3
- package/command/services/remove-action-builder.js.map +1 -0
- package/command/utils/deep-merge-keep-undefined.js +1 -0
- package/command/utils/deep-merge-keep-undefined.js.map +1 -0
- package/common/entities/base-entity.d.ts +1 -1
- package/common/entities/base-entity.js +3 -0
- package/common/entities/base-entity.js.map +1 -0
- package/common/index.js +1 -0
- package/common/index.js.map +1 -0
- package/common/interfaces/enum/index.js +1 -0
- package/common/interfaces/enum/index.js.map +1 -0
- package/common/interfaces/enum/object-type.d.ts +2 -1
- package/common/interfaces/enum/object-type.js +2 -0
- package/common/interfaces/enum/object-type.js.map +1 -0
- package/common/interfaces/enum/property-type.js +1 -0
- package/common/interfaces/enum/property-type.js.map +1 -0
- package/common/interfaces/enum/request-status.js +1 -0
- package/common/interfaces/enum/request-status.js.map +1 -0
- package/common/interfaces/get-type-callback.js +1 -0
- package/common/interfaces/get-type-callback.js.map +1 -0
- package/common/interfaces/index.js +1 -0
- package/common/interfaces/index.js.map +1 -0
- package/common/models/executed-response.js +1 -0
- package/common/models/executed-response.js.map +1 -0
- package/controllers/constants/controller-transaction.d.ts +2 -0
- package/controllers/constants/controller-transaction.js +6 -0
- package/controllers/constants/controller-transaction.js.map +1 -0
- package/controllers/constants.js +1 -0
- package/controllers/constants.js.map +1 -0
- package/controllers/controller.controller.d.ts +1 -1
- package/controllers/controller.controller.js +5 -4
- package/controllers/controller.controller.js.map +1 -0
- package/controllers/decorators/actions/action-content.decorator.js +1 -0
- package/controllers/decorators/actions/action-content.decorator.js.map +1 -0
- package/controllers/decorators/actions/action.decorator.js +1 -0
- package/controllers/decorators/actions/action.decorator.js.map +1 -0
- package/controllers/decorators/actions/index.js +1 -0
- package/controllers/decorators/actions/index.js.map +1 -0
- package/controllers/decorators/controller.decorator.js +9 -0
- package/controllers/decorators/controller.decorator.js.map +1 -0
- package/controllers/decorators/http-methods/custom-response.decorator.js +1 -0
- package/controllers/decorators/http-methods/custom-response.decorator.js.map +1 -0
- package/controllers/decorators/http-methods/delete.decorator.js +1 -0
- package/controllers/decorators/http-methods/delete.decorator.js.map +1 -0
- package/controllers/decorators/http-methods/from-body.decorator.js +1 -0
- package/controllers/decorators/http-methods/from-body.decorator.js.map +1 -0
- package/controllers/decorators/http-methods/from-headers.decorator.js +1 -0
- package/controllers/decorators/http-methods/from-headers.decorator.js.map +1 -0
- package/controllers/decorators/http-methods/from-params.decorator.js +1 -0
- package/controllers/decorators/http-methods/from-params.decorator.js.map +1 -0
- package/controllers/decorators/http-methods/from-query.decorator.js +1 -0
- package/controllers/decorators/http-methods/from-query.decorator.js.map +1 -0
- package/controllers/decorators/http-methods/get.decorator.js +1 -0
- package/controllers/decorators/http-methods/get.decorator.js.map +1 -0
- package/controllers/decorators/http-methods/http-req.decorator.js +1 -0
- package/controllers/decorators/http-methods/http-req.decorator.js.map +1 -0
- package/controllers/decorators/http-methods/index.js +1 -0
- package/controllers/decorators/http-methods/index.js.map +1 -0
- package/controllers/decorators/http-methods/patch.decorator.js +1 -0
- package/controllers/decorators/http-methods/patch.decorator.js.map +1 -0
- package/controllers/decorators/http-methods/post.decorator.js +1 -0
- package/controllers/decorators/http-methods/post.decorator.js.map +1 -0
- package/controllers/decorators/http-methods/put.decorator.js +1 -0
- package/controllers/decorators/http-methods/put.decorator.js.map +1 -0
- package/controllers/decorators/http-methods/response-type.decorator.js +1 -0
- package/controllers/decorators/http-methods/response-type.decorator.js.map +1 -0
- package/controllers/decorators/index.d.ts +1 -0
- package/controllers/decorators/index.js +2 -0
- package/controllers/decorators/index.js.map +1 -0
- package/controllers/decorators/no-auth.decorator.js +1 -0
- package/controllers/decorators/no-auth.decorator.js.map +1 -0
- package/controllers/decorators/request-context.decorator.js +1 -0
- package/controllers/decorators/request-context.decorator.js.map +1 -0
- package/controllers/decorators/session.decorator.js +1 -0
- package/controllers/decorators/session.decorator.js.map +1 -0
- package/controllers/decorators/transaction.decorator.d.ts +7 -0
- package/controllers/decorators/transaction.decorator.js +23 -0
- package/controllers/decorators/transaction.decorator.js.map +1 -0
- package/controllers/index.js +1 -0
- package/controllers/index.js.map +1 -0
- package/controllers/interfaces/action-options.js +1 -0
- package/controllers/interfaces/action-options.js.map +1 -0
- package/controllers/interfaces/content-options.js +1 -0
- package/controllers/interfaces/content-options.js.map +1 -0
- package/controllers/interfaces/controller-object.d.ts +1 -0
- package/controllers/interfaces/controller-object.js +1 -0
- package/controllers/interfaces/controller-object.js.map +1 -0
- package/controllers/interfaces/controller-options.d.ts +1 -0
- package/controllers/interfaces/controller-options.js +1 -0
- package/controllers/interfaces/controller-options.js.map +1 -0
- package/controllers/interfaces/controller-property.d.ts +3 -0
- package/controllers/interfaces/controller-property.js +1 -0
- package/controllers/interfaces/controller-property.js.map +1 -0
- package/controllers/interfaces/enum/index.js +1 -0
- package/controllers/interfaces/enum/index.js.map +1 -0
- package/controllers/interfaces/enum/request-interceptor.js +1 -0
- package/controllers/interfaces/enum/request-interceptor.js.map +1 -0
- package/controllers/interfaces/get-only-data.js +1 -0
- package/controllers/interfaces/get-only-data.js.map +1 -0
- package/controllers/interfaces/index.js +1 -0
- package/controllers/interfaces/index.js.map +1 -0
- package/controllers/interfaces/on-before-validation-data.js +1 -0
- package/controllers/interfaces/on-before-validation-data.js.map +1 -0
- package/controllers/interfaces/response-options.js +1 -0
- package/controllers/interfaces/response-options.js.map +1 -0
- package/controllers/services/default-action-builder.js +43 -5
- package/controllers/services/default-action-builder.js.map +1 -0
- package/controllers/services/restful-action-builder.d.ts +1 -0
- package/controllers/services/restful-action-builder.js +31 -0
- package/controllers/services/restful-action-builder.js.map +1 -0
- package/core/core.controller.d.ts +2 -3
- package/core/core.controller.js +20 -11
- package/core/core.controller.js.map +1 -0
- package/core/functions/bootstrap.js +1 -0
- package/core/functions/bootstrap.js.map +1 -0
- package/core/functions/create-action.js +2 -3
- package/core/functions/create-action.js.map +1 -0
- package/core/functions/create-interceptor.js +3 -2
- package/core/functions/create-interceptor.js.map +1 -0
- package/core/functions/format-message.js +1 -0
- package/core/functions/format-message.js.map +1 -0
- package/core/functions/get-action-path.js +1 -0
- package/core/functions/get-action-path.js.map +1 -0
- package/core/functions/get-env.js +1 -0
- package/core/functions/get-env.js.map +1 -0
- package/core/functions/get-node-key.js +1 -0
- package/core/functions/get-node-key.js.map +1 -0
- package/core/functions/get-other-types.js +1 -0
- package/core/functions/get-other-types.js.map +1 -0
- package/core/functions/resolve-action-transactional.d.ts +3 -0
- package/core/functions/resolve-action-transactional.js +10 -0
- package/core/functions/resolve-action-transactional.js.map +1 -0
- package/core/index.js +1 -0
- package/core/index.js.map +1 -0
- package/core/interfaces/action-def.d.ts +2 -5
- package/core/interfaces/action-def.js +1 -0
- package/core/interfaces/action-def.js.map +1 -0
- package/core/interfaces/action-docs.d.ts +18 -3
- package/core/interfaces/action-docs.js +1 -0
- package/core/interfaces/action-docs.js.map +1 -0
- package/core/interfaces/action-handle.d.ts +5 -0
- package/core/interfaces/action-handle.js +3 -0
- package/core/interfaces/action-handle.js.map +1 -0
- package/core/interfaces/core-options.d.ts +1 -0
- package/core/interfaces/core-options.js +1 -0
- package/core/interfaces/core-options.js.map +1 -0
- package/core/interfaces/docs-options.js +1 -0
- package/core/interfaces/docs-options.js.map +1 -0
- package/core/interfaces/enum/connect-type.js +1 -0
- package/core/interfaces/enum/connect-type.js.map +1 -0
- package/core/interfaces/enum/index.js +1 -0
- package/core/interfaces/enum/index.js.map +1 -0
- package/core/interfaces/format-message-options.js +1 -0
- package/core/interfaces/format-message-options.js.map +1 -0
- package/core/interfaces/forms-options.js +1 -0
- package/core/interfaces/forms-options.js.map +1 -0
- package/core/interfaces/index.js +1 -0
- package/core/interfaces/index.js.map +1 -0
- package/core/interfaces/interceptor.d.ts +1 -1
- package/core/interfaces/interceptor.js +1 -0
- package/core/interfaces/interceptor.js.map +1 -0
- package/core/interfaces/locale-options.js +1 -0
- package/core/interfaces/locale-options.js.map +1 -0
- package/core/interfaces/mapper.js +1 -0
- package/core/interfaces/mapper.js.map +1 -0
- package/core/interfaces/object-docs.js +1 -0
- package/core/interfaces/object-docs.js.map +1 -0
- package/core/interfaces/object.d.ts +4 -2
- package/core/interfaces/object.js +1 -0
- package/core/interfaces/object.js.map +1 -0
- package/core/interfaces/pending-action.js +1 -0
- package/core/interfaces/pending-action.js.map +1 -0
- package/core/interfaces/property-docs.js +1 -0
- package/core/interfaces/property-docs.js.map +1 -0
- package/core/interfaces/property.js +1 -0
- package/core/interfaces/property.js.map +1 -0
- package/core/interfaces/request-callback-handle.js +1 -0
- package/core/interfaces/request-callback-handle.js.map +1 -0
- package/core/interfaces/request-callback.js +1 -0
- package/core/interfaces/request-callback.js.map +1 -0
- package/core/interfaces/request-callbacks.js +1 -0
- package/core/interfaces/request-callbacks.js.map +1 -0
- package/core/interfaces/request-context.d.ts +2 -2
- package/core/interfaces/request-context.js +1 -0
- package/core/interfaces/request-context.js.map +1 -0
- package/core/interfaces/request-data.js +1 -0
- package/core/interfaces/request-data.js.map +1 -0
- package/core/interfaces/router-options.js +1 -0
- package/core/interfaces/router-options.js.map +1 -0
- package/core/interfaces/sanitizer.js +1 -0
- package/core/interfaces/sanitizer.js.map +1 -0
- package/core/interfaces/storage-options.js +1 -0
- package/core/interfaces/storage-options.js.map +1 -0
- package/core/interfaces/translations-options.js +1 -0
- package/core/interfaces/translations-options.js.map +1 -0
- package/core/interfaces/transport-options.js +1 -0
- package/core/interfaces/transport-options.js.map +1 -0
- package/core/services/context-builder.js +1 -0
- package/core/services/context-builder.js.map +1 -0
- package/core/services/locale-service.js +1 -0
- package/core/services/locale-service.js.map +1 -0
- package/core/services/node-control.service.js +1 -0
- package/core/services/node-control.service.js.map +1 -0
- package/core/services/object-loader.js +1 -0
- package/core/services/object-loader.js.map +1 -0
- package/core/services/request-executor.d.ts +8 -0
- package/core/services/request-executor.js +89 -0
- package/core/services/request-executor.js.map +1 -0
- package/core/services/request-router.js +4 -3
- package/core/services/request-router.js.map +1 -0
- package/database/contexts/index.js +1 -0
- package/database/contexts/index.js.map +1 -0
- package/database/contexts/transaction-context.js +1 -0
- package/database/contexts/transaction-context.js.map +1 -0
- package/database/database.controller.d.ts +3 -1
- package/database/database.controller.js +15 -15
- package/database/database.controller.js.map +1 -0
- package/database/decorators/column.decorator.js +1 -0
- package/database/decorators/column.decorator.js.map +1 -0
- package/database/decorators/entity.decorator.d.ts +3 -1
- package/database/decorators/entity.decorator.js +15 -5
- package/database/decorators/entity.decorator.js.map +1 -0
- package/database/decorators/external-column.decorator.d.ts +17 -0
- package/database/decorators/external-column.decorator.js +30 -0
- package/database/decorators/external-column.decorator.js.map +1 -0
- package/database/decorators/id-generated.decorator.js +1 -0
- package/database/decorators/id-generated.decorator.js.map +1 -0
- package/database/decorators/id.decorator.js +1 -0
- package/database/decorators/id.decorator.js.map +1 -0
- package/database/decorators/index.d.ts +2 -0
- package/database/decorators/index.js +3 -0
- package/database/decorators/index.js.map +1 -0
- package/database/decorators/inject-data-source.decorator.js +1 -0
- package/database/decorators/inject-data-source.decorator.js.map +1 -0
- package/database/decorators/inject-repository.decorator.js +1 -0
- package/database/decorators/inject-repository.decorator.js.map +1 -0
- package/database/decorators/jsonb-index.decorator.d.ts +21 -0
- package/database/decorators/jsonb-index.decorator.js +23 -0
- package/database/decorators/jsonb-index.decorator.js.map +1 -0
- package/database/decorators/protect-context-column.decorator.js +1 -0
- package/database/decorators/protect-context-column.decorator.js.map +1 -0
- package/database/decorators/protect-entity.decorator.js +1 -0
- package/database/decorators/protect-entity.decorator.js.map +1 -0
- package/database/decorators/protect-key-column.decorator.js +1 -0
- package/database/decorators/protect-key-column.decorator.js.map +1 -0
- package/database/decorators/protect-target-column.decorator.js +1 -0
- package/database/decorators/protect-target-column.decorator.js.map +1 -0
- package/database/decorators/protected-entity.decorator.js +1 -0
- package/database/decorators/protected-entity.decorator.js.map +1 -0
- package/database/decorators/relation.decorator.d.ts +2 -2
- package/database/decorators/relation.decorator.js +1 -0
- package/database/decorators/relation.decorator.js.map +1 -0
- package/database/decorators/virtual-column.decorator.js +1 -0
- package/database/decorators/virtual-column.decorator.js.map +1 -0
- package/database/{environment.d.ts → env.d.ts} +3 -1
- package/database/{environment.js → env.js} +4 -2
- package/database/env.js.map +1 -0
- package/database/exports/index.js +1 -0
- package/database/exports/index.js.map +1 -0
- package/database/exports/typeorm.js +1 -0
- package/database/exports/typeorm.js.map +1 -0
- package/database/extensions/select-query-builder.d.ts +1 -5
- package/database/extensions/select-query-builder.js +1 -0
- package/database/extensions/select-query-builder.js.map +1 -0
- package/database/functions/column-decorator.js +3 -0
- package/database/functions/column-decorator.js.map +1 -0
- package/database/functions/create-entity.js +1 -0
- package/database/functions/create-entity.js.map +1 -0
- package/database/functions/create-new-class.js +1 -0
- package/database/functions/create-new-class.js.map +1 -0
- package/database/functions/entity-decorator.js +1 -0
- package/database/functions/entity-decorator.js.map +1 -0
- package/database/functions/execute-if-not-exists-column.js +1 -0
- package/database/functions/execute-if-not-exists-column.js.map +1 -0
- package/database/functions/execute-if-not-exists-table.js +1 -0
- package/database/functions/execute-if-not-exists-table.js.map +1 -0
- package/database/functions/find-relation.d.ts +2 -1
- package/database/functions/find-relation.js +4 -3
- package/database/functions/find-relation.js.map +1 -0
- package/database/functions/generate-entity-id.d.ts +2 -0
- package/database/functions/{generate-id.js → generate-entity-id.js} +3 -2
- package/database/functions/generate-entity-id.js.map +1 -0
- package/database/functions/get-column-type.js +1 -0
- package/database/functions/get-column-type.js.map +1 -0
- package/database/functions/get-id-property.js +1 -0
- package/database/functions/get-id-property.js.map +1 -0
- package/database/functions/get-name-by-strategy.js +1 -0
- package/database/functions/get-name-by-strategy.js.map +1 -0
- package/database/functions/get-primitive-type.js +1 -0
- package/database/functions/get-primitive-type.js.map +1 -0
- package/database/functions/get-relations.d.ts +1 -1
- package/database/functions/get-relations.js +1 -0
- package/database/functions/get-relations.js.map +1 -0
- package/database/functions/has-update.js +1 -0
- package/database/functions/has-update.js.map +1 -0
- package/database/functions/inject-repository-handle.js +1 -0
- package/database/functions/inject-repository-handle.js.map +1 -0
- package/database/functions/object-to-jsonb.js +1 -0
- package/database/functions/object-to-jsonb.js.map +1 -0
- package/database/functions/register-column.js +1 -0
- package/database/functions/register-column.js.map +1 -0
- package/database/functions/register-entity.js +1 -0
- package/database/functions/register-entity.js.map +1 -0
- package/database/functions/register-generated-id.js +1 -0
- package/database/functions/register-generated-id.js.map +1 -0
- package/database/functions/register-id.js +1 -0
- package/database/functions/register-id.js.map +1 -0
- package/database/functions/register-relation.js +1 -0
- package/database/functions/register-relation.js.map +1 -0
- package/database/functions/relation-decorator.js +3 -2
- package/database/functions/relation-decorator.js.map +1 -0
- package/database/functions/use-protector.js +2 -1
- package/database/functions/use-protector.js.map +1 -0
- package/database/functions/use-repository.js +1 -0
- package/database/functions/use-repository.js.map +1 -0
- package/database/functions/use-transaction.d.ts +1 -0
- package/database/functions/use-transaction.js +3 -6
- package/database/functions/use-transaction.js.map +1 -0
- package/database/index.js +1 -0
- package/database/index.js.map +1 -0
- package/database/interfaces/base-columns-name-override.js +1 -0
- package/database/interfaces/base-columns-name-override.js.map +1 -0
- package/database/interfaces/column-def.js +1 -0
- package/database/interfaces/column-def.js.map +1 -0
- package/database/interfaces/connection.options.js +1 -0
- package/database/interfaces/connection.options.js.map +1 -0
- package/database/interfaces/direact-alias.js +1 -0
- package/database/interfaces/direact-alias.js.map +1 -0
- package/database/interfaces/entity-dto-object.d.ts +7 -0
- package/database/interfaces/entity-dto-object.js +3 -0
- package/database/interfaces/entity-dto-object.js.map +1 -0
- package/database/interfaces/entity-object.d.ts +1 -0
- package/database/interfaces/entity-object.js +1 -0
- package/database/interfaces/entity-object.js.map +1 -0
- package/database/interfaces/entity-options.js +1 -0
- package/database/interfaces/entity-options.js.map +1 -0
- package/database/interfaces/entity-property.d.ts +14 -0
- package/database/interfaces/entity-property.js +1 -0
- package/database/interfaces/entity-property.js.map +1 -0
- package/database/interfaces/enum/column-def-type.js +1 -0
- package/database/interfaces/enum/column-def-type.js.map +1 -0
- package/database/interfaces/enum/index.js +1 -0
- package/database/interfaces/enum/index.js.map +1 -0
- package/database/interfaces/enum/naming-strategy-type.js +1 -0
- package/database/interfaces/enum/naming-strategy-type.js.map +1 -0
- package/database/interfaces/enum/nano-id-alphabet-type.js +1 -0
- package/database/interfaces/enum/nano-id-alphabet-type.js.map +1 -0
- package/database/interfaces/enum/order-by-direction.js +1 -0
- package/database/interfaces/enum/order-by-direction.js.map +1 -0
- package/database/interfaces/enum/primary-strategy-type.js +1 -0
- package/database/interfaces/enum/primary-strategy-type.js.map +1 -0
- package/database/interfaces/enum/relation-path-type.js +1 -0
- package/database/interfaces/enum/relation-path-type.js.map +1 -0
- package/database/interfaces/execute-callback.js +1 -0
- package/database/interfaces/execute-callback.js.map +1 -0
- package/database/interfaces/id-column-def.js +1 -0
- package/database/interfaces/id-column-def.js.map +1 -0
- package/database/interfaces/index.js +1 -0
- package/database/interfaces/index.js.map +1 -0
- package/database/interfaces/inverse-alias.js +1 -0
- package/database/interfaces/inverse-alias.js.map +1 -0
- package/database/interfaces/nano-id-column-options.js +1 -0
- package/database/interfaces/nano-id-column-options.js.map +1 -0
- package/database/interfaces/path.d.ts +6 -2
- package/database/interfaces/path.js +1 -0
- package/database/interfaces/path.js.map +1 -0
- package/database/interfaces/protector.js +1 -0
- package/database/interfaces/protector.js.map +1 -0
- package/database/interfaces/register-one-to-many-handle.js +1 -0
- package/database/interfaces/register-one-to-many-handle.js.map +1 -0
- package/database/interfaces/register-one-to-many.js +1 -0
- package/database/interfaces/register-one-to-many.js.map +1 -0
- package/database/interfaces/relation-def.js +1 -0
- package/database/interfaces/relation-def.js.map +1 -0
- package/database/interfaces/relation-path.js +1 -0
- package/database/interfaces/relation-path.js.map +1 -0
- package/database/interfaces/relation.options.js +1 -0
- package/database/interfaces/relation.options.js.map +1 -0
- package/database/interfaces/repository.js +1 -0
- package/database/interfaces/repository.js.map +1 -0
- package/database/interfaces/virtual-select.d.ts +4 -0
- package/database/interfaces/virtual-select.js +3 -0
- package/database/interfaces/virtual-select.js.map +1 -0
- package/database/migrations/1737637321043-UUIDVarcharMigration.js +3 -2
- package/database/migrations/1737637321043-UUIDVarcharMigration.js.map +1 -0
- package/database/migrations/use-uuid-varchar-migration.js +3 -2
- package/database/migrations/use-uuid-varchar-migration.js.map +1 -0
- package/database/services/jsonb-index-creator.d.ts +23 -0
- package/database/services/jsonb-index-creator.js +156 -0
- package/database/services/jsonb-index-creator.js.map +1 -0
- package/database/services/paths-builder.js +1 -0
- package/database/services/paths-builder.js.map +1 -0
- package/database/services/protect-builder.d.ts +3 -2
- package/database/services/protect-builder.js +3 -2
- package/database/services/protect-builder.js.map +1 -0
- package/database/services/repository.service.d.ts +1 -1
- package/database/services/repository.service.js +4 -6
- package/database/services/repository.service.js.map +1 -0
- package/docs/controllers/controllers.d.ts +2 -0
- package/docs/controllers/controllers.js +6 -0
- package/docs/controllers/controllers.js.map +1 -0
- package/docs/controllers/docs.controller.d.ts +7 -0
- package/docs/controllers/docs.controller.js +58 -0
- package/docs/controllers/docs.controller.js.map +1 -0
- package/docs/docs.d.ts +10 -0
- package/docs/docs.js +10 -0
- package/docs/docs.js.map +1 -0
- package/docs/docs.module.d.ts +6 -0
- package/docs/docs.module.js +70 -0
- package/docs/docs.module.js.map +1 -0
- package/docs/entities/docs-controller-action.entity.d.ts +23 -0
- package/docs/entities/docs-controller-action.entity.js +148 -0
- package/docs/entities/docs-controller-action.entity.js.map +1 -0
- package/docs/entities/docs-controller.entity.d.ts +9 -0
- package/docs/entities/docs-controller.entity.js +54 -0
- package/docs/entities/docs-controller.entity.js.map +1 -0
- package/docs/entities/docs-version.entity.d.ts +10 -0
- package/docs/entities/docs-version.entity.js +59 -0
- package/docs/entities/docs-version.entity.js.map +1 -0
- package/docs/entities/entities.d.ts +4 -0
- package/docs/entities/entities.js +12 -0
- package/docs/entities/entities.js.map +1 -0
- package/docs/models/docs-model-property-validator.d.ts +11 -0
- package/docs/models/docs-model-property-validator.js +53 -0
- package/docs/models/docs-model-property-validator.js.map +1 -0
- package/docs/models/docs-model-property.d.ts +11 -0
- package/docs/models/docs-model-property.js +55 -0
- package/docs/models/docs-model-property.js.map +1 -0
- package/docs/models/docs-model.d.ts +7 -0
- package/docs/models/docs-model.js +43 -0
- package/docs/models/docs-model.js.map +1 -0
- package/docs/queries/docs-controller-action.query.d.ts +1 -0
- package/docs/queries/docs-controller-action.query.js +10 -0
- package/docs/queries/docs-controller-action.query.js.map +1 -0
- package/docs/queries/docs-controller.query.d.ts +1 -0
- package/docs/queries/docs-controller.query.js +10 -0
- package/docs/queries/docs-controller.query.js.map +1 -0
- package/docs/queries/docs-model.query.d.ts +1 -0
- package/docs/queries/docs-model.query.js +17 -0
- package/docs/queries/docs-model.query.js.map +1 -0
- package/docs/queries/docs-version.query.d.ts +1 -0
- package/docs/queries/docs-version.query.js +10 -0
- package/docs/queries/docs-version.query.js.map +1 -0
- package/docs/services/docs-controller-action.service.d.ts +19 -0
- package/docs/services/docs-controller-action.service.js +106 -0
- package/docs/services/docs-controller-action.service.js.map +1 -0
- package/docs/services/docs-controller.service.d.ts +7 -0
- package/docs/services/docs-controller.service.js +47 -0
- package/docs/services/docs-controller.service.js.map +1 -0
- package/docs/services/docs-version.service.d.ts +7 -0
- package/docs/services/docs-version.service.js +51 -0
- package/docs/services/docs-version.service.js.map +1 -0
- package/docs/services/docs.service.d.ts +10 -0
- package/docs/services/docs.service.js +48 -0
- package/docs/services/docs.service.js.map +1 -0
- package/forms/entities/form.js +1 -0
- package/forms/entities/form.js.map +1 -0
- package/forms/entities/property.js +1 -0
- package/forms/entities/property.js.map +1 -0
- package/forms/forms.controller.js +1 -0
- package/forms/forms.controller.js.map +1 -0
- package/forms/interfaces/form-item.js +1 -0
- package/forms/interfaces/form-item.js.map +1 -0
- package/forms/interfaces/form.js +1 -0
- package/forms/interfaces/form.js.map +1 -0
- package/forms/interfaces/property.js +1 -0
- package/forms/interfaces/property.js.map +1 -0
- package/forms/migrations/1725969116484-CreateFormsTables.js +1 -0
- package/forms/migrations/1725969116484-CreateFormsTables.js.map +1 -0
- package/forms/models/form-load.request.js +1 -0
- package/forms/models/form-load.request.js.map +1 -0
- package/forms/queries/form.query.d.ts +1 -1
- package/forms/queries/form.query.js +1 -0
- package/forms/queries/form.query.js.map +1 -0
- package/forms/queries/property.query.d.ts +1 -1
- package/forms/queries/property.query.js +1 -0
- package/forms/queries/property.query.js.map +1 -0
- package/forms/requests/form.request.js +1 -0
- package/forms/requests/form.request.js.map +1 -0
- package/forms/requests/property.request.js +1 -0
- package/forms/requests/property.request.js.map +1 -0
- package/forms/services/form.service.js +1 -0
- package/forms/services/form.service.js.map +1 -0
- package/forms/services/property.service.js +1 -0
- package/forms/services/property.service.js.map +1 -0
- package/forms/utils/build-form-validator.js +1 -0
- package/forms/utils/build-form-validator.js.map +1 -0
- package/forms/utils/get-form-items.js +1 -0
- package/forms/utils/get-form-items.js.map +1 -0
- package/global.d.ts +3 -1
- package/global.js +6 -2
- package/global.js.map +1 -0
- package/http/http.controller.d.ts +3 -6
- package/http/http.controller.js +4 -2
- package/http/http.controller.js.map +1 -0
- package/http/index.js +1 -0
- package/http/index.js.map +1 -0
- package/http/interfaces/csrf.options.js +1 -0
- package/http/interfaces/csrf.options.js.map +1 -0
- package/http/interfaces/http-request.js +1 -0
- package/http/interfaces/http-request.js.map +1 -0
- package/http/interfaces/http-response.js +1 -0
- package/http/interfaces/http-response.js.map +1 -0
- package/http/interfaces/http-settings.js +1 -0
- package/http/interfaces/http-settings.js.map +1 -0
- package/http/interfaces/http-use.js +1 -0
- package/http/interfaces/http-use.js.map +1 -0
- package/http/interfaces/index.js +1 -0
- package/http/interfaces/index.js.map +1 -0
- package/http/interfaces/route.js +1 -0
- package/http/interfaces/route.js.map +1 -0
- package/index.d.ts +3 -1
- package/index.js +3 -6
- package/index.js.map +1 -0
- package/jobs/constants.js +1 -0
- package/jobs/constants.js.map +1 -0
- package/jobs/decorators/index.js +1 -0
- package/jobs/decorators/index.js.map +1 -0
- package/jobs/decorators/job.decorator.js +1 -0
- package/jobs/decorators/job.decorator.js.map +1 -0
- package/jobs/interfaces/index.js +1 -0
- package/jobs/interfaces/index.js.map +1 -0
- package/jobs/interfaces/job-data.js +1 -0
- package/jobs/interfaces/job-data.js.map +1 -0
- package/jobs/interfaces/job-executor.js +1 -0
- package/jobs/interfaces/job-executor.js.map +1 -0
- package/jobs/interfaces/job-object.js +1 -0
- package/jobs/interfaces/job-object.js.map +1 -0
- package/jobs/interfaces/job.options.js +1 -0
- package/jobs/interfaces/job.options.js.map +1 -0
- package/jobs/jobs.controller.js +3 -0
- package/jobs/jobs.controller.js.map +1 -0
- package/module/decorators/index.js +1 -0
- package/module/decorators/index.js.map +1 -0
- package/module/decorators/module.decorator.js +1 -0
- package/module/decorators/module.decorator.js.map +1 -0
- package/module/decorators/on-after-app-start.js +1 -0
- package/module/decorators/on-after-app-start.js.map +1 -0
- package/module/decorators/on-after-database-init.js +1 -0
- package/module/decorators/on-after-database-init.js.map +1 -0
- package/module/decorators/on-module-init.js +1 -0
- package/module/decorators/on-module-init.js.map +1 -0
- package/module/index.js +1 -0
- package/module/index.js.map +1 -0
- package/module/interfaces/index.js +1 -0
- package/module/interfaces/index.js.map +1 -0
- package/module/interfaces/module-events.js +1 -0
- package/module/interfaces/module-events.js.map +1 -0
- package/module/interfaces/module-object.js +1 -0
- package/module/interfaces/module-object.js.map +1 -0
- package/module/interfaces/module-options.d.ts +1 -0
- package/module/interfaces/module-options.js +1 -0
- package/module/interfaces/module-options.js.map +1 -0
- package/module/module.controller.d.ts +3 -2
- package/module/module.controller.js +6 -0
- package/module/module.controller.js.map +1 -0
- package/package.json +13 -11
- package/query/constants.js +1 -0
- package/query/constants.js.map +1 -0
- package/query/decorators/index.js +1 -0
- package/query/decorators/index.js.map +1 -0
- package/query/decorators/query-content.decorator.js +1 -0
- package/query/decorators/query-content.decorator.js.map +1 -0
- package/query/functions/add-join.js +9 -5
- package/query/functions/add-join.js.map +1 -0
- package/query/functions/collect-external-column-owners.d.ts +10 -0
- package/query/functions/collect-external-column-owners.js +100 -0
- package/query/functions/collect-external-column-owners.js.map +1 -0
- package/query/functions/create-query-builder.js +48 -16
- package/query/functions/create-query-builder.js.map +1 -0
- package/query/functions/create-query-cache-hash.d.ts +16 -0
- package/query/functions/create-query-cache-hash.js +70 -0
- package/query/functions/create-query-cache-hash.js.map +1 -0
- package/query/functions/create-query.d.ts +8 -3
- package/query/functions/create-query.js +16 -9
- package/query/functions/create-query.js.map +1 -0
- package/query/functions/describe-query-filter.js +8 -4
- package/query/functions/describe-query-filter.js.map +1 -0
- package/query/functions/execute-query.js +56 -14
- package/query/functions/execute-query.js.map +1 -0
- package/query/functions/expand-select-with-external-dependencies.d.ts +9 -0
- package/query/functions/expand-select-with-external-dependencies.js +34 -0
- package/query/functions/expand-select-with-external-dependencies.js.map +1 -0
- package/query/functions/external-column-owner-path.d.ts +5 -0
- package/query/functions/external-column-owner-path.js +18 -0
- package/query/functions/external-column-owner-path.js.map +1 -0
- package/query/functions/get-column-path.js +1 -0
- package/query/functions/get-column-path.js.map +1 -0
- package/query/functions/get-entity-object-class.d.ts +2 -0
- package/query/functions/get-entity-object-class.js +12 -0
- package/query/functions/get-entity-object-class.js.map +1 -0
- package/query/functions/get-native-select.d.ts +4 -1
- package/query/functions/get-native-select.js +12 -1
- package/query/functions/get-native-select.js.map +1 -0
- package/query/functions/load-properties.d.ts +20 -2
- package/query/functions/load-properties.js +123 -39
- package/query/functions/load-properties.js.map +1 -0
- package/query/functions/map-query-property-to-column-name.js +2 -1
- package/query/functions/map-query-property-to-column-name.js.map +1 -0
- package/query/functions/query-structure-cache.d.ts +24 -0
- package/query/functions/query-structure-cache.js +66 -0
- package/query/functions/query-structure-cache.js.map +1 -0
- package/query/functions/replace-property-key-to-column-name.js +1 -0
- package/query/functions/replace-property-key-to-column-name.js.map +1 -0
- package/query/interfaces/index.js +1 -0
- package/query/interfaces/index.js.map +1 -0
- package/query/interfaces/query-action-options.js +1 -0
- package/query/interfaces/query-action-options.js.map +1 -0
- package/query/interfaces/query-object.js +1 -0
- package/query/interfaces/query-object.js.map +1 -0
- package/query/interfaces/query.d.ts +46 -2
- package/query/interfaces/query.js +1 -0
- package/query/interfaces/query.js.map +1 -0
- package/query/models/base-query-response.js +1 -0
- package/query/models/base-query-response.js.map +1 -0
- package/query/services/query-action-builder.d.ts +4 -1
- package/query/services/query-action-builder.js +43 -14
- package/query/services/query-action-builder.js.map +1 -0
- package/security/auth.controller.js +1 -0
- package/security/auth.controller.js.map +1 -0
- package/security/constants.js +1 -0
- package/security/constants.js.map +1 -0
- package/security/env.js +1 -0
- package/security/env.js.map +1 -0
- package/security/functions/add-protect.js +1 -0
- package/security/functions/add-protect.js.map +1 -0
- package/security/functions/add-protected.js +1 -0
- package/security/functions/add-protected.js.map +1 -0
- package/security/functions/create-authorization.js +1 -0
- package/security/functions/create-authorization.js.map +1 -0
- package/security/functions/find-auth-context.js +1 -0
- package/security/functions/find-auth-context.js.map +1 -0
- package/security/functions/is-auth-enabled.js +1 -0
- package/security/functions/is-auth-enabled.js.map +1 -0
- package/security/functions/use-auth.js +1 -0
- package/security/functions/use-auth.js.map +1 -0
- package/security/index.js +1 -0
- package/security/index.js.map +1 -0
- package/security/interceptors/index.js +1 -0
- package/security/interceptors/index.js.map +1 -0
- package/security/interceptors/is-authorized.interceptor.js +1 -0
- package/security/interceptors/is-authorized.interceptor.js.map +1 -0
- package/security/interfaces/auth-controller.js +1 -0
- package/security/interfaces/auth-controller.js.map +1 -0
- package/security/interfaces/auth-object.js +1 -0
- package/security/interfaces/auth-object.js.map +1 -0
- package/security/interfaces/auth-property.js +1 -0
- package/security/interfaces/auth-property.js.map +1 -0
- package/security/interfaces/authorization-schema.js +1 -0
- package/security/interfaces/authorization-schema.js.map +1 -0
- package/security/interfaces/index.js +1 -0
- package/security/interfaces/index.js.map +1 -0
- package/security/interfaces/security-options.js +1 -0
- package/security/interfaces/security-options.js.map +1 -0
- package/security/interfaces/ssl-certificate.js +1 -0
- package/security/interfaces/ssl-certificate.js.map +1 -0
- package/security/models/auth-context-data.js +1 -0
- package/security/models/auth-context-data.js.map +1 -0
- package/security/models/auth-context.js +1 -0
- package/security/models/auth-context.js.map +1 -0
- package/security/models/auth-key.js +1 -0
- package/security/models/auth-key.js.map +1 -0
- package/security/models/get-user-permissions-payload.js +1 -0
- package/security/models/get-user-permissions-payload.js.map +1 -0
- package/security/models/get-user-permissions-response.js +1 -0
- package/security/models/get-user-permissions-response.js.map +1 -0
- package/security/models/set-user-permissions-payload.js +1 -0
- package/security/models/set-user-permissions-payload.js.map +1 -0
- package/security/requests/security.request.js +2 -1
- package/security/requests/security.request.js.map +1 -0
- package/security/services/authorization.service.js +1 -0
- package/security/services/authorization.service.js.map +1 -0
- package/storage/entities/metadata.entity.js +2 -1
- package/storage/entities/metadata.entity.js.map +1 -0
- package/storage/entities/storage.entity.js +2 -1
- package/storage/entities/storage.entity.js.map +1 -0
- package/storage/env.js +1 -0
- package/storage/env.js.map +1 -0
- package/storage/functions/index.js +1 -0
- package/storage/functions/index.js.map +1 -0
- package/storage/functions/set-storage-settings.js +1 -0
- package/storage/functions/set-storage-settings.js.map +1 -0
- package/storage/index.js +1 -0
- package/storage/index.js.map +1 -0
- package/storage/interfaces/directory-metadata.js +1 -0
- package/storage/interfaces/directory-metadata.js.map +1 -0
- package/storage/interfaces/enum/gcp-credentials-type.js +1 -0
- package/storage/interfaces/enum/gcp-credentials-type.js.map +1 -0
- package/storage/interfaces/enum/index.js +1 -0
- package/storage/interfaces/enum/index.js.map +1 -0
- package/storage/interfaces/enum/metadata-type.js +1 -0
- package/storage/interfaces/enum/metadata-type.js.map +1 -0
- package/storage/interfaces/enum/storage-type.js +1 -0
- package/storage/interfaces/enum/storage-type.js.map +1 -0
- package/storage/interfaces/file-metadata.js +1 -0
- package/storage/interfaces/file-metadata.js.map +1 -0
- package/storage/interfaces/index.js +1 -0
- package/storage/interfaces/index.js.map +1 -0
- package/storage/interfaces/metadata.js +1 -0
- package/storage/interfaces/metadata.js.map +1 -0
- package/storage/interfaces/storage-controller.js +1 -0
- package/storage/interfaces/storage-controller.js.map +1 -0
- package/storage/interfaces/storage-settings.js +1 -0
- package/storage/interfaces/storage-settings.js.map +1 -0
- package/storage/interfaces/storage.js +1 -0
- package/storage/interfaces/storage.js.map +1 -0
- package/storage/services/routes.service.js +1 -0
- package/storage/services/routes.service.js.map +1 -0
- package/storage/services/storage.service.d.ts +1 -1
- package/storage/services/storage.service.js +3 -3
- package/storage/services/storage.service.js.map +1 -0
- package/storage/storage.controller.js +1 -0
- package/storage/storage.controller.js.map +1 -0
- package/tasks/constants.d.ts +2 -2
- package/tasks/constants.js +4 -2
- package/tasks/constants.js.map +1 -0
- package/tasks/controllers/task.controller.d.ts +9 -0
- package/tasks/controllers/task.controller.js +53 -0
- package/tasks/controllers/task.controller.js.map +1 -0
- package/tasks/decorators/index.js +1 -0
- package/tasks/decorators/index.js.map +1 -0
- package/tasks/decorators/task.decorator.js +9 -3
- package/tasks/decorators/task.decorator.js.map +1 -0
- package/tasks/functions/create-task-message-controller.d.ts +3 -0
- package/tasks/functions/create-task-message-controller.js +15 -0
- package/tasks/functions/create-task-message-controller.js.map +1 -0
- package/tasks/functions/create-task-message-find.js +7 -6
- package/tasks/functions/create-task-message-find.js.map +1 -0
- package/tasks/functions/create-task-message-model.js +11 -0
- package/tasks/functions/create-task-message-model.js.map +1 -0
- package/tasks/functions/{create-task-message-receptor.d.ts → create-task-message-post.d.ts} +1 -1
- package/tasks/functions/create-task-message-post.js +29 -0
- package/tasks/functions/create-task-message-post.js.map +1 -0
- package/tasks/functions/create-task-message-query.d.ts +3 -0
- package/tasks/functions/create-task-message-query.js +23 -0
- package/tasks/functions/create-task-message-query.js.map +1 -0
- package/tasks/functions/create-task-message-retry.js +7 -6
- package/tasks/functions/create-task-message-retry.js.map +1 -0
- package/tasks/functions/create-task-message-schema.js +1 -0
- package/tasks/functions/create-task-message-schema.js.map +1 -0
- package/tasks/functions/create-task-naming.js +9 -11
- package/tasks/functions/create-task-naming.js.map +1 -0
- package/tasks/functions/generate-entity-id.js +1 -0
- package/tasks/functions/generate-entity-id.js.map +1 -0
- package/tasks/functions/get-check-table-exists-script.js +1 -0
- package/tasks/functions/get-check-table-exists-script.js.map +1 -0
- package/tasks/functions/get-create-table-partition-script.js +1 -0
- package/tasks/functions/get-create-table-partition-script.js.map +1 -0
- package/tasks/functions/get-create-table-script.js +15 -11
- package/tasks/functions/get-create-table-script.js.map +1 -0
- package/tasks/functions/get-database-connection-name.js +1 -0
- package/tasks/functions/get-database-connection-name.js.map +1 -0
- package/tasks/functions/get-database-uri.js +1 -0
- package/tasks/functions/get-database-uri.js.map +1 -0
- package/tasks/functions/get-partitions-of-table-script.js +1 -0
- package/tasks/functions/get-partitions-of-table-script.js.map +1 -0
- package/tasks/functions/get-pending-task-script.d.ts +1 -1
- package/tasks/functions/get-pending-task-script.js +17 -13
- package/tasks/functions/get-pending-task-script.js.map +1 -0
- package/tasks/functions/throw-task-error.js +1 -0
- package/tasks/functions/throw-task-error.js.map +1 -0
- package/tasks/index.d.ts +2 -0
- package/tasks/index.js +3 -0
- package/tasks/index.js.map +1 -0
- package/tasks/interfaces/index.js +1 -0
- package/tasks/interfaces/index.js.map +1 -0
- package/tasks/interfaces/task-naming.d.ts +3 -3
- package/tasks/interfaces/task-naming.js +1 -0
- package/tasks/interfaces/task-naming.js.map +1 -0
- package/tasks/interfaces/task-object.d.ts +4 -2
- package/tasks/interfaces/task-object.js +1 -0
- package/tasks/interfaces/task-object.js.map +1 -0
- package/tasks/interfaces/task-post-intercept.d.ts +1 -8
- package/tasks/interfaces/task-post-intercept.js +1 -0
- package/tasks/interfaces/task-post-intercept.js.map +1 -0
- package/tasks/interfaces/task-runner.d.ts +2 -1
- package/tasks/interfaces/task-runner.js +1 -0
- package/tasks/interfaces/task-runner.js.map +1 -0
- package/tasks/interfaces/task-search-intercept.js +1 -0
- package/tasks/interfaces/task-search-intercept.js.map +1 -0
- package/tasks/interfaces/task-settings.d.ts +3 -1
- package/tasks/interfaces/task-settings.js +1 -0
- package/tasks/interfaces/task-settings.js.map +1 -0
- package/tasks/models/index.d.ts +3 -0
- package/tasks/models/index.js +20 -0
- package/tasks/models/index.js.map +1 -0
- package/tasks/models/task-error.js +2 -1
- package/tasks/models/task-error.js.map +1 -0
- package/tasks/models/task-message-find.js +1 -0
- package/tasks/models/task-message-find.js.map +1 -0
- package/tasks/models/task-message.d.ts +3 -3
- package/tasks/models/task-message.js +32 -5
- package/tasks/models/task-message.js.map +1 -0
- package/tasks/services/task-manager.service.js +7 -9
- package/tasks/services/task-manager.service.js.map +1 -0
- package/tasks/services/task-runner.service.d.ts +7 -0
- package/tasks/services/task-runner.service.js +61 -39
- package/tasks/services/task-runner.service.js.map +1 -0
- package/tasks/tasks.controller.d.ts +2 -10
- package/tasks/tasks.controller.js +4 -49
- package/tasks/tasks.controller.js.map +1 -0
- package/tasks/tasks.module.d.ts +12 -0
- package/tasks/tasks.module.js +65 -0
- package/tasks/tasks.module.js.map +1 -0
- package/translations/{requests/translation.request.d.ts → controllers/translation.controller.d.ts} +1 -1
- package/translations/{requests/translation.request.js → controllers/translation.controller.js} +23 -19
- package/translations/controllers/translation.controller.js.map +1 -0
- package/translations/entities/translation-config.entity.js +1 -0
- package/translations/entities/translation-config.entity.js.map +1 -0
- package/translations/entities/translation-values.entity.d.ts +1 -1
- package/translations/entities/translation-values.entity.js +12 -6
- package/translations/entities/translation-values.entity.js.map +1 -0
- package/translations/env.js +1 -0
- package/translations/env.js.map +1 -0
- package/translations/functions/check-can-use.js +1 -0
- package/translations/functions/check-can-use.js.map +1 -0
- package/translations/functions/create-translation-config.js +1 -0
- package/translations/functions/create-translation-config.js.map +1 -0
- package/translations/functions/create-translation-values.js +3 -5
- package/translations/functions/create-translation-values.js.map +1 -0
- package/translations/functions/get-translation-config.js +1 -0
- package/translations/functions/get-translation-config.js.map +1 -0
- package/translations/interfaces/translation-config.js +1 -0
- package/translations/interfaces/translation-config.js.map +1 -0
- package/translations/interfaces/translation-values.js +1 -0
- package/translations/interfaces/translation-values.js.map +1 -0
- package/translations/interfaces/translator-handle.js +1 -0
- package/translations/interfaces/translator-handle.js.map +1 -0
- package/translations/migrations/1723760669185-CreateTranslationTables.js +4 -3
- package/translations/migrations/1723760669185-CreateTranslationTables.js.map +1 -0
- package/translations/models/get-values.request.js +1 -0
- package/translations/models/get-values.request.js.map +1 -0
- package/translations/models/get-values.response.js +1 -0
- package/translations/models/get-values.response.js.map +1 -0
- package/translations/queries/translation-config.query.d.ts +1 -1
- package/translations/queries/translation-config.query.js +1 -0
- package/translations/queries/translation-config.query.js.map +1 -0
- package/translations/queries/translation-values.query.d.ts +1 -1
- package/translations/queries/translation-values.query.js +2 -1
- package/translations/queries/translation-values.query.js.map +1 -0
- package/translations/services/translations.service.js +1 -0
- package/translations/services/translations.service.js.map +1 -0
- package/translations/services/translator.service.js +1 -0
- package/translations/services/translator.service.js.map +1 -0
- package/translations/translations.controller.d.ts +1 -1
- package/translations/translations.controller.js +8 -9
- package/translations/translations.controller.js.map +1 -0
- package/transport/entities/transport-client.js +1 -0
- package/transport/entities/transport-client.js.map +1 -0
- package/transport/entities/transport-gateway-status.js +1 -0
- package/transport/entities/transport-gateway-status.js.map +1 -0
- package/transport/entities/transport-gateway.js +1 -0
- package/transport/entities/transport-gateway.js.map +1 -0
- package/transport/environment.js +1 -0
- package/transport/environment.js.map +1 -0
- package/transport/index.js +1 -0
- package/transport/index.js.map +1 -0
- package/transport/interfaces/index.js +1 -0
- package/transport/interfaces/index.js.map +1 -0
- package/transport/interfaces/transport-module-options.js +1 -0
- package/transport/interfaces/transport-module-options.js.map +1 -0
- package/transport/transport.module.js +1 -0
- package/transport/transport.module.js.map +1 -0
- package/web-socket/constants.js +1 -0
- package/web-socket/constants.js.map +1 -0
- package/web-socket/functions/encode-message.js +1 -0
- package/web-socket/functions/encode-message.js.map +1 -0
- package/web-socket/functions/get-fake-http-context.js +1 -0
- package/web-socket/functions/get-fake-http-context.js.map +1 -0
- package/web-socket/functions/get-ip-address.js +1 -0
- package/web-socket/functions/get-ip-address.js.map +1 -0
- package/web-socket/functions/parse-message.js +1 -0
- package/web-socket/functions/parse-message.js.map +1 -0
- package/web-socket/index.js +1 -0
- package/web-socket/index.js.map +1 -0
- package/web-socket/interfaces/client.js +1 -0
- package/web-socket/interfaces/client.js.map +1 -0
- package/web-socket/interfaces/enum/client-type.js +1 -0
- package/web-socket/interfaces/enum/client-type.js.map +1 -0
- package/web-socket/interfaces/enum/index.js +1 -0
- package/web-socket/interfaces/enum/index.js.map +1 -0
- package/web-socket/interfaces/enum/message-type.js +1 -0
- package/web-socket/interfaces/enum/message-type.js.map +1 -0
- package/web-socket/interfaces/enum/ws-connection-type.js +1 -0
- package/web-socket/interfaces/enum/ws-connection-type.js.map +1 -0
- package/web-socket/interfaces/index.js +1 -0
- package/web-socket/interfaces/index.js.map +1 -0
- package/web-socket/interfaces/message.js +1 -0
- package/web-socket/interfaces/message.js.map +1 -0
- package/web-socket/interfaces/ws-connection.js +1 -0
- package/web-socket/interfaces/ws-connection.js.map +1 -0
- package/web-socket/web-socket.controller.js +1 -0
- package/web-socket/web-socket.controller.js.map +1 -0
- package/workers/functions/decode-message.js +1 -0
- package/workers/functions/decode-message.js.map +1 -0
- package/workers/functions/dispatch-task.js +1 -0
- package/workers/functions/dispatch-task.js.map +1 -0
- package/workers/functions/encode-message.js +1 -0
- package/workers/functions/encode-message.js.map +1 -0
- package/workers/interfaces/enum/index.js +1 -0
- package/workers/interfaces/enum/index.js.map +1 -0
- package/workers/interfaces/enum/worker-message-type.js +1 -0
- package/workers/interfaces/enum/worker-message-type.js.map +1 -0
- package/workers/interfaces/index.js +1 -0
- package/workers/interfaces/index.js.map +1 -0
- package/workers/interfaces/worker-data.js +1 -0
- package/workers/interfaces/worker-data.js.map +1 -0
- package/workers/interfaces/worker-message.js +1 -0
- package/workers/interfaces/worker-message.js.map +1 -0
- package/workers/workers.controller.d.ts +1 -1
- package/workers/workers.controller.js +11 -6
- package/workers/workers.controller.js.map +1 -0
- package/database/functions/generate-id.d.ts +0 -2
- package/tasks/functions/create-task-message-receptor.js +0 -23
- package/tasks/functions/create-task-message-trigger.d.ts +0 -2
- package/tasks/functions/create-task-message-trigger.js +0 -18
- package/tasks/functions/parse-task-message-search.d.ts +0 -20
- package/tasks/functions/parse-task-message-search.js +0 -62
- package/tasks/requests/task.request.d.ts +0 -17
- package/tasks/requests/task.request.js +0 -71
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"http.controller.js","sourceRoot":"./","sources":["http/http.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,6DAAsD;AAEtD,6CAA0C;AAC1C,sDAGiB;AAEjB,gDAA2B;AAC3B,oDAAgC;AAChC,6CAKqB;AAQrB,iCAAqC;AACrC,2BAAkC;AAClC,MAAM,QAAQ,GAAG,MAAM,CAAC;AACxB,MAAM,UAAU,GAAG,QAAQ,CAAC;AAC5B,MAAM,QAAQ,GAAG,MAAM,CAAC;AACxB,MAAM,QAAQ,GAAG,MAAM,CAAC;AACxB,MAAM,OAAO,GAAG,KAAK,CAAC;AACtB,MAAM,eAAe,GAAG,YAAY,CAAC;AAG9B,IAAM,cAAc,sBAApB,MAAM,cAAc;IAApB;QAOM,WAAM,GAAG,IAAI,eAAM,CAAC,MAAM,CAAC,CAAC;IAwIzC,CAAC;IAtIE,IAAI,OAAO,KAAK,OAAO,gBAAc,CAAC,QAAQ,CAAC,CAAC,CAAC;IACjD,IAAI,MAAM,KAAK,OAAO,gBAAc,CAAC,OAAO,CAAC,CAAC,CAAC;IAC/C,IAAI,IAAI,KAAK,OAAO,gBAAc,CAAC,KAAK,CAAC,CAAC,CAAC;IAC3C,IAAI,QAAQ,KAAK,OAAO,gBAAc,CAAC,SAAS,CAAC,CAAC,CAAC;IAEnD,QAAQ,CACL,IAAgB,EAChB,IAAY,EACZ,MAAwB;QAExB,IAAI,CAAC,MAAM,CAAC,eAAe,CAAC;YACzB,MAAM,EAAE,MAAM;YACd,MAAM,EAAE,IAAI;YACZ,IAAI;SAC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AE;gBAClB,IAAI;qBACH,cAAc,CACZ,QAAQ,EACR,OAAO,CACT,CAAC;YACL,CAAC;YACD,aAAa,EAAE,CAAC,IAAY,EAAE,MAAM,EAAE,EAAE;gBACrC,IAAI;qBACH,cAAc,CACZ,IAAI,EACJ,IAAI,EACJ,MAAM,CACR,CAAC;YACL,CAAC;YACD,MAAM,EAAE,CAAC,OAAO,EAAE,EAAE;gBACjB,IAAI;qBACH,cAAc,CACZ,OAAO,EACP,OAAO,CACT,CAAC;YACL,CAAC;YACD,OAAO,EAAE,CAAC,OAAO,EAAE,EAAE;gBAClB,IAAI;qBACH,cAAc,CACZ,QAAQ,EACR,OAAO,CACT,CAAC;YACL,CAAC;YACD,aAAa,EAAE,CAAC,OAAO,EAAE,EAAE;gBACxB,IAAI;qBACH,cAAc,CACZ,eAAe,EACf,OAAO,CACT,CAAC;YACL,CAAC;SACa,CAAC;IACrB,CAAC;IAES,MAAM,CAAC,cAAc,CAC5B,IAAY,EACZ,OAAa,EACb,MAAuB;QAEvB,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC;YACb,IAAI,EAAE,IAAI;YACV,OAAO;YACP,MAAM;SACR,CAAC,CAAC;IACN,CAAC;;AA9IS,wCAAc;AAET,uBAAQ,GAAY,IAAA,iBAAU,GAAE,AAAxB,CAAyB;AACjC,oBAAK,GAAc,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC,AAAlC,CAAmC;AACxC,sBAAO,GAAgB,EAAE,AAAlB,CAAmB;AAC1B,wBAAS,GAAiB,gBAAc,CAAC,cAAc,EAAE,AAAhD,CAAiD;AAC1D,0BAAW,GAAY,KAAK,AAAjB,CAAkB;yBANlC,cAAc;IAD1B,IAAA,2BAAU,GAAE;GACA,cAAc,CA+I1B"}
|
package/http/index.js
CHANGED
|
@@ -16,3 +16,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./interfaces"), exports);
|
|
18
18
|
__exportStar(require("./http.controller"), exports);
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"./","sources":["http/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA6B;AAC7B,oDAAkC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"csrf.options.js","sourceRoot":"./","sources":["http/interfaces/csrf.options.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"http-request.js","sourceRoot":"./","sources":["http/interfaces/http-request.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"http-response.js","sourceRoot":"./","sources":["http/interfaces/http-response.ts"],"names":[],"mappings":";;AAKC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"http-settings.js","sourceRoot":"./","sources":["http/interfaces/http-settings.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"http-use.js","sourceRoot":"./","sources":["http/interfaces/http-use.ts"],"names":[],"mappings":""}
|
package/http/interfaces/index.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"./","sources":["http/interfaces/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iDAA+B;AAC/B,iDAA+B;AAC/B,kDAAgC;AAChC,kDAAgC;AAChC,6CAA2B;AAC3B,0CAAwB"}
|
package/http/interfaces/route.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"route.js","sourceRoot":"./","sources":["http/interfaces/route.ts"],"names":[],"mappings":""}
|
package/index.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ export * from './core/functions/bootstrap';
|
|
|
6
6
|
export * from './core/functions/get-node-key';
|
|
7
7
|
export * from './database/functions/use-repository';
|
|
8
8
|
export * from './database/functions/has-update';
|
|
9
|
-
export
|
|
9
|
+
export * from './database/functions/generate-entity-id';
|
|
10
10
|
export * from './database/decorators';
|
|
11
11
|
export * from './database/interfaces';
|
|
12
12
|
export * from './database/exports';
|
|
@@ -29,6 +29,8 @@ export * from './query/functions/execute-query';
|
|
|
29
29
|
export * from './query/functions/create-query-builder';
|
|
30
30
|
export * from './query/interfaces';
|
|
31
31
|
export * from './query/decorators/query-content.decorator';
|
|
32
|
+
export * from './query/functions/collect-external-column-owners';
|
|
33
|
+
export type { ExternalColumnOptions } from './database/decorators/external-column.decorator';
|
|
32
34
|
export * from './command/decorators';
|
|
33
35
|
export * from './command/interfaces';
|
|
34
36
|
export * from './command/functions/execute-post';
|
package/index.js
CHANGED
|
@@ -13,11 +13,7 @@ var __createBinding = (this && this.__createBinding) || (Object.create ? (functi
|
|
|
13
13
|
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
17
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
18
|
-
};
|
|
19
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20
|
-
exports.generateEntityId = void 0;
|
|
21
17
|
__exportStar(require("./cache/decorators"), exports);
|
|
22
18
|
__exportStar(require("./cache/interfaces"), exports);
|
|
23
19
|
__exportStar(require("./cache/cache-cleaner"), exports);
|
|
@@ -26,8 +22,7 @@ __exportStar(require("./core/functions/bootstrap"), exports);
|
|
|
26
22
|
__exportStar(require("./core/functions/get-node-key"), exports);
|
|
27
23
|
__exportStar(require("./database/functions/use-repository"), exports);
|
|
28
24
|
__exportStar(require("./database/functions/has-update"), exports);
|
|
29
|
-
|
|
30
|
-
Object.defineProperty(exports, "generateEntityId", { enumerable: true, get: function () { return __importDefault(generate_id_1).default; } });
|
|
25
|
+
__exportStar(require("./database/functions/generate-entity-id"), exports);
|
|
31
26
|
__exportStar(require("./database/decorators"), exports);
|
|
32
27
|
__exportStar(require("./database/interfaces"), exports);
|
|
33
28
|
__exportStar(require("./database/exports"), exports);
|
|
@@ -50,6 +45,7 @@ __exportStar(require("./query/functions/execute-query"), exports);
|
|
|
50
45
|
__exportStar(require("./query/functions/create-query-builder"), exports);
|
|
51
46
|
__exportStar(require("./query/interfaces"), exports);
|
|
52
47
|
__exportStar(require("./query/decorators/query-content.decorator"), exports);
|
|
48
|
+
__exportStar(require("./query/functions/collect-external-column-owners"), exports);
|
|
53
49
|
__exportStar(require("./command/decorators"), exports);
|
|
54
50
|
__exportStar(require("./command/interfaces"), exports);
|
|
55
51
|
__exportStar(require("./command/functions/execute-post"), exports);
|
|
@@ -63,3 +59,4 @@ __exportStar(require("./translations/functions/create-translation-values"), expo
|
|
|
63
59
|
__exportStar(require("./translations/functions/get-translation-config"), exports);
|
|
64
60
|
__exportStar(require("./translations/services/translator.service"), exports);
|
|
65
61
|
__exportStar(require("./forms/services/form.service"), exports);
|
|
62
|
+
//# sourceMappingURL=index.js.map
|
package/index.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"./","sources":["index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qDAAmC;AACnC,qDAAmC;AACnC,wDAAsC;AACtC,oDAAkC;AAClC,6DAA2C;AAC3C,gEAA8C;AAC9C,sEAAoD;AACpD,kEAAgD;AAChD,0EAAuD;AACvD,wDAAsC;AACtC,wDAAsC;AACtC,qDAAmC;AACnC,qEAAmD;AACnD,oFAAkE;AAClE,mFAAiE;AACjE,oDAAkC;AAClC,wDAAsC;AACtC,4EAA0D;AAC1D,sDAAoC;AACpC,sDAAoC;AACpC,0DAAwC;AACxC,2DAAyC;AACzC,gFAA8D;AAC9D,2DAAyC;AACzC,sEAAoD;AACpD,2DAAyC;AACzC,iEAA+C;AAC/C,kEAAgD;AAChD,yEAAuD;AACvD,qDAAmC;AACnC,6EAA2D;AAC3D,mFAAiE;AAEjE,uDAAqC;AACrC,uDAAqC;AACrC,mEAAiD;AACjD,qEAAmD;AACnD,2EAAyD;AACzD,uDAAqC;AACrC,oDAAkC;AAClC,oDAAkC;AAClC,qFAAmE;AACnE,qFAAmE;AACnE,kFAAgE;AAChE,6EAA2D;AAC3D,gEAA8C"}
|
package/jobs/constants.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"./","sources":["jobs/constants.ts"],"names":[],"mappings":";;;AAEa,QAAA,IAAI,GAAG,EAAe,CAAC"}
|
package/jobs/decorators/index.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"./","sources":["jobs/decorators/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kDAAgC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"job.decorator.js","sourceRoot":"./","sources":["jobs/decorators/job.decorator.ts"],"names":[],"mappings":";;;AAEA,yCAA0C;AAC1C,6DAA0D;AAE1D;;;;;;;;;GASG;AACI,MAAM,GAAG,GAAG,CAAC,IAAY,EAAE,EAAE;IAEjC,OAAO,CAAC,MAAM,EAAE,EAAE;QAEf,MAAM,MAAM,GAAG,IAAI;aACf,OAAO;aACP,YAAY,CAAC,MAAM,CACE,CAAC;QAC1B,MAAM,CAAC,IAAI,GAAG,mBAAU,CAAC,GAAG,CAAC;QAC7B,MAAM,CAAC,IAAI,GAAG,IAAI,CAAC;QACnB,IAAA,+BAAc,EAAC,MAAM,CAAC,CAAC;IAC1B,CAAC,CAAA;AACJ,CAAC,CAAA;AAZY,QAAA,GAAG,OAYf"}
|
package/jobs/interfaces/index.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"./","sources":["jobs/interfaces/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iDAA+B;AAC/B,+CAA6B;AAC7B,gDAA8B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"job-data.js","sourceRoot":"./","sources":["jobs/interfaces/job-data.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"job-executor.js","sourceRoot":"./","sources":["jobs/interfaces/job-executor.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"job-object.js","sourceRoot":"./","sources":["jobs/interfaces/job-object.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"job.options.js","sourceRoot":"./","sources":["jobs/interfaces/job.options.ts"],"names":[],"mappings":""}
|
package/jobs/jobs.controller.js
CHANGED
|
@@ -64,6 +64,8 @@ let JobsController = class JobsController extends core_1.ObjectLoader {
|
|
|
64
64
|
const nowTime = new Date().getTime();
|
|
65
65
|
const isTimeToRun = nowTime >= nextRunTime;
|
|
66
66
|
if (isTimeToRun && !job.isPending) {
|
|
67
|
+
job.nextRun = job.cron.getNextDate();
|
|
68
|
+
job.isPending = true;
|
|
67
69
|
if (core.workers) {
|
|
68
70
|
await (0, dispatch_task_1.dispatchTask)({
|
|
69
71
|
type: interfaces_1.WorkerMessageType.initRun,
|
|
@@ -120,3 +122,4 @@ exports.JobsController = JobsController;
|
|
|
120
122
|
exports.JobsController = JobsController = __decorate([
|
|
121
123
|
(0, class_injector_1.Injectable)()
|
|
122
124
|
], JobsController);
|
|
125
|
+
//# sourceMappingURL=jobs.controller.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"jobs.controller.js","sourceRoot":"./","sources":["jobs/jobs.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kCAAuC;AAIvC,sCAAuC;AACvC,2CAAmC;AACnC,iDAAoD;AAEpD,o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,GAAG,IAAA,gBAAM,EAAC,GAAG,CAAC,OAAO,CAAC,CAAC;QACjC,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,IAAI,GAAG,CAAC,IAAI,0BAA0B,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;IACjF,CAAC;CACH,CAAA;AAxGY,wCAAc;yBAAd,cAAc;IAD1B,IAAA,2BAAU,GAAE;GACA,cAAc,CAwG1B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"./","sources":["module/decorators/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qDAAmC;AACnC,uDAAqC;AACrC,2DAAyC;AACzC,mDAAiC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"module.decorator.js","sourceRoot":"./","sources":["module/decorators/module.decorator.ts"],"names":[],"mappings":";;;AAAA,6DAA0D;AAM1D,yCAA0C;AAEnC,MAAM,MAAM,GAAG,CAAC,OAAsB,EAAE,EAAE;IAC9C,OAAO,CAAC,MAAM,EAAE,EAAE;QACf,MAAM,MAAM,GAAG,IAAI;aACf,OAAO;aACP,YAAY,CAAC,MAAM,CACK,CAAC;QAC7B,MAAM,CAAC,IAAI,GAAG,mBAAU,CAAC,MAAM,CAAC;QAChC,MAAM,CAAC,OAAO,GAAG,OAAO,CAAC;QACzB,IAAA,+BAAc,EAAC,MAAM,CAAC,CAAC;IAC1B,CAAC,CAAA;AACJ,CAAC,CAAA;AAVY,QAAA,MAAM,UAUlB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"on-after-app-start.js","sourceRoot":"./","sources":["module/decorators/on-after-app-start.ts"],"names":[],"mappings":";;;AAAA,6DAAyD;AACzD,yCAAiD;AAE1C,MAAM,eAAe,GAAG,GAAG,EAAE;IACjC,OAAO,CAAC,MAAM,EAAE,WAAmB,EAAE,EAAE;QACpC,IAAA,+BAAc,EACX,MAAM,EACN,WAAW,EACX,2BAAkB,CACpB,CAAC;IACL,CAAC,CAAA;AACJ,CAAC,CAAA;AARY,QAAA,eAAe,mBAQ3B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"on-after-database-init.js","sourceRoot":"./","sources":["module/decorators/on-after-database-init.ts"],"names":[],"mappings":";;;AAAA,6DAAyD;AACzD,yCAAsD;AAE/C,MAAM,mBAAmB,GAAG,GAAG,EAAE;IACrC,OAAO,CAAC,MAAM,EAAE,WAAmB,EAAE,EAAE;QACpC,IAAA,+BAAc,EACX,MAAM,EACN,WAAW,EACX,+BAAsB,CACxB,CAAC;IACL,CAAC,CAAA;AACJ,CAAC,CAAA;AARY,QAAA,mBAAmB,uBAQ/B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"on-module-init.js","sourceRoot":"./","sources":["module/decorators/on-module-init.ts"],"names":[],"mappings":";;;AAAA,6DAAyD;AACzD,yCAA6C;AAEtC,MAAM,YAAY,GAAG,GAAG,EAAE;IAC9B,OAAO,CAAC,MAAM,EAAE,WAAmB,EAAE,EAAE;QACpC,IAAA,+BAAc,EACX,MAAM,EACN,WAAW,EACX,uBAAc,CAChB,CAAC;IACL,CAAC,CAAA;AACJ,CAAC,CAAA;AARY,QAAA,YAAY,gBAQxB"}
|
package/module/index.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"./","sources":["module/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA6B;AAC7B,+CAA6B;AAC7B,sDAAoC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"./","sources":["module/interfaces/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kDAAgC;AAChC,kDAAgC;AAChC,mDAAiC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"module-events.js","sourceRoot":"./","sources":["module/interfaces/module-events.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"module-object.js","sourceRoot":"./","sources":["module/interfaces/module-object.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"module-options.js","sourceRoot":"./","sources":["module/interfaces/module-options.ts"],"names":[],"mappings":""}
|
|
@@ -2,7 +2,7 @@ import { Bootable, Instantiable } from "@rockster/common";
|
|
|
2
2
|
import { Logger } from "@rockster/logger";
|
|
3
3
|
import { DatabaseController } from "../database/database.controller";
|
|
4
4
|
import { ObjectNote } from "@rockster/class-memory";
|
|
5
|
-
import { IModuleObject, ModuleEvents } from "./interfaces";
|
|
5
|
+
import { IModuleObject, ModuleEvents, ModuleOptions } from "./interfaces";
|
|
6
6
|
import { ControllerController } from "../controllers";
|
|
7
7
|
import { JobsController } from "../jobs/jobs.controller";
|
|
8
8
|
import { TasksController } from "../tasks/tasks.controller";
|
|
@@ -16,13 +16,14 @@ export declare class ModuleController {
|
|
|
16
16
|
static instance: ModuleController;
|
|
17
17
|
constructor(databaseController: DatabaseController, requestController: ControllerController, jobsController: JobsController, tasksController: TasksController);
|
|
18
18
|
load(module: Instantiable, requests?: boolean, events?: ModuleEvents[]): Promise<ModuleEvents[]>;
|
|
19
|
+
protected registerMigrations(options: ModuleOptions): void;
|
|
19
20
|
protected loadOnlyRequests(module: Instantiable): Promise<void>;
|
|
20
21
|
protected loadOnlyEntities(module: Instantiable): Promise<void>;
|
|
21
22
|
protected loadJobsAndTasks(module: Instantiable): Promise<void>;
|
|
22
23
|
protected eachImport(imports: Instantiable[], callback: (target: any) => Promise<void>): Promise<void>;
|
|
23
24
|
protected runAfterDecorators(): void;
|
|
24
25
|
protected getModuleObject(module: Instantiable): ObjectNote<IModuleObject>;
|
|
25
|
-
|
|
26
|
+
loadEntities(entities: Instantiable[]): void;
|
|
26
27
|
loadRequests(requests: Instantiable[]): Promise<void>;
|
|
27
28
|
protected loadJobs(jobs: Instantiable[]): Promise<void>;
|
|
28
29
|
protected loadTasks(tasks: Instantiable[]): Promise<void>;
|
|
@@ -20,6 +20,7 @@ const global_1 = require("../global");
|
|
|
20
20
|
const controllers_1 = require("../controllers");
|
|
21
21
|
const jobs_controller_1 = require("../jobs/jobs.controller");
|
|
22
22
|
const tasks_controller_1 = require("../tasks/tasks.controller");
|
|
23
|
+
const env_1 = require("../database/env");
|
|
23
24
|
let ModuleController = ModuleController_1 = class ModuleController {
|
|
24
25
|
constructor(databaseController, requestController, jobsController, tasksController) {
|
|
25
26
|
this.databaseController = databaseController;
|
|
@@ -39,6 +40,7 @@ let ModuleController = ModuleController_1 = class ModuleController {
|
|
|
39
40
|
}
|
|
40
41
|
}
|
|
41
42
|
// Load module
|
|
43
|
+
this.registerMigrations(object.options);
|
|
42
44
|
const handles = await this.getEvents(module, events);
|
|
43
45
|
if (handles.onModuleInit) {
|
|
44
46
|
await handles.onModuleInit();
|
|
@@ -54,6 +56,9 @@ let ModuleController = ModuleController_1 = class ModuleController {
|
|
|
54
56
|
this.logger.throw(error);
|
|
55
57
|
}
|
|
56
58
|
}
|
|
59
|
+
registerMigrations(options) {
|
|
60
|
+
env_1.env.migrations.push(...options.migrations ?? []);
|
|
61
|
+
}
|
|
57
62
|
async loadOnlyRequests(module) {
|
|
58
63
|
const object = this.getModuleObject(module);
|
|
59
64
|
const requests = this.getObjects(object.options.controllers);
|
|
@@ -157,3 +162,4 @@ exports.ModuleController = ModuleController = ModuleController_1 = __decorate([
|
|
|
157
162
|
jobs_controller_1.JobsController,
|
|
158
163
|
tasks_controller_1.TasksController])
|
|
159
164
|
], ModuleController);
|
|
165
|
+
//# sourceMappingURL=module.controller.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"module.controller.js","sourceRoot":"./","sources":["module/module.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,6DAAsD;AAKtD,6CAA0C;AAC1C,yEAAqE;AAOrE,sCAAu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M,CAAC,IAAI,CAAC;oBACjD,CAAC,CAAC,IAAI,CAAC;YACb,CAAC;YACD,eAAe,EAAE,GAAG,EAAE;gBACnB,OAAO,QAAQ,CAAC,SAAS,CAAC,2BAAkB,CAAC;oBAC1C,CAAC,CAAC,QAAQ,CAAC,SAAS,CAAC,2BAAkB,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC;oBACrD,CAAC,CAAC,IAAI,CAAC;YACb,CAAC;YACD,mBAAmB,EAAE,GAAG,EAAE;gBACvB,OAAO,QAAQ,CAAC,SAAS,CAAC,+BAAsB,CAAC;oBAC9C,CAAC,CAAC,QAAQ,CAAC,SAAS,CAAC,+BAAsB,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC;oBACzD,CAAC,CAAC,IAAI,CAAC;YACb,CAAC;SACa,CAAC;QAClB,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACrB,OAAO,OAAO,CAAC;IAClB,CAAC;CACH,CAAA;AAtLY,4CAAgB;2BAAhB,gBAAgB;IAD5B,IAAA,2BAAU,GAAE;qCASuB,wCAAkB;QACnB,kCAAoB;QACvB,gCAAc;QACb,kCAAe;GAXnC,gBAAgB,CAsL5B"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rockster/core",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.4",
|
|
4
4
|
"main": "index",
|
|
5
5
|
"types": "index.d.ts",
|
|
6
6
|
"scripts": {
|
|
@@ -23,11 +23,11 @@
|
|
|
23
23
|
"@formatjs/intl": "^2.9.0",
|
|
24
24
|
"@google-cloud/storage": "^7.5.0",
|
|
25
25
|
"@paralleldrive/cuid2": "^2.2.2",
|
|
26
|
-
"@rockster/class-injector": "0.0.
|
|
27
|
-
"@rockster/class-memory": "0.0.
|
|
28
|
-
"@rockster/class-pipe": "^0.0.
|
|
29
|
-
"@rockster/common": "0.0.
|
|
30
|
-
"@rockster/logger": "0.0.
|
|
26
|
+
"@rockster/class-injector": "0.0.2",
|
|
27
|
+
"@rockster/class-memory": "0.0.3",
|
|
28
|
+
"@rockster/class-pipe": "^0.0.3",
|
|
29
|
+
"@rockster/common": "0.0.3",
|
|
30
|
+
"@rockster/logger": "0.0.3",
|
|
31
31
|
"@types/body-parser": "^1.19.2",
|
|
32
32
|
"@types/busboy": "^1.5.2",
|
|
33
33
|
"@types/cors": "^2.8.13",
|
|
@@ -46,23 +46,25 @@
|
|
|
46
46
|
"dot-object": "^2.1.4",
|
|
47
47
|
"drizzle-orm": "^0.39.2",
|
|
48
48
|
"express": "^4.18.2",
|
|
49
|
+
"google-auth-library": "^10.5.0",
|
|
49
50
|
"helmet": "^7.0.0",
|
|
51
|
+
"inflection": "^3.0.2",
|
|
50
52
|
"lodash": "^4.17.21",
|
|
51
53
|
"moment": "^2.29.4",
|
|
52
54
|
"mongodb": "^5.5.0",
|
|
55
|
+
"msgpackr": "^1.11.5",
|
|
53
56
|
"nanoid": "^3.3.8",
|
|
57
|
+
"path-to-regexp": "^8.3.0",
|
|
54
58
|
"pg": "^8.11.0",
|
|
55
59
|
"radash": "^12.1.0",
|
|
56
60
|
"redis": "^4.6.7",
|
|
57
61
|
"typeorm": "^0.3.16",
|
|
62
|
+
"typeorm-naming-strategies": "^4.1.0",
|
|
58
63
|
"uuid": "^10.0.0",
|
|
59
64
|
"validator": "^13.11.0",
|
|
60
65
|
"ws": "^8.13.0",
|
|
61
|
-
"
|
|
62
|
-
"
|
|
63
|
-
"typeorm-naming-strategies": "^4.1.0",
|
|
64
|
-
"msgpackr": "^1.11.5",
|
|
65
|
-
"path-to-regexp": "^8.3.0"
|
|
66
|
+
"xxhash-wasm": "^1.1.0",
|
|
67
|
+
"zod": "^3.23.8"
|
|
66
68
|
},
|
|
67
69
|
"devDependencies": {
|
|
68
70
|
"typescript": "^5.2.2"
|
package/query/constants.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"./","sources":["query/constants.ts"],"names":[],"mappings":";;;AAAa,QAAA,iBAAiB,GAAG,eAAe,CAAC;AACpC,QAAA,iBAAiB,GAAG,cAAc,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"./","sources":["query/decorators/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4DAA0C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"query-content.decorator.js","sourceRoot":"./","sources":["query/decorators/query-content.decorator.ts"],"names":[],"mappings":";;;AAAA,6DAAkD;AAClD,4CAAiD;AAE1C,MAAM,YAAY,GAAG,GAAG,EAAE;IAC9B,OAAO,CAAC,MAAM,EAAE,WAAmB,EAAE,KAAa,EAAE,EAAE;QACnD,IAAA,uBAAM,EAAC,6BAAiB,CAAC,CAAC,MAAM,EAAE,WAAW,EAAE,KAAK,CAAC,CAAC;IACzD,CAAC,CAAA;AACJ,CAAC,CAAA;AAJY,QAAA,YAAY,gBAIxB"}
|
|
@@ -2,11 +2,14 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.addJoin = void 0;
|
|
4
4
|
const use_protector_1 = require("../../database/functions/use-protector");
|
|
5
|
+
const get_entity_object_class_1 = require("./get-entity-object-class");
|
|
5
6
|
const addJoin = (RootEntity, queryContent, joins, queryBuilder, path, entityManager) => {
|
|
6
7
|
if (path.type === "embedded") {
|
|
7
8
|
(0, exports.addJoin)(RootEntity, queryContent, joins, queryBuilder, path.parent, entityManager);
|
|
8
9
|
}
|
|
9
|
-
|
|
10
|
+
/** Matches {@link loadProperties} enforcement: each join's `entityAlias` is globally unique per query. */
|
|
11
|
+
const joinKey = path.type === "relation" ? path.entityAlias : path.alias;
|
|
12
|
+
const wasAdded = joins[joinKey];
|
|
10
13
|
if (path.type === 'relation' && !wasAdded) {
|
|
11
14
|
if (path.parent) {
|
|
12
15
|
(0, exports.addJoin)(RootEntity, queryContent, joins, queryBuilder, path.parent, entityManager);
|
|
@@ -21,7 +24,7 @@ const addJoin = (RootEntity, queryContent, joins, queryBuilder, path, entityMana
|
|
|
21
24
|
rootPath: RootEntity
|
|
22
25
|
})
|
|
23
26
|
: '';
|
|
24
|
-
const
|
|
27
|
+
const result = typeof path.relation.condition === 'string'
|
|
25
28
|
? path
|
|
26
29
|
.relation
|
|
27
30
|
.condition
|
|
@@ -29,9 +32,10 @@ const addJoin = (RootEntity, queryContent, joins, queryBuilder, path, entityMana
|
|
|
29
32
|
.relation
|
|
30
33
|
.condition(queryBuilder, queryContent, entityManager);
|
|
31
34
|
path.relation.type === "direct"
|
|
32
|
-
? queryBuilder.leftJoinAndMapOne(path.relation.mapTo, path.target, path.entityAlias, condition + ` ${secure}`)
|
|
33
|
-
: queryBuilder.leftJoinAndMapMany(path.relation.mapTo, path.target, path.entityAlias, condition + ` ${secure}`);
|
|
34
|
-
joins[
|
|
35
|
+
? queryBuilder.leftJoinAndMapOne(path.relation.mapTo, result?.tableName ?? (0, get_entity_object_class_1.getEntityObjectClass)(path.target), path.entityAlias, result?.condition ?? result + ` ${secure}`)
|
|
36
|
+
: queryBuilder.leftJoinAndMapMany(path.relation.mapTo, result?.tableName ?? (0, get_entity_object_class_1.getEntityObjectClass)(path.target), path.entityAlias, result?.condition ?? result + ` ${secure}`);
|
|
37
|
+
joins[joinKey] = true;
|
|
35
38
|
}
|
|
36
39
|
};
|
|
37
40
|
exports.addJoin = addJoin;
|
|
41
|
+
//# sourceMappingURL=add-join.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"add-join.js","sourceRoot":"./","sources":["query/functions/add-join.ts"],"names":[],"mappings":";;;AAIA,0EAAsE;AACtE,uEAAiE;AAE1D,MAAM,OAAO,GAAG,CACpB,UAAwB,EACxB,YAAgC,EAChC,KAA0B,EAC1B,YAAqC,EACrC,IAAe,EACf,aAA4B,EAC7B,EAAE;IAED,IAAI,IAAI,CAAC,IAAI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CAAC,iBAAiB,CAC7B,IAAI,CAAC,QAAQ,CAAC,KAAK,EACnB,MAAM,EAAE,SAAS,IAAI,IAAA,8CAAoB,EAAC,IAAI,CAAC,MAAM,CAAC,EACtD,IAAI,CAAC,WAAW,EAChB,MAAM,EAAE,SAAS,IAAI,MAAM,GAAG,IAAI,MAAM,EAAE,CAC5C;YACD,CAAC,CAAC,YAAY,CAAC,kBAAkB,CAC9B,IAAI,CAAC,QAAQ,CAAC,KAAK,EACnB,MAAM,EAAE,SAAS,IAAI,IAAA,8CAAoB,EAAC,IAAI,CAAC,MAAM,CAAC,EACtD,IAAI,CAAC,WAAW,EAChB,MAAM,EAAE,SAAS,IAAI,MAAM,GAAG,IAAI,MAAM,EAAE,CAC5C,CAAC;QAEL,KAAK,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC;IACzB,CAAC;AACJ,CAAC,CAAC;AA5EW,QAAA,OAAO,WA4ElB"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { ExternalColumnOwner, QueryProperty } from "../interfaces/query";
|
|
2
|
+
import type { Dictionary } from "@rockster/common";
|
|
3
|
+
/**
|
|
4
|
+
* For each root row from `getMany()`, finds every object that must receive an external column value.
|
|
5
|
+
* Same logical entity instance appears once in the result (Map by reference).
|
|
6
|
+
*
|
|
7
|
+
* Uses `QueryProperty.externalOwnerWalkSegments` / `externalColumnKey` from the query metadata
|
|
8
|
+
* so the anchor can be a middle segment (e.g. `person` for `user.person.id`), not only the leaf.
|
|
9
|
+
*/
|
|
10
|
+
export declare function collectExternalColumnOwners<Entity>(roots: Entity[], externalSelectPaths: string[], rootAlias: string, properties: Dictionary<QueryProperty>): ExternalColumnOwner[];
|