@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
|
@@ -0,0 +1,264 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// user-profile.entity.ts
|
|
3
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
4
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
5
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
6
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
7
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
8
|
+
};
|
|
9
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
10
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
11
|
+
};
|
|
12
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
+
exports.UserProfile = void 0;
|
|
14
|
+
const typeorm_1 = require("typeorm");
|
|
15
|
+
const base_entity_1 = require("../../../common/base/base.entity");
|
|
16
|
+
const user_entity_1 = require("../../users/entities/user.entity");
|
|
17
|
+
let UserProfile = class UserProfile extends base_entity_1.BaseEntity {
|
|
18
|
+
// ─────────────────────────────────────────────────────────────────────────────
|
|
19
|
+
// Relation
|
|
20
|
+
// ─────────────────────────────────────────────────────────────────────────────
|
|
21
|
+
userId;
|
|
22
|
+
user;
|
|
23
|
+
// ─────────────────────────────────────────────────────────────────────────────
|
|
24
|
+
// Basic Profile
|
|
25
|
+
// ─────────────────────────────────────────────────────────────────────────────
|
|
26
|
+
firstName;
|
|
27
|
+
lastName;
|
|
28
|
+
displayName;
|
|
29
|
+
username;
|
|
30
|
+
photoFileId;
|
|
31
|
+
coverPhotoFileId;
|
|
32
|
+
bio;
|
|
33
|
+
// ─────────────────────────────────────────────────────────────────────────────
|
|
34
|
+
// Personal
|
|
35
|
+
// ─────────────────────────────────────────────────────────────────────────────
|
|
36
|
+
dateOfBirth;
|
|
37
|
+
gender;
|
|
38
|
+
occupation;
|
|
39
|
+
skills;
|
|
40
|
+
// ─────────────────────────────────────────────────────────────────────────────
|
|
41
|
+
// Address
|
|
42
|
+
// ─────────────────────────────────────────────────────────────────────────────
|
|
43
|
+
address;
|
|
44
|
+
// ─────────────────────────────────────────────────────────────────────────────
|
|
45
|
+
// Localization
|
|
46
|
+
// ─────────────────────────────────────────────────────────────────────────────
|
|
47
|
+
languageCode;
|
|
48
|
+
timezone;
|
|
49
|
+
lastKnownTimezone;
|
|
50
|
+
currencyCode;
|
|
51
|
+
// ─────────────────────────────────────────────────────────────────────────────
|
|
52
|
+
// Public
|
|
53
|
+
// ─────────────────────────────────────────────────────────────────────────────
|
|
54
|
+
websiteUrl;
|
|
55
|
+
isPublic;
|
|
56
|
+
isVerified;
|
|
57
|
+
onboardingStep;
|
|
58
|
+
isProfileCompleted;
|
|
59
|
+
// ─────────────────────────────────────────────────────────────────────────────
|
|
60
|
+
// Metadata
|
|
61
|
+
// ─────────────────────────────────────────────────────────────────────────────
|
|
62
|
+
publicMetadata;
|
|
63
|
+
privateMetadata;
|
|
64
|
+
// ─────────────────────────────────────────────────────────────────────────────
|
|
65
|
+
// Computed
|
|
66
|
+
// ─────────────────────────────────────────────────────────────────────────────
|
|
67
|
+
get fullName() {
|
|
68
|
+
return [this.firstName, this.lastName]
|
|
69
|
+
.filter((value) => value !== undefined && value !== null && value.trim().length > 0)
|
|
70
|
+
.join(' ');
|
|
71
|
+
}
|
|
72
|
+
};
|
|
73
|
+
exports.UserProfile = UserProfile;
|
|
74
|
+
__decorate([
|
|
75
|
+
(0, typeorm_1.Index)({ unique: true }),
|
|
76
|
+
(0, typeorm_1.Column)({
|
|
77
|
+
name: 'user_id',
|
|
78
|
+
}),
|
|
79
|
+
__metadata("design:type", String)
|
|
80
|
+
], UserProfile.prototype, "userId", void 0);
|
|
81
|
+
__decorate([
|
|
82
|
+
(0, typeorm_1.OneToOne)(() => user_entity_1.User, {
|
|
83
|
+
onDelete: 'CASCADE',
|
|
84
|
+
}),
|
|
85
|
+
(0, typeorm_1.JoinColumn)({
|
|
86
|
+
name: 'user_id',
|
|
87
|
+
}),
|
|
88
|
+
__metadata("design:type", user_entity_1.User)
|
|
89
|
+
], UserProfile.prototype, "user", void 0);
|
|
90
|
+
__decorate([
|
|
91
|
+
(0, typeorm_1.Column)({
|
|
92
|
+
name: 'first_name',
|
|
93
|
+
nullable: true,
|
|
94
|
+
}),
|
|
95
|
+
__metadata("design:type", String)
|
|
96
|
+
], UserProfile.prototype, "firstName", void 0);
|
|
97
|
+
__decorate([
|
|
98
|
+
(0, typeorm_1.Column)({
|
|
99
|
+
name: 'last_name',
|
|
100
|
+
nullable: true,
|
|
101
|
+
}),
|
|
102
|
+
__metadata("design:type", String)
|
|
103
|
+
], UserProfile.prototype, "lastName", void 0);
|
|
104
|
+
__decorate([
|
|
105
|
+
(0, typeorm_1.Column)({
|
|
106
|
+
name: 'display_name',
|
|
107
|
+
nullable: true,
|
|
108
|
+
}),
|
|
109
|
+
__metadata("design:type", String)
|
|
110
|
+
], UserProfile.prototype, "displayName", void 0);
|
|
111
|
+
__decorate([
|
|
112
|
+
(0, typeorm_1.Index)({ unique: true }),
|
|
113
|
+
(0, typeorm_1.Column)({
|
|
114
|
+
nullable: true,
|
|
115
|
+
}),
|
|
116
|
+
__metadata("design:type", String)
|
|
117
|
+
], UserProfile.prototype, "username", void 0);
|
|
118
|
+
__decorate([
|
|
119
|
+
(0, typeorm_1.Column)({
|
|
120
|
+
name: 'photo_file_id',
|
|
121
|
+
type: 'uuid',
|
|
122
|
+
nullable: true,
|
|
123
|
+
}),
|
|
124
|
+
__metadata("design:type", Object)
|
|
125
|
+
], UserProfile.prototype, "photoFileId", void 0);
|
|
126
|
+
__decorate([
|
|
127
|
+
(0, typeorm_1.Column)({
|
|
128
|
+
name: 'cover_photo_file_id',
|
|
129
|
+
type: 'uuid',
|
|
130
|
+
nullable: true,
|
|
131
|
+
}),
|
|
132
|
+
__metadata("design:type", Object)
|
|
133
|
+
], UserProfile.prototype, "coverPhotoFileId", void 0);
|
|
134
|
+
__decorate([
|
|
135
|
+
(0, typeorm_1.Column)({
|
|
136
|
+
type: 'text',
|
|
137
|
+
nullable: true,
|
|
138
|
+
}),
|
|
139
|
+
__metadata("design:type", String)
|
|
140
|
+
], UserProfile.prototype, "bio", void 0);
|
|
141
|
+
__decorate([
|
|
142
|
+
(0, typeorm_1.Column)({
|
|
143
|
+
name: 'date_of_birth',
|
|
144
|
+
type: 'date',
|
|
145
|
+
nullable: true,
|
|
146
|
+
}),
|
|
147
|
+
__metadata("design:type", Date)
|
|
148
|
+
], UserProfile.prototype, "dateOfBirth", void 0);
|
|
149
|
+
__decorate([
|
|
150
|
+
(0, typeorm_1.Column)({
|
|
151
|
+
nullable: true,
|
|
152
|
+
length: 50,
|
|
153
|
+
}),
|
|
154
|
+
__metadata("design:type", String)
|
|
155
|
+
], UserProfile.prototype, "gender", void 0);
|
|
156
|
+
__decorate([
|
|
157
|
+
(0, typeorm_1.Column)({
|
|
158
|
+
nullable: true,
|
|
159
|
+
length: 100,
|
|
160
|
+
}),
|
|
161
|
+
__metadata("design:type", String)
|
|
162
|
+
], UserProfile.prototype, "occupation", void 0);
|
|
163
|
+
__decorate([
|
|
164
|
+
(0, typeorm_1.Column)({
|
|
165
|
+
type: 'text',
|
|
166
|
+
array: true,
|
|
167
|
+
nullable: true,
|
|
168
|
+
}),
|
|
169
|
+
__metadata("design:type", Array)
|
|
170
|
+
], UserProfile.prototype, "skills", void 0);
|
|
171
|
+
__decorate([
|
|
172
|
+
(0, typeorm_1.Column)({
|
|
173
|
+
type: 'jsonb',
|
|
174
|
+
nullable: true,
|
|
175
|
+
}),
|
|
176
|
+
__metadata("design:type", Object)
|
|
177
|
+
], UserProfile.prototype, "address", void 0);
|
|
178
|
+
__decorate([
|
|
179
|
+
(0, typeorm_1.Column)({
|
|
180
|
+
name: 'language_code',
|
|
181
|
+
nullable: true,
|
|
182
|
+
length: 10,
|
|
183
|
+
}),
|
|
184
|
+
__metadata("design:type", String)
|
|
185
|
+
], UserProfile.prototype, "languageCode", void 0);
|
|
186
|
+
__decorate([
|
|
187
|
+
(0, typeorm_1.Column)({
|
|
188
|
+
nullable: true,
|
|
189
|
+
length: 100,
|
|
190
|
+
}),
|
|
191
|
+
__metadata("design:type", String)
|
|
192
|
+
], UserProfile.prototype, "timezone", void 0);
|
|
193
|
+
__decorate([
|
|
194
|
+
(0, typeorm_1.Column)({
|
|
195
|
+
name: 'last_known_timezone',
|
|
196
|
+
nullable: true,
|
|
197
|
+
length: 100,
|
|
198
|
+
}),
|
|
199
|
+
__metadata("design:type", String)
|
|
200
|
+
], UserProfile.prototype, "lastKnownTimezone", void 0);
|
|
201
|
+
__decorate([
|
|
202
|
+
(0, typeorm_1.Column)({
|
|
203
|
+
name: 'currency_code',
|
|
204
|
+
nullable: true,
|
|
205
|
+
length: 10,
|
|
206
|
+
}),
|
|
207
|
+
__metadata("design:type", String)
|
|
208
|
+
], UserProfile.prototype, "currencyCode", void 0);
|
|
209
|
+
__decorate([
|
|
210
|
+
(0, typeorm_1.Column)({
|
|
211
|
+
name: 'website_url',
|
|
212
|
+
nullable: true,
|
|
213
|
+
}),
|
|
214
|
+
__metadata("design:type", String)
|
|
215
|
+
], UserProfile.prototype, "websiteUrl", void 0);
|
|
216
|
+
__decorate([
|
|
217
|
+
(0, typeorm_1.Column)({
|
|
218
|
+
name: 'is_public',
|
|
219
|
+
default: true,
|
|
220
|
+
}),
|
|
221
|
+
__metadata("design:type", Boolean)
|
|
222
|
+
], UserProfile.prototype, "isPublic", void 0);
|
|
223
|
+
__decorate([
|
|
224
|
+
(0, typeorm_1.Column)({
|
|
225
|
+
name: 'is_verified',
|
|
226
|
+
default: false,
|
|
227
|
+
}),
|
|
228
|
+
__metadata("design:type", Boolean)
|
|
229
|
+
], UserProfile.prototype, "isVerified", void 0);
|
|
230
|
+
__decorate([
|
|
231
|
+
(0, typeorm_1.Column)({
|
|
232
|
+
name: 'onboarding_step',
|
|
233
|
+
default: 0,
|
|
234
|
+
}),
|
|
235
|
+
__metadata("design:type", Number)
|
|
236
|
+
], UserProfile.prototype, "onboardingStep", void 0);
|
|
237
|
+
__decorate([
|
|
238
|
+
(0, typeorm_1.Column)({
|
|
239
|
+
name: 'is_profile_completed',
|
|
240
|
+
default: false,
|
|
241
|
+
}),
|
|
242
|
+
__metadata("design:type", Boolean)
|
|
243
|
+
], UserProfile.prototype, "isProfileCompleted", void 0);
|
|
244
|
+
__decorate([
|
|
245
|
+
(0, typeorm_1.Column)({
|
|
246
|
+
name: 'public_metadata',
|
|
247
|
+
type: 'jsonb',
|
|
248
|
+
nullable: true,
|
|
249
|
+
}),
|
|
250
|
+
__metadata("design:type", Object)
|
|
251
|
+
], UserProfile.prototype, "publicMetadata", void 0);
|
|
252
|
+
__decorate([
|
|
253
|
+
(0, typeorm_1.Column)({
|
|
254
|
+
name: 'private_metadata',
|
|
255
|
+
type: 'jsonb',
|
|
256
|
+
nullable: true,
|
|
257
|
+
select: false,
|
|
258
|
+
}),
|
|
259
|
+
__metadata("design:type", Object)
|
|
260
|
+
], UserProfile.prototype, "privateMetadata", void 0);
|
|
261
|
+
exports.UserProfile = UserProfile = __decorate([
|
|
262
|
+
(0, typeorm_1.Entity)('user_profiles')
|
|
263
|
+
], UserProfile);
|
|
264
|
+
//# sourceMappingURL=user-profiles.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"user-profiles.entity.js","sourceRoot":"","sources":["../../../../src/modules/profile/entities/user-profiles.entity.ts"],"names":[],"mappings":";AAAA,yBAAyB;;;;;;;;;;;;AAEzB,qCAAsE;AAEtE,kEAA8D;AAC9D,kEAAwD;AAGjD,IAAM,WAAW,GAAjB,MAAM,WAAY,SAAQ,wBAAU;IAC1C,gFAAgF;IAChF,WAAW;IACX,gFAAgF;IAMhF,MAAM,CAAU;IAQhB,IAAI,CAAQ;IAEZ,gFAAgF;IAChF,gBAAgB;IAChB,gFAAgF;IAMhF,SAAS,CAAU;IAMnB,QAAQ,CAAU;IAMlB,WAAW,CAAU;IAMrB,QAAQ,CAAU;IAOlB,WAAW,CAAiB;IAO5B,gBAAgB,CAAiB;IAMjC,GAAG,CAAU;IAEb,gFAAgF;IAChF,WAAW;IACX,gFAAgF;IAOhF,WAAW,CAAQ;IAMnB,MAAM,CAAU;IAMhB,UAAU,CAAU;IAOpB,MAAM,CAAY;IAElB,gFAAgF;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
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export * from './controllers/profile.controller';
|
|
2
|
+
export * from './dto/address.dto';
|
|
3
|
+
export * from './dto/create-user-profile.dto';
|
|
4
|
+
export * from './dto/user-profile-filter.dto';
|
|
5
|
+
export * from './dto/user-profile-response.dto';
|
|
6
|
+
export * from './entities';
|
|
7
|
+
export * from './profile.module';
|
|
8
|
+
export * from './services/profile.service';
|
|
9
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/modules/profile/index.ts"],"names":[],"mappings":"AAAA,cAAc,kCAAkC,CAAC;AACjD,cAAc,mBAAmB,CAAC;AAClC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,iCAAiC,CAAC;AAChD,cAAc,YAAY,CAAC;AAC3B,cAAc,kBAAkB,CAAC;AACjC,cAAc,4BAA4B,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
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
|
+
__exportStar(require("./controllers/profile.controller"), exports);
|
|
18
|
+
__exportStar(require("./dto/address.dto"), exports);
|
|
19
|
+
__exportStar(require("./dto/create-user-profile.dto"), exports);
|
|
20
|
+
__exportStar(require("./dto/user-profile-filter.dto"), exports);
|
|
21
|
+
__exportStar(require("./dto/user-profile-response.dto"), exports);
|
|
22
|
+
__exportStar(require("./entities"), exports);
|
|
23
|
+
__exportStar(require("./profile.module"), exports);
|
|
24
|
+
__exportStar(require("./services/profile.service"), exports);
|
|
25
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/modules/profile/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,mEAAiD;AACjD,oDAAkC;AAClC,gEAA8C;AAC9C,gEAA8C;AAC9C,kEAAgD;AAChD,6CAA2B;AAC3B,mDAAiC;AACjC,6DAA2C"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { ModuleManifest } from '../roles/types/manifest.types';
|
|
2
|
+
export declare const USER_PROFILE_PERMISSIONS: {
|
|
3
|
+
readonly READ: "users:read";
|
|
4
|
+
readonly UPDATE: "users:update";
|
|
5
|
+
};
|
|
6
|
+
export declare const manifest: ModuleManifest;
|
|
7
|
+
//# sourceMappingURL=profile.manifest.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"profile.manifest.d.ts","sourceRoot":"","sources":["../../../src/modules/profile/profile.manifest.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAEpE,eAAO,MAAM,wBAAwB;;;CAG3B,CAAC;AAEX,eAAO,MAAM,QAAQ,EAAE,cAgBtB,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.manifest = exports.USER_PROFILE_PERMISSIONS = void 0;
|
|
4
|
+
exports.USER_PROFILE_PERMISSIONS = {
|
|
5
|
+
READ: 'users:read',
|
|
6
|
+
UPDATE: 'users:update',
|
|
7
|
+
};
|
|
8
|
+
exports.manifest = {
|
|
9
|
+
slug: 'user-profile',
|
|
10
|
+
name: 'User Profile',
|
|
11
|
+
description: 'User profile management',
|
|
12
|
+
permissions: [
|
|
13
|
+
{
|
|
14
|
+
slug: exports.USER_PROFILE_PERMISSIONS.READ,
|
|
15
|
+
name: 'View user profile',
|
|
16
|
+
description: 'View user profile details',
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
slug: exports.USER_PROFILE_PERMISSIONS.UPDATE,
|
|
20
|
+
name: 'Update user profile',
|
|
21
|
+
description: 'Update user profile details',
|
|
22
|
+
},
|
|
23
|
+
],
|
|
24
|
+
};
|
|
25
|
+
//# sourceMappingURL=profile.manifest.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"profile.manifest.js","sourceRoot":"","sources":["../../../src/modules/profile/profile.manifest.ts"],"names":[],"mappings":";;;AAEa,QAAA,wBAAwB,GAAG;IACvC,IAAI,EAAE,YAAY;IAClB,MAAM,EAAE,cAAc;CACb,CAAC;AAEE,QAAA,QAAQ,GAAmB;IACvC,IAAI,EAAE,cAAc;IACpB,IAAI,EAAE,cAAc;IACpB,WAAW,EAAE,yBAAyB;IACtC,WAAW,EAAE;QACZ;YACC,IAAI,EAAE,gCAAwB,CAAC,IAAI;YACnC,IAAI,EAAE,mBAAmB;YACzB,WAAW,EAAE,2BAA2B;SACxC;QACD;YACC,IAAI,EAAE,gCAAwB,CAAC,MAAM;YACrC,IAAI,EAAE,qBAAqB;YAC3B,WAAW,EAAE,6BAA6B;SAC1C;KACD;CACD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"profile.module.d.ts","sourceRoot":"","sources":["../../../src/modules/profile/profile.module.ts"],"names":[],"mappings":"AAWA,qBAWa,aAAa;CAAG"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.ProfileModule = void 0;
|
|
10
|
+
const common_1 = require("@nestjs/common");
|
|
11
|
+
const typeorm_1 = require("@nestjs/typeorm");
|
|
12
|
+
const file_upload_module_1 = require("../file-upload/file-upload.module");
|
|
13
|
+
const otp_module_1 = require("../otp/otp.module");
|
|
14
|
+
const user_entity_1 = require("../users/entities/user.entity");
|
|
15
|
+
const users_module_1 = require("../users/users.module");
|
|
16
|
+
const profile_controller_1 = require("./controllers/profile.controller");
|
|
17
|
+
const user_profiles_entity_1 = require("./entities/user-profiles.entity");
|
|
18
|
+
const profile_service_1 = require("./services/profile.service");
|
|
19
|
+
let ProfileModule = class ProfileModule {
|
|
20
|
+
};
|
|
21
|
+
exports.ProfileModule = ProfileModule;
|
|
22
|
+
exports.ProfileModule = ProfileModule = __decorate([
|
|
23
|
+
(0, common_1.Module)({
|
|
24
|
+
imports: [
|
|
25
|
+
typeorm_1.TypeOrmModule.forFeature([user_profiles_entity_1.UserProfile, user_entity_1.User]),
|
|
26
|
+
(0, common_1.forwardRef)(() => users_module_1.UsersModule),
|
|
27
|
+
otp_module_1.OtpModule,
|
|
28
|
+
file_upload_module_1.FileUploadModule,
|
|
29
|
+
],
|
|
30
|
+
controllers: [profile_controller_1.ProfileController],
|
|
31
|
+
providers: [profile_service_1.UserProfilesService],
|
|
32
|
+
exports: [profile_service_1.UserProfilesService],
|
|
33
|
+
})
|
|
34
|
+
], ProfileModule);
|
|
35
|
+
//# sourceMappingURL=profile.module.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"profile.module.js","sourceRoot":"","sources":["../../../src/modules/profile/profile.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAoD;AACpD,6CAAgD;AAEhD,0EAAqE;AACrE,kDAA8C;AAC9C,+DAAqD;AACrD,wDAAoD;AACpD,yEAAqE;AACrE,0EAA8D;AAC9D,gEAAiE;AAa1D,IAAM,aAAa,GAAnB,MAAM,aAAa;CAAG,CAAA;AAAhB,sCAAa;wBAAb,aAAa;IAXzB,IAAA,eAAM,EAAC;QACP,OAAO,EAAE;YACR,uBAAa,CAAC,UAAU,CAAC,CAAC,kCAAW,EAAE,kBAAI,CAAC,CAAC;YAC7C,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,0BAAW,CAAC;YAC7B,sBAAS;YACT,qCAAgB;SAChB;QACD,WAAW,EAAE,CAAC,sCAAiB,CAAC;QAChC,SAAS,EAAE,CAAC,qCAAmB,CAAC;QAChC,OAAO,EAAE,CAAC,qCAAmB,CAAC;KAC9B,CAAC;GACW,aAAa,CAAG"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { EntityManager, Repository } from 'typeorm';
|
|
2
|
+
import { PaginatedResult } from '../../../common/base/base.repository';
|
|
3
|
+
import { FileUploadService } from '../../file-upload/services/file-upload.service';
|
|
4
|
+
import { IOtpService } from '../../otp/interfaces/otp.service.interface';
|
|
5
|
+
import { UsersService } from '../../users/services/users.service';
|
|
6
|
+
import { ChangePhoneDto, CreateUserProfileDto, UpdateUserProfileDto } from '../dto/create-user-profile.dto';
|
|
7
|
+
import { UserProfileFilterDto } from '../dto/user-profile-filter.dto';
|
|
8
|
+
import { UserProfileResponseDto } from '../dto/user-profile-response.dto';
|
|
9
|
+
import { UserProfile } from '../entities/user-profiles.entity';
|
|
10
|
+
export declare class UserProfilesService {
|
|
11
|
+
private readonly profileRepository;
|
|
12
|
+
private readonly usersService;
|
|
13
|
+
private readonly otpService;
|
|
14
|
+
private readonly fileUploadService;
|
|
15
|
+
constructor(profileRepository: Repository<UserProfile>, usersService: UsersService, otpService: IOtpService, fileUploadService: FileUploadService);
|
|
16
|
+
create(userId: string, dto: CreateUserProfileDto, manager?: EntityManager): Promise<UserProfileResponseDto>;
|
|
17
|
+
findByUserId(userId: string): Promise<UserProfile | null>;
|
|
18
|
+
findByUserIdOrFail(userId: string): Promise<UserProfile>;
|
|
19
|
+
findByUsername(username: string, manager?: EntityManager): Promise<UserProfile | null>;
|
|
20
|
+
findAll(filter: UserProfileFilterDto): Promise<PaginatedResult<UserProfile>>;
|
|
21
|
+
update(userId: string, dto: UpdateUserProfileDto): Promise<UserProfile>;
|
|
22
|
+
/**
|
|
23
|
+
* Change phone number via OTP verification.
|
|
24
|
+
* The client must first call POST /auth/send-otp with the new number,
|
|
25
|
+
* then POST /auth/verify-otp, and pass the returned verificationId + otp here.
|
|
26
|
+
*/
|
|
27
|
+
changePhoneNumber(userId: string, changePhoneDto: ChangePhoneDto): Promise<import("../../..").User>;
|
|
28
|
+
deleteAccount(userId: string): Promise<void>;
|
|
29
|
+
private assertUsernameAvailable;
|
|
30
|
+
private validateProfileFileRefs;
|
|
31
|
+
}
|
|
32
|
+
//# sourceMappingURL=profile.service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"profile.service.d.ts","sourceRoot":"","sources":["../../../../src/modules/profile/services/profile.service.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAEpD,OAAO,EAAE,eAAe,EAAE,MAAM,sCAAsC,CAAC;AAKvE,OAAO,EAAE,iBAAiB,EAAE,MAAM,gDAAgD,CAAC;AACnF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,CAAC,MAAM,EAAE,MAAM,EAAE,cAAc,EAAE,cAAc;IAuBhE,aAAa,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;YAIpC,uBAAuB;YAavB,uBAAuB;CAoBrC"}
|
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
12
|
+
return function (target, key) { decorator(target, key, paramIndex); }
|
|
13
|
+
};
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.UserProfilesService = void 0;
|
|
16
|
+
const common_1 = require("@nestjs/common");
|
|
17
|
+
const typeorm_1 = require("@nestjs/typeorm");
|
|
18
|
+
const typeorm_2 = require("typeorm");
|
|
19
|
+
const upload_types_1 = require("../../file-upload/constants/upload.types");
|
|
20
|
+
const file_upload_service_1 = require("../../file-upload/services/file-upload.service");
|
|
21
|
+
const otp_service_interface_1 = require("../../otp/interfaces/otp.service.interface");
|
|
22
|
+
const users_service_1 = require("../../users/services/users.service");
|
|
23
|
+
const user_profiles_entity_1 = require("../entities/user-profiles.entity");
|
|
24
|
+
let UserProfilesService = class UserProfilesService {
|
|
25
|
+
profileRepository;
|
|
26
|
+
usersService;
|
|
27
|
+
otpService;
|
|
28
|
+
fileUploadService;
|
|
29
|
+
constructor(profileRepository, usersService, otpService, fileUploadService) {
|
|
30
|
+
this.profileRepository = profileRepository;
|
|
31
|
+
this.usersService = usersService;
|
|
32
|
+
this.otpService = otpService;
|
|
33
|
+
this.fileUploadService = fileUploadService;
|
|
34
|
+
}
|
|
35
|
+
async create(userId, dto, manager) {
|
|
36
|
+
const repo = manager?.getRepository(user_profiles_entity_1.UserProfile) ?? this.profileRepository;
|
|
37
|
+
const existing = await repo.findOne({ where: { userId } });
|
|
38
|
+
if (existing) {
|
|
39
|
+
throw new common_1.ConflictException('Profile already exists for this user');
|
|
40
|
+
}
|
|
41
|
+
if (dto.username) {
|
|
42
|
+
await this.assertUsernameAvailable(dto.username, undefined, manager);
|
|
43
|
+
}
|
|
44
|
+
await this.validateProfileFileRefs(userId, dto);
|
|
45
|
+
const profile = repo.create({
|
|
46
|
+
userId,
|
|
47
|
+
...dto,
|
|
48
|
+
photoFileId: dto.photoFileId ?? undefined,
|
|
49
|
+
coverPhotoFileId: dto.coverPhotoFileId ?? undefined,
|
|
50
|
+
username: dto.username?.trim().toLowerCase(),
|
|
51
|
+
onboardingStep: 0,
|
|
52
|
+
isProfileCompleted: false,
|
|
53
|
+
});
|
|
54
|
+
return repo.save(profile);
|
|
55
|
+
}
|
|
56
|
+
async findByUserId(userId) {
|
|
57
|
+
return this.profileRepository.findOne({
|
|
58
|
+
where: { userId },
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
async findByUserIdOrFail(userId) {
|
|
62
|
+
const profile = await this.findByUserId(userId);
|
|
63
|
+
if (!profile) {
|
|
64
|
+
throw new common_1.NotFoundException('Profile not found');
|
|
65
|
+
}
|
|
66
|
+
return profile;
|
|
67
|
+
}
|
|
68
|
+
async findByUsername(username, manager) {
|
|
69
|
+
const repo = manager?.getRepository(user_profiles_entity_1.UserProfile) ?? this.profileRepository;
|
|
70
|
+
return repo.findOne({
|
|
71
|
+
where: {
|
|
72
|
+
username: username.trim().toLowerCase(),
|
|
73
|
+
},
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
async findAll(filter) {
|
|
77
|
+
const page = filter.page ?? 1;
|
|
78
|
+
const limit = filter.limit ?? 20;
|
|
79
|
+
const skip = (page - 1) * limit;
|
|
80
|
+
const qb = this.profileRepository
|
|
81
|
+
.createQueryBuilder('profile')
|
|
82
|
+
.skip(skip)
|
|
83
|
+
.take(limit)
|
|
84
|
+
.orderBy('profile.createdAt', 'DESC');
|
|
85
|
+
if (filter.search?.trim()) {
|
|
86
|
+
const term = `%${filter.search.trim().toLowerCase()}%`;
|
|
87
|
+
qb.andWhere(`(
|
|
88
|
+
LOWER(profile.firstName) LIKE :term
|
|
89
|
+
OR LOWER(profile.lastName) LIKE :term
|
|
90
|
+
OR LOWER(profile.displayName) LIKE :term
|
|
91
|
+
OR LOWER(profile.username) LIKE :term
|
|
92
|
+
)`, { term });
|
|
93
|
+
}
|
|
94
|
+
if (filter.isVerified !== undefined) {
|
|
95
|
+
qb.andWhere('profile.isVerified = :isVerified', {
|
|
96
|
+
isVerified: filter.isVerified,
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
if (filter.isPublic !== undefined) {
|
|
100
|
+
qb.andWhere('profile.isPublic = :isPublic', {
|
|
101
|
+
isPublic: filter.isPublic,
|
|
102
|
+
});
|
|
103
|
+
}
|
|
104
|
+
if (filter.username?.trim()) {
|
|
105
|
+
qb.andWhere('profile.username = :username', {
|
|
106
|
+
username: filter.username.trim().toLowerCase(),
|
|
107
|
+
});
|
|
108
|
+
}
|
|
109
|
+
if (filter.occupation?.trim()) {
|
|
110
|
+
qb.andWhere('LOWER(profile.occupation) LIKE :occupation', {
|
|
111
|
+
occupation: `%${filter.occupation.trim().toLowerCase()}%`,
|
|
112
|
+
});
|
|
113
|
+
}
|
|
114
|
+
const [data, total] = await qb.getManyAndCount();
|
|
115
|
+
return {
|
|
116
|
+
data: data,
|
|
117
|
+
total,
|
|
118
|
+
page,
|
|
119
|
+
limit,
|
|
120
|
+
totalPages: Math.ceil(total / limit),
|
|
121
|
+
};
|
|
122
|
+
}
|
|
123
|
+
async update(userId, dto) {
|
|
124
|
+
const profile = await this.findByUserIdOrFail(userId);
|
|
125
|
+
if (dto.username) {
|
|
126
|
+
await this.assertUsernameAvailable(dto.username, profile.id);
|
|
127
|
+
}
|
|
128
|
+
await this.validateProfileFileRefs(userId, dto);
|
|
129
|
+
Object.assign(profile, dto);
|
|
130
|
+
if (dto.username) {
|
|
131
|
+
profile.username = dto.username.trim().toLowerCase();
|
|
132
|
+
}
|
|
133
|
+
return this.profileRepository.save(profile);
|
|
134
|
+
}
|
|
135
|
+
/**
|
|
136
|
+
* Change phone number via OTP verification.
|
|
137
|
+
* The client must first call POST /auth/send-otp with the new number,
|
|
138
|
+
* then POST /auth/verify-otp, and pass the returned verificationId + otp here.
|
|
139
|
+
*/
|
|
140
|
+
async changePhoneNumber(userId, changePhoneDto) {
|
|
141
|
+
const { data: { subject: phoneNumber }, } = await this.otpService.verifyOtp(changePhoneDto.verificationId, changePhoneDto.otp);
|
|
142
|
+
const existingUser = await this.usersService.findBy({ phoneNumber });
|
|
143
|
+
if (existingUser && existingUser.id !== userId) {
|
|
144
|
+
throw new common_1.ConflictException('Phone number already in use');
|
|
145
|
+
}
|
|
146
|
+
const user = await this.usersService.findByIdOrFail(userId);
|
|
147
|
+
user.phoneNumber = phoneNumber;
|
|
148
|
+
user.isPhoneVerified = true;
|
|
149
|
+
await this.usersService.update(userId, {
|
|
150
|
+
phoneNumber,
|
|
151
|
+
isPhoneVerified: true,
|
|
152
|
+
});
|
|
153
|
+
return this.usersService.findByIdOrFail(userId);
|
|
154
|
+
}
|
|
155
|
+
async deleteAccount(userId) {
|
|
156
|
+
await this.usersService.delete(userId);
|
|
157
|
+
}
|
|
158
|
+
async assertUsernameAvailable(username, excludeProfileId, manager) {
|
|
159
|
+
const normalized = username.trim().toLowerCase();
|
|
160
|
+
const existing = await this.findByUsername(normalized, manager);
|
|
161
|
+
if (existing && existing.id !== excludeProfileId) {
|
|
162
|
+
throw new common_1.ConflictException('Username is already taken');
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
async validateProfileFileRefs(userId, dto) {
|
|
166
|
+
if (dto.photoFileId) {
|
|
167
|
+
await this.fileUploadService.assertUserFileCategory(userId, dto.photoFileId, upload_types_1.UPLOAD_CATEGORY_PROFILE_PHOTO);
|
|
168
|
+
}
|
|
169
|
+
if (dto.coverPhotoFileId) {
|
|
170
|
+
await this.fileUploadService.assertUserFileCategory(userId, dto.coverPhotoFileId, upload_types_1.UPLOAD_CATEGORY_COVER_PHOTO);
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
};
|
|
174
|
+
exports.UserProfilesService = UserProfilesService;
|
|
175
|
+
exports.UserProfilesService = UserProfilesService = __decorate([
|
|
176
|
+
(0, common_1.Injectable)(),
|
|
177
|
+
__param(0, (0, typeorm_1.InjectRepository)(user_profiles_entity_1.UserProfile)),
|
|
178
|
+
__param(1, (0, common_1.Inject)((0, common_1.forwardRef)(() => users_service_1.UsersService))),
|
|
179
|
+
__param(2, (0, common_1.Inject)(otp_service_interface_1.IOtpService)),
|
|
180
|
+
__metadata("design:paramtypes", [typeorm_2.Repository,
|
|
181
|
+
users_service_1.UsersService,
|
|
182
|
+
otp_service_interface_1.IOtpService,
|
|
183
|
+
file_upload_service_1.FileUploadService])
|
|
184
|
+
], UserProfilesService);
|
|
185
|
+
//# sourceMappingURL=profile.service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"profile.service.js","sourceRoot":"","sources":["../../../../src/modules/profile/services/profile.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAMwB;AACxB,6CAAmD;AACnD,qCAAoD;AAGpD,2EAGkD;AAClD,wFAAmF;AACnF,sFAAyE;AACzE,sEAAkE;AAQlE,2EAA+D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AY,CAAC,CAAC,CAAA;IAEtC,WAAA,IAAA,eAAM,EAAC,mCAAW,CAAC,CAAA;qCAHgB,oBAAU;QAEf,4BAAY;QAEd,mCAAW;QACJ,uCAAiB;GAR1C,mBAAmB,CA+M/B"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { ModulesController } from './modules.controller';
|
|
2
|
+
export { PermissionsController } from './permissions.controller';
|
|
3
|
+
export { RolesController } from './roles.controller';
|
|
4
|
+
export { UserRolesController } from './user-roles.controller';
|
|
5
|
+
//# sourceMappingURL=index.d.ts.map
|