@venizia/ignis 0.0.7-2 → 0.0.7-21
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 +2757 -28
- 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 +16 -130
- package/dist/base/controllers/abstract.d.ts.map +1 -1
- package/dist/base/controllers/abstract.js +62 -112
- package/dist/base/controllers/abstract.js.map +1 -1
- package/dist/base/controllers/base.d.ts +10 -118
- 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 +10 -29
- package/dist/base/controllers/common/constants.js.map +1 -1
- package/dist/base/controllers/common/types.d.ts +34 -152
- 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 +37 -199
- package/dist/base/controllers/factory/controller.d.ts.map +1 -1
- package/dist/base/controllers/factory/controller.js +21 -146
- package/dist/base/controllers/factory/controller.js.map +1 -1
- package/dist/base/controllers/factory/definition.d.ts +15 -9
- package/dist/base/controllers/factory/definition.d.ts.map +1 -1
- package/dist/base/controllers/factory/definition.js +62 -58
- 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 +8 -31
- 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 +31 -5
- package/dist/components/auth/authenticate/common/constants.d.ts.map +1 -1
- package/dist/components/auth/authenticate/common/constants.js +41 -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 +63 -37
- package/dist/components/auth/authenticate/common/types.d.ts.map +1 -1
- package/dist/components/auth/authenticate/component.d.ts +5 -18
- package/dist/components/auth/authenticate/component.d.ts.map +1 -1
- package/dist/components/auth/authenticate/component.js +114 -82
- package/dist/components/auth/authenticate/component.js.map +1 -1
- package/dist/components/auth/authenticate/controllers/factory.d.ts +12 -12
- package/dist/components/auth/authenticate/controllers/factory.d.ts.map +1 -1
- package/dist/components/auth/authenticate/controllers/factory.js +23 -22
- package/dist/components/auth/authenticate/controllers/factory.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/index.d.ts +2 -0
- package/dist/components/auth/authenticate/index.d.ts.map +1 -1
- package/dist/components/auth/authenticate/index.js +2 -0
- package/dist/components/auth/authenticate/index.js.map +1 -1
- package/dist/components/auth/authenticate/middlewares/authenticate.middleware.d.ts +6 -0
- package/dist/components/auth/authenticate/middlewares/authenticate.middleware.d.ts.map +1 -0
- package/dist/components/auth/authenticate/middlewares/authenticate.middleware.js +12 -0
- package/dist/components/auth/authenticate/middlewares/authenticate.middleware.js.map +1 -0
- package/dist/components/auth/authenticate/middlewares/index.d.ts +2 -0
- package/dist/components/auth/authenticate/middlewares/index.d.ts.map +1 -0
- package/dist/components/auth/authenticate/middlewares/index.js +18 -0
- package/dist/components/auth/authenticate/middlewares/index.js.map +1 -0
- package/dist/components/auth/authenticate/providers/authentication.provider.d.ts +12 -0
- package/dist/components/auth/authenticate/providers/authentication.provider.d.ts.map +1 -0
- package/dist/components/auth/authenticate/providers/authentication.provider.js +117 -0
- package/dist/components/auth/authenticate/providers/authentication.provider.js.map +1 -0
- package/dist/components/auth/authenticate/providers/index.d.ts +2 -0
- package/dist/components/auth/authenticate/providers/index.d.ts.map +1 -0
- package/dist/components/auth/authenticate/providers/index.js +18 -0
- package/dist/components/auth/authenticate/providers/index.js.map +1 -0
- 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} +10 -49
- 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 +2 -23
- package/dist/components/auth/authenticate/strategies/basic.strategy.d.ts.map +1 -1
- package/dist/components/auth/authenticate/strategies/basic.strategy.js +12 -26
- 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} +6 -5
- 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} +21 -13
- package/dist/components/auth/authenticate/strategies/jws.strategy.js.map +1 -0
- package/dist/components/auth/authenticate/strategies/strategy-registry.d.ts +11 -24
- package/dist/components/auth/authenticate/strategies/strategy-registry.d.ts.map +1 -1
- package/dist/components/auth/authenticate/strategies/strategy-registry.js +9 -132
- package/dist/components/auth/authenticate/strategies/strategy-registry.js.map +1 -1
- package/dist/components/auth/authorize/adapters/base-filtered.d.ts +73 -0
- package/dist/components/auth/authorize/adapters/base-filtered.d.ts.map +1 -0
- package/dist/components/auth/authorize/adapters/base-filtered.js +90 -0
- package/dist/components/auth/authorize/adapters/base-filtered.js.map +1 -0
- package/dist/components/auth/authorize/adapters/drizzle-casbin.d.ts +40 -0
- package/dist/components/auth/authorize/adapters/drizzle-casbin.d.ts.map +1 -0
- package/dist/components/auth/authorize/adapters/drizzle-casbin.js +99 -0
- package/dist/components/auth/authorize/adapters/drizzle-casbin.js.map +1 -0
- package/dist/components/auth/authorize/adapters/index.d.ts +3 -0
- package/dist/components/auth/authorize/adapters/index.d.ts.map +1 -0
- package/dist/components/auth/authorize/adapters/index.js +19 -0
- package/dist/components/auth/authorize/adapters/index.js.map +1 -0
- package/dist/components/auth/authorize/common/constants.d.ts +70 -0
- package/dist/components/auth/authorize/common/constants.d.ts.map +1 -0
- package/dist/components/auth/authorize/common/constants.js +130 -0
- package/dist/components/auth/authorize/common/constants.js.map +1 -0
- package/dist/components/auth/authorize/common/index.d.ts +4 -0
- package/dist/components/auth/authorize/common/index.d.ts.map +1 -0
- package/dist/components/auth/authorize/common/index.js +20 -0
- package/dist/components/auth/authorize/common/index.js.map +1 -0
- package/dist/components/auth/authorize/common/keys.d.ts +6 -0
- package/dist/components/auth/authorize/common/keys.d.ts.map +1 -0
- package/dist/components/auth/authorize/common/keys.js +12 -0
- package/dist/components/auth/authorize/common/keys.js.map +1 -0
- package/dist/components/auth/authorize/common/types.d.ts +107 -0
- package/dist/components/auth/authorize/common/types.d.ts.map +1 -0
- package/dist/components/auth/authorize/{middleware.js → common/types.js} +1 -1
- package/dist/components/auth/authorize/common/types.js.map +1 -0
- package/dist/components/auth/authorize/component.d.ts +10 -0
- package/dist/components/auth/authorize/component.d.ts.map +1 -0
- package/dist/components/auth/authorize/component.js +58 -0
- package/dist/components/auth/authorize/component.js.map +1 -0
- package/dist/components/auth/authorize/enforcers/casbin.enforcer.d.ts +56 -0
- package/dist/components/auth/authorize/enforcers/casbin.enforcer.d.ts.map +1 -0
- package/dist/components/auth/authorize/enforcers/casbin.enforcer.js +254 -0
- package/dist/components/auth/authorize/enforcers/casbin.enforcer.js.map +1 -0
- package/dist/components/auth/authorize/enforcers/enforcer-registry.d.ts +33 -0
- package/dist/components/auth/authorize/enforcers/enforcer-registry.d.ts.map +1 -0
- package/dist/components/auth/authorize/enforcers/enforcer-registry.js +79 -0
- package/dist/components/auth/authorize/enforcers/enforcer-registry.js.map +1 -0
- package/dist/components/auth/authorize/enforcers/index.d.ts +3 -0
- package/dist/components/auth/authorize/enforcers/index.d.ts.map +1 -0
- package/dist/components/auth/authorize/enforcers/index.js +19 -0
- package/dist/components/auth/authorize/enforcers/index.js.map +1 -0
- package/dist/components/auth/authorize/index.d.ts +7 -1
- package/dist/components/auth/authorize/index.d.ts.map +1 -1
- package/dist/components/auth/authorize/index.js +21 -0
- package/dist/components/auth/authorize/index.js.map +1 -1
- package/dist/components/auth/authorize/middlewares/authorize.middleware.d.ts +6 -0
- package/dist/components/auth/authorize/middlewares/authorize.middleware.d.ts.map +1 -0
- package/dist/components/auth/authorize/middlewares/authorize.middleware.js +12 -0
- package/dist/components/auth/authorize/middlewares/authorize.middleware.js.map +1 -0
- package/dist/components/auth/authorize/middlewares/index.d.ts +2 -0
- package/dist/components/auth/authorize/middlewares/index.d.ts.map +1 -0
- package/dist/components/auth/authorize/middlewares/index.js +18 -0
- package/dist/components/auth/authorize/middlewares/index.js.map +1 -0
- package/dist/components/auth/authorize/models/abilities/index.d.ts +3 -0
- package/dist/components/auth/authorize/models/abilities/index.d.ts.map +1 -0
- package/dist/components/auth/authorize/models/abilities/index.js +19 -0
- package/dist/components/auth/authorize/models/abilities/index.js.map +1 -0
- package/dist/components/auth/authorize/models/abilities/string-action.model.d.ts +14 -0
- package/dist/components/auth/authorize/models/abilities/string-action.model.d.ts.map +1 -0
- package/dist/components/auth/authorize/models/abilities/string-action.model.js +23 -0
- package/dist/components/auth/authorize/models/abilities/string-action.model.js.map +1 -0
- package/dist/components/auth/authorize/models/abilities/string-resource.model.d.ts +13 -0
- package/dist/components/auth/authorize/models/abilities/string-resource.model.d.ts.map +1 -0
- package/dist/components/auth/authorize/models/abilities/string-resource.model.js +19 -0
- package/dist/components/auth/authorize/models/abilities/string-resource.model.js.map +1 -0
- package/dist/components/auth/authorize/models/authorization-role.model.d.ts +30 -0
- package/dist/components/auth/authorize/models/authorization-role.model.d.ts.map +1 -0
- package/dist/components/auth/authorize/models/authorization-role.model.js +30 -0
- package/dist/components/auth/authorize/models/authorization-role.model.js.map +1 -0
- package/dist/components/auth/authorize/models/index.d.ts +3 -0
- package/dist/components/auth/authorize/models/index.d.ts.map +1 -0
- package/dist/components/auth/authorize/models/index.js +19 -0
- package/dist/components/auth/authorize/models/index.js.map +1 -0
- package/dist/components/auth/authorize/providers/authorization.provider.d.ts +10 -0
- package/dist/components/auth/authorize/providers/authorization.provider.d.ts.map +1 -0
- package/dist/components/auth/authorize/providers/authorization.provider.js +135 -0
- package/dist/components/auth/authorize/providers/authorization.provider.js.map +1 -0
- package/dist/components/auth/authorize/providers/index.d.ts +2 -0
- package/dist/components/auth/authorize/providers/index.d.ts.map +1 -0
- package/dist/components/auth/authorize/providers/index.js +18 -0
- package/dist/components/auth/authorize/providers/index.js.map +1 -0
- package/dist/components/auth/base/abstract-auth-registry.d.ts +27 -0
- package/dist/components/auth/base/abstract-auth-registry.d.ts.map +1 -0
- package/dist/components/auth/base/abstract-auth-registry.js +62 -0
- package/dist/components/auth/base/abstract-auth-registry.js.map +1 -0
- package/dist/components/auth/base/index.d.ts +2 -0
- package/dist/components/auth/base/index.d.ts.map +1 -0
- package/dist/components/auth/base/index.js +18 -0
- package/dist/components/auth/base/index.js.map +1 -0
- package/dist/components/auth/context-variables.d.ts +14 -0
- package/dist/components/auth/context-variables.d.ts.map +1 -0
- package/dist/components/auth/context-variables.js +3 -0
- package/dist/components/auth/context-variables.js.map +1 -0
- package/dist/components/auth/index.d.ts +2 -0
- package/dist/components/auth/index.d.ts.map +1 -1
- package/dist/components/auth/index.js +2 -0
- package/dist/components/auth/index.js.map +1 -1
- package/dist/components/auth/models/entities/index.d.ts +1 -2
- package/dist/components/auth/models/entities/index.d.ts.map +1 -1
- package/dist/components/auth/models/entities/index.js +1 -2
- package/dist/components/auth/models/entities/index.js.map +1 -1
- package/dist/components/auth/models/entities/permission.model.d.ts +0 -1
- package/dist/components/auth/models/entities/permission.model.d.ts.map +1 -1
- package/dist/components/auth/models/entities/permission.model.js +0 -2
- package/dist/components/auth/models/entities/permission.model.js.map +1 -1
- package/dist/components/auth/models/entities/policy-definition.model.d.ts +24 -0
- package/dist/components/auth/models/entities/policy-definition.model.d.ts.map +1 -0
- package/dist/components/auth/models/entities/policy-definition.model.js +39 -0
- package/dist/components/auth/models/entities/policy-definition.model.js.map +1 -0
- package/dist/components/auth/models/entities/role.model.d.ts +3 -1
- package/dist/components/auth/models/entities/role.model.d.ts.map +1 -1
- package/dist/components/auth/models/entities/role.model.js +5 -3
- package/dist/components/auth/models/entities/role.model.js.map +1 -1
- package/dist/components/auth/models/entities/user.model.d.ts +4 -2
- package/dist/components/auth/models/entities/user.model.d.ts.map +1 -1
- package/dist/components/auth/models/entities/user.model.js +6 -5
- package/dist/components/auth/models/entities/user.model.js.map +1 -1
- package/dist/components/auth/models/requests/change-password.schema.js +3 -3
- package/dist/components/auth/models/requests/change-password.schema.js.map +1 -1
- package/dist/components/auth/models/requests/sign-in.schema.js +5 -5
- package/dist/components/auth/models/requests/sign-in.schema.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/index.d.ts +0 -2
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +4 -2
- package/dist/components/index.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 +10 -9
- 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/common/types.d.ts +2 -1
- package/dist/components/socket-io/common/types.d.ts.map +1 -1
- package/dist/components/socket-io/component.d.ts.map +1 -1
- package/dist/components/socket-io/component.js +2 -5
- package/dist/components/socket-io/component.js.map +1 -1
- package/dist/components/socket-io/handlers/node.handler.d.ts +1 -1
- package/dist/components/socket-io/handlers/node.handler.d.ts.map +1 -1
- package/dist/components/socket-io/handlers/node.handler.js +2 -1
- package/dist/components/socket-io/handlers/node.handler.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 +44 -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 +8 -12
- 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 +117 -77
- 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 -219
- 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
- package/dist/components/auth/authorize/middleware.d.ts +0 -2
- package/dist/components/auth/authorize/middleware.d.ts.map +0 -1
- package/dist/components/auth/authorize/middleware.js.map +0 -1
- package/dist/components/auth/models/entities/permission-mapping.model.d.ts +0 -26
- package/dist/components/auth/models/entities/permission-mapping.model.d.ts.map +0 -1
- package/dist/components/auth/models/entities/permission-mapping.model.js +0 -33
- package/dist/components/auth/models/entities/permission-mapping.model.js.map +0 -1
- package/dist/components/auth/models/entities/user-role.model.d.ts +0 -17
- package/dist/components/auth/models/entities/user-role.model.d.ts.map +0 -1
- package/dist/components/auth/models/entities/user-role.model.js +0 -34
- package/dist/components/auth/models/entities/user-role.model.js.map +0 -1
|
@@ -1,45 +1,27 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.findResponseHeaders = exports.commonResponseHeaders = exports.defaultRequestHeaders = exports.countableHeaders = exports.trackableHeaders = exports.RestPaths = void 0;
|
|
4
|
-
const
|
|
4
|
+
const ignis_helpers_1 = require("@venizia/ignis-helpers");
|
|
5
5
|
const zod_openapi_1 = require("@hono/zod-openapi");
|
|
6
|
-
/**
|
|
7
|
-
* Standard REST API path constants for CRUD controllers.
|
|
8
|
-
*
|
|
9
|
-
* These paths are used by {@link ControllerFactory} to define consistent
|
|
10
|
-
* endpoint patterns across all generated controllers.
|
|
11
|
-
*
|
|
12
|
-
* @example
|
|
13
|
-
* ```typescript
|
|
14
|
-
* // Combined with controller basePath:
|
|
15
|
-
* // basePath: '/users'
|
|
16
|
-
* // GET /users → find all (RestPaths.ROOT)
|
|
17
|
-
* // GET /users/count → count (RestPaths.COUNT)
|
|
18
|
-
* // GET /users/find-one → find one (RestPaths.FIND_ONE)
|
|
19
|
-
* // GET /users/:id → find by id
|
|
20
|
-
* ```
|
|
21
|
-
*/
|
|
6
|
+
/** Standard REST API path constants for CRUD controllers. */
|
|
22
7
|
class RestPaths {
|
|
23
8
|
static { this.ROOT = '/'; }
|
|
24
9
|
static { this.COUNT = '/count'; }
|
|
25
10
|
static { this.FIND_ONE = '/find-one'; }
|
|
26
11
|
}
|
|
27
12
|
exports.RestPaths = RestPaths;
|
|
28
|
-
// -----------------------------------------------------------------------------
|
|
29
|
-
// Default Headers
|
|
30
|
-
// -----------------------------------------------------------------------------
|
|
31
13
|
exports.trackableHeaders = zod_openapi_1.z.object({
|
|
32
|
-
[
|
|
14
|
+
[ignis_helpers_1.HTTP.Headers.REQUEST_TRACING_ID]: zod_openapi_1.z.string().optional().openapi({
|
|
33
15
|
description: 'Optional request ID',
|
|
34
16
|
}),
|
|
35
|
-
[
|
|
17
|
+
[ignis_helpers_1.HTTP.Headers.REQUEST_CHANNEL]: zod_openapi_1.z
|
|
36
18
|
.string()
|
|
37
19
|
.optional()
|
|
38
20
|
.openapi({
|
|
39
21
|
description: 'Optional request channel',
|
|
40
22
|
examples: ['channel-1', 'web', 'spos'],
|
|
41
23
|
}),
|
|
42
|
-
[
|
|
24
|
+
[ignis_helpers_1.HTTP.Headers.REQUEST_DEVICE_INFO]: zod_openapi_1.z
|
|
43
25
|
.string()
|
|
44
26
|
.optional()
|
|
45
27
|
.openapi({
|
|
@@ -48,7 +30,7 @@ exports.trackableHeaders = zod_openapi_1.z.object({
|
|
|
48
30
|
}),
|
|
49
31
|
});
|
|
50
32
|
exports.countableHeaders = zod_openapi_1.z.object({
|
|
51
|
-
[
|
|
33
|
+
[ignis_helpers_1.HTTP.Headers.REQUEST_COUNT_DATA]: zod_openapi_1.z
|
|
52
34
|
.string()
|
|
53
35
|
.optional()
|
|
54
36
|
.openapi({
|
|
@@ -57,24 +39,23 @@ exports.countableHeaders = zod_openapi_1.z.object({
|
|
|
57
39
|
}),
|
|
58
40
|
});
|
|
59
41
|
exports.defaultRequestHeaders = exports.trackableHeaders.extend(exports.countableHeaders.shape);
|
|
60
|
-
// Default response headers (OpenAPI Header Object format)
|
|
61
42
|
exports.commonResponseHeaders = {
|
|
62
|
-
[
|
|
43
|
+
[ignis_helpers_1.HTTP.Headers.REQUEST_TRACING_ID]: {
|
|
63
44
|
description: 'Echo of the request tracing ID',
|
|
64
45
|
schema: { type: 'string' },
|
|
65
46
|
},
|
|
66
|
-
[
|
|
47
|
+
[ignis_helpers_1.HTTP.Headers.RESPONSE_COUNT_DATA]: {
|
|
67
48
|
description: 'Number of records in response',
|
|
68
49
|
schema: { type: 'string', examples: ['1', '10', '100'] },
|
|
69
50
|
},
|
|
70
|
-
[
|
|
51
|
+
[ignis_helpers_1.HTTP.Headers.RESPONSE_FORMAT]: {
|
|
71
52
|
description: 'Response format indicator',
|
|
72
53
|
schema: { type: 'string', examples: ['array', 'object'] },
|
|
73
54
|
},
|
|
74
55
|
};
|
|
75
56
|
exports.findResponseHeaders = {
|
|
76
57
|
...exports.commonResponseHeaders,
|
|
77
|
-
[
|
|
58
|
+
[ignis_helpers_1.HTTP.Headers.CONTENT_RANGE]: {
|
|
78
59
|
description: 'Content range for pagination (e.g., "records 0-24/100")',
|
|
79
60
|
schema: { type: 'string', examples: ['records 0-24/100', 'records 25-49/100'] },
|
|
80
61
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../src/base/controllers/common/constants.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../src/base/controllers/common/constants.ts"],"names":[],"mappings":";;;AAAA,0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D,CAAC,oBAAI,CAAC,OAAO,CAAC,kBAAkB,CAAC,EAAE;QACjC,WAAW,EAAE,gCAAgC;QAC7C,MAAM,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;KAC3B;IACD,CAAC,oBAAI,CAAC,OAAO,CAAC,mBAAmB,CAAC,EAAE;QAClC,WAAW,EAAE,+BAA+B;QAC5C,MAAM,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,CAAC,GAAG,EAAE,IAAI,EAAE,KAAK,CAAC,EAAE;KACzD;IACD,CAAC,oBAAI,CAAC,OAAO,CAAC,eAAe,CAAC,EAAE;QAC9B,WAAW,EAAE,2BAA2B;QACxC,MAAM,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,CAAC,OAAO,EAAE,QAAQ,CAAC,EAAE;KAC1D;CACF,CAAC;AAEW,QAAA,mBAAmB,GAAqB;IACnD,GAAG,6BAAqB;IACxB,CAAC,oBAAI,CAAC,OAAO,CAAC,aAAa,CAAC,EAAE;QAC5B,WAAW,EAAE,yDAAyD;QACtE,MAAM,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,CAAC,kBAAkB,EAAE,mBAAmB,CAAC,EAAE;KAChF;CACF,CAAC"}
|
|
@@ -1,14 +1,12 @@
|
|
|
1
|
-
import { TAuthMode, TAuthStrategy } from '../../../components/auth/authenticate/common';
|
|
1
|
+
import { TAuthMode, TAuthStrategy } from '../../../components/auth/authenticate/common/constants';
|
|
2
|
+
import type { IAuthorizationSpec } from '../../../components/auth/authorize/common/types';
|
|
2
3
|
import { TAnyObjectSchema } from '../../../utilities/schema.utility';
|
|
3
4
|
import type { RouteConfig as HonoRouteConfig } from '@hono/zod-openapi';
|
|
4
5
|
import { createRoute, Hook, OpenAPIHono, z } from '@hono/zod-openapi';
|
|
5
6
|
import { IConfigurable, ValueOrPromise } from '@venizia/ignis-helpers';
|
|
6
7
|
import type { TypedResponse } from 'hono';
|
|
7
8
|
import { Context, Env, Schema } from 'hono';
|
|
8
|
-
/**
|
|
9
|
-
* Typed validation results for route handlers.
|
|
10
|
-
* Use with {@link TContext} to define handler parameter types without heavy inference.
|
|
11
|
-
*/
|
|
9
|
+
/** Typed validation results for route handlers. */
|
|
12
10
|
export interface IValidRequestProps<JsonType = unknown, QueryType = unknown, ParamType = unknown, HeaderType = unknown, CookieType = unknown, FormType = unknown> {
|
|
13
11
|
json?: JsonType;
|
|
14
12
|
query?: QueryType;
|
|
@@ -17,182 +15,74 @@ export interface IValidRequestProps<JsonType = unknown, QueryType = unknown, Par
|
|
|
17
15
|
cookie?: CookieType;
|
|
18
16
|
form?: FormType;
|
|
19
17
|
}
|
|
20
|
-
/**
|
|
21
|
-
* Lightweight typed context that bypasses RouteHandler inference.
|
|
22
|
-
*
|
|
23
|
-
* Use `valid<T>('target')` for explicit typing of validated request data.
|
|
24
|
-
*
|
|
25
|
-
* @typeParam RouteEnv - Hono environment type
|
|
26
|
-
*
|
|
27
|
-
* @example
|
|
28
|
-
* ```typescript
|
|
29
|
-
* async createUser(opts: { context: TTypedContext }) {
|
|
30
|
-
* const body = opts.context.req.valid<{ name: string; email: string }>('json');
|
|
31
|
-
* const query = opts.context.req.valid<{ dryRun?: boolean }>('query');
|
|
32
|
-
* }
|
|
33
|
-
* ```
|
|
34
|
-
*/
|
|
18
|
+
/** Lightweight typed context that bypasses RouteHandler inference. */
|
|
35
19
|
export type TContext<RouteEnv extends Env = Env, ValidTargetKey extends string = string> = Omit<Context<RouteEnv>, 'req'> & {
|
|
36
20
|
req: Omit<Context<RouteEnv>['req'], 'valid'> & {
|
|
37
21
|
valid<T = unknown>(target: ValidTargetKey): T;
|
|
38
22
|
};
|
|
39
23
|
};
|
|
40
24
|
export type TRouteContext<RouteEnv extends Env = Env> = TContext<RouteEnv, keyof IValidRequestProps>;
|
|
41
|
-
/**
|
|
42
|
-
* Type assertion function to cast middleware context to TContext.
|
|
43
|
-
* Safe at runtime because TContext is structurally identical to Context.
|
|
44
|
-
*/
|
|
25
|
+
/** Casts middleware context to TContext (safe -- structurally identical to Context). */
|
|
45
26
|
export declare const asTypedContext: <E extends Env>(context: unknown) => TContext<E, string>;
|
|
46
|
-
/**
|
|
47
|
-
* Lightweight handler type for route handlers.
|
|
48
|
-
* Uses TTypedContext to avoid heavy RouteHandler inference.
|
|
49
|
-
*/
|
|
27
|
+
/** Lightweight handler type using TTypedContext to avoid heavy RouteHandler inference. */
|
|
50
28
|
export type TRouteHandler<ResponseType = unknown, RouteEnv extends Env = Env> = (context: TRouteContext<RouteEnv>) => ValueOrPromise<Response | TypedResponse<ResponseType>>;
|
|
51
|
-
/**
|
|
52
|
-
* Represents a registered route with its configuration and router instance.
|
|
53
|
-
*
|
|
54
|
-
* Returned by {@link IController.bindRoute} and {@link IController.defineRoute}
|
|
55
|
-
* after a route is registered with the router.
|
|
56
|
-
*
|
|
57
|
-
* @typeParam RouteConfig - The route configuration type
|
|
58
|
-
* @typeParam RouteEnv - Hono environment type
|
|
59
|
-
* @typeParam RouteSchema - Combined schema type for all routes
|
|
60
|
-
* @typeParam BasePath - Base path prefix for the router
|
|
61
|
-
*/
|
|
29
|
+
/** Registered route with its configuration and router instance. */
|
|
62
30
|
export interface IDefineRouteOptions<RouteConfig extends HonoRouteConfig, RouteEnv extends Env = Env, RouteSchema extends Schema = {}, BasePath extends string = '/'> {
|
|
63
31
|
configs: ReturnType<typeof createRoute<string, RouteConfig>>;
|
|
64
32
|
route: OpenAPIHono<RouteEnv, RouteSchema, BasePath>;
|
|
65
33
|
}
|
|
66
|
-
/**
|
|
67
|
-
* Fluent binding options for registering a route handler.
|
|
68
|
-
*
|
|
69
|
-
* Enables a two-step binding pattern:
|
|
70
|
-
* ```typescript
|
|
71
|
-
* controller.bindRoute({ configs }).to({ handler });
|
|
72
|
-
* ```
|
|
73
|
-
*
|
|
74
|
-
* @typeParam RouteConfig - The route configuration type
|
|
75
|
-
* @typeParam RouteEnv - Hono environment type
|
|
76
|
-
* @typeParam RouteSchema - Combined schema type
|
|
77
|
-
* @typeParam BasePath - Base path prefix
|
|
78
|
-
*/
|
|
34
|
+
/** Fluent binding for two-step route registration: bindRoute({ configs }).to({ handler }). */
|
|
79
35
|
export interface IBindRouteOptions<RouteConfig extends HonoRouteConfig, RouteEnv extends Env = Env, RouteSchema extends Schema = {}, BasePath extends string = '/'> {
|
|
80
36
|
configs: RouteConfig;
|
|
81
37
|
to: <ReponseType = unknown>(opts: {
|
|
82
38
|
handler: TRouteHandler<ReponseType, RouteEnv>;
|
|
83
39
|
}) => IDefineRouteOptions<RouteConfig, RouteEnv, RouteSchema, BasePath>;
|
|
84
40
|
}
|
|
85
|
-
/**
|
|
86
|
-
|
|
87
|
-
*
|
|
88
|
-
* Adds optional `authenticate` array to standard route config for
|
|
89
|
-
* declarative authentication configuration.
|
|
90
|
-
* ```
|
|
91
|
-
*/
|
|
92
|
-
export interface IAuthenticateRouteConfig extends HonoRouteConfig {
|
|
41
|
+
/** Route configuration extended with optional authenticate and authorize fields. */
|
|
42
|
+
export interface IAuthRouteConfig extends HonoRouteConfig {
|
|
93
43
|
authenticate?: {
|
|
94
44
|
strategies?: TAuthStrategy[];
|
|
95
45
|
mode?: TAuthMode;
|
|
96
46
|
};
|
|
47
|
+
authorize?: IAuthorizationSpec | IAuthorizationSpec[];
|
|
97
48
|
}
|
|
98
|
-
/**
|
|
99
|
-
* Base controller interface defining the contract for all controllers.
|
|
100
|
-
*
|
|
101
|
-
* Controllers are responsible for:
|
|
102
|
-
* - Defining HTTP routes and their handlers
|
|
103
|
-
* - Validating request/response schemas via OpenAPI
|
|
104
|
-
* - Applying authentication middleware
|
|
105
|
-
* - Returning the configured router for mounting
|
|
106
|
-
*
|
|
107
|
-
* @typeParam RouteEnv - Hono environment for context variables (e.g., user, db)
|
|
108
|
-
* @typeParam RouteSchema - Combined schema type for all routes
|
|
109
|
-
* @typeParam BasePath - Base path prefix for the router
|
|
110
|
-
* @typeParam ConfigurableOptions - Options passed during controller configuration
|
|
111
|
-
*
|
|
112
|
-
* @example
|
|
113
|
-
* ```typescript
|
|
114
|
-
* class UserController extends BaseController implements IController {
|
|
115
|
-
* binding() {
|
|
116
|
-
* this.defineRoute({
|
|
117
|
-
* configs: { path: '/', method: 'get', ... },
|
|
118
|
-
* handler: (c) => c.json({ users: [] })
|
|
119
|
-
* });
|
|
120
|
-
* }
|
|
121
|
-
* }
|
|
122
|
-
* ```
|
|
123
|
-
*/
|
|
49
|
+
/** Base controller interface defining route registration and configuration contract. */
|
|
124
50
|
export interface IController<RouteEnv extends Env = Env, RouteSchema extends Schema = {}, BasePath extends string = '/', ConfigurableOptions extends object = {}> extends IConfigurable<ConfigurableOptions, OpenAPIHono<RouteEnv, RouteSchema, BasePath>> {
|
|
125
|
-
/** The OpenAPIHono router instance for this controller */
|
|
126
51
|
router: OpenAPIHono<RouteEnv, RouteSchema, BasePath>;
|
|
127
|
-
|
|
128
|
-
* Creates a fluent binding for registering a route.
|
|
129
|
-
*
|
|
130
|
-
* Use this when you need a two-step binding pattern or want to
|
|
131
|
-
* conditionally bind handlers.
|
|
132
|
-
*
|
|
133
|
-
* @param opts - Object containing route configuration
|
|
134
|
-
* @returns Binding options with a `to()` method for attaching the handler
|
|
135
|
-
*/
|
|
136
|
-
bindRoute<RouteConfig extends IAuthenticateRouteConfig>(opts: {
|
|
52
|
+
bindRoute<RouteConfig extends IAuthRouteConfig>(opts: {
|
|
137
53
|
configs: RouteConfig;
|
|
138
54
|
}): IBindRouteOptions<RouteConfig, RouteEnv, RouteSchema, BasePath>;
|
|
139
|
-
/**
|
|
140
|
-
|
|
141
|
-
*
|
|
142
|
-
* Preferred method for most use cases. Applies authentication middleware
|
|
143
|
-
* automatically based on `authenticate.strategies` in the config.
|
|
144
|
-
*
|
|
145
|
-
* @param opts - Object containing route config, handler, and optional hook
|
|
146
|
-
* @returns The registered route definition
|
|
147
|
-
*/
|
|
148
|
-
defineRoute<RouteConfig extends IAuthenticateRouteConfig, ResponseType = unknown>(opts: {
|
|
55
|
+
/** Defines and registers a route with its handler in a single call. */
|
|
56
|
+
defineRoute<RouteConfig extends IAuthRouteConfig, ResponseType = unknown>(opts: {
|
|
149
57
|
configs: RouteConfig;
|
|
150
58
|
handler: TRouteHandler<ResponseType, RouteEnv>;
|
|
151
59
|
hook?: Hook<any, RouteEnv, string, ValueOrPromise<any>>;
|
|
152
60
|
}): IDefineRouteOptions<RouteConfig, RouteEnv, RouteSchema, BasePath>;
|
|
153
61
|
}
|
|
154
|
-
/**
|
|
155
|
-
* Configuration options for controller instantiation.
|
|
156
|
-
*/
|
|
62
|
+
/** Configuration options for controller instantiation. */
|
|
157
63
|
export interface IControllerOptions {
|
|
158
|
-
/** Logger scope identifier, typically the controller class name */
|
|
159
64
|
scope: string;
|
|
160
|
-
/**
|
|
161
|
-
* Controller base path for all routes.
|
|
162
|
-
*
|
|
163
|
-
* If not provided, will be read from `@controller` decorator metadata.
|
|
164
|
-
* At least one of decorator path or constructor path must be provided.
|
|
165
|
-
*
|
|
166
|
-
* @example '/users' or '/api/products'
|
|
167
|
-
*/
|
|
65
|
+
/** Falls back to @controller decorator path if not provided. */
|
|
168
66
|
path?: string;
|
|
169
|
-
/**
|
|
170
|
-
* Whether to use strict path matching.
|
|
171
|
-
*
|
|
172
|
-
* When `true` (default), `/users` and `/users/` are different routes.
|
|
173
|
-
* When `false`, trailing slashes are ignored.
|
|
174
|
-
*
|
|
175
|
-
* @default true
|
|
176
|
-
*/
|
|
67
|
+
/** When true (default), /users and /users/ are different routes. */
|
|
177
68
|
isStrict?: boolean;
|
|
178
69
|
}
|
|
179
|
-
/**
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
* Priority (endpoint config takes precedence over controller):
|
|
183
|
-
* 1. If endpoint has `skipAuth: true` -> no auth
|
|
184
|
-
* 2. If endpoint has `authenticate.strategies` -> use these (overrides controller)
|
|
185
|
-
* 3. Otherwise -> use controller-level authenticate.strategies
|
|
186
|
-
*/
|
|
187
|
-
export type TRouteAuthConfig = {
|
|
188
|
-
skipAuth: true;
|
|
189
|
-
authenticate?: never;
|
|
70
|
+
/** Per-route authentication config: { skip: true } or { strategies, mode }. */
|
|
71
|
+
export type TRouteAuthenticateConfig = {
|
|
72
|
+
skip: true;
|
|
190
73
|
} | {
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
74
|
+
skip?: false;
|
|
75
|
+
strategies?: TAuthStrategy[];
|
|
76
|
+
mode?: TAuthMode;
|
|
77
|
+
};
|
|
78
|
+
/** Per-route authorization config: { skip: true }, single spec, or array of specs. */
|
|
79
|
+
export type TRouteAuthorizeConfig = {
|
|
80
|
+
skip: true;
|
|
81
|
+
} | IAuthorizationSpec | IAuthorizationSpec[];
|
|
82
|
+
/** Per-route auth config. Endpoint config takes precedence over controller-level config. */
|
|
83
|
+
export type TRouteAuthConfig = {
|
|
84
|
+
authenticate?: TRouteAuthenticateConfig;
|
|
85
|
+
authorize?: TRouteAuthorizeConfig;
|
|
196
86
|
};
|
|
197
87
|
/** OpenAPI response header object */
|
|
198
88
|
export type TResponseHeaderObject = {
|
|
@@ -216,15 +106,7 @@ export type TCustomizableRouteConfig = TRouteAuthConfig & {
|
|
|
216
106
|
headers?: TResponseHeaders;
|
|
217
107
|
};
|
|
218
108
|
};
|
|
219
|
-
/**
|
|
220
|
-
* Per-route configuration for CRUD controller endpoints.
|
|
221
|
-
*
|
|
222
|
-
* Each route supports full customization of:
|
|
223
|
-
* - Authentication (skipAuth, authenticate)
|
|
224
|
-
* - Request (query, params, body, headers)
|
|
225
|
-
* - Response (schema, headers)
|
|
226
|
-
*
|
|
227
|
-
*/
|
|
109
|
+
/** Per-route configuration for CRUD controller endpoints (auth, request, response). */
|
|
228
110
|
export interface ICustomizableRoutes<RouteConfig extends TCustomizableRouteConfig = TCustomizableRouteConfig> {
|
|
229
111
|
count?: RouteConfig;
|
|
230
112
|
find?: RouteConfig;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/base/controllers/common/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/base/controllers/common/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,iDAAiD,CAAC;AAC3F,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,0CAA0C,CAAC;AACnF,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAC9D,OAAO,KAAK,EAAE,WAAW,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACxE,OAAO,EAAE,WAAW,EAAE,IAAI,EAAE,WAAW,EAAE,CAAC,EAAE,MAAM,mBAAmB,CAAC;AACtE,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACvE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,MAAM,CAAC;AAC1C,OAAO,EAAE,OAAO,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAC5C,mDAAmD;AACnD,MAAM,WAAW,kBAAkB,CACjC,QAAQ,GAAG,OAAO,EAClB,SAAS,GAAG,OAAO,EACnB,SAAS,GAAG,OAAO,EACnB,UAAU,GAAG,OAAO,EACpB,UAAU,GAAG,OAAO,EACpB,QAAQ,GAAG,OAAO;IAElB,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,MAAM,CAAC,EAAE,UAAU,CAAC;IACpB,MAAM,CAAC,EAAE,UAAU,CAAC;IACpB,IAAI,CAAC,EAAE,QAAQ,CAAC;CACjB;AAED,sEAAsE;AACtE,MAAM,MAAM,QAAQ,CAAC,QAAQ,SAAS,GAAG,GAAG,GAAG,EAAE,cAAc,SAA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R,MAAM,CAAC,EAAE,gBAAgB,CAAC;QAC1B,KAAK,CAAC,EAAE,gBAAgB,CAAC;QACzB,IAAI,CAAC,EAAE,gBAAgB,CAAC;QACxB,OAAO,CAAC,EAAE,gBAAgB,CAAC;KAC5B,CAAC;IACF,QAAQ,CAAC,EAAE;QACT,MAAM,CAAC,EAAE,CAAC,CAAC,UAAU,CAAC;QACtB,OAAO,CAAC,EAAE,gBAAgB,CAAC;KAC5B,CAAC;CACH,CAAC;AAEF,uFAAuF;AACvF,MAAM,WAAW,mBAAmB,CAClC,WAAW,SAAS,wBAAwB,GAAG,wBAAwB;IAEvE,KAAK,CAAC,EAAE,WAAW,CAAC;IACpB,IAAI,CAAC,EAAE,WAAW,CAAC;IACnB,QAAQ,CAAC,EAAE,WAAW,CAAC;IACvB,OAAO,CAAC,EAAE,WAAW,CAAC;IACtB,MAAM,CAAC,EAAE,WAAW,CAAC;IACrB,UAAU,CAAC,EAAE,WAAW,CAAC;IACzB,QAAQ,CAAC,EAAE,WAAW,CAAC;IACvB,UAAU,CAAC,EAAE,WAAW,CAAC;IACzB,QAAQ,CAAC,EAAE,WAAW,CAAC;CACxB"}
|
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.asTypedContext = void 0;
|
|
4
|
-
/**
|
|
5
|
-
* Type assertion function to cast middleware context to TContext.
|
|
6
|
-
* Safe at runtime because TContext is structurally identical to Context.
|
|
7
|
-
*/
|
|
4
|
+
/** Casts middleware context to TContext (safe -- structurally identical to Context). */
|
|
8
5
|
const asTypedContext = (context) => {
|
|
9
6
|
return context;
|
|
10
7
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/base/controllers/common/types.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/base/controllers/common/types.ts"],"names":[],"mappings":";;;AAwCA,wFAAwF;AACjF,MAAM,cAAc,GAAG,CAAgB,OAAgB,EAAuB,EAAE;IACrF,OAAO,OAA8B,CAAC;AACxC,CAAC,CAAC;AAFW,QAAA,cAAc,kBAEzB"}
|