@colveor/core 1.0.0
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/CHANGELOG.md +20 -0
- package/LICENSE +21 -0
- package/README.md +90 -0
- package/dist/bootstrap/bootstrap-colveor-app.d.ts +28 -0
- package/dist/bootstrap/bootstrap-colveor-app.d.ts.map +1 -0
- package/dist/bootstrap/bootstrap-colveor-app.js +238 -0
- package/dist/bootstrap/bootstrap-colveor-app.js.map +1 -0
- package/dist/bootstrap/bootstrap.types.d.ts +152 -0
- package/dist/bootstrap/bootstrap.types.d.ts.map +1 -0
- package/dist/bootstrap/bootstrap.types.js +3 -0
- package/dist/bootstrap/bootstrap.types.js.map +1 -0
- package/dist/bootstrap/index.d.ts +4 -0
- package/dist/bootstrap/index.d.ts.map +1 -0
- package/dist/bootstrap/index.js +24 -0
- package/dist/bootstrap/index.js.map +1 -0
- package/dist/bootstrap/logger.utils.d.ts +3 -0
- package/dist/bootstrap/logger.utils.d.ts.map +1 -0
- package/dist/bootstrap/logger.utils.js +14 -0
- package/dist/bootstrap/logger.utils.js.map +1 -0
- package/dist/bootstrap/metrics-prefix-alias.middleware.d.ts +6 -0
- package/dist/bootstrap/metrics-prefix-alias.middleware.d.ts.map +1 -0
- package/dist/bootstrap/metrics-prefix-alias.middleware.js +16 -0
- package/dist/bootstrap/metrics-prefix-alias.middleware.js.map +1 -0
- package/dist/bootstrap/observability.bootstrap.d.ts +12 -0
- package/dist/bootstrap/observability.bootstrap.d.ts.map +1 -0
- package/dist/bootstrap/observability.bootstrap.js +29 -0
- package/dist/bootstrap/observability.bootstrap.js.map +1 -0
- package/dist/common/base/base.entity.d.ts +16 -0
- package/dist/common/base/base.entity.d.ts.map +1 -0
- package/dist/common/base/base.entity.js +59 -0
- package/dist/common/base/base.entity.js.map +1 -0
- package/dist/common/base/base.repository.d.ts +29 -0
- package/dist/common/base/base.repository.d.ts.map +1 -0
- package/dist/common/base/base.repository.js +65 -0
- package/dist/common/base/base.repository.js.map +1 -0
- package/dist/common/constants/index.d.ts +9 -0
- package/dist/common/constants/index.d.ts.map +1 -0
- package/dist/common/constants/index.js +14 -0
- package/dist/common/constants/index.js.map +1 -0
- package/dist/common/decorators/auth-method-aware.decorator.d.ts +3 -0
- package/dist/common/decorators/auth-method-aware.decorator.d.ts.map +1 -0
- package/dist/common/decorators/auth-method-aware.decorator.js +8 -0
- package/dist/common/decorators/auth-method-aware.decorator.js.map +1 -0
- package/dist/common/decorators/index.d.ts +8 -0
- package/dist/common/decorators/index.d.ts.map +1 -0
- package/dist/common/decorators/index.js +34 -0
- package/dist/common/decorators/index.js.map +1 -0
- package/dist/common/decorators/otp-length-aware.decorator.d.ts +3 -0
- package/dist/common/decorators/otp-length-aware.decorator.d.ts.map +1 -0
- package/dist/common/decorators/otp-length-aware.decorator.js +8 -0
- package/dist/common/decorators/otp-length-aware.decorator.js.map +1 -0
- package/dist/common/decorators/pin-length-aware.decorator.d.ts +3 -0
- package/dist/common/decorators/pin-length-aware.decorator.d.ts.map +1 -0
- package/dist/common/decorators/pin-length-aware.decorator.js +8 -0
- package/dist/common/decorators/pin-length-aware.decorator.js.map +1 -0
- package/dist/common/dto/index.d.ts +2 -0
- package/dist/common/dto/index.d.ts.map +1 -0
- package/dist/common/dto/index.js +18 -0
- package/dist/common/dto/index.js.map +1 -0
- package/dist/common/dto/pagination.dto.d.ts +10 -0
- package/dist/common/dto/pagination.dto.d.ts.map +1 -0
- package/dist/common/dto/pagination.dto.js +47 -0
- package/dist/common/dto/pagination.dto.js.map +1 -0
- package/dist/common/filters/http-exception.filter.d.ts +32 -0
- package/dist/common/filters/http-exception.filter.d.ts.map +1 -0
- package/dist/common/filters/http-exception.filter.js +211 -0
- package/dist/common/filters/http-exception.filter.js.map +1 -0
- package/dist/common/filters/index.d.ts +2 -0
- package/dist/common/filters/index.d.ts.map +1 -0
- package/dist/common/filters/index.js +18 -0
- package/dist/common/filters/index.js.map +1 -0
- package/dist/common/guards/auth.guard.d.ts +11 -0
- package/dist/common/guards/auth.guard.d.ts.map +1 -0
- package/dist/common/guards/auth.guard.js +46 -0
- package/dist/common/guards/auth.guard.js.map +1 -0
- package/dist/common/guards/index.d.ts +8 -0
- package/dist/common/guards/index.d.ts.map +1 -0
- package/dist/common/guards/index.js +24 -0
- package/dist/common/guards/index.js.map +1 -0
- package/dist/common/guards/login-ip-rate-limit.guard.d.ts +18 -0
- package/dist/common/guards/login-ip-rate-limit.guard.d.ts.map +1 -0
- package/dist/common/guards/login-ip-rate-limit.guard.js +77 -0
- package/dist/common/guards/login-ip-rate-limit.guard.js.map +1 -0
- package/dist/common/guards/non-production.guard.d.ts +11 -0
- package/dist/common/guards/non-production.guard.d.ts.map +1 -0
- package/dist/common/guards/non-production.guard.js +37 -0
- package/dist/common/guards/non-production.guard.js.map +1 -0
- package/dist/common/guards/otp-ip-rate-limit.guard.d.ts +20 -0
- package/dist/common/guards/otp-ip-rate-limit.guard.d.ts.map +1 -0
- package/dist/common/guards/otp-ip-rate-limit.guard.js +85 -0
- package/dist/common/guards/otp-ip-rate-limit.guard.js.map +1 -0
- package/dist/common/guards/permissions.guard.d.ts +10 -0
- package/dist/common/guards/permissions.guard.d.ts.map +1 -0
- package/dist/common/guards/permissions.guard.js +49 -0
- package/dist/common/guards/permissions.guard.js.map +1 -0
- package/dist/common/guards/upload-ip-rate-limit.guard.d.ts +13 -0
- package/dist/common/guards/upload-ip-rate-limit.guard.d.ts.map +1 -0
- package/dist/common/guards/upload-ip-rate-limit.guard.js +63 -0
- package/dist/common/guards/upload-ip-rate-limit.guard.js.map +1 -0
- package/dist/common/guards/upload-user-rate-limit.guard.d.ts +13 -0
- package/dist/common/guards/upload-user-rate-limit.guard.d.ts.map +1 -0
- package/dist/common/guards/upload-user-rate-limit.guard.js +62 -0
- package/dist/common/guards/upload-user-rate-limit.guard.js.map +1 -0
- package/dist/common/index.d.ts +13 -0
- package/dist/common/index.d.ts.map +1 -0
- package/dist/common/index.js +34 -0
- package/dist/common/index.js.map +1 -0
- package/dist/common/interceptors/index.d.ts +3 -0
- package/dist/common/interceptors/index.d.ts.map +1 -0
- package/dist/common/interceptors/index.js +19 -0
- package/dist/common/interceptors/index.js.map +1 -0
- package/dist/common/interceptors/logging.interceptor.d.ts +10 -0
- package/dist/common/interceptors/logging.interceptor.d.ts.map +1 -0
- package/dist/common/interceptors/logging.interceptor.js +52 -0
- package/dist/common/interceptors/logging.interceptor.js.map +1 -0
- package/dist/common/interceptors/timeout.interceptor.d.ts +13 -0
- package/dist/common/interceptors/timeout.interceptor.d.ts.map +1 -0
- package/dist/common/interceptors/timeout.interceptor.js +43 -0
- package/dist/common/interceptors/timeout.interceptor.js.map +1 -0
- package/dist/common/interfaces/index.d.ts +2 -0
- package/dist/common/interfaces/index.d.ts.map +1 -0
- package/dist/common/interfaces/index.js +18 -0
- package/dist/common/interfaces/index.js.map +1 -0
- package/dist/common/interfaces/request-user.d.ts +20 -0
- package/dist/common/interfaces/request-user.d.ts.map +1 -0
- package/dist/common/interfaces/request-user.js +3 -0
- package/dist/common/interfaces/request-user.js.map +1 -0
- package/dist/common/interfaces/v.d.ts +20 -0
- package/dist/common/interfaces/v.d.ts.map +1 -0
- package/dist/common/interfaces/v.js +3 -0
- package/dist/common/interfaces/v.js.map +1 -0
- package/dist/common/middlewares/index.d.ts +7 -0
- package/dist/common/middlewares/index.d.ts.map +1 -0
- package/dist/common/middlewares/index.js +25 -0
- package/dist/common/middlewares/index.js.map +1 -0
- package/dist/common/pipes/config-aware-validation.pipe.d.ts +9 -0
- package/dist/common/pipes/config-aware-validation.pipe.d.ts.map +1 -0
- package/dist/common/pipes/config-aware-validation.pipe.js +55 -0
- package/dist/common/pipes/config-aware-validation.pipe.js.map +1 -0
- package/dist/common/pipes/index.d.ts +14 -0
- package/dist/common/pipes/index.d.ts.map +1 -0
- package/dist/common/pipes/index.js +62 -0
- package/dist/common/pipes/index.js.map +1 -0
- package/dist/common/utils/fetch-with-timeout.util.d.ts +11 -0
- package/dist/common/utils/fetch-with-timeout.util.d.ts.map +1 -0
- package/dist/common/utils/fetch-with-timeout.util.js +36 -0
- package/dist/common/utils/fetch-with-timeout.util.js.map +1 -0
- package/dist/common/utils/index.d.ts +18 -0
- package/dist/common/utils/index.d.ts.map +1 -0
- package/dist/common/utils/index.js +57 -0
- package/dist/common/utils/index.js.map +1 -0
- package/dist/common/utils/multer-exception.util.d.ts +6 -0
- package/dist/common/utils/multer-exception.util.d.ts.map +1 -0
- package/dist/common/utils/multer-exception.util.js +31 -0
- package/dist/common/utils/multer-exception.util.js.map +1 -0
- package/dist/common/utils/request.utils.d.ts +19 -0
- package/dist/common/utils/request.utils.d.ts.map +1 -0
- package/dist/common/utils/request.utils.js +27 -0
- package/dist/common/utils/request.utils.js.map +1 -0
- package/dist/common/utils/validation.d.ts +19 -0
- package/dist/common/utils/validation.d.ts.map +1 -0
- package/dist/common/utils/validation.js +36 -0
- package/dist/common/utils/validation.js.map +1 -0
- package/dist/common/validators/is-configured-otp-length.validator.d.ts +10 -0
- package/dist/common/validators/is-configured-otp-length.validator.d.ts.map +1 -0
- package/dist/common/validators/is-configured-otp-length.validator.js +45 -0
- package/dist/common/validators/is-configured-otp-length.validator.js.map +1 -0
- package/dist/common/validators/is-configured-pin-length.validator.d.ts +7 -0
- package/dist/common/validators/is-configured-pin-length.validator.d.ts.map +1 -0
- package/dist/common/validators/is-configured-pin-length.validator.js +43 -0
- package/dist/common/validators/is-configured-pin-length.validator.js.map +1 -0
- package/dist/common/validators/is-exclusive-auth-params.validator.d.ts +8 -0
- package/dist/common/validators/is-exclusive-auth-params.validator.d.ts.map +1 -0
- package/dist/common/validators/is-exclusive-auth-params.validator.js +38 -0
- package/dist/common/validators/is-exclusive-auth-params.validator.js.map +1 -0
- package/dist/common/validators/is-exclusive-delete-confirm-params.validator.d.ts +7 -0
- package/dist/common/validators/is-exclusive-delete-confirm-params.validator.d.ts.map +1 -0
- package/dist/common/validators/is-exclusive-delete-confirm-params.validator.js +37 -0
- package/dist/common/validators/is-exclusive-delete-confirm-params.validator.js.map +1 -0
- package/dist/common/validators/is-immutable-auth-method.validator.d.ts +8 -0
- package/dist/common/validators/is-immutable-auth-method.validator.d.ts.map +1 -0
- package/dist/common/validators/is-immutable-auth-method.validator.js +36 -0
- package/dist/common/validators/is-immutable-auth-method.validator.js.map +1 -0
- package/dist/common/validators/is-otp-verification-code.validator.d.ts +7 -0
- package/dist/common/validators/is-otp-verification-code.validator.d.ts.map +1 -0
- package/dist/common/validators/is-otp-verification-code.validator.js +42 -0
- package/dist/common/validators/is-otp-verification-code.validator.js.map +1 -0
- package/dist/config/app.config.d.ts +102 -0
- package/dist/config/app.config.d.ts.map +1 -0
- package/dist/config/app.config.js +92 -0
- package/dist/config/app.config.js.map +1 -0
- package/dist/config/database.config.d.ts +16 -0
- package/dist/config/database.config.d.ts.map +1 -0
- package/dist/config/database.config.js +14 -0
- package/dist/config/database.config.js.map +1 -0
- package/dist/config/encryption.util.d.ts +10 -0
- package/dist/config/encryption.util.d.ts.map +1 -0
- package/dist/config/encryption.util.js +60 -0
- package/dist/config/encryption.util.js.map +1 -0
- package/dist/config/env-flags.util.d.ts +8 -0
- package/dist/config/env-flags.util.d.ts.map +1 -0
- package/dist/config/env-flags.util.js +19 -0
- package/dist/config/env-flags.util.js.map +1 -0
- package/dist/config/env-preload.util.d.ts +8 -0
- package/dist/config/env-preload.util.d.ts.map +1 -0
- package/dist/config/env-preload.util.js +21 -0
- package/dist/config/env-preload.util.js.map +1 -0
- package/dist/config/env.validation.d.ts +59 -0
- package/dist/config/env.validation.d.ts.map +1 -0
- package/dist/config/env.validation.js +291 -0
- package/dist/config/env.validation.js.map +1 -0
- package/dist/config/firebase.module.d.ts +10 -0
- package/dist/config/firebase.module.d.ts.map +1 -0
- package/dist/config/firebase.module.js +26 -0
- package/dist/config/firebase.module.js.map +1 -0
- package/dist/config/in-memory-redis.client.d.ts +25 -0
- package/dist/config/in-memory-redis.client.d.ts.map +1 -0
- package/dist/config/in-memory-redis.client.js +166 -0
- package/dist/config/in-memory-redis.client.js.map +1 -0
- package/dist/config/index.d.ts +6 -0
- package/dist/config/index.d.ts.map +1 -0
- package/dist/config/index.js +15 -0
- package/dist/config/index.js.map +1 -0
- package/dist/config/keycloak.module.d.ts +6 -0
- package/dist/config/keycloak.module.d.ts.map +1 -0
- package/dist/config/keycloak.module.js +92 -0
- package/dist/config/keycloak.module.js.map +1 -0
- package/dist/config/node-env.util.d.ts +5 -0
- package/dist/config/node-env.util.d.ts.map +1 -0
- package/dist/config/node-env.util.js +10 -0
- package/dist/config/node-env.util.js.map +1 -0
- package/dist/config/redis-enabled.util.d.ts +6 -0
- package/dist/config/redis-enabled.util.d.ts.map +1 -0
- package/dist/config/redis-enabled.util.js +10 -0
- package/dist/config/redis-enabled.util.js.map +1 -0
- package/dist/config/redis-throttler.storage.d.ts +27 -0
- package/dist/config/redis-throttler.storage.d.ts.map +1 -0
- package/dist/config/redis-throttler.storage.js +73 -0
- package/dist/config/redis-throttler.storage.js.map +1 -0
- package/dist/config/redis.module.d.ts +13 -0
- package/dist/config/redis.module.d.ts.map +1 -0
- package/dist/config/redis.module.js +138 -0
- package/dist/config/redis.module.js.map +1 -0
- package/dist/config/tls.util.d.ts +33 -0
- package/dist/config/tls.util.d.ts.map +1 -0
- package/dist/config/tls.util.js +60 -0
- package/dist/config/tls.util.js.map +1 -0
- package/dist/core.module.d.ts +74 -0
- package/dist/core.module.d.ts.map +1 -0
- package/dist/core.module.js +169 -0
- package/dist/core.module.js.map +1 -0
- package/dist/database/data-source.d.ts +5 -0
- package/dist/database/data-source.d.ts.map +1 -0
- package/dist/database/data-source.js +45 -0
- package/dist/database/data-source.js.map +1 -0
- package/dist/database/migrations/1784284557959-full-schema.d.ts +7 -0
- package/dist/database/migrations/1784284557959-full-schema.d.ts.map +1 -0
- package/dist/database/migrations/1784284557959-full-schema.js +154 -0
- package/dist/database/migrations/1784284557959-full-schema.js.map +1 -0
- package/dist/database/seeds/roles.seed.d.ts +11 -0
- package/dist/database/seeds/roles.seed.d.ts.map +1 -0
- package/dist/database/seeds/roles.seed.js +69 -0
- package/dist/database/seeds/roles.seed.js.map +1 -0
- package/dist/database/seeds/run-seed.d.ts +2 -0
- package/dist/database/seeds/run-seed.d.ts.map +1 -0
- package/dist/database/seeds/run-seed.js +34 -0
- package/dist/database/seeds/run-seed.js.map +1 -0
- package/dist/database/seeds/settings.seed.d.ts +14 -0
- package/dist/database/seeds/settings.seed.d.ts.map +1 -0
- package/dist/database/seeds/settings.seed.js +609 -0
- package/dist/database/seeds/settings.seed.js.map +1 -0
- package/dist/database/seeds/templates/emails/account-created.html +47 -0
- package/dist/database/seeds/templates/emails/account-deleted.html +47 -0
- package/dist/database/seeds/templates/emails/account-reactivated.html +48 -0
- package/dist/database/seeds/templates/emails/account-suspended.html +46 -0
- package/dist/database/seeds/templates/emails/change-email-verification.html +283 -0
- package/dist/database/seeds/templates/emails/invitation.html +66 -0
- package/dist/database/seeds/templates/emails/password-reset.html +278 -0
- package/dist/database/seeds/templates/emails/reply-notification.html +282 -0
- package/dist/database/seeds/templates/emails/resetpassword.html +291 -0
- package/dist/database/seeds/templates/emails/verify-email.html +62 -0
- package/dist/database/seeds/templates/emails/welcome.html +46 -0
- package/dist/database/seeds/templates/html-template.reader.d.ts +10 -0
- package/dist/database/seeds/templates/html-template.reader.d.ts.map +1 -0
- package/dist/database/seeds/templates/html-template.reader.js +83 -0
- package/dist/database/seeds/templates/html-template.reader.js.map +1 -0
- package/dist/database/seeds/templates/html-template.reader.ts +84 -0
- package/dist/database/seeds/user.seed.d.ts +14 -0
- package/dist/database/seeds/user.seed.d.ts.map +1 -0
- package/dist/database/seeds/user.seed.js +106 -0
- package/dist/database/seeds/user.seed.js.map +1 -0
- package/dist/database/typeorm.service.d.ts +19 -0
- package/dist/database/typeorm.service.d.ts.map +1 -0
- package/dist/database/typeorm.service.js +53 -0
- package/dist/database/typeorm.service.js.map +1 -0
- package/dist/database/typeorm.util.d.ts +108 -0
- package/dist/database/typeorm.util.d.ts.map +1 -0
- package/dist/database/typeorm.util.js +163 -0
- package/dist/database/typeorm.util.js.map +1 -0
- package/dist/index.d.ts +52 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +126 -0
- package/dist/index.js.map +1 -0
- package/dist/modules/admin/admin.module.d.ts +3 -0
- package/dist/modules/admin/admin.module.d.ts.map +1 -0
- package/dist/modules/admin/admin.module.js +25 -0
- package/dist/modules/admin/admin.module.js.map +1 -0
- package/dist/modules/admin/controllers/admin.controller.d.ts +51 -0
- package/dist/modules/admin/controllers/admin.controller.d.ts.map +1 -0
- package/dist/modules/admin/controllers/admin.controller.js +198 -0
- package/dist/modules/admin/controllers/admin.controller.js.map +1 -0
- package/dist/modules/admin/dto/admin-log.dto.d.ts +21 -0
- package/dist/modules/admin/dto/admin-log.dto.d.ts.map +1 -0
- package/dist/modules/admin/dto/admin-log.dto.js +63 -0
- package/dist/modules/admin/dto/admin-log.dto.js.map +1 -0
- package/dist/modules/admin/entities/admin-log.entity.d.ts +20 -0
- package/dist/modules/admin/entities/admin-log.entity.d.ts.map +1 -0
- package/dist/modules/admin/entities/admin-log.entity.js +65 -0
- package/dist/modules/admin/entities/admin-log.entity.js.map +1 -0
- package/dist/modules/admin/services/admin-log.service.d.ts +12 -0
- package/dist/modules/admin/services/admin-log.service.d.ts.map +1 -0
- package/dist/modules/admin/services/admin-log.service.js +63 -0
- package/dist/modules/admin/services/admin-log.service.js.map +1 -0
- package/dist/modules/auth/auth-core/auth-core.module.d.ts +3 -0
- package/dist/modules/auth/auth-core/auth-core.module.d.ts.map +1 -0
- package/dist/modules/auth/auth-core/auth-core.module.js +40 -0
- package/dist/modules/auth/auth-core/auth-core.module.js.map +1 -0
- package/dist/modules/auth/auth-core/strategies/jwt.strategy.d.ts +18 -0
- package/dist/modules/auth/auth-core/strategies/jwt.strategy.d.ts.map +1 -0
- package/dist/modules/auth/auth-core/strategies/jwt.strategy.js +64 -0
- package/dist/modules/auth/auth-core/strategies/jwt.strategy.js.map +1 -0
- package/dist/modules/auth/auth.manifest.d.ts +9 -0
- package/dist/modules/auth/auth.manifest.d.ts.map +1 -0
- package/dist/modules/auth/auth.manifest.js +29 -0
- package/dist/modules/auth/auth.manifest.js.map +1 -0
- package/dist/modules/auth/auth.module.d.ts +3 -0
- package/dist/modules/auth/auth.module.d.ts.map +1 -0
- package/dist/modules/auth/auth.module.js +71 -0
- package/dist/modules/auth/auth.module.js.map +1 -0
- package/dist/modules/auth/controllers/account.controller.d.ts +30 -0
- package/dist/modules/auth/controllers/account.controller.d.ts.map +1 -0
- package/dist/modules/auth/controllers/account.controller.js +131 -0
- package/dist/modules/auth/controllers/account.controller.js.map +1 -0
- package/dist/modules/auth/controllers/auth.controller.d.ts +21 -0
- package/dist/modules/auth/controllers/auth.controller.d.ts.map +1 -0
- package/dist/modules/auth/controllers/auth.controller.js +218 -0
- package/dist/modules/auth/controllers/auth.controller.js.map +1 -0
- package/dist/modules/auth/controllers/forgot-password.controller.d.ts +17 -0
- package/dist/modules/auth/controllers/forgot-password.controller.d.ts.map +1 -0
- package/dist/modules/auth/controllers/forgot-password.controller.js +98 -0
- package/dist/modules/auth/controllers/forgot-password.controller.js.map +1 -0
- package/dist/modules/auth/controllers/otp.controller.d.ts +10 -0
- package/dist/modules/auth/controllers/otp.controller.d.ts.map +1 -0
- package/dist/modules/auth/controllers/otp.controller.js +166 -0
- package/dist/modules/auth/controllers/otp.controller.js.map +1 -0
- package/dist/modules/auth/controllers/pin.controller.d.ts +22 -0
- package/dist/modules/auth/controllers/pin.controller.d.ts.map +1 -0
- package/dist/modules/auth/controllers/pin.controller.js +212 -0
- package/dist/modules/auth/controllers/pin.controller.js.map +1 -0
- package/dist/modules/auth/controllers/session.controller.d.ts +19 -0
- package/dist/modules/auth/controllers/session.controller.d.ts.map +1 -0
- package/dist/modules/auth/controllers/session.controller.js +139 -0
- package/dist/modules/auth/controllers/session.controller.js.map +1 -0
- package/dist/modules/auth/dto/auth-config.dto.d.ts +7 -0
- package/dist/modules/auth/dto/auth-config.dto.d.ts.map +1 -0
- package/dist/modules/auth/dto/auth-config.dto.js +54 -0
- package/dist/modules/auth/dto/auth-config.dto.js.map +1 -0
- package/dist/modules/auth/dto/index.d.ts +7 -0
- package/dist/modules/auth/dto/index.d.ts.map +1 -0
- package/dist/modules/auth/dto/index.js +23 -0
- package/dist/modules/auth/dto/index.js.map +1 -0
- package/dist/modules/auth/dto/login.dto.d.ts +15 -0
- package/dist/modules/auth/dto/login.dto.d.ts.map +1 -0
- package/dist/modules/auth/dto/login.dto.js +68 -0
- package/dist/modules/auth/dto/login.dto.js.map +1 -0
- package/dist/modules/auth/dto/otp.dto.d.ts +48 -0
- package/dist/modules/auth/dto/otp.dto.d.ts.map +1 -0
- package/dist/modules/auth/dto/otp.dto.js +217 -0
- package/dist/modules/auth/dto/otp.dto.js.map +1 -0
- package/dist/modules/auth/dto/password.dto.d.ts +31 -0
- package/dist/modules/auth/dto/password.dto.d.ts.map +1 -0
- package/dist/modules/auth/dto/password.dto.js +168 -0
- package/dist/modules/auth/dto/password.dto.js.map +1 -0
- package/dist/modules/auth/dto/pin.dto.d.ts +31 -0
- package/dist/modules/auth/dto/pin.dto.d.ts.map +1 -0
- package/dist/modules/auth/dto/pin.dto.js +177 -0
- package/dist/modules/auth/dto/pin.dto.js.map +1 -0
- package/dist/modules/auth/dto/register.dto.d.ts +18 -0
- package/dist/modules/auth/dto/register.dto.d.ts.map +1 -0
- package/dist/modules/auth/dto/register.dto.js +69 -0
- package/dist/modules/auth/dto/register.dto.js.map +1 -0
- package/dist/modules/auth/dto/test-login.dto.d.ts +11 -0
- package/dist/modules/auth/dto/test-login.dto.d.ts.map +1 -0
- package/dist/modules/auth/dto/test-login.dto.js +78 -0
- package/dist/modules/auth/dto/test-login.dto.js.map +1 -0
- package/dist/modules/auth/dto/token.dto.d.ts +38 -0
- package/dist/modules/auth/dto/token.dto.d.ts.map +1 -0
- package/dist/modules/auth/dto/token.dto.js +69 -0
- package/dist/modules/auth/dto/token.dto.js.map +1 -0
- package/dist/modules/auth/entities/index.d.ts +3 -0
- package/dist/modules/auth/entities/index.d.ts.map +1 -0
- package/dist/modules/auth/entities/index.js +19 -0
- package/dist/modules/auth/entities/index.js.map +1 -0
- package/dist/modules/auth/entities/password-reset-token.entity.d.ts +14 -0
- package/dist/modules/auth/entities/password-reset-token.entity.d.ts.map +1 -0
- package/dist/modules/auth/entities/password-reset-token.entity.js +49 -0
- package/dist/modules/auth/entities/password-reset-token.entity.js.map +1 -0
- package/dist/modules/auth/entities/user-pin.entity.d.ts +38 -0
- package/dist/modules/auth/entities/user-pin.entity.d.ts.map +1 -0
- package/dist/modules/auth/entities/user-pin.entity.js +83 -0
- package/dist/modules/auth/entities/user-pin.entity.js.map +1 -0
- package/dist/modules/auth/events/auth.events.d.ts +45 -0
- package/dist/modules/auth/events/auth.events.d.ts.map +1 -0
- package/dist/modules/auth/events/auth.events.js +22 -0
- package/dist/modules/auth/events/auth.events.js.map +1 -0
- package/dist/modules/auth/events/index.d.ts +2 -0
- package/dist/modules/auth/events/index.d.ts.map +1 -0
- package/dist/modules/auth/events/index.js +18 -0
- package/dist/modules/auth/events/index.js.map +1 -0
- package/dist/modules/auth/index.d.ts +5 -0
- package/dist/modules/auth/index.d.ts.map +1 -0
- package/dist/modules/auth/index.js +21 -0
- package/dist/modules/auth/index.js.map +1 -0
- package/dist/modules/auth/providers/index.d.ts +4 -0
- package/dist/modules/auth/providers/index.d.ts.map +1 -0
- package/dist/modules/auth/providers/index.js +20 -0
- package/dist/modules/auth/providers/index.js.map +1 -0
- package/dist/modules/auth/providers/interfaces/auth-provider.interface.d.ts +90 -0
- package/dist/modules/auth/providers/interfaces/auth-provider.interface.d.ts.map +1 -0
- package/dist/modules/auth/providers/interfaces/auth-provider.interface.js +3 -0
- package/dist/modules/auth/providers/interfaces/auth-provider.interface.js.map +1 -0
- package/dist/modules/auth/providers/interfaces/index.d.ts +2 -0
- package/dist/modules/auth/providers/interfaces/index.d.ts.map +1 -0
- package/dist/modules/auth/providers/interfaces/index.js +18 -0
- package/dist/modules/auth/providers/interfaces/index.js.map +1 -0
- package/dist/modules/auth/providers/keycloak/index.d.ts +3 -0
- package/dist/modules/auth/providers/keycloak/index.d.ts.map +1 -0
- package/dist/modules/auth/providers/keycloak/index.js +19 -0
- package/dist/modules/auth/providers/keycloak/index.js.map +1 -0
- package/dist/modules/auth/providers/keycloak/keycloak-auth-provider.module.d.ts +3 -0
- package/dist/modules/auth/providers/keycloak/keycloak-auth-provider.module.d.ts.map +1 -0
- package/dist/modules/auth/providers/keycloak/keycloak-auth-provider.module.js +80 -0
- package/dist/modules/auth/providers/keycloak/keycloak-auth-provider.module.js.map +1 -0
- package/dist/modules/auth/providers/keycloak/keycloak-verify-email.strategy.d.ts +11 -0
- package/dist/modules/auth/providers/keycloak/keycloak-verify-email.strategy.d.ts.map +1 -0
- package/dist/modules/auth/providers/keycloak/keycloak-verify-email.strategy.js +58 -0
- package/dist/modules/auth/providers/keycloak/keycloak-verify-email.strategy.js.map +1 -0
- package/dist/modules/auth/providers/keycloak/keycloak.auth-provider.d.ts +36 -0
- package/dist/modules/auth/providers/keycloak/keycloak.auth-provider.d.ts.map +1 -0
- package/dist/modules/auth/providers/keycloak/keycloak.auth-provider.js +192 -0
- package/dist/modules/auth/providers/keycloak/keycloak.auth-provider.js.map +1 -0
- package/dist/modules/auth/providers/native/index.d.ts +3 -0
- package/dist/modules/auth/providers/native/index.d.ts.map +1 -0
- package/dist/modules/auth/providers/native/index.js +19 -0
- package/dist/modules/auth/providers/native/index.js.map +1 -0
- package/dist/modules/auth/providers/native/native.auth-provider.d.ts +19 -0
- package/dist/modules/auth/providers/native/native.auth-provider.d.ts.map +1 -0
- package/dist/modules/auth/providers/native/native.auth-provider.js +144 -0
- package/dist/modules/auth/providers/native/native.auth-provider.js.map +1 -0
- package/dist/modules/auth/providers/native/native.auth-provider.module.d.ts +3 -0
- package/dist/modules/auth/providers/native/native.auth-provider.module.d.ts.map +1 -0
- package/dist/modules/auth/providers/native/native.auth-provider.module.js +24 -0
- package/dist/modules/auth/providers/native/native.auth-provider.module.js.map +1 -0
- package/dist/modules/auth/providers/provider.registry.d.ts +12 -0
- package/dist/modules/auth/providers/provider.registry.d.ts.map +1 -0
- package/dist/modules/auth/providers/provider.registry.js +45 -0
- package/dist/modules/auth/providers/provider.registry.js.map +1 -0
- package/dist/modules/auth/services/account.service.d.ts +64 -0
- package/dist/modules/auth/services/account.service.d.ts.map +1 -0
- package/dist/modules/auth/services/account.service.js +203 -0
- package/dist/modules/auth/services/account.service.js.map +1 -0
- package/dist/modules/auth/services/index.d.ts +7 -0
- package/dist/modules/auth/services/index.d.ts.map +1 -0
- package/dist/modules/auth/services/index.js +23 -0
- package/dist/modules/auth/services/index.js.map +1 -0
- package/dist/modules/auth/services/login.service.d.ts +72 -0
- package/dist/modules/auth/services/login.service.d.ts.map +1 -0
- package/dist/modules/auth/services/login.service.js +337 -0
- package/dist/modules/auth/services/login.service.js.map +1 -0
- package/dist/modules/auth/services/otp-auth.service.d.ts +30 -0
- package/dist/modules/auth/services/otp-auth.service.d.ts.map +1 -0
- package/dist/modules/auth/services/otp-auth.service.js +140 -0
- package/dist/modules/auth/services/otp-auth.service.js.map +1 -0
- package/dist/modules/auth/services/password.service.d.ts +56 -0
- package/dist/modules/auth/services/password.service.d.ts.map +1 -0
- package/dist/modules/auth/services/password.service.js +225 -0
- package/dist/modules/auth/services/password.service.js.map +1 -0
- package/dist/modules/auth/services/pin-auth.service.d.ts +73 -0
- package/dist/modules/auth/services/pin-auth.service.d.ts.map +1 -0
- package/dist/modules/auth/services/pin-auth.service.js +290 -0
- package/dist/modules/auth/services/pin-auth.service.js.map +1 -0
- package/dist/modules/auth/services/registration.service.d.ts +41 -0
- package/dist/modules/auth/services/registration.service.d.ts.map +1 -0
- package/dist/modules/auth/services/registration.service.js +330 -0
- package/dist/modules/auth/services/registration.service.js.map +1 -0
- package/dist/modules/auth/types/auth-identity.d.ts +7 -0
- package/dist/modules/auth/types/auth-identity.d.ts.map +1 -0
- package/dist/modules/auth/types/auth-identity.js +3 -0
- package/dist/modules/auth/types/auth-identity.js.map +1 -0
- package/dist/modules/auth/utils/auth-method.util.d.ts +4 -0
- package/dist/modules/auth/utils/auth-method.util.d.ts.map +1 -0
- package/dist/modules/auth/utils/auth-method.util.js +9 -0
- package/dist/modules/auth/utils/auth-method.util.js.map +1 -0
- package/dist/modules/auth/utils/auth-params.util.d.ts +25 -0
- package/dist/modules/auth/utils/auth-params.util.d.ts.map +1 -0
- package/dist/modules/auth/utils/auth-params.util.js +54 -0
- package/dist/modules/auth/utils/auth-params.util.js.map +1 -0
- package/dist/modules/auth/utils/auth-supported.util.d.ts +4 -0
- package/dist/modules/auth/utils/auth-supported.util.d.ts.map +1 -0
- package/dist/modules/auth/utils/auth-supported.util.js +18 -0
- package/dist/modules/auth/utils/auth-supported.util.js.map +1 -0
- package/dist/modules/delivery/composers/email.composer.d.ts +9 -0
- package/dist/modules/delivery/composers/email.composer.d.ts.map +1 -0
- package/dist/modules/delivery/composers/email.composer.js +45 -0
- package/dist/modules/delivery/composers/email.composer.js.map +1 -0
- package/dist/modules/delivery/composers/otp-delivery.composer.d.ts +19 -0
- package/dist/modules/delivery/composers/otp-delivery.composer.d.ts.map +1 -0
- package/dist/modules/delivery/composers/otp-delivery.composer.js +59 -0
- package/dist/modules/delivery/composers/otp-delivery.composer.js.map +1 -0
- package/dist/modules/delivery/delivery.manifest.d.ts +7 -0
- package/dist/modules/delivery/delivery.manifest.d.ts.map +1 -0
- package/dist/modules/delivery/delivery.manifest.js +25 -0
- package/dist/modules/delivery/delivery.manifest.js.map +1 -0
- package/dist/modules/delivery/delivery.module.d.ts +5 -0
- package/dist/modules/delivery/delivery.module.d.ts.map +1 -0
- package/dist/modules/delivery/delivery.module.js +76 -0
- package/dist/modules/delivery/delivery.module.js.map +1 -0
- package/dist/modules/delivery/dto/notification-delivery-log.dto.d.ts +10 -0
- package/dist/modules/delivery/dto/notification-delivery-log.dto.d.ts.map +1 -0
- package/dist/modules/delivery/dto/notification-delivery-log.dto.js +60 -0
- package/dist/modules/delivery/dto/notification-delivery-log.dto.js.map +1 -0
- package/dist/modules/delivery/entities/notification-delivery-log.entity.d.ts +28 -0
- package/dist/modules/delivery/entities/notification-delivery-log.entity.d.ts.map +1 -0
- package/dist/modules/delivery/entities/notification-delivery-log.entity.js +87 -0
- package/dist/modules/delivery/entities/notification-delivery-log.entity.js.map +1 -0
- package/dist/modules/delivery/index.d.ts +8 -0
- package/dist/modules/delivery/index.d.ts.map +1 -0
- package/dist/modules/delivery/index.js +14 -0
- package/dist/modules/delivery/index.js.map +1 -0
- package/dist/modules/delivery/notification-delivery.service.d.ts +63 -0
- package/dist/modules/delivery/notification-delivery.service.d.ts.map +1 -0
- package/dist/modules/delivery/notification-delivery.service.js +404 -0
- package/dist/modules/delivery/notification-delivery.service.js.map +1 -0
- package/dist/modules/delivery/processors/delivery-errors.util.d.ts +8 -0
- package/dist/modules/delivery/processors/delivery-errors.util.d.ts.map +1 -0
- package/dist/modules/delivery/processors/delivery-errors.util.js +60 -0
- package/dist/modules/delivery/processors/delivery-errors.util.js.map +1 -0
- package/dist/modules/delivery/processors/delivery-job.runner.d.ts +25 -0
- package/dist/modules/delivery/processors/delivery-job.runner.d.ts.map +1 -0
- package/dist/modules/delivery/processors/delivery-job.runner.js +167 -0
- package/dist/modules/delivery/processors/delivery-job.runner.js.map +1 -0
- package/dist/modules/delivery/processors/delivery.processor.d.ts +10 -0
- package/dist/modules/delivery/processors/delivery.processor.d.ts.map +1 -0
- package/dist/modules/delivery/processors/delivery.processor.js +31 -0
- package/dist/modules/delivery/processors/delivery.processor.js.map +1 -0
- package/dist/modules/delivery/processors/otp-delivery-job.runner.d.ts +24 -0
- package/dist/modules/delivery/processors/otp-delivery-job.runner.d.ts.map +1 -0
- package/dist/modules/delivery/processors/otp-delivery-job.runner.js +141 -0
- package/dist/modules/delivery/processors/otp-delivery-job.runner.js.map +1 -0
- package/dist/modules/delivery/processors/otp-delivery.processor.d.ts +10 -0
- package/dist/modules/delivery/processors/otp-delivery.processor.d.ts.map +1 -0
- package/dist/modules/delivery/processors/otp-delivery.processor.js +31 -0
- package/dist/modules/delivery/processors/otp-delivery.processor.js.map +1 -0
- package/dist/modules/delivery/queues/sync-jobs.queue.d.ts +22 -0
- package/dist/modules/delivery/queues/sync-jobs.queue.d.ts.map +1 -0
- package/dist/modules/delivery/queues/sync-jobs.queue.js +76 -0
- package/dist/modules/delivery/queues/sync-jobs.queue.js.map +1 -0
- package/dist/modules/delivery/services/delivery-audit-retention.service.d.ts +15 -0
- package/dist/modules/delivery/services/delivery-audit-retention.service.d.ts.map +1 -0
- package/dist/modules/delivery/services/delivery-audit-retention.service.js +68 -0
- package/dist/modules/delivery/services/delivery-audit-retention.service.js.map +1 -0
- package/dist/modules/delivery/services/notification-audit.service.d.ts +46 -0
- package/dist/modules/delivery/services/notification-audit.service.d.ts.map +1 -0
- package/dist/modules/delivery/services/notification-audit.service.js +200 -0
- package/dist/modules/delivery/services/notification-audit.service.js.map +1 -0
- package/dist/modules/delivery/templates/email-template.registry.d.ts +12 -0
- package/dist/modules/delivery/templates/email-template.registry.d.ts.map +1 -0
- package/dist/modules/delivery/templates/email-template.registry.js +74 -0
- package/dist/modules/delivery/templates/email-template.registry.js.map +1 -0
- package/dist/modules/delivery/templates/otp-sms.template.d.ts +5 -0
- package/dist/modules/delivery/templates/otp-sms.template.d.ts.map +1 -0
- package/dist/modules/delivery/templates/otp-sms.template.js +10 -0
- package/dist/modules/delivery/templates/otp-sms.template.js.map +1 -0
- package/dist/modules/delivery/templates/render-email-template.d.ts +7 -0
- package/dist/modules/delivery/templates/render-email-template.d.ts.map +1 -0
- package/dist/modules/delivery/templates/render-email-template.js +14 -0
- package/dist/modules/delivery/templates/render-email-template.js.map +1 -0
- package/dist/modules/delivery/templates/render-sms-template.d.ts +5 -0
- package/dist/modules/delivery/templates/render-sms-template.d.ts.map +1 -0
- package/dist/modules/delivery/templates/render-sms-template.js +13 -0
- package/dist/modules/delivery/templates/render-sms-template.js.map +1 -0
- package/dist/modules/delivery/types/email-metadata.d.ts +18 -0
- package/dist/modules/delivery/types/email-metadata.d.ts.map +1 -0
- package/dist/modules/delivery/types/email-metadata.js +3 -0
- package/dist/modules/delivery/types/email-metadata.js.map +1 -0
- package/dist/modules/delivery/types/payload-snapshot.d.ts +19 -0
- package/dist/modules/delivery/types/payload-snapshot.d.ts.map +1 -0
- package/dist/modules/delivery/types/payload-snapshot.js +3 -0
- package/dist/modules/delivery/types/payload-snapshot.js.map +1 -0
- package/dist/modules/delivery/utils/audit-recipient.util.d.ts +4 -0
- package/dist/modules/delivery/utils/audit-recipient.util.d.ts.map +1 -0
- package/dist/modules/delivery/utils/audit-recipient.util.js +32 -0
- package/dist/modules/delivery/utils/audit-recipient.util.js.map +1 -0
- package/dist/modules/delivery/utils/payload-snapshot.util.d.ts +4 -0
- package/dist/modules/delivery/utils/payload-snapshot.util.d.ts.map +1 -0
- package/dist/modules/delivery/utils/payload-snapshot.util.js +35 -0
- package/dist/modules/delivery/utils/payload-snapshot.util.js.map +1 -0
- package/dist/modules/file-upload/constants/upload.types.d.ts +36 -0
- package/dist/modules/file-upload/constants/upload.types.d.ts.map +1 -0
- package/dist/modules/file-upload/constants/upload.types.js +43 -0
- package/dist/modules/file-upload/constants/upload.types.js.map +1 -0
- package/dist/modules/file-upload/controllers/file-upload.controller.d.ts +19 -0
- package/dist/modules/file-upload/controllers/file-upload.controller.d.ts.map +1 -0
- package/dist/modules/file-upload/controllers/file-upload.controller.js +439 -0
- package/dist/modules/file-upload/controllers/file-upload.controller.js.map +1 -0
- package/dist/modules/file-upload/dto/file-upload.dto.d.ts +65 -0
- package/dist/modules/file-upload/dto/file-upload.dto.d.ts.map +1 -0
- package/dist/modules/file-upload/dto/file-upload.dto.js +441 -0
- package/dist/modules/file-upload/dto/file-upload.dto.js.map +1 -0
- package/dist/modules/file-upload/entities/index.d.ts +3 -0
- package/dist/modules/file-upload/entities/index.d.ts.map +1 -0
- package/dist/modules/file-upload/entities/index.js +19 -0
- package/dist/modules/file-upload/entities/index.js.map +1 -0
- package/dist/modules/file-upload/entities/pending-file-upload.entity.d.ts +12 -0
- package/dist/modules/file-upload/entities/pending-file-upload.entity.d.ts.map +1 -0
- package/dist/modules/file-upload/entities/pending-file-upload.entity.js +55 -0
- package/dist/modules/file-upload/entities/pending-file-upload.entity.js.map +1 -0
- package/dist/modules/file-upload/entities/uploaded-file.entity.d.ts +19 -0
- package/dist/modules/file-upload/entities/uploaded-file.entity.d.ts.map +1 -0
- package/dist/modules/file-upload/entities/uploaded-file.entity.js +82 -0
- package/dist/modules/file-upload/entities/uploaded-file.entity.js.map +1 -0
- package/dist/modules/file-upload/file-upload.manifest.d.ts +8 -0
- package/dist/modules/file-upload/file-upload.manifest.d.ts.map +1 -0
- package/dist/modules/file-upload/file-upload.manifest.js +31 -0
- package/dist/modules/file-upload/file-upload.manifest.js.map +1 -0
- package/dist/modules/file-upload/file-upload.module.d.ts +3 -0
- package/dist/modules/file-upload/file-upload.module.d.ts.map +1 -0
- package/dist/modules/file-upload/file-upload.module.js +39 -0
- package/dist/modules/file-upload/file-upload.module.js.map +1 -0
- package/dist/modules/file-upload/index.d.ts +7 -0
- package/dist/modules/file-upload/index.d.ts.map +1 -0
- package/dist/modules/file-upload/index.js +23 -0
- package/dist/modules/file-upload/index.js.map +1 -0
- package/dist/modules/file-upload/interceptors/disk-file.interceptor.d.ts +3 -0
- package/dist/modules/file-upload/interceptors/disk-file.interceptor.d.ts.map +1 -0
- package/dist/modules/file-upload/interceptors/disk-file.interceptor.js +30 -0
- package/dist/modules/file-upload/interceptors/disk-file.interceptor.js.map +1 -0
- package/dist/modules/file-upload/interfaces/file-scan.service.interface.d.ts +11 -0
- package/dist/modules/file-upload/interfaces/file-scan.service.interface.d.ts.map +1 -0
- package/dist/modules/file-upload/interfaces/file-scan.service.interface.js +10 -0
- package/dist/modules/file-upload/interfaces/file-scan.service.interface.js.map +1 -0
- package/dist/modules/file-upload/services/file-upload.service.d.ts +82 -0
- package/dist/modules/file-upload/services/file-upload.service.d.ts.map +1 -0
- package/dist/modules/file-upload/services/file-upload.service.js +639 -0
- package/dist/modules/file-upload/services/file-upload.service.js.map +1 -0
- package/dist/modules/file-upload/services/noop-file-scan.service.d.ts +10 -0
- package/dist/modules/file-upload/services/noop-file-scan.service.d.ts.map +1 -0
- package/dist/modules/file-upload/services/noop-file-scan.service.js +22 -0
- package/dist/modules/file-upload/services/noop-file-scan.service.js.map +1 -0
- package/dist/modules/file-upload/services/r2-storage.service.d.ts +41 -0
- package/dist/modules/file-upload/services/r2-storage.service.d.ts.map +1 -0
- package/dist/modules/file-upload/services/r2-storage.service.js +171 -0
- package/dist/modules/file-upload/services/r2-storage.service.js.map +1 -0
- package/dist/modules/file-upload/services/upload-orphan-cleanup.service.d.ts +16 -0
- package/dist/modules/file-upload/services/upload-orphan-cleanup.service.d.ts.map +1 -0
- package/dist/modules/file-upload/services/upload-orphan-cleanup.service.js +73 -0
- package/dist/modules/file-upload/services/upload-orphan-cleanup.service.js.map +1 -0
- package/dist/modules/file-upload/utils/file-payload.util.d.ts +21 -0
- package/dist/modules/file-upload/utils/file-payload.util.d.ts.map +1 -0
- package/dist/modules/file-upload/utils/file-payload.util.js +75 -0
- package/dist/modules/file-upload/utils/file-payload.util.js.map +1 -0
- package/dist/modules/file-upload/utils/file-sniff.util.d.ts +7 -0
- package/dist/modules/file-upload/utils/file-sniff.util.d.ts.map +1 -0
- package/dist/modules/file-upload/utils/file-sniff.util.js +70 -0
- package/dist/modules/file-upload/utils/file-sniff.util.js.map +1 -0
- package/dist/modules/file-upload/utils/filename.util.d.ts +6 -0
- package/dist/modules/file-upload/utils/filename.util.d.ts.map +1 -0
- package/dist/modules/file-upload/utils/filename.util.js +20 -0
- package/dist/modules/file-upload/utils/filename.util.js.map +1 -0
- package/dist/modules/file-upload/utils/image-dimension.validator.d.ts +3 -0
- package/dist/modules/file-upload/utils/image-dimension.validator.d.ts.map +1 -0
- package/dist/modules/file-upload/utils/image-dimension.validator.js +29 -0
- package/dist/modules/file-upload/utils/image-dimension.validator.js.map +1 -0
- package/dist/modules/file-upload/utils/image-optimize.util.d.ts +11 -0
- package/dist/modules/file-upload/utils/image-optimize.util.d.ts.map +1 -0
- package/dist/modules/file-upload/utils/image-optimize.util.js +42 -0
- package/dist/modules/file-upload/utils/image-optimize.util.js.map +1 -0
- package/dist/modules/file-upload/utils/office-zip.validator.d.ts +9 -0
- package/dist/modules/file-upload/utils/office-zip.validator.d.ts.map +1 -0
- package/dist/modules/file-upload/utils/office-zip.validator.js +31 -0
- package/dist/modules/file-upload/utils/office-zip.validator.js.map +1 -0
- package/dist/modules/file-upload/utils/upload-category.validator.d.ts +14 -0
- package/dist/modules/file-upload/utils/upload-category.validator.d.ts.map +1 -0
- package/dist/modules/file-upload/utils/upload-category.validator.js +113 -0
- package/dist/modules/file-upload/utils/upload-category.validator.js.map +1 -0
- package/dist/modules/health/health.controller.d.ts +31 -0
- package/dist/modules/health/health.controller.d.ts.map +1 -0
- package/dist/modules/health/health.controller.js +189 -0
- package/dist/modules/health/health.controller.js.map +1 -0
- package/dist/modules/health/health.module.d.ts +3 -0
- package/dist/modules/health/health.module.d.ts.map +1 -0
- package/dist/modules/health/health.module.js +35 -0
- package/dist/modules/health/health.module.js.map +1 -0
- package/dist/modules/invitations/controllers/invitations.controller.d.ts +20 -0
- package/dist/modules/invitations/controllers/invitations.controller.d.ts.map +1 -0
- package/dist/modules/invitations/controllers/invitations.controller.js +124 -0
- package/dist/modules/invitations/controllers/invitations.controller.js.map +1 -0
- package/dist/modules/invitations/dto/invitation.dto.d.ts +24 -0
- package/dist/modules/invitations/dto/invitation.dto.d.ts.map +1 -0
- package/dist/modules/invitations/dto/invitation.dto.js +150 -0
- package/dist/modules/invitations/dto/invitation.dto.js.map +1 -0
- package/dist/modules/invitations/entities/invitation.entity.d.ts +41 -0
- package/dist/modules/invitations/entities/invitation.entity.d.ts.map +1 -0
- package/dist/modules/invitations/entities/invitation.entity.js +154 -0
- package/dist/modules/invitations/entities/invitation.entity.js.map +1 -0
- package/dist/modules/invitations/index.d.ts +6 -0
- package/dist/modules/invitations/index.d.ts.map +1 -0
- package/dist/modules/invitations/index.js +22 -0
- package/dist/modules/invitations/index.js.map +1 -0
- package/dist/modules/invitations/invitations.manifest.d.ts +9 -0
- package/dist/modules/invitations/invitations.manifest.d.ts.map +1 -0
- package/dist/modules/invitations/invitations.manifest.js +37 -0
- package/dist/modules/invitations/invitations.manifest.js.map +1 -0
- package/dist/modules/invitations/invitations.module.d.ts +3 -0
- package/dist/modules/invitations/invitations.module.d.ts.map +1 -0
- package/dist/modules/invitations/invitations.module.js +26 -0
- package/dist/modules/invitations/invitations.module.js.map +1 -0
- package/dist/modules/invitations/services/invitations.service.d.ts +40 -0
- package/dist/modules/invitations/services/invitations.service.d.ts.map +1 -0
- package/dist/modules/invitations/services/invitations.service.js +277 -0
- package/dist/modules/invitations/services/invitations.service.js.map +1 -0
- package/dist/modules/jobs/constants/delivery-errors.d.ts +6 -0
- package/dist/modules/jobs/constants/delivery-errors.d.ts.map +1 -0
- package/dist/modules/jobs/constants/delivery-errors.js +9 -0
- package/dist/modules/jobs/constants/delivery-errors.js.map +1 -0
- package/dist/modules/jobs/email/email.module.d.ts +3 -0
- package/dist/modules/jobs/email/email.module.d.ts.map +1 -0
- package/dist/modules/jobs/email/email.module.js +21 -0
- package/dist/modules/jobs/email/email.module.js.map +1 -0
- package/dist/modules/jobs/email/email.types.d.ts +23 -0
- package/dist/modules/jobs/email/email.types.d.ts.map +1 -0
- package/dist/modules/jobs/email/email.types.js +20 -0
- package/dist/modules/jobs/email/email.types.js.map +1 -0
- package/dist/modules/jobs/email/index.d.ts +4 -0
- package/dist/modules/jobs/email/index.d.ts.map +1 -0
- package/dist/modules/jobs/email/index.js +20 -0
- package/dist/modules/jobs/email/index.js.map +1 -0
- package/dist/modules/jobs/email/smtp-email.service.d.ts +22 -0
- package/dist/modules/jobs/email/smtp-email.service.d.ts.map +1 -0
- package/dist/modules/jobs/email/smtp-email.service.js +144 -0
- package/dist/modules/jobs/email/smtp-email.service.js.map +1 -0
- package/dist/modules/jobs/index.d.ts +3 -0
- package/dist/modules/jobs/index.d.ts.map +1 -0
- package/dist/modules/jobs/index.js +6 -0
- package/dist/modules/jobs/index.js.map +1 -0
- package/dist/modules/jobs/jobs-disabled.notifier.d.ts +8 -0
- package/dist/modules/jobs/jobs-disabled.notifier.d.ts.map +1 -0
- package/dist/modules/jobs/jobs-disabled.notifier.js +31 -0
- package/dist/modules/jobs/jobs-disabled.notifier.js.map +1 -0
- package/dist/modules/jobs/jobs.module.d.ts +5 -0
- package/dist/modules/jobs/jobs.module.d.ts.map +1 -0
- package/dist/modules/jobs/jobs.module.js +61 -0
- package/dist/modules/jobs/jobs.module.js.map +1 -0
- package/dist/modules/jobs/processors/email.processor.d.ts +14 -0
- package/dist/modules/jobs/processors/email.processor.d.ts.map +1 -0
- package/dist/modules/jobs/processors/email.processor.js +70 -0
- package/dist/modules/jobs/processors/email.processor.js.map +1 -0
- package/dist/modules/jobs/processors/jobs.processor.d.ts +24 -0
- package/dist/modules/jobs/processors/jobs.processor.d.ts.map +1 -0
- package/dist/modules/jobs/processors/jobs.processor.js +125 -0
- package/dist/modules/jobs/processors/jobs.processor.js.map +1 -0
- package/dist/modules/jobs/queues/jobs.queue.d.ts +63 -0
- package/dist/modules/jobs/queues/jobs.queue.d.ts.map +1 -0
- package/dist/modules/jobs/queues/jobs.queue.js +92 -0
- package/dist/modules/jobs/queues/jobs.queue.js.map +1 -0
- package/dist/modules/jobs/queues/queue-names.d.ts +12 -0
- package/dist/modules/jobs/queues/queue-names.d.ts.map +1 -0
- package/dist/modules/jobs/queues/queue-names.js +14 -0
- package/dist/modules/jobs/queues/queue-names.js.map +1 -0
- package/dist/modules/jobs/sms/index.d.ts +4 -0
- package/dist/modules/jobs/sms/index.d.ts.map +1 -0
- package/dist/modules/jobs/sms/index.js +20 -0
- package/dist/modules/jobs/sms/index.js.map +1 -0
- package/dist/modules/jobs/sms/providers/index.d.ts +5 -0
- package/dist/modules/jobs/sms/providers/index.d.ts.map +1 -0
- package/dist/modules/jobs/sms/providers/index.js +21 -0
- package/dist/modules/jobs/sms/providers/index.js.map +1 -0
- package/dist/modules/jobs/sms/providers/infobip.provider.d.ts +11 -0
- package/dist/modules/jobs/sms/providers/infobip.provider.d.ts.map +1 -0
- package/dist/modules/jobs/sms/providers/infobip.provider.js +87 -0
- package/dist/modules/jobs/sms/providers/infobip.provider.js.map +1 -0
- package/dist/modules/jobs/sms/providers/smart-sms.provider.d.ts +12 -0
- package/dist/modules/jobs/sms/providers/smart-sms.provider.d.ts.map +1 -0
- package/dist/modules/jobs/sms/providers/smart-sms.provider.js +84 -0
- package/dist/modules/jobs/sms/providers/smart-sms.provider.js.map +1 -0
- package/dist/modules/jobs/sms/providers/termii.provider.d.ts +12 -0
- package/dist/modules/jobs/sms/providers/termii.provider.d.ts.map +1 -0
- package/dist/modules/jobs/sms/providers/termii.provider.js +82 -0
- package/dist/modules/jobs/sms/providers/termii.provider.js.map +1 -0
- package/dist/modules/jobs/sms/providers/twilio.provider.d.ts +11 -0
- package/dist/modules/jobs/sms/providers/twilio.provider.d.ts.map +1 -0
- package/dist/modules/jobs/sms/providers/twilio.provider.js +85 -0
- package/dist/modules/jobs/sms/providers/twilio.provider.js.map +1 -0
- package/dist/modules/jobs/sms/sms-provider.interface.d.ts +26 -0
- package/dist/modules/jobs/sms/sms-provider.interface.d.ts.map +1 -0
- package/dist/modules/jobs/sms/sms-provider.interface.js +27 -0
- package/dist/modules/jobs/sms/sms-provider.interface.js.map +1 -0
- package/dist/modules/jobs/sms/sms-proxy.service.d.ts +27 -0
- package/dist/modules/jobs/sms/sms-proxy.service.d.ts.map +1 -0
- package/dist/modules/jobs/sms/sms-proxy.service.js +90 -0
- package/dist/modules/jobs/sms/sms-proxy.service.js.map +1 -0
- package/dist/modules/jobs/sms/sms.module.d.ts +3 -0
- package/dist/modules/jobs/sms/sms.module.d.ts.map +1 -0
- package/dist/modules/jobs/sms/sms.module.js +33 -0
- package/dist/modules/jobs/sms/sms.module.js.map +1 -0
- package/dist/modules/jobs/templates/email-template.registry.d.ts +25 -0
- package/dist/modules/jobs/templates/email-template.registry.d.ts.map +1 -0
- package/dist/modules/jobs/templates/email-template.registry.js +93 -0
- package/dist/modules/jobs/templates/email-template.registry.js.map +1 -0
- package/dist/modules/jobs/templates/otp-sms.template.d.ts +5 -0
- package/dist/modules/jobs/templates/otp-sms.template.d.ts.map +1 -0
- package/dist/modules/jobs/templates/otp-sms.template.js +10 -0
- package/dist/modules/jobs/templates/otp-sms.template.js.map +1 -0
- package/dist/modules/jobs/templates/render-email-template.d.ts +7 -0
- package/dist/modules/jobs/templates/render-email-template.d.ts.map +1 -0
- package/dist/modules/jobs/templates/render-email-template.js +14 -0
- package/dist/modules/jobs/templates/render-email-template.js.map +1 -0
- package/dist/modules/jobs/utils/queue-errors.util.d.ts +2 -0
- package/dist/modules/jobs/utils/queue-errors.util.d.ts.map +1 -0
- package/dist/modules/jobs/utils/queue-errors.util.js +8 -0
- package/dist/modules/jobs/utils/queue-errors.util.js.map +1 -0
- package/dist/modules/notifications/controllers/index.d.ts +2 -0
- package/dist/modules/notifications/controllers/index.d.ts.map +1 -0
- package/dist/modules/notifications/controllers/index.js +18 -0
- package/dist/modules/notifications/controllers/index.js.map +1 -0
- package/dist/modules/notifications/controllers/notifications.controller.d.ts +62 -0
- package/dist/modules/notifications/controllers/notifications.controller.d.ts.map +1 -0
- package/dist/modules/notifications/controllers/notifications.controller.js +179 -0
- package/dist/modules/notifications/controllers/notifications.controller.js.map +1 -0
- package/dist/modules/notifications/dto/device.dto.d.ts +10 -0
- package/dist/modules/notifications/dto/device.dto.d.ts.map +1 -0
- package/dist/modules/notifications/dto/device.dto.js +42 -0
- package/dist/modules/notifications/dto/device.dto.js.map +1 -0
- package/dist/modules/notifications/dto/event-types.dto.d.ts +6 -0
- package/dist/modules/notifications/dto/event-types.dto.d.ts.map +1 -0
- package/dist/modules/notifications/dto/event-types.dto.js +10 -0
- package/dist/modules/notifications/dto/event-types.dto.js.map +1 -0
- package/dist/modules/notifications/dto/fcm.dto.d.ts +14 -0
- package/dist/modules/notifications/dto/fcm.dto.d.ts.map +1 -0
- package/dist/modules/notifications/dto/fcm.dto.js +3 -0
- package/dist/modules/notifications/dto/fcm.dto.js.map +1 -0
- package/dist/modules/notifications/dto/index.d.ts +6 -0
- package/dist/modules/notifications/dto/index.d.ts.map +1 -0
- package/dist/modules/notifications/dto/index.js +22 -0
- package/dist/modules/notifications/dto/index.js.map +1 -0
- package/dist/modules/notifications/dto/notification-query.dto.d.ts +8 -0
- package/dist/modules/notifications/dto/notification-query.dto.d.ts.map +1 -0
- package/dist/modules/notifications/dto/notification-query.dto.js +48 -0
- package/dist/modules/notifications/dto/notification-query.dto.js.map +1 -0
- package/dist/modules/notifications/dto/user-device-token.dto.d.ts +9 -0
- package/dist/modules/notifications/dto/user-device-token.dto.d.ts.map +1 -0
- package/dist/modules/notifications/dto/user-device-token.dto.js +3 -0
- package/dist/modules/notifications/dto/user-device-token.dto.js.map +1 -0
- package/dist/modules/notifications/entities/device-token.entity.d.ts +17 -0
- package/dist/modules/notifications/entities/device-token.entity.d.ts.map +1 -0
- package/dist/modules/notifications/entities/device-token.entity.js +69 -0
- package/dist/modules/notifications/entities/device-token.entity.js.map +1 -0
- package/dist/modules/notifications/entities/index.d.ts +3 -0
- package/dist/modules/notifications/entities/index.d.ts.map +1 -0
- package/dist/modules/notifications/entities/index.js +19 -0
- package/dist/modules/notifications/entities/index.js.map +1 -0
- package/dist/modules/notifications/entities/notification.entity.d.ts +21 -0
- package/dist/modules/notifications/entities/notification.entity.d.ts.map +1 -0
- package/dist/modules/notifications/entities/notification.entity.js +78 -0
- package/dist/modules/notifications/entities/notification.entity.js.map +1 -0
- package/dist/modules/notifications/firebase.module.d.ts +8 -0
- package/dist/modules/notifications/firebase.module.d.ts.map +1 -0
- package/dist/modules/notifications/firebase.module.js +30 -0
- package/dist/modules/notifications/firebase.module.js.map +1 -0
- package/dist/modules/notifications/notifications.manifest.d.ts +11 -0
- package/dist/modules/notifications/notifications.manifest.d.ts.map +1 -0
- package/dist/modules/notifications/notifications.manifest.js +49 -0
- package/dist/modules/notifications/notifications.manifest.js.map +1 -0
- package/dist/modules/notifications/notifications.module.d.ts +3 -0
- package/dist/modules/notifications/notifications.module.d.ts.map +1 -0
- package/dist/modules/notifications/notifications.module.js +32 -0
- package/dist/modules/notifications/notifications.module.js.map +1 -0
- package/dist/modules/notifications/services/fcm.service.d.ts +26 -0
- package/dist/modules/notifications/services/fcm.service.d.ts.map +1 -0
- package/dist/modules/notifications/services/fcm.service.js +217 -0
- package/dist/modules/notifications/services/fcm.service.js.map +1 -0
- package/dist/modules/notifications/services/firebase.service.d.ts +36 -0
- package/dist/modules/notifications/services/firebase.service.d.ts.map +1 -0
- package/dist/modules/notifications/services/firebase.service.js +100 -0
- package/dist/modules/notifications/services/firebase.service.js.map +1 -0
- package/dist/modules/notifications/services/index.d.ts +4 -0
- package/dist/modules/notifications/services/index.d.ts.map +1 -0
- package/dist/modules/notifications/services/index.js +20 -0
- package/dist/modules/notifications/services/index.js.map +1 -0
- package/dist/modules/notifications/services/notifications.service.d.ts +46 -0
- package/dist/modules/notifications/services/notifications.service.d.ts.map +1 -0
- package/dist/modules/notifications/services/notifications.service.js +179 -0
- package/dist/modules/notifications/services/notifications.service.js.map +1 -0
- package/dist/modules/observability/context/job-context.util.d.ts +9 -0
- package/dist/modules/observability/context/job-context.util.d.ts.map +1 -0
- package/dist/modules/observability/context/job-context.util.js +56 -0
- package/dist/modules/observability/context/job-context.util.js.map +1 -0
- package/dist/modules/observability/context/observability-context.middleware.d.ts +9 -0
- package/dist/modules/observability/context/observability-context.middleware.d.ts.map +1 -0
- package/dist/modules/observability/context/observability-context.middleware.js +41 -0
- package/dist/modules/observability/context/observability-context.middleware.js.map +1 -0
- package/dist/modules/observability/context/observability-context.store.d.ts +9 -0
- package/dist/modules/observability/context/observability-context.store.d.ts.map +1 -0
- package/dist/modules/observability/context/observability-context.store.js +34 -0
- package/dist/modules/observability/context/observability-context.store.js.map +1 -0
- package/dist/modules/observability/context/request-id.util.d.ts +4 -0
- package/dist/modules/observability/context/request-id.util.d.ts.map +1 -0
- package/dist/modules/observability/context/request-id.util.js +17 -0
- package/dist/modules/observability/context/request-id.util.js.map +1 -0
- package/dist/modules/observability/controllers/metrics.controller.d.ts +8 -0
- package/dist/modules/observability/controllers/metrics.controller.d.ts.map +1 -0
- package/dist/modules/observability/controllers/metrics.controller.js +56 -0
- package/dist/modules/observability/controllers/metrics.controller.js.map +1 -0
- package/dist/modules/observability/errors/error-reporter.interface.d.ts +18 -0
- package/dist/modules/observability/errors/error-reporter.interface.d.ts.map +1 -0
- package/dist/modules/observability/errors/error-reporter.interface.js +5 -0
- package/dist/modules/observability/errors/error-reporter.interface.js.map +1 -0
- package/dist/modules/observability/errors/error-reporter.service.d.ts +8 -0
- package/dist/modules/observability/errors/error-reporter.service.d.ts.map +1 -0
- package/dist/modules/observability/errors/error-reporter.service.js +36 -0
- package/dist/modules/observability/errors/error-reporter.service.js.map +1 -0
- package/dist/modules/observability/errors/noop-error-reporter.d.ts +6 -0
- package/dist/modules/observability/errors/noop-error-reporter.d.ts.map +1 -0
- package/dist/modules/observability/errors/noop-error-reporter.js +13 -0
- package/dist/modules/observability/errors/noop-error-reporter.js.map +1 -0
- package/dist/modules/observability/errors/sentry-error-reporter.d.ts +8 -0
- package/dist/modules/observability/errors/sentry-error-reporter.d.ts.map +1 -0
- package/dist/modules/observability/errors/sentry-error-reporter.js +88 -0
- package/dist/modules/observability/errors/sentry-error-reporter.js.map +1 -0
- package/dist/modules/observability/errors/sentry.bootstrap.d.ts +10 -0
- package/dist/modules/observability/errors/sentry.bootstrap.d.ts.map +1 -0
- package/dist/modules/observability/errors/sentry.bootstrap.js +63 -0
- package/dist/modules/observability/errors/sentry.bootstrap.js.map +1 -0
- package/dist/modules/observability/guards/metrics-access.guard.d.ts +8 -0
- package/dist/modules/observability/guards/metrics-access.guard.d.ts.map +1 -0
- package/dist/modules/observability/guards/metrics-access.guard.js +42 -0
- package/dist/modules/observability/guards/metrics-access.guard.js.map +1 -0
- package/dist/modules/observability/index.d.ts +23 -0
- package/dist/modules/observability/index.d.ts.map +1 -0
- package/dist/modules/observability/index.js +46 -0
- package/dist/modules/observability/index.js.map +1 -0
- package/dist/modules/observability/interceptors/observability-user.interceptor.d.ts +10 -0
- package/dist/modules/observability/interceptors/observability-user.interceptor.d.ts.map +1 -0
- package/dist/modules/observability/interceptors/observability-user.interceptor.js +34 -0
- package/dist/modules/observability/interceptors/observability-user.interceptor.js.map +1 -0
- package/dist/modules/observability/interceptors/structured-logging.interceptor.d.ts +13 -0
- package/dist/modules/observability/interceptors/structured-logging.interceptor.d.ts.map +1 -0
- package/dist/modules/observability/interceptors/structured-logging.interceptor.js +76 -0
- package/dist/modules/observability/interceptors/structured-logging.interceptor.js.map +1 -0
- package/dist/modules/observability/logging/pii-redaction.util.d.ts +4 -0
- package/dist/modules/observability/logging/pii-redaction.util.d.ts.map +1 -0
- package/dist/modules/observability/logging/pii-redaction.util.js +59 -0
- package/dist/modules/observability/logging/pii-redaction.util.js.map +1 -0
- package/dist/modules/observability/logging/structured-log-writer.service.d.ts +18 -0
- package/dist/modules/observability/logging/structured-log-writer.service.d.ts.map +1 -0
- package/dist/modules/observability/logging/structured-log-writer.service.js +45 -0
- package/dist/modules/observability/logging/structured-log-writer.service.js.map +1 -0
- package/dist/modules/observability/logging/structured-logger.service.d.ts +29 -0
- package/dist/modules/observability/logging/structured-logger.service.d.ts.map +1 -0
- package/dist/modules/observability/logging/structured-logger.service.js +155 -0
- package/dist/modules/observability/logging/structured-logger.service.js.map +1 -0
- package/dist/modules/observability/metrics/bullmq-failed-job.listener.d.ts +15 -0
- package/dist/modules/observability/metrics/bullmq-failed-job.listener.d.ts.map +1 -0
- package/dist/modules/observability/metrics/bullmq-failed-job.listener.js +78 -0
- package/dist/modules/observability/metrics/bullmq-failed-job.listener.js.map +1 -0
- package/dist/modules/observability/metrics/job-observability.runner.d.ts +17 -0
- package/dist/modules/observability/metrics/job-observability.runner.d.ts.map +1 -0
- package/dist/modules/observability/metrics/job-observability.runner.js +98 -0
- package/dist/modules/observability/metrics/job-observability.runner.js.map +1 -0
- package/dist/modules/observability/metrics/metrics.service.d.ts +35 -0
- package/dist/modules/observability/metrics/metrics.service.d.ts.map +1 -0
- package/dist/modules/observability/metrics/metrics.service.js +165 -0
- package/dist/modules/observability/metrics/metrics.service.js.map +1 -0
- package/dist/modules/observability/metrics/queue-metrics.collector.d.ts +11 -0
- package/dist/modules/observability/metrics/queue-metrics.collector.d.ts.map +1 -0
- package/dist/modules/observability/metrics/queue-metrics.collector.js +65 -0
- package/dist/modules/observability/metrics/queue-metrics.collector.js.map +1 -0
- package/dist/modules/observability/observability-lifecycle.service.d.ts +5 -0
- package/dist/modules/observability/observability-lifecycle.service.d.ts.map +1 -0
- package/dist/modules/observability/observability-lifecycle.service.js +23 -0
- package/dist/modules/observability/observability-lifecycle.service.js.map +1 -0
- package/dist/modules/observability/observability.module.d.ts +5 -0
- package/dist/modules/observability/observability.module.d.ts.map +1 -0
- package/dist/modules/observability/observability.module.js +108 -0
- package/dist/modules/observability/observability.module.js.map +1 -0
- package/dist/modules/observability/tracing/tracing.bootstrap.d.ts +9 -0
- package/dist/modules/observability/tracing/tracing.bootstrap.d.ts.map +1 -0
- package/dist/modules/observability/tracing/tracing.bootstrap.js +52 -0
- package/dist/modules/observability/tracing/tracing.bootstrap.js.map +1 -0
- package/dist/modules/observability/tracing/tracing.service.d.ts +12 -0
- package/dist/modules/observability/tracing/tracing.service.d.ts.map +1 -0
- package/dist/modules/observability/tracing/tracing.service.js +79 -0
- package/dist/modules/observability/tracing/tracing.service.js.map +1 -0
- package/dist/modules/observability/tracing/w3c-trace.util.d.ts +9 -0
- package/dist/modules/observability/tracing/w3c-trace.util.d.ts.map +1 -0
- package/dist/modules/observability/tracing/w3c-trace.util.js +51 -0
- package/dist/modules/observability/tracing/w3c-trace.util.js.map +1 -0
- package/dist/modules/observability/types/job-context.d.ts +8 -0
- package/dist/modules/observability/types/job-context.d.ts.map +1 -0
- package/dist/modules/observability/types/job-context.js +3 -0
- package/dist/modules/observability/types/job-context.js.map +1 -0
- package/dist/modules/observability/types/observability-context.d.ts +10 -0
- package/dist/modules/observability/types/observability-context.d.ts.map +1 -0
- package/dist/modules/observability/types/observability-context.js +3 -0
- package/dist/modules/observability/types/observability-context.js.map +1 -0
- package/dist/modules/observability/types/structured-log.types.d.ts +28 -0
- package/dist/modules/observability/types/structured-log.types.d.ts.map +1 -0
- package/dist/modules/observability/types/structured-log.types.js +3 -0
- package/dist/modules/observability/types/structured-log.types.js.map +1 -0
- package/dist/modules/observability/utils/ip-allowlist.util.d.ts +3 -0
- package/dist/modules/observability/utils/ip-allowlist.util.d.ts.map +1 -0
- package/dist/modules/observability/utils/ip-allowlist.util.js +51 -0
- package/dist/modules/observability/utils/ip-allowlist.util.js.map +1 -0
- package/dist/modules/observability/utils/route-template.util.d.ts +4 -0
- package/dist/modules/observability/utils/route-template.util.d.ts.map +1 -0
- package/dist/modules/observability/utils/route-template.util.js +23 -0
- package/dist/modules/observability/utils/route-template.util.js.map +1 -0
- package/dist/modules/observability/utils/status-class.util.d.ts +3 -0
- package/dist/modules/observability/utils/status-class.util.d.ts.map +1 -0
- package/dist/modules/observability/utils/status-class.util.js +16 -0
- package/dist/modules/observability/utils/status-class.util.js.map +1 -0
- package/dist/modules/otp/constants/otp.constants.d.ts +15 -0
- package/dist/modules/otp/constants/otp.constants.d.ts.map +1 -0
- package/dist/modules/otp/constants/otp.constants.js +30 -0
- package/dist/modules/otp/constants/otp.constants.js.map +1 -0
- package/dist/modules/otp/email/email-provider.interface.d.ts +29 -0
- package/dist/modules/otp/email/email-provider.interface.d.ts.map +1 -0
- package/dist/modules/otp/email/email-provider.interface.js +26 -0
- package/dist/modules/otp/email/email-provider.interface.js.map +1 -0
- package/dist/modules/otp/email/email-proxy.service.d.ts +26 -0
- package/dist/modules/otp/email/email-proxy.service.d.ts.map +1 -0
- package/dist/modules/otp/email/email-proxy.service.js +78 -0
- package/dist/modules/otp/email/email-proxy.service.js.map +1 -0
- package/dist/modules/otp/email/email.module.d.ts +3 -0
- package/dist/modules/otp/email/email.module.d.ts.map +1 -0
- package/dist/modules/otp/email/email.module.js +21 -0
- package/dist/modules/otp/email/email.module.js.map +1 -0
- package/dist/modules/otp/email/email.types.d.ts +23 -0
- package/dist/modules/otp/email/email.types.d.ts.map +1 -0
- package/dist/modules/otp/email/email.types.js +20 -0
- package/dist/modules/otp/email/email.types.js.map +1 -0
- package/dist/modules/otp/email/index.d.ts +4 -0
- package/dist/modules/otp/email/index.d.ts.map +1 -0
- package/dist/modules/otp/email/index.js +20 -0
- package/dist/modules/otp/email/index.js.map +1 -0
- package/dist/modules/otp/email/providers/index.d.ts +2 -0
- package/dist/modules/otp/email/providers/index.d.ts.map +1 -0
- package/dist/modules/otp/email/providers/index.js +18 -0
- package/dist/modules/otp/email/providers/index.js.map +1 -0
- package/dist/modules/otp/email/providers/mailgun.provider.d.ts +10 -0
- package/dist/modules/otp/email/providers/mailgun.provider.d.ts.map +1 -0
- package/dist/modules/otp/email/providers/mailgun.provider.js +60 -0
- package/dist/modules/otp/email/providers/mailgun.provider.js.map +1 -0
- package/dist/modules/otp/email/providers/resend.provider.d.ts +10 -0
- package/dist/modules/otp/email/providers/resend.provider.d.ts.map +1 -0
- package/dist/modules/otp/email/providers/resend.provider.js +58 -0
- package/dist/modules/otp/email/providers/resend.provider.js.map +1 -0
- package/dist/modules/otp/email/providers/sendgrid.provider.d.ts +10 -0
- package/dist/modules/otp/email/providers/sendgrid.provider.d.ts.map +1 -0
- package/dist/modules/otp/email/providers/sendgrid.provider.js +59 -0
- package/dist/modules/otp/email/providers/sendgrid.provider.js.map +1 -0
- package/dist/modules/otp/email/providers/smtp.provider.d.ts +22 -0
- package/dist/modules/otp/email/providers/smtp.provider.d.ts.map +1 -0
- package/dist/modules/otp/email/providers/smtp.provider.js +130 -0
- package/dist/modules/otp/email/providers/smtp.provider.js.map +1 -0
- package/dist/modules/otp/email/smtp-email.service.d.ts +21 -0
- package/dist/modules/otp/email/smtp-email.service.d.ts.map +1 -0
- package/dist/modules/otp/email/smtp-email.service.js +126 -0
- package/dist/modules/otp/email/smtp-email.service.js.map +1 -0
- package/dist/modules/otp/index.d.ts +5 -0
- package/dist/modules/otp/index.d.ts.map +1 -0
- package/dist/modules/otp/index.js +21 -0
- package/dist/modules/otp/index.js.map +1 -0
- package/dist/modules/otp/interfaces/otp.service.interface.d.ts +89 -0
- package/dist/modules/otp/interfaces/otp.service.interface.d.ts.map +1 -0
- package/dist/modules/otp/interfaces/otp.service.interface.js +7 -0
- package/dist/modules/otp/interfaces/otp.service.interface.js.map +1 -0
- package/dist/modules/otp/otp.module.d.ts +3 -0
- package/dist/modules/otp/otp.module.d.ts.map +1 -0
- package/dist/modules/otp/otp.module.js +32 -0
- package/dist/modules/otp/otp.module.js.map +1 -0
- package/dist/modules/otp/otp.service.d.ts +40 -0
- package/dist/modules/otp/otp.service.d.ts.map +1 -0
- package/dist/modules/otp/otp.service.js +218 -0
- package/dist/modules/otp/otp.service.js.map +1 -0
- package/dist/modules/otp/services/otp.rate-limiter.d.ts +29 -0
- package/dist/modules/otp/services/otp.rate-limiter.d.ts.map +1 -0
- package/dist/modules/otp/services/otp.rate-limiter.js +88 -0
- package/dist/modules/otp/services/otp.rate-limiter.js.map +1 -0
- package/dist/modules/otp/services/otp.session.store.d.ts +54 -0
- package/dist/modules/otp/services/otp.session.store.d.ts.map +1 -0
- package/dist/modules/otp/services/otp.session.store.js +291 -0
- package/dist/modules/otp/services/otp.session.store.js.map +1 -0
- package/dist/modules/otp/sms/index.d.ts +4 -0
- package/dist/modules/otp/sms/index.d.ts.map +1 -0
- package/dist/modules/otp/sms/index.js +20 -0
- package/dist/modules/otp/sms/index.js.map +1 -0
- package/dist/modules/otp/sms/providers/index.d.ts +5 -0
- package/dist/modules/otp/sms/providers/index.d.ts.map +1 -0
- package/dist/modules/otp/sms/providers/index.js +21 -0
- package/dist/modules/otp/sms/providers/index.js.map +1 -0
- package/dist/modules/otp/sms/providers/infobip.provider.d.ts +10 -0
- package/dist/modules/otp/sms/providers/infobip.provider.d.ts.map +1 -0
- package/dist/modules/otp/sms/providers/infobip.provider.js +62 -0
- package/dist/modules/otp/sms/providers/infobip.provider.js.map +1 -0
- package/dist/modules/otp/sms/providers/smart-sms.provider.d.ts +11 -0
- package/dist/modules/otp/sms/providers/smart-sms.provider.d.ts.map +1 -0
- package/dist/modules/otp/sms/providers/smart-sms.provider.js +57 -0
- package/dist/modules/otp/sms/providers/smart-sms.provider.js.map +1 -0
- package/dist/modules/otp/sms/providers/termii.provider.d.ts +11 -0
- package/dist/modules/otp/sms/providers/termii.provider.d.ts.map +1 -0
- package/dist/modules/otp/sms/providers/termii.provider.js +57 -0
- package/dist/modules/otp/sms/providers/termii.provider.js.map +1 -0
- package/dist/modules/otp/sms/providers/twilio.provider.d.ts +10 -0
- package/dist/modules/otp/sms/providers/twilio.provider.d.ts.map +1 -0
- package/dist/modules/otp/sms/providers/twilio.provider.js +60 -0
- package/dist/modules/otp/sms/providers/twilio.provider.js.map +1 -0
- package/dist/modules/otp/sms/sms-provider.interface.d.ts +26 -0
- package/dist/modules/otp/sms/sms-provider.interface.d.ts.map +1 -0
- package/dist/modules/otp/sms/sms-provider.interface.js +27 -0
- package/dist/modules/otp/sms/sms-provider.interface.js.map +1 -0
- package/dist/modules/otp/sms/sms-proxy.service.d.ts +26 -0
- package/dist/modules/otp/sms/sms-proxy.service.d.ts.map +1 -0
- package/dist/modules/otp/sms/sms-proxy.service.js +78 -0
- package/dist/modules/otp/sms/sms-proxy.service.js.map +1 -0
- package/dist/modules/otp/sms/sms.module.d.ts +3 -0
- package/dist/modules/otp/sms/sms.module.d.ts.map +1 -0
- package/dist/modules/otp/sms/sms.module.js +33 -0
- package/dist/modules/otp/sms/sms.module.js.map +1 -0
- package/dist/modules/otp/utils/otp.utils.d.ts +38 -0
- package/dist/modules/otp/utils/otp.utils.d.ts.map +1 -0
- package/dist/modules/otp/utils/otp.utils.js +99 -0
- package/dist/modules/otp/utils/otp.utils.js.map +1 -0
- package/dist/modules/profile/controllers/profile.controller.d.ts +14 -0
- package/dist/modules/profile/controllers/profile.controller.d.ts.map +1 -0
- package/dist/modules/profile/controllers/profile.controller.js +98 -0
- package/dist/modules/profile/controllers/profile.controller.js.map +1 -0
- package/dist/modules/profile/dto/address.dto.d.ts +9 -0
- package/dist/modules/profile/dto/address.dto.d.ts.map +1 -0
- package/dist/modules/profile/dto/address.dto.js +60 -0
- package/dist/modules/profile/dto/address.dto.js.map +1 -0
- package/dist/modules/profile/dto/create-user-profile.dto.d.ts +35 -0
- package/dist/modules/profile/dto/create-user-profile.dto.d.ts.map +1 -0
- package/dist/modules/profile/dto/create-user-profile.dto.js +195 -0
- package/dist/modules/profile/dto/create-user-profile.dto.js.map +1 -0
- package/dist/modules/profile/dto/user-profile-filter.dto.d.ts +10 -0
- package/dist/modules/profile/dto/user-profile-filter.dto.d.ts.map +1 -0
- package/dist/modules/profile/dto/user-profile-filter.dto.js +68 -0
- package/dist/modules/profile/dto/user-profile-filter.dto.js.map +1 -0
- package/dist/modules/profile/dto/user-profile-response.dto.d.ts +30 -0
- package/dist/modules/profile/dto/user-profile-response.dto.d.ts.map +1 -0
- package/dist/modules/profile/dto/user-profile-response.dto.js +33 -0
- package/dist/modules/profile/dto/user-profile-response.dto.js.map +1 -0
- package/dist/modules/profile/entities/index.d.ts +2 -0
- package/dist/modules/profile/entities/index.d.ts.map +1 -0
- package/dist/modules/profile/entities/index.js +18 -0
- package/dist/modules/profile/entities/index.js.map +1 -0
- package/dist/modules/profile/entities/user-profiles.entity.d.ts +38 -0
- package/dist/modules/profile/entities/user-profiles.entity.d.ts.map +1 -0
- package/dist/modules/profile/entities/user-profiles.entity.js +264 -0
- package/dist/modules/profile/entities/user-profiles.entity.js.map +1 -0
- package/dist/modules/profile/index.d.ts +9 -0
- package/dist/modules/profile/index.d.ts.map +1 -0
- package/dist/modules/profile/index.js +25 -0
- package/dist/modules/profile/index.js.map +1 -0
- package/dist/modules/profile/profile.manifest.d.ts +7 -0
- package/dist/modules/profile/profile.manifest.d.ts.map +1 -0
- package/dist/modules/profile/profile.manifest.js +25 -0
- package/dist/modules/profile/profile.manifest.js.map +1 -0
- package/dist/modules/profile/profile.module.d.ts +3 -0
- package/dist/modules/profile/profile.module.d.ts.map +1 -0
- package/dist/modules/profile/profile.module.js +35 -0
- package/dist/modules/profile/profile.module.js.map +1 -0
- package/dist/modules/profile/services/profile.service.d.ts +32 -0
- package/dist/modules/profile/services/profile.service.d.ts.map +1 -0
- package/dist/modules/profile/services/profile.service.js +185 -0
- package/dist/modules/profile/services/profile.service.js.map +1 -0
- package/dist/modules/roles/controllers/index.d.ts +5 -0
- package/dist/modules/roles/controllers/index.d.ts.map +1 -0
- package/dist/modules/roles/controllers/index.js +12 -0
- package/dist/modules/roles/controllers/index.js.map +1 -0
- package/dist/modules/roles/controllers/modules.controller.d.ts +14 -0
- package/dist/modules/roles/controllers/modules.controller.d.ts.map +1 -0
- package/dist/modules/roles/controllers/modules.controller.js +83 -0
- package/dist/modules/roles/controllers/modules.controller.js.map +1 -0
- package/dist/modules/roles/controllers/permissions.controller.d.ts +14 -0
- package/dist/modules/roles/controllers/permissions.controller.d.ts.map +1 -0
- package/dist/modules/roles/controllers/permissions.controller.js +84 -0
- package/dist/modules/roles/controllers/permissions.controller.js.map +1 -0
- package/dist/modules/roles/controllers/roles.controller.d.ts +17 -0
- package/dist/modules/roles/controllers/roles.controller.d.ts.map +1 -0
- package/dist/modules/roles/controllers/roles.controller.js +94 -0
- package/dist/modules/roles/controllers/roles.controller.js.map +1 -0
- package/dist/modules/roles/controllers/user-roles.controller.d.ts +11 -0
- package/dist/modules/roles/controllers/user-roles.controller.d.ts.map +1 -0
- package/dist/modules/roles/controllers/user-roles.controller.js +95 -0
- package/dist/modules/roles/controllers/user-roles.controller.js.map +1 -0
- package/dist/modules/roles/dto/index.d.ts +4 -0
- package/dist/modules/roles/dto/index.d.ts.map +1 -0
- package/dist/modules/roles/dto/index.js +20 -0
- package/dist/modules/roles/dto/index.js.map +1 -0
- package/dist/modules/roles/dto/module.dto.d.ts +10 -0
- package/dist/modules/roles/dto/module.dto.d.ts.map +1 -0
- package/dist/modules/roles/dto/module.dto.js +53 -0
- package/dist/modules/roles/dto/module.dto.js.map +1 -0
- package/dist/modules/roles/dto/permission.dto.d.ts +14 -0
- package/dist/modules/roles/dto/permission.dto.d.ts.map +1 -0
- package/dist/modules/roles/dto/permission.dto.js +67 -0
- package/dist/modules/roles/dto/permission.dto.js.map +1 -0
- package/dist/modules/roles/dto/role.dto.d.ts +15 -0
- package/dist/modules/roles/dto/role.dto.d.ts.map +1 -0
- package/dist/modules/roles/dto/role.dto.js +73 -0
- package/dist/modules/roles/dto/role.dto.js.map +1 -0
- package/dist/modules/roles/entities/index.d.ts +4 -0
- package/dist/modules/roles/entities/index.d.ts.map +1 -0
- package/dist/modules/roles/entities/index.js +10 -0
- package/dist/modules/roles/entities/index.js.map +1 -0
- package/dist/modules/roles/entities/module.entity.d.ts +9 -0
- package/dist/modules/roles/entities/module.entity.d.ts.map +1 -0
- package/dist/modules/roles/entities/module.entity.js +43 -0
- package/dist/modules/roles/entities/module.entity.js.map +1 -0
- package/dist/modules/roles/entities/permission.entity.d.ts +12 -0
- package/dist/modules/roles/entities/permission.entity.d.ts.map +1 -0
- package/dist/modules/roles/entities/permission.entity.js +55 -0
- package/dist/modules/roles/entities/permission.entity.js.map +1 -0
- package/dist/modules/roles/entities/role.entity.d.ts +11 -0
- package/dist/modules/roles/entities/role.entity.d.ts.map +1 -0
- package/dist/modules/roles/entities/role.entity.js +54 -0
- package/dist/modules/roles/entities/role.entity.js.map +1 -0
- package/dist/modules/roles/index.d.ts +7 -0
- package/dist/modules/roles/index.d.ts.map +1 -0
- package/dist/modules/roles/index.js +25 -0
- package/dist/modules/roles/index.js.map +1 -0
- package/dist/modules/roles/registry/discover-manifests.d.ts +17 -0
- package/dist/modules/roles/registry/discover-manifests.d.ts.map +1 -0
- package/dist/modules/roles/registry/discover-manifests.js +133 -0
- package/dist/modules/roles/registry/discover-manifests.js.map +1 -0
- package/dist/modules/roles/registry/index.d.ts +3 -0
- package/dist/modules/roles/registry/index.d.ts.map +1 -0
- package/dist/modules/roles/registry/index.js +9 -0
- package/dist/modules/roles/registry/index.js.map +1 -0
- package/dist/modules/roles/registry/sync-manifests-to-db.d.ts +11 -0
- package/dist/modules/roles/registry/sync-manifests-to-db.d.ts.map +1 -0
- package/dist/modules/roles/registry/sync-manifests-to-db.js +61 -0
- package/dist/modules/roles/registry/sync-manifests-to-db.js.map +1 -0
- package/dist/modules/roles/roles.manifest.d.ts +12 -0
- package/dist/modules/roles/roles.manifest.d.ts.map +1 -0
- package/dist/modules/roles/roles.manifest.js +51 -0
- package/dist/modules/roles/roles.manifest.js.map +1 -0
- package/dist/modules/roles/roles.module.d.ts +3 -0
- package/dist/modules/roles/roles.module.d.ts.map +1 -0
- package/dist/modules/roles/roles.module.js +28 -0
- package/dist/modules/roles/roles.module.js.map +1 -0
- package/dist/modules/roles/services/index.d.ts +5 -0
- package/dist/modules/roles/services/index.d.ts.map +1 -0
- package/dist/modules/roles/services/index.js +12 -0
- package/dist/modules/roles/services/index.js.map +1 -0
- package/dist/modules/roles/services/modules.service.d.ts +14 -0
- package/dist/modules/roles/services/modules.service.d.ts.map +1 -0
- package/dist/modules/roles/services/modules.service.js +70 -0
- package/dist/modules/roles/services/modules.service.js.map +1 -0
- package/dist/modules/roles/services/permissions.service.d.ts +16 -0
- package/dist/modules/roles/services/permissions.service.d.ts.map +1 -0
- package/dist/modules/roles/services/permissions.service.js +80 -0
- package/dist/modules/roles/services/permissions.service.js.map +1 -0
- package/dist/modules/roles/services/roles.service.d.ts +45 -0
- package/dist/modules/roles/services/roles.service.d.ts.map +1 -0
- package/dist/modules/roles/services/roles.service.js +175 -0
- package/dist/modules/roles/services/roles.service.js.map +1 -0
- package/dist/modules/roles/services/user-roles.service.d.ts +26 -0
- package/dist/modules/roles/services/user-roles.service.d.ts.map +1 -0
- package/dist/modules/roles/services/user-roles.service.js +113 -0
- package/dist/modules/roles/services/user-roles.service.js.map +1 -0
- package/dist/modules/roles/types/manifest.types.d.ts +12 -0
- package/dist/modules/roles/types/manifest.types.d.ts.map +1 -0
- package/dist/modules/roles/types/manifest.types.js +3 -0
- package/dist/modules/roles/types/manifest.types.js.map +1 -0
- package/dist/modules/sessions/controllers/session.controller.d.ts +17 -0
- package/dist/modules/sessions/controllers/session.controller.d.ts.map +1 -0
- package/dist/modules/sessions/controllers/session.controller.js +124 -0
- package/dist/modules/sessions/controllers/session.controller.js.map +1 -0
- package/dist/modules/sessions/entities/refresh-token.entity.d.ts +30 -0
- package/dist/modules/sessions/entities/refresh-token.entity.d.ts.map +1 -0
- package/dist/modules/sessions/entities/refresh-token.entity.js +96 -0
- package/dist/modules/sessions/entities/refresh-token.entity.js.map +1 -0
- package/dist/modules/sessions/index.d.ts +4 -0
- package/dist/modules/sessions/index.d.ts.map +1 -0
- package/dist/modules/sessions/index.js +20 -0
- package/dist/modules/sessions/index.js.map +1 -0
- package/dist/modules/sessions/services/token.service.d.ts +102 -0
- package/dist/modules/sessions/services/token.service.d.ts.map +1 -0
- package/dist/modules/sessions/services/token.service.js +374 -0
- package/dist/modules/sessions/services/token.service.js.map +1 -0
- package/dist/modules/sessions/sessions.module.d.ts +3 -0
- package/dist/modules/sessions/sessions.module.d.ts.map +1 -0
- package/dist/modules/sessions/sessions.module.js +32 -0
- package/dist/modules/sessions/sessions.module.js.map +1 -0
- package/dist/modules/settings/constants/settings.defaults.d.ts +109 -0
- package/dist/modules/settings/constants/settings.defaults.d.ts.map +1 -0
- package/dist/modules/settings/constants/settings.defaults.js +168 -0
- package/dist/modules/settings/constants/settings.defaults.js.map +1 -0
- package/dist/modules/settings/constants/settings.keys.d.ts +180 -0
- package/dist/modules/settings/constants/settings.keys.d.ts.map +1 -0
- package/dist/modules/settings/constants/settings.keys.js +196 -0
- package/dist/modules/settings/constants/settings.keys.js.map +1 -0
- package/dist/modules/settings/controllers/settings.controller.d.ts +22 -0
- package/dist/modules/settings/controllers/settings.controller.d.ts.map +1 -0
- package/dist/modules/settings/controllers/settings.controller.js +109 -0
- package/dist/modules/settings/controllers/settings.controller.js.map +1 -0
- package/dist/modules/settings/dto/settings.dto.d.ts +4 -0
- package/dist/modules/settings/dto/settings.dto.d.ts.map +1 -0
- package/dist/modules/settings/dto/settings.dto.js +25 -0
- package/dist/modules/settings/dto/settings.dto.js.map +1 -0
- package/dist/modules/settings/entities/app-setting.entity.d.ts +18 -0
- package/dist/modules/settings/entities/app-setting.entity.d.ts.map +1 -0
- package/dist/modules/settings/entities/app-setting.entity.js +79 -0
- package/dist/modules/settings/entities/app-setting.entity.js.map +1 -0
- package/dist/modules/settings/index.d.ts +8 -0
- package/dist/modules/settings/index.d.ts.map +1 -0
- package/dist/modules/settings/index.js +24 -0
- package/dist/modules/settings/index.js.map +1 -0
- package/dist/modules/settings/services/settings.service.d.ts +64 -0
- package/dist/modules/settings/services/settings.service.d.ts.map +1 -0
- package/dist/modules/settings/services/settings.service.js +191 -0
- package/dist/modules/settings/services/settings.service.js.map +1 -0
- package/dist/modules/settings/settings.manifest.d.ts +7 -0
- package/dist/modules/settings/settings.manifest.d.ts.map +1 -0
- package/dist/modules/settings/settings.manifest.js +25 -0
- package/dist/modules/settings/settings.manifest.js.map +1 -0
- package/dist/modules/settings/settings.module.d.ts +3 -0
- package/dist/modules/settings/settings.module.d.ts.map +1 -0
- package/dist/modules/settings/settings.module.js +27 -0
- package/dist/modules/settings/settings.module.js.map +1 -0
- package/dist/modules/users/controllers/users.controller.d.ts +34 -0
- package/dist/modules/users/controllers/users.controller.d.ts.map +1 -0
- package/dist/modules/users/controllers/users.controller.js +252 -0
- package/dist/modules/users/controllers/users.controller.js.map +1 -0
- package/dist/modules/users/dto/user.dto.d.ts +59 -0
- package/dist/modules/users/dto/user.dto.d.ts.map +1 -0
- package/dist/modules/users/dto/user.dto.js +273 -0
- package/dist/modules/users/dto/user.dto.js.map +1 -0
- package/dist/modules/users/entities/user.entity.d.ts +46 -0
- package/dist/modules/users/entities/user.entity.d.ts.map +1 -0
- package/dist/modules/users/entities/user.entity.js +317 -0
- package/dist/modules/users/entities/user.entity.js.map +1 -0
- package/dist/modules/users/index.d.ts +6 -0
- package/dist/modules/users/index.d.ts.map +1 -0
- package/dist/modules/users/index.js +22 -0
- package/dist/modules/users/index.js.map +1 -0
- package/dist/modules/users/services/users.service.d.ts +67 -0
- package/dist/modules/users/services/users.service.d.ts.map +1 -0
- package/dist/modules/users/services/users.service.js +530 -0
- package/dist/modules/users/services/users.service.js.map +1 -0
- package/dist/modules/users/users.manifest.d.ts +12 -0
- package/dist/modules/users/users.manifest.d.ts.map +1 -0
- package/dist/modules/users/users.manifest.js +43 -0
- package/dist/modules/users/users.manifest.js.map +1 -0
- package/dist/modules/users/users.module.d.ts +3 -0
- package/dist/modules/users/users.module.d.ts.map +1 -0
- package/dist/modules/users/users.module.js +37 -0
- package/dist/modules/users/users.module.js.map +1 -0
- package/package.json +193 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
## 1.0.0 (2026-07-20)
|
|
2
|
+
|
|
3
|
+
### ⚠ BREAKING CHANGES
|
|
4
|
+
|
|
5
|
+
* first public release of @colveor/core on npm.
|
|
6
|
+
|
|
7
|
+
Co-authored-by: Cursor <cursoragent@cursor.com>
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* initial public release of @colveor/core ([ae45c30](https://github.com/colveor/core/commit/ae45c30e89cf5057e4b585fd9557d85b2e66425b))
|
|
12
|
+
|
|
13
|
+
### Bug Fixes
|
|
14
|
+
|
|
15
|
+
* **release:** resolve @colveor/devkit from npm registry in lockfile ([b20e0c2](https://github.com/colveor/core/commit/b20e0c22a3696acfee5ec9919aeebb3b777ef8cd))
|
|
16
|
+
* **release:** wire core publishing to npm devkit and semantic-release ([11f7057](https://github.com/colveor/core/commit/11f70576786f963e58d9238d0d7eaf6cc4a02f9d))
|
|
17
|
+
|
|
18
|
+
# Changelog
|
|
19
|
+
|
|
20
|
+
All notable changes to this project will be documented in this file by semantic-release.
|
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Skyapp Labs
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
# @colveor/core
|
|
2
|
+
|
|
3
|
+
The core package of the Colveor ecosystem — reusable NestJS modules for authentication, users, roles, notifications, file uploads, and shared application infrastructure.
|
|
4
|
+
|
|
5
|
+
Built for Node.js 20+ and designed to compose with other Colveor packages such as [`@colveor/fintech`](https://github.com/colveor/fintech).
|
|
6
|
+
|
|
7
|
+
## Features
|
|
8
|
+
|
|
9
|
+
- Authentication (JWT, OTP, PIN, sessions)
|
|
10
|
+
- Users, profiles, roles, and permissions
|
|
11
|
+
- Invitations and admin tooling
|
|
12
|
+
- Push notifications and delivery (email, SMS, push)
|
|
13
|
+
- File uploads (R2/S3-compatible storage)
|
|
14
|
+
- Observability (structured logging, metrics, tracing)
|
|
15
|
+
- Settings, health checks, and database seeds
|
|
16
|
+
|
|
17
|
+
## Quick start
|
|
18
|
+
|
|
19
|
+
Install in a NestJS host app:
|
|
20
|
+
|
|
21
|
+
```bash
|
|
22
|
+
npm install @colveor/core
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
Minimal `AppModule`:
|
|
26
|
+
|
|
27
|
+
```ts
|
|
28
|
+
import { CoreModule, createCoreConfigModule, createTypeOrmOptions } from '@colveor/core';
|
|
29
|
+
|
|
30
|
+
@Module({
|
|
31
|
+
imports: [
|
|
32
|
+
createCoreConfigModule({ envFilePath: ['.env.local', '.env'] }),
|
|
33
|
+
TypeOrmModule.forRootAsync({
|
|
34
|
+
useFactory: (config) =>
|
|
35
|
+
createTypeOrmOptions(config, {
|
|
36
|
+
entities: [__dirname + '/**/*.entity{.ts,.js}'],
|
|
37
|
+
autoLoadEntities: true,
|
|
38
|
+
}),
|
|
39
|
+
inject: [ConfigService],
|
|
40
|
+
}),
|
|
41
|
+
CoreModule.forRoot(),
|
|
42
|
+
],
|
|
43
|
+
})
|
|
44
|
+
export class AppModule {}
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
Bootstrap with shared defaults:
|
|
48
|
+
|
|
49
|
+
```ts
|
|
50
|
+
import { runColveorApp } from '@colveor/core';
|
|
51
|
+
import { AppModule } from './app.module';
|
|
52
|
+
|
|
53
|
+
runColveorApp(AppModule, {
|
|
54
|
+
swagger: { title: 'My API', description: 'API docs' },
|
|
55
|
+
});
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
## Local example app
|
|
59
|
+
|
|
60
|
+
See [`example/README.md`](example/README.md) for a minimal consumer app that tests migrations, seeds, and Swagger locally.
|
|
61
|
+
|
|
62
|
+
```bash
|
|
63
|
+
cd example
|
|
64
|
+
cp .env.example .env
|
|
65
|
+
npm install
|
|
66
|
+
npm run setup:local
|
|
67
|
+
npm run start:dev
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
## Development
|
|
71
|
+
|
|
72
|
+
```bash
|
|
73
|
+
npm install
|
|
74
|
+
npm run check # lint + typecheck
|
|
75
|
+
npm test
|
|
76
|
+
npm run build
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
Shared tooling comes from [`@colveor/devkit`](https://github.com/colveor/devkit).
|
|
80
|
+
|
|
81
|
+
## Related packages
|
|
82
|
+
|
|
83
|
+
| Package | Purpose |
|
|
84
|
+
| ------------------ | ------------------------------------------------------ |
|
|
85
|
+
| `@colveor/devkit` | Shared ESLint, Jest, Prettier, release, and CI configs |
|
|
86
|
+
| `@colveor/fintech` | Wallets, payments, ledger, KYC, and financial modules |
|
|
87
|
+
|
|
88
|
+
## License
|
|
89
|
+
|
|
90
|
+
MIT © Skyapp Labs
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { type Type } from '@nestjs/common';
|
|
2
|
+
import type { NestExpressApplication } from '@nestjs/platform-express';
|
|
3
|
+
import type { ColveorBootstrapOptions } from './bootstrap.types';
|
|
4
|
+
/**
|
|
5
|
+
* Creates, configures, and starts a NestJS Express application with production-grade
|
|
6
|
+
* defaults: Helmet, compression, CORS, global validation, shutdown hooks, request-ID
|
|
7
|
+
* propagation, configurable Swagger, and graceful-drain server timeouts.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```ts
|
|
11
|
+
* // main.ts
|
|
12
|
+
* import 'dotenv/config';
|
|
13
|
+
* import { runColveorApp } from '@colveor/core';
|
|
14
|
+
* import { AppModule } from './app.module';
|
|
15
|
+
*
|
|
16
|
+
* runColveorApp(AppModule, {
|
|
17
|
+
* swagger: { title: 'My API', description: 'API docs', forceEnable: true },
|
|
18
|
+
* });
|
|
19
|
+
* ```
|
|
20
|
+
*/
|
|
21
|
+
export declare function bootstrapColveorApp(appModule: Type<unknown>, options?: ColveorBootstrapOptions): Promise<NestExpressApplication>;
|
|
22
|
+
/**
|
|
23
|
+
* Fire-and-forget variant of `bootstrapColveorApp`.
|
|
24
|
+
* Catches startup errors, logs them as `fatal`, and exits with code 1.
|
|
25
|
+
* Use this as the last line of `main.ts`.
|
|
26
|
+
*/
|
|
27
|
+
export declare function runColveorApp(appModule: Type<unknown>, options?: ColveorBootstrapOptions): void;
|
|
28
|
+
//# sourceMappingURL=bootstrap-colveor-app.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bootstrap-colveor-app.d.ts","sourceRoot":"","sources":["../../src/bootstrap/bootstrap-colveor-app.ts"],"names":[],"mappings":"AAAA,OAAO,EAA+B,KAAK,IAAI,EAAkB,MAAM,gBAAgB,CAAC;AAGxF,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAUvE,OAAO,KAAK,EAAE,uBAAuB,EAA4B,MAAM,mBAAmB,CAAC;AAqB3F;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAsB,mBAAmB,CACxC,SAAS,EAAE,IAAI,CAAC,OAAO,CAAC,EACxB,OAAO,GAAE,uBAA4B,GACnC,OAAO,CAAC,sBAAsB,CAAC,CAuDjC;AAED;;;;GAIG;AACH,wBAAgB,aAAa,CAC5B,SAAS,EAAE,IAAI,CAAC,OAAO,CAAC,EACxB,OAAO,GAAE,uBAA4B,GACnC,IAAI,CAQN"}
|
|
@@ -0,0 +1,238 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.bootstrapColveorApp = bootstrapColveorApp;
|
|
7
|
+
exports.runColveorApp = runColveorApp;
|
|
8
|
+
const common_1 = require("@nestjs/common");
|
|
9
|
+
const config_1 = require("@nestjs/config");
|
|
10
|
+
const core_1 = require("@nestjs/core");
|
|
11
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
12
|
+
const compression_1 = __importDefault(require("compression"));
|
|
13
|
+
const helmet_1 = __importDefault(require("helmet"));
|
|
14
|
+
const middlewares_1 = require("../common/middlewares");
|
|
15
|
+
const validation_1 = require("../common/utils/validation");
|
|
16
|
+
const env_flags_util_1 = require("../config/env-flags.util");
|
|
17
|
+
const observability_1 = require("../modules/observability");
|
|
18
|
+
const logger_utils_1 = require("./logger.utils");
|
|
19
|
+
const metrics_prefix_alias_middleware_1 = require("./metrics-prefix-alias.middleware");
|
|
20
|
+
const observability_bootstrap_1 = require("./observability.bootstrap");
|
|
21
|
+
// ─── Defaults ─────────────────────────────────────────────────────────────────
|
|
22
|
+
const DEFAULT_PREFIX_EXCLUDE = [
|
|
23
|
+
'/',
|
|
24
|
+
'status',
|
|
25
|
+
'docs',
|
|
26
|
+
'docs-json',
|
|
27
|
+
'metrics',
|
|
28
|
+
'health/liveness',
|
|
29
|
+
'health/readiness',
|
|
30
|
+
];
|
|
31
|
+
const DEFAULT_CORS_METHODS = 'GET,HEAD,PUT,PATCH,POST,DELETE,OPTIONS';
|
|
32
|
+
// ─── Public API ───────────────────────────────────────────────────────────────
|
|
33
|
+
/**
|
|
34
|
+
* Creates, configures, and starts a NestJS Express application with production-grade
|
|
35
|
+
* defaults: Helmet, compression, CORS, global validation, shutdown hooks, request-ID
|
|
36
|
+
* propagation, configurable Swagger, and graceful-drain server timeouts.
|
|
37
|
+
*
|
|
38
|
+
* @example
|
|
39
|
+
* ```ts
|
|
40
|
+
* // main.ts
|
|
41
|
+
* import 'dotenv/config';
|
|
42
|
+
* import { runColveorApp } from '@colveor/core';
|
|
43
|
+
* import { AppModule } from './app.module';
|
|
44
|
+
*
|
|
45
|
+
* runColveorApp(AppModule, {
|
|
46
|
+
* swagger: { title: 'My API', description: 'API docs', forceEnable: true },
|
|
47
|
+
* });
|
|
48
|
+
* ```
|
|
49
|
+
*/
|
|
50
|
+
async function bootstrapColveorApp(appModule, options = {}) {
|
|
51
|
+
const logger = new common_1.Logger('Bootstrap');
|
|
52
|
+
(0, observability_bootstrap_1.prepareObservability)();
|
|
53
|
+
const loggerLevels = options.logger ?? (0, logger_utils_1.getLoggerLevels)(process.env.LOG_LEVEL);
|
|
54
|
+
const app = await core_1.NestFactory.create(appModule, {
|
|
55
|
+
logger: loggerLevels,
|
|
56
|
+
});
|
|
57
|
+
await options.beforeConfigure?.(app);
|
|
58
|
+
const configService = app.get(config_1.ConfigService);
|
|
59
|
+
const configNamespace = options.configNamespace ?? 'app';
|
|
60
|
+
const getKey = (key) => `${configNamespace}.${key}`;
|
|
61
|
+
const port = configService.get(getKey('port'), options.defaultPort ?? 3001);
|
|
62
|
+
const apiPrefix = configService.get(getKey('apiPrefix'), options.defaultApiPrefix ?? 'api/v1');
|
|
63
|
+
const nodeEnv = configService.get(getKey('nodeEnv'), 'development');
|
|
64
|
+
configureTrustProxy(app, options);
|
|
65
|
+
configureMiddleware(app, options, nodeEnv);
|
|
66
|
+
configureRequestId(app, options);
|
|
67
|
+
configureGlobalPrefix(app, apiPrefix, options);
|
|
68
|
+
configureMetricsPrefixAlias(app, apiPrefix, options);
|
|
69
|
+
configureShutdownHooks(app, options);
|
|
70
|
+
configureValidation(app, options);
|
|
71
|
+
configureCors(app, configService, options, configNamespace);
|
|
72
|
+
const swaggerEnabled = configureSwagger(app, configService, options, configNamespace, nodeEnv);
|
|
73
|
+
await options.beforeListen?.(app);
|
|
74
|
+
await app.listen(port);
|
|
75
|
+
configureServerTimeouts(app, options);
|
|
76
|
+
await options.afterListen?.(app);
|
|
77
|
+
logApplicationStatus({
|
|
78
|
+
logger,
|
|
79
|
+
configService,
|
|
80
|
+
port,
|
|
81
|
+
apiPrefix,
|
|
82
|
+
nodeEnv,
|
|
83
|
+
swaggerEnabled,
|
|
84
|
+
swaggerPath: options.swagger?.path ?? 'docs',
|
|
85
|
+
configNamespace,
|
|
86
|
+
});
|
|
87
|
+
return app;
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
* Fire-and-forget variant of `bootstrapColveorApp`.
|
|
91
|
+
* Catches startup errors, logs them as `fatal`, and exits with code 1.
|
|
92
|
+
* Use this as the last line of `main.ts`.
|
|
93
|
+
*/
|
|
94
|
+
function runColveorApp(appModule, options = {}) {
|
|
95
|
+
bootstrapColveorApp(appModule, options).catch((err) => {
|
|
96
|
+
new common_1.Logger('Bootstrap').fatal('Fatal startup error — application could not start', err instanceof Error ? err.stack : String(err));
|
|
97
|
+
process.exit(1);
|
|
98
|
+
});
|
|
99
|
+
}
|
|
100
|
+
// ─── Configuration Helpers ────────────────────────────────────────────────────
|
|
101
|
+
function configureTrustProxy(app, options) {
|
|
102
|
+
app.set('trust proxy', options.trustProxy ?? 1);
|
|
103
|
+
}
|
|
104
|
+
function configureMiddleware(app, options, nodeEnv) {
|
|
105
|
+
if (options.helmet !== false) {
|
|
106
|
+
const helmetOptions = typeof options.helmet === 'object'
|
|
107
|
+
? options.helmet
|
|
108
|
+
: {
|
|
109
|
+
// In development, relax CSP so Swagger UI inline scripts load.
|
|
110
|
+
contentSecurityPolicy: nodeEnv === 'production',
|
|
111
|
+
crossOriginEmbedderPolicy: nodeEnv === 'production',
|
|
112
|
+
};
|
|
113
|
+
app.use((0, helmet_1.default)(helmetOptions));
|
|
114
|
+
}
|
|
115
|
+
if (options.compression !== false) {
|
|
116
|
+
app.use(typeof options.compression === 'object'
|
|
117
|
+
? (0, compression_1.default)(options.compression)
|
|
118
|
+
: (0, compression_1.default)());
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
function configureRequestId(app, options) {
|
|
122
|
+
if (options.requestId === false)
|
|
123
|
+
return;
|
|
124
|
+
if ((0, env_flags_util_1.isObservabilityEnabled)()) {
|
|
125
|
+
try {
|
|
126
|
+
const middleware = app.get(observability_1.ObservabilityContextMiddleware);
|
|
127
|
+
app.use(middleware.use.bind(middleware));
|
|
128
|
+
return;
|
|
129
|
+
}
|
|
130
|
+
catch {
|
|
131
|
+
// Observability module not registered — fall back to plain request IDs.
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
const middleware = new middlewares_1.RequestIdMiddleware();
|
|
135
|
+
app.use(middleware.use.bind(middleware));
|
|
136
|
+
}
|
|
137
|
+
function configureGlobalPrefix(app, apiPrefix, options) {
|
|
138
|
+
const exclude = options.prefixExclude ?? DEFAULT_PREFIX_EXCLUDE;
|
|
139
|
+
// Always ensure health endpoints are excluded so Kubernetes probes work
|
|
140
|
+
// even when a consumer overrides prefixExclude.
|
|
141
|
+
const healthPaths = ['health/liveness', 'health/readiness'];
|
|
142
|
+
const merged = [...new Set([...exclude, ...healthPaths])];
|
|
143
|
+
app.setGlobalPrefix(apiPrefix, { exclude: merged });
|
|
144
|
+
}
|
|
145
|
+
/**
|
|
146
|
+
* Maps `/{apiPrefix}/metrics` → `/metrics` so scrapers and API clients can use either path.
|
|
147
|
+
* Root `/metrics` stays prefix-free (Prometheus convention); the prefixed alias matches
|
|
148
|
+
* other API routes under `API_PREFIX`.
|
|
149
|
+
*/
|
|
150
|
+
function configureMetricsPrefixAlias(app, apiPrefix, options) {
|
|
151
|
+
if (options.metricsPrefixAlias === false || !apiPrefix)
|
|
152
|
+
return;
|
|
153
|
+
const exclude = options.prefixExclude ?? DEFAULT_PREFIX_EXCLUDE;
|
|
154
|
+
if (!exclude.includes('metrics'))
|
|
155
|
+
return;
|
|
156
|
+
const expressApp = app.getHttpAdapter().getInstance();
|
|
157
|
+
expressApp.use((0, metrics_prefix_alias_middleware_1.createMetricsPrefixAliasMiddleware)(apiPrefix));
|
|
158
|
+
}
|
|
159
|
+
function configureShutdownHooks(app, options) {
|
|
160
|
+
if (options.shutdownHooks !== false) {
|
|
161
|
+
app.enableShutdownHooks();
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
function configureValidation(app, options) {
|
|
165
|
+
if (options.validation === false)
|
|
166
|
+
return;
|
|
167
|
+
const vo = options.validation ?? {};
|
|
168
|
+
app.useGlobalPipes(new common_1.ValidationPipe({
|
|
169
|
+
whitelist: vo.whitelist ?? true,
|
|
170
|
+
forbidNonWhitelisted: vo.forbidNonWhitelisted ?? true,
|
|
171
|
+
transform: vo.transform ?? true,
|
|
172
|
+
transformOptions: { enableImplicitConversion: vo.enableImplicitConversion ?? true },
|
|
173
|
+
exceptionFactory: (errors) => new common_1.BadRequestException((0, validation_1.buildValidationFailedPayload)(errors)),
|
|
174
|
+
}));
|
|
175
|
+
}
|
|
176
|
+
function configureCors(app, configService, options, namespace) {
|
|
177
|
+
if (options.cors === false)
|
|
178
|
+
return;
|
|
179
|
+
const corsOrigin = configService.get(`${namespace}.corsOrigin`, '*');
|
|
180
|
+
// Browsers reject `credentials: true` with a wildcard origin — only enable
|
|
181
|
+
// credentials when a specific origin is configured.
|
|
182
|
+
const credentials = typeof corsOrigin === 'string' && corsOrigin !== '*';
|
|
183
|
+
app.enableCors({
|
|
184
|
+
origin: corsOrigin,
|
|
185
|
+
methods: DEFAULT_CORS_METHODS,
|
|
186
|
+
credentials,
|
|
187
|
+
...options.cors,
|
|
188
|
+
});
|
|
189
|
+
}
|
|
190
|
+
function configureSwagger(app, configService, options, configNamespace, nodeEnv) {
|
|
191
|
+
if (options.swagger == null)
|
|
192
|
+
return false;
|
|
193
|
+
const swagger = options.swagger;
|
|
194
|
+
// Allow when: explicitly forced, OR env flag set, OR running outside production.
|
|
195
|
+
const envEnabled = configService.get(`${configNamespace}.swaggerEnabled`) === 'true';
|
|
196
|
+
const isEnabled = swagger.forceEnable === true || envEnabled || nodeEnv !== 'production';
|
|
197
|
+
if (!isEnabled)
|
|
198
|
+
return false;
|
|
199
|
+
let builder = new swagger_1.DocumentBuilder()
|
|
200
|
+
.setTitle(swagger.title)
|
|
201
|
+
.setDescription(swagger.description ?? '')
|
|
202
|
+
.setVersion(swagger.version ?? '1.0');
|
|
203
|
+
if (swagger.bearerAuth !== false) {
|
|
204
|
+
builder = builder.addBearerAuth();
|
|
205
|
+
}
|
|
206
|
+
if (swagger.apiKey) {
|
|
207
|
+
const keys = Array.isArray(swagger.apiKey) ? swagger.apiKey : [swagger.apiKey];
|
|
208
|
+
for (const key of keys) {
|
|
209
|
+
builder = builder.addApiKey({ type: 'apiKey', in: key.in ?? 'header', name: key.name }, key.name);
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
const document = swagger_1.SwaggerModule.createDocument(app, builder.build());
|
|
213
|
+
swagger_1.SwaggerModule.setup(swagger.path ?? 'docs', app, document, {
|
|
214
|
+
jsonDocumentUrl: swagger.jsonPath ?? 'docs-json',
|
|
215
|
+
});
|
|
216
|
+
return true;
|
|
217
|
+
}
|
|
218
|
+
/**
|
|
219
|
+
* Set TCP keep-alive and headers timeout on the underlying HTTP server.
|
|
220
|
+
* These must be set AFTER `app.listen()` because the server is not created before that.
|
|
221
|
+
* Values should be slightly above your load balancer's idle timeout to prevent
|
|
222
|
+
* premature connection resets (AWS ALB default idle timeout = 60 s).
|
|
223
|
+
*/
|
|
224
|
+
function configureServerTimeouts(app, options) {
|
|
225
|
+
const server = app.getHttpServer();
|
|
226
|
+
server.keepAliveTimeout = options.keepAliveTimeoutMs ?? 61_000;
|
|
227
|
+
server.headersTimeout = options.headersTimeoutMs ?? 62_000;
|
|
228
|
+
}
|
|
229
|
+
function logApplicationStatus({ logger, configService, port, apiPrefix, nodeEnv, swaggerEnabled, swaggerPath, configNamespace, }) {
|
|
230
|
+
const baseUrl = configService.get(`${configNamespace}.url`) ?? `http://localhost:${port}`;
|
|
231
|
+
const requestTimeoutMs = configService.get(`${configNamespace}.requestTimeoutMs`, 30_000);
|
|
232
|
+
logger.log(`Application is running on: ${baseUrl}/${apiPrefix}`);
|
|
233
|
+
logger.log(`Environment: ${nodeEnv}`);
|
|
234
|
+
logger.log(`Request timeout: ${requestTimeoutMs}ms`);
|
|
235
|
+
logger.log(`Metrics: ${baseUrl}/metrics`);
|
|
236
|
+
logger.log(`Swagger docs: ${swaggerEnabled ? `${baseUrl}/${swaggerPath}` : 'disabled'}`);
|
|
237
|
+
}
|
|
238
|
+
//# sourceMappingURL=bootstrap-colveor-app.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bootstrap-colveor-app.js","sourceRoot":"","sources":["../../src/bootstrap/bootstrap-colveor-app.ts"],"names":[],"mappings":";;;;;AAmDA,kDA0DC;AAOD,sCAWC;AA/HD,2CAAwF;AACxF,2CAA+C;AAC/C,uCAA2C;AAE3C,6CAAiE;AAEjE,8DAAsC;AACtC,oDAA4B;AAE5B,uDAA4D;AAC5D,2DAA0E;AAC1E,6DAAkE;AAClE,4DAA0E;AAE1E,iDAAiD;AACjD,uFAAuF;AACvF,uEAAiE;AAEjE,iFAAiF;AAEjF,MAAM,sBAAsB,GAAG;IAC9B,GAAG;IACH,QAAQ;IACR,MAAM;IACN,WAAW;IACX,SAAS;IACT,iBAAiB;IACjB,kBAAkB;CAClB,CAAC;AAEF,MAAM,oBAAoB,GAAG,wCAAwC,CAAC;AAEtE,iFAAiF;AAEjF;;;;;;;;;;;;;;;;GAgBG;AACI,KAAK,UAAU,mBAAmB,CACxC,SAAwB,EACxB,UAAmC,EAAE;IAErC,MAAM,MAAM,GAAG,IAAI,eAAM,CAAC,WAAW,CAAC,CAAC;IAEvC,IAAA,8CAAoB,GAAE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C,MAAM,MAAM,GAAG,GAAG,CAAC,aAAa,EAAE,CAAC;IACnC,MAAM,CAAC,gBAAgB,GAAG,OAAO,CAAC,kBAAkB,IAAI,MAAM,CAAC;IAC/D,MAAM,CAAC,cAAc,GAAG,OAAO,CAAC,gBAAgB,IAAI,MAAM,CAAC;AAC5D,CAAC;AAeD,SAAS,oBAAoB,CAAC,EAC7B,MAAM,EACN,aAAa,EACb,IAAI,EACJ,SAAS,EACT,OAAO,EACP,cAAc,EACd,WAAW,EACX,eAAe,GACc;IAC7B,MAAM,OAAO,GACZ,aAAa,CAAC,GAAG,CAAS,GAAG,eAAe,MAAM,CAAC,IAAI,oBAAoB,IAAI,EAAE,CAAC;IAEnF,MAAM,gBAAgB,GAAG,aAAa,CAAC,GAAG,CACzC,GAAG,eAAe,mBAAmB,EACrC,MAAM,CACN,CAAC;IAEF,MAAM,CAAC,GAAG,CAAC,8BAA8B,OAAO,IAAI,SAAS,EAAE,CAAC,CAAC;IACjE,MAAM,CAAC,GAAG,CAAC,gBAAgB,OAAO,EAAE,CAAC,CAAC;IACtC,MAAM,CAAC,GAAG,CAAC,oBAAoB,gBAAgB,IAAI,CAAC,CAAC;IACrD,MAAM,CAAC,GAAG,CAAC,YAAY,OAAO,UAAU,CAAC,CAAC;IAC1C,MAAM,CAAC,GAAG,CAAC,iBAAiB,cAAc,CAAC,CAAC,CAAC,GAAG,OAAO,IAAI,WAAW,EAAE,CAAC,CAAC,CAAC,UAAU,EAAE,CAAC,CAAC;AAC1F,CAAC"}
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
import type { INestApplication, LogLevel } from '@nestjs/common';
|
|
2
|
+
import type { CorsOptions } from '@nestjs/common/interfaces/external/cors-options.interface';
|
|
3
|
+
import type compression from 'compression';
|
|
4
|
+
import type { HelmetOptions } from 'helmet';
|
|
5
|
+
export type CompressionOptions = Parameters<typeof compression>[0];
|
|
6
|
+
export interface ColveorSwaggerApiKeyOptions {
|
|
7
|
+
/** Header or query parameter name (e.g. "x-api-key"). */
|
|
8
|
+
name: string;
|
|
9
|
+
in?: 'header' | 'query';
|
|
10
|
+
}
|
|
11
|
+
export interface ColveorSwaggerOptions {
|
|
12
|
+
/** Swagger UI page title. */
|
|
13
|
+
title: string;
|
|
14
|
+
description?: string;
|
|
15
|
+
version?: string;
|
|
16
|
+
/** UI path. @default "docs" */
|
|
17
|
+
path?: string;
|
|
18
|
+
/** JSON schema path. @default "docs-json" */
|
|
19
|
+
jsonPath?: string;
|
|
20
|
+
/**
|
|
21
|
+
* Add Bearer (JWT) auth scheme.
|
|
22
|
+
* @default true
|
|
23
|
+
*/
|
|
24
|
+
bearerAuth?: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* Add one or more API key auth schemes.
|
|
27
|
+
* Accepts a single key definition or an array for multi-scheme setups
|
|
28
|
+
* (e.g. `x-api-key` for clients + `x-partner-key` for partners).
|
|
29
|
+
*/
|
|
30
|
+
apiKey?: ColveorSwaggerApiKeyOptions | ColveorSwaggerApiKeyOptions[];
|
|
31
|
+
/**
|
|
32
|
+
* Force Swagger UI on regardless of the `SWAGGER_ENABLED` env var.
|
|
33
|
+
* Useful for local / CI environments where you omit `SWAGGER_ENABLED=true`.
|
|
34
|
+
* @default false
|
|
35
|
+
*/
|
|
36
|
+
forceEnable?: boolean;
|
|
37
|
+
}
|
|
38
|
+
export interface ColveorValidationOptions {
|
|
39
|
+
whitelist?: boolean;
|
|
40
|
+
forbidNonWhitelisted?: boolean;
|
|
41
|
+
transform?: boolean;
|
|
42
|
+
enableImplicitConversion?: boolean;
|
|
43
|
+
}
|
|
44
|
+
export interface ColveorBootstrapOptions {
|
|
45
|
+
/**
|
|
46
|
+
* ConfigService key namespace.
|
|
47
|
+
* @default "app"
|
|
48
|
+
*/
|
|
49
|
+
configNamespace?: string;
|
|
50
|
+
/**
|
|
51
|
+
* Default application port (used when `<namespace>.port` is unset).
|
|
52
|
+
* @default 3001
|
|
53
|
+
*/
|
|
54
|
+
defaultPort?: number;
|
|
55
|
+
/**
|
|
56
|
+
* Default API prefix (used when `<namespace>.apiPrefix` is unset).
|
|
57
|
+
* @default "api/v1"
|
|
58
|
+
*/
|
|
59
|
+
defaultApiPrefix?: string;
|
|
60
|
+
/**
|
|
61
|
+
* Routes excluded from the global prefix.
|
|
62
|
+
* Health-check paths (`health/liveness`, `health/readiness`) and root/status/docs
|
|
63
|
+
* are always added so Kubernetes probes and documentation routes work regardless
|
|
64
|
+
* of custom prefixes.
|
|
65
|
+
*/
|
|
66
|
+
prefixExclude?: string[];
|
|
67
|
+
/**
|
|
68
|
+
* When true (default), also serves metrics at `/{apiPrefix}/metrics` by aliasing
|
|
69
|
+
* to the root `/metrics` handler (which remains excluded from the global prefix).
|
|
70
|
+
*/
|
|
71
|
+
metricsPrefixAlias?: boolean;
|
|
72
|
+
/**
|
|
73
|
+
* NestJS logger levels. Falls back to the `LOG_LEVEL` env var.
|
|
74
|
+
*/
|
|
75
|
+
logger?: LogLevel[];
|
|
76
|
+
/**
|
|
77
|
+
* Express `trust proxy` setting.
|
|
78
|
+
* @default 1
|
|
79
|
+
*/
|
|
80
|
+
trustProxy?: boolean | number | string;
|
|
81
|
+
/**
|
|
82
|
+
* Helmet HTTP-security middleware options.
|
|
83
|
+
* `false` disables Helmet entirely.
|
|
84
|
+
* Pass a `HelmetOptions` object to customise directives.
|
|
85
|
+
* @default true — uses safe defaults appropriate for each environment
|
|
86
|
+
*/
|
|
87
|
+
helmet?: boolean | HelmetOptions;
|
|
88
|
+
/**
|
|
89
|
+
* Response compression options.
|
|
90
|
+
* `false` disables compression entirely.
|
|
91
|
+
* Pass a `CompressionOptions` object to tune threshold, level, filter, etc.
|
|
92
|
+
* @default true — uses compression defaults (threshold: 1024 bytes)
|
|
93
|
+
*/
|
|
94
|
+
compression?: boolean | CompressionOptions;
|
|
95
|
+
/**
|
|
96
|
+
* Enable NestJS shutdown hooks.
|
|
97
|
+
* @default true
|
|
98
|
+
*/
|
|
99
|
+
shutdownHooks?: boolean;
|
|
100
|
+
/**
|
|
101
|
+
* TCP keep-alive timeout in milliseconds for the underlying HTTP server.
|
|
102
|
+
* Set slightly above your load balancer's idle timeout to prevent
|
|
103
|
+
* premature connection drops (AWS ALB default is 60 s → set to 61 000).
|
|
104
|
+
* @default 61_000
|
|
105
|
+
*/
|
|
106
|
+
keepAliveTimeoutMs?: number;
|
|
107
|
+
/**
|
|
108
|
+
* HTTP headers timeout (must be > `keepAliveTimeoutMs`).
|
|
109
|
+
* @default 62_000
|
|
110
|
+
*/
|
|
111
|
+
headersTimeoutMs?: number;
|
|
112
|
+
/**
|
|
113
|
+
* Automatically attach `x-request-id` to every request/response.
|
|
114
|
+
* @default true
|
|
115
|
+
*/
|
|
116
|
+
requestId?: boolean;
|
|
117
|
+
/**
|
|
118
|
+
* Global validation pipe options.
|
|
119
|
+
* `false` disables the global `ValidationPipe` entirely.
|
|
120
|
+
*/
|
|
121
|
+
validation?: ColveorValidationOptions | false;
|
|
122
|
+
/**
|
|
123
|
+
* CORS configuration.
|
|
124
|
+
* `false` disables CORS.
|
|
125
|
+
* When omitted, CORS is enabled using `<namespace>.corsOrigin` from config
|
|
126
|
+
* (`CORS_ORIGIN` env var). Credentials are only included when the origin is
|
|
127
|
+
* not the wildcard `"*"`.
|
|
128
|
+
*/
|
|
129
|
+
cors?: CorsOptions | false;
|
|
130
|
+
/**
|
|
131
|
+
* Swagger configuration.
|
|
132
|
+
* Swagger is disabled when this option is omitted.
|
|
133
|
+
* By default Swagger is only served when `SWAGGER_ENABLED=true`. Pass
|
|
134
|
+
* `forceEnable: true` to bypass that check (handy in development).
|
|
135
|
+
*/
|
|
136
|
+
swagger?: ColveorSwaggerOptions;
|
|
137
|
+
/**
|
|
138
|
+
* Called after application creation but before any Colveor configuration.
|
|
139
|
+
* Use to register additional middleware or adapters.
|
|
140
|
+
*/
|
|
141
|
+
beforeConfigure?: (app: INestApplication) => void | Promise<void>;
|
|
142
|
+
/**
|
|
143
|
+
* Called after all Colveor configuration but before `app.listen()`.
|
|
144
|
+
* Use to register app-specific guards, interceptors, or pipes.
|
|
145
|
+
*/
|
|
146
|
+
beforeListen?: (app: INestApplication) => void | Promise<void>;
|
|
147
|
+
/**
|
|
148
|
+
* Called immediately after `app.listen()` resolves.
|
|
149
|
+
*/
|
|
150
|
+
afterListen?: (app: INestApplication) => void | Promise<void>;
|
|
151
|
+
}
|
|
152
|
+
//# sourceMappingURL=bootstrap.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bootstrap.types.d.ts","sourceRoot":"","sources":["../../src/bootstrap/bootstrap.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AACjE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,2DAA2D,CAAC;AAC7F,OAAO,KAAK,WAAW,MAAM,aAAa,CAAC;AAC3C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAC;AAE5C,MAAM,MAAM,kBAAkB,GAAG,UAAU,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC;AAInE,MAAM,WAAW,2BAA2B;IAC3C,yDAAyD;IACzD,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,CAAC,EAAE,QAAQ,GAAG,OAAO,CAAC;CACxB;AAED,MAAM,WAAW,qBAAqB;IACrC,6BAA6B;IAC7B,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,+BAA+B;IAC/B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,6CAA6C;IAC7C,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;;;OAIG;IACH,MAAM,CAAC,EAAE,2BAA2B,GAAG,2BAA2B,EAAE,CAAC;IACrE;;;;OAIG;IACH,WAAW,CAAC,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AG,OAAO,CAAC,IAAI,CAAC,CAAC;IAElE;;;OAGG;IACH,YAAY,CAAC,EAAE,CAAC,GAAG,EAAE,gBAAgB,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAE/D;;OAEG;IACH,WAAW,CAAC,EAAE,CAAC,GAAG,EAAE,gBAAgB,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CAC9D"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bootstrap.types.js","sourceRoot":"","sources":["../../src/bootstrap/bootstrap.types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/bootstrap/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,OAAO,EAAE,mBAAmB,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAC7E,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.prepareObservability = exports.runColveorApp = exports.bootstrapColveorApp = void 0;
|
|
18
|
+
__exportStar(require("./bootstrap.types"), exports);
|
|
19
|
+
var bootstrap_colveor_app_1 = require("./bootstrap-colveor-app");
|
|
20
|
+
Object.defineProperty(exports, "bootstrapColveorApp", { enumerable: true, get: function () { return bootstrap_colveor_app_1.bootstrapColveorApp; } });
|
|
21
|
+
Object.defineProperty(exports, "runColveorApp", { enumerable: true, get: function () { return bootstrap_colveor_app_1.runColveorApp; } });
|
|
22
|
+
var observability_bootstrap_1 = require("./observability.bootstrap");
|
|
23
|
+
Object.defineProperty(exports, "prepareObservability", { enumerable: true, get: function () { return observability_bootstrap_1.prepareObservability; } });
|
|
24
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/bootstrap/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,oDAAkC;AAClC,iEAA6E;AAApE,4HAAA,mBAAmB,OAAA;AAAE,sHAAA,aAAa,OAAA;AAC3C,qEAAiE;AAAxD,+HAAA,oBAAoB,OAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"logger.utils.d.ts","sourceRoot":"","sources":["../../src/bootstrap/logger.utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAM/C,wBAAgB,eAAe,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,QAAQ,EAAE,CAQ1D"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getLoggerLevels = getLoggerLevels;
|
|
4
|
+
const LOG_LEVELS = ['error', 'warn', 'log', 'debug', 'verbose'];
|
|
5
|
+
const DEFAULT_LOG_LEVELS = ['error', 'warn', 'log'];
|
|
6
|
+
function getLoggerLevels(level) {
|
|
7
|
+
if (level == null || level.length === 0)
|
|
8
|
+
return DEFAULT_LOG_LEVELS;
|
|
9
|
+
const index = LOG_LEVELS.indexOf(level);
|
|
10
|
+
if (index < 0)
|
|
11
|
+
return DEFAULT_LOG_LEVELS;
|
|
12
|
+
return LOG_LEVELS.slice(0, index + 1);
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=logger.utils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"logger.utils.js","sourceRoot":"","sources":["../../src/bootstrap/logger.utils.ts"],"names":[],"mappings":";;AAMA,0CAQC;AAZD,MAAM,UAAU,GAAe,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,SAAS,CAAC,CAAC;AAE5E,MAAM,kBAAkB,GAAe,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,CAAC,CAAC;AAEhE,SAAgB,eAAe,CAAC,KAAc;IAC7C,IAAI,KAAK,IAAI,IAAI,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,kBAAkB,CAAC;IAEnE,MAAM,KAAK,GAAG,UAAU,CAAC,OAAO,CAAC,KAAiB,CAAC,CAAC;IAEpD,IAAI,KAAK,GAAG,CAAC;QAAE,OAAO,kBAAkB,CAAC;IAEzC,OAAO,UAAU,CAAC,KAAK,CAAC,CAAC,EAAE,KAAK,GAAG,CAAC,CAAC,CAAC;AACvC,CAAC"}
|