@hed-hog/core 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/auth/auth.controller.d.ts +167 -0
- package/dist/auth/auth.controller.d.ts.map +1 -0
- package/dist/auth/auth.controller.js +236 -0
- package/dist/auth/auth.controller.js.map +1 -0
- package/dist/auth/auth.module.d.ts +5 -0
- package/dist/auth/auth.module.d.ts.map +1 -0
- package/dist/auth/auth.module.js +116 -0
- package/dist/auth/auth.module.js.map +1 -0
- package/dist/auth/auth.service.d.ts +215 -0
- package/dist/auth/auth.service.d.ts.map +1 -0
- package/dist/auth/auth.service.js +493 -0
- package/dist/auth/auth.service.js.map +1 -0
- package/dist/auth/consts/body.d.ts +2 -0
- package/dist/auth/consts/body.d.ts.map +1 -0
- package/dist/auth/consts/body.js +32 -0
- package/dist/auth/consts/body.js.map +1 -0
- package/dist/auth/dto/change.dto.d.ts +7 -0
- package/dist/auth/dto/change.dto.d.ts.map +1 -0
- package/dist/auth/dto/change.dto.js +51 -0
- package/dist/auth/dto/change.dto.js.map +1 -0
- package/dist/auth/dto/create-user.dto.d.ts +12 -0
- package/dist/auth/dto/create-user.dto.d.ts.map +1 -0
- package/dist/auth/dto/create-user.dto.js +60 -0
- package/dist/auth/dto/create-user.dto.js.map +1 -0
- package/dist/auth/dto/email.dto.d.ts +6 -0
- package/dist/auth/dto/email.dto.d.ts.map +1 -0
- package/dist/auth/dto/email.dto.js +33 -0
- package/dist/auth/dto/email.dto.js.map +1 -0
- package/dist/auth/dto/forget.dto.d.ts +6 -0
- package/dist/auth/dto/forget.dto.d.ts.map +1 -0
- package/dist/auth/dto/forget.dto.js +29 -0
- package/dist/auth/dto/forget.dto.js.map +1 -0
- package/dist/auth/dto/login-with-code.dto.d.ts +6 -0
- package/dist/auth/dto/login-with-code.dto.d.ts.map +1 -0
- package/dist/auth/dto/login-with-code.dto.js +31 -0
- package/dist/auth/dto/login-with-code.dto.js.map +1 -0
- package/dist/auth/dto/login-with-recovery-code.d.ts +5 -0
- package/dist/auth/dto/login-with-recovery-code.d.ts.map +1 -0
- package/dist/auth/dto/login-with-recovery-code.js +26 -0
- package/dist/auth/dto/login-with-recovery-code.js.map +1 -0
- package/dist/auth/dto/login.dto.d.ts +8 -0
- package/dist/auth/dto/login.dto.d.ts.map +1 -0
- package/dist/auth/dto/login.dto.js +51 -0
- package/dist/auth/dto/login.dto.js.map +1 -0
- package/dist/auth/dto/resend-mfa-code.dto.d.ts +4 -0
- package/dist/auth/dto/resend-mfa-code.dto.d.ts.map +1 -0
- package/dist/auth/dto/resend-mfa-code.dto.js +21 -0
- package/dist/auth/dto/resend-mfa-code.dto.js.map +1 -0
- package/dist/auth/dto/reset.dto.d.ts +5 -0
- package/dist/auth/dto/reset.dto.d.ts.map +1 -0
- package/dist/auth/dto/reset.dto.js +29 -0
- package/dist/auth/dto/reset.dto.js.map +1 -0
- package/dist/auth/enums/multifactor-type.enum.d.ts +5 -0
- package/dist/auth/enums/multifactor-type.enum.d.ts.map +1 -0
- package/dist/auth/enums/multifactor-type.enum.js +9 -0
- package/dist/auth/enums/multifactor-type.enum.js.map +1 -0
- package/dist/auth/guards/auth.guard.d.ts +11 -0
- package/dist/auth/guards/auth.guard.d.ts.map +1 -0
- package/dist/auth/guards/auth.guard.js +65 -0
- package/dist/auth/guards/auth.guard.js.map +1 -0
- package/dist/challenge/challenge.module.d.ts +3 -0
- package/dist/challenge/challenge.module.d.ts.map +1 -0
- package/dist/challenge/challenge.module.js +33 -0
- package/dist/challenge/challenge.module.js.map +1 -0
- package/dist/challenge/challenge.service.d.ts +84 -0
- package/dist/challenge/challenge.service.d.ts.map +1 -0
- package/dist/challenge/challenge.service.js +288 -0
- package/dist/challenge/challenge.service.js.map +1 -0
- package/dist/core/core.controller.d.ts +44 -0
- package/dist/core/core.controller.d.ts.map +1 -0
- package/dist/core/core.controller.js +38 -0
- package/dist/core/core.controller.js.map +1 -0
- package/dist/core/core.module.d.ts +3 -0
- package/dist/core/core.module.d.ts.map +1 -0
- package/dist/core/core.module.js +28 -0
- package/dist/core/core.module.js.map +1 -0
- package/dist/core/core.service.d.ts +56 -0
- package/dist/core/core.service.d.ts.map +1 -0
- package/dist/core/core.service.js +320 -0
- package/dist/core/core.service.js.map +1 -0
- package/dist/core/system.controller.d.ts +44 -0
- package/dist/core/system.controller.d.ts.map +1 -0
- package/dist/core/system.controller.js +38 -0
- package/dist/core/system.controller.js.map +1 -0
- package/dist/core/system.module.d.ts +3 -0
- package/dist/core/system.module.d.ts.map +1 -0
- package/dist/core/system.module.js +28 -0
- package/dist/core/system.module.js.map +1 -0
- package/dist/core/system.service.d.ts +56 -0
- package/dist/core/system.service.d.ts.map +1 -0
- package/dist/core/system.service.js +320 -0
- package/dist/core/system.service.js.map +1 -0
- package/dist/core.module.d.ts +5 -0
- package/dist/core.module.d.ts.map +1 -0
- package/dist/core.module.js +101 -0
- package/dist/core.module.js.map +1 -0
- package/dist/dashboard/dashboard/dashboard.controller.d.ts +24 -0
- package/dist/dashboard/dashboard/dashboard.controller.d.ts.map +1 -0
- package/dist/dashboard/dashboard/dashboard.controller.js +88 -0
- package/dist/dashboard/dashboard/dashboard.controller.js.map +1 -0
- package/dist/dashboard/dashboard/dashboard.module.d.ts +3 -0
- package/dist/dashboard/dashboard/dashboard.module.d.ts.map +1 -0
- package/dist/dashboard/dashboard/dashboard.module.js +26 -0
- package/dist/dashboard/dashboard/dashboard.module.js.map +1 -0
- package/dist/dashboard/dashboard/dashboard.service.d.ts +32 -0
- package/dist/dashboard/dashboard/dashboard.service.d.ts.map +1 -0
- package/dist/dashboard/dashboard/dashboard.service.js +61 -0
- package/dist/dashboard/dashboard/dashboard.service.js.map +1 -0
- package/dist/dashboard/dashboard/dto/create.dto.d.ts +5 -0
- package/dist/dashboard/dashboard/dto/create.dto.d.ts.map +1 -0
- package/dist/dashboard/dashboard/dto/create.dto.js +23 -0
- package/dist/dashboard/dashboard/dto/create.dto.js.map +1 -0
- package/dist/dashboard/dashboard/dto/update.dto.d.ts +6 -0
- package/dist/dashboard/dashboard/dto/update.dto.d.ts.map +1 -0
- package/dist/dashboard/dashboard/dto/update.dto.js +9 -0
- package/dist/dashboard/dashboard/dto/update.dto.js.map +1 -0
- package/dist/dashboard/dashboard-component/dashboard-component.controller.d.ts +24 -0
- package/dist/dashboard/dashboard-component/dashboard-component.controller.d.ts.map +1 -0
- package/dist/dashboard/dashboard-component/dashboard-component.controller.js +90 -0
- package/dist/dashboard/dashboard-component/dashboard-component.controller.js.map +1 -0
- package/dist/dashboard/dashboard-component/dashboard-component.module.d.ts +3 -0
- package/dist/dashboard/dashboard-component/dashboard-component.module.d.ts.map +1 -0
- package/dist/dashboard/dashboard-component/dashboard-component.module.js +26 -0
- package/dist/dashboard/dashboard-component/dashboard-component.module.js.map +1 -0
- package/dist/dashboard/dashboard-component/dashboard-component.service.d.ts +32 -0
- package/dist/dashboard/dashboard-component/dashboard-component.service.d.ts.map +1 -0
- package/dist/dashboard/dashboard-component/dashboard-component.service.js +59 -0
- package/dist/dashboard/dashboard-component/dashboard-component.service.js.map +1 -0
- package/dist/dashboard/dashboard-component/dto/create.dto.d.ts +13 -0
- package/dist/dashboard/dashboard-component/dto/create.dto.d.ts.map +1 -0
- package/dist/dashboard/dashboard-component/dto/create.dto.js +59 -0
- package/dist/dashboard/dashboard-component/dto/create.dto.js.map +1 -0
- package/dist/dashboard/dashboard-component/dto/update.dto.d.ts +6 -0
- package/dist/dashboard/dashboard-component/dto/update.dto.d.ts.map +1 -0
- package/dist/dashboard/dashboard-component/dto/update.dto.js +9 -0
- package/dist/dashboard/dashboard-component/dto/update.dto.js.map +1 -0
- package/dist/dashboard/dashboard-core/dashboard-core.controller.d.ts +52 -0
- package/dist/dashboard/dashboard-core/dashboard-core.controller.d.ts.map +1 -0
- package/dist/dashboard/dashboard-core/dashboard-core.controller.js +40 -0
- package/dist/dashboard/dashboard-core/dashboard-core.controller.js.map +1 -0
- package/dist/dashboard/dashboard-core/dashboard-core.module.d.ts +3 -0
- package/dist/dashboard/dashboard-core/dashboard-core.module.d.ts.map +1 -0
- package/dist/dashboard/dashboard-core/dashboard-core.module.js +26 -0
- package/dist/dashboard/dashboard-core/dashboard-core.module.js.map +1 -0
- package/dist/dashboard/dashboard-core/dashboard-core.service.d.ts +52 -0
- package/dist/dashboard/dashboard-core/dashboard-core.service.d.ts.map +1 -0
- package/dist/dashboard/dashboard-core/dashboard-core.service.js +44 -0
- package/dist/dashboard/dashboard-core/dashboard-core.service.js.map +1 -0
- package/dist/dashboard/dashboard-item/dashboard-item.controller.d.ts +54 -0
- package/dist/dashboard/dashboard-item/dashboard-item.controller.d.ts.map +1 -0
- package/dist/dashboard/dashboard-item/dashboard-item.controller.js +88 -0
- package/dist/dashboard/dashboard-item/dashboard-item.controller.js.map +1 -0
- package/dist/dashboard/dashboard-item/dashboard-item.module.d.ts +3 -0
- package/dist/dashboard/dashboard-item/dashboard-item.module.d.ts.map +1 -0
- package/dist/dashboard/dashboard-item/dashboard-item.module.js +26 -0
- package/dist/dashboard/dashboard-item/dashboard-item.module.js.map +1 -0
- package/dist/dashboard/dashboard-item/dashboard-item.service.d.ts +59 -0
- package/dist/dashboard/dashboard-item/dashboard-item.service.d.ts.map +1 -0
- package/dist/dashboard/dashboard-item/dashboard-item.service.js +77 -0
- package/dist/dashboard/dashboard-item/dashboard-item.service.js.map +1 -0
- package/dist/dashboard/dashboard-item/dto/create.dto.d.ts +9 -0
- package/dist/dashboard/dashboard-item/dto/create.dto.d.ts.map +1 -0
- package/dist/dashboard/dashboard-item/dto/create.dto.js +41 -0
- package/dist/dashboard/dashboard-item/dto/create.dto.js.map +1 -0
- package/dist/dashboard/dashboard-item/dto/update.dto.d.ts +6 -0
- package/dist/dashboard/dashboard-item/dto/update.dto.d.ts.map +1 -0
- package/dist/dashboard/dashboard-item/dto/update.dto.js +9 -0
- package/dist/dashboard/dashboard-item/dto/update.dto.js.map +1 -0
- package/dist/dashboard/dashboard-user/dashboard-user.controller.d.ts +54 -0
- package/dist/dashboard/dashboard-user/dashboard-user.controller.d.ts.map +1 -0
- package/dist/dashboard/dashboard-user/dashboard-user.controller.js +88 -0
- package/dist/dashboard/dashboard-user/dashboard-user.controller.js.map +1 -0
- package/dist/dashboard/dashboard-user/dashboard-user.module.d.ts +3 -0
- package/dist/dashboard/dashboard-user/dashboard-user.module.d.ts.map +1 -0
- package/dist/dashboard/dashboard-user/dashboard-user.module.js +26 -0
- package/dist/dashboard/dashboard-user/dashboard-user.module.js.map +1 -0
- package/dist/dashboard/dashboard-user/dashboard-user.service.d.ts +61 -0
- package/dist/dashboard/dashboard-user/dashboard-user.service.d.ts.map +1 -0
- package/dist/dashboard/dashboard-user/dashboard-user.service.js +83 -0
- package/dist/dashboard/dashboard-user/dashboard-user.service.js.map +1 -0
- package/dist/dashboard/dashboard-user/dto/create.dto.d.ts +10 -0
- package/dist/dashboard/dashboard-user/dto/create.dto.d.ts.map +1 -0
- package/dist/dashboard/dashboard-user/dto/create.dto.js +42 -0
- package/dist/dashboard/dashboard-user/dto/create.dto.js.map +1 -0
- package/dist/dashboard/dashboard-user/dto/update.dto.d.ts +6 -0
- package/dist/dashboard/dashboard-user/dto/update.dto.d.ts.map +1 -0
- package/dist/dashboard/dashboard-user/dto/update.dto.js +9 -0
- package/dist/dashboard/dashboard-user/dto/update.dto.js.map +1 -0
- package/dist/dashboard/dashboard.module.d.ts +3 -0
- package/dist/dashboard/dashboard.module.d.ts.map +1 -0
- package/dist/dashboard/dashboard.module.js +37 -0
- package/dist/dashboard/dashboard.module.js.map +1 -0
- package/dist/dashboard/index.d.ts +2 -0
- package/dist/dashboard/index.d.ts.map +1 -0
- package/dist/dashboard/index.js +18 -0
- package/dist/dashboard/index.js.map +1 -0
- package/dist/decorators/inject-locale.decorator.d.ts +2 -0
- package/dist/decorators/inject-locale.decorator.d.ts.map +1 -0
- package/dist/decorators/inject-locale.decorator.js +16 -0
- package/dist/decorators/inject-locale.decorator.js.map +1 -0
- package/dist/dto/delete.dto.d.ts +4 -0
- package/dist/dto/delete.dto.d.ts.map +1 -0
- package/dist/dto/delete.dto.js +23 -0
- package/dist/dto/delete.dto.js.map +1 -0
- package/dist/dto/update-ids.dto.d.ts +4 -0
- package/dist/dto/update-ids.dto.d.ts.map +1 -0
- package/dist/dto/update-ids.dto.js +27 -0
- package/dist/dto/update-ids.dto.js.map +1 -0
- package/dist/emails/index.d.ts +3 -0
- package/dist/emails/index.d.ts.map +1 -0
- package/dist/emails/index.js +19 -0
- package/dist/emails/index.js.map +1 -0
- package/dist/emails/lib.d.ts +8 -0
- package/dist/emails/lib.d.ts.map +1 -0
- package/dist/emails/lib.js +73 -0
- package/dist/emails/lib.js.map +1 -0
- package/dist/emails/templates.d.ts +17 -0
- package/dist/emails/templates.d.ts.map +1 -0
- package/dist/emails/templates.js +70 -0
- package/dist/emails/templates.js.map +1 -0
- package/dist/file/dto/delete.dto.d.ts +4 -0
- package/dist/file/dto/delete.dto.d.ts.map +1 -0
- package/dist/file/dto/delete.dto.js +23 -0
- package/dist/file/dto/delete.dto.js.map +1 -0
- package/dist/file/dto/upload.dto.d.ts +4 -0
- package/dist/file/dto/upload.dto.d.ts.map +1 -0
- package/dist/file/dto/upload.dto.js +22 -0
- package/dist/file/dto/upload.dto.js.map +1 -0
- package/dist/file/file.controller.d.ts +45 -0
- package/dist/file/file.controller.d.ts.map +1 -0
- package/dist/file/file.controller.js +112 -0
- package/dist/file/file.controller.js.map +1 -0
- package/dist/file/file.module.d.ts +3 -0
- package/dist/file/file.module.d.ts.map +1 -0
- package/dist/file/file.module.js +40 -0
- package/dist/file/file.module.js.map +1 -0
- package/dist/file/file.service.d.ts +92 -0
- package/dist/file/file.service.d.ts.map +1 -0
- package/dist/file/file.service.js +260 -0
- package/dist/file/file.service.js.map +1 -0
- package/dist/file/provider/abstract.provider.d.ts +25 -0
- package/dist/file/provider/abstract.provider.d.ts.map +1 -0
- package/dist/file/provider/abstract.provider.js +15 -0
- package/dist/file/provider/abstract.provider.js.map +1 -0
- package/dist/file/provider/azure.provider.d.ts +16 -0
- package/dist/file/provider/azure.provider.d.ts.map +1 -0
- package/dist/file/provider/azure.provider.js +102 -0
- package/dist/file/provider/azure.provider.js.map +1 -0
- package/dist/file/provider/gcs.provider.d.ts +17 -0
- package/dist/file/provider/gcs.provider.d.ts.map +1 -0
- package/dist/file/provider/gcs.provider.js +86 -0
- package/dist/file/provider/gcs.provider.js.map +1 -0
- package/dist/file/provider/local.provider.d.ts +16 -0
- package/dist/file/provider/local.provider.d.ts.map +1 -0
- package/dist/file/provider/local.provider.js +138 -0
- package/dist/file/provider/local.provider.js.map +1 -0
- package/dist/file/provider/provider.enum.d.ts +7 -0
- package/dist/file/provider/provider.enum.d.ts.map +1 -0
- package/dist/file/provider/provider.enum.js +11 -0
- package/dist/file/provider/provider.enum.js.map +1 -0
- package/dist/file/provider/provider.factory.d.ts +6 -0
- package/dist/file/provider/provider.factory.d.ts.map +1 -0
- package/dist/file/provider/provider.factory.js +21 -0
- package/dist/file/provider/provider.factory.js.map +1 -0
- package/dist/file/provider/s3.provider.d.ts +20 -0
- package/dist/file/provider/s3.provider.d.ts.map +1 -0
- package/dist/file/provider/s3.provider.js +183 -0
- package/dist/file/provider/s3.provider.js.map +1 -0
- package/dist/index.d.ts +13 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +35 -0
- package/dist/index.js.map +1 -0
- package/dist/install/dto/generate-migration.dto.d.ts +12 -0
- package/dist/install/dto/generate-migration.dto.d.ts.map +1 -0
- package/dist/install/dto/generate-migration.dto.js +51 -0
- package/dist/install/dto/generate-migration.dto.js.map +1 -0
- package/dist/install/dto/install.dto.d.ts +8 -0
- package/dist/install/dto/install.dto.d.ts.map +1 -0
- package/dist/install/dto/install.dto.js +46 -0
- package/dist/install/dto/install.dto.js.map +1 -0
- package/dist/install/install.controller.d.ts +19 -0
- package/dist/install/install.controller.d.ts.map +1 -0
- package/dist/install/install.controller.js +61 -0
- package/dist/install/install.controller.js.map +1 -0
- package/dist/install/install.module.d.ts +3 -0
- package/dist/install/install.module.d.ts.map +1 -0
- package/dist/install/install.module.js +32 -0
- package/dist/install/install.module.js.map +1 -0
- package/dist/install/install.service.d.ts +35 -0
- package/dist/install/install.service.d.ts.map +1 -0
- package/dist/install/install.service.js +332 -0
- package/dist/install/install.service.js.map +1 -0
- package/dist/mail/dto/create.dto.d.ts +15 -0
- package/dist/mail/dto/create.dto.d.ts.map +1 -0
- package/dist/mail/dto/create.dto.js +52 -0
- package/dist/mail/dto/create.dto.js.map +1 -0
- package/dist/mail/dto/send.dto.d.ts +6 -0
- package/dist/mail/dto/send.dto.d.ts.map +1 -0
- package/dist/mail/dto/send.dto.js +31 -0
- package/dist/mail/dto/send.dto.js.map +1 -0
- package/dist/mail/dto/test-mail.dto.d.ts +7 -0
- package/dist/mail/dto/test-mail.dto.d.ts.map +1 -0
- package/dist/mail/dto/test-mail.dto.js +37 -0
- package/dist/mail/dto/test-mail.dto.js.map +1 -0
- package/dist/mail/dto/update.dto.d.ts +6 -0
- package/dist/mail/dto/update.dto.d.ts.map +1 -0
- package/dist/mail/dto/update.dto.js +9 -0
- package/dist/mail/dto/update.dto.js.map +1 -0
- package/dist/mail/mail.controller.d.ts +89 -0
- package/dist/mail/mail.controller.d.ts.map +1 -0
- package/dist/mail/mail.controller.js +104 -0
- package/dist/mail/mail.controller.js.map +1 -0
- package/dist/mail/mail.module.d.ts +3 -0
- package/dist/mail/mail.module.d.ts.map +1 -0
- package/dist/mail/mail.module.js +113 -0
- package/dist/mail/mail.module.js.map +1 -0
- package/dist/mail/mail.service.d.ts +122 -0
- package/dist/mail/mail.service.d.ts.map +1 -0
- package/dist/mail/mail.service.js +356 -0
- package/dist/mail/mail.service.js.map +1 -0
- package/dist/mail-sent/dto/create.dto.d.ts +10 -0
- package/dist/mail-sent/dto/create.dto.d.ts.map +1 -0
- package/dist/mail-sent/dto/create.dto.js +70 -0
- package/dist/mail-sent/dto/create.dto.js.map +1 -0
- package/dist/mail-sent/dto/update.dto.d.ts +6 -0
- package/dist/mail-sent/dto/update.dto.d.ts.map +1 -0
- package/dist/mail-sent/dto/update.dto.js +9 -0
- package/dist/mail-sent/dto/update.dto.js.map +1 -0
- package/dist/mail-sent/mail-sent.controller.d.ts +57 -0
- package/dist/mail-sent/mail-sent.controller.d.ts.map +1 -0
- package/dist/mail-sent/mail-sent.controller.js +88 -0
- package/dist/mail-sent/mail-sent.controller.js.map +1 -0
- package/dist/mail-sent/mail-sent.module.d.ts +3 -0
- package/dist/mail-sent/mail-sent.module.d.ts.map +1 -0
- package/dist/mail-sent/mail-sent.module.js +26 -0
- package/dist/mail-sent/mail-sent.module.js.map +1 -0
- package/dist/mail-sent/mail-sent.service.d.ts +62 -0
- package/dist/mail-sent/mail-sent.service.d.ts.map +1 -0
- package/dist/mail-sent/mail-sent.service.js +93 -0
- package/dist/mail-sent/mail-sent.service.js.map +1 -0
- package/dist/mail-var/dto/create.dto.d.ts +5 -0
- package/dist/mail-var/dto/create.dto.d.ts.map +1 -0
- package/dist/mail-var/dto/create.dto.js +25 -0
- package/dist/mail-var/dto/create.dto.js.map +1 -0
- package/dist/mail-var/dto/update.dto.d.ts +6 -0
- package/dist/mail-var/dto/update.dto.d.ts.map +1 -0
- package/dist/mail-var/dto/update.dto.js +9 -0
- package/dist/mail-var/dto/update.dto.js.map +1 -0
- package/dist/mail-var/mail-var.controller.d.ts +42 -0
- package/dist/mail-var/mail-var.controller.d.ts.map +1 -0
- package/dist/mail-var/mail-var.controller.js +88 -0
- package/dist/mail-var/mail-var.controller.js.map +1 -0
- package/dist/mail-var/mail-var.module.d.ts +3 -0
- package/dist/mail-var/mail-var.module.d.ts.map +1 -0
- package/dist/mail-var/mail-var.module.js +26 -0
- package/dist/mail-var/mail-var.module.js.map +1 -0
- package/dist/mail-var/mail-var.service.d.ts +47 -0
- package/dist/mail-var/mail-var.service.d.ts.map +1 -0
- package/dist/mail-var/mail-var.service.js +73 -0
- package/dist/mail-var/mail-var.service.js.map +1 -0
- package/dist/menu/dto/create.dto.d.ts +8 -0
- package/dist/menu/dto/create.dto.d.ts.map +1 -0
- package/dist/menu/dto/create.dto.js +45 -0
- package/dist/menu/dto/create.dto.js.map +1 -0
- package/dist/menu/dto/order.dto.d.ts +4 -0
- package/dist/menu/dto/order.dto.d.ts.map +1 -0
- package/dist/menu/dto/order.dto.js +23 -0
- package/dist/menu/dto/order.dto.js.map +1 -0
- package/dist/menu/dto/update.dto.d.ts +7 -0
- package/dist/menu/dto/update.dto.d.ts.map +1 -0
- package/dist/menu/dto/update.dto.js +38 -0
- package/dist/menu/dto/update.dto.js.map +1 -0
- package/dist/menu/menu.controller.d.ts +81 -0
- package/dist/menu/menu.controller.d.ts.map +1 -0
- package/dist/menu/menu.controller.js +160 -0
- package/dist/menu/menu.controller.js.map +1 -0
- package/dist/menu/menu.module.d.ts +3 -0
- package/dist/menu/menu.module.d.ts.map +1 -0
- package/dist/menu/menu.module.js +31 -0
- package/dist/menu/menu.module.js.map +1 -0
- package/dist/menu/menu.service.d.ts +85 -0
- package/dist/menu/menu.service.d.ts.map +1 -0
- package/dist/menu/menu.service.js +223 -0
- package/dist/menu/menu.service.js.map +1 -0
- package/dist/menu/menu.service.spec.d.ts +1 -0
- package/dist/menu/menu.service.spec.d.ts.map +1 -0
- package/dist/menu/menu.service.spec.js +208 -0
- package/dist/menu/menu.service.spec.js.map +1 -0
- package/dist/middlewares/locale-injection.middleware.d.ts +6 -0
- package/dist/middlewares/locale-injection.middleware.d.ts.map +1 -0
- package/dist/middlewares/locale-injection.middleware.js +25 -0
- package/dist/middlewares/locale-injection.middleware.js.map +1 -0
- package/dist/oauth/interfaces/OAuthProvider.d.ts +6 -0
- package/dist/oauth/interfaces/OAuthProvider.d.ts.map +1 -0
- package/dist/oauth/interfaces/OAuthProvider.js +3 -0
- package/dist/oauth/interfaces/OAuthProvider.js.map +1 -0
- package/dist/oauth/oauth.controller.d.ts +27 -0
- package/dist/oauth/oauth.controller.d.ts.map +1 -0
- package/dist/oauth/oauth.controller.js +151 -0
- package/dist/oauth/oauth.controller.js.map +1 -0
- package/dist/oauth/oauth.module.d.ts +3 -0
- package/dist/oauth/oauth.module.d.ts.map +1 -0
- package/dist/oauth/oauth.module.js +49 -0
- package/dist/oauth/oauth.module.js.map +1 -0
- package/dist/oauth/oauth.service.d.ts +51 -0
- package/dist/oauth/oauth.service.d.ts.map +1 -0
- package/dist/oauth/oauth.service.js +294 -0
- package/dist/oauth/oauth.service.js.map +1 -0
- package/dist/oauth/providers/abstract.provider.d.ts +18 -0
- package/dist/oauth/providers/abstract.provider.d.ts.map +1 -0
- package/dist/oauth/providers/abstract.provider.js +30 -0
- package/dist/oauth/providers/abstract.provider.js.map +1 -0
- package/dist/oauth/providers/facebook.provider.d.ts +14 -0
- package/dist/oauth/providers/facebook.provider.d.ts.map +1 -0
- package/dist/oauth/providers/facebook.provider.js +73 -0
- package/dist/oauth/providers/facebook.provider.js.map +1 -0
- package/dist/oauth/providers/github.provider.d.ts +25 -0
- package/dist/oauth/providers/github.provider.d.ts.map +1 -0
- package/dist/oauth/providers/github.provider.js +105 -0
- package/dist/oauth/providers/github.provider.js.map +1 -0
- package/dist/oauth/providers/google.provider.d.ts +15 -0
- package/dist/oauth/providers/google.provider.d.ts.map +1 -0
- package/dist/oauth/providers/google.provider.js +94 -0
- package/dist/oauth/providers/google.provider.js.map +1 -0
- package/dist/oauth/providers/microsoft.provider.d.ts +14 -0
- package/dist/oauth/providers/microsoft.provider.d.ts.map +1 -0
- package/dist/oauth/providers/microsoft.provider.js +81 -0
- package/dist/oauth/providers/microsoft.provider.js.map +1 -0
- package/dist/profile/dto/change-password.dto.d.ts +5 -0
- package/dist/profile/dto/change-password.dto.d.ts.map +1 -0
- package/dist/profile/dto/change-password.dto.js +32 -0
- package/dist/profile/dto/change-password.dto.js.map +1 -0
- package/dist/profile/dto/email-verification-confirm.dto.d.ts +7 -0
- package/dist/profile/dto/email-verification-confirm.dto.d.ts.map +1 -0
- package/dist/profile/dto/email-verification-confirm.dto.js +36 -0
- package/dist/profile/dto/email-verification-confirm.dto.js.map +1 -0
- package/dist/profile/dto/generate-webauthn-registration-options.dto.d.ts +4 -0
- package/dist/profile/dto/generate-webauthn-registration-options.dto.d.ts.map +1 -0
- package/dist/profile/dto/generate-webauthn-registration-options.dto.js +22 -0
- package/dist/profile/dto/generate-webauthn-registration-options.dto.js.map +1 -0
- package/dist/profile/dto/regenerate-recovery-codes.dto.d.ts +7 -0
- package/dist/profile/dto/regenerate-recovery-codes.dto.d.ts.map +1 -0
- package/dist/profile/dto/regenerate-recovery-codes.dto.js +36 -0
- package/dist/profile/dto/regenerate-recovery-codes.dto.js.map +1 -0
- package/dist/profile/dto/remove-email-mfa.dto.d.ts +5 -0
- package/dist/profile/dto/remove-email-mfa.dto.d.ts.map +1 -0
- package/dist/profile/dto/remove-email-mfa.dto.js +27 -0
- package/dist/profile/dto/remove-email-mfa.dto.js.map +1 -0
- package/dist/profile/dto/remove-mfa-with-recovery-code.dto.d.ts +4 -0
- package/dist/profile/dto/remove-mfa-with-recovery-code.dto.d.ts.map +1 -0
- package/dist/profile/dto/remove-mfa-with-recovery-code.dto.js +22 -0
- package/dist/profile/dto/remove-mfa-with-recovery-code.dto.js.map +1 -0
- package/dist/profile/dto/remove-mfa.dto.d.ts +7 -0
- package/dist/profile/dto/remove-mfa.dto.d.ts.map +1 -0
- package/dist/profile/dto/remove-mfa.dto.js +36 -0
- package/dist/profile/dto/remove-mfa.dto.js.map +1 -0
- package/dist/profile/dto/remove-totp-mfa.dto.d.ts +4 -0
- package/dist/profile/dto/remove-totp-mfa.dto.d.ts.map +1 -0
- package/dist/profile/dto/remove-totp-mfa.dto.js +22 -0
- package/dist/profile/dto/remove-totp-mfa.dto.js.map +1 -0
- package/dist/profile/dto/send-email-verification.dto.d.ts +4 -0
- package/dist/profile/dto/send-email-verification.dto.d.ts.map +1 -0
- package/dist/profile/dto/send-email-verification.dto.js +24 -0
- package/dist/profile/dto/send-email-verification.dto.js.map +1 -0
- package/dist/profile/dto/set-preferences.dto.d.ts +5 -0
- package/dist/profile/dto/set-preferences.dto.d.ts.map +1 -0
- package/dist/profile/dto/set-preferences.dto.js +27 -0
- package/dist/profile/dto/set-preferences.dto.js.map +1 -0
- package/dist/profile/dto/update.dto.d.ts +4 -0
- package/dist/profile/dto/update.dto.d.ts.map +1 -0
- package/dist/profile/dto/update.dto.js +24 -0
- package/dist/profile/dto/update.dto.js.map +1 -0
- package/dist/profile/dto/verify-before-add-mfa.dto.d.ts +7 -0
- package/dist/profile/dto/verify-before-add-mfa.dto.d.ts.map +1 -0
- package/dist/profile/dto/verify-before-add-mfa.dto.js +34 -0
- package/dist/profile/dto/verify-before-add-mfa.dto.js.map +1 -0
- package/dist/profile/dto/verify-mfa-totp.dto.d.ts +6 -0
- package/dist/profile/dto/verify-mfa-totp.dto.d.ts.map +1 -0
- package/dist/profile/dto/verify-mfa-totp.dto.js +35 -0
- package/dist/profile/dto/verify-mfa-totp.dto.js.map +1 -0
- package/dist/profile/dto/verify-webauthn-registration.dto.d.ts +5 -0
- package/dist/profile/dto/verify-webauthn-registration.dto.d.ts.map +1 -0
- package/dist/profile/dto/verify-webauthn-registration.dto.js +27 -0
- package/dist/profile/dto/verify-webauthn-registration.dto.js.map +1 -0
- package/dist/profile/dto/verify-webauthn.dto.d.ts +4 -0
- package/dist/profile/dto/verify-webauthn.dto.d.ts.map +1 -0
- package/dist/profile/dto/verify-webauthn.dto.js +22 -0
- package/dist/profile/dto/verify-webauthn.dto.js.map +1 -0
- package/dist/profile/profile.controller.d.ts +264 -0
- package/dist/profile/profile.controller.d.ts.map +1 -0
- package/dist/profile/profile.controller.js +359 -0
- package/dist/profile/profile.controller.js.map +1 -0
- package/dist/profile/profile.module.d.ts +3 -0
- package/dist/profile/profile.module.d.ts.map +1 -0
- package/dist/profile/profile.module.js +34 -0
- package/dist/profile/profile.module.js.map +1 -0
- package/dist/profile/profile.service.d.ts +242 -0
- package/dist/profile/profile.service.d.ts.map +1 -0
- package/dist/profile/profile.service.js +1158 -0
- package/dist/profile/profile.service.js.map +1 -0
- package/dist/role/dto/create.dto.d.ts +5 -0
- package/dist/role/dto/create.dto.d.ts.map +1 -0
- package/dist/role/dto/create.dto.js +22 -0
- package/dist/role/dto/create.dto.js.map +1 -0
- package/dist/role/dto/update.dto.d.ts +6 -0
- package/dist/role/dto/update.dto.d.ts.map +1 -0
- package/dist/role/dto/update.dto.js +9 -0
- package/dist/role/dto/update.dto.js.map +1 -0
- package/dist/role/guards/role.guard.d.ts +11 -0
- package/dist/role/guards/role.guard.d.ts.map +1 -0
- package/dist/role/guards/role.guard.js +116 -0
- package/dist/role/guards/role.guard.js.map +1 -0
- package/dist/role/role.controller.d.ts +73 -0
- package/dist/role/role.controller.d.ts.map +1 -0
- package/dist/role/role.controller.js +183 -0
- package/dist/role/role.controller.js.map +1 -0
- package/dist/role/role.module.d.ts +3 -0
- package/dist/role/role.module.d.ts.map +1 -0
- package/dist/role/role.module.js +42 -0
- package/dist/role/role.module.js.map +1 -0
- package/dist/role/role.service.d.ts +80 -0
- package/dist/role/role.service.d.ts.map +1 -0
- package/dist/role/role.service.js +241 -0
- package/dist/role/role.service.js.map +1 -0
- package/dist/route/dto/create.dto.d.ts +6 -0
- package/dist/route/dto/create.dto.d.ts.map +1 -0
- package/dist/route/dto/create.dto.js +29 -0
- package/dist/route/dto/create.dto.js.map +1 -0
- package/dist/route/dto/update.dto.d.ts +6 -0
- package/dist/route/dto/update.dto.d.ts.map +1 -0
- package/dist/route/dto/update.dto.js +31 -0
- package/dist/route/dto/update.dto.js.map +1 -0
- package/dist/route/route.controller.d.ts +50 -0
- package/dist/route/route.controller.d.ts.map +1 -0
- package/dist/route/route.controller.js +134 -0
- package/dist/route/route.controller.js.map +1 -0
- package/dist/route/route.module.d.ts +3 -0
- package/dist/route/route.module.d.ts.map +1 -0
- package/dist/route/route.module.js +31 -0
- package/dist/route/route.module.js.map +1 -0
- package/dist/route/route.service.d.ts +54 -0
- package/dist/route/route.service.d.ts.map +1 -0
- package/dist/route/route.service.js +142 -0
- package/dist/route/route.service.js.map +1 -0
- package/dist/route/route.service.spec.d.ts +1 -0
- package/dist/route/route.service.spec.d.ts.map +1 -0
- package/dist/route/route.service.spec.js +262 -0
- package/dist/route/route.service.spec.js.map +1 -0
- package/dist/screen/dto/create.dto.d.ts +5 -0
- package/dist/screen/dto/create.dto.d.ts.map +1 -0
- package/dist/screen/dto/create.dto.js +28 -0
- package/dist/screen/dto/create.dto.js.map +1 -0
- package/dist/screen/dto/update.dto.d.ts +7 -0
- package/dist/screen/dto/update.dto.d.ts.map +1 -0
- package/dist/screen/dto/update.dto.js +38 -0
- package/dist/screen/dto/update.dto.js.map +1 -0
- package/dist/screen/screen.controller.d.ts +67 -0
- package/dist/screen/screen.controller.d.ts.map +1 -0
- package/dist/screen/screen.controller.js +137 -0
- package/dist/screen/screen.controller.js.map +1 -0
- package/dist/screen/screen.module.d.ts +3 -0
- package/dist/screen/screen.module.d.ts.map +1 -0
- package/dist/screen/screen.module.js +31 -0
- package/dist/screen/screen.module.js.map +1 -0
- package/dist/screen/screen.service.d.ts +72 -0
- package/dist/screen/screen.service.d.ts.map +1 -0
- package/dist/screen/screen.service.js +153 -0
- package/dist/screen/screen.service.js.map +1 -0
- package/dist/screen/screen.service.spec.d.ts +1 -0
- package/dist/screen/screen.service.spec.d.ts.map +1 -0
- package/dist/screen/screen.service.spec.js +259 -0
- package/dist/screen/screen.service.spec.js.map +1 -0
- package/dist/security/security.module.d.ts +3 -0
- package/dist/security/security.module.d.ts.map +1 -0
- package/dist/security/security.module.js +23 -0
- package/dist/security/security.module.js.map +1 -0
- package/dist/security/security.service.d.ts +18 -0
- package/dist/security/security.service.d.ts.map +1 -0
- package/dist/security/security.service.js +141 -0
- package/dist/security/security.service.js.map +1 -0
- package/dist/session/session.controller.d.ts +33 -0
- package/dist/session/session.controller.d.ts.map +1 -0
- package/dist/session/session.controller.js +72 -0
- package/dist/session/session.controller.js.map +1 -0
- package/dist/session/session.module.d.ts +3 -0
- package/dist/session/session.module.d.ts.map +1 -0
- package/dist/session/session.module.js +39 -0
- package/dist/session/session.module.js.map +1 -0
- package/dist/session/session.service.d.ts +72 -0
- package/dist/session/session.service.d.ts.map +1 -0
- package/dist/session/session.service.js +199 -0
- package/dist/session/session.service.js.map +1 -0
- package/dist/setting/dto/confirm-import.dto.d.ts +7 -0
- package/dist/setting/dto/confirm-import.dto.d.ts.map +1 -0
- package/dist/setting/dto/confirm-import.dto.js +22 -0
- package/dist/setting/dto/confirm-import.dto.js.map +1 -0
- package/dist/setting/dto/create.dto.d.ts +9 -0
- package/dist/setting/dto/create.dto.d.ts.map +1 -0
- package/dist/setting/dto/create.dto.js +40 -0
- package/dist/setting/dto/create.dto.js.map +1 -0
- package/dist/setting/dto/delete.dto.d.ts +4 -0
- package/dist/setting/dto/delete.dto.d.ts.map +1 -0
- package/dist/setting/dto/delete.dto.js +23 -0
- package/dist/setting/dto/delete.dto.js.map +1 -0
- package/dist/setting/dto/export.dto.d.ts +4 -0
- package/dist/setting/dto/export.dto.d.ts.map +1 -0
- package/dist/setting/dto/export.dto.js +24 -0
- package/dist/setting/dto/export.dto.js.map +1 -0
- package/dist/setting/dto/import-validation.dto.d.ts +7 -0
- package/dist/setting/dto/import-validation.dto.d.ts.map +1 -0
- package/dist/setting/dto/import-validation.dto.js +7 -0
- package/dist/setting/dto/import-validation.dto.js.map +1 -0
- package/dist/setting/dto/setting-user.dto.d.ts +4 -0
- package/dist/setting/dto/setting-user.dto.d.ts.map +1 -0
- package/dist/setting/dto/setting-user.dto.js +21 -0
- package/dist/setting/dto/setting-user.dto.js.map +1 -0
- package/dist/setting/dto/setting.dto.d.ts +9 -0
- package/dist/setting/dto/setting.dto.d.ts.map +1 -0
- package/dist/setting/dto/setting.dto.js +34 -0
- package/dist/setting/dto/setting.dto.js.map +1 -0
- package/dist/setting/dto/update.dto.d.ts +6 -0
- package/dist/setting/dto/update.dto.d.ts.map +1 -0
- package/dist/setting/dto/update.dto.js +9 -0
- package/dist/setting/dto/update.dto.js.map +1 -0
- package/dist/setting/setting.controller.d.ts +126 -0
- package/dist/setting/setting.controller.d.ts.map +1 -0
- package/dist/setting/setting.controller.js +206 -0
- package/dist/setting/setting.controller.js.map +1 -0
- package/dist/setting/setting.module.d.ts +3 -0
- package/dist/setting/setting.module.d.ts.map +1 -0
- package/dist/setting/setting.module.js +34 -0
- package/dist/setting/setting.module.js.map +1 -0
- package/dist/setting/setting.service.d.ts +134 -0
- package/dist/setting/setting.service.d.ts.map +1 -0
- package/dist/setting/setting.service.js +570 -0
- package/dist/setting/setting.service.js.map +1 -0
- package/dist/task/task.module.d.ts +3 -0
- package/dist/task/task.module.d.ts.map +1 -0
- package/dist/task/task.module.js +22 -0
- package/dist/task/task.module.js.map +1 -0
- package/dist/task/task.service.d.ts +8 -0
- package/dist/task/task.service.d.ts.map +1 -0
- package/dist/task/task.service.js +75 -0
- package/dist/task/task.service.js.map +1 -0
- package/dist/token/token.module.d.ts +3 -0
- package/dist/token/token.module.d.ts.map +1 -0
- package/dist/token/token.module.js +27 -0
- package/dist/token/token.module.js.map +1 -0
- package/dist/token/token.service.d.ts +31 -0
- package/dist/token/token.service.d.ts.map +1 -0
- package/dist/token/token.service.js +121 -0
- package/dist/token/token.service.js.map +1 -0
- package/dist/types/http-method.d.ts +2 -0
- package/dist/types/http-method.d.ts.map +1 -0
- package/dist/types/http-method.js +3 -0
- package/dist/types/http-method.js.map +1 -0
- package/dist/types/multer.d.ts +26 -0
- package/dist/types/multer.d.ts.map +1 -0
- package/dist/types/multer.js +3 -0
- package/dist/types/multer.js.map +1 -0
- package/dist/user/constants/user.constants.d.ts +2 -0
- package/dist/user/constants/user.constants.d.ts.map +1 -0
- package/dist/user/constants/user.constants.js +5 -0
- package/dist/user/constants/user.constants.js.map +1 -0
- package/dist/user/dto/create-with-email-and-password.dto.d.ts +8 -0
- package/dist/user/dto/create-with-email-and-password.dto.d.ts.map +1 -0
- package/dist/user/dto/create-with-email-and-password.dto.js +39 -0
- package/dist/user/dto/create-with-email-and-password.dto.js.map +1 -0
- package/dist/user/dto/update.dto.d.ts +4 -0
- package/dist/user/dto/update.dto.d.ts.map +1 -0
- package/dist/user/dto/update.dto.js +23 -0
- package/dist/user/dto/update.dto.js.map +1 -0
- package/dist/user/user.controller.d.ts +115 -0
- package/dist/user/user.controller.d.ts.map +1 -0
- package/dist/user/user.controller.js +123 -0
- package/dist/user/user.controller.js.map +1 -0
- package/dist/user/user.module.d.ts +3 -0
- package/dist/user/user.module.d.ts.map +1 -0
- package/dist/user/user.module.js +47 -0
- package/dist/user/user.module.js.map +1 -0
- package/dist/user/user.service.d.ts +191 -0
- package/dist/user/user.service.d.ts.map +1 -0
- package/dist/user/user.service.js +243 -0
- package/dist/user/user.service.js.map +1 -0
- package/dist/user/user.service.spec.d.ts +1 -0
- package/dist/user/user.service.spec.d.ts.map +1 -0
- package/dist/user/user.service.spec.js +261 -0
- package/dist/user/user.service.spec.js.map +1 -0
- package/dist/utils/locale-context.d.ts +8 -0
- package/dist/utils/locale-context.d.ts.map +1 -0
- package/dist/utils/locale-context.js +11 -0
- package/dist/utils/locale-context.js.map +1 -0
- package/dist/validators/is-email-with-settings.validator.d.ts +10 -0
- package/dist/validators/is-email-with-settings.validator.d.ts.map +1 -0
- package/dist/validators/is-email-with-settings.validator.js +80 -0
- package/dist/validators/is-email-with-settings.validator.js.map +1 -0
- package/dist/validators/is-pin-code-with-setting.validator.d.ts +11 -0
- package/dist/validators/is-pin-code-with-setting.validator.d.ts.map +1 -0
- package/dist/validators/is-pin-code-with-setting.validator.js +73 -0
- package/dist/validators/is-pin-code-with-setting.validator.js.map +1 -0
- package/dist/validators/is-strong-password-with-settings.validator.d.ts +12 -0
- package/dist/validators/is-strong-password-with-settings.validator.d.ts.map +1 -0
- package/dist/validators/is-strong-password-with-settings.validator.js +108 -0
- package/dist/validators/is-strong-password-with-settings.validator.js.map +1 -0
- package/hedhog/data/dashboard.yaml +1 -0
- package/hedhog/data/dashboard_component.yaml +28 -0
- package/hedhog/data/dashboard_item.yaml +40 -0
- package/hedhog/data/file_mimetype.yaml +27 -0
- package/hedhog/data/file_provider.yaml +12 -0
- package/hedhog/data/locale.yaml +6 -0
- package/hedhog/data/mail.yaml +192 -0
- package/hedhog/data/menu.yaml +41 -0
- package/hedhog/data/role.yaml +21 -0
- package/hedhog/data/route.yaml +802 -0
- package/hedhog/data/setting_group.yaml +996 -0
- package/hedhog/data/translation_namespace.yaml +33 -0
- package/hedhog/query/user_mfa_challenge_active_idx.sql +4 -0
- package/hedhog/query/user_mfa_validate_triggers.sql +56 -0
- package/hedhog/table/dashboard.yaml +11 -0
- package/hedhog/table/dashboard_component.yaml +39 -0
- package/hedhog/table/dashboard_item.yaml +24 -0
- package/hedhog/table/dashboard_user.yaml +24 -0
- package/hedhog/table/file.yaml +23 -0
- package/hedhog/table/file_mimetype.yaml +5 -0
- package/hedhog/table/file_provider.yaml +10 -0
- package/hedhog/table/locale.yaml +15 -0
- package/hedhog/table/mail.yaml +15 -0
- package/hedhog/table/mail_sent.yaml +21 -0
- package/hedhog/table/mail_var.yaml +12 -0
- package/hedhog/table/menu.yaml +25 -0
- package/hedhog/table/menu_screen.yaml +16 -0
- package/hedhog/table/role.yaml +18 -0
- package/hedhog/table/role_menu.yaml +18 -0
- package/hedhog/table/role_route.yaml +18 -0
- package/hedhog/table/role_screen.yaml +18 -0
- package/hedhog/table/role_user.yaml +18 -0
- package/hedhog/table/route.yaml +22 -0
- package/hedhog/table/route_screen.yaml +18 -0
- package/hedhog/table/screen.yaml +20 -0
- package/hedhog/table/setting.yaml +54 -0
- package/hedhog/table/setting_group.yaml +20 -0
- package/hedhog/table/setting_list.yaml +16 -0
- package/hedhog/table/setting_user.yaml +21 -0
- package/hedhog/table/translation.yaml +24 -0
- package/hedhog/table/translation_namespace.yaml +5 -0
- package/hedhog/table/user.yaml +23 -0
- package/hedhog/table/user_account.yaml +29 -0
- package/hedhog/table/user_activity.yaml +13 -0
- package/hedhog/table/user_credential.yaml +24 -0
- package/hedhog/table/user_identifier.yaml +23 -0
- package/hedhog/table/user_mfa.yaml +23 -0
- package/hedhog/table/user_mfa_challenge.yaml +19 -0
- package/hedhog/table/user_mfa_email.yaml +11 -0
- package/hedhog/table/user_mfa_phone.yaml +11 -0
- package/hedhog/table/user_mfa_totp.yaml +12 -0
- package/hedhog/table/user_mfa_webauthn.yaml +19 -0
- package/hedhog/table/user_recovery_code.yaml +16 -0
- package/hedhog/table/user_session.yaml +18 -0
- package/package.json +72 -0
- package/src/auth/auth.controller.ts +215 -0
- package/src/auth/auth.module.ts +106 -0
- package/src/auth/auth.service.ts +554 -0
- package/src/auth/consts/body.ts +27 -0
- package/src/auth/dto/change.dto.ts +36 -0
- package/src/auth/dto/create-user.dto.ts +37 -0
- package/src/auth/dto/email.dto.ts +16 -0
- package/src/auth/dto/forget.dto.ts +13 -0
- package/src/auth/dto/login-with-code.dto.ts +14 -0
- package/src/auth/dto/login-with-recovery-code.ts +10 -0
- package/src/auth/dto/login.dto.ts +33 -0
- package/src/auth/dto/resend-mfa-code.dto.ts +6 -0
- package/src/auth/dto/reset.dto.ts +13 -0
- package/src/auth/enums/multifactor-type.enum.ts +4 -0
- package/src/auth/guards/auth.guard.ts +59 -0
- package/src/challenge/challenge.module.ts +20 -0
- package/src/challenge/challenge.service.ts +327 -0
- package/src/core/system.controller.ts +15 -0
- package/src/core/system.module.ts +17 -0
- package/src/core/system.service.ts +296 -0
- package/src/core.module.ts +89 -0
- package/src/dashboard/dashboard/dashboard.controller.ts +49 -0
- package/src/dashboard/dashboard/dashboard.module.ts +13 -0
- package/src/dashboard/dashboard/dashboard.service.ts +71 -0
- package/src/dashboard/dashboard/dto/create.dto.ts +8 -0
- package/src/dashboard/dashboard/dto/update.dto.ts +4 -0
- package/src/dashboard/dashboard-component/dashboard-component.controller.ts +55 -0
- package/src/dashboard/dashboard-component/dashboard-component.module.ts +14 -0
- package/src/dashboard/dashboard-component/dashboard-component.service.ts +70 -0
- package/src/dashboard/dashboard-component/dto/create.dto.ts +36 -0
- package/src/dashboard/dashboard-component/dto/update.dto.ts +4 -0
- package/src/dashboard/dashboard-core/dashboard-core.controller.ts +13 -0
- package/src/dashboard/dashboard-core/dashboard-core.module.ts +14 -0
- package/src/dashboard/dashboard-core/dashboard-core.service.ts +27 -0
- package/src/dashboard/dashboard-item/dashboard-item.controller.ts +55 -0
- package/src/dashboard/dashboard-item/dashboard-item.module.ts +13 -0
- package/src/dashboard/dashboard-item/dashboard-item.service.ts +82 -0
- package/src/dashboard/dashboard-item/dto/create.dto.ts +22 -0
- package/src/dashboard/dashboard-item/dto/update.dto.ts +4 -0
- package/src/dashboard/dashboard-user/dashboard-user.controller.ts +55 -0
- package/src/dashboard/dashboard-user/dashboard-user.module.ts +13 -0
- package/src/dashboard/dashboard-user/dashboard-user.service.ts +89 -0
- package/src/dashboard/dashboard-user/dto/create.dto.ts +22 -0
- package/src/dashboard/dashboard-user/dto/update.dto.ts +4 -0
- package/src/dashboard/dashboard.module.ts +24 -0
- package/src/dashboard/index.ts +1 -0
- package/src/decorators/inject-locale.decorator.ts +17 -0
- package/src/dto/delete.dto.ts +8 -0
- package/src/dto/update-ids.dto.ts +12 -0
- package/src/emails/index.ts +2 -0
- package/src/emails/lib.ts +70 -0
- package/src/emails/templates.ts +73 -0
- package/src/file/dto/delete.dto.ts +8 -0
- package/src/file/dto/upload.dto.ts +7 -0
- package/src/file/file.controller.ts +78 -0
- package/src/file/file.module.ts +29 -0
- package/src/file/file.service.ts +339 -0
- package/src/file/provider/abstract.provider.ts +43 -0
- package/src/file/provider/azure.provider.ts +174 -0
- package/src/file/provider/gcs.provider.ts +108 -0
- package/src/file/provider/local.provider.ts +141 -0
- package/src/file/provider/provider.enum.ts +6 -0
- package/src/file/provider/provider.factory.ts +21 -0
- package/src/file/provider/s3.provider.ts +204 -0
- package/src/index.ts +26 -0
- package/src/install/dto/generate-migration.dto.ts +31 -0
- package/src/install/dto/install.dto.ts +27 -0
- package/src/install/install.controller.ts +26 -0
- package/src/install/install.module.ts +19 -0
- package/src/install/install.service.ts +345 -0
- package/src/language/en.json +112 -0
- package/src/language/pt.json +112 -0
- package/src/mail/dto/create.dto.ts +40 -0
- package/src/mail/dto/send.dto.ts +14 -0
- package/src/mail/dto/test-mail.dto.ts +19 -0
- package/src/mail/dto/update.dto.ts +4 -0
- package/src/mail/mail.controller.ts +67 -0
- package/src/mail/mail.module.ts +107 -0
- package/src/mail/mail.service.ts +371 -0
- package/src/mail-sent/dto/create.dto.ts +43 -0
- package/src/mail-sent/dto/update.dto.ts +4 -0
- package/src/mail-sent/mail-sent.controller.ts +55 -0
- package/src/mail-sent/mail-sent.module.ts +13 -0
- package/src/mail-sent/mail-sent.service.ts +103 -0
- package/src/mail-var/dto/create.dto.ts +9 -0
- package/src/mail-var/dto/update.dto.ts +4 -0
- package/src/mail-var/mail-var.controller.ts +55 -0
- package/src/mail-var/mail-var.module.ts +13 -0
- package/src/mail-var/mail-var.service.ts +78 -0
- package/src/menu/dto/create.dto.ts +26 -0
- package/src/menu/dto/order.dto.ts +8 -0
- package/src/menu/dto/update.dto.ts +20 -0
- package/src/menu/menu.controller.ts +105 -0
- package/src/menu/menu.module.ts +18 -0
- package/src/menu/menu.service.spec.ts +247 -0
- package/src/menu/menu.service.ts +264 -0
- package/src/middlewares/locale-injection.middleware.ts +15 -0
- package/src/oauth/interfaces/OAuthProvider.ts +5 -0
- package/src/oauth/oauth.controller.ts +116 -0
- package/src/oauth/oauth.module.ts +36 -0
- package/src/oauth/oauth.service.ts +364 -0
- package/src/oauth/providers/abstract.provider.ts +50 -0
- package/src/oauth/providers/facebook.provider.ts +69 -0
- package/src/oauth/providers/github.provider.ts +113 -0
- package/src/oauth/providers/google.provider.ts +108 -0
- package/src/oauth/providers/microsoft.provider.ts +76 -0
- package/src/profile/dto/change-password.dto.ts +16 -0
- package/src/profile/dto/email-verification-confirm.dto.ts +19 -0
- package/src/profile/dto/generate-webauthn-registration-options.dto.ts +7 -0
- package/src/profile/dto/regenerate-recovery-codes.dto.ts +18 -0
- package/src/profile/dto/remove-email-mfa.dto.ts +11 -0
- package/src/profile/dto/remove-mfa-with-recovery-code.dto.ts +7 -0
- package/src/profile/dto/remove-mfa.dto.ts +18 -0
- package/src/profile/dto/remove-totp-mfa.dto.ts +7 -0
- package/src/profile/dto/send-email-verification.dto.ts +9 -0
- package/src/profile/dto/set-preferences.dto.ts +11 -0
- package/src/profile/dto/update.dto.ts +10 -0
- package/src/profile/dto/verify-before-add-mfa.dto.ts +16 -0
- package/src/profile/dto/verify-mfa-totp.dto.ts +19 -0
- package/src/profile/dto/verify-webauthn-registration.dto.ts +11 -0
- package/src/profile/dto/verify-webauthn.dto.ts +7 -0
- package/src/profile/profile.controller.ts +201 -0
- package/src/profile/profile.module.ts +21 -0
- package/src/profile/profile.service.ts +1331 -0
- package/src/role/dto/create.dto.ts +7 -0
- package/src/role/dto/update.dto.ts +4 -0
- package/src/role/guards/role.guard.ts +121 -0
- package/src/role/role.controller.ts +126 -0
- package/src/role/role.module.ts +29 -0
- package/src/role/role.service.ts +289 -0
- package/src/route/dto/create.dto.ts +14 -0
- package/src/route/dto/update.dto.ts +16 -0
- package/src/route/route.controller.ts +91 -0
- package/src/route/route.module.ts +18 -0
- package/src/route/route.service.spec.ts +300 -0
- package/src/route/route.service.ts +164 -0
- package/src/screen/dto/create.dto.ts +12 -0
- package/src/screen/dto/update.dto.ts +20 -0
- package/src/screen/screen.controller.ts +93 -0
- package/src/screen/screen.module.ts +18 -0
- package/src/screen/screen.service.spec.ts +298 -0
- package/src/screen/screen.service.ts +179 -0
- package/src/security/security.module.ts +10 -0
- package/src/security/security.service.ts +103 -0
- package/src/session/session.controller.ts +35 -0
- package/src/session/session.module.ts +26 -0
- package/src/session/session.service.ts +207 -0
- package/src/setting/dto/confirm-import.dto.ts +7 -0
- package/src/setting/dto/create.dto.ts +21 -0
- package/src/setting/dto/delete.dto.ts +8 -0
- package/src/setting/dto/export.dto.ts +11 -0
- package/src/setting/dto/import-validation.dto.ts +6 -0
- package/src/setting/dto/setting-user.dto.ts +6 -0
- package/src/setting/dto/setting.dto.ts +17 -0
- package/src/setting/dto/update.dto.ts +4 -0
- package/src/setting/setting.controller.ts +136 -0
- package/src/setting/setting.module.ts +21 -0
- package/src/setting/setting.service.ts +673 -0
- package/src/task/task.module.ts +9 -0
- package/src/task/task.service.ts +55 -0
- package/src/token/token.module.ts +14 -0
- package/src/token/token.service.ts +110 -0
- package/src/types/http-method.ts +8 -0
- package/src/types/multer.d.ts +28 -0
- package/src/types/multer.ts +28 -0
- package/src/user/constants/user.constants.ts +1 -0
- package/src/user/dto/create-with-email-and-password.dto.ts +21 -0
- package/src/user/dto/update.dto.ts +11 -0
- package/src/user/user.controller.ts +87 -0
- package/src/user/user.module.ts +34 -0
- package/src/user/user.service.spec.ts +294 -0
- package/src/user/user.service.ts +269 -0
- package/src/utils/locale-context.ts +12 -0
- package/src/validators/is-email-with-settings.validator.ts +82 -0
- package/src/validators/is-pin-code-with-setting.validator.ts +81 -0
- package/src/validators/is-strong-password-with-settings.validator.ts +125 -0
|
@@ -0,0 +1,554 @@
|
|
|
1
|
+
import { getLocaleText } from '@hed-hog/api-locale';
|
|
2
|
+
import { PrismaService } from '@hed-hog/api-prisma';
|
|
3
|
+
import { User } from '@hed-hog/types';
|
|
4
|
+
import {
|
|
5
|
+
BadRequestException,
|
|
6
|
+
forwardRef,
|
|
7
|
+
Inject,
|
|
8
|
+
Injectable,
|
|
9
|
+
OnModuleInit,
|
|
10
|
+
} from '@nestjs/common';
|
|
11
|
+
import { ChallengeService } from '../challenge/challenge.service';
|
|
12
|
+
import { MailService as MailManagerService } from '../mail/mail.service';
|
|
13
|
+
import { SecurityService } from '../security/security.service';
|
|
14
|
+
import { SessionService } from '../session/session.service';
|
|
15
|
+
import { SettingService } from '../setting/setting.service';
|
|
16
|
+
import { TokenService } from '../token/token.service';
|
|
17
|
+
import { UserService } from '../user/user.service';
|
|
18
|
+
import { ForgetDTO } from './dto/forget.dto';
|
|
19
|
+
import { LoginDTO } from './dto/login.dto';
|
|
20
|
+
|
|
21
|
+
@Injectable()
|
|
22
|
+
export class AuthService implements OnModuleInit {
|
|
23
|
+
public settings: Record<string, any> = {};
|
|
24
|
+
|
|
25
|
+
constructor(
|
|
26
|
+
@Inject(forwardRef(() => PrismaService))
|
|
27
|
+
private readonly prisma: PrismaService,
|
|
28
|
+
@Inject(forwardRef(() => MailManagerService))
|
|
29
|
+
private readonly mail: MailManagerService,
|
|
30
|
+
@Inject(forwardRef(() => SettingService))
|
|
31
|
+
private readonly setting: SettingService,
|
|
32
|
+
@Inject(forwardRef(() => SecurityService))
|
|
33
|
+
private readonly security: SecurityService,
|
|
34
|
+
@Inject(forwardRef(() => TokenService))
|
|
35
|
+
private readonly token: TokenService,
|
|
36
|
+
@Inject(forwardRef(() => SessionService))
|
|
37
|
+
private readonly session: SessionService,
|
|
38
|
+
@Inject(forwardRef(() => UserService))
|
|
39
|
+
private readonly user: UserService,
|
|
40
|
+
@Inject(forwardRef(() => ChallengeService))
|
|
41
|
+
private readonly challenge: ChallengeService,
|
|
42
|
+
) { }
|
|
43
|
+
|
|
44
|
+
async onModuleInit() {
|
|
45
|
+
this.settings = await this.setting.getSettingValues([
|
|
46
|
+
'mfa-issuer',
|
|
47
|
+
'mfa-window',
|
|
48
|
+
'mfa-setp',
|
|
49
|
+
'system-name',
|
|
50
|
+
'google_client_id',
|
|
51
|
+
'google_client_secret',
|
|
52
|
+
'google_scopes',
|
|
53
|
+
'url',
|
|
54
|
+
'mfa-challenge-expiration-minutes',
|
|
55
|
+
'access-token-expiration-minutes'
|
|
56
|
+
]);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
async getAuthenticationPayload(locale: string, userId: number, ipAddress: string,
|
|
60
|
+
userAgent: string) {
|
|
61
|
+
const payload = { sub: userId };
|
|
62
|
+
const accessToken = await this.token.createAccessToken(payload);
|
|
63
|
+
const { token: refreshToken, session } = await this.session.create(locale, userId, ipAddress, userAgent);
|
|
64
|
+
|
|
65
|
+
return {
|
|
66
|
+
accessToken,
|
|
67
|
+
refreshToken,
|
|
68
|
+
session,
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
async loginWithEmailAndPassword(
|
|
74
|
+
locale: string,
|
|
75
|
+
ipAddress: string,
|
|
76
|
+
userAgent: string,
|
|
77
|
+
{ email, password }: LoginDTO,
|
|
78
|
+
) {
|
|
79
|
+
const user = await this.user.findUserByEmail(locale, email);
|
|
80
|
+
if (!user) throw new BadRequestException(getLocaleText('accessDenied', locale, 'Access denied.'));
|
|
81
|
+
const credentials = (user as unknown as User).user_credential?.filter((c) => c.type === 'password') || [];
|
|
82
|
+
|
|
83
|
+
if (!await this.security.validatePassword(locale, credentials, password)) {
|
|
84
|
+
throw new BadRequestException(getLocaleText('accessDenied', locale, 'Access denied.'));
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
const mfaMethods = await this.prisma.user_mfa.findMany({
|
|
88
|
+
where: {
|
|
89
|
+
user_id: user.id,
|
|
90
|
+
verified_at: { not: null }
|
|
91
|
+
},
|
|
92
|
+
include: {
|
|
93
|
+
user_mfa_totp: true,
|
|
94
|
+
user_mfa_email: true
|
|
95
|
+
}
|
|
96
|
+
});
|
|
97
|
+
|
|
98
|
+
if (mfaMethods.length > 0) {
|
|
99
|
+
const mfaToken = await this.token.createMfaChallengeToken({
|
|
100
|
+
userId: user.id,
|
|
101
|
+
ipAddress,
|
|
102
|
+
userAgent,
|
|
103
|
+
email
|
|
104
|
+
});
|
|
105
|
+
|
|
106
|
+
const emailMfas = mfaMethods.filter(m => m.type === 'email' && m.user_mfa_email && m.user_mfa_email.length > 0);
|
|
107
|
+
|
|
108
|
+
if (emailMfas.length > 0) {
|
|
109
|
+
const emails = emailMfas.map(mfa => mfa.user_mfa_email[0].email);
|
|
110
|
+
await this.challenge.sendMfaCodeToMultipleEmails(locale, user.id, emails);
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
return {
|
|
114
|
+
requiresMfa: true,
|
|
115
|
+
mfaToken,
|
|
116
|
+
mfaMethods: mfaMethods.map(m => ({ type: m.type, id: m.id }))
|
|
117
|
+
};
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
const { accessToken, refreshToken, session } = await this.getAuthenticationPayload(
|
|
121
|
+
locale,
|
|
122
|
+
user.id,
|
|
123
|
+
ipAddress,
|
|
124
|
+
userAgent
|
|
125
|
+
);
|
|
126
|
+
|
|
127
|
+
this.mail.sendTemplatedMail(
|
|
128
|
+
locale,
|
|
129
|
+
{
|
|
130
|
+
email,
|
|
131
|
+
slug: 'auth-login-new-device',
|
|
132
|
+
variables: {
|
|
133
|
+
name: user.name,
|
|
134
|
+
ipAddress,
|
|
135
|
+
userAgent,
|
|
136
|
+
location: 'Unknown',
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
);
|
|
140
|
+
|
|
141
|
+
await this.user.registerUserActivity(user.id, "login")
|
|
142
|
+
return { accessToken, refreshToken, session };
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
async verifyUser(locale: string, userId: number) {
|
|
146
|
+
const user = await this.user.findUserById(locale, userId);
|
|
147
|
+
delete user.user_credential;
|
|
148
|
+
return user;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
async refreshAccessToken(locale: string, refreshToken: string, ipAddress: string, userAgent: string) {
|
|
152
|
+
|
|
153
|
+
if (!refreshToken) {
|
|
154
|
+
throw new BadRequestException(getLocaleText('accessDenied', locale, 'Access denied.'));
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
const { session, token } = await this.session.refresh(
|
|
158
|
+
locale,
|
|
159
|
+
refreshToken,
|
|
160
|
+
ipAddress,
|
|
161
|
+
userAgent
|
|
162
|
+
);
|
|
163
|
+
|
|
164
|
+
const user = await this.user.findUserById(locale, session.user_id);
|
|
165
|
+
const payload = { sub: user.id };
|
|
166
|
+
const accessToken = await this.token.createAccessToken(payload);
|
|
167
|
+
|
|
168
|
+
return { accessToken, refreshToken: token, session };
|
|
169
|
+
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
async forgotPassword(locale: string, { email }: ForgetDTO) {
|
|
173
|
+
const user = await this.user.findUserByEmail(locale, email);
|
|
174
|
+
if (user){
|
|
175
|
+
await this.user.registerUserActivity(user?.id, "forgotPassword")
|
|
176
|
+
}
|
|
177
|
+
await this.challenge.forgotEmail(locale, email);
|
|
178
|
+
return { success: true };
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
async logout(res, req, refreshToken: string) {
|
|
182
|
+
await this.session.deleteRefreshTokenCookie(res, refreshToken);
|
|
183
|
+
await this.user.registerUserActivity(req.auth?.sub, "logout")
|
|
184
|
+
return { success: true };
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
async forgotResetPassword(locale: string, password: string, code: string, ipAddress: string, userAgent: string) {
|
|
188
|
+
const challenge = await this.challenge.verifyCodePassword(locale, code);
|
|
189
|
+
const passwordHash = await this.security.hashArgon2(password);
|
|
190
|
+
|
|
191
|
+
await this.prisma.user_credential.updateMany({
|
|
192
|
+
where: {
|
|
193
|
+
type: 'password',
|
|
194
|
+
user: {
|
|
195
|
+
user_mfa: {
|
|
196
|
+
some: {
|
|
197
|
+
user_mfa_challenge: {
|
|
198
|
+
some: { id: challenge.id }
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
},
|
|
204
|
+
data: { hash: passwordHash },
|
|
205
|
+
});
|
|
206
|
+
|
|
207
|
+
|
|
208
|
+
const userIdentifier = await this.prisma.user_identifier.findFirst({
|
|
209
|
+
where: {
|
|
210
|
+
type: 'email',
|
|
211
|
+
user_id: challenge.user_mfa.user_id
|
|
212
|
+
},
|
|
213
|
+
include: {
|
|
214
|
+
user: {
|
|
215
|
+
select: { name: true }
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
});
|
|
219
|
+
|
|
220
|
+
if (!userIdentifier) {
|
|
221
|
+
throw new BadRequestException(getLocaleText('userIdentifierNotFound', locale, 'User identifier not found.'));
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
this.mail.sendTemplatedMail(
|
|
225
|
+
locale,
|
|
226
|
+
{
|
|
227
|
+
email: userIdentifier.value,
|
|
228
|
+
slug: 'auth-forget-password-confirmation',
|
|
229
|
+
variables: {
|
|
230
|
+
name: userIdentifier.user.name,
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
);
|
|
234
|
+
|
|
235
|
+
const { accessToken, refreshToken, session } = await this.getAuthenticationPayload(locale, challenge.user_mfa.user_id, ipAddress, userAgent);
|
|
236
|
+
await this.user.registerUserActivity(userIdentifier.id, "resetPassword")
|
|
237
|
+
return { accessToken, refreshToken, session }
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
async verifyMfaCode(locale: string, mfaToken: string, code: string, ipAddress: string, userAgent: string, methodType?: 'totp' | 'email' | 'recovery') {
|
|
241
|
+
const payload = await this.token.verifyMfaChallengeToken(mfaToken);
|
|
242
|
+
const user = await this.prisma.user.findUnique({
|
|
243
|
+
where: { id: payload.userId },
|
|
244
|
+
include: {
|
|
245
|
+
user_mfa: {
|
|
246
|
+
where: { verified_at: { not: null } },
|
|
247
|
+
include: {
|
|
248
|
+
user_mfa_totp: true,
|
|
249
|
+
user_mfa_email: true
|
|
250
|
+
}
|
|
251
|
+
},
|
|
252
|
+
user_recovery_code: true
|
|
253
|
+
}
|
|
254
|
+
});
|
|
255
|
+
|
|
256
|
+
if (!user) {
|
|
257
|
+
throw new BadRequestException(getLocaleText('accessDenied', locale, 'Access denied.'));
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
let isValid = false;
|
|
261
|
+
|
|
262
|
+
if (methodType === 'totp') {
|
|
263
|
+
const totpMfa = user.user_mfa.find(m => m.type === 'totp' && m.user_mfa_totp);
|
|
264
|
+
if (totpMfa && totpMfa.user_mfa_totp[0]) {
|
|
265
|
+
const secretBuffer = totpMfa.user_mfa_totp[0].secret;
|
|
266
|
+
const secret = secretBuffer instanceof Uint8Array
|
|
267
|
+
? Buffer.from(secretBuffer).toString('utf-8')
|
|
268
|
+
: String(secretBuffer);
|
|
269
|
+
|
|
270
|
+
const window = this.settings['mfa-window'] ?? 0;
|
|
271
|
+
const step = this.settings['mfa-setp'] ?? 30;
|
|
272
|
+
|
|
273
|
+
const speakeasy = require('speakeasy');
|
|
274
|
+
isValid = speakeasy.totp.verify({
|
|
275
|
+
secret,
|
|
276
|
+
encoding: 'base32',
|
|
277
|
+
token: code,
|
|
278
|
+
window,
|
|
279
|
+
step
|
|
280
|
+
});
|
|
281
|
+
}
|
|
282
|
+
} else if (methodType === 'email') {
|
|
283
|
+
const emailMfa = user.user_mfa.find(m => m.type === 'email');
|
|
284
|
+
if (emailMfa) {
|
|
285
|
+
isValid = await this.challenge.verifyMfaEmailCode(locale, user.id, code);
|
|
286
|
+
}
|
|
287
|
+
} else if (methodType === 'recovery') {
|
|
288
|
+
for (const recoveryCode of user.user_recovery_code) {
|
|
289
|
+
if (await this.security.verifyArgon2(code, recoveryCode.hash)) {
|
|
290
|
+
isValid = true;
|
|
291
|
+
await this.prisma.user_recovery_code.delete({
|
|
292
|
+
where: { id: recoveryCode.id }
|
|
293
|
+
});
|
|
294
|
+
break;
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
} else {
|
|
298
|
+
const totpMfa = user.user_mfa.find(m => m.type === 'totp' && m.user_mfa_totp);
|
|
299
|
+
if (totpMfa && totpMfa.user_mfa_totp[0]) {
|
|
300
|
+
const secretBuffer = totpMfa.user_mfa_totp[0].secret;
|
|
301
|
+
const secret = secretBuffer instanceof Uint8Array
|
|
302
|
+
? Buffer.from(secretBuffer).toString('utf-8')
|
|
303
|
+
: String(secretBuffer);
|
|
304
|
+
|
|
305
|
+
const window = this.settings['mfa-window'] ?? 0;
|
|
306
|
+
const step = this.settings['mfa-setp'] ?? 30;
|
|
307
|
+
|
|
308
|
+
const speakeasy = require('speakeasy');
|
|
309
|
+
isValid = speakeasy.totp.verify({
|
|
310
|
+
secret,
|
|
311
|
+
encoding: 'base32',
|
|
312
|
+
token: code,
|
|
313
|
+
window,
|
|
314
|
+
step
|
|
315
|
+
});
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
if (!isValid) {
|
|
319
|
+
const emailMfa = user.user_mfa.find(m => m.type === 'email');
|
|
320
|
+
if (emailMfa) {
|
|
321
|
+
isValid = await this.challenge.verifyMfaEmailCode(locale, user.id, code);
|
|
322
|
+
}
|
|
323
|
+
}
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
if (!isValid) {
|
|
327
|
+
throw new BadRequestException(getLocaleText('invalidMfaCode', locale, 'Invalid MFA code.'));
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
const { accessToken, refreshToken, session } = await this.getAuthenticationPayload(
|
|
331
|
+
locale,
|
|
332
|
+
user.id,
|
|
333
|
+
ipAddress,
|
|
334
|
+
userAgent
|
|
335
|
+
);
|
|
336
|
+
|
|
337
|
+
this.mail.sendTemplatedMail(
|
|
338
|
+
locale,
|
|
339
|
+
{
|
|
340
|
+
email: payload.email,
|
|
341
|
+
slug: 'auth-login-new-device',
|
|
342
|
+
variables: {
|
|
343
|
+
name: user.name,
|
|
344
|
+
ipAddress,
|
|
345
|
+
userAgent,
|
|
346
|
+
location: 'Unknown',
|
|
347
|
+
}
|
|
348
|
+
}
|
|
349
|
+
);
|
|
350
|
+
|
|
351
|
+
await this.user.registerUserActivity(user.id, "login");
|
|
352
|
+
return { accessToken, refreshToken, session };
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
async verifyMfaRecoveryCode(locale: string, mfaToken: string, recoveryCode: string, ipAddress: string, userAgent: string) {
|
|
356
|
+
const payload = await this.token.verifyMfaChallengeToken(mfaToken);
|
|
357
|
+
const user = await this.prisma.user.findUnique({
|
|
358
|
+
where: { id: payload.userId },
|
|
359
|
+
include: {
|
|
360
|
+
user_recovery_code: true
|
|
361
|
+
}
|
|
362
|
+
});
|
|
363
|
+
|
|
364
|
+
if (!user) {
|
|
365
|
+
throw new BadRequestException(getLocaleText('accessDenied', locale, 'Access denied.'));
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
let isValid = false;
|
|
369
|
+
for (const code of user.user_recovery_code) {
|
|
370
|
+
if (await this.security.verifyArgon2(recoveryCode, code.hash)) {
|
|
371
|
+
isValid = true;
|
|
372
|
+
await this.prisma.user_recovery_code.delete({
|
|
373
|
+
where: { id: code.id }
|
|
374
|
+
});
|
|
375
|
+
break;
|
|
376
|
+
}
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
if (!isValid) {
|
|
380
|
+
throw new BadRequestException(getLocaleText('invalidRecoveryCode', locale, 'Invalid recovery code.'));
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
const { accessToken, refreshToken, session } = await this.getAuthenticationPayload(
|
|
384
|
+
locale,
|
|
385
|
+
user.id,
|
|
386
|
+
ipAddress,
|
|
387
|
+
userAgent
|
|
388
|
+
);
|
|
389
|
+
|
|
390
|
+
await this.user.registerUserActivity(user.id, "login");
|
|
391
|
+
return { accessToken, refreshToken, session };
|
|
392
|
+
}
|
|
393
|
+
|
|
394
|
+
async resendMfaCode(locale: string, mfaToken: string) {
|
|
395
|
+
const payload = await this.token.verifyMfaChallengeToken(mfaToken);
|
|
396
|
+
|
|
397
|
+
const mfaMethods = await this.prisma.user_mfa.findMany({
|
|
398
|
+
where: {
|
|
399
|
+
user_id: payload.userId,
|
|
400
|
+
verified_at: { not: null },
|
|
401
|
+
type: 'email'
|
|
402
|
+
},
|
|
403
|
+
include: {
|
|
404
|
+
user_mfa_email: true
|
|
405
|
+
}
|
|
406
|
+
});
|
|
407
|
+
|
|
408
|
+
if (mfaMethods.length === 0) {
|
|
409
|
+
throw new BadRequestException(getLocaleText('noEmailMfaFound', locale, 'No email MFA method found for this user.'));
|
|
410
|
+
}
|
|
411
|
+
|
|
412
|
+
const emailMfa = mfaMethods[0];
|
|
413
|
+
if (!emailMfa.user_mfa_email || emailMfa.user_mfa_email.length === 0) {
|
|
414
|
+
throw new BadRequestException(getLocaleText('noEmailMfaFound', locale, 'No email MFA method found for this user.'));
|
|
415
|
+
}
|
|
416
|
+
|
|
417
|
+
await this.challenge.sendMfaCodeByEmail(locale, payload.userId, emailMfa.user_mfa_email[0].email);
|
|
418
|
+
|
|
419
|
+
return {
|
|
420
|
+
success: true,
|
|
421
|
+
hasEmailMfa: true
|
|
422
|
+
};
|
|
423
|
+
}
|
|
424
|
+
|
|
425
|
+
async generateWebAuthnAuthenticationOptions(mfaToken: string) {
|
|
426
|
+
const { generateAuthenticationOptions } = await import('@simplewebauthn/server');
|
|
427
|
+
const payload = await this.token.verifyMfaChallengeToken(mfaToken);
|
|
428
|
+
|
|
429
|
+
const user = await this.prisma.user.findFirst({
|
|
430
|
+
where: { id: payload.userId },
|
|
431
|
+
include: {
|
|
432
|
+
user_mfa: {
|
|
433
|
+
where: { type: 'webauthn', verified_at: { not: null } },
|
|
434
|
+
include: { user_mfa_webauthn: true }
|
|
435
|
+
}
|
|
436
|
+
}
|
|
437
|
+
});
|
|
438
|
+
|
|
439
|
+
if (!user || user.user_mfa.length === 0) {
|
|
440
|
+
throw new BadRequestException(getLocaleText('webauthnNotConfigured', 'en', 'WebAuthn not configured.'));
|
|
441
|
+
}
|
|
442
|
+
|
|
443
|
+
const rpID = new URL(process.env.FRONTEND_URL || 'http://localhost:3200').hostname;
|
|
444
|
+
|
|
445
|
+
const allowCredentials = user.user_mfa
|
|
446
|
+
.filter(mfa => mfa.user_mfa_webauthn && mfa.user_mfa_webauthn.length > 0)
|
|
447
|
+
.map(mfa => ({
|
|
448
|
+
id: Buffer.from(mfa.user_mfa_webauthn[0].credential_id).toString('base64url'),
|
|
449
|
+
}));
|
|
450
|
+
|
|
451
|
+
const options = await generateAuthenticationOptions({
|
|
452
|
+
rpID,
|
|
453
|
+
allowCredentials,
|
|
454
|
+
userVerification: 'preferred',
|
|
455
|
+
});
|
|
456
|
+
|
|
457
|
+
await this.prisma.user_mfa_challenge.create({
|
|
458
|
+
data: {
|
|
459
|
+
user_mfa_id: user.user_mfa[0].id,
|
|
460
|
+
hash: options.challenge,
|
|
461
|
+
attempts: 0,
|
|
462
|
+
expires_at: new Date(Date.now() + 5 * 60 * 1000),
|
|
463
|
+
}
|
|
464
|
+
});
|
|
465
|
+
|
|
466
|
+
return options;
|
|
467
|
+
}
|
|
468
|
+
|
|
469
|
+
async verifyWebAuthnAuthentication(locale: string, mfaToken: string, assertionResponse: any, ipAddress: string, userAgent: string) {
|
|
470
|
+
const { verifyAuthenticationResponse } = await import('@simplewebauthn/server');
|
|
471
|
+
const payload = await this.token.verifyMfaChallengeToken(mfaToken);
|
|
472
|
+
const userId = payload.userId;
|
|
473
|
+
|
|
474
|
+
const challengeRecord = await this.prisma.user_mfa_challenge.findFirst({
|
|
475
|
+
where: {
|
|
476
|
+
user_mfa: {
|
|
477
|
+
user_id: userId,
|
|
478
|
+
type: 'webauthn',
|
|
479
|
+
verified_at: { not: null },
|
|
480
|
+
},
|
|
481
|
+
verified_at: null,
|
|
482
|
+
expires_at: { gt: new Date() }
|
|
483
|
+
},
|
|
484
|
+
include: {
|
|
485
|
+
user_mfa: {
|
|
486
|
+
include: { user_mfa_webauthn: true }
|
|
487
|
+
}
|
|
488
|
+
},
|
|
489
|
+
orderBy: { created_at: 'desc' }
|
|
490
|
+
});
|
|
491
|
+
|
|
492
|
+
if (!challengeRecord || !challengeRecord.user_mfa.user_mfa_webauthn[0]) {
|
|
493
|
+
throw new BadRequestException(getLocaleText('challengeNotFound', locale, 'Challenge not found or expired.'));
|
|
494
|
+
}
|
|
495
|
+
|
|
496
|
+
const authenticator = challengeRecord.user_mfa.user_mfa_webauthn[0];
|
|
497
|
+
const rpID = new URL(process.env.FRONTEND_URL || 'http://localhost:3200').hostname;
|
|
498
|
+
const expectedOrigin = process.env.FRONTEND_URL || 'http://localhost:3200';
|
|
499
|
+
|
|
500
|
+
const verification = await verifyAuthenticationResponse({
|
|
501
|
+
response: assertionResponse,
|
|
502
|
+
expectedChallenge: challengeRecord.hash,
|
|
503
|
+
expectedOrigin,
|
|
504
|
+
expectedRPID: rpID,
|
|
505
|
+
credential: {
|
|
506
|
+
id: Buffer.from(authenticator.credential_id).toString('base64url'),
|
|
507
|
+
publicKey: authenticator.public_key,
|
|
508
|
+
counter: authenticator.sign_count,
|
|
509
|
+
},
|
|
510
|
+
});
|
|
511
|
+
|
|
512
|
+
if (!verification.verified) {
|
|
513
|
+
throw new BadRequestException(getLocaleText('verificationFailed', locale, 'Verification failed.'));
|
|
514
|
+
}
|
|
515
|
+
|
|
516
|
+
await this.prisma.user_mfa_webauthn.update({
|
|
517
|
+
where: { id: authenticator.id },
|
|
518
|
+
data: {
|
|
519
|
+
sign_count: verification.authenticationInfo.newCounter,
|
|
520
|
+
last_used_at: new Date(),
|
|
521
|
+
}
|
|
522
|
+
});
|
|
523
|
+
|
|
524
|
+
await this.prisma.user_mfa_challenge.update({
|
|
525
|
+
where: { id: challengeRecord.id },
|
|
526
|
+
data: { verified_at: new Date() }
|
|
527
|
+
});
|
|
528
|
+
|
|
529
|
+
const { accessToken, refreshToken, session } = await this.getAuthenticationPayload(
|
|
530
|
+
locale,
|
|
531
|
+
userId,
|
|
532
|
+
ipAddress,
|
|
533
|
+
userAgent
|
|
534
|
+
);
|
|
535
|
+
|
|
536
|
+
const user = await this.prisma.user.findFirst({ where: { id: userId } });
|
|
537
|
+
this.mail.sendTemplatedMail(
|
|
538
|
+
locale,
|
|
539
|
+
{
|
|
540
|
+
email: payload.email,
|
|
541
|
+
slug: 'auth-login-new-device',
|
|
542
|
+
variables: {
|
|
543
|
+
name: user.name,
|
|
544
|
+
ipAddress,
|
|
545
|
+
userAgent,
|
|
546
|
+
location: 'Unknown',
|
|
547
|
+
}
|
|
548
|
+
}
|
|
549
|
+
);
|
|
550
|
+
|
|
551
|
+
await this.user.registerUserActivity(userId, 'login');
|
|
552
|
+
return { accessToken, refreshToken, session };
|
|
553
|
+
}
|
|
554
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export const getBody = (url: string): string => {
|
|
2
|
+
return `
|
|
3
|
+
<body style="font-family: Arial, sans-serif; background-color: #eef2f7; color: #333; margin: 0; padding: 0;">
|
|
4
|
+
<div style="max-width: 600px; margin: 40px auto; background-color: #ffffff; border: 1px solid #dcdfe6; border-radius: 10px; padding: 40px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);">
|
|
5
|
+
<div style="text-align: center; margin-bottom: 30px;">
|
|
6
|
+
<img style="margin-bottom: 16px" src="https://coinbitclub.vip/_next/image?url=%2F_next%2Fstatic%2Fmedia%2Fcoinbitclub-logo.b29de722.png&w=640&q=75" alt="Coinbitclub Logo" />
|
|
7
|
+
<h1 style="color: #2c3e50; font-size: 26px; margin: 0;">Recuperação de Senha - CoinBitClub</h1>
|
|
8
|
+
</div>
|
|
9
|
+
<div style="line-height: 1.8; font-size: 16px; color: #555; text-align: justify;">
|
|
10
|
+
<p>Olá,</p>
|
|
11
|
+
<p>Recebemos uma solicitação para redefinir sua senha em nossa plataforma. Para garantir que você é o proprietário desta conta, criamos um link exclusivo para redefinir sua senha.</p>
|
|
12
|
+
<p>Se você não fez essa solicitação, entre em contato conosco imediatamente para garantir a segurança de sua conta.</p>
|
|
13
|
+
<p>Para redefinir sua senha, clique no botão abaixo:</p>
|
|
14
|
+
</div>
|
|
15
|
+
<div style="text-align: center; margin: 30px 0;">
|
|
16
|
+
<a href="${url}" style="display: inline-block; padding: 15px 30px; background-color: #3498db; color: #ffffff; text-decoration: none; font-size: 16px; font-weight: bold; border-radius: 8px; box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);">Redefinir Senha</a>
|
|
17
|
+
</div>
|
|
18
|
+
<div style="font-size: 14px; line-height: 1.7; color: #666;">
|
|
19
|
+
<p>Por razões de segurança, evite compartilhar suas informações de login ou clicar em links suspeitos.</p>
|
|
20
|
+
<p>Agradecemos por escolher nossa plataforma!</p>
|
|
21
|
+
</div>
|
|
22
|
+
<div style="text-align: center; font-size: 13px; color: #95a5a6; margin-top: 40px; border-top: 1px solid #ecf0f1; padding-top: 20px;">
|
|
23
|
+
<p>Este email foi enviado automaticamente. Por favor, não responda.</p>
|
|
24
|
+
</div>
|
|
25
|
+
</div>
|
|
26
|
+
</body>`;
|
|
27
|
+
};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { IsEmail, IsNotEmpty, MinLength } from 'class-validator';
|
|
2
|
+
|
|
3
|
+
export class ChangeDTO {
|
|
4
|
+
@IsNotEmpty({
|
|
5
|
+
message: 'Precisa preencher a nova senha',
|
|
6
|
+
})
|
|
7
|
+
@MinLength(8, {
|
|
8
|
+
message: 'A senha deve ter pelo menos 8 caracteres',
|
|
9
|
+
})
|
|
10
|
+
newPassword: string;
|
|
11
|
+
|
|
12
|
+
@IsNotEmpty({
|
|
13
|
+
message: 'Precisa confirmar a nova senha',
|
|
14
|
+
})
|
|
15
|
+
@MinLength(8)
|
|
16
|
+
confirmNewPassword: string;
|
|
17
|
+
|
|
18
|
+
@IsNotEmpty({
|
|
19
|
+
message: 'Precisa preencher a senha atual',
|
|
20
|
+
})
|
|
21
|
+
@MinLength(8, {
|
|
22
|
+
message: 'A senha atual deve ter pelo menos 8 caracteres',
|
|
23
|
+
})
|
|
24
|
+
currentPassword: string;
|
|
25
|
+
|
|
26
|
+
@IsNotEmpty({
|
|
27
|
+
message: 'Precisa preencher o email',
|
|
28
|
+
})
|
|
29
|
+
@IsEmail(
|
|
30
|
+
{},
|
|
31
|
+
{
|
|
32
|
+
message: 'O email informado não é válido.',
|
|
33
|
+
},
|
|
34
|
+
)
|
|
35
|
+
email: string;
|
|
36
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { getLocaleText } from '@hed-hog/api-locale';
|
|
2
|
+
import { IsNotEmpty, IsOptional, IsString } from 'class-validator';
|
|
3
|
+
import { IsStrongPasswordWithSettings } from '../../validators/is-strong-password-with-settings.validator';
|
|
4
|
+
|
|
5
|
+
export class CreateUserDTO {
|
|
6
|
+
@IsString({ message: (args) => getLocaleText('validation.codeMustBeString', args.value) })
|
|
7
|
+
@IsNotEmpty({ message: (args) => getLocaleText('validation.codeRequired', args.value) })
|
|
8
|
+
code: string;
|
|
9
|
+
|
|
10
|
+
@IsStrongPasswordWithSettings({
|
|
11
|
+
message: (args) => getLocaleText('password.weakPassword', args.value)
|
|
12
|
+
})
|
|
13
|
+
password: string;
|
|
14
|
+
|
|
15
|
+
@IsString({ message: (args) => getLocaleText('validation.streetMustBeString', args.value) })
|
|
16
|
+
street: string;
|
|
17
|
+
|
|
18
|
+
@IsOptional()
|
|
19
|
+
@IsString({ message: (args) => getLocaleText('validation.numberMustBeString', args.value) })
|
|
20
|
+
number?: string;
|
|
21
|
+
|
|
22
|
+
@IsOptional()
|
|
23
|
+
@IsString({ message: (args) => getLocaleText('validation.complementMustBeString', args.value) })
|
|
24
|
+
complement?: string;
|
|
25
|
+
|
|
26
|
+
@IsString({ message: (args) => getLocaleText('validation.districtMustBeString', args.value) })
|
|
27
|
+
district: string;
|
|
28
|
+
|
|
29
|
+
@IsString({ message: (args) => getLocaleText('validation.cityMustBeString', args.value) })
|
|
30
|
+
city: string;
|
|
31
|
+
|
|
32
|
+
@IsString({ message: (args) => getLocaleText('validation.stateMustBeString', args.value) })
|
|
33
|
+
state: string;
|
|
34
|
+
|
|
35
|
+
@IsString({ message: (args) => getLocaleText('validation.postalCodeMustBeString', args.value) })
|
|
36
|
+
postal_code: string;
|
|
37
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { getLocaleText } from '@hed-hog/api-locale';
|
|
2
|
+
import { IsEmail, IsNotEmpty, MinLength } from 'class-validator';
|
|
3
|
+
|
|
4
|
+
export class EmailDTO {
|
|
5
|
+
@IsNotEmpty({ message: (args) => getLocaleText('validation.currentEmailRequired', args.value) })
|
|
6
|
+
@IsEmail({}, { message: (args) => getLocaleText('validation.currentEmailInvalid', args.value) })
|
|
7
|
+
currentEmail: string;
|
|
8
|
+
|
|
9
|
+
@IsNotEmpty({ message: (args) => getLocaleText('validation.passwordRequired', args.value) })
|
|
10
|
+
@MinLength(8, { message: (args) => getLocaleText('validation.passwordMinLength', args.value) })
|
|
11
|
+
password: string;
|
|
12
|
+
|
|
13
|
+
@IsNotEmpty({ message: (args) => getLocaleText('validation.newEmailRequired', args.value) })
|
|
14
|
+
@IsEmail({}, { message: (args) => getLocaleText('validation.newEmailInvalid', args.value) })
|
|
15
|
+
newEmail: string;
|
|
16
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { getLocaleText } from '@hed-hog/api-locale';
|
|
2
|
+
import { IsEmail } from 'class-validator';
|
|
3
|
+
|
|
4
|
+
export class ForgetDTO {
|
|
5
|
+
@IsEmail({}, { message: (args) => getLocaleText('validation.emailInvalid', args.value) })
|
|
6
|
+
set email(value: string) {
|
|
7
|
+
this._email = value?.trim().toLowerCase();
|
|
8
|
+
}
|
|
9
|
+
get email(): string {
|
|
10
|
+
return this._email;
|
|
11
|
+
}
|
|
12
|
+
private _email: string;
|
|
13
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { getLocaleText } from '@hed-hog/api-locale';
|
|
2
|
+
import { IsIn, IsJWT, IsOptional, IsString } from 'class-validator';
|
|
3
|
+
|
|
4
|
+
export class LoginWithCodeDTO {
|
|
5
|
+
@IsString({ message: (args) => getLocaleText('validation.codeMustBeString', args.value) })
|
|
6
|
+
code: string;
|
|
7
|
+
|
|
8
|
+
@IsJWT({ message: (args) => getLocaleText('validation.tokenMustBeJWT', args.value) })
|
|
9
|
+
token: string;
|
|
10
|
+
|
|
11
|
+
@IsOptional()
|
|
12
|
+
@IsIn(['totp', 'email', 'recovery'], { message: (args) => getLocaleText('validation.methodTypeInvalid', args.value) })
|
|
13
|
+
methodType?: 'totp' | 'email' | 'recovery';
|
|
14
|
+
}
|