@venizia/ignis 0.0.7-9 → 0.0.7
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/README.md +74 -50
- package/dist/base/applications/abstract.d.ts.map +1 -1
- package/dist/base/applications/abstract.js +0 -8
- package/dist/base/applications/abstract.js.map +1 -1
- package/dist/base/applications/base.d.ts.map +1 -1
- package/dist/base/applications/base.js +0 -17
- package/dist/base/applications/base.js.map +1 -1
- package/dist/base/applications/types.d.ts.map +1 -1
- package/dist/base/applications/types.js.map +1 -1
- package/dist/base/components/base.d.ts.map +1 -1
- package/dist/base/components/base.js +0 -2
- package/dist/base/components/base.js.map +1 -1
- package/dist/base/controllers/abstract.d.ts +10 -124
- package/dist/base/controllers/abstract.d.ts.map +1 -1
- package/dist/base/controllers/abstract.js +6 -82
- package/dist/base/controllers/abstract.js.map +1 -1
- package/dist/base/controllers/base.d.ts +5 -113
- package/dist/base/controllers/base.d.ts.map +1 -1
- package/dist/base/controllers/base.js +5 -113
- package/dist/base/controllers/base.js.map +1 -1
- package/dist/base/controllers/common/constants.d.ts +1 -16
- package/dist/base/controllers/common/constants.d.ts.map +1 -1
- package/dist/base/controllers/common/constants.js +1 -20
- package/dist/base/controllers/common/constants.js.map +1 -1
- package/dist/base/controllers/common/types.d.ts +16 -167
- package/dist/base/controllers/common/types.d.ts.map +1 -1
- package/dist/base/controllers/common/types.js +1 -4
- package/dist/base/controllers/common/types.js.map +1 -1
- package/dist/base/controllers/factory/controller.d.ts +17 -198
- package/dist/base/controllers/factory/controller.d.ts.map +1 -1
- package/dist/base/controllers/factory/controller.js +13 -140
- package/dist/base/controllers/factory/controller.js.map +1 -1
- package/dist/base/controllers/factory/definition.d.ts +2 -7
- package/dist/base/controllers/factory/definition.d.ts.map +1 -1
- package/dist/base/controllers/factory/definition.js +4 -30
- package/dist/base/controllers/factory/definition.js.map +1 -1
- package/dist/base/datasources/base.d.ts +2 -31
- package/dist/base/datasources/base.d.ts.map +1 -1
- package/dist/base/datasources/base.js +2 -39
- package/dist/base/datasources/base.js.map +1 -1
- package/dist/base/datasources/common/types.d.ts +2 -4
- package/dist/base/datasources/common/types.d.ts.map +1 -1
- package/dist/base/datasources/common/types.js +1 -8
- package/dist/base/datasources/common/types.js.map +1 -1
- package/dist/base/metadata/injectors.d.ts +1 -30
- package/dist/base/metadata/injectors.d.ts.map +1 -1
- package/dist/base/metadata/injectors.js +1 -30
- package/dist/base/metadata/injectors.js.map +1 -1
- package/dist/base/metadata/persistents.d.ts +3 -63
- package/dist/base/metadata/persistents.d.ts.map +1 -1
- package/dist/base/metadata/persistents.js +11 -88
- package/dist/base/metadata/persistents.js.map +1 -1
- package/dist/base/metadata/routes.d.ts +1 -24
- package/dist/base/metadata/routes.d.ts.map +1 -1
- package/dist/base/metadata/routes.js +1 -27
- package/dist/base/metadata/routes.js.map +1 -1
- package/dist/base/middlewares/app-error.middleware.d.ts +1 -10
- package/dist/base/middlewares/app-error.middleware.d.ts.map +1 -1
- package/dist/base/middlewares/app-error.middleware.js +2 -14
- package/dist/base/middlewares/app-error.middleware.js.map +1 -1
- package/dist/base/middlewares/emoji-favicon.middleware.d.ts +1 -7
- package/dist/base/middlewares/emoji-favicon.middleware.d.ts.map +1 -1
- package/dist/base/middlewares/emoji-favicon.middleware.js +1 -7
- package/dist/base/middlewares/emoji-favicon.middleware.js.map +1 -1
- package/dist/base/middlewares/not-found.middleware.d.ts +1 -8
- package/dist/base/middlewares/not-found.middleware.d.ts.map +1 -1
- package/dist/base/middlewares/not-found.middleware.js +1 -8
- package/dist/base/middlewares/not-found.middleware.js.map +1 -1
- package/dist/base/middlewares/request-spy.middleware.d.ts +3 -19
- package/dist/base/middlewares/request-spy.middleware.d.ts.map +1 -1
- package/dist/base/middlewares/request-spy.middleware.js +3 -23
- package/dist/base/middlewares/request-spy.middleware.js.map +1 -1
- package/dist/base/mixins/component.mixin.d.ts.map +1 -1
- package/dist/base/mixins/controller.mixin.d.ts.map +1 -1
- package/dist/base/mixins/repository.mixin.d.ts.map +1 -1
- package/dist/base/mixins/service.mixin.d.ts.map +1 -1
- package/dist/base/models/base.d.ts +4 -21
- package/dist/base/models/base.d.ts.map +1 -1
- package/dist/base/models/base.js +1 -11
- package/dist/base/models/base.js.map +1 -1
- package/dist/base/models/common/types.d.ts.map +1 -1
- package/dist/base/models/common/types.js +0 -2
- package/dist/base/models/common/types.js.map +1 -1
- package/dist/base/models/enrichers/id.enricher.d.ts.map +1 -1
- package/dist/base/models/enrichers/id.enricher.js.map +1 -1
- package/dist/base/models/enrichers/user-audit.enricher.d.ts.map +1 -1
- package/dist/base/models/enrichers/user-audit.enricher.js +1 -6
- package/dist/base/models/enrichers/user-audit.enricher.js.map +1 -1
- package/dist/base/repositories/common/constants.d.ts +5 -59
- package/dist/base/repositories/common/constants.d.ts.map +1 -1
- package/dist/base/repositories/common/constants.js +3 -51
- package/dist/base/repositories/common/constants.js.map +1 -1
- package/dist/base/repositories/common/shared.d.ts +1 -13
- package/dist/base/repositories/common/shared.d.ts.map +1 -1
- package/dist/base/repositories/common/shared.js +2 -19
- package/dist/base/repositories/common/shared.js.map +1 -1
- package/dist/base/repositories/common/types.d.ts +32 -461
- package/dist/base/repositories/common/types.d.ts.map +1 -1
- package/dist/base/repositories/common/types.js +13 -159
- package/dist/base/repositories/common/types.js.map +1 -1
- package/dist/base/repositories/core/abstract.d.ts +10 -204
- package/dist/base/repositories/core/abstract.d.ts.map +1 -1
- package/dist/base/repositories/core/abstract.js +6 -126
- package/dist/base/repositories/core/abstract.js.map +1 -1
- package/dist/base/repositories/core/default-crud.d.ts +1 -36
- package/dist/base/repositories/core/default-crud.d.ts.map +1 -1
- package/dist/base/repositories/core/default-crud.js +1 -36
- package/dist/base/repositories/core/default-crud.js.map +1 -1
- package/dist/base/repositories/core/index.d.ts +1 -0
- package/dist/base/repositories/core/index.d.ts.map +1 -1
- package/dist/base/repositories/core/index.js +1 -0
- package/dist/base/repositories/core/index.js.map +1 -1
- package/dist/base/repositories/core/persistable.d.ts +2 -71
- package/dist/base/repositories/core/persistable.d.ts.map +1 -1
- package/dist/base/repositories/core/persistable.js +2 -100
- package/dist/base/repositories/core/persistable.js.map +1 -1
- package/dist/base/repositories/core/readable.d.ts +12 -127
- package/dist/base/repositories/core/readable.d.ts.map +1 -1
- package/dist/base/repositories/core/readable.js +8 -124
- package/dist/base/repositories/core/readable.js.map +1 -1
- package/dist/base/repositories/core/soft-deletable.d.ts +140 -0
- package/dist/base/repositories/core/soft-deletable.d.ts.map +1 -0
- package/dist/base/repositories/core/soft-deletable.js +99 -0
- package/dist/base/repositories/core/soft-deletable.js.map +1 -0
- package/dist/base/repositories/mixins/default-filter.d.ts +3 -49
- package/dist/base/repositories/mixins/default-filter.d.ts.map +1 -1
- package/dist/base/repositories/mixins/default-filter.js +3 -57
- package/dist/base/repositories/mixins/default-filter.js.map +1 -1
- package/dist/base/repositories/mixins/fields-visibility.d.ts +3 -59
- package/dist/base/repositories/mixins/fields-visibility.d.ts.map +1 -1
- package/dist/base/repositories/mixins/fields-visibility.js +3 -67
- package/dist/base/repositories/mixins/fields-visibility.js.map +1 -1
- package/dist/base/repositories/operators/filter.d.ts +10 -115
- package/dist/base/repositories/operators/filter.d.ts.map +1 -1
- package/dist/base/repositories/operators/filter.js +13 -154
- package/dist/base/repositories/operators/filter.js.map +1 -1
- package/dist/base/repositories/operators/json-utils.d.ts +5 -38
- package/dist/base/repositories/operators/json-utils.d.ts.map +1 -1
- package/dist/base/repositories/operators/json-utils.js +5 -47
- package/dist/base/repositories/operators/json-utils.js.map +1 -1
- package/dist/base/repositories/operators/query.d.ts +3 -56
- package/dist/base/repositories/operators/query.d.ts.map +1 -1
- package/dist/base/repositories/operators/query.js +11 -106
- package/dist/base/repositories/operators/query.js.map +1 -1
- package/dist/base/repositories/operators/relation.d.ts +1 -33
- package/dist/base/repositories/operators/relation.d.ts.map +1 -1
- package/dist/base/repositories/operators/relation.js +1 -36
- package/dist/base/repositories/operators/relation.js.map +1 -1
- package/dist/base/repositories/operators/update.d.ts +7 -72
- package/dist/base/repositories/operators/update.d.ts.map +1 -1
- package/dist/base/repositories/operators/update.js +6 -91
- package/dist/base/repositories/operators/update.js.map +1 -1
- package/dist/base/services/types.d.ts.map +1 -1
- package/dist/common/bindings.d.ts +2 -17
- package/dist/common/bindings.d.ts.map +1 -1
- package/dist/common/bindings.js +2 -14
- package/dist/common/bindings.js.map +1 -1
- package/dist/common/constants.d.ts +1 -3
- package/dist/common/constants.d.ts.map +1 -1
- package/dist/common/constants.js +1 -4
- package/dist/common/constants.js.map +1 -1
- package/dist/common/environments.d.ts +1 -4
- package/dist/common/environments.d.ts.map +1 -1
- package/dist/common/environments.js +1 -4
- package/dist/common/environments.js.map +1 -1
- package/dist/common/statuses.d.ts +6 -19
- package/dist/common/statuses.d.ts.map +1 -1
- package/dist/common/statuses.js +6 -27
- package/dist/common/statuses.js.map +1 -1
- package/dist/components/auth/authenticate/common/codecs.d.ts +11 -0
- package/dist/components/auth/authenticate/common/codecs.d.ts.map +1 -0
- package/dist/components/auth/authenticate/common/codecs.js +28 -0
- package/dist/components/auth/authenticate/common/codecs.js.map +1 -0
- package/dist/components/auth/authenticate/common/constants.d.ts +28 -4
- package/dist/components/auth/authenticate/common/constants.d.ts.map +1 -1
- package/dist/components/auth/authenticate/common/constants.js +37 -9
- package/dist/components/auth/authenticate/common/constants.js.map +1 -1
- package/dist/components/auth/authenticate/common/index.d.ts +1 -0
- package/dist/components/auth/authenticate/common/index.d.ts.map +1 -1
- package/dist/components/auth/authenticate/common/index.js +1 -0
- package/dist/components/auth/authenticate/common/index.js.map +1 -1
- package/dist/components/auth/authenticate/common/keys.d.ts +1 -0
- package/dist/components/auth/authenticate/common/keys.d.ts.map +1 -1
- package/dist/components/auth/authenticate/common/keys.js +1 -0
- package/dist/components/auth/authenticate/common/keys.js.map +1 -1
- package/dist/components/auth/authenticate/common/types.d.ts +55 -27
- package/dist/components/auth/authenticate/common/types.d.ts.map +1 -1
- package/dist/components/auth/authenticate/component.d.ts +2 -1
- package/dist/components/auth/authenticate/component.d.ts.map +1 -1
- package/dist/components/auth/authenticate/component.js +101 -45
- package/dist/components/auth/authenticate/component.js.map +1 -1
- package/dist/components/auth/authenticate/controllers/index.d.ts +1 -0
- package/dist/components/auth/authenticate/controllers/index.d.ts.map +1 -1
- package/dist/components/auth/authenticate/controllers/index.js +1 -0
- package/dist/components/auth/authenticate/controllers/index.js.map +1 -1
- package/dist/components/auth/authenticate/controllers/jwks/controller.d.ts +9 -0
- package/dist/components/auth/authenticate/controllers/jwks/controller.d.ts.map +1 -0
- package/dist/components/auth/authenticate/controllers/jwks/controller.js +54 -0
- package/dist/components/auth/authenticate/controllers/jwks/controller.js.map +1 -0
- package/dist/components/auth/authenticate/controllers/jwks/definitions.d.ts +66 -0
- package/dist/components/auth/authenticate/controllers/jwks/definitions.d.ts.map +1 -0
- package/dist/components/auth/authenticate/controllers/jwks/definitions.js +32 -0
- package/dist/components/auth/authenticate/controllers/jwks/definitions.js.map +1 -0
- package/dist/components/auth/authenticate/controllers/jwks/index.d.ts +2 -0
- package/dist/components/auth/authenticate/controllers/jwks/index.d.ts.map +1 -0
- package/dist/components/auth/authenticate/controllers/jwks/index.js +18 -0
- package/dist/components/auth/authenticate/controllers/jwks/index.js.map +1 -0
- package/dist/components/auth/authenticate/middlewares/authenticate.middleware.d.ts.map +1 -1
- package/dist/components/auth/authenticate/middlewares/authenticate.middleware.js +0 -2
- package/dist/components/auth/authenticate/middlewares/authenticate.middleware.js.map +1 -1
- package/dist/components/auth/authenticate/providers/authentication.provider.d.ts.map +1 -1
- package/dist/components/auth/authenticate/providers/authentication.provider.js +0 -7
- package/dist/components/auth/authenticate/providers/authentication.provider.js.map +1 -1
- package/dist/components/auth/authenticate/services/basic/index.d.ts +2 -0
- package/dist/components/auth/authenticate/services/basic/index.d.ts.map +1 -0
- package/dist/components/auth/authenticate/services/basic/index.js +18 -0
- package/dist/components/auth/authenticate/services/basic/index.js.map +1 -0
- package/dist/components/auth/authenticate/services/basic/service.d.ts +24 -0
- package/dist/components/auth/authenticate/services/basic/service.d.ts.map +1 -0
- package/dist/components/auth/authenticate/services/{basic-token.service.js → basic/service.js} +7 -45
- package/dist/components/auth/authenticate/services/basic/service.js.map +1 -0
- package/dist/components/auth/authenticate/services/bearer/abstract.service.d.ts +52 -0
- package/dist/components/auth/authenticate/services/bearer/abstract.service.d.ts.map +1 -0
- package/dist/components/auth/authenticate/services/bearer/abstract.service.js +177 -0
- package/dist/components/auth/authenticate/services/bearer/abstract.service.js.map +1 -0
- package/dist/components/auth/authenticate/services/bearer/index.d.ts +4 -0
- package/dist/components/auth/authenticate/services/bearer/index.d.ts.map +1 -0
- package/dist/components/auth/authenticate/services/bearer/index.js +20 -0
- package/dist/components/auth/authenticate/services/bearer/index.js.map +1 -0
- package/dist/components/auth/authenticate/services/bearer/jwks/abstract.service.d.ts +16 -0
- package/dist/components/auth/authenticate/services/bearer/jwks/abstract.service.d.ts.map +1 -0
- package/dist/components/auth/authenticate/services/bearer/jwks/abstract.service.js +32 -0
- package/dist/components/auth/authenticate/services/bearer/jwks/abstract.service.js.map +1 -0
- package/dist/components/auth/authenticate/services/bearer/jwks/index.d.ts +4 -0
- package/dist/components/auth/authenticate/services/bearer/jwks/index.d.ts.map +1 -0
- package/dist/components/auth/authenticate/services/bearer/jwks/index.js +20 -0
- package/dist/components/auth/authenticate/services/bearer/jwks/index.js.map +1 -0
- package/dist/components/auth/authenticate/services/bearer/jwks/issuer.service.d.ts +46 -0
- package/dist/components/auth/authenticate/services/bearer/jwks/issuer.service.d.ts.map +1 -0
- package/dist/components/auth/authenticate/services/bearer/jwks/issuer.service.js +168 -0
- package/dist/components/auth/authenticate/services/bearer/jwks/issuer.service.js.map +1 -0
- package/dist/components/auth/authenticate/services/bearer/jwks/verifier.service.d.ts +18 -0
- package/dist/components/auth/authenticate/services/bearer/jwks/verifier.service.d.ts.map +1 -0
- package/dist/components/auth/authenticate/services/bearer/jwks/verifier.service.js +73 -0
- package/dist/components/auth/authenticate/services/bearer/jwks/verifier.service.js.map +1 -0
- package/dist/components/auth/authenticate/services/bearer/jws.service.d.ts +19 -0
- package/dist/components/auth/authenticate/services/bearer/jws.service.d.ts.map +1 -0
- package/dist/components/auth/authenticate/services/bearer/jws.service.js +76 -0
- package/dist/components/auth/authenticate/services/bearer/jws.service.js.map +1 -0
- package/dist/components/auth/authenticate/services/index.d.ts +2 -2
- package/dist/components/auth/authenticate/services/index.d.ts.map +1 -1
- package/dist/components/auth/authenticate/services/index.js +2 -2
- package/dist/components/auth/authenticate/services/index.js.map +1 -1
- package/dist/components/auth/authenticate/strategies/basic.strategy.d.ts +1 -22
- package/dist/components/auth/authenticate/strategies/basic.strategy.d.ts.map +1 -1
- package/dist/components/auth/authenticate/strategies/basic.strategy.js +1 -22
- package/dist/components/auth/authenticate/strategies/basic.strategy.js.map +1 -1
- package/dist/components/auth/authenticate/strategies/index.d.ts +2 -1
- package/dist/components/auth/authenticate/strategies/index.d.ts.map +1 -1
- package/dist/components/auth/authenticate/strategies/index.js +2 -1
- package/dist/components/auth/authenticate/strategies/index.js.map +1 -1
- package/dist/components/auth/authenticate/strategies/jwks.strategy.d.ts +21 -0
- package/dist/components/auth/authenticate/strategies/jwks.strategy.d.ts.map +1 -0
- package/dist/components/auth/authenticate/strategies/jwks.strategy.js +68 -0
- package/dist/components/auth/authenticate/strategies/jwks.strategy.js.map +1 -0
- package/dist/components/auth/authenticate/strategies/{jwt.strategy.d.ts → jws.strategy.d.ts} +5 -4
- package/dist/components/auth/authenticate/strategies/jws.strategy.d.ts.map +1 -0
- package/dist/components/auth/authenticate/strategies/{jwt.strategy.js → jws.strategy.js} +11 -10
- package/dist/components/auth/authenticate/strategies/jws.strategy.js.map +1 -0
- package/dist/components/auth/authenticate/strategies/strategy-registry.d.ts.map +1 -1
- package/dist/components/auth/authenticate/strategies/strategy-registry.js +0 -5
- package/dist/components/auth/authenticate/strategies/strategy-registry.js.map +1 -1
- package/dist/components/auth/authorize/adapters/base-filtered.d.ts.map +1 -1
- package/dist/components/auth/authorize/adapters/base-filtered.js +0 -8
- package/dist/components/auth/authorize/adapters/base-filtered.js.map +1 -1
- package/dist/components/auth/authorize/adapters/drizzle-casbin.d.ts +2 -1
- package/dist/components/auth/authorize/adapters/drizzle-casbin.d.ts.map +1 -1
- package/dist/components/auth/authorize/adapters/drizzle-casbin.js +4 -5
- package/dist/components/auth/authorize/adapters/drizzle-casbin.js.map +1 -1
- package/dist/components/auth/authorize/common/constants.d.ts.map +1 -1
- package/dist/components/auth/authorize/common/constants.js +0 -8
- package/dist/components/auth/authorize/common/constants.js.map +1 -1
- package/dist/components/auth/authorize/common/types.d.ts +2 -32
- package/dist/components/auth/authorize/common/types.d.ts.map +1 -1
- package/dist/components/auth/authorize/component.d.ts.map +1 -1
- package/dist/components/auth/authorize/component.js +0 -2
- package/dist/components/auth/authorize/component.js.map +1 -1
- package/dist/components/auth/authorize/enforcers/casbin.enforcer.d.ts.map +1 -1
- package/dist/components/auth/authorize/enforcers/casbin.enforcer.js +0 -10
- package/dist/components/auth/authorize/enforcers/casbin.enforcer.js.map +1 -1
- package/dist/components/auth/authorize/enforcers/enforcer-registry.d.ts +1 -0
- package/dist/components/auth/authorize/enforcers/enforcer-registry.d.ts.map +1 -1
- package/dist/components/auth/authorize/enforcers/enforcer-registry.js +3 -7
- package/dist/components/auth/authorize/enforcers/enforcer-registry.js.map +1 -1
- package/dist/components/auth/authorize/middlewares/authorize.middleware.d.ts.map +1 -1
- package/dist/components/auth/authorize/middlewares/authorize.middleware.js +0 -2
- package/dist/components/auth/authorize/middlewares/authorize.middleware.js.map +1 -1
- package/dist/components/auth/authorize/models/abilities/string-action.model.d.ts.map +1 -1
- package/dist/components/auth/authorize/models/abilities/string-action.model.js +0 -1
- package/dist/components/auth/authorize/models/abilities/string-action.model.js.map +1 -1
- package/dist/components/auth/authorize/models/abilities/string-resource.model.d.ts.map +1 -1
- package/dist/components/auth/authorize/models/abilities/string-resource.model.js +0 -1
- package/dist/components/auth/authorize/models/abilities/string-resource.model.js.map +1 -1
- package/dist/components/auth/authorize/models/authorization-role.model.d.ts.map +1 -1
- package/dist/components/auth/authorize/models/authorization-role.model.js +0 -1
- package/dist/components/auth/authorize/models/authorization-role.model.js.map +1 -1
- package/dist/components/auth/authorize/providers/authorization.provider.d.ts.map +1 -1
- package/dist/components/auth/authorize/providers/authorization.provider.js +5 -6
- package/dist/components/auth/authorize/providers/authorization.provider.js.map +1 -1
- package/dist/components/auth/base/abstract-auth-registry.d.ts.map +1 -1
- package/dist/components/auth/base/abstract-auth-registry.js +0 -3
- package/dist/components/auth/base/abstract-auth-registry.js.map +1 -1
- package/dist/components/auth/context-variables.d.ts.map +1 -1
- package/dist/components/auth/models/entities/permission.model.d.ts.map +1 -1
- package/dist/components/auth/models/entities/permission.model.js.map +1 -1
- package/dist/components/auth/models/entities/policy-definition.model.d.ts.map +1 -1
- package/dist/components/auth/models/entities/policy-definition.model.js.map +1 -1
- package/dist/components/auth/models/entities/role.model.d.ts.map +1 -1
- package/dist/components/auth/models/entities/role.model.js +0 -1
- package/dist/components/auth/models/entities/role.model.js.map +1 -1
- package/dist/components/auth/models/entities/user.model.d.ts.map +1 -1
- package/dist/components/auth/models/entities/user.model.js +0 -1
- package/dist/components/auth/models/entities/user.model.js.map +1 -1
- package/dist/components/health-check/controller.d.ts.map +1 -1
- package/dist/components/health-check/controller.js +0 -1
- package/dist/components/health-check/controller.js.map +1 -1
- package/dist/components/mail/common/types.d.ts +1 -1
- package/dist/components/mail/common/types.d.ts.map +1 -1
- package/dist/components/mail/component.d.ts.map +1 -1
- package/dist/components/mail/component.js +2 -7
- package/dist/components/mail/component.js.map +1 -1
- package/dist/components/mail/helpers/executors/bull-mq-executor.helper.d.ts +2 -1
- package/dist/components/mail/helpers/executors/bull-mq-executor.helper.d.ts.map +1 -1
- package/dist/components/mail/helpers/executors/bull-mq-executor.helper.js +7 -7
- package/dist/components/mail/helpers/executors/bull-mq-executor.helper.js.map +1 -1
- package/dist/components/mail/helpers/executors/direct-executor.helper.d.ts +1 -1
- package/dist/components/mail/helpers/executors/direct-executor.helper.d.ts.map +1 -1
- package/dist/components/mail/helpers/executors/direct-executor.helper.js +3 -3
- package/dist/components/mail/helpers/executors/direct-executor.helper.js.map +1 -1
- package/dist/components/mail/helpers/executors/internal-queue-executor.helper.d.ts +1 -1
- package/dist/components/mail/helpers/executors/internal-queue-executor.helper.d.ts.map +1 -1
- package/dist/components/mail/helpers/executors/internal-queue-executor.helper.js +4 -4
- package/dist/components/mail/helpers/executors/internal-queue-executor.helper.js.map +1 -1
- package/dist/components/mail/helpers/transporters/mailgun-transporter.helper.d.ts +1 -1
- package/dist/components/mail/helpers/transporters/mailgun-transporter.helper.d.ts.map +1 -1
- package/dist/components/mail/helpers/transporters/mailgun-transporter.helper.js +3 -3
- package/dist/components/mail/helpers/transporters/mailgun-transporter.helper.js.map +1 -1
- package/dist/components/mail/helpers/transporters/nodemail-transporter.helper.d.ts +1 -1
- package/dist/components/mail/helpers/transporters/nodemail-transporter.helper.d.ts.map +1 -1
- package/dist/components/mail/helpers/transporters/nodemail-transporter.helper.js +3 -3
- package/dist/components/mail/helpers/transporters/nodemail-transporter.helper.js.map +1 -1
- package/dist/components/mail/providers/mail-queue-executor.provider.d.ts.map +1 -1
- package/dist/components/mail/providers/mail-queue-executor.provider.js +8 -8
- package/dist/components/mail/providers/mail-queue-executor.provider.js.map +1 -1
- package/dist/components/mail/providers/mail-transporter.provider.d.ts.map +1 -1
- package/dist/components/mail/providers/mail-transporter.provider.js +6 -6
- package/dist/components/mail/providers/mail-transporter.provider.js.map +1 -1
- package/dist/components/mail/services/mail.service.d.ts +1 -1
- package/dist/components/mail/services/mail.service.d.ts.map +1 -1
- package/dist/components/mail/services/mail.service.js +9 -9
- package/dist/components/mail/services/mail.service.js.map +1 -1
- package/dist/components/mail/services/template.service.d.ts +1 -1
- package/dist/components/mail/services/template.service.d.ts.map +1 -1
- package/dist/components/mail/services/template.service.js +4 -4
- package/dist/components/mail/services/template.service.js.map +1 -1
- package/dist/components/mail/utilities/type.utility.d.ts +1 -1
- package/dist/components/mail/utilities/type.utility.d.ts.map +1 -1
- package/dist/components/socket-io/component.d.ts.map +1 -1
- package/dist/components/socket-io/component.js +0 -4
- package/dist/components/socket-io/component.js.map +1 -1
- package/dist/components/static-asset/common/constants.d.ts +1 -0
- package/dist/components/static-asset/common/constants.d.ts.map +1 -1
- package/dist/components/static-asset/common/constants.js +2 -1
- package/dist/components/static-asset/common/constants.js.map +1 -1
- package/dist/components/static-asset/common/types.d.ts +43 -1
- package/dist/components/static-asset/common/types.d.ts.map +1 -1
- package/dist/components/static-asset/controller/base.definition.d.ts +81 -80
- package/dist/components/static-asset/controller/base.definition.d.ts.map +1 -1
- package/dist/components/static-asset/controller/base.definition.js +1 -2
- package/dist/components/static-asset/controller/base.definition.js.map +1 -1
- package/dist/components/static-asset/controller/factory.d.ts +2 -6
- package/dist/components/static-asset/controller/factory.d.ts.map +1 -1
- package/dist/components/static-asset/controller/factory.js +41 -42
- package/dist/components/static-asset/controller/factory.js.map +1 -1
- package/dist/components/static-asset/models/base.model.d.ts +49 -19
- package/dist/components/static-asset/models/base.model.d.ts.map +1 -1
- package/dist/components/static-asset/models/base.model.js +3 -7
- package/dist/components/static-asset/models/base.model.js.map +1 -1
- package/dist/components/swagger/ui-factory.d.ts.map +1 -1
- package/dist/components/swagger/ui-factory.js +0 -2
- package/dist/components/swagger/ui-factory.js.map +1 -1
- package/dist/components/websocket/component.d.ts.map +1 -1
- package/dist/components/websocket/component.js +0 -3
- package/dist/components/websocket/component.js.map +1 -1
- package/dist/helpers/base-helper.d.ts +2 -0
- package/dist/helpers/base-helper.d.ts.map +1 -0
- package/dist/helpers/base-helper.js +6 -0
- package/dist/helpers/base-helper.js.map +1 -0
- package/dist/helpers/index.d.ts +2 -1
- package/dist/helpers/index.d.ts.map +1 -1
- package/dist/helpers/index.js +1 -1
- package/dist/helpers/index.js.map +1 -1
- package/dist/helpers/inversion/common/keys.d.ts.map +1 -1
- package/dist/helpers/inversion/common/keys.js +0 -2
- package/dist/helpers/inversion/common/keys.js.map +1 -1
- package/dist/helpers/inversion/common/types.d.ts +18 -56
- package/dist/helpers/inversion/common/types.d.ts.map +1 -1
- package/dist/helpers/inversion/container.d.ts.map +1 -1
- package/dist/helpers/inversion/container.js +0 -1
- package/dist/helpers/inversion/container.js.map +1 -1
- package/dist/helpers/inversion/index.d.ts +1 -1
- package/dist/helpers/inversion/index.d.ts.map +1 -1
- package/dist/helpers/inversion/index.js +5 -1
- package/dist/helpers/inversion/index.js.map +1 -1
- package/dist/helpers/inversion/mixins/controller.mixin.d.ts.map +1 -1
- package/dist/helpers/inversion/mixins/controller.mixin.js +0 -3
- package/dist/helpers/inversion/mixins/controller.mixin.js.map +1 -1
- package/dist/helpers/inversion/mixins/datasource.mixin.d.ts.map +1 -1
- package/dist/helpers/inversion/mixins/datasource.mixin.js +0 -3
- package/dist/helpers/inversion/mixins/datasource.mixin.js.map +1 -1
- package/dist/helpers/inversion/mixins/model.mixin.d.ts +29 -1
- package/dist/helpers/inversion/mixins/model.mixin.d.ts.map +1 -1
- package/dist/helpers/inversion/mixins/model.mixin.js +66 -2
- package/dist/helpers/inversion/mixins/model.mixin.js.map +1 -1
- package/dist/helpers/inversion/mixins/repository.mixin.d.ts.map +1 -1
- package/dist/helpers/inversion/mixins/repository.mixin.js +0 -2
- package/dist/helpers/inversion/mixins/repository.mixin.js.map +1 -1
- package/dist/helpers/inversion/registry.d.ts +22 -0
- package/dist/helpers/inversion/registry.d.ts.map +1 -1
- package/dist/utilities/jsx.utility.d.ts +2 -16
- package/dist/utilities/jsx.utility.d.ts.map +1 -1
- package/dist/utilities/jsx.utility.js +2 -16
- package/dist/utilities/jsx.utility.js.map +1 -1
- package/dist/utilities/schema.utility.d.ts.map +1 -1
- package/dist/utilities/schema.utility.js +0 -2
- package/dist/utilities/schema.utility.js.map +1 -1
- package/package.json +3 -3
- package/dist/components/auth/authenticate/services/basic-token.service.d.ts +0 -60
- package/dist/components/auth/authenticate/services/basic-token.service.d.ts.map +0 -1
- package/dist/components/auth/authenticate/services/basic-token.service.js.map +0 -1
- package/dist/components/auth/authenticate/services/jwt-token.service.d.ts +0 -34
- package/dist/components/auth/authenticate/services/jwt-token.service.d.ts.map +0 -1
- package/dist/components/auth/authenticate/services/jwt-token.service.js +0 -218
- package/dist/components/auth/authenticate/services/jwt-token.service.js.map +0 -1
- package/dist/components/auth/authenticate/strategies/jwt.strategy.d.ts.map +0 -1
- package/dist/components/auth/authenticate/strategies/jwt.strategy.js.map +0 -1
|
@@ -4,199 +4,44 @@ import { z } from '@hono/zod-openapi';
|
|
|
4
4
|
import { TLogLevel, TNullable } from '@venizia/ignis-helpers';
|
|
5
5
|
import { Column, SQL, createTableRelationsHelpers } from 'drizzle-orm';
|
|
6
6
|
import { RelationTypes } from './constants';
|
|
7
|
-
/**
|
|
8
|
-
|
|
9
|
-
* Specifies how many items to skip from the beginning of the result set.
|
|
10
|
-
*
|
|
11
|
-
* @example
|
|
12
|
-
* ```typescript
|
|
13
|
-
* // Skip first 10 items
|
|
14
|
-
* const filter = { skip: 10, limit: 5 };
|
|
15
|
-
* ```
|
|
16
|
-
*/
|
|
17
|
-
export declare const SkipSchema: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
18
|
-
/** Type for pagination skip parameter. Inferred from {@link SkipSchema}. */
|
|
7
|
+
/** Zod schema for pagination skip parameter. */
|
|
8
|
+
export declare const SkipSchema: z.ZodOptional<z.ZodNumber>;
|
|
19
9
|
export type TSkip = z.infer<typeof SkipSchema>;
|
|
20
|
-
/**
|
|
21
|
-
|
|
22
|
-
* Alternative to skip - specifies the starting position in the result set.
|
|
23
|
-
*
|
|
24
|
-
* @example
|
|
25
|
-
* ```typescript
|
|
26
|
-
* // Start from the 20th item
|
|
27
|
-
* const filter = { offset: 20, limit: 10 };
|
|
28
|
-
* ```
|
|
29
|
-
*/
|
|
30
|
-
export declare const OffsetSchema: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
31
|
-
/** Type for pagination offset parameter. Inferred from {@link OffsetSchema}. */
|
|
10
|
+
/** Zod schema for pagination offset parameter. */
|
|
11
|
+
export declare const OffsetSchema: z.ZodOptional<z.ZodNumber>;
|
|
32
12
|
export type TOffset = z.infer<typeof OffsetSchema>;
|
|
33
|
-
/**
|
|
34
|
-
* Zod schema for pagination limit parameter.
|
|
35
|
-
* Specifies the maximum number of items to return in a query.
|
|
36
|
-
* Defaults to {@link DEFAULT_LIMIT} (10).
|
|
37
|
-
*
|
|
38
|
-
* @example
|
|
39
|
-
* ```typescript
|
|
40
|
-
* // Return at most 25 items
|
|
41
|
-
* const filter = { limit: 25 };
|
|
42
|
-
* ```
|
|
43
|
-
*/
|
|
13
|
+
/** Zod schema for pagination limit parameter. Defaults to DEFAULT_LIMIT (10). */
|
|
44
14
|
export declare const LimitSchema: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
45
|
-
/** Type for pagination limit parameter. Inferred from {@link LimitSchema}. */
|
|
46
15
|
export type TLimit = z.infer<typeof LimitSchema>;
|
|
47
|
-
/**
|
|
48
|
-
* Zod schema for query ordering/sorting.
|
|
49
|
-
* Supports sorting by regular columns and JSON/JSONB paths.
|
|
50
|
-
*
|
|
51
|
-
* @example
|
|
52
|
-
* ```typescript
|
|
53
|
-
* // Sort by single column
|
|
54
|
-
* const filter = { order: ['createdAt DESC'] };
|
|
55
|
-
*
|
|
56
|
-
* // Sort by multiple columns
|
|
57
|
-
* const filter = { order: ['priority DESC', 'createdAt ASC'] };
|
|
58
|
-
*
|
|
59
|
-
* // Sort by JSON path
|
|
60
|
-
* const filter = { order: ['metadata.score DESC'] };
|
|
61
|
-
* ```
|
|
62
|
-
*/
|
|
16
|
+
/** Zod schema for query ordering. Supports regular columns and JSON/JSONB paths. */
|
|
63
17
|
export declare const OrderBySchema: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
64
|
-
/** Type for ordering/sorting parameter. Inferred from {@link OrderBySchema}. */
|
|
65
18
|
export type TOrderBy = z.infer<typeof OrderBySchema>;
|
|
66
|
-
/**
|
|
67
|
-
* Zod schema for query where conditions.
|
|
68
|
-
* Supports both object format and JSON string format (for URL query params).
|
|
69
|
-
*
|
|
70
|
-
* Features:
|
|
71
|
-
* - Field equality: `{ name: 'John' }`
|
|
72
|
-
* - Comparison operators: `{ age: { gte: 18 } }`
|
|
73
|
-
* - Logical AND: `{ and: [{ status: 'active' }, { role: 'admin' }] }`
|
|
74
|
-
* - Logical OR: `{ or: [{ status: 'active' }, { isPublished: true }] }`
|
|
75
|
-
* - JSON path queries: `{ 'metadata.score': { gt: 50 } }`
|
|
76
|
-
*
|
|
77
|
-
* @example
|
|
78
|
-
* ```typescript
|
|
79
|
-
* // Simple equality
|
|
80
|
-
* const where = { status: 'active' };
|
|
81
|
-
*
|
|
82
|
-
* // With operators
|
|
83
|
-
* const where = { age: { gte: 18, lt: 65 } };
|
|
84
|
-
*
|
|
85
|
-
* // Logical operations
|
|
86
|
-
* const where = { or: [{ role: 'admin' }, { role: 'moderator' }] };
|
|
87
|
-
* ```
|
|
88
|
-
*/
|
|
19
|
+
/** Zod schema for query where conditions. Supports object format and JSON string format. */
|
|
89
20
|
export declare const WhereSchema: z.ZodUnion<readonly [z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>, z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<any, string>>, z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>>]>;
|
|
90
|
-
/**
|
|
91
|
-
* Type for where clause conditions.
|
|
92
|
-
* Supports field-level conditions and logical AND/OR grouping.
|
|
93
|
-
*
|
|
94
|
-
* @template T - The entity type for type-safe field names
|
|
95
|
-
*
|
|
96
|
-
* @example
|
|
97
|
-
* ```typescript
|
|
98
|
-
* // Type-safe where with entity
|
|
99
|
-
* const where: TWhere<User> = {
|
|
100
|
-
* email: 'john@example.com',
|
|
101
|
-
* and: [{ isActive: true }, { role: 'admin' }]
|
|
102
|
-
* };
|
|
103
|
-
* ```
|
|
104
|
-
*/
|
|
21
|
+
/** Where clause conditions with field-level conditions and logical AND/OR grouping. */
|
|
105
22
|
export type TWhere<T = any> = {
|
|
106
23
|
[key in keyof T]?: any;
|
|
107
24
|
} & {
|
|
108
25
|
and?: TWhere<T>[];
|
|
109
26
|
or?: TWhere<T>[];
|
|
110
27
|
};
|
|
111
|
-
/**
|
|
112
|
-
* Zod schema for field/column selection.
|
|
113
|
-
* Supports two formats:
|
|
114
|
-
* - Array format: `['id', 'name', 'email']` - include only these fields
|
|
115
|
-
* - Object format: `{ id: true, name: true, password: false }` - include/exclude fields
|
|
116
|
-
*
|
|
117
|
-
* @example
|
|
118
|
-
* ```typescript
|
|
119
|
-
* // Array format - include only specified fields
|
|
120
|
-
* const filter = { fields: ['id', 'name', 'email'] };
|
|
121
|
-
*
|
|
122
|
-
* // Object format - include specific, exclude others
|
|
123
|
-
* const filter = { fields: { id: true, name: true, password: false } };
|
|
124
|
-
* ```
|
|
125
|
-
*/
|
|
28
|
+
/** Zod schema for field/column selection. Supports array format or object format. */
|
|
126
29
|
export declare const FieldsSchema: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodBoolean>, z.ZodArray<z.ZodString>]>>;
|
|
127
|
-
/**
|
|
128
|
-
* Type for field selection.
|
|
129
|
-
* Can be an object mapping field names to booleans, or an array of field names.
|
|
130
|
-
*
|
|
131
|
-
* @template T - The entity type for type-safe field names
|
|
132
|
-
*/
|
|
30
|
+
/** Field selection -- object mapping field names to booleans, or array of field names. */
|
|
133
31
|
export type TFields<T = any> = Partial<{
|
|
134
32
|
[K in keyof T]: boolean;
|
|
135
33
|
}> | Array<keyof T>;
|
|
136
|
-
/**
|
|
137
|
-
* Zod schema for including related entities in queries.
|
|
138
|
-
* Allows eager loading of related data with optional nested filtering.
|
|
139
|
-
*
|
|
140
|
-
* @example
|
|
141
|
-
* ```typescript
|
|
142
|
-
* // Simple inclusion
|
|
143
|
-
* const filter = { include: [{ relation: 'posts' }] };
|
|
144
|
-
*
|
|
145
|
-
* // With nested scope/filter
|
|
146
|
-
* const filter = {
|
|
147
|
-
* include: [{
|
|
148
|
-
* relation: 'posts',
|
|
149
|
-
* scope: { where: { isPublished: true }, limit: 5 }
|
|
150
|
-
* }]
|
|
151
|
-
* };
|
|
152
|
-
* ```
|
|
153
|
-
*/
|
|
34
|
+
/** Zod schema for including related entities in queries with optional nested filtering. */
|
|
154
35
|
export declare const InclusionSchema: any;
|
|
155
|
-
/**
|
|
156
|
-
* Type for a single relation inclusion configuration.
|
|
157
|
-
*
|
|
158
|
-
* @property relation - The name of the relation to include
|
|
159
|
-
* @property scope - Optional filter to apply to the related entities
|
|
160
|
-
* @property shouldSkipDefaultFilter - If true, skip the default filter for this relation
|
|
161
|
-
*/
|
|
36
|
+
/** Single relation inclusion configuration. */
|
|
162
37
|
export type TInclusion = {
|
|
163
38
|
relation: string;
|
|
164
39
|
scope?: TFilter;
|
|
165
40
|
shouldSkipDefaultFilter?: boolean;
|
|
166
41
|
};
|
|
167
|
-
/**
|
|
168
|
-
* Comprehensive Zod schema for repository query filtering.
|
|
169
|
-
* Combines where conditions, field selection, relation inclusion, pagination, and sorting.
|
|
170
|
-
* Supports both object format and JSON string format (for URL query params).
|
|
171
|
-
*
|
|
172
|
-
* @example
|
|
173
|
-
* ```typescript
|
|
174
|
-
* // Complete filter example
|
|
175
|
-
* const filter = {
|
|
176
|
-
* where: { status: 'active', role: { in: ['admin', 'moderator'] } },
|
|
177
|
-
* fields: ['id', 'name', 'email'],
|
|
178
|
-
* include: [{ relation: 'posts', scope: { limit: 5 } }],
|
|
179
|
-
* order: ['createdAt DESC'],
|
|
180
|
-
* limit: 20,
|
|
181
|
-
* skip: 0
|
|
182
|
-
* };
|
|
183
|
-
* ```
|
|
184
|
-
*/
|
|
42
|
+
/** Comprehensive Zod schema for repository query filtering. Supports object and JSON string formats. */
|
|
185
43
|
export declare const FilterSchema: any;
|
|
186
|
-
/**
|
|
187
|
-
* Type for comprehensive filter configuration.
|
|
188
|
-
* Used across all repository query methods.
|
|
189
|
-
*
|
|
190
|
-
* @template T - The entity type for type-safe where conditions
|
|
191
|
-
*
|
|
192
|
-
* @property where - Query conditions for filtering results
|
|
193
|
-
* @property fields - Field selection (include/exclude columns)
|
|
194
|
-
* @property include - Related entities to eager load
|
|
195
|
-
* @property order - Sorting order for results
|
|
196
|
-
* @property limit - Maximum number of results to return
|
|
197
|
-
* @property offset - Number of results to skip (alternative to skip)
|
|
198
|
-
* @property skip - Number of results to skip
|
|
199
|
-
*/
|
|
44
|
+
/** Comprehensive filter configuration used across all repository query methods. */
|
|
200
45
|
export type TFilter<T = any> = {
|
|
201
46
|
where?: TWhere<T>;
|
|
202
47
|
fields?: TFields;
|
|
@@ -206,85 +51,22 @@ export type TFilter<T = any> = {
|
|
|
206
51
|
offset?: number;
|
|
207
52
|
skip?: number;
|
|
208
53
|
};
|
|
209
|
-
/**
|
|
210
|
-
* Update data supporting both regular fields and JSON path updates.
|
|
211
|
-
* Allows nested JSON/JSONB field updates using dot notation.
|
|
212
|
-
*
|
|
213
|
-
* @template T - The base entity type
|
|
214
|
-
*
|
|
215
|
-
* @example
|
|
216
|
-
* ```typescript
|
|
217
|
-
* // Regular update
|
|
218
|
-
* const data: TUpdateData<User> = { name: 'John' };
|
|
219
|
-
*
|
|
220
|
-
* // JSON path update (nested field)
|
|
221
|
-
* const data: TUpdateData<User> = { 'metadata.theme': 'dark' };
|
|
222
|
-
*
|
|
223
|
-
* // Nested path with array index
|
|
224
|
-
* const data: TUpdateData<User> = { 'settings.items[0].enabled': true };
|
|
225
|
-
*
|
|
226
|
-
* // Mixed regular and JSON path updates
|
|
227
|
-
* const data: TUpdateData<User> = {
|
|
228
|
-
* name: 'John',
|
|
229
|
-
* 'metadata.theme': 'dark',
|
|
230
|
-
* 'metadata.settings.notifications': true
|
|
231
|
-
* };
|
|
232
|
-
* ```
|
|
233
|
-
*/
|
|
54
|
+
/** Update data supporting both regular fields and JSON path updates via dot notation. */
|
|
234
55
|
export type TUpdateData<T = any> = Partial<T> & {
|
|
235
56
|
[jsonPath: string]: any;
|
|
236
57
|
};
|
|
237
|
-
/**
|
|
238
|
-
* Zod schema for count operation results.
|
|
239
|
-
* Returns the total number of matching records.
|
|
240
|
-
*/
|
|
58
|
+
/** Zod schema for count operation results. */
|
|
241
59
|
export declare const CountSchema: z.ZodObject<{
|
|
242
60
|
count: z.ZodDefault<z.ZodNumber>;
|
|
243
61
|
}, z.core.$strip>;
|
|
244
|
-
/** Type for count operation results. Inferred from {@link CountSchema}. */
|
|
245
62
|
export type TCount = z.infer<typeof CountSchema>;
|
|
246
|
-
/**
|
|
247
|
-
* Data range information for paginated queries.
|
|
248
|
-
* Follows HTTP Content-Range header standard format.
|
|
249
|
-
*
|
|
250
|
-
* @property start - The starting index (0-based, inclusive)
|
|
251
|
-
* @property end - The ending index (0-based, inclusive)
|
|
252
|
-
* @property total - The total number of records matching the query
|
|
253
|
-
* @property contentRange - Formatted Content-Range header string
|
|
254
|
-
*
|
|
255
|
-
* @example
|
|
256
|
-
* ```typescript
|
|
257
|
-
* // Query with limit: 10, skip: 20, total records: 100
|
|
258
|
-
* const range: TDataRange = {
|
|
259
|
-
* start: 20,
|
|
260
|
-
* end: 29,
|
|
261
|
-
* total: 100,
|
|
262
|
-
* contentRange: 'items 20-29/100'
|
|
263
|
-
* };
|
|
264
|
-
*
|
|
265
|
-
* // Use in HTTP response header
|
|
266
|
-
* res.setHeader('Content-Range', range.contentRange);
|
|
267
|
-
* ```
|
|
268
|
-
*/
|
|
63
|
+
/** Data range information for paginated queries. Follows HTTP Content-Range standard. */
|
|
269
64
|
export type TDataRange = {
|
|
270
|
-
/** Starting index (0-based, inclusive) */
|
|
271
65
|
start: number;
|
|
272
|
-
/** Ending index (0-based, inclusive) */
|
|
273
66
|
end: number;
|
|
274
|
-
/** Total number of records matching the query */
|
|
275
67
|
total: number;
|
|
276
68
|
};
|
|
277
|
-
/**
|
|
278
|
-
* Options for Drizzle ORM query building.
|
|
279
|
-
* Internal type used by the FilterBuilder to construct Drizzle queries.
|
|
280
|
-
*
|
|
281
|
-
* @property limit - Maximum records to return
|
|
282
|
-
* @property offset - Records to skip
|
|
283
|
-
* @property orderBy - SQL order expressions
|
|
284
|
-
* @property where - SQL where condition
|
|
285
|
-
* @property with - Relation inclusion configuration
|
|
286
|
-
* @property columns - Column selection configuration
|
|
287
|
-
*/
|
|
69
|
+
/** Options for Drizzle ORM query building, used internally by FilterBuilder. */
|
|
288
70
|
export type TDrizzleQueryOptions = Partial<{
|
|
289
71
|
limit: number;
|
|
290
72
|
offset: number;
|
|
@@ -293,25 +75,7 @@ export type TDrizzleQueryOptions = Partial<{
|
|
|
293
75
|
with: Record<string, true | TDrizzleQueryOptions>;
|
|
294
76
|
columns: Record<string, boolean>;
|
|
295
77
|
}>;
|
|
296
|
-
/**
|
|
297
|
-
* Configuration for entity relationships.
|
|
298
|
-
* Used to define one-to-one, one-to-many, and many-to-one relations.
|
|
299
|
-
*
|
|
300
|
-
* @property name - The relation name used in include queries
|
|
301
|
-
* @property type - The relation type ('one' or 'many')
|
|
302
|
-
* @property schema - The related entity's table schema
|
|
303
|
-
* @property metadata - Drizzle relation metadata (fields, references)
|
|
304
|
-
*
|
|
305
|
-
* @example
|
|
306
|
-
* ```typescript
|
|
307
|
-
* const postsRelation: TRelationConfig = {
|
|
308
|
-
* name: 'posts',
|
|
309
|
-
* type: RelationTypes.MANY,
|
|
310
|
-
* schema: PostSchema,
|
|
311
|
-
* metadata: { fields: [Post.schema.authorId], references: [User.schema.id] }
|
|
312
|
-
* };
|
|
313
|
-
* ```
|
|
314
|
-
*/
|
|
78
|
+
/** Configuration for entity relationships (one-to-one, one-to-many, many-to-one). */
|
|
315
79
|
export type TRelationConfig = {
|
|
316
80
|
name: string;
|
|
317
81
|
} & ({
|
|
@@ -323,119 +87,44 @@ export type TRelationConfig = {
|
|
|
323
87
|
schema: TTableSchemaWithId;
|
|
324
88
|
metadata: Parameters<ReturnType<typeof createTableRelationsHelpers>[typeof RelationTypes.MANY]>[1];
|
|
325
89
|
});
|
|
326
|
-
/**
|
|
327
|
-
* Configuration for repository operation logging.
|
|
328
|
-
*
|
|
329
|
-
* @property use - Whether to enable logging for this operation
|
|
330
|
-
* @property level - The log level to use (defaults to 'info')
|
|
331
|
-
*/
|
|
90
|
+
/** Configuration for repository operation logging. */
|
|
332
91
|
export type TRepositoryLogOptions = {
|
|
333
92
|
use: boolean;
|
|
334
93
|
level?: TLogLevel;
|
|
335
94
|
};
|
|
336
|
-
/**
|
|
337
|
-
* Interface for objects that can be associated with a database transaction.
|
|
338
|
-
*/
|
|
95
|
+
/** Interface for objects that can be associated with a database transaction. */
|
|
339
96
|
export interface IWithTransaction {
|
|
340
|
-
/** The active transaction to use for this operation. */
|
|
341
97
|
transaction?: ITransaction;
|
|
342
98
|
}
|
|
343
|
-
/**
|
|
344
|
-
* Extended options for repository operations.
|
|
345
|
-
* Includes transaction support, logging configuration, and default filter bypass.
|
|
346
|
-
*
|
|
347
|
-
* @example
|
|
348
|
-
* ```typescript
|
|
349
|
-
* // Use with transaction
|
|
350
|
-
* const tx = await repository.beginTransaction();
|
|
351
|
-
* await repository.create({ data: user, options: { transaction: tx } });
|
|
352
|
-
* await tx.commit();
|
|
353
|
-
*
|
|
354
|
-
* // Enable logging for debugging
|
|
355
|
-
* await repository.find({ filter: {}, options: { log: { use: true, level: 'debug' } } });
|
|
356
|
-
*
|
|
357
|
-
* // Bypass default filter (e.g., soft delete)
|
|
358
|
-
* await repository.find({ filter: {}, options: { shouldSkipDefaultFilter: true } });
|
|
359
|
-
* ```
|
|
360
|
-
*/
|
|
99
|
+
/** Extended options for repository operations with transaction, logging, and default filter bypass. */
|
|
361
100
|
export interface IExtraOptions extends IWithTransaction {
|
|
362
|
-
/** Optional logging configuration for this operation. */
|
|
363
101
|
log?: TRepositoryLogOptions;
|
|
364
|
-
/**
|
|
365
|
-
* If true, bypass the default filter configured in model settings.
|
|
366
|
-
* Use this when you need to query all records regardless of default filter constraints.
|
|
367
|
-
*
|
|
368
|
-
* @example
|
|
369
|
-
* ```typescript
|
|
370
|
-
* // Bypass default filter: { where: { isDeleted: false } }
|
|
371
|
-
* repository.find({ filter: {}, options: { shouldSkipDefaultFilter: true } });
|
|
372
|
-
* ```
|
|
373
|
-
*/
|
|
102
|
+
/** If true, bypass the default filter configured in model settings (e.g., soft delete). */
|
|
374
103
|
shouldSkipDefaultFilter?: boolean;
|
|
375
104
|
}
|
|
376
|
-
/**
|
|
377
|
-
* @deprecated Use {@link IExtraOptions} instead.
|
|
378
|
-
*/
|
|
105
|
+
/** @deprecated Use IExtraOptions instead. */
|
|
379
106
|
export type TTransactionOption = IExtraOptions;
|
|
380
|
-
/**
|
|
381
|
-
* Base repository interface.
|
|
382
|
-
* Defines the core properties and methods that all repositories must implement.
|
|
383
|
-
*
|
|
384
|
-
* @template EntitySchema - The Drizzle table schema type with an 'id' column
|
|
385
|
-
*/
|
|
107
|
+
/** Base repository interface defining core properties and methods. */
|
|
386
108
|
export interface IRepository<EntitySchema extends TTableSchemaWithId = TTableSchemaWithId> {
|
|
387
|
-
/** The data source providing database connectivity. */
|
|
388
109
|
dataSource: IDataSource;
|
|
389
|
-
/** The entity/model instance associated with this repository. */
|
|
390
110
|
entity: BaseEntity<EntitySchema>;
|
|
391
|
-
/** Returns the entity instance. */
|
|
392
111
|
getEntity(): BaseEntity<EntitySchema>;
|
|
393
|
-
/** Returns the Drizzle table schema. */
|
|
394
112
|
getEntitySchema(): EntitySchema;
|
|
395
|
-
/** Returns the database connector from the data source. */
|
|
396
113
|
getConnector(): IDataSource['connector'];
|
|
397
114
|
}
|
|
398
|
-
/**
|
|
399
|
-
* Interface for read-only repository operations.
|
|
400
|
-
* Provides methods for querying data without modification capabilities.
|
|
401
|
-
*
|
|
402
|
-
* @template EntitySchema - The Drizzle table schema type
|
|
403
|
-
* @template DataObject - The type of objects returned from queries
|
|
404
|
-
* @template ExtraOptions - Additional options type extending IExtraOptions
|
|
405
|
-
*/
|
|
115
|
+
/** Interface for read-only repository operations. */
|
|
406
116
|
export interface IReadableRepository<EntitySchema extends TTableSchemaWithId = TTableSchemaWithId, DataObject extends TTableObject<EntitySchema> = TTableObject<EntitySchema>, ExtraOptions extends IExtraOptions = IExtraOptions> extends IRepository<EntitySchema> {
|
|
407
|
-
/**
|
|
408
|
-
* Builds Drizzle query options from a filter object.
|
|
409
|
-
* @param opts - Options containing the filter to convert
|
|
410
|
-
* @returns Drizzle-compatible query options
|
|
411
|
-
*/
|
|
412
117
|
buildQuery(opts: {
|
|
413
118
|
filter: TFilter<DataObject>;
|
|
414
119
|
}): TDrizzleQueryOptions;
|
|
415
|
-
/**
|
|
416
|
-
* Counts records matching the where condition.
|
|
417
|
-
* @param opts - Options containing where condition
|
|
418
|
-
* @returns Promise resolving to count result
|
|
419
|
-
*/
|
|
420
120
|
count(opts: {
|
|
421
121
|
where: TWhere<DataObject>;
|
|
422
122
|
options?: ExtraOptions;
|
|
423
123
|
}): Promise<TCount>;
|
|
424
|
-
/**
|
|
425
|
-
* Checks if any records match the where condition.
|
|
426
|
-
* @param opts - Options containing where condition
|
|
427
|
-
* @returns Promise resolving to true if records exist
|
|
428
|
-
*/
|
|
429
124
|
existsWith(opts: {
|
|
430
125
|
where: TWhere<DataObject>;
|
|
431
126
|
options?: ExtraOptions;
|
|
432
127
|
}): Promise<boolean>;
|
|
433
|
-
/**
|
|
434
|
-
* Finds all records matching the filter.
|
|
435
|
-
* @template R - Return type (defaults to DataObject)
|
|
436
|
-
* @param opts - Options containing filter and extra options with shouldQueryRange: true
|
|
437
|
-
* @returns Promise resolving to object with data array and range information
|
|
438
|
-
*/
|
|
439
128
|
find<R = DataObject>(opts: {
|
|
440
129
|
filter: TFilter<DataObject>;
|
|
441
130
|
options: ExtraOptions & {
|
|
@@ -445,55 +134,24 @@ export interface IReadableRepository<EntitySchema extends TTableSchemaWithId = T
|
|
|
445
134
|
data: Array<R>;
|
|
446
135
|
range: TDataRange;
|
|
447
136
|
}>;
|
|
448
|
-
/**
|
|
449
|
-
* Finds all records matching the filter.
|
|
450
|
-
* @template R - Return type (defaults to DataObject)
|
|
451
|
-
* @param opts - Options containing filter and extra options
|
|
452
|
-
* @returns Promise resolving to array of matching records
|
|
453
|
-
*/
|
|
454
137
|
find<R = DataObject>(opts: {
|
|
455
138
|
filter: TFilter<DataObject>;
|
|
456
139
|
options?: ExtraOptions & {
|
|
457
140
|
shouldQueryRange?: false;
|
|
458
141
|
};
|
|
459
142
|
}): Promise<Array<R>>;
|
|
460
|
-
/**
|
|
461
|
-
* Finds the first record matching the filter.
|
|
462
|
-
* @template R - Return type (defaults to DataObject)
|
|
463
|
-
* @param opts - Options containing filter and extra options
|
|
464
|
-
* @returns Promise resolving to the found record or null
|
|
465
|
-
*/
|
|
466
143
|
findOne<R = DataObject>(opts: {
|
|
467
144
|
filter: TFilter<DataObject>;
|
|
468
145
|
options?: ExtraOptions;
|
|
469
146
|
}): Promise<TNullable<R>>;
|
|
470
|
-
/**
|
|
471
|
-
* Finds a record by its ID.
|
|
472
|
-
* @template R - Return type (defaults to DataObject)
|
|
473
|
-
* @param opts - Options containing id and optional filter (without where)
|
|
474
|
-
* @returns Promise resolving to the found record or null
|
|
475
|
-
*/
|
|
476
147
|
findById<R = DataObject>(opts: {
|
|
477
148
|
id: IdType;
|
|
478
149
|
filter?: Omit<TFilter<DataObject>, 'where'>;
|
|
479
150
|
options?: ExtraOptions;
|
|
480
151
|
}): Promise<TNullable<R>>;
|
|
481
152
|
}
|
|
482
|
-
/**
|
|
483
|
-
* Interface for full CRUD repository operations.
|
|
484
|
-
* Extends IReadableRepository with create, update, and delete capabilities.
|
|
485
|
-
*
|
|
486
|
-
* @template EntitySchema - The Drizzle table schema type
|
|
487
|
-
* @template DataObject - The type of objects returned from queries
|
|
488
|
-
* @template PersistObject - The type for insert/update operations
|
|
489
|
-
* @template ExtraOptions - Additional options type extending IExtraOptions
|
|
490
|
-
*/
|
|
153
|
+
/** Interface for full CRUD repository operations. */
|
|
491
154
|
export interface IPersistableRepository<EntitySchema extends TTableSchemaWithId = TTableSchemaWithId, DataObject extends TTableObject<EntitySchema> = TTableObject<EntitySchema>, PersistObject extends TTableInsert<EntitySchema> = TTableInsert<EntitySchema>, ExtraOptions extends IExtraOptions = IExtraOptions> extends IReadableRepository<EntitySchema, DataObject, ExtraOptions> {
|
|
492
|
-
/**
|
|
493
|
-
* Creates a single record.
|
|
494
|
-
* @param opts - Options with data and shouldReturn: false
|
|
495
|
-
* @returns Promise with count only (no data returned)
|
|
496
|
-
*/
|
|
497
155
|
create(opts: {
|
|
498
156
|
data: PersistObject;
|
|
499
157
|
options: ExtraOptions & {
|
|
@@ -502,12 +160,6 @@ export interface IPersistableRepository<EntitySchema extends TTableSchemaWithId
|
|
|
502
160
|
}): Promise<TCount & {
|
|
503
161
|
data: undefined | null;
|
|
504
162
|
}>;
|
|
505
|
-
/**
|
|
506
|
-
* Creates a single record and returns it.
|
|
507
|
-
* @template R - Return type (defaults to DataObject)
|
|
508
|
-
* @param opts - Options with data to create
|
|
509
|
-
* @returns Promise with count and created record
|
|
510
|
-
*/
|
|
511
163
|
create<R = DataObject>(opts: {
|
|
512
164
|
data: PersistObject;
|
|
513
165
|
options?: ExtraOptions & {
|
|
@@ -516,11 +168,6 @@ export interface IPersistableRepository<EntitySchema extends TTableSchemaWithId
|
|
|
516
168
|
}): Promise<TCount & {
|
|
517
169
|
data: R;
|
|
518
170
|
}>;
|
|
519
|
-
/**
|
|
520
|
-
* Creates multiple records in bulk.
|
|
521
|
-
* @param opts - Options with data array and shouldReturn: false
|
|
522
|
-
* @returns Promise with count only
|
|
523
|
-
*/
|
|
524
171
|
createAll(opts: {
|
|
525
172
|
data: Array<PersistObject>;
|
|
526
173
|
options: ExtraOptions & {
|
|
@@ -529,12 +176,6 @@ export interface IPersistableRepository<EntitySchema extends TTableSchemaWithId
|
|
|
529
176
|
}): Promise<TCount & {
|
|
530
177
|
data: undefined | null;
|
|
531
178
|
}>;
|
|
532
|
-
/**
|
|
533
|
-
* Creates multiple records and returns them.
|
|
534
|
-
* @template R - Return type (defaults to DataObject)
|
|
535
|
-
* @param opts - Options with data array
|
|
536
|
-
* @returns Promise with count and created records
|
|
537
|
-
*/
|
|
538
179
|
createAll<R = DataObject>(opts: {
|
|
539
180
|
data: Array<PersistObject>;
|
|
540
181
|
options?: ExtraOptions & {
|
|
@@ -543,11 +184,6 @@ export interface IPersistableRepository<EntitySchema extends TTableSchemaWithId
|
|
|
543
184
|
}): Promise<TCount & {
|
|
544
185
|
data: Array<R>;
|
|
545
186
|
}>;
|
|
546
|
-
/**
|
|
547
|
-
* Updates a record by its ID.
|
|
548
|
-
* @param opts - Options with id, partial data, and shouldReturn: false
|
|
549
|
-
* @returns Promise with count only
|
|
550
|
-
*/
|
|
551
187
|
updateById(opts: {
|
|
552
188
|
id: IdType;
|
|
553
189
|
data: Partial<PersistObject>;
|
|
@@ -557,12 +193,6 @@ export interface IPersistableRepository<EntitySchema extends TTableSchemaWithId
|
|
|
557
193
|
}): Promise<TCount & {
|
|
558
194
|
data: undefined | null;
|
|
559
195
|
}>;
|
|
560
|
-
/**
|
|
561
|
-
* Updates a record by its ID and returns it.
|
|
562
|
-
* @template R - Return type (defaults to DataObject)
|
|
563
|
-
* @param opts - Options with id and partial data
|
|
564
|
-
* @returns Promise with count and updated record
|
|
565
|
-
*/
|
|
566
196
|
updateById<R = DataObject>(opts: {
|
|
567
197
|
id: IdType;
|
|
568
198
|
data: Partial<PersistObject>;
|
|
@@ -572,11 +202,6 @@ export interface IPersistableRepository<EntitySchema extends TTableSchemaWithId
|
|
|
572
202
|
}): Promise<TCount & {
|
|
573
203
|
data: R;
|
|
574
204
|
}>;
|
|
575
|
-
/**
|
|
576
|
-
* Updates all records matching the where condition.
|
|
577
|
-
* @param opts - Options with data, where, and shouldReturn: false
|
|
578
|
-
* @returns Promise with count only
|
|
579
|
-
*/
|
|
580
205
|
updateAll(opts: {
|
|
581
206
|
data: Partial<PersistObject>;
|
|
582
207
|
where: TWhere<DataObject>;
|
|
@@ -587,12 +212,6 @@ export interface IPersistableRepository<EntitySchema extends TTableSchemaWithId
|
|
|
587
212
|
}): Promise<TCount & {
|
|
588
213
|
data: undefined | null;
|
|
589
214
|
}>;
|
|
590
|
-
/**
|
|
591
|
-
* Updates all records matching the where condition and returns them.
|
|
592
|
-
* @template R - Return type (defaults to DataObject)
|
|
593
|
-
* @param opts - Options with data and where condition
|
|
594
|
-
* @returns Promise with count and updated records
|
|
595
|
-
*/
|
|
596
215
|
updateAll<R = DataObject>(opts: {
|
|
597
216
|
data: Partial<PersistObject>;
|
|
598
217
|
where: TWhere<DataObject>;
|
|
@@ -603,11 +222,7 @@ export interface IPersistableRepository<EntitySchema extends TTableSchemaWithId
|
|
|
603
222
|
}): Promise<TCount & {
|
|
604
223
|
data: Array<R>;
|
|
605
224
|
}>;
|
|
606
|
-
/**
|
|
607
|
-
* Alias for updateAll. Updates records matching the where condition.
|
|
608
|
-
* @param opts - Options with data, where, and shouldReturn: false
|
|
609
|
-
* @returns Promise with count only
|
|
610
|
-
*/
|
|
225
|
+
/** Alias for updateAll. */
|
|
611
226
|
updateBy(opts: {
|
|
612
227
|
data: Partial<PersistObject>;
|
|
613
228
|
where: TWhere<DataObject>;
|
|
@@ -618,12 +233,7 @@ export interface IPersistableRepository<EntitySchema extends TTableSchemaWithId
|
|
|
618
233
|
}): Promise<TCount & {
|
|
619
234
|
data: undefined | null;
|
|
620
235
|
}>;
|
|
621
|
-
/**
|
|
622
|
-
* Alias for updateAll. Updates records and returns them.
|
|
623
|
-
* @template R - Return type (defaults to DataObject)
|
|
624
|
-
* @param opts - Options with data and where condition
|
|
625
|
-
* @returns Promise with count and updated records
|
|
626
|
-
*/
|
|
236
|
+
/** Alias for updateAll. */
|
|
627
237
|
updateBy<R = DataObject>(opts: {
|
|
628
238
|
data: Partial<PersistObject>;
|
|
629
239
|
where: TWhere<DataObject>;
|
|
@@ -634,11 +244,6 @@ export interface IPersistableRepository<EntitySchema extends TTableSchemaWithId
|
|
|
634
244
|
}): Promise<TCount & {
|
|
635
245
|
data: Array<R>;
|
|
636
246
|
}>;
|
|
637
|
-
/**
|
|
638
|
-
* Deletes a record by its ID.
|
|
639
|
-
* @param opts - Options with id and shouldReturn: false
|
|
640
|
-
* @returns Promise with count only
|
|
641
|
-
*/
|
|
642
247
|
deleteById(opts: {
|
|
643
248
|
id: IdType;
|
|
644
249
|
options: ExtraOptions & {
|
|
@@ -647,12 +252,6 @@ export interface IPersistableRepository<EntitySchema extends TTableSchemaWithId
|
|
|
647
252
|
}): Promise<TCount & {
|
|
648
253
|
data: undefined | null;
|
|
649
254
|
}>;
|
|
650
|
-
/**
|
|
651
|
-
* Deletes a record by its ID and returns it.
|
|
652
|
-
* @template R - Return type (defaults to DataObject)
|
|
653
|
-
* @param opts - Options with id
|
|
654
|
-
* @returns Promise with count and deleted record
|
|
655
|
-
*/
|
|
656
255
|
deleteById<R = DataObject>(opts: {
|
|
657
256
|
id: IdType;
|
|
658
257
|
options?: ExtraOptions & {
|
|
@@ -661,11 +260,6 @@ export interface IPersistableRepository<EntitySchema extends TTableSchemaWithId
|
|
|
661
260
|
}): Promise<TCount & {
|
|
662
261
|
data: R;
|
|
663
262
|
}>;
|
|
664
|
-
/**
|
|
665
|
-
* Deletes all records matching the where condition.
|
|
666
|
-
* @param opts - Options with where and shouldReturn: false
|
|
667
|
-
* @returns Promise with count only
|
|
668
|
-
*/
|
|
669
263
|
deleteAll(opts: {
|
|
670
264
|
where?: TWhere<DataObject>;
|
|
671
265
|
options: ExtraOptions & {
|
|
@@ -675,12 +269,6 @@ export interface IPersistableRepository<EntitySchema extends TTableSchemaWithId
|
|
|
675
269
|
}): Promise<TCount & {
|
|
676
270
|
data: undefined | null;
|
|
677
271
|
}>;
|
|
678
|
-
/**
|
|
679
|
-
* Deletes all records matching the where condition and returns them.
|
|
680
|
-
* @template R - Return type (defaults to DataObject)
|
|
681
|
-
* @param opts - Options with where condition
|
|
682
|
-
* @returns Promise with count and deleted records
|
|
683
|
-
*/
|
|
684
272
|
deleteAll<R = DataObject>(opts: {
|
|
685
273
|
where?: TWhere<DataObject>;
|
|
686
274
|
options?: ExtraOptions & {
|
|
@@ -690,11 +278,7 @@ export interface IPersistableRepository<EntitySchema extends TTableSchemaWithId
|
|
|
690
278
|
}): Promise<TCount & {
|
|
691
279
|
data: Array<R>;
|
|
692
280
|
}>;
|
|
693
|
-
/**
|
|
694
|
-
* Alias for deleteAll. Deletes records matching the where condition.
|
|
695
|
-
* @param opts - Options with where and shouldReturn: false
|
|
696
|
-
* @returns Promise with count only
|
|
697
|
-
*/
|
|
281
|
+
/** Alias for deleteAll. */
|
|
698
282
|
deleteBy(opts: {
|
|
699
283
|
where?: TWhere<DataObject>;
|
|
700
284
|
options: ExtraOptions & {
|
|
@@ -704,12 +288,7 @@ export interface IPersistableRepository<EntitySchema extends TTableSchemaWithId
|
|
|
704
288
|
}): Promise<TCount & {
|
|
705
289
|
data: undefined | null;
|
|
706
290
|
}>;
|
|
707
|
-
/**
|
|
708
|
-
* Alias for deleteAll. Deletes records and returns them.
|
|
709
|
-
* @template R - Return type (defaults to DataObject)
|
|
710
|
-
* @param opts - Options with where condition
|
|
711
|
-
* @returns Promise with count and deleted records
|
|
712
|
-
*/
|
|
291
|
+
/** Alias for deleteAll. */
|
|
713
292
|
deleteBy<R = DataObject>(opts: {
|
|
714
293
|
where?: TWhere<DataObject>;
|
|
715
294
|
options?: ExtraOptions & {
|
|
@@ -720,15 +299,7 @@ export interface IPersistableRepository<EntitySchema extends TTableSchemaWithId
|
|
|
720
299
|
data: Array<R>;
|
|
721
300
|
}>;
|
|
722
301
|
}
|
|
723
|
-
/**
|
|
724
|
-
* Options passed to query operator handler functions.
|
|
725
|
-
* Used internally by {@link QueryOperators} to build SQL conditions.
|
|
726
|
-
*
|
|
727
|
-
* @template T - The type of the comparison value
|
|
728
|
-
*
|
|
729
|
-
* @property column - The Drizzle column to compare against
|
|
730
|
-
* @property value - The value to compare with
|
|
731
|
-
*/
|
|
302
|
+
/** Options passed to query operator handler functions. */
|
|
732
303
|
export interface IQueryHandlerOptions<T = any> {
|
|
733
304
|
column: Column;
|
|
734
305
|
value: T;
|