@xeno-js/shared 0.1.0 → 0.1.1
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/dist/index.cjs +3165 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +6062 -0
- package/dist/index.d.ts +6062 -5
- package/dist/index.js +3085 -4
- package/dist/index.js.map +1 -1
- package/package.json +5 -4
- package/dist/application/cqrs/command/command.d.ts +0 -8
- package/dist/application/cqrs/command/command.d.ts.map +0 -1
- package/dist/application/cqrs/command/command.js +0 -9
- package/dist/application/cqrs/command/command.js.map +0 -1
- package/dist/application/cqrs/command/index.d.ts +0 -2
- package/dist/application/cqrs/command/index.d.ts.map +0 -1
- package/dist/application/cqrs/command/index.js +0 -2
- package/dist/application/cqrs/command/index.js.map +0 -1
- package/dist/application/cqrs/index.d.ts +0 -3
- package/dist/application/cqrs/index.d.ts.map +0 -1
- package/dist/application/cqrs/index.js +0 -3
- package/dist/application/cqrs/index.js.map +0 -1
- package/dist/application/cqrs/query/index.d.ts +0 -2
- package/dist/application/cqrs/query/index.d.ts.map +0 -1
- package/dist/application/cqrs/query/index.js +0 -2
- package/dist/application/cqrs/query/index.js.map +0 -1
- package/dist/application/cqrs/query/query.d.ts +0 -9
- package/dist/application/cqrs/query/query.d.ts.map +0 -1
- package/dist/application/cqrs/query/query.js +0 -11
- package/dist/application/cqrs/query/query.js.map +0 -1
- package/dist/application/index.d.ts +0 -3
- package/dist/application/index.d.ts.map +0 -1
- package/dist/application/index.js +0 -3
- package/dist/application/index.js.map +0 -1
- package/dist/application/loggers/__tests__/base.logger.test.d.ts +0 -2
- package/dist/application/loggers/__tests__/base.logger.test.d.ts.map +0 -1
- package/dist/application/loggers/__tests__/base.logger.test.js +0 -132
- package/dist/application/loggers/__tests__/base.logger.test.js.map +0 -1
- package/dist/application/loggers/base.logger.d.ts +0 -48
- package/dist/application/loggers/base.logger.d.ts.map +0 -1
- package/dist/application/loggers/base.logger.js +0 -68
- package/dist/application/loggers/base.logger.js.map +0 -1
- package/dist/application/loggers/index.d.ts +0 -2
- package/dist/application/loggers/index.d.ts.map +0 -1
- package/dist/application/loggers/index.js +0 -2
- package/dist/application/loggers/index.js.map +0 -1
- package/dist/domain/config/auth.config.d.ts +0 -14
- package/dist/domain/config/auth.config.d.ts.map +0 -1
- package/dist/domain/config/auth.config.js +0 -2
- package/dist/domain/config/auth.config.js.map +0 -1
- package/dist/domain/config/cache.config.d.ts +0 -92
- package/dist/domain/config/cache.config.d.ts.map +0 -1
- package/dist/domain/config/cache.config.js +0 -2
- package/dist/domain/config/cache.config.js.map +0 -1
- package/dist/domain/config/db.config.d.ts +0 -29
- package/dist/domain/config/db.config.d.ts.map +0 -1
- package/dist/domain/config/db.config.js +0 -2
- package/dist/domain/config/db.config.js.map +0 -1
- package/dist/domain/config/http.config.d.ts +0 -148
- package/dist/domain/config/http.config.d.ts.map +0 -1
- package/dist/domain/config/http.config.js +0 -2
- package/dist/domain/config/http.config.js.map +0 -1
- package/dist/domain/config/index.d.ts +0 -5
- package/dist/domain/config/index.d.ts.map +0 -1
- package/dist/domain/config/index.js +0 -2
- package/dist/domain/config/index.js.map +0 -1
- package/dist/domain/config/resilience.config.d.ts +0 -94
- package/dist/domain/config/resilience.config.d.ts.map +0 -1
- package/dist/domain/config/resilience.config.js +0 -2
- package/dist/domain/config/resilience.config.js.map +0 -1
- package/dist/domain/contracts/cache/icache.contracts.d.ts +0 -93
- package/dist/domain/contracts/cache/icache.contracts.d.ts.map +0 -1
- package/dist/domain/contracts/cache/icache.contracts.js +0 -2
- package/dist/domain/contracts/cache/icache.contracts.js.map +0 -1
- package/dist/domain/contracts/cache/ikey-builder.contracts.d.ts +0 -34
- package/dist/domain/contracts/cache/ikey-builder.contracts.d.ts.map +0 -1
- package/dist/domain/contracts/cache/ikey-builder.contracts.js +0 -2
- package/dist/domain/contracts/cache/ikey-builder.contracts.js.map +0 -1
- package/dist/domain/contracts/cache/index.d.ts +0 -3
- package/dist/domain/contracts/cache/index.d.ts.map +0 -1
- package/dist/domain/contracts/cache/index.js +0 -2
- package/dist/domain/contracts/cache/index.js.map +0 -1
- package/dist/domain/contracts/configuration/iconfiguration.contracts.d.ts +0 -61
- package/dist/domain/contracts/configuration/iconfiguration.contracts.d.ts.map +0 -1
- package/dist/domain/contracts/configuration/iconfiguration.contracts.js +0 -2
- package/dist/domain/contracts/configuration/iconfiguration.contracts.js.map +0 -1
- package/dist/domain/contracts/configuration/index.d.ts +0 -2
- package/dist/domain/contracts/configuration/index.d.ts.map +0 -1
- package/dist/domain/contracts/configuration/index.js +0 -2
- package/dist/domain/contracts/configuration/index.js.map +0 -1
- package/dist/domain/contracts/context/context_types/identity-context.types.d.ts +0 -63
- package/dist/domain/contracts/context/context_types/identity-context.types.d.ts.map +0 -1
- package/dist/domain/contracts/context/context_types/identity-context.types.js +0 -2
- package/dist/domain/contracts/context/context_types/identity-context.types.js.map +0 -1
- package/dist/domain/contracts/context/context_types/index.d.ts +0 -6
- package/dist/domain/contracts/context/context_types/index.d.ts.map +0 -1
- package/dist/domain/contracts/context/context_types/index.js +0 -2
- package/dist/domain/contracts/context/context_types/index.js.map +0 -1
- package/dist/domain/contracts/context/context_types/messaging-context.types.d.ts +0 -70
- package/dist/domain/contracts/context/context_types/messaging-context.types.d.ts.map +0 -1
- package/dist/domain/contracts/context/context_types/messaging-context.types.js +0 -2
- package/dist/domain/contracts/context/context_types/messaging-context.types.js.map +0 -1
- package/dist/domain/contracts/context/context_types/network-context.types.d.ts +0 -82
- package/dist/domain/contracts/context/context_types/network-context.types.d.ts.map +0 -1
- package/dist/domain/contracts/context/context_types/network-context.types.js +0 -2
- package/dist/domain/contracts/context/context_types/network-context.types.js.map +0 -1
- package/dist/domain/contracts/context/context_types/request-context.types.d.ts +0 -48
- package/dist/domain/contracts/context/context_types/request-context.types.d.ts.map +0 -1
- package/dist/domain/contracts/context/context_types/request-context.types.js +0 -2
- package/dist/domain/contracts/context/context_types/request-context.types.js.map +0 -1
- package/dist/domain/contracts/context/context_types/tracing-context.types.d.ts +0 -54
- package/dist/domain/contracts/context/context_types/tracing-context.types.d.ts.map +0 -1
- package/dist/domain/contracts/context/context_types/tracing-context.types.js +0 -2
- package/dist/domain/contracts/context/context_types/tracing-context.types.js.map +0 -1
- package/dist/domain/contracts/context/index.d.ts +0 -3
- package/dist/domain/contracts/context/index.d.ts.map +0 -1
- package/dist/domain/contracts/context/index.js +0 -2
- package/dist/domain/contracts/context/index.js.map +0 -1
- package/dist/domain/contracts/context/irequest-context.contracts.d.ts +0 -68
- package/dist/domain/contracts/context/irequest-context.contracts.d.ts.map +0 -1
- package/dist/domain/contracts/context/irequest-context.contracts.js +0 -2
- package/dist/domain/contracts/context/irequest-context.contracts.js.map +0 -1
- package/dist/domain/contracts/controllers/icontroller.contracts.d.ts +0 -25
- package/dist/domain/contracts/controllers/icontroller.contracts.d.ts.map +0 -1
- package/dist/domain/contracts/controllers/icontroller.contracts.js +0 -2
- package/dist/domain/contracts/controllers/icontroller.contracts.js.map +0 -1
- package/dist/domain/contracts/controllers/index.d.ts +0 -2
- package/dist/domain/contracts/controllers/index.d.ts.map +0 -1
- package/dist/domain/contracts/controllers/index.js +0 -2
- package/dist/domain/contracts/controllers/index.js.map +0 -1
- package/dist/domain/contracts/cqrs/cqrs_types/icommand.types.d.ts +0 -30
- package/dist/domain/contracts/cqrs/cqrs_types/icommand.types.d.ts.map +0 -1
- package/dist/domain/contracts/cqrs/cqrs_types/icommand.types.js +0 -2
- package/dist/domain/contracts/cqrs/cqrs_types/icommand.types.js.map +0 -1
- package/dist/domain/contracts/cqrs/cqrs_types/index.d.ts +0 -4
- package/dist/domain/contracts/cqrs/cqrs_types/index.d.ts.map +0 -1
- package/dist/domain/contracts/cqrs/cqrs_types/index.js +0 -2
- package/dist/domain/contracts/cqrs/cqrs_types/index.js.map +0 -1
- package/dist/domain/contracts/cqrs/cqrs_types/iquery.types.d.ts +0 -32
- package/dist/domain/contracts/cqrs/cqrs_types/iquery.types.d.ts.map +0 -1
- package/dist/domain/contracts/cqrs/cqrs_types/iquery.types.js +0 -2
- package/dist/domain/contracts/cqrs/cqrs_types/iquery.types.js.map +0 -1
- package/dist/domain/contracts/cqrs/cqrs_types/irequest.types.d.ts +0 -30
- package/dist/domain/contracts/cqrs/cqrs_types/irequest.types.d.ts.map +0 -1
- package/dist/domain/contracts/cqrs/cqrs_types/irequest.types.js +0 -2
- package/dist/domain/contracts/cqrs/cqrs_types/irequest.types.js.map +0 -1
- package/dist/domain/contracts/cqrs/ihandler.contracts.d.ts +0 -30
- package/dist/domain/contracts/cqrs/ihandler.contracts.d.ts.map +0 -1
- package/dist/domain/contracts/cqrs/ihandler.contracts.js +0 -2
- package/dist/domain/contracts/cqrs/ihandler.contracts.js.map +0 -1
- package/dist/domain/contracts/cqrs/imediator.contracts.d.ts +0 -41
- package/dist/domain/contracts/cqrs/imediator.contracts.d.ts.map +0 -1
- package/dist/domain/contracts/cqrs/imediator.contracts.js +0 -2
- package/dist/domain/contracts/cqrs/imediator.contracts.js.map +0 -1
- package/dist/domain/contracts/cqrs/index.d.ts +0 -5
- package/dist/domain/contracts/cqrs/index.d.ts.map +0 -1
- package/dist/domain/contracts/cqrs/index.js +0 -2
- package/dist/domain/contracts/cqrs/index.js.map +0 -1
- package/dist/domain/contracts/cqrs/ipipeline-behavior.contracts.d.ts +0 -42
- package/dist/domain/contracts/cqrs/ipipeline-behavior.contracts.d.ts.map +0 -1
- package/dist/domain/contracts/cqrs/ipipeline-behavior.contracts.js +0 -2
- package/dist/domain/contracts/cqrs/ipipeline-behavior.contracts.js.map +0 -1
- package/dist/domain/contracts/datasources/index.d.ts +0 -4
- package/dist/domain/contracts/datasources/index.d.ts.map +0 -1
- package/dist/domain/contracts/datasources/index.js +0 -2
- package/dist/domain/contracts/datasources/index.js.map +0 -1
- package/dist/domain/contracts/datasources/iread-datasource.contracts.d.ts +0 -41
- package/dist/domain/contracts/datasources/iread-datasource.contracts.d.ts.map +0 -1
- package/dist/domain/contracts/datasources/iread-datasource.contracts.js +0 -2
- package/dist/domain/contracts/datasources/iread-datasource.contracts.js.map +0 -1
- package/dist/domain/contracts/datasources/iremote-datasource.contracts.d.ts +0 -73
- package/dist/domain/contracts/datasources/iremote-datasource.contracts.d.ts.map +0 -1
- package/dist/domain/contracts/datasources/iremote-datasource.contracts.js +0 -2
- package/dist/domain/contracts/datasources/iremote-datasource.contracts.js.map +0 -1
- package/dist/domain/contracts/datasources/iwrite-datasource.contracts.d.ts +0 -82
- package/dist/domain/contracts/datasources/iwrite-datasource.contracts.d.ts.map +0 -1
- package/dist/domain/contracts/datasources/iwrite-datasource.contracts.js +0 -2
- package/dist/domain/contracts/datasources/iwrite-datasource.contracts.js.map +0 -1
- package/dist/domain/contracts/disposables/idisposable.contracts.d.ts +0 -23
- package/dist/domain/contracts/disposables/idisposable.contracts.d.ts.map +0 -1
- package/dist/domain/contracts/disposables/idisposable.contracts.js +0 -6
- package/dist/domain/contracts/disposables/idisposable.contracts.js.map +0 -1
- package/dist/domain/contracts/disposables/index.d.ts +0 -2
- package/dist/domain/contracts/disposables/index.d.ts.map +0 -1
- package/dist/domain/contracts/disposables/index.js +0 -2
- package/dist/domain/contracts/disposables/index.js.map +0 -1
- package/dist/domain/contracts/factories/ifactory.contracts.d.ts +0 -29
- package/dist/domain/contracts/factories/ifactory.contracts.d.ts.map +0 -1
- package/dist/domain/contracts/factories/ifactory.contracts.js +0 -2
- package/dist/domain/contracts/factories/ifactory.contracts.js.map +0 -1
- package/dist/domain/contracts/factories/index.d.ts +0 -2
- package/dist/domain/contracts/factories/index.d.ts.map +0 -1
- package/dist/domain/contracts/factories/index.js +0 -2
- package/dist/domain/contracts/factories/index.js.map +0 -1
- package/dist/domain/contracts/gate_keepers/igate-keeper.contracts.d.ts +0 -27
- package/dist/domain/contracts/gate_keepers/igate-keeper.contracts.d.ts.map +0 -1
- package/dist/domain/contracts/gate_keepers/igate-keeper.contracts.js +0 -2
- package/dist/domain/contracts/gate_keepers/igate-keeper.contracts.js.map +0 -1
- package/dist/domain/contracts/gate_keepers/index.d.ts +0 -2
- package/dist/domain/contracts/gate_keepers/index.d.ts.map +0 -1
- package/dist/domain/contracts/gate_keepers/index.js +0 -2
- package/dist/domain/contracts/gate_keepers/index.js.map +0 -1
- package/dist/domain/contracts/http/iallow-origin.contracts.d.ts +0 -1
- package/dist/domain/contracts/http/iallow-origin.contracts.d.ts.map +0 -1
- package/dist/domain/contracts/http/iallow-origin.contracts.js +0 -2
- package/dist/domain/contracts/http/iallow-origin.contracts.js.map +0 -1
- package/dist/domain/contracts/http/ihttp-client.contracts.d.ts +0 -81
- package/dist/domain/contracts/http/ihttp-client.contracts.d.ts.map +0 -1
- package/dist/domain/contracts/http/ihttp-client.contracts.js +0 -2
- package/dist/domain/contracts/http/ihttp-client.contracts.js.map +0 -1
- package/dist/domain/contracts/http/index.d.ts +0 -2
- package/dist/domain/contracts/http/index.d.ts.map +0 -1
- package/dist/domain/contracts/http/index.js +0 -2
- package/dist/domain/contracts/http/index.js.map +0 -1
- package/dist/domain/contracts/idempotency/idempotency-store.contracts.d.ts +0 -71
- package/dist/domain/contracts/idempotency/idempotency-store.contracts.d.ts.map +0 -1
- package/dist/domain/contracts/idempotency/idempotency-store.contracts.js +0 -2
- package/dist/domain/contracts/idempotency/idempotency-store.contracts.js.map +0 -1
- package/dist/domain/contracts/idempotency/index.d.ts +0 -2
- package/dist/domain/contracts/idempotency/index.d.ts.map +0 -1
- package/dist/domain/contracts/idempotency/index.js +0 -2
- package/dist/domain/contracts/idempotency/index.js.map +0 -1
- package/dist/domain/contracts/index.d.ts +0 -22
- package/dist/domain/contracts/index.d.ts.map +0 -1
- package/dist/domain/contracts/index.js +0 -2
- package/dist/domain/contracts/index.js.map +0 -1
- package/dist/domain/contracts/loggers/ilogger-client.contracts.d.ts +0 -27
- package/dist/domain/contracts/loggers/ilogger-client.contracts.d.ts.map +0 -1
- package/dist/domain/contracts/loggers/ilogger-client.contracts.js +0 -2
- package/dist/domain/contracts/loggers/ilogger-client.contracts.js.map +0 -1
- package/dist/domain/contracts/loggers/ilogger.contracts.d.ts +0 -62
- package/dist/domain/contracts/loggers/ilogger.contracts.d.ts.map +0 -1
- package/dist/domain/contracts/loggers/ilogger.contracts.js +0 -2
- package/dist/domain/contracts/loggers/ilogger.contracts.js.map +0 -1
- package/dist/domain/contracts/loggers/index.d.ts +0 -3
- package/dist/domain/contracts/loggers/index.d.ts.map +0 -1
- package/dist/domain/contracts/loggers/index.js +0 -2
- package/dist/domain/contracts/loggers/index.js.map +0 -1
- package/dist/domain/contracts/mappers/ibase-mapper.contracts.d.ts +0 -33
- package/dist/domain/contracts/mappers/ibase-mapper.contracts.d.ts.map +0 -1
- package/dist/domain/contracts/mappers/ibase-mapper.contracts.js +0 -2
- package/dist/domain/contracts/mappers/ibase-mapper.contracts.js.map +0 -1
- package/dist/domain/contracts/mappers/imapper.contracts.d.ts +0 -53
- package/dist/domain/contracts/mappers/imapper.contracts.d.ts.map +0 -1
- package/dist/domain/contracts/mappers/imapper.contracts.js +0 -2
- package/dist/domain/contracts/mappers/imapper.contracts.js.map +0 -1
- package/dist/domain/contracts/mappers/index.d.ts +0 -3
- package/dist/domain/contracts/mappers/index.d.ts.map +0 -1
- package/dist/domain/contracts/mappers/index.js +0 -2
- package/dist/domain/contracts/mappers/index.js.map +0 -1
- package/dist/domain/contracts/middlewares/imiddleware.contracts.d.ts +0 -34
- package/dist/domain/contracts/middlewares/imiddleware.contracts.d.ts.map +0 -1
- package/dist/domain/contracts/middlewares/imiddleware.contracts.js +0 -2
- package/dist/domain/contracts/middlewares/imiddleware.contracts.js.map +0 -1
- package/dist/domain/contracts/middlewares/index.d.ts +0 -2
- package/dist/domain/contracts/middlewares/index.d.ts.map +0 -1
- package/dist/domain/contracts/middlewares/index.js +0 -2
- package/dist/domain/contracts/middlewares/index.js.map +0 -1
- package/dist/domain/contracts/policies/index.d.ts +0 -2
- package/dist/domain/contracts/policies/index.d.ts.map +0 -1
- package/dist/domain/contracts/policies/index.js +0 -2
- package/dist/domain/contracts/policies/index.js.map +0 -1
- package/dist/domain/contracts/policies/ipolicy-registry.contracts.d.ts +0 -38
- package/dist/domain/contracts/policies/ipolicy-registry.contracts.d.ts.map +0 -1
- package/dist/domain/contracts/policies/ipolicy-registry.contracts.js +0 -2
- package/dist/domain/contracts/policies/ipolicy-registry.contracts.js.map +0 -1
- package/dist/domain/contracts/repositories/index.d.ts +0 -3
- package/dist/domain/contracts/repositories/index.d.ts.map +0 -1
- package/dist/domain/contracts/repositories/index.js +0 -2
- package/dist/domain/contracts/repositories/index.js.map +0 -1
- package/dist/domain/contracts/repositories/iread-dao.contracts.d.ts +0 -41
- package/dist/domain/contracts/repositories/iread-dao.contracts.d.ts.map +0 -1
- package/dist/domain/contracts/repositories/iread-dao.contracts.js +0 -2
- package/dist/domain/contracts/repositories/iread-dao.contracts.js.map +0 -1
- package/dist/domain/contracts/repositories/irepository.contracts.d.ts +0 -95
- package/dist/domain/contracts/repositories/irepository.contracts.d.ts.map +0 -1
- package/dist/domain/contracts/repositories/irepository.contracts.js +0 -2
- package/dist/domain/contracts/repositories/irepository.contracts.js.map +0 -1
- package/dist/domain/contracts/services/auth/iauth-service.contracts.d.ts +0 -71
- package/dist/domain/contracts/services/auth/iauth-service.contracts.d.ts.map +0 -1
- package/dist/domain/contracts/services/auth/iauth-service.contracts.js +0 -2
- package/dist/domain/contracts/services/auth/iauth-service.contracts.js.map +0 -1
- package/dist/domain/contracts/services/auth/index.d.ts +0 -2
- package/dist/domain/contracts/services/auth/index.d.ts.map +0 -1
- package/dist/domain/contracts/services/auth/index.js +0 -2
- package/dist/domain/contracts/services/auth/index.js.map +0 -1
- package/dist/domain/contracts/services/concurrency/concurrency-service.contracts.d.ts +0 -25
- package/dist/domain/contracts/services/concurrency/concurrency-service.contracts.d.ts.map +0 -1
- package/dist/domain/contracts/services/concurrency/concurrency-service.contracts.js +0 -2
- package/dist/domain/contracts/services/concurrency/concurrency-service.contracts.js.map +0 -1
- package/dist/domain/contracts/services/concurrency/index.d.ts +0 -2
- package/dist/domain/contracts/services/concurrency/index.d.ts.map +0 -1
- package/dist/domain/contracts/services/concurrency/index.js +0 -2
- package/dist/domain/contracts/services/concurrency/index.js.map +0 -1
- package/dist/domain/contracts/services/extractors/iextractor-service.contracts.d.ts +0 -24
- package/dist/domain/contracts/services/extractors/iextractor-service.contracts.d.ts.map +0 -1
- package/dist/domain/contracts/services/extractors/iextractor-service.contracts.js +0 -2
- package/dist/domain/contracts/services/extractors/iextractor-service.contracts.js.map +0 -1
- package/dist/domain/contracts/services/extractors/index.d.ts +0 -2
- package/dist/domain/contracts/services/extractors/index.d.ts.map +0 -1
- package/dist/domain/contracts/services/extractors/index.js +0 -2
- package/dist/domain/contracts/services/extractors/index.js.map +0 -1
- package/dist/domain/contracts/services/index.d.ts +0 -6
- package/dist/domain/contracts/services/index.d.ts.map +0 -1
- package/dist/domain/contracts/services/index.js +0 -2
- package/dist/domain/contracts/services/index.js.map +0 -1
- package/dist/domain/contracts/services/resiliences/index.d.ts +0 -2
- package/dist/domain/contracts/services/resiliences/index.d.ts.map +0 -1
- package/dist/domain/contracts/services/resiliences/index.js +0 -2
- package/dist/domain/contracts/services/resiliences/index.js.map +0 -1
- package/dist/domain/contracts/services/resiliences/iresilience-service.contracts.d.ts +0 -26
- package/dist/domain/contracts/services/resiliences/iresilience-service.contracts.d.ts.map +0 -1
- package/dist/domain/contracts/services/resiliences/iresilience-service.contracts.js +0 -2
- package/dist/domain/contracts/services/resiliences/iresilience-service.contracts.js.map +0 -1
- package/dist/domain/contracts/services/validators/index.d.ts +0 -2
- package/dist/domain/contracts/services/validators/index.d.ts.map +0 -1
- package/dist/domain/contracts/services/validators/index.js +0 -2
- package/dist/domain/contracts/services/validators/index.js.map +0 -1
- package/dist/domain/contracts/services/validators/ivalidator-service.contracts.d.ts +0 -38
- package/dist/domain/contracts/services/validators/ivalidator-service.contracts.d.ts.map +0 -1
- package/dist/domain/contracts/services/validators/ivalidator-service.contracts.js +0 -2
- package/dist/domain/contracts/services/validators/ivalidator-service.contracts.js.map +0 -1
- package/dist/domain/contracts/specifications/index.d.ts +0 -2
- package/dist/domain/contracts/specifications/index.d.ts.map +0 -1
- package/dist/domain/contracts/specifications/index.js +0 -2
- package/dist/domain/contracts/specifications/index.js.map +0 -1
- package/dist/domain/contracts/specifications/ispecification.contracts.d.ts +0 -58
- package/dist/domain/contracts/specifications/ispecification.contracts.d.ts.map +0 -1
- package/dist/domain/contracts/specifications/ispecification.contracts.js +0 -2
- package/dist/domain/contracts/specifications/ispecification.contracts.js.map +0 -1
- package/dist/domain/contracts/storage/index.d.ts +0 -2
- package/dist/domain/contracts/storage/index.d.ts.map +0 -1
- package/dist/domain/contracts/storage/index.js +0 -2
- package/dist/domain/contracts/storage/index.js.map +0 -1
- package/dist/domain/contracts/storage/istorage.contracts.d.ts +0 -6
- package/dist/domain/contracts/storage/istorage.contracts.d.ts.map +0 -1
- package/dist/domain/contracts/storage/istorage.contracts.js +0 -2
- package/dist/domain/contracts/storage/istorage.contracts.js.map +0 -1
- package/dist/domain/contracts/strategies/index.d.ts +0 -2
- package/dist/domain/contracts/strategies/index.d.ts.map +0 -1
- package/dist/domain/contracts/strategies/index.js +0 -2
- package/dist/domain/contracts/strategies/index.js.map +0 -1
- package/dist/domain/contracts/strategies/istrategy.contracts.d.ts +0 -25
- package/dist/domain/contracts/strategies/istrategy.contracts.d.ts.map +0 -1
- package/dist/domain/contracts/strategies/istrategy.contracts.js +0 -2
- package/dist/domain/contracts/strategies/istrategy.contracts.js.map +0 -1
- package/dist/domain/contracts/transaction/index.d.ts +0 -3
- package/dist/domain/contracts/transaction/index.d.ts.map +0 -1
- package/dist/domain/contracts/transaction/index.js +0 -2
- package/dist/domain/contracts/transaction/index.js.map +0 -1
- package/dist/domain/contracts/transaction/itransaction-state.types.d.ts +0 -44
- package/dist/domain/contracts/transaction/itransaction-state.types.d.ts.map +0 -1
- package/dist/domain/contracts/transaction/itransaction-state.types.js +0 -2
- package/dist/domain/contracts/transaction/itransaction-state.types.js.map +0 -1
- package/dist/domain/contracts/transaction/iunit-of-work.types.d.ts +0 -25
- package/dist/domain/contracts/transaction/iunit-of-work.types.d.ts.map +0 -1
- package/dist/domain/contracts/transaction/iunit-of-work.types.js +0 -2
- package/dist/domain/contracts/transaction/iunit-of-work.types.js.map +0 -1
- package/dist/domain/entities/__tests__/entity.test.d.ts +0 -2
- package/dist/domain/entities/__tests__/entity.test.d.ts.map +0 -1
- package/dist/domain/entities/__tests__/entity.test.js +0 -53
- package/dist/domain/entities/__tests__/entity.test.js.map +0 -1
- package/dist/domain/entities/entity.d.ts +0 -43
- package/dist/domain/entities/entity.d.ts.map +0 -1
- package/dist/domain/entities/entity.js +0 -55
- package/dist/domain/entities/entity.js.map +0 -1
- package/dist/domain/entities/ientity.contracts.d.ts +0 -43
- package/dist/domain/entities/ientity.contracts.d.ts.map +0 -1
- package/dist/domain/entities/ientity.contracts.js +0 -2
- package/dist/domain/entities/ientity.contracts.js.map +0 -1
- package/dist/domain/entities/index.d.ts +0 -3
- package/dist/domain/entities/index.d.ts.map +0 -1
- package/dist/domain/entities/index.js +0 -2
- package/dist/domain/entities/index.js.map +0 -1
- package/dist/domain/errors/__tests__/app-error.test.d.ts +0 -2
- package/dist/domain/errors/__tests__/app-error.test.d.ts.map +0 -1
- package/dist/domain/errors/__tests__/app-error.test.js +0 -94
- package/dist/domain/errors/__tests__/app-error.test.js.map +0 -1
- package/dist/domain/errors/app-error.d.ts +0 -243
- package/dist/domain/errors/app-error.d.ts.map +0 -1
- package/dist/domain/errors/app-error.js +0 -259
- package/dist/domain/errors/app-error.js.map +0 -1
- package/dist/domain/errors/index.d.ts +0 -2
- package/dist/domain/errors/index.d.ts.map +0 -1
- package/dist/domain/errors/index.js +0 -2
- package/dist/domain/errors/index.js.map +0 -1
- package/dist/domain/index.d.ts +0 -8
- package/dist/domain/index.d.ts.map +0 -1
- package/dist/domain/index.js +0 -6
- package/dist/domain/index.js.map +0 -1
- package/dist/domain/results/__tests__/result.test.d.ts +0 -2
- package/dist/domain/results/__tests__/result.test.d.ts.map +0 -1
- package/dist/domain/results/__tests__/result.test.js +0 -109
- package/dist/domain/results/__tests__/result.test.js.map +0 -1
- package/dist/domain/results/index.d.ts +0 -3
- package/dist/domain/results/index.d.ts.map +0 -1
- package/dist/domain/results/index.js +0 -2
- package/dist/domain/results/index.js.map +0 -1
- package/dist/domain/results/result.d.ts +0 -125
- package/dist/domain/results/result.d.ts.map +0 -1
- package/dist/domain/results/result.js +0 -144
- package/dist/domain/results/result.js.map +0 -1
- package/dist/domain/results/result.types.d.ts +0 -15
- package/dist/domain/results/result.types.d.ts.map +0 -1
- package/dist/domain/results/result.types.js +0 -2
- package/dist/domain/results/result.types.js.map +0 -1
- package/dist/domain/unique_id/__tests__/unique-id.test.d.ts +0 -2
- package/dist/domain/unique_id/__tests__/unique-id.test.d.ts.map +0 -1
- package/dist/domain/unique_id/__tests__/unique-id.test.js +0 -29
- package/dist/domain/unique_id/__tests__/unique-id.test.js.map +0 -1
- package/dist/domain/unique_id/index.d.ts +0 -2
- package/dist/domain/unique_id/index.d.ts.map +0 -1
- package/dist/domain/unique_id/index.js +0 -2
- package/dist/domain/unique_id/index.js.map +0 -1
- package/dist/domain/unique_id/unique-id.d.ts +0 -72
- package/dist/domain/unique_id/unique-id.d.ts.map +0 -1
- package/dist/domain/unique_id/unique-id.js +0 -87
- package/dist/domain/unique_id/unique-id.js.map +0 -1
- package/dist/domain/value_objects/__tests__/value-object.test.d.ts +0 -2
- package/dist/domain/value_objects/__tests__/value-object.test.d.ts.map +0 -1
- package/dist/domain/value_objects/__tests__/value-object.test.js +0 -43
- package/dist/domain/value_objects/__tests__/value-object.test.js.map +0 -1
- package/dist/domain/value_objects/index.d.ts +0 -3
- package/dist/domain/value_objects/index.d.ts.map +0 -1
- package/dist/domain/value_objects/index.js +0 -2
- package/dist/domain/value_objects/index.js.map +0 -1
- package/dist/domain/value_objects/ivalue-object.contracts.d.ts +0 -46
- package/dist/domain/value_objects/ivalue-object.contracts.d.ts.map +0 -1
- package/dist/domain/value_objects/ivalue-object.contracts.js +0 -2
- package/dist/domain/value_objects/ivalue-object.contracts.js.map +0 -1
- package/dist/domain/value_objects/value-object.d.ts +0 -26
- package/dist/domain/value_objects/value-object.d.ts.map +0 -1
- package/dist/domain/value_objects/value-object.js +0 -37
- package/dist/domain/value_objects/value-object.js.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/infrastructure/auth/__tests__/supabase-auth.service.test.d.ts +0 -2
- package/dist/infrastructure/auth/__tests__/supabase-auth.service.test.d.ts.map +0 -1
- package/dist/infrastructure/auth/__tests__/supabase-auth.service.test.js +0 -128
- package/dist/infrastructure/auth/__tests__/supabase-auth.service.test.js.map +0 -1
- package/dist/infrastructure/auth/index.d.ts +0 -3
- package/dist/infrastructure/auth/index.d.ts.map +0 -1
- package/dist/infrastructure/auth/index.js +0 -3
- package/dist/infrastructure/auth/index.js.map +0 -1
- package/dist/infrastructure/auth/storage/cookie.storage.d.ts +0 -4
- package/dist/infrastructure/auth/storage/cookie.storage.d.ts.map +0 -1
- package/dist/infrastructure/auth/storage/cookie.storage.js +0 -31
- package/dist/infrastructure/auth/storage/cookie.storage.js.map +0 -1
- package/dist/infrastructure/auth/storage/index.d.ts +0 -4
- package/dist/infrastructure/auth/storage/index.d.ts.map +0 -1
- package/dist/infrastructure/auth/storage/index.js +0 -4
- package/dist/infrastructure/auth/storage/index.js.map +0 -1
- package/dist/infrastructure/auth/storage/memory.storage.d.ts +0 -3
- package/dist/infrastructure/auth/storage/memory.storage.d.ts.map +0 -1
- package/dist/infrastructure/auth/storage/memory.storage.js +0 -14
- package/dist/infrastructure/auth/storage/memory.storage.js.map +0 -1
- package/dist/infrastructure/auth/storage/storage.utils.d.ts +0 -10
- package/dist/infrastructure/auth/storage/storage.utils.d.ts.map +0 -1
- package/dist/infrastructure/auth/storage/storage.utils.js +0 -22
- package/dist/infrastructure/auth/storage/storage.utils.js.map +0 -1
- package/dist/infrastructure/auth/supabase-auth.service.d.ts +0 -31
- package/dist/infrastructure/auth/supabase-auth.service.d.ts.map +0 -1
- package/dist/infrastructure/auth/supabase-auth.service.js +0 -90
- package/dist/infrastructure/auth/supabase-auth.service.js.map +0 -1
- package/dist/infrastructure/cache/__tests__/in-memory.cache.test.d.ts +0 -2
- package/dist/infrastructure/cache/__tests__/in-memory.cache.test.d.ts.map +0 -1
- package/dist/infrastructure/cache/__tests__/in-memory.cache.test.js +0 -69
- package/dist/infrastructure/cache/__tests__/in-memory.cache.test.js.map +0 -1
- package/dist/infrastructure/cache/in-memory.cache.d.ts +0 -34
- package/dist/infrastructure/cache/in-memory.cache.d.ts.map +0 -1
- package/dist/infrastructure/cache/in-memory.cache.js +0 -66
- package/dist/infrastructure/cache/in-memory.cache.js.map +0 -1
- package/dist/infrastructure/cache/index.d.ts +0 -3
- package/dist/infrastructure/cache/index.d.ts.map +0 -1
- package/dist/infrastructure/cache/index.js +0 -3
- package/dist/infrastructure/cache/index.js.map +0 -1
- package/dist/infrastructure/cache/key-builder.cache.d.ts +0 -25
- package/dist/infrastructure/cache/key-builder.cache.d.ts.map +0 -1
- package/dist/infrastructure/cache/key-builder.cache.js +0 -39
- package/dist/infrastructure/cache/key-builder.cache.js.map +0 -1
- package/dist/infrastructure/datasources/__tests__/remote.datasource.test.d.ts +0 -2
- package/dist/infrastructure/datasources/__tests__/remote.datasource.test.d.ts.map +0 -1
- package/dist/infrastructure/datasources/__tests__/remote.datasource.test.js +0 -176
- package/dist/infrastructure/datasources/__tests__/remote.datasource.test.js.map +0 -1
- package/dist/infrastructure/datasources/index.d.ts +0 -2
- package/dist/infrastructure/datasources/index.d.ts.map +0 -1
- package/dist/infrastructure/datasources/index.js +0 -2
- package/dist/infrastructure/datasources/index.js.map +0 -1
- package/dist/infrastructure/datasources/remote.datasource.d.ts +0 -43
- package/dist/infrastructure/datasources/remote.datasource.d.ts.map +0 -1
- package/dist/infrastructure/datasources/remote.datasource.js +0 -111
- package/dist/infrastructure/datasources/remote.datasource.js.map +0 -1
- package/dist/infrastructure/factories/axios.factory.d.ts +0 -15
- package/dist/infrastructure/factories/axios.factory.d.ts.map +0 -1
- package/dist/infrastructure/factories/axios.factory.js +0 -26
- package/dist/infrastructure/factories/axios.factory.js.map +0 -1
- package/dist/infrastructure/factories/cockatiel-resilience.factory.d.ts +0 -16
- package/dist/infrastructure/factories/cockatiel-resilience.factory.d.ts.map +0 -1
- package/dist/infrastructure/factories/cockatiel-resilience.factory.js +0 -114
- package/dist/infrastructure/factories/cockatiel-resilience.factory.js.map +0 -1
- package/dist/infrastructure/factories/index.d.ts +0 -2
- package/dist/infrastructure/factories/index.d.ts.map +0 -1
- package/dist/infrastructure/factories/index.js +0 -2
- package/dist/infrastructure/factories/index.js.map +0 -1
- package/dist/infrastructure/http/__tests__/axios.http.test.d.ts +0 -2
- package/dist/infrastructure/http/__tests__/axios.http.test.d.ts.map +0 -1
- package/dist/infrastructure/http/__tests__/axios.http.test.js +0 -196
- package/dist/infrastructure/http/__tests__/axios.http.test.js.map +0 -1
- package/dist/infrastructure/http/allow-origin.http.d.ts +0 -8
- package/dist/infrastructure/http/allow-origin.http.d.ts.map +0 -1
- package/dist/infrastructure/http/allow-origin.http.js +0 -13
- package/dist/infrastructure/http/allow-origin.http.js.map +0 -1
- package/dist/infrastructure/http/axios.http.d.ts +0 -17
- package/dist/infrastructure/http/axios.http.d.ts.map +0 -1
- package/dist/infrastructure/http/axios.http.js +0 -89
- package/dist/infrastructure/http/axios.http.js.map +0 -1
- package/dist/infrastructure/http/index.d.ts +0 -2
- package/dist/infrastructure/http/index.d.ts.map +0 -1
- package/dist/infrastructure/http/index.js +0 -2
- package/dist/infrastructure/http/index.js.map +0 -1
- package/dist/infrastructure/index.d.ts +0 -7
- package/dist/infrastructure/index.d.ts.map +0 -1
- package/dist/infrastructure/index.js +0 -7
- package/dist/infrastructure/index.js.map +0 -1
- package/dist/infrastructure/mappers/index.d.ts +0 -3
- package/dist/infrastructure/mappers/index.d.ts.map +0 -1
- package/dist/infrastructure/mappers/index.js +0 -3
- package/dist/infrastructure/mappers/index.js.map +0 -1
- package/dist/infrastructure/mappers/supabase-claims.mapper.d.ts +0 -15
- package/dist/infrastructure/mappers/supabase-claims.mapper.d.ts.map +0 -1
- package/dist/infrastructure/mappers/supabase-claims.mapper.js +0 -30
- package/dist/infrastructure/mappers/supabase-claims.mapper.js.map +0 -1
- package/dist/infrastructure/mappers/supabase-session.mapper.d.ts +0 -8
- package/dist/infrastructure/mappers/supabase-session.mapper.d.ts.map +0 -1
- package/dist/infrastructure/mappers/supabase-session.mapper.js +0 -16
- package/dist/infrastructure/mappers/supabase-session.mapper.js.map +0 -1
- package/dist/infrastructure/resiliences/__tests__/resilience.service.test.d.ts +0 -2
- package/dist/infrastructure/resiliences/__tests__/resilience.service.test.d.ts.map +0 -1
- package/dist/infrastructure/resiliences/__tests__/resilience.service.test.js +0 -47
- package/dist/infrastructure/resiliences/__tests__/resilience.service.test.js.map +0 -1
- package/dist/infrastructure/resiliences/index.d.ts +0 -2
- package/dist/infrastructure/resiliences/index.d.ts.map +0 -1
- package/dist/infrastructure/resiliences/index.js +0 -2
- package/dist/infrastructure/resiliences/index.js.map +0 -1
- package/dist/infrastructure/resiliences/resilience.service.d.ts +0 -18
- package/dist/infrastructure/resiliences/resilience.service.d.ts.map +0 -1
- package/dist/infrastructure/resiliences/resilience.service.js +0 -21
- package/dist/infrastructure/resiliences/resilience.service.js.map +0 -1
- package/dist/infrastructure/validators/__tests__/schema-zod.utils.test.d.ts +0 -2
- package/dist/infrastructure/validators/__tests__/schema-zod.utils.test.d.ts.map +0 -1
- package/dist/infrastructure/validators/__tests__/schema-zod.utils.test.js +0 -68
- package/dist/infrastructure/validators/__tests__/schema-zod.utils.test.js.map +0 -1
- package/dist/infrastructure/validators/__tests__/zod.validator.test.d.ts +0 -2
- package/dist/infrastructure/validators/__tests__/zod.validator.test.d.ts.map +0 -1
- package/dist/infrastructure/validators/__tests__/zod.validator.test.js +0 -72
- package/dist/infrastructure/validators/__tests__/zod.validator.test.js.map +0 -1
- package/dist/infrastructure/validators/base-schema.constant.d.ts +0 -30
- package/dist/infrastructure/validators/base-schema.constant.d.ts.map +0 -1
- package/dist/infrastructure/validators/base-schema.constant.js +0 -41
- package/dist/infrastructure/validators/base-schema.constant.js.map +0 -1
- package/dist/infrastructure/validators/constants/zod.constant.d.ts +0 -24
- package/dist/infrastructure/validators/constants/zod.constant.d.ts.map +0 -1
- package/dist/infrastructure/validators/constants/zod.constant.js +0 -23
- package/dist/infrastructure/validators/constants/zod.constant.js.map +0 -1
- package/dist/infrastructure/validators/index.d.ts +0 -3
- package/dist/infrastructure/validators/index.d.ts.map +0 -1
- package/dist/infrastructure/validators/index.js +0 -3
- package/dist/infrastructure/validators/index.js.map +0 -1
- package/dist/infrastructure/validators/schema-zod.utils.d.ts +0 -27
- package/dist/infrastructure/validators/schema-zod.utils.d.ts.map +0 -1
- package/dist/infrastructure/validators/schema-zod.utils.js +0 -27
- package/dist/infrastructure/validators/schema-zod.utils.js.map +0 -1
- package/dist/infrastructure/validators/zod.validator.d.ts +0 -31
- package/dist/infrastructure/validators/zod.validator.d.ts.map +0 -1
- package/dist/infrastructure/validators/zod.validator.js +0 -53
- package/dist/infrastructure/validators/zod.validator.js.map +0 -1
- package/dist/shared/constants/concurrency.constants.d.ts +0 -42
- package/dist/shared/constants/concurrency.constants.d.ts.map +0 -1
- package/dist/shared/constants/concurrency.constants.js +0 -42
- package/dist/shared/constants/concurrency.constants.js.map +0 -1
- package/dist/shared/constants/error.constants.d.ts +0 -272
- package/dist/shared/constants/error.constants.d.ts.map +0 -1
- package/dist/shared/constants/error.constants.js +0 -278
- package/dist/shared/constants/error.constants.js.map +0 -1
- package/dist/shared/constants/guest.constants.d.ts +0 -52
- package/dist/shared/constants/guest.constants.d.ts.map +0 -1
- package/dist/shared/constants/guest.constants.js +0 -53
- package/dist/shared/constants/guest.constants.js.map +0 -1
- package/dist/shared/constants/idempotency.constants.d.ts +0 -72
- package/dist/shared/constants/idempotency.constants.d.ts.map +0 -1
- package/dist/shared/constants/idempotency.constants.js +0 -72
- package/dist/shared/constants/idempotency.constants.js.map +0 -1
- package/dist/shared/constants/index.d.ts +0 -11
- package/dist/shared/constants/index.d.ts.map +0 -1
- package/dist/shared/constants/index.js +0 -11
- package/dist/shared/constants/index.js.map +0 -1
- package/dist/shared/constants/log-level.constants.d.ts +0 -64
- package/dist/shared/constants/log-level.constants.d.ts.map +0 -1
- package/dist/shared/constants/log-level.constants.js +0 -89
- package/dist/shared/constants/log-level.constants.js.map +0 -1
- package/dist/shared/constants/pagination.constants.d.ts +0 -70
- package/dist/shared/constants/pagination.constants.d.ts.map +0 -1
- package/dist/shared/constants/pagination.constants.js +0 -88
- package/dist/shared/constants/pagination.constants.js.map +0 -1
- package/dist/shared/constants/request.constants.d.ts +0 -34
- package/dist/shared/constants/request.constants.d.ts.map +0 -1
- package/dist/shared/constants/request.constants.js +0 -26
- package/dist/shared/constants/request.constants.js.map +0 -1
- package/dist/shared/constants/resilience.constants.d.ts +0 -89
- package/dist/shared/constants/resilience.constants.d.ts.map +0 -1
- package/dist/shared/constants/resilience.constants.js +0 -89
- package/dist/shared/constants/resilience.constants.js.map +0 -1
- package/dist/shared/constants/roles.constants.d.ts +0 -84
- package/dist/shared/constants/roles.constants.d.ts.map +0 -1
- package/dist/shared/constants/roles.constants.js +0 -68
- package/dist/shared/constants/roles.constants.js.map +0 -1
- package/dist/shared/constants/tokens.constants.d.ts +0 -373
- package/dist/shared/constants/tokens.constants.d.ts.map +0 -1
- package/dist/shared/constants/tokens.constants.js +0 -373
- package/dist/shared/constants/tokens.constants.js.map +0 -1
- package/dist/shared/index.d.ts +0 -4
- package/dist/shared/index.d.ts.map +0 -1
- package/dist/shared/index.js +0 -3
- package/dist/shared/index.js.map +0 -1
- package/dist/shared/types/api-response.types.d.ts +0 -185
- package/dist/shared/types/api-response.types.d.ts.map +0 -1
- package/dist/shared/types/api-response.types.js +0 -2
- package/dist/shared/types/api-response.types.js.map +0 -1
- package/dist/shared/types/auth-policy.types.d.ts +0 -48
- package/dist/shared/types/auth-policy.types.d.ts.map +0 -1
- package/dist/shared/types/auth-policy.types.js +0 -2
- package/dist/shared/types/auth-policy.types.js.map +0 -1
- package/dist/shared/types/auth.types.d.ts +0 -106
- package/dist/shared/types/auth.types.d.ts.map +0 -1
- package/dist/shared/types/auth.types.js +0 -2
- package/dist/shared/types/auth.types.js.map +0 -1
- package/dist/shared/types/cache.types.d.ts +0 -64
- package/dist/shared/types/cache.types.d.ts.map +0 -1
- package/dist/shared/types/cache.types.js +0 -2
- package/dist/shared/types/cache.types.js.map +0 -1
- package/dist/shared/types/common.types.d.ts +0 -213
- package/dist/shared/types/common.types.d.ts.map +0 -1
- package/dist/shared/types/common.types.js +0 -3
- package/dist/shared/types/common.types.js.map +0 -1
- package/dist/shared/types/http.types.d.ts +0 -188
- package/dist/shared/types/http.types.d.ts.map +0 -1
- package/dist/shared/types/http.types.js +0 -2
- package/dist/shared/types/http.types.js.map +0 -1
- package/dist/shared/types/index.d.ts +0 -10
- package/dist/shared/types/index.d.ts.map +0 -1
- package/dist/shared/types/index.js +0 -2
- package/dist/shared/types/index.js.map +0 -1
- package/dist/shared/types/injection-token.types.d.ts +0 -38
- package/dist/shared/types/injection-token.types.d.ts.map +0 -1
- package/dist/shared/types/injection-token.types.js +0 -2
- package/dist/shared/types/injection-token.types.js.map +0 -1
- package/dist/shared/types/metadata.types.d.ts +0 -150
- package/dist/shared/types/metadata.types.d.ts.map +0 -1
- package/dist/shared/types/metadata.types.js +0 -2
- package/dist/shared/types/metadata.types.js.map +0 -1
- package/dist/shared/types/pagination.types.d.ts +0 -88
- package/dist/shared/types/pagination.types.d.ts.map +0 -1
- package/dist/shared/types/pagination.types.js +0 -3
- package/dist/shared/types/pagination.types.js.map +0 -1
- package/dist/shared/utils/__tests__/date.utils.test.d.ts +0 -2
- package/dist/shared/utils/__tests__/date.utils.test.d.ts.map +0 -1
- package/dist/shared/utils/__tests__/date.utils.test.js +0 -97
- package/dist/shared/utils/__tests__/date.utils.test.js.map +0 -1
- package/dist/shared/utils/__tests__/guards.utils.test.d.ts +0 -2
- package/dist/shared/utils/__tests__/guards.utils.test.d.ts.map +0 -1
- package/dist/shared/utils/__tests__/guards.utils.test.js +0 -324
- package/dist/shared/utils/__tests__/guards.utils.test.js.map +0 -1
- package/dist/shared/utils/__tests__/guid.utils.test.d.ts +0 -2
- package/dist/shared/utils/__tests__/guid.utils.test.d.ts.map +0 -1
- package/dist/shared/utils/__tests__/guid.utils.test.js +0 -97
- package/dist/shared/utils/__tests__/guid.utils.test.js.map +0 -1
- package/dist/shared/utils/__tests__/http.utils.test.d.ts +0 -2
- package/dist/shared/utils/__tests__/http.utils.test.d.ts.map +0 -1
- package/dist/shared/utils/__tests__/http.utils.test.js +0 -230
- package/dist/shared/utils/__tests__/http.utils.test.js.map +0 -1
- package/dist/shared/utils/__tests__/math.utils.test.d.ts +0 -2
- package/dist/shared/utils/__tests__/math.utils.test.d.ts.map +0 -1
- package/dist/shared/utils/__tests__/math.utils.test.js +0 -93
- package/dist/shared/utils/__tests__/math.utils.test.js.map +0 -1
- package/dist/shared/utils/__tests__/promise.utils.test.d.ts +0 -2
- package/dist/shared/utils/__tests__/promise.utils.test.d.ts.map +0 -1
- package/dist/shared/utils/__tests__/promise.utils.test.js +0 -101
- package/dist/shared/utils/__tests__/promise.utils.test.js.map +0 -1
- package/dist/shared/utils/__tests__/string.utils.test.d.ts +0 -2
- package/dist/shared/utils/__tests__/string.utils.test.d.ts.map +0 -1
- package/dist/shared/utils/__tests__/string.utils.test.js +0 -153
- package/dist/shared/utils/__tests__/string.utils.test.js.map +0 -1
- package/dist/shared/utils/abort.utils.d.ts +0 -34
- package/dist/shared/utils/abort.utils.d.ts.map +0 -1
- package/dist/shared/utils/abort.utils.js +0 -55
- package/dist/shared/utils/abort.utils.js.map +0 -1
- package/dist/shared/utils/date.utils.d.ts +0 -75
- package/dist/shared/utils/date.utils.d.ts.map +0 -1
- package/dist/shared/utils/date.utils.js +0 -88
- package/dist/shared/utils/date.utils.js.map +0 -1
- package/dist/shared/utils/enumerable.utils.d.ts +0 -43
- package/dist/shared/utils/enumerable.utils.d.ts.map +0 -1
- package/dist/shared/utils/enumerable.utils.js +0 -52
- package/dist/shared/utils/enumerable.utils.js.map +0 -1
- package/dist/shared/utils/guards.utils.d.ts +0 -245
- package/dist/shared/utils/guards.utils.d.ts.map +0 -1
- package/dist/shared/utils/guards.utils.js +0 -308
- package/dist/shared/utils/guards.utils.js.map +0 -1
- package/dist/shared/utils/guid.utils.d.ts +0 -73
- package/dist/shared/utils/guid.utils.d.ts.map +0 -1
- package/dist/shared/utils/guid.utils.js +0 -89
- package/dist/shared/utils/guid.utils.js.map +0 -1
- package/dist/shared/utils/http.utils.d.ts +0 -75
- package/dist/shared/utils/http.utils.d.ts.map +0 -1
- package/dist/shared/utils/http.utils.js +0 -144
- package/dist/shared/utils/http.utils.js.map +0 -1
- package/dist/shared/utils/index.d.ts +0 -11
- package/dist/shared/utils/index.d.ts.map +0 -1
- package/dist/shared/utils/index.js +0 -11
- package/dist/shared/utils/index.js.map +0 -1
- package/dist/shared/utils/math.utils.d.ts +0 -79
- package/dist/shared/utils/math.utils.d.ts.map +0 -1
- package/dist/shared/utils/math.utils.js +0 -97
- package/dist/shared/utils/math.utils.js.map +0 -1
- package/dist/shared/utils/promise.utils.d.ts +0 -40
- package/dist/shared/utils/promise.utils.d.ts.map +0 -1
- package/dist/shared/utils/promise.utils.js +0 -45
- package/dist/shared/utils/promise.utils.js.map +0 -1
- package/dist/shared/utils/sanitize.utils.d.ts +0 -39
- package/dist/shared/utils/sanitize.utils.d.ts.map +0 -1
- package/dist/shared/utils/sanitize.utils.js +0 -67
- package/dist/shared/utils/sanitize.utils.js.map +0 -1
- package/dist/shared/utils/string.utils.d.ts +0 -102
- package/dist/shared/utils/string.utils.d.ts.map +0 -1
- package/dist/shared/utils/string.utils.js +0 -157
- package/dist/shared/utils/string.utils.js.map +0 -1
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import type { AuthPolicy, Optional } from '../../../shared';
|
|
2
|
-
/**
|
|
3
|
-
* @description The IPolicyRegistry interface defines the contract for a Policy registry that manages role-based access control policies. It provides methods to add policies for certain intents and to retrieve the access control policy for a given intent. Implementations of this interface can be used to enforce Policy policies across the application by associating roles and permissions with specific actions or intents.
|
|
4
|
-
|
|
5
|
-
*
|
|
6
|
-
* @author Xeno
|
|
7
|
-
* @version 1.0.0
|
|
8
|
-
* @since 2025-09-30
|
|
9
|
-
* @link https://github.com/xeno-js/xeno-js
|
|
10
|
-
*/
|
|
11
|
-
export interface IPolicyRegistry {
|
|
12
|
-
/**
|
|
13
|
-
* @description Adds a policy for a specific intent. If a policy for the intent already exists, it will be updated with the new roles and permissions.
|
|
14
|
-
* @param intent - The intent for which the policy is being added.
|
|
15
|
-
* @param policy - The policy to be added.
|
|
16
|
-
* @returns The current instance of the policy registry.
|
|
17
|
-
|
|
18
|
-
*
|
|
19
|
-
* @author Xeno
|
|
20
|
-
* @version 1.0.0
|
|
21
|
-
* @since 2025-09-30
|
|
22
|
-
* @link https://github.com/xeno-js/xeno-js
|
|
23
|
-
*/
|
|
24
|
-
addPolicy(intent: string, policy: AuthPolicy): this;
|
|
25
|
-
/**
|
|
26
|
-
* @description Retrieves the policy for a specific intent.
|
|
27
|
-
* @param intent - The intent for which the policy is being retrieved.
|
|
28
|
-
* @returns The policy associated with the intent, or undefined if no policy exists.
|
|
29
|
-
|
|
30
|
-
*
|
|
31
|
-
* @author Xeno
|
|
32
|
-
* @version 1.0.0
|
|
33
|
-
* @since 2025-09-30
|
|
34
|
-
* @link https://github.com/xeno-js/xeno-js
|
|
35
|
-
*/
|
|
36
|
-
getPolicy(intent: string): Optional<AuthPolicy>;
|
|
37
|
-
}
|
|
38
|
-
//# sourceMappingURL=ipolicy-registry.contracts.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ipolicy-registry.contracts.d.ts","sourceRoot":"","sources":["../../../../src/domain/contracts/policies/ipolicy-registry.contracts.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAA;AAEpD;;;;;;;;KAQK;AACL,MAAM,WAAW,eAAe;IAC9B;;;;;;;;;;;OAWG;IACH,SAAS,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,UAAU,GAAG,IAAI,CAAA;IAEnD;;;;;;;;;;OAUG;IACH,SAAS,CAAC,MAAM,EAAE,MAAM,GAAG,QAAQ,CAAC,UAAU,CAAC,CAAA;CAChD"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ipolicy-registry.contracts.js","sourceRoot":"","sources":["../../../../src/domain/contracts/policies/ipolicy-registry.contracts.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/domain/contracts/repositories/index.ts"],"names":[],"mappings":"AAAA,mBAAmB,uBAAuB,CAAA;AAC1C,mBAAmB,yBAAyB,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/domain/contracts/repositories/index.ts"],"names":[],"mappings":""}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import type { Optional, UserContext } from '../../../shared';
|
|
2
|
-
import type { ResultType } from '../../results/result.types';
|
|
3
|
-
/**
|
|
4
|
-
* @description Interface representing a Data Access Object (DAO) for read operations. This interface defines the contract for retrieving data from a data source, such as a database or an API. It includes methods for finding an entity by its unique identifier and for finding multiple entities based on a filter. The IReadDao interface is designed to be implemented by classes that provide specific data access logic, allowing for separation of concerns and easier testing.
|
|
5
|
-
|
|
6
|
-
*
|
|
7
|
-
* @author Xeno
|
|
8
|
-
* @version 1.0.0
|
|
9
|
-
* @since 2025-09-30
|
|
10
|
-
* @link https://github.com/xeno-js/xeno-js
|
|
11
|
-
*/
|
|
12
|
-
export interface IReadDao<T> {
|
|
13
|
-
/**
|
|
14
|
-
* @description Finds an entity by its unique identifier. This method takes an ID and an optional AbortSignal for cancellation. It returns a promise that resolves to the entity if found, or null | undefined if not found. The implementation of this method is responsible for constructing the appropriate query based on the provided ID and handling any necessary data transformations before returning the result.
|
|
15
|
-
* @param id The unique identifier of the entity to find.
|
|
16
|
-
* @param ctx The context of the authenticated user, which may be used for authorization and auditing purposes.
|
|
17
|
-
* @param signal An optional AbortSignal for cancellation.
|
|
18
|
-
* @returns A promise that resolves to the entity if found, or null | undefined if not found.
|
|
19
|
-
|
|
20
|
-
*
|
|
21
|
-
* @author Xeno
|
|
22
|
-
* @version 1.0.0
|
|
23
|
-
* @since 2025-09-30
|
|
24
|
-
* @link https://github.com/xeno-js/xeno-js
|
|
25
|
-
*/
|
|
26
|
-
findById(id: string | number, ctx: UserContext, signal: Optional<AbortSignal>): Promise<ResultType<Optional<T>>>;
|
|
27
|
-
/**
|
|
28
|
-
* @description Finds entities based on a filter. This method takes a filter object and an optional AbortSignal for cancellation. It returns a promise that resolves to an array of entities that match the filter criteria. The implementation of this method is responsible for constructing the appropriate query based on the provided filter and handling any necessary data transformations before returning the results.
|
|
29
|
-
* @param ctx The context of the authenticated user, which may be used for authorization and auditing purposes.
|
|
30
|
-
* @param signal An optional AbortSignal for cancellation.
|
|
31
|
-
* @returns A promise that resolves to an array of entities that match the filter criteria.
|
|
32
|
-
|
|
33
|
-
*
|
|
34
|
-
* @author Xeno
|
|
35
|
-
* @version 1.0.0
|
|
36
|
-
* @since 2025-09-30
|
|
37
|
-
* @link https://github.com/xeno-js/xeno-js
|
|
38
|
-
*/
|
|
39
|
-
findAll(ctx: UserContext, signal: Optional<AbortSignal>): Promise<ResultType<T[]>>;
|
|
40
|
-
}
|
|
41
|
-
//# sourceMappingURL=iread-dao.contracts.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"iread-dao.contracts.d.ts","sourceRoot":"","sources":["../../../../src/domain/contracts/repositories/iread-dao.contracts.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,UAAU,CAAA;AAErD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAA;AAE5D;;;;;;;;KAQK;AACL,MAAM,WAAW,QAAQ,CAAC,CAAC;IACzB;;;;;;;;;;;;OAYG;IACH,QAAQ,CACN,EAAE,EAAE,MAAM,GAAG,MAAM,EACnB,GAAG,EAAE,WAAW,EAChB,MAAM,EAAE,QAAQ,CAAC,WAAW,CAAC,GAC5B,OAAO,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;IAEnC;;;;;;;;;;;OAWG;IACH,OAAO,CAAC,GAAG,EAAE,WAAW,EAAE,MAAM,EAAE,QAAQ,CAAC,WAAW,CAAC,GAAG,OAAO,CAAC,UAAU,CAAC,CAAC,EAAE,CAAC,CAAC,CAAA;CACnF"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"iread-dao.contracts.js","sourceRoot":"","sources":["../../../../src/domain/contracts/repositories/iread-dao.contracts.ts"],"names":[],"mappings":""}
|
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
import type { Optional, UserContext } from '../../../shared';
|
|
2
|
-
import type { ResultType } from '../../results/result.types';
|
|
3
|
-
/**
|
|
4
|
-
* @fileoverview Defines the IRepository interface for generic data access operations.
|
|
5
|
-
|
|
6
|
-
*
|
|
7
|
-
* @author Xeno
|
|
8
|
-
* @version 1.0.0
|
|
9
|
-
* @since 2025-09-30
|
|
10
|
-
* @link https://github.com/xeno-js/xeno-js
|
|
11
|
-
*/
|
|
12
|
-
/**
|
|
13
|
-
* A generic repository interface for performing basic CRUD operations on entities of type T.
|
|
14
|
-
*
|
|
15
|
-
* @template T - The type of the entity that the repository will manage.
|
|
16
|
-
|
|
17
|
-
*
|
|
18
|
-
* @author Xeno
|
|
19
|
-
* @version 1.0.0
|
|
20
|
-
* @since 2025-09-30
|
|
21
|
-
* @link https://github.com/xeno-js/xeno-js
|
|
22
|
-
*/
|
|
23
|
-
export interface IRepository<T> {
|
|
24
|
-
/**
|
|
25
|
-
* @description Finds an entity by its unique identifier. This method takes an ID and an optional AbortSignal for cancellation. It returns a promise that resolves to the entity if found, or null | undefined if not found. The implementation of this method is responsible for constructing the appropriate query based on the provided ID and handling any necessary data transformations before returning the result.
|
|
26
|
-
* @param id The unique identifier of the entity to find.
|
|
27
|
-
* @param ctx The context of the authenticated user, which may be used for authorization and auditing purposes.
|
|
28
|
-
* @param signal An optional AbortSignal for cancellation.
|
|
29
|
-
* @returns A promise that resolves to the entity if found, or null | undefined if not found.
|
|
30
|
-
|
|
31
|
-
*
|
|
32
|
-
* @author Xeno
|
|
33
|
-
* @version 1.0.0
|
|
34
|
-
* @since 2025-09-30
|
|
35
|
-
* @link https://github.com/xeno-js/xeno-js
|
|
36
|
-
*/
|
|
37
|
-
findById(id: string | number, ctx: UserContext, signal: Optional<AbortSignal>): Promise<ResultType<Optional<T>>>;
|
|
38
|
-
/**
|
|
39
|
-
* @description Finds entities based on the user context. This method takes a user context and an optional AbortSignal for cancellation. It returns a promise that resolves to an array of entities that match the context. The implementation of this method is responsible for constructing the appropriate query based on the provided context and handling any necessary data transformations before returning the results.
|
|
40
|
-
* @param ctx The context of the authenticated user, which may be used for authorization and auditing purposes.
|
|
41
|
-
* @param signal An optional AbortSignal for cancellation.
|
|
42
|
-
* @returns A promise that resolves to an array of entities that match the context.
|
|
43
|
-
|
|
44
|
-
*
|
|
45
|
-
* @author Xeno
|
|
46
|
-
* @version 1.0.0
|
|
47
|
-
* @since 2025-09-30
|
|
48
|
-
* @link https://github.com/xeno-js/xeno-js
|
|
49
|
-
*/
|
|
50
|
-
findAll(ctx: UserContext, signal: Optional<AbortSignal>): Promise<ResultType<T[]>>;
|
|
51
|
-
/**
|
|
52
|
-
* @description Updates entities based on the user context. This method takes a user context and an optional AbortSignal for cancellation. It returns a promise that resolves when the update operation is complete.
|
|
53
|
-
* @param id The unique identifier of the entity to update.
|
|
54
|
-
* @param entity The partial entity object containing the data to be updated.
|
|
55
|
-
* @param ctx The context of the authenticated user, which may be used for authorization and auditing purposes.
|
|
56
|
-
* @param signal An optional AbortSignal for cancellation.
|
|
57
|
-
* @returns A promise that resolves when the update operation is complete.
|
|
58
|
-
|
|
59
|
-
*
|
|
60
|
-
* @author Xeno
|
|
61
|
-
* @version 1.0.0
|
|
62
|
-
* @since 2025-09-30
|
|
63
|
-
* @link https://github.com/xeno-js/xeno-js
|
|
64
|
-
*/
|
|
65
|
-
update(id: string | number, entity: Partial<T>, ctx: UserContext, signal: Optional<AbortSignal>): Promise<ResultType<void>>;
|
|
66
|
-
/**
|
|
67
|
-
* @description Saves an entity to the repository. This method takes an entity object and an optional AbortSignal for cancellation. It returns a promise that resolves when the save operation is complete.
|
|
68
|
-
* @param entity The entity object to save.
|
|
69
|
-
* @param signal An optional AbortSignal to allow cancellation of the save operation.
|
|
70
|
-
* @returns A promise that resolves when the entity has been saved.
|
|
71
|
-
|
|
72
|
-
*
|
|
73
|
-
* @author Xeno
|
|
74
|
-
* @version 1.0.0
|
|
75
|
-
* @since 2025-09-30
|
|
76
|
-
* @link https://github.com/xeno-js/xeno-js
|
|
77
|
-
*/
|
|
78
|
-
save(entity: T, signal: Optional<AbortSignal>): Promise<ResultType<void>>;
|
|
79
|
-
/**
|
|
80
|
-
* Deletes an entity from the repository by its unique identifier.
|
|
81
|
-
*
|
|
82
|
-
* @param entity The entity to delete.
|
|
83
|
-
* @param ctx The context of the authenticated user, which may be used for authorization and auditing purposes.
|
|
84
|
-
* @param signal An optional AbortSignal to allow cancellation of the delete operation.
|
|
85
|
-
* @returns A promise that resolves when the entity has been deleted.
|
|
86
|
-
|
|
87
|
-
*
|
|
88
|
-
* @author Xeno
|
|
89
|
-
* @version 1.0.0
|
|
90
|
-
* @since 2025-09-30
|
|
91
|
-
* @link https://github.com/xeno-js/xeno-js
|
|
92
|
-
*/
|
|
93
|
-
delete(entity: T, ctx: UserContext, signal: Optional<AbortSignal>): Promise<ResultType<void>>;
|
|
94
|
-
}
|
|
95
|
-
//# sourceMappingURL=irepository.contracts.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"irepository.contracts.d.ts","sourceRoot":"","sources":["../../../../src/domain/contracts/repositories/irepository.contracts.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,UAAU,CAAA;AAErD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAA;AAE5D;;;;;;;;KAQK;AAEL;;;;;;;;;;KAUK;AACL,MAAM,WAAW,WAAW,CAAC,CAAC;IAC5B;;;;;;;;;;;;OAYG;IACH,QAAQ,CACN,EAAE,EAAE,MAAM,GAAG,MAAM,EACnB,GAAG,EAAE,WAAW,EAChB,MAAM,EAAE,QAAQ,CAAC,WAAW,CAAC,GAC5B,OAAO,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;IAEnC;;;;;;;;;;;OAWG;IACH,OAAO,CAAC,GAAG,EAAE,WAAW,EAAE,MAAM,EAAE,QAAQ,CAAC,WAAW,CAAC,GAAG,OAAO,CAAC,UAAU,CAAC,CAAC,EAAE,CAAC,CAAC,CAAA;IAElF;;;;;;;;;;;;;OAaG;IACH,MAAM,CACJ,EAAE,EAAE,MAAM,GAAG,MAAM,EACnB,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,EAClB,GAAG,EAAE,WAAW,EAChB,MAAM,EAAE,QAAQ,CAAC,WAAW,CAAC,GAC5B,OAAO,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,CAAA;IAE5B;;;;;;;;;;;OAWG;IACH,IAAI,CAAC,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,QAAQ,CAAC,WAAW,CAAC,GAAG,OAAO,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,CAAA;IAEzE;;;;;;;;;;;;;OAaG;IACH,MAAM,CAAC,MAAM,EAAE,CAAC,EAAE,GAAG,EAAE,WAAW,EAAE,MAAM,EAAE,QAAQ,CAAC,WAAW,CAAC,GAAG,OAAO,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,CAAA;CAC9F"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"irepository.contracts.js","sourceRoot":"","sources":["../../../../src/domain/contracts/repositories/irepository.contracts.ts"],"names":[],"mappings":""}
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
import type { ResultType } from '../../../../domain';
|
|
2
|
-
import type { AuthClaims, Maybe, Optional, Provider, Session } from '../../../../shared';
|
|
3
|
-
/**
|
|
4
|
-
* @description IAuthService defines the contract for authentication services.
|
|
5
|
-
* It provides methods to check if a user is authenticated and to retrieve the user's claims.
|
|
6
|
-
|
|
7
|
-
*
|
|
8
|
-
* @author Xeno
|
|
9
|
-
* @version 1.0.0
|
|
10
|
-
* @since 2025-09-30
|
|
11
|
-
* @link https://github.com/xeno-js/xeno-js
|
|
12
|
-
*/
|
|
13
|
-
export interface IBaseAuthService {
|
|
14
|
-
/**
|
|
15
|
-
* Checks if the user is authenticated.
|
|
16
|
-
* @returns A promise that resolves to true if the user is authenticated, false otherwise.
|
|
17
|
-
|
|
18
|
-
*
|
|
19
|
-
* @author Xeno
|
|
20
|
-
* @version 1.0.0
|
|
21
|
-
* @since 2025-09-30
|
|
22
|
-
* @link https://github.com/xeno-js/xeno-js
|
|
23
|
-
*/
|
|
24
|
-
isAuthenticated(): Promise<boolean>;
|
|
25
|
-
/**
|
|
26
|
-
* Restituisce l'utente attualmente autenticato.
|
|
27
|
-
*/
|
|
28
|
-
getUser(): Promise<ResultType<Maybe<AuthClaims>>>;
|
|
29
|
-
/**
|
|
30
|
-
* Authenticates a user based on a token.
|
|
31
|
-
* @param token The token to authenticate the user.
|
|
32
|
-
* @returns A promise that resolves to the user's claims, or null if not authenticated.
|
|
33
|
-
|
|
34
|
-
*
|
|
35
|
-
* @author Xeno
|
|
36
|
-
* @version 1.0.0
|
|
37
|
-
* @since 2025-09-30
|
|
38
|
-
* @link https://github.com/xeno-js/xeno-js
|
|
39
|
-
*/
|
|
40
|
-
authenticate(token: string): Promise<ResultType<AuthClaims>>;
|
|
41
|
-
}
|
|
42
|
-
/**
|
|
43
|
-
* @description IAuthService defines the contract for authentication services.
|
|
44
|
-
* It provides methods to check if a user is authenticated and to retrieve the user's claims.
|
|
45
|
-
|
|
46
|
-
*
|
|
47
|
-
* @author Xeno
|
|
48
|
-
* @version 1.0.0
|
|
49
|
-
* @since 2025-09-30
|
|
50
|
-
* @link https://github.com/xeno-js/xeno-js
|
|
51
|
-
*/
|
|
52
|
-
export interface IAuthService {
|
|
53
|
-
/**
|
|
54
|
-
* Avvia il flusso di autenticazione OAuth con un provider esterno (es. Google).
|
|
55
|
-
*/
|
|
56
|
-
signInWithProvider(provider: Provider): Promise<ResultType<{
|
|
57
|
-
url: string;
|
|
58
|
-
}>>;
|
|
59
|
-
/**
|
|
60
|
-
* Restituisce la sessione corrente attiva salvata nel client Supabase.
|
|
61
|
-
*/
|
|
62
|
-
getSession(): Promise<ResultType<Maybe<Session>>>;
|
|
63
|
-
/**
|
|
64
|
-
* Esegue il logout dell'utente e pulisce la sessione locale.
|
|
65
|
-
*/
|
|
66
|
-
signOut(): Promise<ResultType<void>>;
|
|
67
|
-
exchangeCodeForSession(code: string): Promise<ResultType<Optional<Session>>>;
|
|
68
|
-
}
|
|
69
|
-
export interface IExtendendService extends IBaseAuthService, IAuthService {
|
|
70
|
-
}
|
|
71
|
-
//# sourceMappingURL=iauth-service.contracts.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"iauth-service.contracts.d.ts","sourceRoot":"","sources":["../../../../../src/domain/contracts/services/auth/iauth-service.contracts.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAA;AAC1C,OAAO,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,UAAU,CAAA;AAE9E;;;;;;;;;KASK;AACL,MAAM,WAAW,gBAAgB;IAC/B;;;;;;;;;OASG;IACH,eAAe,IAAI,OAAO,CAAC,OAAO,CAAC,CAAA;IAEnC;;OAEG;IACH,OAAO,IAAI,OAAO,CAAC,UAAU,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC,CAAA;IAEjD;;;;;;;;;;OAUG;IACH,YAAY,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,UAAU,CAAC,UAAU,CAAC,CAAC,CAAA;CAC7D;AAED;;;;;;;;;KASK;AACL,MAAM,WAAW,YAAY;IAC3B;;OAEG;IACH,kBAAkB,CAAC,QAAQ,EAAE,QAAQ,GAAG,OAAO,CAAC,UAAU,CAAC;QAAE,GAAG,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC,CAAA;IAE5E;;OAEG;IACH,UAAU,IAAI,OAAO,CAAC,UAAU,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,CAAA;IAEjD;;OAEG;IACH,OAAO,IAAI,OAAO,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,CAAA;IAEpC,sBAAsB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,UAAU,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC,CAAA;CAC7E;AAED,MAAM,WAAW,iBAAkB,SAAQ,gBAAgB,EAAE,YAAY;CAAG"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"iauth-service.contracts.js","sourceRoot":"","sources":["../../../../../src/domain/contracts/services/auth/iauth-service.contracts.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/domain/contracts/services/auth/index.ts"],"names":[],"mappings":"AAAA,mBAAmB,2BAA2B,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/domain/contracts/services/auth/index.ts"],"names":[],"mappings":""}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @description The IConcurrencyService interface provides a contract for executing multiple asynchronous tasks in parallel while strictly controlling the maximum number of concurrent executions. This is crucial for protecting system resources (CPU, RAM) and avoiding event loop blocking during massive batch operations (e.g., processing large CSV files, bulk database inserts).
|
|
3
|
-
|
|
4
|
-
*
|
|
5
|
-
* @author Xeno
|
|
6
|
-
* @version 1.0.0
|
|
7
|
-
* @since 2025-09-30
|
|
8
|
-
* @link https://github.com/xeno-js/xeno-js
|
|
9
|
-
*/
|
|
10
|
-
export interface IConcurrencyService {
|
|
11
|
-
/**
|
|
12
|
-
* @description Executes an array of asynchronous tasks in parallel, limiting the number of tasks running at the exact same time.
|
|
13
|
-
* @param tasks An array of functions, where each function returns a Promise representing the asynchronous task to be executed.
|
|
14
|
-
* @param concurrencyLimit The maximum number of promises allowed to run concurrently.
|
|
15
|
-
* @returns A Promise that resolves to an array containing the results of all tasks, in the same order as the input array.
|
|
16
|
-
|
|
17
|
-
*
|
|
18
|
-
* @author Xeno
|
|
19
|
-
* @version 1.0.0
|
|
20
|
-
* @since 2025-09-30
|
|
21
|
-
* @link https://github.com/xeno-js/xeno-js
|
|
22
|
-
*/
|
|
23
|
-
executeInParallel<T>(tasks: (() => Promise<T>)[], concurrencyLimit: number): Promise<T[]>;
|
|
24
|
-
}
|
|
25
|
-
//# sourceMappingURL=concurrency-service.contracts.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"concurrency-service.contracts.d.ts","sourceRoot":"","sources":["../../../../../src/domain/contracts/services/concurrency/concurrency-service.contracts.ts"],"names":[],"mappings":"AAAA;;;;;;;;KAQK;AACL,MAAM,WAAW,mBAAmB;IAClC;;;;;;;;;;;OAWG;IACH,iBAAiB,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,MAAM,OAAO,CAAC,CAAC,CAAC,CAAC,EAAE,EAAE,gBAAgB,EAAE,MAAM,GAAG,OAAO,CAAC,CAAC,EAAE,CAAC,CAAA;CAC1F"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"concurrency-service.contracts.js","sourceRoot":"","sources":["../../../../../src/domain/contracts/services/concurrency/concurrency-service.contracts.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/domain/contracts/services/concurrency/index.ts"],"names":[],"mappings":"AAAA,mBAAmB,iCAAiC,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/domain/contracts/services/concurrency/index.ts"],"names":[],"mappings":""}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @description The IServiceExtractor interface defines a contract for extracting metadata from HTTP headers. Implementing classes must provide the extract method, which takes HttpHeaders as input and returns a Metadata object containing the extracted information. This allows for flexible and consistent extraction of metadata across different parts of the application, such as authentication, logging, or request validation.
|
|
3
|
-
|
|
4
|
-
*
|
|
5
|
-
* @author Xeno
|
|
6
|
-
* @version 1.0.0
|
|
7
|
-
* @since 2025-09-30
|
|
8
|
-
* @link https://github.com/xeno-js/xeno-js
|
|
9
|
-
*/
|
|
10
|
-
export interface IServiceExtractor<TRequest, TResponse = unknown> {
|
|
11
|
-
/**
|
|
12
|
-
* @description The extract method retrieves metadata from the provided HttpHeaders. Implementing classes must provide this method to allow flexible extraction of metadata for various purposes such as authentication, logging, or request validation.
|
|
13
|
-
* @param headers The HTTP headers from which the metadata will be extracted. This object typically contains key-value pairs representing the headers of the incoming request.
|
|
14
|
-
* @returns A Metadata object containing the extracted metadata information. This allows for handling both success and error cases in a consistent manner.
|
|
15
|
-
|
|
16
|
-
*
|
|
17
|
-
* @author Xeno
|
|
18
|
-
* @version 1.0.0
|
|
19
|
-
* @since 2025-09-30
|
|
20
|
-
* @link https://github.com/xeno-js/xeno-js
|
|
21
|
-
*/
|
|
22
|
-
extract(headers: TRequest): TResponse;
|
|
23
|
-
}
|
|
24
|
-
//# sourceMappingURL=iextractor-service.contracts.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"iextractor-service.contracts.d.ts","sourceRoot":"","sources":["../../../../../src/domain/contracts/services/extractors/iextractor-service.contracts.ts"],"names":[],"mappings":"AAAA;;;;;;;;KAQK;AACL,MAAM,WAAW,iBAAiB,CAAC,QAAQ,EAAE,SAAS,GAAG,OAAO;IAC9D;;;;;;;;;;OAUG;IACH,OAAO,CAAC,OAAO,EAAE,QAAQ,GAAG,SAAS,CAAA;CACtC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"iextractor-service.contracts.js","sourceRoot":"","sources":["../../../../../src/domain/contracts/services/extractors/iextractor-service.contracts.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/domain/contracts/services/extractors/index.ts"],"names":[],"mappings":"AAAA,mBAAmB,gCAAgC,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/domain/contracts/services/extractors/index.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/domain/contracts/services/index.ts"],"names":[],"mappings":"AAAA,mBAAmB,cAAc,CAAA;AACjC,mBAAmB,qBAAqB,CAAA;AACxC,mBAAmB,oBAAoB,CAAA;AACvC,mBAAmB,qBAAqB,CAAA;AACxC,mBAAmB,oBAAoB,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/domain/contracts/services/index.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/domain/contracts/services/resiliences/index.ts"],"names":[],"mappings":"AAAA,mBAAmB,iCAAiC,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/domain/contracts/services/resiliences/index.ts"],"names":[],"mappings":""}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import type { Optional } from '../../../../shared';
|
|
2
|
-
/**
|
|
3
|
-
* @description The ServiceResilience interface defines a contract for implementing resilience features in service calls. It provides a method to execute asynchronous operations with built-in support for retries, timeouts, and circuit breakers. This interface is designed to enhance the reliability of service interactions by automatically handling transient faults and preventing cascading failures in distributed systems.
|
|
4
|
-
|
|
5
|
-
*
|
|
6
|
-
* @author Xeno
|
|
7
|
-
* @version 1.0.0
|
|
8
|
-
* @since 2025-09-30
|
|
9
|
-
* @link https://github.com/xeno-js/xeno-js
|
|
10
|
-
*/
|
|
11
|
-
export interface IServiceResilience {
|
|
12
|
-
/**
|
|
13
|
-
* @description Executes a given asynchronous operation with resilience features such as retries, timeouts, and circuit breakers. This method is designed to handle transient faults and improve the reliability of service calls by automatically retrying failed operations, enforcing timeouts to prevent hanging requests, and implementing circuit breaker patterns to avoid overwhelming services that are experiencing issues. The method takes an asynchronous function as input and returns a Promise that resolves with the result of the operation or rejects with an error if the operation fails after exhausting all retry attempts or if a timeout occurs.
|
|
14
|
-
* @param action An asynchronous function that represents the operation to be executed with resilience features. This function should return a Promise that resolves with the result of the operation or rejects with an error if the operation fails.
|
|
15
|
-
* @param signal An optional AbortSignal that can be used to cancel the operation.
|
|
16
|
-
* @returns A Promise that resolves with the result of the operation if it succeeds within the allowed retry attempts and timeouts, or rejects with an error if it fails after exhausting all retry attempts or if a timeout occurs.
|
|
17
|
-
|
|
18
|
-
*
|
|
19
|
-
* @author Xeno
|
|
20
|
-
* @version 1.0.0
|
|
21
|
-
* @since 2025-09-30
|
|
22
|
-
* @link https://github.com/xeno-js/xeno-js
|
|
23
|
-
*/
|
|
24
|
-
execute<T>(action: () => Promise<T>, signal: Optional<AbortSignal>): Promise<T>;
|
|
25
|
-
}
|
|
26
|
-
//# sourceMappingURL=iresilience-service.contracts.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"iresilience-service.contracts.d.ts","sourceRoot":"","sources":["../../../../../src/domain/contracts/services/resiliences/iresilience-service.contracts.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAA;AAExC;;;;;;;;KAQK;AACL,MAAM,WAAW,kBAAkB;IACjC;;;;;;;;;;;OAWG;IACH,OAAO,CAAC,CAAC,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,QAAQ,CAAC,WAAW,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,CAAA;CAChF"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"iresilience-service.contracts.js","sourceRoot":"","sources":["../../../../../src/domain/contracts/services/resiliences/iresilience-service.contracts.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/domain/contracts/services/validators/index.ts"],"names":[],"mappings":"AAAA,mBAAmB,gCAAgC,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/domain/contracts/services/validators/index.ts"],"names":[],"mappings":""}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import type { ResultType } from '../../../results/result.types';
|
|
2
|
-
/**
|
|
3
|
-
* @description Interface for a validation service that provides methods to check for the existence of validation schemas and to validate data against those schemas. The IValidatorService interface defines two methods: hasSchema, which checks if a validation schema exists for a given key, and validate, which validates data against a specified schema key and returns a ResultType indicating the success or failure of the validation process. This interface can be implemented by various validation services that utilize different schema validation libraries or custom validation logic to ensure that incoming data meets the required criteria before being processed further in the application.
|
|
4
|
-
|
|
5
|
-
*
|
|
6
|
-
* @author Xeno
|
|
7
|
-
* @version 1.0.0
|
|
8
|
-
* @since 2025-09-30
|
|
9
|
-
* @link https://github.com/xeno-js/xeno-js
|
|
10
|
-
*/
|
|
11
|
-
export interface IValidatorService {
|
|
12
|
-
/**
|
|
13
|
-
* @description Validates the provided data against the validation schema associated with the specified key. This method performs the actual validation logic, checking if the data conforms to the rules defined in the corresponding schema. It returns a ResultType indicating whether the validation was successful or if it failed, along with any relevant error information if the validation did not pass.
|
|
14
|
-
* @param key The key representing the type of data or request for which the validation is being performed. This key is used to identify the appropriate validation schema to apply to the data.
|
|
15
|
-
* @param data The data to be validated against the schema. This can be any type of data that needs to be checked for conformity with the validation rules defined in the schema.
|
|
16
|
-
* @returns A ResultType indicating the outcome of the validation. If the validation is successful, it returns a ResultType with a value of true; if the validation fails, it returns a ResultType with a value of false and includes error information.
|
|
17
|
-
|
|
18
|
-
*
|
|
19
|
-
* @author Xeno
|
|
20
|
-
* @version 1.0.0
|
|
21
|
-
* @since 2025-09-30
|
|
22
|
-
* @link https://github.com/xeno-js/xeno-js
|
|
23
|
-
*/
|
|
24
|
-
validate<T>(key: string, data: T): Promise<ResultType<boolean>>;
|
|
25
|
-
/**
|
|
26
|
-
* @description Adds a new validation schema to the service's registry, associating it with the specified key. This method allows for dynamically registering validation schemas that can be used later for validating incoming data. The schema must conform to the expected structure defined by the validation library being used (e.g., Zod schemas). By adding schemas to the service, it enables the application to perform validation checks against those schemas when processing requests or data that require validation.
|
|
27
|
-
* @param key The key representing the type of data or request for which the validation schema is being added. This key is used to identify the schema when performing validation checks.
|
|
28
|
-
* @param schema The validation schema to be added, which defines the rules and structure that incoming data must conform to in order to pass validation. The specific type of the schema will depend on the validation library being used (e.g., ZodType for Zod schemas).
|
|
29
|
-
|
|
30
|
-
*
|
|
31
|
-
* @author Xeno
|
|
32
|
-
* @version 1.0.0
|
|
33
|
-
* @since 2025-09-30
|
|
34
|
-
* @link https://github.com/xeno-js/xeno-js
|
|
35
|
-
*/
|
|
36
|
-
addSchema(key: string, schema: unknown): void;
|
|
37
|
-
}
|
|
38
|
-
//# sourceMappingURL=ivalidator-service.contracts.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ivalidator-service.contracts.d.ts","sourceRoot":"","sources":["../../../../../src/domain/contracts/services/validators/ivalidator-service.contracts.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAA;AAE/D;;;;;;;;KAQK;AACL,MAAM,WAAW,iBAAiB;IAChC;;;;;;;;;;;OAWG;IACH,QAAQ,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,GAAG,OAAO,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,CAAA;IAE/D;;;;;;;;;;OAUG;IACH,SAAS,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,GAAG,IAAI,CAAA;CAC9C"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ivalidator-service.contracts.js","sourceRoot":"","sources":["../../../../../src/domain/contracts/services/validators/ivalidator-service.contracts.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/domain/contracts/specifications/index.ts"],"names":[],"mappings":"AAAA,mBAAmB,4BAA4B,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/domain/contracts/specifications/index.ts"],"names":[],"mappings":""}
|