@rockster/core 0.0.1 → 0.0.2
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/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 +3 -1
- 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 +11 -2
- package/command/services/post-action-builder.js.map +1 -0
- package/command/services/remove-action-builder.js +11 -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 +1 -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.js +1 -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.js +1 -0
- package/controllers/constants.js.map +1 -0
- package/controllers/controller.controller.js +1 -0
- 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 +1 -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.js +1 -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/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.js +1 -0
- package/controllers/interfaces/controller-object.js.map +1 -0
- package/controllers/interfaces/controller-options.js +1 -0
- package/controllers/interfaces/controller-options.js.map +1 -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 +11 -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 +1 -3
- package/core/core.controller.js +11 -10
- 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 +1 -0
- 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/index.js +1 -0
- package/core/index.js.map +1 -0
- 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/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.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 +1 -0
- 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.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.js +1 -0
- package/core/services/request-executor.js.map +1 -0
- package/core/services/request-router.js +1 -0
- 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.js +1 -0
- package/database/decorators/entity.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 +1 -0
- package/database/decorators/index.js +2 -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.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.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.js +1 -0
- package/database/functions/find-relation.js.map +1 -0
- package/database/functions/generate-id.js +1 -0
- package/database/functions/generate-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.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 +1 -0
- 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.js +1 -0
- 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-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 +2 -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.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/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.js +1 -0
- package/database/services/protect-builder.js.map +1 -0
- package/database/services/repository.service.js +1 -0
- 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 +48 -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.js +1 -0
- package/forms/queries/form.query.js.map +1 -0
- 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 +5 -1
- package/global.js.map +1 -0
- package/http/http.controller.d.ts +1 -6
- package/http/http.controller.js +1 -0
- 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.js +1 -0
- 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 +1 -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 +11 -10
- 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 +1 -0
- package/query/functions/add-join.js.map +1 -0
- package/query/functions/create-query-builder.js +4 -1
- package/query/functions/create-query-builder.js.map +1 -0
- package/query/functions/create-query.js +4 -0
- package/query/functions/create-query.js.map +1 -0
- package/query/functions/describe-query-filter.js +6 -3
- package/query/functions/describe-query-filter.js.map +1 -0
- package/query/functions/execute-query.js +3 -7
- package/query/functions/execute-query.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-native-select.d.ts +4 -1
- package/query/functions/get-native-select.js +9 -1
- package/query/functions/get-native-select.js.map +1 -0
- package/query/functions/load-properties.js +4 -2
- package/query/functions/load-properties.js.map +1 -0
- package/query/functions/map-query-property-to-column-name.js +1 -0
- package/query/functions/map-query-property-to-column-name.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 +2 -1
- 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.js +11 -2
- 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 +1 -0
- 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 +6 -1
- 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-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-receptor.js +7 -6
- package/tasks/functions/create-task-message-receptor.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 +2 -0
- package/tasks/interfaces/task-object.js +1 -0
- package/tasks/interfaces/task-object.js.map +1 -0
- package/tasks/interfaces/task-post-intercept.js +1 -0
- package/tasks/interfaces/task-post-intercept.js.map +1 -0
- 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 +1 -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 +57 -37
- 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} +11 -10
- 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 +1 -0
- 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 +1 -0
- 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.js +1 -0
- package/translations/queries/translation-config.query.js.map +1 -0
- package/translations/queries/translation-values.query.js +1 -0
- 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.js +4 -5
- 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/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":"entity-object.js","sourceRoot":"./","sources":["database/interfaces/entity-object.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"entity-options.js","sourceRoot":"./","sources":["database/interfaces/entity-options.ts"],"names":[],"mappings":""}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { InverseAliasDef } from "./inverse-alias";
|
|
2
|
+
import { JsonbIndexSettings } from "../decorators/jsonb-index.decorator";
|
|
2
3
|
import { GetTypeCallback, PropertyType } from "../../common";
|
|
3
4
|
export interface IEntityProperty {
|
|
4
5
|
type: PropertyType.entity;
|
|
@@ -16,4 +17,5 @@ export interface IEntityProperty {
|
|
|
16
17
|
strategy?: string;
|
|
17
18
|
isVirtual?: boolean;
|
|
18
19
|
getNewId?: () => string;
|
|
20
|
+
jsonbIndexSettings?: JsonbIndexSettings;
|
|
19
21
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"entity-property.js","sourceRoot":"./","sources":["database/interfaces/entity-property.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"column-def-type.js","sourceRoot":"./","sources":["database/interfaces/enum/column-def-type.ts"],"names":[],"mappings":";;;AAAA,IAAY,aAIX;AAJD,WAAY,aAAa;IACtB,kCAAiB,CAAA;IACjB,0BAAS,CAAA;IACT,4CAA2B,CAAA;AAC9B,CAAC,EAJW,aAAa,6BAAb,aAAa,QAIxB"}
|
|
@@ -19,3 +19,4 @@ __exportStar(require("./order-by-direction"), exports);
|
|
|
19
19
|
__exportStar(require("./primary-strategy-type"), exports);
|
|
20
20
|
__exportStar(require("./relation-path-type"), exports);
|
|
21
21
|
__exportStar(require("./naming-strategy-type"), exports);
|
|
22
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"./","sources":["database/interfaces/enum/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAkC;AAClC,uDAAqC;AACrC,0DAAwC;AACxC,uDAAqC;AACrC,yDAAuC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"naming-strategy-type.js","sourceRoot":"./","sources":["database/interfaces/enum/naming-strategy-type.ts"],"names":[],"mappings":";;;AAAA,IAAY,kBAIX;AAJD,WAAY,kBAAkB;IAC3B,+CAAyB,CAAA;IACzB,6CAAuB,CAAA;IACvB,6CAAuB,CAAA;AAC1B,CAAC,EAJW,kBAAkB,kCAAlB,kBAAkB,QAI7B"}
|
|
@@ -16,3 +16,4 @@ var NanoIdAlphabetType;
|
|
|
16
16
|
NanoIdAlphabetType["uppercaseLetters"] = "uppercaseLetters";
|
|
17
17
|
NanoIdAlphabetType["uppercaseLettersAndDigits"] = "uppercaseLettersAndDigits";
|
|
18
18
|
})(NanoIdAlphabetType || (exports.NanoIdAlphabetType = NanoIdAlphabetType = {}));
|
|
19
|
+
//# sourceMappingURL=nano-id-alphabet-type.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"nano-id-alphabet-type.js","sourceRoot":"./","sources":["database/interfaces/enum/nano-id-alphabet-type.ts"],"names":[],"mappings":";;;AAAA,IAAY,kBAaX;AAbD,WAAY,kBAAkB;IAC3B,iDAA2B,CAAA;IAC3B,6EAAuD,CAAA;IACvD,2DAAqC,CAAA;IACrC,yCAAkB,CAAA;IAClB,2DAAqC,CAAA;IACrC,mEAA6C,CAAA;IAC7C,mEAA6C,CAAA;IAC7C,uCAAiB,CAAA;IACjB,mDAA6B,CAAA;IAC7B,2DAAqC,CAAA;IACrC,2DAAqC,CAAA;IACrC,6EAAuD,CAAA;AAC1D,CAAC,EAbW,kBAAkB,kCAAlB,kBAAkB,QAa7B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"order-by-direction.js","sourceRoot":"./","sources":["database/interfaces/enum/order-by-direction.ts"],"names":[],"mappings":";;;AAAA,IAAY,gBAGX;AAHD,WAAY,gBAAgB;IACzB,+BAAW,CAAA;IACX,iCAAa,CAAA;AAChB,CAAC,EAHW,gBAAgB,gCAAhB,gBAAgB,QAG3B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"primary-strategy-type.js","sourceRoot":"./","sources":["database/interfaces/enum/primary-strategy-type.ts"],"names":[],"mappings":";;;AAAA,IAAY,mBAIX;AAJD,WAAY,mBAAmB;IAC5B,8CAAuB,CAAA;IACvB,oCAAa,CAAA;IACb,4CAAqB,CAAA;AACxB,CAAC,EAJW,mBAAmB,mCAAnB,mBAAmB,QAI9B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"relation-path-type.js","sourceRoot":"./","sources":["database/interfaces/enum/relation-path-type.ts"],"names":[],"mappings":";;;AAAA,IAAY,gBAGX;AAHD,WAAY,gBAAgB;IACzB,yCAAqB,CAAA;IACrB,qCAAiB,CAAA;AACpB,CAAC,EAHW,gBAAgB,gCAAhB,gBAAgB,QAG3B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"execute-callback.js","sourceRoot":"./","sources":["database/interfaces/execute-callback.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"id-column-def.js","sourceRoot":"./","sources":["database/interfaces/id-column-def.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"./","sources":["database/interfaces/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAuB;AACvB,+DAA6C;AAC7C,+CAA6B;AAC7B,uDAAqC;AACrC,kDAAgC;AAChC,kDAAgC;AAChC,mDAAiC;AACjC,oDAAkC;AAClC,qDAAmC;AACnC,kDAAgC;AAChC,kDAAgC;AAChC,yCAAuB;AACvB,8CAA4B;AAC5B,iDAA+B;AAC/B,kDAAgC;AAChC,qDAAmC;AACnC,+CAA6B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"inverse-alias.js","sourceRoot":"./","sources":["database/interfaces/inverse-alias.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"nano-id-column-options.js","sourceRoot":"./","sources":["database/interfaces/nano-id-column-options.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"path.js","sourceRoot":"./","sources":["database/interfaces/path.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"protector.js","sourceRoot":"./","sources":["database/interfaces/protector.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"register-one-to-many-handle.js","sourceRoot":"./","sources":["database/interfaces/register-one-to-many-handle.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"register-one-to-many.js","sourceRoot":"./","sources":["database/interfaces/register-one-to-many.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"relation-def.js","sourceRoot":"./","sources":["database/interfaces/relation-def.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"relation-path.js","sourceRoot":"./","sources":["database/interfaces/relation-path.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"relation.options.js","sourceRoot":"./","sources":["database/interfaces/relation.options.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"repository.js","sourceRoot":"./","sources":["database/interfaces/repository.ts"],"names":[],"mappings":""}
|
|
@@ -4,7 +4,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.UUIDVarcharMigration1737637321043 = void 0;
|
|
7
|
-
const
|
|
7
|
+
const env_1 = require("../env");
|
|
8
8
|
const fs_1 = require("fs");
|
|
9
9
|
const path_1 = __importDefault(require("path"));
|
|
10
10
|
class UUIDVarcharMigration1737637321043 {
|
|
@@ -12,7 +12,7 @@ class UUIDVarcharMigration1737637321043 {
|
|
|
12
12
|
const drops = [];
|
|
13
13
|
const changeIds = [];
|
|
14
14
|
const recreates = [];
|
|
15
|
-
const database =
|
|
15
|
+
const database = env_1.env
|
|
16
16
|
.uuidVarcharMigration
|
|
17
17
|
.database;
|
|
18
18
|
const tablesQuery = `
|
|
@@ -79,3 +79,4 @@ class UUIDVarcharMigration1737637321043 {
|
|
|
79
79
|
}
|
|
80
80
|
}
|
|
81
81
|
exports.UUIDVarcharMigration1737637321043 = UUIDVarcharMigration1737637321043;
|
|
82
|
+
//# sourceMappingURL=1737637321043-UUIDVarcharMigration.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"1737637321043-UUIDVarcharMigration.js","sourceRoot":"./","sources":["database/migrations/1737637321043-UUIDVarcharMigration.ts"],"names":[],"mappings":";;;;;;AAIA,gCAA6B;AAC7B,2BAAmC;AACnC,gDAAwB;AAExB,MAAa,iCAAiC;IAEpC,KAAK,CAAC,EAAE,CAAC,WAAwB;QACrC,MAAM,KAAK,GAAG,EAAc,CAAC;QAC7B,MAAM,SAAS,GAAG,EAAc,CAAC;QACjC,MAAM,SAAS,GAAG,EAAc,CAAC;QACjC,MAAM,QAAQ,GAAG,SAAG;aAChB,oBAAoB;aACpB,QAAQ,CAAC;QAEb,MAAM,WAAW,GAAG;;;;;;kCAMQ,QAAQ;;;SAGjC,CAAC;QAEJ,MAAM,YAAY,GAAG,CAAC,KAAa,EAAE,EAAE,CAAC;;;;;;;;kCAQZ,QAAQ;;gCAEV,KAAK;;OAE9B,CAAC;QAEF,MAAM,gBAAgB,GAAG,CAAC,KAAa,EAAE,EAAE,CAAC;;;;;;;;OAQ3C,CAAA;QAED,MAAM,MAAM,GAAG,MAAM,WAAW;aAC5B,KAAK,CAAC,WAAW,CAIf,CAAC;QAEP,KAAK,MAAM,KAAK,IAAI,MAAM,EAAE,CAAC;YAE1B,MAAM,OAAO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,KAAK,CAAC,IAAI,CAAC,CAAC;QACjC,CAAC;QAED,KAAK,MAAM,QAAQ,IAAI,SAAS,EAAE,CAAC;YAChC,MAAM,WAAW,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;QACrC,CAAC;QAED,KAAK,MAAM,QAAQ,IAAI,SAAS,EAAE,CAAC;YAChC,MAAM,WAAW,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;QACrC,CAAC;IACJ,CAAC;IAEM,KAAK,CAAC,IAAI,CAAC,WAAwB;IAC1C,CAAC;CACH;AAnGD,8EAmGC"}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.useUUIDVarcharMigration = void 0;
|
|
4
|
-
const
|
|
4
|
+
const env_1 = require("../env");
|
|
5
5
|
const _1737637321043_UUIDVarcharMigration_1 = require("./1737637321043-UUIDVarcharMigration");
|
|
6
6
|
const useUUIDVarcharMigration = (database) => {
|
|
7
|
-
|
|
7
|
+
env_1.env.uuidVarcharMigration.database = database;
|
|
8
8
|
return _1737637321043_UUIDVarcharMigration_1.UUIDVarcharMigration1737637321043;
|
|
9
9
|
};
|
|
10
10
|
exports.useUUIDVarcharMigration = useUUIDVarcharMigration;
|
|
11
|
+
//# sourceMappingURL=use-uuid-varchar-migration.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-uuid-varchar-migration.js","sourceRoot":"./","sources":["database/migrations/use-uuid-varchar-migration.ts"],"names":[],"mappings":";;;AAAA,gCAA6B;AAC7B,8FAAyF;AAElF,MAAM,uBAAuB,GAAG,CAAC,QAAgB,EAAE,EAAE;IACzD,SAAG,CAAC,oBAAoB,CAAC,QAAQ,GAAG,QAAQ,CAAC;IAC7C,OAAO,uEAAiC,CAAC;AAC5C,CAAC,CAAC;AAHW,QAAA,uBAAuB,2BAGlC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { Instantiable } from "@rockster/common";
|
|
2
|
+
import { IEntityObject, IEntityProperty } from "../interfaces";
|
|
3
|
+
import { ObjectNote, PropertyNote } from "@rockster/class-memory";
|
|
4
|
+
import { IProperty } from "@rockster/class-pipe";
|
|
5
|
+
import { JsonbIndexSettings } from "../decorators/jsonb-index.decorator";
|
|
6
|
+
type TableJsonbIndexes = {
|
|
7
|
+
table: ObjectNote<IEntityObject>;
|
|
8
|
+
indexes: JsonbIndexSettings[];
|
|
9
|
+
};
|
|
10
|
+
export declare class JsonbIndexCreator {
|
|
11
|
+
updateIndexes(): Promise<void>;
|
|
12
|
+
protected dropIndexes(tablesIndexes: TableJsonbIndexes[]): Promise<void>;
|
|
13
|
+
protected buildTablesIndexes(): TableJsonbIndexes[];
|
|
14
|
+
protected searchTargetIndexes(table: ObjectNote<IEntityObject>, column: PropertyNote<IEntityProperty>, target: Instantiable, indexes: JsonbIndexSettings[], parent?: string): void;
|
|
15
|
+
protected getTypedProperty(target: any, propertyKey: string): PropertyNote<IProperty>;
|
|
16
|
+
protected isObjectProperty(property: PropertyNote<IProperty>): true | Instantiable;
|
|
17
|
+
protected getTableStoredIndexes(tableName: string): Promise<{
|
|
18
|
+
index_name: string;
|
|
19
|
+
index_sql: string;
|
|
20
|
+
}[]>;
|
|
21
|
+
protected isSameIndex(storedIndex: string, builtIndex: string): boolean;
|
|
22
|
+
}
|
|
23
|
+
export {};
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.JsonbIndexCreator = void 0;
|
|
10
|
+
const class_injector_1 = require("@rockster/class-injector");
|
|
11
|
+
const common_1 = require("../../common");
|
|
12
|
+
const class_pipe_1 = require("@rockster/class-pipe");
|
|
13
|
+
const worker_threads_1 = require("worker_threads");
|
|
14
|
+
let JsonbIndexCreator = class JsonbIndexCreator {
|
|
15
|
+
async updateIndexes() {
|
|
16
|
+
if (!worker_threads_1.isMainThread)
|
|
17
|
+
return;
|
|
18
|
+
const dataSource = core.database.dataSource;
|
|
19
|
+
const tablesIndexes = this.buildTablesIndexes();
|
|
20
|
+
for (const tableIndexes of tablesIndexes) {
|
|
21
|
+
const storedIndexes = await this.getTableStoredIndexes(tableIndexes.table.tableName);
|
|
22
|
+
for (const index of tableIndexes.indexes) {
|
|
23
|
+
const exists = storedIndexes?.find(storedIndex => storedIndex.index_name === index.name);
|
|
24
|
+
const tableName = tableIndexes.table.tableName;
|
|
25
|
+
const unique = index.unique ? 'UNIQUE' : '';
|
|
26
|
+
const nullsNotDistinct = index.nullsNotDistinct ? 'NULLS NOT DISTINCT' : '';
|
|
27
|
+
const partitionId = tableIndexes.table.isTaskMessage ? `,partition_id` : '';
|
|
28
|
+
const createdIndexQuery = `CREATE ${unique} INDEX ${index.name} ON ${tableName} ((${index.column}${index.path})${partitionId}) ${nullsNotDistinct}`;
|
|
29
|
+
if (exists) {
|
|
30
|
+
if (this.isSameIndex(exists.index_sql, createdIndexQuery))
|
|
31
|
+
continue;
|
|
32
|
+
else
|
|
33
|
+
await dataSource.query(`DROP INDEX ${exists.index_name}`);
|
|
34
|
+
}
|
|
35
|
+
await dataSource.query(createdIndexQuery);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
await this.dropIndexes(tablesIndexes);
|
|
39
|
+
}
|
|
40
|
+
async dropIndexes(tablesIndexes) {
|
|
41
|
+
const tables = core
|
|
42
|
+
.storage
|
|
43
|
+
.getObjects()
|
|
44
|
+
.filter(object => object.type === common_1.ObjectType.entity);
|
|
45
|
+
for (const table of tables) {
|
|
46
|
+
const tableIndexes = tablesIndexes.find(tableIndexes => tableIndexes.table.tableName === table.tableName) ?? { indexes: [] };
|
|
47
|
+
const storedIndexes = await this.getTableStoredIndexes(table.tableName);
|
|
48
|
+
for (const storedIndex of storedIndexes) {
|
|
49
|
+
const exists = tableIndexes.indexes.find(index => index.name === storedIndex.index_name);
|
|
50
|
+
if (exists)
|
|
51
|
+
continue;
|
|
52
|
+
const dropIndexQuery = `DROP INDEX ${storedIndex.index_name}`;
|
|
53
|
+
await core.database.dataSource.query(dropIndexQuery);
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
buildTablesIndexes() {
|
|
58
|
+
const indexesByTable = [];
|
|
59
|
+
const jsonbColumns = core
|
|
60
|
+
.storage
|
|
61
|
+
.getProperties()
|
|
62
|
+
.filter(property => {
|
|
63
|
+
return property.type === common_1.PropertyType.entity
|
|
64
|
+
&& property.columnType === 'jsonb';
|
|
65
|
+
});
|
|
66
|
+
for (const jsonbColumn of jsonbColumns) {
|
|
67
|
+
const table = core
|
|
68
|
+
.storage
|
|
69
|
+
.findObject(jsonbColumn.objectClass);
|
|
70
|
+
const typedProperty = this.getTypedProperty(jsonbColumn.objectClass, jsonbColumn.propertyKey);
|
|
71
|
+
if (!typedProperty)
|
|
72
|
+
continue;
|
|
73
|
+
const subtypes = typedProperty.ifChecks && typedProperty.ifChecks.length > 0
|
|
74
|
+
? typedProperty.ifChecks.map(ifCheck => ifCheck.type)
|
|
75
|
+
: typedProperty.subtype ? [typedProperty.subtype]
|
|
76
|
+
: null;
|
|
77
|
+
if (!subtypes)
|
|
78
|
+
continue;
|
|
79
|
+
const indexes = [];
|
|
80
|
+
this.searchTargetIndexes(table, jsonbColumn, typedProperty.subtype, indexes);
|
|
81
|
+
if (indexes.length > 0) {
|
|
82
|
+
let arryIndex = indexesByTable
|
|
83
|
+
.findIndex(indexesByTableItem => indexesByTableItem.table.objectClass === table.objectClass);
|
|
84
|
+
if (arryIndex < 0)
|
|
85
|
+
arryIndex = indexesByTable.push({ table: table, indexes: [] }) - 1;
|
|
86
|
+
indexes.forEach(index => indexesByTable[arryIndex].indexes.pushIfNotExists(index, (source, target) => source.name === target.name));
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
return indexesByTable;
|
|
90
|
+
}
|
|
91
|
+
searchTargetIndexes(table, column, target, indexes, parent = '') {
|
|
92
|
+
const indexProperties = core
|
|
93
|
+
.storage
|
|
94
|
+
.getProperties(target)
|
|
95
|
+
.filter(property => property.type === common_1.PropertyType.entity
|
|
96
|
+
&& !!property.jsonbIndexSettings);
|
|
97
|
+
for (const indexProperty of indexProperties) {
|
|
98
|
+
const indexSettings = indexProperty.jsonbIndexSettings;
|
|
99
|
+
const path = `${parent}->>'${indexProperty.propertyKey}'`;
|
|
100
|
+
const fieldName = path.replace(/->>/g, '_').replace(/->/g, '').replace(/'/g, '');
|
|
101
|
+
const name = `idx_jsonb_${table.tableName}_${column.columnName}${fieldName}`;
|
|
102
|
+
indexes.push({
|
|
103
|
+
target: target,
|
|
104
|
+
table: table.tableName,
|
|
105
|
+
name: name,
|
|
106
|
+
column: column.columnName,
|
|
107
|
+
path: path,
|
|
108
|
+
nullsNotDistinct: indexSettings.nullsNotDistinct,
|
|
109
|
+
strategy: indexSettings.strategy,
|
|
110
|
+
unique: indexSettings.unique
|
|
111
|
+
});
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
getTypedProperty(target, propertyKey) {
|
|
115
|
+
return (0, class_pipe_1.getProperties)(target)
|
|
116
|
+
.find(property => property.propertyKey === propertyKey
|
|
117
|
+
&& this.isObjectProperty(property));
|
|
118
|
+
}
|
|
119
|
+
isObjectProperty(property) {
|
|
120
|
+
return property.ifChecks?.length > 0 || property.subtype;
|
|
121
|
+
}
|
|
122
|
+
async getTableStoredIndexes(tableName) {
|
|
123
|
+
const storedIndexesSql = `
|
|
124
|
+
SELECT
|
|
125
|
+
i.relname AS index_name,
|
|
126
|
+
pg_get_indexdef(i.oid) AS index_sql
|
|
127
|
+
FROM pg_class t
|
|
128
|
+
JOIN pg_namespace n ON n.oid = t.relnamespace
|
|
129
|
+
JOIN pg_index ix ON ix.indrelid = t.oid
|
|
130
|
+
JOIN pg_class i ON i.oid = ix.indexrelid
|
|
131
|
+
WHERE t.relname = '${tableName}'
|
|
132
|
+
AND n.nspname = 'public'
|
|
133
|
+
AND i.relname LIKE 'idx_jsonb_%'
|
|
134
|
+
ORDER BY i.relname;
|
|
135
|
+
`;
|
|
136
|
+
return core.database.dataSource.query(storedIndexesSql);
|
|
137
|
+
}
|
|
138
|
+
isSameIndex(storedIndex, builtIndex) {
|
|
139
|
+
const stored = storedIndex.toLowerCase();
|
|
140
|
+
const built = builtIndex.toLowerCase();
|
|
141
|
+
if ((stored.includes('unique') && !built.includes('unique'))
|
|
142
|
+
|| !stored.includes('unique') && built.includes('unique')) {
|
|
143
|
+
return false;
|
|
144
|
+
}
|
|
145
|
+
if ((stored.includes('nulls not distinct') && !built.includes('nulls not distinct'))
|
|
146
|
+
|| (!stored.includes('nulls not distinct') && built.includes('nulls not distinct'))) {
|
|
147
|
+
return false;
|
|
148
|
+
}
|
|
149
|
+
return true;
|
|
150
|
+
}
|
|
151
|
+
};
|
|
152
|
+
exports.JsonbIndexCreator = JsonbIndexCreator;
|
|
153
|
+
exports.JsonbIndexCreator = JsonbIndexCreator = __decorate([
|
|
154
|
+
(0, class_injector_1.Injectable)()
|
|
155
|
+
], JsonbIndexCreator);
|
|
156
|
+
//# sourceMappingURL=jsonb-index-creator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"jsonb-index-creator.js","sourceRoot":"./","sources":["database/services/jsonb-index-creator.ts"],"names":[],"mappings":";;;;;;;;;AAAA,6DAAsD;AACtD,yCAAwD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,MAAM;YACN,OAAO;YACP,OAAO,EAAE,OAAO;YAChB,SAAS;SACM,CAAC;IACtB,CAAC;IAES,gBAAgB,CAAC,SAAuB;QAC/C,MAAM,MAAM,GAAG,IAAI;aACf,OAAO;aACP,UAAU,CAAC,SAAS,CACI,CAAC;QAC7B,MAAM,MAAM,GAAG,IAAI;aACf,OAAO;aACP,aAAa,CAAC,SAAS,CAAC;aACxB,IAAI,CAAC,CAAC,QAAuC,EAAE,EAAE;YAC/C,OAAO,QAAQ,CAAC,eAAe,CAAC;QACnC,CAAC,CAC4B,CAAC;QACjC,MAAM,OAAO,GAAG,IAAI;aAChB,OAAO;aACP,aAAa,CAAC,SAAS,CAAC;aACxB,IAAI,CAAC,CAAC,QAAuC,EAAE,EAAE;YAC/C,OAAO,QAAQ,CAAC,gBAAgB,CAAC;QACpC,CAAC,CAC4B,CAAC;QACjC,MAAM,GAAG,GAAG,IAAI;aACZ,OAAO;aACP,aAAa,CAAC,SAAS,CAAC;aACxB,IAAI,CAAC,CAAC,QAAuC,EAAE,EAAE;YAC/C,OAAO,QAAQ,CAAC,YAAY,CAAC;QAChC,CAAC,CAC4B,CAAC;QACjC,OAAO;YACJ,MAAM;YACN,MAAM,EAAE,MAAM;YACd,OAAO,EAAE,OAAO;YAChB,GAAG,EAAE,GAAG;SACO,CAAC;IACtB,CAAC;CACH,CAAA;AA7qBY,wCAAc;yBAAd,cAAc;IAD1B,IAAA,2BAAU,GAAE;GACA,cAAc,CA6qB1B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"repository.service.js","sourceRoot":"./","sources":["database/services/repository.service.ts"],"names":[],"mappings":";;;;;;AAEA,2EAAkD;AAClD,kEAA6D;AAQ7D,MAAsB,iBAAiB;IAIpC,KAAK,CAAC,MAAM,CACT,OAA0B;QAE1B,OAAO,IAAI;aACP,UAAU;aACV,OAAO,CACL,OAAO,CACT,CAAC;IACR,CAAC;IAED,KAAK,CAAC,OAAO,CACV,OAA4B;QAE5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,WAAW;aACX,IAAI,CAAC;QACT,IAAI,UAAU,GAAG,EAAE,CAAC;QACpB,KAAK,MAAM,MAAM,IAAI,OAAO,EAAE,CAAC;YAC5B,MAAM,KAAK,GAAG,OAAO,IAAI,CAAC,MAAgB,CAAC,KAAK,QAAQ;gBACrD,CAAC,CAAC,IAAI,CAAC,MAAgB,CAAC;gBACxB,CAAC,CAAC,IAAI,IAAI,CAAC,MAAgB,CAAC,GAAG,CAAC;YACnC,UAAU,IAAI,GAAG,CAAC,aAAa,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,IAAI,KAAK,MAAM,MAAgB,OAAO,KAAK,EAAE,CAAC;QAC3G,CAAC;QACD,OAAO,IAAI;aACP,UAAU;aACV,kBAAkB,CAAC,KAAK,CAAC;aACzB,KAAK,CAAC,UAAU,CAAC;aACjB,MAAM,EAAE,CAAC;IAChB,CAAC;CACH;AA/GD,8CA+GC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.controllers = void 0;
|
|
4
|
+
const docs_controller_1 = require("./docs.controller");
|
|
5
|
+
exports.controllers = [docs_controller_1.DocsController];
|
|
6
|
+
//# sourceMappingURL=controllers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"controllers.js","sourceRoot":"./","sources":["docs/controllers/controllers.ts"],"names":[],"mappings":";;;AAAA,uDAAmD;AAEtC,QAAA,WAAW,GAAG,CAAC,gCAAc,CAAC,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { IDocsController, IDocsControllerAction, IDocsVersion } from "@rockster/common/docs";
|
|
2
|
+
import { IQueryContent } from "../../query/interfaces";
|
|
3
|
+
export declare class DocsController {
|
|
4
|
+
versions(content: IQueryContent<IDocsVersion>): Promise<import("../../query/interfaces").Query<IDocsVersion>>;
|
|
5
|
+
controllers(content: IQueryContent<IDocsController>): Promise<import("../../query/interfaces").Query<IDocsController>>;
|
|
6
|
+
actions(content: IQueryContent<IDocsControllerAction>): Promise<import("../../query/interfaces").Query<IDocsControllerAction>>;
|
|
7
|
+
}
|