@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,58 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Interfaccia che definisce il contratto per una specifica di dominio.
|
|
3
|
-
* Una specifica permette di verificare se un oggetto (candidato)
|
|
4
|
-
* soddisfa determinati criteri di business.
|
|
5
|
-
*
|
|
6
|
-
* @template T - Il tipo dell'oggetto da convalidare.
|
|
7
|
-
|
|
8
|
-
*
|
|
9
|
-
* @author Xeno
|
|
10
|
-
* @version 1.0.0
|
|
11
|
-
* @since 2025-09-30
|
|
12
|
-
* @link https://github.com/xeno-js/xeno-js
|
|
13
|
-
*/
|
|
14
|
-
export interface ISpecification<T> {
|
|
15
|
-
/**
|
|
16
|
-
* Verifica se il candidato soddisfa i criteri della specifica.
|
|
17
|
-
* @param candidate - L'oggetto da testare.
|
|
18
|
-
* @returns Booleano: true se i criteri sono soddisfatti.
|
|
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
|
-
isSatisfiedBy(candidate: T): boolean;
|
|
27
|
-
/**
|
|
28
|
-
* Combina questa specifica con un'altra tramite l'operatore logico AND.
|
|
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
|
-
and(other: ISpecification<T>): ISpecification<T>;
|
|
37
|
-
/**
|
|
38
|
-
* Combina questa specifica con un'altra tramite l'operatore logico OR.
|
|
39
|
-
|
|
40
|
-
*
|
|
41
|
-
* @author Xeno
|
|
42
|
-
* @version 1.0.0
|
|
43
|
-
* @since 2025-09-30
|
|
44
|
-
* @link https://github.com/xeno-js/xeno-js
|
|
45
|
-
*/
|
|
46
|
-
or(other: ISpecification<T>): ISpecification<T>;
|
|
47
|
-
/**
|
|
48
|
-
* Inverte il risultato di questa specifica tramite l'operatore logico NOT.
|
|
49
|
-
|
|
50
|
-
*
|
|
51
|
-
* @author Xeno
|
|
52
|
-
* @version 1.0.0
|
|
53
|
-
* @since 2025-09-30
|
|
54
|
-
* @link https://github.com/xeno-js/xeno-js
|
|
55
|
-
*/
|
|
56
|
-
not(): ISpecification<T>;
|
|
57
|
-
}
|
|
58
|
-
//# sourceMappingURL=ispecification.contracts.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ispecification.contracts.d.ts","sourceRoot":"","sources":["../../../../src/domain/contracts/specifications/ispecification.contracts.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;KAYK;AACL,MAAM,WAAW,cAAc,CAAC,CAAC;IAC/B;;;;;;;;;;OAUG;IACH,aAAa,CAAC,SAAS,EAAE,CAAC,GAAG,OAAO,CAAA;IACpC;;;;;;;;OAQG;IACH,GAAG,CAAC,KAAK,EAAE,cAAc,CAAC,CAAC,CAAC,GAAG,cAAc,CAAC,CAAC,CAAC,CAAA;IAEhD;;;;;;;;OAQG;IACH,EAAE,CAAC,KAAK,EAAE,cAAc,CAAC,CAAC,CAAC,GAAG,cAAc,CAAC,CAAC,CAAC,CAAA;IAE/C;;;;;;;;OAQG;IACH,GAAG,IAAI,cAAc,CAAC,CAAC,CAAC,CAAA;CACzB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ispecification.contracts.js","sourceRoot":"","sources":["../../../../src/domain/contracts/specifications/ispecification.contracts.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/domain/contracts/storage/index.ts"],"names":[],"mappings":"AAAA,mBAAmB,sBAAsB,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/domain/contracts/storage/index.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"istorage.contracts.d.ts","sourceRoot":"","sources":["../../../../src/domain/contracts/storage/istorage.contracts.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,QAAQ;IACvB,OAAO,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,MAAM,GAAG,IAAI,CAAA;IACvC,OAAO,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IAC7C,UAAU,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAA;CAClC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"istorage.contracts.js","sourceRoot":"","sources":["../../../../src/domain/contracts/storage/istorage.contracts.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/domain/contracts/strategies/index.ts"],"names":[],"mappings":"AAAA,mBAAmB,uBAAuB,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/domain/contracts/strategies/index.ts"],"names":[],"mappings":""}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import type { ResultType } from '../../results/result.types';
|
|
2
|
-
/**
|
|
3
|
-
* @description Interface that defines the contract for a strategy used in the authorization pipeline. Each strategy must implement the isApplicable method to determine if it should be applied to a given request, and the execute method to perform the necessary authorization checks. The execute method returns a ResultType indicating whether the authorization was successful or if it failed, allowing the pipeline to handle the outcome accordingly.
|
|
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 IStrategy<TInput, TResult = void> {
|
|
12
|
-
/**
|
|
13
|
-
* @description Executes the strategy's logic for the given context. This method is called by the authorization pipeline when a strategy is deemed applicable. The implementation of this method should perform the necessary checks to determine if the request is authorized, and return a ResultType indicating the outcome of the authorization process. The ResultType should indicate success if the authorization checks pass, or contain an error if the checks fail, allowing the pipeline to handle the result accordingly.
|
|
14
|
-
* @param context - The context for which the strategy should be executed, which can be of any type depending on the specific implementation of the strategy. This could include the request object, user information, or any other relevant data needed to perform the authorization checks.
|
|
15
|
-
* @returns A Promise that resolves to a ResultType indicating the outcome of the strategy's execution. The ResultType should indicate success if the authorization checks pass, or contain an error if the checks fail, allowing the pipeline to handle the result accordingly.
|
|
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
|
-
execute(context: TInput): Promise<ResultType<TResult>>;
|
|
24
|
-
}
|
|
25
|
-
//# sourceMappingURL=istrategy.contracts.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"istrategy.contracts.d.ts","sourceRoot":"","sources":["../../../../src/domain/contracts/strategies/istrategy.contracts.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAA;AAE5D;;;;;;;;KAQK;AACL,MAAM,WAAW,SAAS,CAAC,MAAM,EAAE,OAAO,GAAG,IAAI;IAC/C;;;;;;;;;;OAUG;IACH,OAAO,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,CAAA;CACvD"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"istrategy.contracts.js","sourceRoot":"","sources":["../../../../src/domain/contracts/strategies/istrategy.contracts.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/domain/contracts/transaction/index.ts"],"names":[],"mappings":"AAAA,mBAAmB,4BAA4B,CAAA;AAC/C,mBAAmB,uBAAuB,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/domain/contracts/transaction/index.ts"],"names":[],"mappings":""}
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import type { Maybe } from '../../../shared';
|
|
2
|
-
/**
|
|
3
|
-
* @file itransaction-state.types.ts
|
|
4
|
-
* @description This file contains the definition of the ITransactionState interface.
|
|
5
|
-
* @version 1.0.0
|
|
6
|
-
* @author Xeno
|
|
7
|
-
* @since 2025-09-30
|
|
8
|
-
* @link
|
|
9
|
-
*/
|
|
10
|
-
/**
|
|
11
|
-
* @interface ITransactionState
|
|
12
|
-
* @template TTx - The type of the transaction state.
|
|
13
|
-
* @description Represents the state of a transaction, which can be either a specific transaction type or null.
|
|
14
|
-
*
|
|
15
|
-
* @property {Maybe<TTx>} state - The current state of the transaction.
|
|
16
|
-
*
|
|
17
|
-
* @author Xeno
|
|
18
|
-
* @version 1.0.0
|
|
19
|
-
* @since 2025-09-30
|
|
20
|
-
* @link
|
|
21
|
-
*/
|
|
22
|
-
export interface ITransactionState<TTx = unknown> {
|
|
23
|
-
/**
|
|
24
|
-
* Gets the current state of the transaction, which can be either a specific transaction type or null.
|
|
25
|
-
*
|
|
26
|
-
* @author Xeno
|
|
27
|
-
* @version 1.0.0
|
|
28
|
-
* @since 2025-09-30
|
|
29
|
-
* @link https://github.com/xeno-js/xeno-js
|
|
30
|
-
*/
|
|
31
|
-
get state(): Maybe<TTx>;
|
|
32
|
-
/**
|
|
33
|
-
* Sets the current state of the transaction, which can be either a specific transaction type or null.
|
|
34
|
-
*
|
|
35
|
-
* @param value - The new state of the transaction.
|
|
36
|
-
*
|
|
37
|
-
* @author Xeno
|
|
38
|
-
* @version 1.0.0
|
|
39
|
-
* @since 2025-09-30
|
|
40
|
-
* @link https://github.com/xeno-js/xeno-js
|
|
41
|
-
*/
|
|
42
|
-
set state(value: Maybe<TTx>);
|
|
43
|
-
}
|
|
44
|
-
//# sourceMappingURL=itransaction-state.types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"itransaction-state.types.d.ts","sourceRoot":"","sources":["../../../../src/domain/contracts/transaction/itransaction-state.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,UAAU,CAAA;AAErC;;;;;;;GAOG;AAEH;;;;;;;;;;;GAWG;AACH,MAAM,WAAW,iBAAiB,CAAC,GAAG,GAAG,OAAO;IAC9C;;;;;;;OAOG;IACH,IAAI,KAAK,IAAI,KAAK,CAAC,GAAG,CAAC,CAAA;IAEvB;;;;;;;;;OASG;IACH,IAAI,KAAK,CAAC,KAAK,EAAE,KAAK,CAAC,GAAG,CAAC,EAAC;CAC7B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"itransaction-state.types.js","sourceRoot":"","sources":["../../../../src/domain/contracts/transaction/itransaction-state.types.ts"],"names":[],"mappings":""}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import type { Optional } from '../../../shared';
|
|
2
|
-
/**
|
|
3
|
-
* @file unit-of-work.types.ts
|
|
4
|
-
* @description This file contains the interface for the Unit of Work pattern.
|
|
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 IUnitOfWork {
|
|
12
|
-
/**
|
|
13
|
-
* Executes a callback function within a transaction.
|
|
14
|
-
* @param callback The callback function to execute.
|
|
15
|
-
* @param signal An optional AbortSignal to cancel the transaction.
|
|
16
|
-
* @returns A promise that resolves with the result of the callback function.
|
|
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
|
-
runInTransaction<T>(callback: () => Promise<T>, signal: Optional<AbortSignal>): Promise<T>;
|
|
24
|
-
}
|
|
25
|
-
//# sourceMappingURL=iunit-of-work.types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"iunit-of-work.types.d.ts","sourceRoot":"","sources":["../../../../src/domain/contracts/transaction/iunit-of-work.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAA;AAExC;;;;;;;;GAQG;AACH,MAAM,WAAW,WAAW;IAC1B;;;;;;;;;;OAUG;IACH,gBAAgB,CAAC,CAAC,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,QAAQ,CAAC,WAAW,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,CAAA;CAC3F"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"iunit-of-work.types.js","sourceRoot":"","sources":["../../../../src/domain/contracts/transaction/iunit-of-work.types.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"entity.test.d.ts","sourceRoot":"","sources":["../../../../src/domain/entities/__tests__/entity.test.ts"],"names":[],"mappings":""}
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import { describe, expect, it } from 'vitest';
|
|
2
|
-
import { UniqueId } from '../../../domain';
|
|
3
|
-
import { GuidHelper } from '../../../shared';
|
|
4
|
-
import { Entity } from '../entity';
|
|
5
|
-
class SampleEntity extends Entity {
|
|
6
|
-
constructor(props, id) {
|
|
7
|
-
super(props, id);
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
describe('Entity', () => {
|
|
11
|
-
it('creates a new UniqueId when no id is provided', () => {
|
|
12
|
-
const props = { name: 'alice', tags: ['admin'] };
|
|
13
|
-
const entity = new SampleEntity(props);
|
|
14
|
-
expect(entity.id).toBeInstanceOf(UniqueId);
|
|
15
|
-
expect(entity.getProps()).toEqual(props);
|
|
16
|
-
});
|
|
17
|
-
it('uses the provided UniqueId when it is valid', () => {
|
|
18
|
-
const props = { name: 'bob', tags: ['user'] };
|
|
19
|
-
const id = GuidHelper.generate();
|
|
20
|
-
const entity = new SampleEntity(props, id);
|
|
21
|
-
expect(entity.id.getValue()).toBe(id);
|
|
22
|
-
expect(entity.getProps()).toEqual(props);
|
|
23
|
-
});
|
|
24
|
-
it('throws when an invalid UniqueId is provided', () => {
|
|
25
|
-
const props = { name: 'carol', tags: [] };
|
|
26
|
-
const invalidId = 'not-a-guid';
|
|
27
|
-
expect(() => new SampleEntity(props, invalidId)).toThrow(`Invalid UniqueId provided: ${invalidId}.`);
|
|
28
|
-
});
|
|
29
|
-
it('getProps returns the properties of the entity', () => {
|
|
30
|
-
const props = { name: 'dave', tags: ['editor'] };
|
|
31
|
-
const entity = new SampleEntity(props);
|
|
32
|
-
expect(entity.getProps()).toEqual(props);
|
|
33
|
-
});
|
|
34
|
-
it('properties are immutable', () => {
|
|
35
|
-
const props = { name: 'eve', tags: ['viewer'] };
|
|
36
|
-
const entity = new SampleEntity(props);
|
|
37
|
-
const retrievedProps = entity.getProps();
|
|
38
|
-
retrievedProps.name = 'mallory';
|
|
39
|
-
retrievedProps.tags.push('hacker');
|
|
40
|
-
expect(entity.getProps()).toEqual(props);
|
|
41
|
-
});
|
|
42
|
-
it('entity instance is frozen', () => {
|
|
43
|
-
const props = { name: 'frank', tags: ['contributor'] };
|
|
44
|
-
const entity = new SampleEntity(props);
|
|
45
|
-
expect(Object.isFrozen(entity)).toBe(true);
|
|
46
|
-
});
|
|
47
|
-
it('getId returns the UniqueId of the entity', () => {
|
|
48
|
-
const props = { name: 'grace', tags: ['moderator'] };
|
|
49
|
-
const entity = new SampleEntity(props);
|
|
50
|
-
expect(entity.getId()).toBe(entity.id);
|
|
51
|
-
});
|
|
52
|
-
});
|
|
53
|
-
//# sourceMappingURL=entity.test.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"entity.test.js","sourceRoot":"","sources":["../../../../src/domain/entities/__tests__/entity.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,QAAQ,CAAA;AAE7C,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAA;AACnC,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAA;AAErC,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAA;AAOlC,MAAM,YAAa,SAAQ,MAAmB;IAC5C,YAAY,KAAkB,EAAE,EAAW;QACzC,KAAK,CAAC,KAAK,EAAE,EAAE,CAAC,CAAA;IAClB,CAAC;CACF;AAED,QAAQ,CAAC,QAAQ,EAAE,GAAG,EAAE;IACtB,EAAE,CAAC,+CAA+C,EAAE,GAAG,EAAE;QACvD,MAAM,KAAK,GAAgB,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,OAAO,CAAC,EAAE,CAAA;QAE7D,MAAM,MAAM,GAAG,IAAI,YAAY,CAAC,KAAK,CAAC,CAAA;QAEtC,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,cAAc,CAAC,QAAQ,CAAC,CAAA;QAC1C,MAAM,CAAC,MAAM,CAAC,QAAQ,EAAE,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;IAC1C,CAAC,CAAC,CAAA;IAEF,EAAE,CAAC,6CAA6C,EAAE,GAAG,EAAE;QACrD,MAAM,KAAK,GAAgB,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,MAAM,CAAC,EAAE,CAAA;QAC1D,MAAM,EAAE,GAAG,UAAU,CAAC,QAAQ,EAAE,CAAA;QAEhC,MAAM,MAAM,GAAG,IAAI,YAAY,CAAC,KAAK,EAAE,EAAE,CAAC,CAAA;QAE1C,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,QAAQ,EAAE,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;QACrC,MAAM,CAAC,MAAM,CAAC,QAAQ,EAAE,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;IAC1C,CAAC,CAAC,CAAA;IAEF,EAAE,CAAC,6CAA6C,EAAE,GAAG,EAAE;QACrD,MAAM,KAAK,GAAgB,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE,EAAE,CAAA;QACtD,MAAM,SAAS,GAAG,YAAY,CAAA;QAE9B,MAAM,CAAC,GAAG,EAAE,CAAC,IAAI,YAAY,CAAC,KAAK,EAAE,SAAS,CAAC,CAAC,CAAC,OAAO,CACtD,8BAA8B,SAAS,GAAG,CAC3C,CAAA;IACH,CAAC,CAAC,CAAA;IAEF,EAAE,CAAC,+CAA+C,EAAE,GAAG,EAAE;QACvD,MAAM,KAAK,GAAgB,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,QAAQ,CAAC,EAAE,CAAA;QAC7D,MAAM,MAAM,GAAG,IAAI,YAAY,CAAC,KAAK,CAAC,CAAA;QAEtC,MAAM,CAAC,MAAM,CAAC,QAAQ,EAAE,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;IAC1C,CAAC,CAAC,CAAA;IAEF,EAAE,CAAC,0BAA0B,EAAE,GAAG,EAAE;QAClC,MAAM,KAAK,GAAgB,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,QAAQ,CAAC,EAAE,CAAA;QAC5D,MAAM,MAAM,GAAG,IAAI,YAAY,CAAC,KAAK,CAAC,CAAA;QAEtC,MAAM,cAAc,GAAG,MAAM,CAAC,QAAQ,EAAE,CAAA;QACxC,cAAc,CAAC,IAAI,GAAG,SAAS,CAAA;QAC/B,cAAc,CAAC,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAA;QAElC,MAAM,CAAC,MAAM,CAAC,QAAQ,EAAE,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;IAC1C,CAAC,CAAC,CAAA;IAEF,EAAE,CAAC,2BAA2B,EAAE,GAAG,EAAE;QACnC,MAAM,KAAK,GAAgB,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,aAAa,CAAC,EAAE,CAAA;QACnE,MAAM,MAAM,GAAG,IAAI,YAAY,CAAC,KAAK,CAAC,CAAA;QAEtC,MAAM,CAAC,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;IAC5C,CAAC,CAAC,CAAA;IAEF,EAAE,CAAC,0CAA0C,EAAE,GAAG,EAAE;QAClD,MAAM,KAAK,GAAgB,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,WAAW,CAAC,EAAE,CAAA;QACjE,MAAM,MAAM,GAAG,IAAI,YAAY,CAAC,KAAK,CAAC,CAAA;QAEtC,MAAM,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE,CAAC,CAAA;IACxC,CAAC,CAAC,CAAA;AACJ,CAAC,CAAC,CAAA"}
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import type { Optional } from '../../shared';
|
|
2
|
-
import { UniqueId } from '../unique_id/unique-id';
|
|
3
|
-
import type { IEntity } from './ientity.contracts';
|
|
4
|
-
/**
|
|
5
|
-
* A base class representing a generic entity in the domain. An entity is an object that has a unique identity and is defined by its properties.
|
|
6
|
-
*
|
|
7
|
-
* @template T - The type of the properties of the entity.
|
|
8
|
-
|
|
9
|
-
*
|
|
10
|
-
* @author Xeno
|
|
11
|
-
* @version 1.0.0
|
|
12
|
-
* @since 2025-09-30
|
|
13
|
-
* @link https://github.com/xeno-js/xeno-js
|
|
14
|
-
*/
|
|
15
|
-
export declare abstract class Entity<T> implements IEntity<T> {
|
|
16
|
-
readonly id: UniqueId;
|
|
17
|
-
/**
|
|
18
|
-
* The properties of the entity. This is a private property that holds the state of the entity. It should be accessed and modified through methods defined in the concrete entity classes to ensure encapsulation and maintain invariants.
|
|
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
|
-
private readonly props;
|
|
27
|
-
/**
|
|
28
|
-
* Protected constructor to prevent direct instantiation. Concrete entity classes should extend this base class and call this constructor with the appropriate properties and an optional unique identifier.
|
|
29
|
-
*
|
|
30
|
-
* @param props - The properties of the entity.
|
|
31
|
-
* @param id - An optional unique identifier for the entity. If not provided, a new UniqueId will be generated.
|
|
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
|
-
protected constructor(props: T, id?: Optional<string>);
|
|
40
|
-
getProps(): T;
|
|
41
|
-
getId(): UniqueId;
|
|
42
|
-
}
|
|
43
|
-
//# sourceMappingURL=entity.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"entity.d.ts","sourceRoot":"","sources":["../../../src/domain/entities/entity.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAA;AAGxC,OAAO,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAA;AACjD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA;AAClD;;;;;;;;;;KAUK;AACL,8BAAsB,MAAM,CAAC,CAAC,CAAE,YAAW,OAAO,CAAC,CAAC,CAAC;IACnD,SAAgB,EAAE,EAAE,QAAQ,CAAA;IAE5B;;;;;;;;OAQG;IACH,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAG;IAEzB;;;;;;;;;;;OAWG;IACH,SAAS,aAAa,KAAK,EAAE,CAAC,EAAE,EAAE,GAAE,QAAQ,CAAC,MAAM,CAAa;IAUzD,QAAQ,IAAI,CAAC;IAIb,KAAK,IAAI,QAAQ;CAGzB"}
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import { Guards, GuidHelper } from '../../shared';
|
|
2
|
-
import { UniqueId } from '../unique_id/unique-id';
|
|
3
|
-
/**
|
|
4
|
-
* A base class representing a generic entity in the domain. An entity is an object that has a unique identity and is defined by its properties.
|
|
5
|
-
*
|
|
6
|
-
* @template T - The type of the properties of the entity.
|
|
7
|
-
|
|
8
|
-
*
|
|
9
|
-
* @author Xeno
|
|
10
|
-
* @version 1.0.0
|
|
11
|
-
* @since 2025-09-30
|
|
12
|
-
* @link https://github.com/xeno-js/xeno-js
|
|
13
|
-
*/
|
|
14
|
-
export class Entity {
|
|
15
|
-
id;
|
|
16
|
-
/**
|
|
17
|
-
* The properties of the entity. This is a private property that holds the state of the entity. It should be accessed and modified through methods defined in the concrete entity classes to ensure encapsulation and maintain invariants.
|
|
18
|
-
|
|
19
|
-
*
|
|
20
|
-
* @author Xeno
|
|
21
|
-
* @version 1.0.0
|
|
22
|
-
* @since 2025-09-30
|
|
23
|
-
* @link https://github.com/xeno-js/xeno-js
|
|
24
|
-
*/
|
|
25
|
-
props;
|
|
26
|
-
/**
|
|
27
|
-
* Protected constructor to prevent direct instantiation. Concrete entity classes should extend this base class and call this constructor with the appropriate properties and an optional unique identifier.
|
|
28
|
-
*
|
|
29
|
-
* @param props - The properties of the entity.
|
|
30
|
-
* @param id - An optional unique identifier for the entity. If not provided, a new UniqueId will be generated.
|
|
31
|
-
|
|
32
|
-
*
|
|
33
|
-
* @author Xeno
|
|
34
|
-
* @version 1.0.0
|
|
35
|
-
* @since 2025-09-30
|
|
36
|
-
* @link https://github.com/xeno-js/xeno-js
|
|
37
|
-
*/
|
|
38
|
-
constructor(props, id = undefined) {
|
|
39
|
-
if (Guards.isNullOrEmpty(id) || GuidHelper.isValid(id)) {
|
|
40
|
-
this.id = UniqueId.create(id);
|
|
41
|
-
}
|
|
42
|
-
else {
|
|
43
|
-
throw new Error(`Invalid UniqueId provided: ${id}.`);
|
|
44
|
-
}
|
|
45
|
-
this.props = Object.freeze({ ...props });
|
|
46
|
-
Object.freeze(this);
|
|
47
|
-
}
|
|
48
|
-
getProps() {
|
|
49
|
-
return structuredClone(this.props);
|
|
50
|
-
}
|
|
51
|
-
getId() {
|
|
52
|
-
return this.id;
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
//# sourceMappingURL=entity.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"entity.js","sourceRoot":"","sources":["../../../src/domain/entities/entity.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,UAAU,CAAA;AAE7C,OAAO,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAA;AAEjD;;;;;;;;;;KAUK;AACL,MAAM,OAAgB,MAAM;IACV,EAAE,CAAU;IAE5B;;;;;;;;OAQG;IACc,KAAK,CAAG;IAEzB;;;;;;;;;;;OAWG;IACH,YAAsB,KAAQ,EAAE,KAAuB,SAAS;QAC9D,IAAI,MAAM,CAAC,aAAa,CAAC,EAAE,CAAC,IAAI,UAAU,CAAC,OAAO,CAAC,EAAE,CAAC,EAAE,CAAC;YACvD,IAAI,CAAC,EAAE,GAAG,QAAQ,CAAC,MAAM,CAAC,EAAE,CAAC,CAAA;QAC/B,CAAC;aAAM,CAAC;YACN,MAAM,IAAI,KAAK,CAAC,8BAA8B,EAAE,GAAG,CAAC,CAAA;QACtD,CAAC;QACD,IAAI,CAAC,KAAK,GAAG,MAAM,CAAC,MAAM,CAAC,EAAE,GAAG,KAAK,EAAE,CAAC,CAAA;QACxC,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAA;IACrB,CAAC;IAEM,QAAQ;QACb,OAAO,eAAe,CAAC,IAAI,CAAC,KAAK,CAAC,CAAA;IACpC,CAAC;IAEM,KAAK;QACV,OAAO,IAAI,CAAC,EAAE,CAAA;IAChB,CAAC;CACF"}
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import type { UniqueId } from '../unique_id/unique-id';
|
|
2
|
-
/**
|
|
3
|
-
* An interface representing a generic entity in the domain. An entity is an object that has a unique identity and is defined by its properties.
|
|
4
|
-
*
|
|
5
|
-
* @template T - The type of the properties of the entity.
|
|
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 IEntity<T> {
|
|
14
|
-
/**
|
|
15
|
-
* The unique identifier of the entity. This is a read-only property that should be assigned when the entity is created and should not change throughout the lifecycle of the entity.
|
|
16
|
-
* @see UniqueId for more details on the unique identifier.
|
|
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
|
-
readonly id: UniqueId;
|
|
25
|
-
/** Retrieves the properties of the entity.
|
|
26
|
-
*
|
|
27
|
-
* @returns The properties of the entity.
|
|
28
|
-
* @throws An error if the entity is in an invalid state or if the properties cannot be retrieved.
|
|
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
|
-
getProps(): T;
|
|
37
|
-
/** Retrieves the unique identifier of the entity.
|
|
38
|
-
*
|
|
39
|
-
* @returns The unique identifier of the entity.
|
|
40
|
-
*/
|
|
41
|
-
getId(): UniqueId;
|
|
42
|
-
}
|
|
43
|
-
//# sourceMappingURL=ientity.contracts.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ientity.contracts.d.ts","sourceRoot":"","sources":["../../../src/domain/entities/ientity.contracts.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAA;AAEtD;;;;;;;;;;KAUK;AACL,MAAM,WAAW,OAAO,CAAC,CAAC;IACxB;;;;;;;;;OASG;IACH,QAAQ,CAAC,EAAE,EAAE,QAAQ,CAAA;IAErB;;;;;;;;;;OAUG;IACH,QAAQ,IAAI,CAAC,CAAA;IAEb;;;OAGG;IACH,KAAK,IAAI,QAAQ,CAAA;CAClB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ientity.contracts.js","sourceRoot":"","sources":["../../../src/domain/entities/ientity.contracts.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/domain/entities/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA;AACxB,mBAAmB,qBAAqB,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/domain/entities/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"app-error.test.d.ts","sourceRoot":"","sources":["../../../../src/domain/errors/__tests__/app-error.test.ts"],"names":[],"mappings":""}
|
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
import { describe, expect, it } from 'vitest';
|
|
2
|
-
import { AppError } from '../app-error';
|
|
3
|
-
describe('AppError', () => {
|
|
4
|
-
it('creates an AppError with the provided message, code, status, name, and cause', () => {
|
|
5
|
-
const error = AppError.create({
|
|
6
|
-
message: 'Something went wrong',
|
|
7
|
-
code: 'ERROR_CODE',
|
|
8
|
-
status: 400,
|
|
9
|
-
name: 'TestError',
|
|
10
|
-
cause: new Error('Underlying error'),
|
|
11
|
-
});
|
|
12
|
-
expect(error).toBeInstanceOf(AppError);
|
|
13
|
-
expect(error.name).toBe('TestError');
|
|
14
|
-
expect(error.message).toBe('Something went wrong');
|
|
15
|
-
expect(error.code).toBe('ERROR_CODE');
|
|
16
|
-
expect(error.status).toBe(400);
|
|
17
|
-
expect(error.cause).toBeInstanceOf(Error);
|
|
18
|
-
});
|
|
19
|
-
it('supports undefined as a valid cause', () => {
|
|
20
|
-
const error = AppError.create({
|
|
21
|
-
message: 'Failed to process request',
|
|
22
|
-
code: 'PROCESSING_ERROR',
|
|
23
|
-
status: 500,
|
|
24
|
-
name: 'TestError',
|
|
25
|
-
cause: undefined,
|
|
26
|
-
});
|
|
27
|
-
expect(error.cause).toBeUndefined();
|
|
28
|
-
});
|
|
29
|
-
it('supports null as a valid cause', () => {
|
|
30
|
-
const error = AppError.create({
|
|
31
|
-
message: 'Failed to process request',
|
|
32
|
-
code: 'PROCESSING_ERROR',
|
|
33
|
-
status: 500,
|
|
34
|
-
name: 'TestError',
|
|
35
|
-
cause: null,
|
|
36
|
-
});
|
|
37
|
-
expect(error.cause).toBeNull();
|
|
38
|
-
});
|
|
39
|
-
it('throws an AppError when using the throw method', () => {
|
|
40
|
-
expect(() => AppError.throw({
|
|
41
|
-
message: 'Unauthorized access',
|
|
42
|
-
code: 'UNAUTHORIZED',
|
|
43
|
-
status: 401,
|
|
44
|
-
name: 'TestError',
|
|
45
|
-
cause: new Error('Invalid credentials'),
|
|
46
|
-
})).toThrowError(AppError);
|
|
47
|
-
});
|
|
48
|
-
it('creates an aborted AppError with the correct properties', () => {
|
|
49
|
-
const error = AppError.aborted('TestContext');
|
|
50
|
-
expect(error).toBeInstanceOf(AppError);
|
|
51
|
-
expect(error.name).toBe('TestContext');
|
|
52
|
-
expect(error.message).toBe('errors.aborted');
|
|
53
|
-
expect(error.code).toBe('ABORTED');
|
|
54
|
-
expect(error.status).toBe(499);
|
|
55
|
-
expect(error.cause).toBeInstanceOf(Error);
|
|
56
|
-
expect(error.cause).toEqual(new Error('The client closed the connection before the server finished responding.'));
|
|
57
|
-
});
|
|
58
|
-
it('throws an AppError when signal is aborted', () => {
|
|
59
|
-
const abortController = new AbortController();
|
|
60
|
-
abortController.abort();
|
|
61
|
-
expect(() => AppError.throwIfAborted(abortController.signal, 'TestContext')).toThrowError(AppError);
|
|
62
|
-
});
|
|
63
|
-
it('does not throw when signal is not aborted', () => {
|
|
64
|
-
const abortController = new AbortController();
|
|
65
|
-
expect(() => AppError.throwIfAborted(abortController.signal, 'TestContext')).not.toThrow();
|
|
66
|
-
});
|
|
67
|
-
it('does not throw when signal is undefined', () => {
|
|
68
|
-
expect(() => AppError.throwIfAborted(undefined, 'TestContext')).not.toThrow();
|
|
69
|
-
});
|
|
70
|
-
it('does not throw when signal is null', () => {
|
|
71
|
-
expect(() => AppError.throwIfAborted(null, 'TestContext')).not.toThrow();
|
|
72
|
-
});
|
|
73
|
-
it('is an instance of the built-in Error class', () => {
|
|
74
|
-
const error = AppError.create({
|
|
75
|
-
message: 'An error occurred',
|
|
76
|
-
code: 'ERROR_CODE',
|
|
77
|
-
status: 500,
|
|
78
|
-
name: 'TestError',
|
|
79
|
-
cause: new Error('Underlying error'),
|
|
80
|
-
});
|
|
81
|
-
expect(error).toBeInstanceOf(Error);
|
|
82
|
-
});
|
|
83
|
-
it('has a stack trace', () => {
|
|
84
|
-
const error = AppError.create({
|
|
85
|
-
message: 'An error occurred',
|
|
86
|
-
code: 'ERROR_CODE',
|
|
87
|
-
status: 500,
|
|
88
|
-
name: 'TestError',
|
|
89
|
-
cause: new Error('Underlying error'),
|
|
90
|
-
});
|
|
91
|
-
expect(error.stack).toBeDefined();
|
|
92
|
-
});
|
|
93
|
-
});
|
|
94
|
-
//# sourceMappingURL=app-error.test.js.map
|