@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,31 @@
|
|
|
1
|
+
import { Type } from 'class-transformer';
|
|
2
|
+
import { IsArray, IsNotEmpty, IsString, ValidateNested } from 'class-validator';
|
|
3
|
+
|
|
4
|
+
class MailLocaleTranslation {
|
|
5
|
+
@IsString()
|
|
6
|
+
@IsNotEmpty()
|
|
7
|
+
locale_code: string;
|
|
8
|
+
|
|
9
|
+
@IsString()
|
|
10
|
+
@IsNotEmpty()
|
|
11
|
+
subject: string;
|
|
12
|
+
|
|
13
|
+
@IsString()
|
|
14
|
+
@IsNotEmpty()
|
|
15
|
+
body: string;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export class GenerateMailMigrationDTO {
|
|
19
|
+
@IsString()
|
|
20
|
+
@IsNotEmpty()
|
|
21
|
+
slug: string;
|
|
22
|
+
|
|
23
|
+
@IsArray()
|
|
24
|
+
@ValidateNested({ each: true })
|
|
25
|
+
@Type(() => MailLocaleTranslation)
|
|
26
|
+
translations: MailLocaleTranslation[];
|
|
27
|
+
|
|
28
|
+
@IsArray()
|
|
29
|
+
@IsString({ each: true })
|
|
30
|
+
variables: string[];
|
|
31
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { IsEmail, IsOptional, IsString, MinLength } from 'class-validator';
|
|
2
|
+
|
|
3
|
+
export class InstallDTO {
|
|
4
|
+
@IsOptional()
|
|
5
|
+
@IsString({ message: 'Nome da aplicação obrigatório' })
|
|
6
|
+
@MinLength(1, { message: 'Nome da aplicação obrigatório' })
|
|
7
|
+
appName?: string;
|
|
8
|
+
|
|
9
|
+
@IsOptional()
|
|
10
|
+
@IsString({ message: 'Slogan obrigatório' })
|
|
11
|
+
@MinLength(1, { message: 'Slogan obrigatório' })
|
|
12
|
+
slogan?: string;
|
|
13
|
+
|
|
14
|
+
@IsOptional()
|
|
15
|
+
@IsString({ message: 'Nome de usuário obrigatório' })
|
|
16
|
+
@MinLength(1, { message: 'Nome de usuário obrigatório' })
|
|
17
|
+
userName?: string;
|
|
18
|
+
|
|
19
|
+
@IsOptional()
|
|
20
|
+
@IsEmail({}, { message: 'Email inválido' })
|
|
21
|
+
email?: string;
|
|
22
|
+
|
|
23
|
+
@IsOptional()
|
|
24
|
+
@IsString({ message: 'Senha deve ter pelo menos 6 caracteres' })
|
|
25
|
+
@MinLength(6, { message: 'Senha deve ter pelo menos 6 caracteres' })
|
|
26
|
+
password?: string;
|
|
27
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { Public } from '@hed-hog/api';
|
|
2
|
+
import { Body, Controller, Get, Post } from '@nestjs/common';
|
|
3
|
+
import { GenerateMailMigrationDTO } from './dto/generate-migration.dto';
|
|
4
|
+
import { InstallDTO } from './dto/install.dto';
|
|
5
|
+
import { InstallService } from './install.service';
|
|
6
|
+
|
|
7
|
+
@Public()
|
|
8
|
+
@Controller('install')
|
|
9
|
+
export class InstallController {
|
|
10
|
+
constructor(private readonly service: InstallService) { }
|
|
11
|
+
|
|
12
|
+
@Post()
|
|
13
|
+
install(@Body() data: InstallDTO) {
|
|
14
|
+
return this.service.install(data);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
@Get()
|
|
18
|
+
check() {
|
|
19
|
+
return this.service.check();
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
@Post('generate-mail-migration')
|
|
23
|
+
generateMailMigration(@Body() data: GenerateMailMigrationDTO) {
|
|
24
|
+
return this.service.generateMailMigration(data);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { PrismaModule } from '@hed-hog/api-prisma';
|
|
2
|
+
import { forwardRef, Module } from '@nestjs/common';
|
|
3
|
+
import { AuthModule } from '../auth/auth.module';
|
|
4
|
+
import { SecurityModule } from '../security/security.module';
|
|
5
|
+
import { SettingModule } from '../setting/setting.module';
|
|
6
|
+
import { InstallController } from './install.controller';
|
|
7
|
+
import { InstallService } from './install.service';
|
|
8
|
+
|
|
9
|
+
@Module({
|
|
10
|
+
imports: [
|
|
11
|
+
forwardRef(() => PrismaModule),
|
|
12
|
+
forwardRef(() => SettingModule),
|
|
13
|
+
forwardRef(() => SecurityModule),
|
|
14
|
+
forwardRef(() => AuthModule),
|
|
15
|
+
],
|
|
16
|
+
controllers: [InstallController],
|
|
17
|
+
providers: [InstallService],
|
|
18
|
+
})
|
|
19
|
+
export class InstallModule { }
|
|
@@ -0,0 +1,345 @@
|
|
|
1
|
+
import { PrismaService } from '@hed-hog/api-prisma';
|
|
2
|
+
import { BadRequestException, Injectable, Logger } from '@nestjs/common';
|
|
3
|
+
import { existsSync, readFileSync } from 'fs';
|
|
4
|
+
import { writeFile } from 'fs/promises';
|
|
5
|
+
import { resolve } from 'path';
|
|
6
|
+
import { SecurityService } from '../security/security.service';
|
|
7
|
+
import { InstallDTO } from './dto/install.dto';
|
|
8
|
+
|
|
9
|
+
@Injectable()
|
|
10
|
+
export class InstallService {
|
|
11
|
+
|
|
12
|
+
private readonly logger = new Logger(InstallService.name);
|
|
13
|
+
|
|
14
|
+
constructor(
|
|
15
|
+
private readonly security: SecurityService,
|
|
16
|
+
private readonly prisma: PrismaService
|
|
17
|
+
) { }
|
|
18
|
+
|
|
19
|
+
private async forceReset() {
|
|
20
|
+
|
|
21
|
+
await new Promise((resolve) => setTimeout(resolve, 1000));
|
|
22
|
+
|
|
23
|
+
//leia o arquivo src/main.ts e salveo com o mesmo conteudo para forcar o nestjs a reiniciar a aplicacao
|
|
24
|
+
const mainFilePath = resolve(process.cwd(), 'src', 'main.ts');
|
|
25
|
+
if (!existsSync(mainFilePath)) {
|
|
26
|
+
throw new BadRequestException('main.ts file not found.');
|
|
27
|
+
}
|
|
28
|
+
let mainContent: string;
|
|
29
|
+
try {
|
|
30
|
+
mainContent = readFileSync(mainFilePath, 'utf-8');
|
|
31
|
+
} catch (err: any) {
|
|
32
|
+
throw new BadRequestException(`Failed to read main.ts file: ${err.message}`);
|
|
33
|
+
}
|
|
34
|
+
try {
|
|
35
|
+
this.logger.verbose('Forcing application restart by touching main.ts...');
|
|
36
|
+
await writeFile(mainFilePath, mainContent, 'utf-8');
|
|
37
|
+
} catch (err: any) {
|
|
38
|
+
throw new BadRequestException(`Failed to write main.ts file: ${err.message}`);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
private async checkInstallation() {
|
|
44
|
+
|
|
45
|
+
const hedhogFilePath = resolve(process.cwd(), '..', '..', 'hedhog.json');
|
|
46
|
+
|
|
47
|
+
let data = {
|
|
48
|
+
installed: false
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
if (existsSync(hedhogFilePath)) {
|
|
52
|
+
try {
|
|
53
|
+
const fileContent = readFileSync(hedhogFilePath, 'utf-8');
|
|
54
|
+
data = JSON.parse(fileContent);
|
|
55
|
+
} catch (err: any) {
|
|
56
|
+
this.logger.warn(`Failed to read hedhog.json: ${err.message}`);
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
return data.installed === true;
|
|
61
|
+
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
private async markAsInstalled() {
|
|
65
|
+
|
|
66
|
+
const hedhogFilePath = resolve(process.cwd(), '..', '..', 'hedhog.json');
|
|
67
|
+
|
|
68
|
+
let content: any = {}
|
|
69
|
+
|
|
70
|
+
if (existsSync(hedhogFilePath)) {
|
|
71
|
+
try {
|
|
72
|
+
const fileContent = readFileSync(hedhogFilePath, 'utf-8');
|
|
73
|
+
content = JSON.parse(fileContent);
|
|
74
|
+
} catch (err: any) {
|
|
75
|
+
this.logger.warn(`Failed to read hedhog.json: ${err.message}`);
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
content.installed = true;
|
|
80
|
+
content.installedAt = new Date().toISOString();
|
|
81
|
+
|
|
82
|
+
try {
|
|
83
|
+
this.logger.verbose('Marking application as installed in hedghog.json...');
|
|
84
|
+
await writeFile(hedhogFilePath, JSON.stringify(content, null, 2), 'utf-8');
|
|
85
|
+
} catch (err: any) {
|
|
86
|
+
throw new BadRequestException(`Failed to write hedhog.json: ${err.message}`);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
return true;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
private async updateEnvSecrets(pepper: string) {
|
|
93
|
+
|
|
94
|
+
const envFilePath = resolve(process.cwd(), '..', '..', 'apps', 'api', '.env');
|
|
95
|
+
if (!existsSync(envFilePath)) {
|
|
96
|
+
throw new BadRequestException('.env file not found.');
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
let envContent: string;
|
|
100
|
+
try {
|
|
101
|
+
envContent = await readFileSync(envFilePath, 'utf-8');
|
|
102
|
+
} catch (err: any) {
|
|
103
|
+
throw new BadRequestException(`Failed to read .env file: ${err.message}`);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
const envConfig = this.parseEnv(envContent);
|
|
107
|
+
|
|
108
|
+
if (!('DATABASE_URL' in envConfig)) {
|
|
109
|
+
const envExamplePath = resolve(process.cwd(), '..', '..', 'apps', 'api', '.env.example');
|
|
110
|
+
if (!existsSync(envExamplePath)) {
|
|
111
|
+
throw new BadRequestException('.env.example file not found.');
|
|
112
|
+
}
|
|
113
|
+
try {
|
|
114
|
+
const exampleContent = await readFileSync(envExamplePath, 'utf-8');
|
|
115
|
+
await writeFile(envFilePath, exampleContent, 'utf-8');
|
|
116
|
+
envContent = exampleContent;
|
|
117
|
+
Object.assign(envConfig, this.parseEnv(envContent));
|
|
118
|
+
} catch (err: any) {
|
|
119
|
+
throw new BadRequestException(`Failed to copy .env.example: ${err.message}`);
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
envConfig['JWT_SECRET'] = this.base64Encode(this.security.randomOpaque(32));
|
|
124
|
+
envConfig['PEPPER'] = pepper;
|
|
125
|
+
|
|
126
|
+
// Only wrap in double quotes if the value contains spaces, #, or special characters
|
|
127
|
+
const newEnvContent = Object.entries(envConfig)
|
|
128
|
+
.map(([key, value]) => {
|
|
129
|
+
// If value contains only safe characters, no quotes needed
|
|
130
|
+
if (/^[A-Za-z0-9._-]+$/.test(value)) {
|
|
131
|
+
return `${key}=${value}`;
|
|
132
|
+
}
|
|
133
|
+
// Otherwise, escape quotes and wrap in double quotes
|
|
134
|
+
return `${key}="${value.replace(/"/g, '\\"')}"`;
|
|
135
|
+
})
|
|
136
|
+
.join('\n');
|
|
137
|
+
|
|
138
|
+
try {
|
|
139
|
+
this.logger.verbose('Updating .env file with new secrets...');
|
|
140
|
+
await writeFile(envFilePath, newEnvContent, 'utf-8');
|
|
141
|
+
} catch (err: any) {
|
|
142
|
+
throw new BadRequestException(`Failed to write .env file: ${err.message}`);
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
private parseEnv(content: string): Record<string, string> {
|
|
147
|
+
const lines = content.split('\n').filter(line => line.trim() !== '');
|
|
148
|
+
const envConfig: Record<string, string> = {};
|
|
149
|
+
for (const line of lines) {
|
|
150
|
+
if (line.startsWith('#') || !line.includes('=')) continue;
|
|
151
|
+
const [key, ...rest] = line.split('=');
|
|
152
|
+
if (!key || rest.length === 0) continue;
|
|
153
|
+
let value = rest.join('=').trim();
|
|
154
|
+
// Remove surrounding double quotes if present
|
|
155
|
+
if (value.startsWith('"') && value.endsWith('"')) {
|
|
156
|
+
value = value.slice(1, -1).replace(/\\"/g, '"');
|
|
157
|
+
}
|
|
158
|
+
envConfig[key.trim()] = value;
|
|
159
|
+
}
|
|
160
|
+
return envConfig;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
private base64Encode(str: string): string {
|
|
164
|
+
return Buffer.from(str).toString('base64');
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
async install({ appName, email, password, slogan, userName }: InstallDTO) {
|
|
168
|
+
|
|
169
|
+
if (await this.checkInstallation()) {
|
|
170
|
+
throw new BadRequestException('Application is already installed.');
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
const pepper = this.base64Encode(this.security.randomOpaque(16));
|
|
174
|
+
|
|
175
|
+
await this.prisma.$transaction(async (prisma) => {
|
|
176
|
+
|
|
177
|
+
this.logger.log('Starting installation process...');
|
|
178
|
+
|
|
179
|
+
await prisma.setting.update({
|
|
180
|
+
where: {
|
|
181
|
+
slug: 'system-name'
|
|
182
|
+
},
|
|
183
|
+
data: {
|
|
184
|
+
value: appName
|
|
185
|
+
}
|
|
186
|
+
});
|
|
187
|
+
|
|
188
|
+
this.logger.log(`Set system name to: ${appName}`);
|
|
189
|
+
|
|
190
|
+
this.logger.log(`Setting system slogan to: ${slogan}`);
|
|
191
|
+
|
|
192
|
+
await prisma.setting.update({
|
|
193
|
+
where: {
|
|
194
|
+
slug: 'system-slogan'
|
|
195
|
+
},
|
|
196
|
+
data: {
|
|
197
|
+
value: slogan
|
|
198
|
+
}
|
|
199
|
+
});
|
|
200
|
+
|
|
201
|
+
this.logger.log('System slogan set.');
|
|
202
|
+
|
|
203
|
+
this.logger.log(`Setting system email to: ${email}`);
|
|
204
|
+
|
|
205
|
+
const check = await prisma.user.findFirst({
|
|
206
|
+
where: {
|
|
207
|
+
user_identifier: {
|
|
208
|
+
some: {
|
|
209
|
+
type: 'email',
|
|
210
|
+
value: email,
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
});
|
|
215
|
+
|
|
216
|
+
if (check) {
|
|
217
|
+
throw new BadRequestException('A user with this email already exists.');
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
this.logger.log(`Creating admin user: ${userName} <${email}>`);
|
|
221
|
+
|
|
222
|
+
const passwordHash = await this.security.hashArgon2(password, pepper);
|
|
223
|
+
|
|
224
|
+
const user = await prisma.user.create({
|
|
225
|
+
data: {
|
|
226
|
+
name: userName,
|
|
227
|
+
user_identifier: {
|
|
228
|
+
create: {
|
|
229
|
+
type: 'email',
|
|
230
|
+
value: email,
|
|
231
|
+
}
|
|
232
|
+
},
|
|
233
|
+
user_credential: {
|
|
234
|
+
create: {
|
|
235
|
+
type: 'password',
|
|
236
|
+
hash: passwordHash,
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
});
|
|
241
|
+
|
|
242
|
+
this.logger.log(`Admin user created with ID: ${user.id}`);
|
|
243
|
+
|
|
244
|
+
const roles = await prisma.role.findMany();
|
|
245
|
+
|
|
246
|
+
if (roles.length === 0) {
|
|
247
|
+
throw new BadRequestException('No roles found. Please seed the roles before installation.');
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
this.logger.log(`Assigning roles to user ID: ${user.id}`);
|
|
251
|
+
|
|
252
|
+
await prisma.role_user.createMany({
|
|
253
|
+
data: roles.map((role) => ({
|
|
254
|
+
role_id: role.id,
|
|
255
|
+
user_id: user.id,
|
|
256
|
+
})),
|
|
257
|
+
});
|
|
258
|
+
|
|
259
|
+
this.logger.log(`Roles assigned to user ID: ${user.id}`);
|
|
260
|
+
|
|
261
|
+
await this.markAsInstalled();
|
|
262
|
+
await this.updateEnvSecrets(pepper);
|
|
263
|
+
this.forceReset();
|
|
264
|
+
|
|
265
|
+
this.logger.log('Installation process completed successfully.');
|
|
266
|
+
|
|
267
|
+
});
|
|
268
|
+
|
|
269
|
+
return { success: true };
|
|
270
|
+
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
async check() {
|
|
274
|
+
if (await this.checkInstallation()) {
|
|
275
|
+
return { success: true };
|
|
276
|
+
} else {
|
|
277
|
+
throw new BadRequestException('Application is not installed.');
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
async generateMailMigration({
|
|
283
|
+
slug,
|
|
284
|
+
translations,
|
|
285
|
+
variables,
|
|
286
|
+
}: {
|
|
287
|
+
slug: string;
|
|
288
|
+
translations: Array<{ locale_code: string; subject: string; body: string }>;
|
|
289
|
+
variables: string[];
|
|
290
|
+
}) {
|
|
291
|
+
try {
|
|
292
|
+
const timestamp = new Date().toISOString().replace(/[-:T]/g, '').split('.')[0];
|
|
293
|
+
const migrationName = `${timestamp}_mail_${slug.replace(/[^a-z0-9]/gi, '_')}`;
|
|
294
|
+
const migrationsPath = resolve(process.cwd(), 'prisma', 'migrations', migrationName);
|
|
295
|
+
|
|
296
|
+
const fs = await import('fs/promises');
|
|
297
|
+
await fs.mkdir(migrationsPath, { recursive: true });
|
|
298
|
+
|
|
299
|
+
const escapeSQL = (str: string) => str.replace(/'/g, "''");
|
|
300
|
+
let sql = `-- CreateMailTemplate: ${slug}\n\n`;
|
|
301
|
+
sql += `-- Insert mail template\n`;
|
|
302
|
+
sql += `INSERT INTO "mail" ("slug", "created_at", "updated_at")\n`;
|
|
303
|
+
sql += `VALUES ('${escapeSQL(slug)}', NOW(), NOW())\n`;
|
|
304
|
+
sql += `ON CONFLICT ("slug") DO NOTHING;\n\n`;
|
|
305
|
+
|
|
306
|
+
if (translations && translations.length > 0) {
|
|
307
|
+
sql += `-- Insert mail locales\n`;
|
|
308
|
+
sql += `INSERT INTO "mail_locale" ("mail_id", "locale_id", "subject", "body")\n`;
|
|
309
|
+
sql += `VALUES \n`;
|
|
310
|
+
const localeValues = translations.map((translation, index) => {
|
|
311
|
+
const comma = index < translations.length - 1 ? ',' : '';
|
|
312
|
+
return ` ((SELECT "id" FROM "mail" WHERE "slug" = '${escapeSQL(slug)}'), (SELECT "id" FROM "locale" WHERE "code" = '${escapeSQL(translation.locale_code)}'), '${escapeSQL(translation.subject)}', '${escapeSQL(translation.body)}')${comma}`;
|
|
313
|
+
}).join('\n');
|
|
314
|
+
sql += localeValues;
|
|
315
|
+
sql += `\nON CONFLICT ("mail_id", "locale_id") DO UPDATE\n`;
|
|
316
|
+
sql += ` SET "subject" = EXCLUDED."subject",\n`;
|
|
317
|
+
sql += ` "body" = EXCLUDED."body";\n\n`;
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
if (variables && variables.length > 0) {
|
|
321
|
+
sql += `-- Insert mail variables\n`;
|
|
322
|
+
sql += `INSERT INTO "mail_var" ("mail_id", "name")\n`;
|
|
323
|
+
sql += `VALUES \n`;
|
|
324
|
+
const varValues = variables.map(v =>
|
|
325
|
+
` ((SELECT "id" FROM "mail" WHERE "slug" = '${escapeSQL(slug)}'), '${escapeSQL(v)}')`
|
|
326
|
+
).join(',\n');
|
|
327
|
+
sql += varValues;
|
|
328
|
+
sql += `\nON CONFLICT ("mail_id", "name") DO NOTHING;\n`;
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
const migrationFilePath = resolve(migrationsPath, 'migration.sql');
|
|
332
|
+
await fs.writeFile(migrationFilePath, sql, 'utf-8');
|
|
333
|
+
this.logger.log(`Migration created: ${migrationName}`);
|
|
334
|
+
|
|
335
|
+
return {
|
|
336
|
+
success: true,
|
|
337
|
+
migrationName,
|
|
338
|
+
path: migrationsPath,
|
|
339
|
+
};
|
|
340
|
+
} catch (error: any) {
|
|
341
|
+
this.logger.error('Error generating mail migration:', error);
|
|
342
|
+
throw new BadRequestException(`Failed to generate migration: ${error.message}`);
|
|
343
|
+
}
|
|
344
|
+
}
|
|
345
|
+
}
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
{
|
|
2
|
+
"settingNotFound": "Setting not found or user cannot override.",
|
|
3
|
+
"userNotFound": "User not found.",
|
|
4
|
+
"accessDenied": "Access denied.",
|
|
5
|
+
"defaultRoleNotFound": "Default user role not found.",
|
|
6
|
+
"defaultNameMfaEmail": "Default E-mail MFA",
|
|
7
|
+
"urlSettingMissing": "URL setting is missing.",
|
|
8
|
+
"userIdentifierNotFound": "User identifier not found.",
|
|
9
|
+
"invalidMfaCode": "Invalid MFA code.",
|
|
10
|
+
"invalidRecoveryCode": "Invalid recovery code.",
|
|
11
|
+
"noEmailMfaFound": "No email MFA method found for this user.",
|
|
12
|
+
"webauthnNotConfigured": "WebAuthn not configured.",
|
|
13
|
+
"challengeNotFound": "Challenge not found or expired.",
|
|
14
|
+
"verificationFailed": "Verification failed.",
|
|
15
|
+
"userIdsRequired": "At least one User ID is required to delete users.",
|
|
16
|
+
"invalidIds": "Invalid IDs.",
|
|
17
|
+
"invalidCode": "Invalid code.",
|
|
18
|
+
"totpNotFound": "TOTP method not found.",
|
|
19
|
+
"invalidMfaToken": "Invalid MFA token.",
|
|
20
|
+
"invalidJsonFile": "File does not contain valid JSON.",
|
|
21
|
+
"invalidJsonArray": "The JSON file must contain an array of settings.",
|
|
22
|
+
"deleteItemsRequired": "You must select at least one item to delete.",
|
|
23
|
+
"signup": {
|
|
24
|
+
"emailExists": "Email already in use."
|
|
25
|
+
},
|
|
26
|
+
"forgot": {
|
|
27
|
+
"rateLimit": "Too many requests. Please try again later."
|
|
28
|
+
},
|
|
29
|
+
"reset": {
|
|
30
|
+
"password": {
|
|
31
|
+
"required": "Password is required.",
|
|
32
|
+
"minLength": "Password must be at least 8 characters long."
|
|
33
|
+
},
|
|
34
|
+
"code": {
|
|
35
|
+
"required": "Reset code is required."
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
"session": {
|
|
39
|
+
"userIdRequired": "User ID is required to create a session.",
|
|
40
|
+
"ipAddressRequired": "IP address is required to create a session.",
|
|
41
|
+
"userAgentRequired": "User agent is required to create a session."
|
|
42
|
+
},
|
|
43
|
+
"profile": {
|
|
44
|
+
"update": {
|
|
45
|
+
"nameRequired": "Name is required."
|
|
46
|
+
},
|
|
47
|
+
"emailIdentifierNotFound": "Email identifier not found.",
|
|
48
|
+
"defaultNameMfaEmail": "Email Verification",
|
|
49
|
+
"emailVerification": {
|
|
50
|
+
"pinInvalid": "PIN must be exactly 6 digits.",
|
|
51
|
+
"pinIsString": "PIN must be a string."
|
|
52
|
+
},
|
|
53
|
+
"changePassword": {
|
|
54
|
+
"currentPasswordIsString": "Current password must be a string.",
|
|
55
|
+
"newPasswordIsString": "New password must be a string."
|
|
56
|
+
},
|
|
57
|
+
"sendEmailVerification": {
|
|
58
|
+
"emailIsString": "Email must be a string."
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
"password": {
|
|
62
|
+
"weakPassword": "Password does not meet the security requirements defined in system settings.",
|
|
63
|
+
"required": "Password is required.",
|
|
64
|
+
"minLength": "Password must be at least {minLength} characters long.",
|
|
65
|
+
"minLowercase": "Password must contain at least {minLowercase} lowercase letter(s).",
|
|
66
|
+
"minUppercase": "Password must contain at least {minUppercase} uppercase letter(s).",
|
|
67
|
+
"minNumbers": "Password must contain at least {minNumbers} number(s).",
|
|
68
|
+
"minSymbols": "Password must contain at least {minSymbols} special character(s)."
|
|
69
|
+
},
|
|
70
|
+
"createUser": {
|
|
71
|
+
"nameRequired": "Name is required."
|
|
72
|
+
},
|
|
73
|
+
"pinCode": {
|
|
74
|
+
"invalidLength": "PIN code must be exactly {length} digits long."
|
|
75
|
+
},
|
|
76
|
+
"validation": {
|
|
77
|
+
"emailRequired": "Email is required.",
|
|
78
|
+
"emailInvalid": "The provided email is invalid.",
|
|
79
|
+
"currentEmailRequired": "Current email is required.",
|
|
80
|
+
"currentEmailInvalid": "The current email provided is invalid.",
|
|
81
|
+
"newEmailRequired": "New email is required.",
|
|
82
|
+
"newEmailInvalid": "The new email provided is invalid.",
|
|
83
|
+
"passwordRequired": "Password is required.",
|
|
84
|
+
"passwordMinLength": "Password must be at least 8 characters long.",
|
|
85
|
+
"passwordStrength": "Password must be at least 6 characters long and contain at least 1 lowercase letter.",
|
|
86
|
+
"codeMustBeString": "Code must be a string.",
|
|
87
|
+
"codeRequired": "Code is required.",
|
|
88
|
+
"tokenInvalid": "Invalid token.",
|
|
89
|
+
"tokenMustBeJWT": "Token must be a valid JWT.",
|
|
90
|
+
"methodTypeInvalid": "Method type must be totp, email, or recovery.",
|
|
91
|
+
"streetMustBeString": "Street must be a string.",
|
|
92
|
+
"numberMustBeString": "Number must be a string.",
|
|
93
|
+
"complementMustBeString": "Complement must be a string.",
|
|
94
|
+
"districtMustBeString": "District must be a string.",
|
|
95
|
+
"cityMustBeString": "City must be a string.",
|
|
96
|
+
"stateMustBeString": "State must be a string.",
|
|
97
|
+
"postalCodeMustBeString": "Postal code must be a string.",
|
|
98
|
+
"nameMustBeString": "Name must be a string.",
|
|
99
|
+
"nameRequired": "Name is required.",
|
|
100
|
+
"slugMustBeString": "Slug must be a string.",
|
|
101
|
+
"slugRequired": "Slug is required.",
|
|
102
|
+
"descriptionMustBeString": "Description must be a string.",
|
|
103
|
+
"descriptionRequired": "Description is required.",
|
|
104
|
+
"urlMustBeString": "URL must be a string.",
|
|
105
|
+
"urlRequired": "URL is required.",
|
|
106
|
+
"methodMustBeString": "Method must be a string.",
|
|
107
|
+
"methodMustBeValid": "Method must be a valid HTTP method (GET, POST, PUT, DELETE, PATCH, OPTIONS, or HEAD).",
|
|
108
|
+
"iconMustBeString": "Icon must be a string.",
|
|
109
|
+
"orderMustBeNumber": "Order must be a number.",
|
|
110
|
+
"tokenMustBe6Digits": "Token must be a 6-digit numeric string."
|
|
111
|
+
}
|
|
112
|
+
}
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
{
|
|
2
|
+
"settingNotFound": "Configuração não encontrada ou o usuário não pode substituir.",
|
|
3
|
+
"userNotFound": "Usuário não encontrado.",
|
|
4
|
+
"accessDenied": "Acesso negado.",
|
|
5
|
+
"defaultRoleNotFound": "Função de usuário padrão não encontrada.",
|
|
6
|
+
"defaultNameMfaEmail": "MFA de E-mail Padrão",
|
|
7
|
+
"urlSettingMissing": "Configuração de URL está faltando.",
|
|
8
|
+
"userIdentifierNotFound": "Identificador de usuário não encontrado.",
|
|
9
|
+
"invalidMfaCode": "Código MFA inválido.",
|
|
10
|
+
"invalidRecoveryCode": "Código de recuperação inválido.",
|
|
11
|
+
"noEmailMfaFound": "Nenhum método de MFA por e-mail encontrado para este usuário.",
|
|
12
|
+
"webauthnNotConfigured": "WebAuthn não configurado.",
|
|
13
|
+
"challengeNotFound": "Desafio não encontrado ou expirado.",
|
|
14
|
+
"verificationFailed": "Verificação falhou.",
|
|
15
|
+
"userIdsRequired": "Pelo menos um ID de usuário é necessário para excluir usuários.",
|
|
16
|
+
"invalidIds": "IDs inválidos.",
|
|
17
|
+
"invalidCode": "Código inválido.",
|
|
18
|
+
"totpNotFound": "Método TOTP não encontrado.",
|
|
19
|
+
"invalidMfaToken": "Token MFA inválido.",
|
|
20
|
+
"invalidJsonFile": "Arquivo não contém um JSON válido.",
|
|
21
|
+
"invalidJsonArray": "O arquivo JSON deve conter um array de settings.",
|
|
22
|
+
"deleteItemsRequired": "Você deve selecionar pelo menos um item para excluir.",
|
|
23
|
+
"signup": {
|
|
24
|
+
"emailExists": "E-mail já está em uso."
|
|
25
|
+
},
|
|
26
|
+
"forgot": {
|
|
27
|
+
"rateLimit": "Muitas solicitações. Por favor, tente novamente mais tarde."
|
|
28
|
+
},
|
|
29
|
+
"reset": {
|
|
30
|
+
"password": {
|
|
31
|
+
"required": "Senha é obrigatória.",
|
|
32
|
+
"minLength": "A senha deve ter no mínimo 8 caracteres."
|
|
33
|
+
},
|
|
34
|
+
"code": {
|
|
35
|
+
"required": "Código de redefinição é obrigatório."
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
"session": {
|
|
39
|
+
"userIdRequired": "O ID do usuário é necessário para criar uma sessão.",
|
|
40
|
+
"ipAddressRequired": "O endereço IP é necessário para criar uma sessão.",
|
|
41
|
+
"userAgentRequired": "O agente do usuário é necessário para criar uma sessão."
|
|
42
|
+
},
|
|
43
|
+
"profile": {
|
|
44
|
+
"update": {
|
|
45
|
+
"nameRequired": "Nome é obrigatório."
|
|
46
|
+
},
|
|
47
|
+
"emailIdentifierNotFound": "Identificador de email não encontrado.",
|
|
48
|
+
"defaultNameMfaEmail": "Verificação de Email",
|
|
49
|
+
"emailVerification": {
|
|
50
|
+
"pinInvalid": "O PIN deve conter exatamente 6 dígitos.",
|
|
51
|
+
"pinIsString": "O PIN deve ser uma string."
|
|
52
|
+
},
|
|
53
|
+
"changePassword": {
|
|
54
|
+
"currentPasswordIsString": "A senha atual deve ser uma string.",
|
|
55
|
+
"newPasswordIsString": "A nova senha deve ser uma string."
|
|
56
|
+
},
|
|
57
|
+
"sendEmailVerification": {
|
|
58
|
+
"emailIsString": "O email deve ser uma string."
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
"password": {
|
|
62
|
+
"weakPassword": "A senha não atende aos requisitos de segurança definidos nas configurações do sistema.",
|
|
63
|
+
"required": "A senha é obrigatória.",
|
|
64
|
+
"minLength": "A senha deve ter no mínimo {minLength} caracteres.",
|
|
65
|
+
"minLowercase": "A senha deve conter pelo menos {minLowercase} letra(s) minúscula(s).",
|
|
66
|
+
"minUppercase": "A senha deve conter pelo menos {minUppercase} letra(s) maiúscula(s).",
|
|
67
|
+
"minNumbers": "A senha deve conter pelo menos {minNumbers} número(s).",
|
|
68
|
+
"minSymbols": "A senha deve conter pelo menos {minSymbols} caractere(s) especial(is)."
|
|
69
|
+
},
|
|
70
|
+
"createUser": {
|
|
71
|
+
"nameRequired": "Nome é obrigatório."
|
|
72
|
+
},
|
|
73
|
+
"pinCode": {
|
|
74
|
+
"invalidLength": "O código PIN deve conter exatamente {length} dígitos."
|
|
75
|
+
},
|
|
76
|
+
"validation": {
|
|
77
|
+
"emailRequired": "E-mail é obrigatório.",
|
|
78
|
+
"emailInvalid": "O e-mail fornecido não é válido.",
|
|
79
|
+
"currentEmailRequired": "O e-mail atual é obrigatório.",
|
|
80
|
+
"currentEmailInvalid": "O e-mail atual informado não é válido.",
|
|
81
|
+
"newEmailRequired": "O novo e-mail é obrigatório.",
|
|
82
|
+
"newEmailInvalid": "O novo e-mail informado não é válido.",
|
|
83
|
+
"passwordRequired": "A senha é obrigatória.",
|
|
84
|
+
"passwordMinLength": "A senha deve ter pelo menos 8 caracteres.",
|
|
85
|
+
"passwordStrength": "A senha deve ter pelo menos 6 caracteres e conter pelo menos 1 letra minúscula.",
|
|
86
|
+
"codeMustBeString": "O código deve ser uma string.",
|
|
87
|
+
"codeRequired": "Código é obrigatório.",
|
|
88
|
+
"tokenInvalid": "Token inválido.",
|
|
89
|
+
"tokenMustBeJWT": "Token deve ser um JWT válido.",
|
|
90
|
+
"methodTypeInvalid": "Tipo de método deve ser totp, email ou recovery.",
|
|
91
|
+
"streetMustBeString": "O endereço deve ser uma string.",
|
|
92
|
+
"numberMustBeString": "O número deve ser uma string.",
|
|
93
|
+
"complementMustBeString": "O complemento deve ser uma string.",
|
|
94
|
+
"districtMustBeString": "O bairro deve ser uma string.",
|
|
95
|
+
"cityMustBeString": "A cidade deve ser uma string.",
|
|
96
|
+
"stateMustBeString": "O estado deve ser uma string.",
|
|
97
|
+
"postalCodeMustBeString": "O CEP deve ser uma string.",
|
|
98
|
+
"nameMustBeString": "O nome deve ser uma string.",
|
|
99
|
+
"nameRequired": "Nome é obrigatório.",
|
|
100
|
+
"slugMustBeString": "O slug deve ser uma string.",
|
|
101
|
+
"slugRequired": "O slug é obrigatório.",
|
|
102
|
+
"descriptionMustBeString": "A descrição deve ser uma string.",
|
|
103
|
+
"descriptionRequired": "A descrição é obrigatória.",
|
|
104
|
+
"urlMustBeString": "A URL deve ser uma string.",
|
|
105
|
+
"urlRequired": "A URL é obrigatória.",
|
|
106
|
+
"methodMustBeString": "O método deve ser uma string.",
|
|
107
|
+
"methodMustBeValid": "O método deve ser um método HTTP válido (GET, POST, PUT, DELETE, PATCH, OPTIONS ou HEAD).",
|
|
108
|
+
"iconMustBeString": "O ícone deve ser uma string.",
|
|
109
|
+
"orderMustBeNumber": "A ordem deve ser um número.",
|
|
110
|
+
"tokenMustBe6Digits": "Token deve ser uma string numérica de 6 dígitos."
|
|
111
|
+
}
|
|
112
|
+
}
|