@vitnode/core 1.2.0-canary.52 → 1.2.0-canary.54
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/config/next.config.ts +3 -3
- package/dist/scripts/get-config.d.ts +2 -2
- package/dist/scripts/get-config.d.ts.map +1 -1
- package/dist/scripts/plugin.d.ts.map +1 -1
- package/dist/scripts/prepare-database.d.ts +0 -1
- package/dist/scripts/prepare-database.d.ts.map +1 -1
- package/dist/scripts/prepare-plugins-files.d.ts.map +1 -1
- package/dist/scripts/scripts.js +3 -3
- package/dist/scripts/shared/file-utils.d.ts.map +1 -1
- package/dist/src/api/adapters/cron/node-cron.adapter.d.ts +3 -0
- package/dist/src/api/adapters/cron/node-cron.adapter.d.ts.map +1 -0
- package/dist/src/api/adapters/cron/node-cron.adapter.js +11 -0
- package/dist/src/api/adapters/email/nodemailer.d.ts +1 -1
- package/dist/src/api/adapters/email/nodemailer.js +3 -3
- package/dist/src/api/adapters/email/resend.d.ts +1 -1
- package/dist/src/api/adapters/email/resend.js +2 -2
- package/dist/src/api/adapters/sso/discord.d.ts +1 -1
- package/dist/src/api/adapters/sso/discord.d.ts.map +1 -1
- package/dist/src/api/adapters/sso/discord.js +21 -21
- package/dist/src/api/adapters/sso/facebook.d.ts +1 -1
- package/dist/src/api/adapters/sso/facebook.d.ts.map +1 -1
- package/dist/src/api/adapters/sso/facebook.js +23 -23
- package/dist/src/api/adapters/sso/google.d.ts +1 -1
- package/dist/src/api/adapters/sso/google.d.ts.map +1 -1
- package/dist/src/api/adapters/sso/google.js +21 -21
- package/dist/src/api/config.d.ts +3 -3
- package/dist/src/api/config.d.ts.map +1 -1
- package/dist/src/api/config.js +30 -18
- package/dist/src/api/lib/check-plugin-id.js +8 -8
- package/dist/src/api/lib/cron.d.ts +18 -0
- package/dist/src/api/lib/cron.d.ts.map +1 -0
- package/dist/src/api/lib/cron.js +22 -0
- package/dist/src/api/lib/logger-middleware.d.ts +1 -1
- package/dist/src/api/lib/logger-middleware.js +9 -9
- package/dist/src/api/lib/module.d.ts +6 -3
- package/dist/src/api/lib/module.d.ts.map +1 -1
- package/dist/src/api/lib/module.js +3 -2
- package/dist/src/api/lib/plugin.d.ts +4 -2
- package/dist/src/api/lib/plugin.d.ts.map +1 -1
- package/dist/src/api/lib/plugin.js +9 -1
- package/dist/src/api/lib/route.d.ts +2 -2
- package/dist/src/api/lib/route.d.ts.map +1 -1
- package/dist/src/api/lib/route.js +1 -1
- package/dist/src/api/lib/with-pagination.d.ts +7 -7
- package/dist/src/api/lib/with-pagination.d.ts.map +1 -1
- package/dist/src/api/lib/with-pagination.js +37 -24
- package/dist/src/api/middlewares/captcha.middleware.d.ts +1 -1
- package/dist/src/api/middlewares/captcha.middleware.d.ts.map +1 -1
- package/dist/src/api/middlewares/captcha.middleware.js +14 -13
- package/dist/src/api/middlewares/cron-auth.middleware.d.ts +3 -0
- package/dist/src/api/middlewares/cron-auth.middleware.d.ts.map +1 -0
- package/dist/src/api/middlewares/cron-auth.middleware.js +19 -0
- package/dist/src/api/middlewares/global.middleware.d.ts +18 -12
- package/dist/src/api/middlewares/global.middleware.d.ts.map +1 -1
- package/dist/src/api/middlewares/global.middleware.js +46 -34
- package/dist/src/api/middlewares/rate-limiter.middleware.d.ts +3 -3
- package/dist/src/api/middlewares/rate-limiter.middleware.d.ts.map +1 -1
- package/dist/src/api/middlewares/rate-limiter.middleware.js +4 -4
- package/dist/src/api/models/device.d.ts +1 -1
- package/dist/src/api/models/device.d.ts.map +1 -1
- package/dist/src/api/models/device.js +13 -13
- package/dist/src/api/models/email.d.ts +15 -15
- package/dist/src/api/models/email.d.ts.map +1 -1
- package/dist/src/api/models/email.js +11 -10
- package/dist/src/api/models/password.js +9 -9
- package/dist/src/api/models/session-admin.d.ts +1 -1
- package/dist/src/api/models/session-admin.d.ts.map +1 -1
- package/dist/src/api/models/session-admin.js +19 -19
- package/dist/src/api/models/session.d.ts +1 -1
- package/dist/src/api/models/session.d.ts.map +1 -1
- package/dist/src/api/models/session.js +17 -17
- package/dist/src/api/models/sso.d.ts +1 -1
- package/dist/src/api/models/sso.d.ts.map +1 -1
- package/dist/src/api/models/sso.js +22 -25
- package/dist/src/api/models/user/get-user-by-id.d.ts +1 -1
- package/dist/src/api/models/user/get-user-by-id.d.ts.map +1 -1
- package/dist/src/api/models/user/get-user-by-id.js +1 -1
- package/dist/src/api/models/user/sign-in-with-passwords.d.ts +1 -1
- package/dist/src/api/models/user/sign-in-with-passwords.d.ts.map +1 -1
- package/dist/src/api/models/user/sign-in-with-passwords.js +1 -1
- package/dist/src/api/models/user/sign-up.d.ts +2 -2
- package/dist/src/api/models/user/sign-up.d.ts.map +1 -1
- package/dist/src/api/models/user/sign-up.js +11 -12
- package/dist/src/api/models/user.d.ts +1 -1
- package/dist/src/api/models/user.d.ts.map +1 -1
- package/dist/src/api/modules/admin/admin.module.d.ts +166 -4
- package/dist/src/api/modules/admin/admin.module.d.ts.map +1 -1
- package/dist/src/api/modules/admin/admin.module.js +7 -4
- package/dist/src/api/modules/admin/advanced/advanced.admin.module.d.ts +164 -0
- package/dist/src/api/modules/admin/advanced/advanced.admin.module.d.ts.map +1 -0
- package/dist/src/api/modules/admin/advanced/advanced.admin.module.js +11 -0
- package/dist/src/api/modules/admin/advanced/cron/cron.admin.module.d.ts +164 -0
- package/dist/src/api/modules/admin/advanced/cron/cron.admin.module.d.ts.map +1 -0
- package/dist/src/api/modules/admin/advanced/cron/cron.admin.module.js +12 -0
- package/dist/src/api/modules/admin/advanced/cron/routes/get.route.d.ts +98 -0
- package/dist/src/api/modules/admin/advanced/cron/routes/get.route.d.ts.map +1 -0
- package/dist/src/api/modules/admin/advanced/cron/routes/get.route.js +66 -0
- package/dist/src/api/modules/admin/advanced/cron/routes/run.route.d.ts +70 -0
- package/dist/src/api/modules/admin/advanced/cron/routes/run.route.d.ts.map +1 -0
- package/dist/src/api/modules/admin/advanced/cron/routes/run.route.js +95 -0
- package/dist/src/api/modules/admin/debug/debug.admin.module.d.ts +1 -1
- package/dist/src/api/modules/admin/debug/debug.admin.module.js +2 -2
- package/dist/src/api/modules/admin/debug/routes/logs.route.d.ts +2 -2
- package/dist/src/api/modules/admin/debug/routes/logs.route.js +17 -17
- package/dist/src/api/modules/admin/routes/session.route.d.ts +2 -2
- package/dist/src/api/modules/admin/routes/session.route.js +8 -8
- package/dist/src/api/modules/admin/users/routes/list.route.d.ts +2 -2
- package/dist/src/api/modules/admin/users/routes/list.route.js +13 -13
- package/dist/src/api/modules/admin/users/routes/users.route.d.ts +5 -5
- package/dist/src/api/modules/admin/users/routes/users.route.js +16 -16
- package/dist/src/api/modules/admin/users/users.admin.module.d.ts +1 -1
- package/dist/src/api/modules/admin/users/users.admin.module.js +2 -2
- package/dist/src/api/modules/cron/cron/clean.cron.d.ts +2 -0
- package/dist/src/api/modules/cron/cron/clean.cron.d.ts.map +1 -0
- package/dist/src/api/modules/cron/cron/clean.cron.js +24 -0
- package/dist/src/api/modules/cron/cron.module.d.ts +26 -0
- package/dist/src/api/modules/cron/cron.module.d.ts.map +1 -0
- package/dist/src/api/modules/cron/cron.module.js +14 -0
- package/dist/src/api/modules/cron/helpers/process-cron-jobs.d.ts +36 -0
- package/dist/src/api/modules/cron/helpers/process-cron-jobs.d.ts.map +1 -0
- package/dist/src/api/modules/cron/helpers/process-cron-jobs.js +72 -0
- package/dist/src/api/modules/cron/routes/cron.route.d.ts +27 -0
- package/dist/src/api/modules/cron/routes/cron.route.d.ts.map +1 -0
- package/dist/src/api/modules/cron/routes/cron.route.js +95 -0
- package/dist/src/api/modules/middleware/middleware.module.d.ts +1 -1
- package/dist/src/api/modules/middleware/middleware.module.js +2 -2
- package/dist/src/api/modules/middleware/route.d.ts +2 -2
- package/dist/src/api/modules/middleware/route.js +13 -13
- package/dist/src/api/modules/users/routes/change-password.route.d.ts +2 -2
- package/dist/src/api/modules/users/routes/change-password.route.js +14 -14
- package/dist/src/api/modules/users/routes/reset-passowrd.route.d.ts +2 -2
- package/dist/src/api/modules/users/routes/reset-passowrd.route.js +18 -18
- package/dist/src/api/modules/users/routes/session.route.d.ts +2 -2
- package/dist/src/api/modules/users/routes/session.route.js +7 -7
- package/dist/src/api/modules/users/routes/sign-in.route.d.ts +3 -3
- package/dist/src/api/modules/users/routes/sign-in.route.js +11 -11
- package/dist/src/api/modules/users/routes/sign-out.route.d.ts +2 -2
- package/dist/src/api/modules/users/routes/sign-out.route.js +8 -8
- package/dist/src/api/modules/users/routes/sign-up.route.d.ts +3 -3
- package/dist/src/api/modules/users/routes/sign-up.route.js +15 -15
- package/dist/src/api/modules/users/routes/test.route.d.ts +3 -3
- package/dist/src/api/modules/users/routes/test.route.js +10 -10
- package/dist/src/api/modules/users/sso/routes/callback.route.d.ts +2 -2
- package/dist/src/api/modules/users/sso/routes/callback.route.js +9 -9
- package/dist/src/api/modules/users/sso/routes/create-url.route.d.ts +2 -2
- package/dist/src/api/modules/users/sso/routes/create-url.route.js +7 -7
- package/dist/src/api/modules/users/sso/sso.module.d.ts +2 -2
- package/dist/src/api/modules/users/sso/sso.module.js +2 -2
- package/dist/src/api/modules/users/users.module.d.ts +12 -12
- package/dist/src/api/modules/users/users.module.js +2 -2
- package/dist/src/api/plugin.d.ts.map +1 -1
- package/dist/src/api/plugin.js +4 -2
- package/dist/src/app/login/page.d.ts +1 -1
- package/dist/src/app/login/page.js +2 -2
- package/dist/src/app/login/reset-password/page.d.ts +2 -2
- package/dist/src/app/login/reset-password/page.js +2 -2
- package/dist/src/app/register/page.d.ts +1 -1
- package/dist/src/app/register/page.js +2 -2
- package/dist/src/app_admin/core/advanced/cron/page.d.ts +11 -0
- package/dist/src/app_admin/core/advanced/cron/page.d.ts.map +1 -0
- package/dist/src/app_admin/core/advanced/cron/page.js +42 -0
- package/dist/src/app_admin/core/debug/page.d.ts +1 -1
- package/dist/src/app_admin/core/debug/page.js +8 -8
- package/dist/src/app_admin/core/users/page.d.ts +2 -2
- package/dist/src/app_admin/core/users/page.d.ts.map +1 -1
- package/dist/src/app_admin/core/users/page.js +7 -7
- package/dist/src/components/avatar.d.ts +1 -1
- package/dist/src/components/avatar.js +1 -1
- package/dist/src/components/confirm-action/confirm-action-alert-dialog.d.ts +2 -2
- package/dist/src/components/confirm-action/confirm-action-alert-dialog.js +5 -5
- package/dist/src/components/confirm-action/content.d.ts.map +1 -1
- package/dist/src/components/confirm-action/content.js +3 -4
- package/dist/src/components/date-format.js +8 -8
- package/dist/src/components/form/auto-form.d.ts +16 -16
- package/dist/src/components/form/auto-form.d.ts.map +1 -1
- package/dist/src/components/form/auto-form.js +13 -12
- package/dist/src/components/form/common/desc.js +1 -1
- package/dist/src/components/form/common/label.d.ts +1 -1
- package/dist/src/components/form/common/label.js +1 -1
- package/dist/src/components/form/fields/checkbox.d.ts +2 -2
- package/dist/src/components/form/fields/checkbox.d.ts.map +1 -1
- package/dist/src/components/form/fields/combobox-async.d.ts +3 -3
- package/dist/src/components/form/fields/combobox-async.d.ts.map +1 -1
- package/dist/src/components/form/fields/combobox-async.js +29 -23
- package/dist/src/components/form/fields/combobox.d.ts +3 -3
- package/dist/src/components/form/fields/combobox.d.ts.map +1 -1
- package/dist/src/components/form/fields/combobox.js +6 -7
- package/dist/src/components/form/fields/input.d.ts +2 -2
- package/dist/src/components/form/fields/input.d.ts.map +1 -1
- package/dist/src/components/form/fields/input.js +2 -2
- package/dist/src/components/form/fields/radio-group.d.ts +3 -3
- package/dist/src/components/form/fields/radio-group.d.ts.map +1 -1
- package/dist/src/components/form/fields/radio-group.js +0 -1
- package/dist/src/components/form/fields/select.d.ts +3 -3
- package/dist/src/components/form/fields/select.d.ts.map +1 -1
- package/dist/src/components/form/fields/select.js +2 -3
- package/dist/src/components/form/fields/switch.d.ts +2 -2
- package/dist/src/components/form/fields/switch.d.ts.map +1 -1
- package/dist/src/components/form/fields/textarea.d.ts +3 -3
- package/dist/src/components/form/fields/textarea.d.ts.map +1 -1
- package/dist/src/components/form/fields/textarea.js +1 -2
- package/dist/src/components/i18n-provider.d.ts +2 -2
- package/dist/src/components/i18n-provider.js +3 -3
- package/dist/src/components/logo-vitnode.d.ts.map +1 -1
- package/dist/src/components/logo-vitnode.js +8 -2
- package/dist/src/components/switchers/langs/{language-swietcher.d.ts → language-switcher.d.ts} +2 -2
- package/dist/src/components/switchers/langs/language-switcher.d.ts.map +1 -0
- package/dist/src/components/switchers/langs/{language-swietcher.js → language-switcher.js} +3 -3
- package/dist/src/components/switchers/themes/theme-switcher.js +4 -4
- package/dist/src/components/table/content.d.ts +1 -1
- package/dist/src/components/table/content.d.ts.map +1 -1
- package/dist/src/components/table/content.js +5 -5
- package/dist/src/components/table/data-table.d.ts +7 -7
- package/dist/src/components/table/data-table.d.ts.map +1 -1
- package/dist/src/components/table/data-table.js +22 -15
- package/dist/src/components/table/order-table-head.d.ts +4 -4
- package/dist/src/components/table/order-table-head.d.ts.map +1 -1
- package/dist/src/components/table/order-table-head.js +20 -9
- package/dist/src/components/table/pagination.js +19 -19
- package/dist/src/components/tiptap/extension.d.ts +4 -0
- package/dist/src/components/tiptap/extension.d.ts.map +1 -0
- package/dist/src/components/tiptap/extension.js +26 -0
- package/dist/src/components/tiptap/toolbar/actions/bold-action.d.ts +2 -0
- package/dist/src/components/tiptap/toolbar/actions/bold-action.d.ts.map +1 -0
- package/dist/src/components/tiptap/toolbar/actions/bold-action.js +39 -0
- package/dist/src/components/tiptap/toolbar/actions/headings-action.d.ts +2 -0
- package/dist/src/components/tiptap/toolbar/actions/headings-action.d.ts.map +1 -0
- package/dist/src/components/tiptap/toolbar/actions/headings-action.js +94 -0
- package/dist/src/components/tiptap/toolbar/actions/italic-action.d.ts +2 -0
- package/dist/src/components/tiptap/toolbar/actions/italic-action.d.ts.map +1 -0
- package/dist/src/components/tiptap/toolbar/actions/italic-action.js +38 -0
- package/dist/src/components/tiptap/toolbar/actions/list-action.d.ts +2 -0
- package/dist/src/components/tiptap/toolbar/actions/list-action.d.ts.map +1 -0
- package/dist/src/components/tiptap/toolbar/actions/list-action.js +60 -0
- package/dist/src/components/tiptap/toolbar/actions/text-format-more/text-format-more.d.ts +2 -0
- package/dist/src/components/tiptap/toolbar/actions/text-format-more/text-format-more.d.ts.map +1 -0
- package/dist/src/components/tiptap/toolbar/actions/text-format-more/text-format-more.js +59 -0
- package/dist/src/components/tiptap/toolbar/actions/underline-action.d.ts +2 -0
- package/dist/src/components/tiptap/toolbar/actions/underline-action.d.ts.map +1 -0
- package/dist/src/components/tiptap/toolbar/actions/underline-action.js +38 -0
- package/dist/src/components/tiptap/toolbar/actions/undo-redo-actions.d.ts +2 -0
- package/dist/src/components/tiptap/toolbar/actions/undo-redo-actions.d.ts.map +1 -0
- package/dist/src/components/tiptap/toolbar/actions/undo-redo-actions.js +63 -0
- package/dist/src/components/tiptap/toolbar/actions/utils/tooltip-shortcut.d.ts +4 -0
- package/dist/src/components/tiptap/toolbar/actions/utils/tooltip-shortcut.d.ts.map +1 -0
- package/dist/src/components/tiptap/toolbar/actions/utils/tooltip-shortcut.js +11 -0
- package/dist/src/components/tiptap/toolbar/tiptap-toolbar.d.ts +5 -0
- package/dist/src/components/tiptap/toolbar/tiptap-toolbar.d.ts.map +1 -0
- package/dist/src/components/tiptap/toolbar/tiptap-toolbar.js +35 -0
- package/dist/src/components/tiptap/toolbar/use-toolbar-editor.d.ts +9 -0
- package/dist/src/components/tiptap/toolbar/use-toolbar-editor.d.ts.map +1 -0
- package/dist/src/components/tiptap/toolbar/use-toolbar-editor.js +5 -0
- package/dist/src/components/ui/accordion.d.ts +2 -2
- package/dist/src/components/ui/accordion.d.ts.map +1 -1
- package/dist/src/components/ui/accordion.js +4 -5
- package/dist/src/components/ui/alert-dialog.d.ts +7 -7
- package/dist/src/components/ui/alert-dialog.d.ts.map +1 -1
- package/dist/src/components/ui/alert-dialog.js +12 -12
- package/dist/src/components/ui/alert.d.ts +5 -5
- package/dist/src/components/ui/alert.d.ts.map +1 -1
- package/dist/src/components/ui/alert.js +6 -7
- package/dist/src/components/ui/badge.d.ts +3 -3
- package/dist/src/components/ui/badge.d.ts.map +1 -1
- package/dist/src/components/ui/badge.js +7 -8
- package/dist/src/components/ui/button-client.d.ts +1 -1
- package/dist/src/components/ui/button-client.d.ts.map +1 -1
- package/dist/src/components/ui/button-client.js +10 -10
- package/dist/src/components/ui/button.d.ts +8 -8
- package/dist/src/components/ui/button.d.ts.map +1 -1
- package/dist/src/components/ui/button.js +14 -15
- package/dist/src/components/ui/card.d.ts +8 -8
- package/dist/src/components/ui/card.js +7 -7
- package/dist/src/components/ui/checkbox.d.ts +2 -2
- package/dist/src/components/ui/checkbox.d.ts.map +1 -1
- package/dist/src/components/ui/checkbox.js +2 -3
- package/dist/src/components/ui/collapsible.d.ts +1 -1
- package/dist/src/components/ui/collapsible.js +1 -1
- package/dist/src/components/ui/command.d.ts +4 -4
- package/dist/src/components/ui/command.d.ts.map +1 -1
- package/dist/src/components/ui/command.js +9 -10
- package/dist/src/components/ui/context-menu.d.ts +4 -4
- package/dist/src/components/ui/context-menu.d.ts.map +1 -1
- package/dist/src/components/ui/context-menu.js +7 -8
- package/dist/src/components/ui/dialog.d.ts +6 -6
- package/dist/src/components/ui/dialog.d.ts.map +1 -1
- package/dist/src/components/ui/dialog.js +16 -16
- package/dist/src/components/ui/drawer.d.ts +4 -4
- package/dist/src/components/ui/drawer.d.ts.map +1 -1
- package/dist/src/components/ui/drawer.js +7 -8
- package/dist/src/components/ui/dropdown-menu.d.ts +4 -4
- package/dist/src/components/ui/dropdown-menu.d.ts.map +1 -1
- package/dist/src/components/ui/dropdown-menu.js +8 -9
- package/dist/src/components/ui/editor-content.d.ts +4 -0
- package/dist/src/components/ui/editor-content.d.ts.map +1 -0
- package/dist/src/components/ui/editor-content.js +10 -0
- package/dist/src/components/ui/editor.d.ts +6 -0
- package/dist/src/components/ui/editor.d.ts.map +1 -0
- package/dist/src/components/ui/editor.js +35 -0
- package/dist/src/components/ui/form.d.ts +10 -10
- package/dist/src/components/ui/form.d.ts.map +1 -1
- package/dist/src/components/ui/form.js +15 -15
- package/dist/src/components/ui/header-content.js +1 -1
- package/dist/src/components/ui/hover-card.d.ts +2 -2
- package/dist/src/components/ui/hover-card.d.ts.map +1 -1
- package/dist/src/components/ui/hover-card.js +3 -4
- package/dist/src/components/ui/input-otp.d.ts +5 -5
- package/dist/src/components/ui/input-otp.d.ts.map +1 -1
- package/dist/src/components/ui/input-otp.js +6 -7
- package/dist/src/components/ui/input.d.ts +2 -2
- package/dist/src/components/ui/input.d.ts.map +1 -1
- package/dist/src/components/ui/input.js +1 -2
- package/dist/src/components/ui/label.d.ts +2 -2
- package/dist/src/components/ui/label.d.ts.map +1 -1
- package/dist/src/components/ui/label.js +2 -3
- package/dist/src/components/ui/loader.js +3 -3
- package/dist/src/components/ui/menubar.d.ts +4 -4
- package/dist/src/components/ui/menubar.d.ts.map +1 -1
- package/dist/src/components/ui/menubar.js +11 -12
- package/dist/src/components/ui/navigation-menu.d.ts +2 -2
- package/dist/src/components/ui/navigation-menu.d.ts.map +1 -1
- package/dist/src/components/ui/navigation-menu.js +10 -11
- package/dist/src/components/ui/popover.d.ts +2 -2
- package/dist/src/components/ui/popover.d.ts.map +1 -1
- package/dist/src/components/ui/popover.js +3 -4
- package/dist/src/components/ui/progress.d.ts +2 -2
- package/dist/src/components/ui/progress.d.ts.map +1 -1
- package/dist/src/components/ui/progress.js +2 -3
- package/dist/src/components/ui/radio-group.d.ts +2 -2
- package/dist/src/components/ui/radio-group.d.ts.map +1 -1
- package/dist/src/components/ui/radio-group.js +3 -4
- package/dist/src/components/ui/select.d.ts +3 -3
- package/dist/src/components/ui/select.d.ts.map +1 -1
- package/dist/src/components/ui/select.js +9 -10
- package/dist/src/components/ui/separator.d.ts +2 -2
- package/dist/src/components/ui/separator.d.ts.map +1 -1
- package/dist/src/components/ui/separator.js +3 -4
- package/dist/src/components/ui/sheet.d.ts +5 -5
- package/dist/src/components/ui/sheet.d.ts.map +1 -1
- package/dist/src/components/ui/sheet.js +8 -9
- package/dist/src/components/ui/sidebar.d.ts +31 -31
- package/dist/src/components/ui/sidebar.d.ts.map +1 -1
- package/dist/src/components/ui/sidebar.js +78 -80
- package/dist/src/components/ui/skeleton.d.ts +1 -1
- package/dist/src/components/ui/skeleton.js +1 -1
- package/dist/src/components/ui/slider.d.ts +2 -2
- package/dist/src/components/ui/slider.d.ts.map +1 -1
- package/dist/src/components/ui/slider.js +16 -8
- package/dist/src/components/ui/sonner.d.ts +1 -1
- package/dist/src/components/ui/sonner.d.ts.map +1 -1
- package/dist/src/components/ui/sonner.js +6 -6
- package/dist/src/components/ui/switch.d.ts +2 -2
- package/dist/src/components/ui/switch.d.ts.map +1 -1
- package/dist/src/components/ui/switch.js +3 -4
- package/dist/src/components/ui/table.d.ts +9 -9
- package/dist/src/components/ui/table.d.ts.map +1 -1
- package/dist/src/components/ui/table.js +8 -9
- package/dist/src/components/ui/tabs.d.ts +2 -2
- package/dist/src/components/ui/tabs.d.ts.map +1 -1
- package/dist/src/components/ui/tabs.js +4 -5
- package/dist/src/components/ui/textarea.d.ts +2 -2
- package/dist/src/components/ui/textarea.d.ts.map +1 -1
- package/dist/src/components/ui/textarea.js +1 -2
- package/dist/src/components/ui/toggle-group.d.ts +4 -4
- package/dist/src/components/ui/toggle-group.d.ts.map +1 -1
- package/dist/src/components/ui/toggle-group.js +6 -6
- package/dist/src/components/ui/toggle.d.ts +3 -3
- package/dist/src/components/ui/toggle.d.ts.map +1 -1
- package/dist/src/components/ui/toggle.js +8 -9
- package/dist/src/components/ui/tooltip.d.ts +6 -3
- package/dist/src/components/ui/tooltip.d.ts.map +1 -1
- package/dist/src/components/ui/tooltip.js +20 -5
- package/dist/src/config.js +2 -2
- package/dist/src/database/admins.js +10 -10
- package/dist/src/database/cron.d.ts +171 -0
- package/dist/src/database/cron.d.ts.map +1 -0
- package/dist/src/database/cron.js +22 -0
- package/dist/src/database/languages.js +7 -7
- package/dist/src/database/logs.js +9 -9
- package/dist/src/database/moderators.js +5 -5
- package/dist/src/database/roles.js +1 -1
- package/dist/src/database/sessions.js +6 -6
- package/dist/src/database/users.d.ts +2 -2
- package/dist/src/database/users.js +14 -14
- package/dist/src/drizzle.config.d.ts +2 -2
- package/dist/src/drizzle.config.d.ts.map +1 -1
- package/dist/src/drizzle.config.js +19 -12
- package/dist/src/emails/default-template.d.ts +3 -3
- package/dist/src/emails/default-template.d.ts.map +1 -1
- package/dist/src/emails/default-template.js +39 -38
- package/dist/src/emails/reset-password.d.ts +1 -1
- package/dist/src/emails/reset-password.d.ts.map +1 -1
- package/dist/src/emails/reset-password.js +51 -51
- package/dist/src/emails/ui/button.d.ts +2 -2
- package/dist/src/emails/ui/button.js +13 -13
- package/dist/src/emails/ui/card.d.ts +1 -1
- package/dist/src/emails/ui/card.js +6 -6
- package/dist/src/hooks/use-before-unload.js +3 -3
- package/dist/src/hooks/use-captcha.d.ts +2 -2
- package/dist/src/hooks/use-captcha.d.ts.map +1 -1
- package/dist/src/hooks/use-captcha.js +29 -37
- package/dist/src/hooks/use-mobile.d.ts.map +1 -1
- package/dist/src/hooks/use-mobile.js +3 -4
- package/dist/src/lib/api/get-middleware-api.js +4 -4
- package/dist/src/lib/api/get-next-cron-run-date.d.ts +2 -0
- package/dist/src/lib/api/get-next-cron-run-date.d.ts.map +1 -0
- package/dist/src/lib/api/get-next-cron-run-date.js +14 -0
- package/dist/src/lib/api/get-next-cron-run-date.test.d.ts +2 -0
- package/dist/src/lib/api/get-next-cron-run-date.test.d.ts.map +1 -0
- package/dist/src/lib/api/get-next-cron-run-date.test.js +55 -0
- package/dist/src/lib/api/get-session-admin-api.js +5 -5
- package/dist/src/lib/api/get-session-api.js +4 -4
- package/dist/src/lib/api/should-cron-job-run.d.ts +2 -0
- package/dist/src/lib/api/should-cron-job-run.d.ts.map +1 -0
- package/dist/src/lib/api/should-cron-job-run.js +16 -0
- package/dist/src/lib/api/should-cron-job-run.test.d.ts +2 -0
- package/dist/src/lib/api/should-cron-job-run.test.d.ts.map +1 -0
- package/dist/src/lib/api/should-cron-job-run.test.js +213 -0
- package/dist/src/lib/colors.js +28 -19
- package/dist/src/lib/colors.test.js +60 -60
- package/dist/src/lib/config.d.ts +1 -0
- package/dist/src/lib/config.d.ts.map +1 -1
- package/dist/src/lib/config.js +8 -6
- package/dist/src/lib/ctrl-or-command-character.d.ts +2 -0
- package/dist/src/lib/ctrl-or-command-character.d.ts.map +1 -0
- package/dist/src/lib/ctrl-or-command-character.js +9 -0
- package/dist/src/lib/fetcher/cookie-from-string-to-object.d.ts.map +1 -1
- package/dist/src/lib/fetcher/cookie-from-string-to-object.js +1 -1
- package/dist/src/lib/fetcher/cookie-from-string-to-object.test.js +27 -27
- package/dist/src/lib/fetcher/core.d.ts +5 -5
- package/dist/src/lib/fetcher/core.d.ts.map +1 -1
- package/dist/src/lib/fetcher/core.js +11 -10
- package/dist/src/lib/fetcher/helpers-server.d.ts +1 -1
- package/dist/src/lib/fetcher/helpers-server.js +1 -1
- package/dist/src/lib/fetcher/helpers.test.js +17 -17
- package/dist/src/lib/fetcher/types.d.ts +26 -26
- package/dist/src/lib/fetcher/types.d.ts.map +1 -1
- package/dist/src/lib/fetcher-client.d.ts +4 -4
- package/dist/src/lib/fetcher-client.d.ts.map +1 -1
- package/dist/src/lib/fetcher-client.js +3 -3
- package/dist/src/lib/fetcher.d.ts +5 -5
- package/dist/src/lib/fetcher.d.ts.map +1 -1
- package/dist/src/lib/fetcher.js +4 -4
- package/dist/src/lib/helpers/auto-form.d.ts +3 -3
- package/dist/src/lib/helpers/auto-form.d.ts.map +1 -1
- package/dist/src/lib/helpers/auto-form.js +16 -15
- package/dist/src/lib/helpers/auto-form.test.js +129 -129
- package/dist/src/lib/navigation.d.ts +3 -3
- package/dist/src/lib/navigation.d.ts.map +1 -1
- package/dist/src/lib/plugin.d.ts +3 -3
- package/dist/src/lib/special-characters.js +1 -1
- package/dist/src/lib/special-characters.test.js +36 -36
- package/dist/src/lib/utils.d.ts +1 -1
- package/dist/src/tests/setup.d.ts +1 -1
- package/dist/src/views/admin/layouts/admin-layout.d.ts +1 -1
- package/dist/src/views/admin/layouts/admin-layout.d.ts.map +1 -1
- package/dist/src/views/admin/layouts/admin-layout.js +5 -9
- package/dist/src/views/admin/layouts/sidebar/nav/item.d.ts.map +1 -1
- package/dist/src/views/admin/layouts/sidebar/nav/item.js +8 -12
- package/dist/src/views/admin/layouts/sidebar/nav/nav.d.ts +1 -1
- package/dist/src/views/admin/layouts/sidebar/nav/nav.d.ts.map +1 -1
- package/dist/src/views/admin/layouts/sidebar/nav/nav.js +23 -12
- package/dist/src/views/admin/layouts/sidebar/sidebar.d.ts +1 -1
- package/dist/src/views/admin/layouts/sidebar/sidebar.d.ts.map +1 -1
- package/dist/src/views/admin/layouts/sidebar/sidebar.js +1 -2
- package/dist/src/views/admin/layouts/sidebar/sign-out.js +1 -1
- package/dist/src/views/admin/layouts/user-bar/client.js +5 -5
- package/dist/src/views/admin/layouts/user-bar/user-bar.d.ts +1 -1
- package/dist/src/views/admin/layouts/user-bar/user-bar.d.ts.map +1 -1
- package/dist/src/views/admin/layouts/user-bar/user-bar.js +1 -1
- package/dist/src/views/admin/sign-in/sign-in-admin-view.js +1 -1
- package/dist/src/views/admin/views/core/advanced/cron/cron-table-view.d.ts +5 -0
- package/dist/src/views/admin/views/core/advanced/cron/cron-table-view.d.ts.map +1 -0
- package/dist/src/views/admin/views/core/advanced/cron/cron-table-view.js +97 -0
- package/dist/src/views/admin/views/core/advanced/cron/run-action/mutation-api.d.ts +4 -0
- package/dist/src/views/admin/views/core/advanced/cron/run-action/mutation-api.d.ts.map +1 -0
- package/dist/src/views/admin/views/core/advanced/cron/run-action/mutation-api.js +23 -0
- package/dist/src/views/admin/views/core/advanced/cron/run-action/run-action.d.ts +4 -0
- package/dist/src/views/admin/views/core/advanced/cron/run-action/run-action.d.ts.map +1 -0
- package/dist/src/views/admin/views/core/advanced/cron/run-action/run-action.js +37 -0
- package/dist/src/views/admin/views/core/dashboard/dashboard-admin-view.js +3 -3
- package/dist/src/views/admin/views/core/debug/actions/clear-cache/clear-cache.js +10 -10
- package/dist/src/views/admin/views/core/debug/actions/clear-cache/mutation-api.js +2 -2
- package/dist/src/views/admin/views/core/debug/system-logs/actions/more/content.d.ts +1 -1
- package/dist/src/views/admin/views/core/debug/system-logs/actions/more/content.d.ts.map +1 -1
- package/dist/src/views/admin/views/core/debug/system-logs/actions/more/content.js +15 -15
- package/dist/src/views/admin/views/core/debug/system-logs/actions/more/more.d.ts +1 -1
- package/dist/src/views/admin/views/core/debug/system-logs/actions/more/more.d.ts.map +1 -1
- package/dist/src/views/admin/views/core/debug/system-logs/actions/more/more.js +16 -25
- package/dist/src/views/admin/views/core/debug/system-logs/badges/badge-status.d.ts.map +1 -1
- package/dist/src/views/admin/views/core/debug/system-logs/badges/badge-status.js +7 -1
- package/dist/src/views/admin/views/core/debug/system-logs/badges/badge-type-log.d.ts +1 -1
- package/dist/src/views/admin/views/core/debug/system-logs/badges/badge-type-log.js +3 -3
- package/dist/src/views/admin/views/core/debug/system-logs/system-logs-view.js +25 -25
- package/dist/src/views/admin/views/core/test.d.ts.map +1 -1
- package/dist/src/views/admin/views/core/test.js +134 -124
- package/dist/src/views/admin/views/core/users/users-admin-view.d.ts.map +1 -1
- package/dist/src/views/admin/views/core/users/users-admin-view.js +13 -14
- package/dist/src/views/auth/password-reset/change-password-form/form.js +9 -9
- package/dist/src/views/auth/password-reset/change-password-form/mutation-api.d.ts +2 -2
- package/dist/src/views/auth/password-reset/change-password-form/mutation-api.js +5 -5
- package/dist/src/views/auth/password-reset/change-password-form/use-form.d.ts +2 -2
- package/dist/src/views/auth/password-reset/change-password-form/use-form.d.ts.map +1 -1
- package/dist/src/views/auth/password-reset/change-password-form/use-form.js +7 -7
- package/dist/src/views/auth/password-reset/form/form.d.ts +2 -2
- package/dist/src/views/auth/password-reset/form/form.d.ts.map +1 -1
- package/dist/src/views/auth/password-reset/form/form.js +15 -15
- package/dist/src/views/auth/password-reset/form/mutation-api.js +5 -5
- package/dist/src/views/auth/password-reset/form/use-form.d.ts +2 -2
- package/dist/src/views/auth/password-reset/form/use-form.js +7 -7
- package/dist/src/views/auth/password-reset/password-reset-view.js +4 -4
- package/dist/src/views/auth/sign-in/form/form.js +9 -9
- package/dist/src/views/auth/sign-in/form/mutation-api.d.ts +2 -2
- package/dist/src/views/auth/sign-in/form/mutation-api.d.ts.map +1 -1
- package/dist/src/views/auth/sign-in/form/mutation-api.js +10 -10
- package/dist/src/views/auth/sign-in/form/use-form.d.ts +2 -2
- package/dist/src/views/auth/sign-in/form/use-form.js +11 -11
- package/dist/src/views/auth/sign-in/sign-in-view.js +5 -5
- package/dist/src/views/auth/sign-up/components/password-input.d.ts +3 -3
- package/dist/src/views/auth/sign-up/components/password-input.d.ts.map +1 -1
- package/dist/src/views/auth/sign-up/components/password-input.js +9 -10
- package/dist/src/views/auth/sign-up/email-confirmation-view.js +4 -4
- package/dist/src/views/auth/sign-up/form/form.d.ts +2 -2
- package/dist/src/views/auth/sign-up/form/form.d.ts.map +1 -1
- package/dist/src/views/auth/sign-up/form/form.js +18 -18
- package/dist/src/views/auth/sign-up/form/mutation-api.d.ts +2 -2
- package/dist/src/views/auth/sign-up/form/mutation-api.d.ts.map +1 -1
- package/dist/src/views/auth/sign-up/form/mutation-api.js +6 -6
- package/dist/src/views/auth/sign-up/form/use-form.d.ts +2 -2
- package/dist/src/views/auth/sign-up/form/use-form.js +21 -21
- package/dist/src/views/auth/sign-up/sign-up-view.js +5 -5
- package/dist/src/views/auth/sign-up/wrapper.d.ts +1 -1
- package/dist/src/views/auth/sign-up/wrapper.d.ts.map +1 -1
- package/dist/src/views/auth/sign-up/wrapper.js +5 -8
- package/dist/src/views/auth/sso/buttons/client.js +4 -4
- package/dist/src/views/auth/sso/buttons/mutation-api.js +5 -5
- package/dist/src/views/auth/sso/buttons/sso-buttons.js +2 -2
- package/dist/src/views/auth/sso/callback/callback-sso-view.js +6 -6
- package/dist/src/views/auth/sso/callback/client/client.d.ts +1 -1
- package/dist/src/views/auth/sso/callback/client/client.d.ts.map +1 -1
- package/dist/src/views/auth/sso/callback/client/client.js +9 -9
- package/dist/src/views/auth/sso/callback/client/mutation-api.js +7 -7
- package/dist/src/views/error/back-button.js +1 -1
- package/dist/src/views/error/error-view.js +4 -4
- package/dist/src/views/error/global-error-view.d.ts +3 -3
- package/dist/src/views/error/global-error-view.d.ts.map +1 -1
- package/dist/src/views/error/global-error-view.js +36 -44
- package/dist/src/views/layouts/provider.d.ts +4 -4
- package/dist/src/views/layouts/provider.d.ts.map +1 -1
- package/dist/src/views/layouts/provider.js +3 -3
- package/dist/src/views/layouts/root-layout.d.ts +3 -3
- package/dist/src/views/layouts/root-layout.d.ts.map +1 -1
- package/dist/src/views/layouts/root-layout.js +1 -2
- package/dist/src/views/layouts/theme/header/header.d.ts +2 -2
- package/dist/src/views/layouts/theme/header/header.d.ts.map +1 -1
- package/dist/src/views/layouts/theme/header/header.js +2 -2
- package/dist/src/views/layouts/theme/header/user/auth/client.d.ts +1 -1
- package/dist/src/views/layouts/theme/header/user/auth/client.d.ts.map +1 -1
- package/dist/src/views/layouts/theme/header/user/auth/client.js +4 -4
- package/dist/src/views/layouts/theme/header/user/auth/log-out-mutation-api.js +8 -8
- package/dist/src/views/layouts/theme/header/user/user.js +4 -4
- package/dist/src/views/layouts/theme/layout.d.ts +2 -2
- package/dist/src/views/layouts/theme/layout.js +1 -1
- package/dist/src/vitnode.config.d.ts +18 -16
- package/dist/src/vitnode.config.d.ts.map +1 -1
- package/dist/src/vitnode.config.js +3 -2
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +32 -29
- package/src/app/login/page.tsx +5 -5
- package/src/app/login/reset-password/page.tsx +5 -5
- package/src/app/login/sso/[providerId]/page.tsx +1 -1
- package/src/app/register/page.tsx +5 -5
- package/src/app_admin/core/advanced/cron/page.tsx +41 -0
- package/src/app_admin/core/debug/page.tsx +14 -14
- package/src/app_admin/core/page.tsx +1 -1
- package/src/app_admin/core/test/page.tsx +1 -1
- package/src/app_admin/core/users/page.tsx +12 -13
- package/src/locales/en.json +43 -0
- package/src/tiptap.css +20 -0
- package/dist/src/components/switchers/langs/language-swietcher.d.ts.map +0 -1
|
@@ -22,7 +22,7 @@ export declare const adminModule: import("../../../api/lib/module").BuildModuleR
|
|
|
22
22
|
responses: {
|
|
23
23
|
200: {
|
|
24
24
|
content: {
|
|
25
|
-
|
|
25
|
+
"application/json": {
|
|
26
26
|
schema: import("zod").ZodObject<{
|
|
27
27
|
user: import("zod").ZodObject<{
|
|
28
28
|
id: import("zod").ZodNumber;
|
|
@@ -49,7 +49,169 @@ export declare const adminModule: import("../../../api/lib/module").BuildModuleR
|
|
|
49
49
|
} & {
|
|
50
50
|
getRoutingPath: () => "/session";
|
|
51
51
|
};
|
|
52
|
-
}], (import("../../../api/lib/module").BuildModuleReturn<"@vitnode/core", "
|
|
52
|
+
}], (import("../../../api/lib/module").BuildModuleReturn<"@vitnode/core", "advanced", [], import("../../../api/lib/module").BuildModuleReturn<"@vitnode/core", "cron", [{
|
|
53
|
+
handler: (c: import("hono").Context<import("../../middlewares/global.middleware").EnvVitNode, "/", {
|
|
54
|
+
in: {
|
|
55
|
+
query: {
|
|
56
|
+
cursor?: string | undefined;
|
|
57
|
+
first?: string | undefined;
|
|
58
|
+
last?: string | undefined;
|
|
59
|
+
order?: "asc" | "desc" | undefined;
|
|
60
|
+
orderBy?: "createdAt" | "lastRun" | "nextRun" | undefined;
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
out: {
|
|
64
|
+
query: {
|
|
65
|
+
cursor?: string | undefined;
|
|
66
|
+
first?: string | undefined;
|
|
67
|
+
last?: string | undefined;
|
|
68
|
+
order?: "asc" | "desc" | undefined;
|
|
69
|
+
orderBy?: "createdAt" | "lastRun" | "nextRun" | undefined;
|
|
70
|
+
};
|
|
71
|
+
};
|
|
72
|
+
}>) => Promise<Response & import("hono").TypedResponse<{
|
|
73
|
+
edges: {
|
|
74
|
+
id: number;
|
|
75
|
+
name: string;
|
|
76
|
+
description: string | null;
|
|
77
|
+
lastRun: string | null;
|
|
78
|
+
createdAt: string;
|
|
79
|
+
pluginId: string;
|
|
80
|
+
module: string;
|
|
81
|
+
nextRun: string | null;
|
|
82
|
+
schedule: string;
|
|
83
|
+
}[];
|
|
84
|
+
pageInfo: {
|
|
85
|
+
count: number;
|
|
86
|
+
endCursor: null | number;
|
|
87
|
+
hasNextPage: boolean;
|
|
88
|
+
hasPreviousPage: boolean;
|
|
89
|
+
startCursor: null | number;
|
|
90
|
+
totalCount: number;
|
|
91
|
+
};
|
|
92
|
+
}, 200, "json">>;
|
|
93
|
+
pluginId: "@vitnode/core";
|
|
94
|
+
route: {
|
|
95
|
+
method: "get";
|
|
96
|
+
description: string;
|
|
97
|
+
path: "/";
|
|
98
|
+
request: {
|
|
99
|
+
query: import("zod").ZodObject<{
|
|
100
|
+
cursor: import("zod").ZodOptional<import("zod").ZodString>;
|
|
101
|
+
first: import("zod").ZodOptional<import("zod").ZodString>;
|
|
102
|
+
last: import("zod").ZodOptional<import("zod").ZodString>;
|
|
103
|
+
order: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
104
|
+
asc: "asc";
|
|
105
|
+
desc: "desc";
|
|
106
|
+
}>>;
|
|
107
|
+
orderBy: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
108
|
+
createdAt: "createdAt";
|
|
109
|
+
lastRun: "lastRun";
|
|
110
|
+
nextRun: "nextRun";
|
|
111
|
+
}>>;
|
|
112
|
+
}, import("zod/v4/core").$strip>;
|
|
113
|
+
};
|
|
114
|
+
responses: {
|
|
115
|
+
200: {
|
|
116
|
+
content: {
|
|
117
|
+
"application/json": {
|
|
118
|
+
schema: import("zod").ZodObject<{
|
|
119
|
+
edges: import("zod").ZodArray<import("zod").ZodObject<{
|
|
120
|
+
id: import("zod").ZodNumber;
|
|
121
|
+
createdAt: import("zod").ZodDate;
|
|
122
|
+
name: import("zod").ZodString;
|
|
123
|
+
description: import("zod").ZodNullable<import("zod").ZodString>;
|
|
124
|
+
pluginId: import("zod").ZodString;
|
|
125
|
+
module: import("zod").ZodString;
|
|
126
|
+
lastRun: import("zod").ZodNullable<import("zod").ZodDate>;
|
|
127
|
+
nextRun: import("zod").ZodNullable<import("zod").ZodDate>;
|
|
128
|
+
schedule: import("zod").ZodString;
|
|
129
|
+
}, import("zod/v4/core").$strip>>;
|
|
130
|
+
pageInfo: import("zod").ZodObject<{
|
|
131
|
+
totalCount: import("zod").ZodNumber;
|
|
132
|
+
count: import("zod").ZodNumber;
|
|
133
|
+
hasNextPage: import("zod").ZodBoolean;
|
|
134
|
+
hasPreviousPage: import("zod").ZodBoolean;
|
|
135
|
+
startCursor: import("zod").ZodNullable<import("zod").ZodNumber>;
|
|
136
|
+
endCursor: import("zod").ZodNullable<import("zod").ZodNumber>;
|
|
137
|
+
}, import("zod/v4/core").$strip>;
|
|
138
|
+
}, import("zod/v4/core").$strip>;
|
|
139
|
+
};
|
|
140
|
+
};
|
|
141
|
+
description: string;
|
|
142
|
+
};
|
|
143
|
+
};
|
|
144
|
+
} & {
|
|
145
|
+
getRoutingPath: () => "/";
|
|
146
|
+
};
|
|
147
|
+
}, {
|
|
148
|
+
handler: (c: import("hono").Context<import("../../middlewares/global.middleware").EnvVitNode, "/:id", {
|
|
149
|
+
in: {
|
|
150
|
+
param: {
|
|
151
|
+
id: string;
|
|
152
|
+
};
|
|
153
|
+
};
|
|
154
|
+
out: {
|
|
155
|
+
param: {
|
|
156
|
+
id: string;
|
|
157
|
+
};
|
|
158
|
+
};
|
|
159
|
+
}>) => Promise<(Response & import("hono").TypedResponse<{
|
|
160
|
+
error: string;
|
|
161
|
+
}, 404, "json">) | (Response & import("hono").TypedResponse<{
|
|
162
|
+
message: string;
|
|
163
|
+
}, 201, "json">) | (Response & import("hono").TypedResponse<{
|
|
164
|
+
error: string;
|
|
165
|
+
}, 500, "json">)>;
|
|
166
|
+
pluginId: "@vitnode/core";
|
|
167
|
+
route: {
|
|
168
|
+
method: "post";
|
|
169
|
+
description: string;
|
|
170
|
+
path: "/{id}";
|
|
171
|
+
request: {
|
|
172
|
+
params: import("zod").ZodObject<{
|
|
173
|
+
id: import("zod").ZodString;
|
|
174
|
+
}, import("zod/v4/core").$strip>;
|
|
175
|
+
};
|
|
176
|
+
responses: {
|
|
177
|
+
201: {
|
|
178
|
+
content: {
|
|
179
|
+
"application/json": {
|
|
180
|
+
schema: import("zod").ZodObject<{
|
|
181
|
+
message: import("zod").ZodOptional<import("zod").ZodString>;
|
|
182
|
+
error: import("zod").ZodOptional<import("zod").ZodString>;
|
|
183
|
+
}, import("zod/v4/core").$strip>;
|
|
184
|
+
};
|
|
185
|
+
};
|
|
186
|
+
description: string;
|
|
187
|
+
};
|
|
188
|
+
404: {
|
|
189
|
+
content: {
|
|
190
|
+
"application/json": {
|
|
191
|
+
schema: import("zod").ZodObject<{
|
|
192
|
+
message: import("zod").ZodOptional<import("zod").ZodString>;
|
|
193
|
+
error: import("zod").ZodOptional<import("zod").ZodString>;
|
|
194
|
+
}, import("zod/v4/core").$strip>;
|
|
195
|
+
};
|
|
196
|
+
};
|
|
197
|
+
description: string;
|
|
198
|
+
};
|
|
199
|
+
500: {
|
|
200
|
+
content: {
|
|
201
|
+
"application/json": {
|
|
202
|
+
schema: import("zod").ZodObject<{
|
|
203
|
+
message: import("zod").ZodOptional<import("zod").ZodString>;
|
|
204
|
+
error: import("zod").ZodOptional<import("zod").ZodString>;
|
|
205
|
+
}, import("zod/v4/core").$strip>;
|
|
206
|
+
};
|
|
207
|
+
};
|
|
208
|
+
description: string;
|
|
209
|
+
};
|
|
210
|
+
};
|
|
211
|
+
} & {
|
|
212
|
+
getRoutingPath: () => "/:id";
|
|
213
|
+
};
|
|
214
|
+
}], import("../../../api/lib/module").BaseBuildModuleReturn<"@vitnode/core", string, import("../../lib/route").Route<"@vitnode/core", import("@hono/zod-openapi").RouteConfig, import("@hono/zod-openapi").RouteHandler<import("@hono/zod-openapi").RouteConfig>>[]>[]>[]> | import("../../../api/lib/module").BuildModuleReturn<"@vitnode/core", "debug", [{
|
|
53
215
|
handler: (c: import("hono").Context<import("../../middlewares/global.middleware").EnvVitNode, "/logs", {
|
|
54
216
|
in: {
|
|
55
217
|
query: {
|
|
@@ -120,7 +282,7 @@ export declare const adminModule: import("../../../api/lib/module").BuildModuleR
|
|
|
120
282
|
responses: {
|
|
121
283
|
200: {
|
|
122
284
|
content: {
|
|
123
|
-
|
|
285
|
+
"application/json": {
|
|
124
286
|
schema: import("zod").ZodObject<{
|
|
125
287
|
edges: import("zod").ZodArray<import("zod").ZodObject<{
|
|
126
288
|
id: import("zod").ZodNumber;
|
|
@@ -226,7 +388,7 @@ export declare const adminModule: import("../../../api/lib/module").BuildModuleR
|
|
|
226
388
|
responses: {
|
|
227
389
|
200: {
|
|
228
390
|
content: {
|
|
229
|
-
|
|
391
|
+
"application/json": {
|
|
230
392
|
schema: import("zod").ZodObject<{
|
|
231
393
|
edges: import("zod").ZodArray<import("zod").ZodObject<{
|
|
232
394
|
id: import("zod").ZodNumber;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"admin.module.d.ts","sourceRoot":"","sources":["../../../../../src/api/modules/admin/admin.module.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,WAAW
|
|
1
|
+
{"version":3,"file":"admin.module.d.ts","sourceRoot":"","sources":["../../../../../src/api/modules/admin/admin.module.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oQAMtB,CAAC"}
|
|
@@ -1,16 +1,19 @@
|
|
|
1
1
|
import { buildModule } from "../../lib/module.js";
|
|
2
2
|
import { CONFIG_PLUGIN } from "../../../config.js";
|
|
3
|
+
import { advancedAdminModule } from "./advanced/advanced.admin.module.js";
|
|
3
4
|
import { debugAdminModule } from "./debug/debug.admin.module.js";
|
|
4
5
|
import { sessionAdminRoute } from "./routes/session.route.js";
|
|
5
6
|
import { usersAdminModule } from "./users/users.admin.module.js";
|
|
6
7
|
export const adminModule = buildModule({
|
|
7
|
-
|
|
8
|
-
name:
|
|
8
|
+
pluginId: CONFIG_PLUGIN.pluginId,
|
|
9
|
+
name: "admin",
|
|
9
10
|
routes: [
|
|
10
11
|
sessionAdminRoute
|
|
11
12
|
],
|
|
12
13
|
modules: [
|
|
13
14
|
usersAdminModule,
|
|
14
|
-
debugAdminModule
|
|
15
|
-
|
|
15
|
+
debugAdminModule,
|
|
16
|
+
advancedAdminModule
|
|
17
|
+
],
|
|
18
|
+
cronJobs: []
|
|
16
19
|
});
|
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
export declare const advancedAdminModule: import("../../../../api/lib/module").BuildModuleReturn<"@vitnode/core", "advanced", [], import("../../../../api/lib/module").BuildModuleReturn<"@vitnode/core", "cron", [{
|
|
2
|
+
handler: (c: import("hono").Context<import("../../../middlewares/global.middleware").EnvVitNode, "/", {
|
|
3
|
+
in: {
|
|
4
|
+
query: {
|
|
5
|
+
cursor?: string | undefined;
|
|
6
|
+
first?: string | undefined;
|
|
7
|
+
last?: string | undefined;
|
|
8
|
+
order?: "asc" | "desc" | undefined;
|
|
9
|
+
orderBy?: "createdAt" | "lastRun" | "nextRun" | undefined;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
out: {
|
|
13
|
+
query: {
|
|
14
|
+
cursor?: string | undefined;
|
|
15
|
+
first?: string | undefined;
|
|
16
|
+
last?: string | undefined;
|
|
17
|
+
order?: "asc" | "desc" | undefined;
|
|
18
|
+
orderBy?: "createdAt" | "lastRun" | "nextRun" | undefined;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
}>) => Promise<Response & import("hono").TypedResponse<{
|
|
22
|
+
edges: {
|
|
23
|
+
id: number;
|
|
24
|
+
name: string;
|
|
25
|
+
description: string | null;
|
|
26
|
+
lastRun: string | null;
|
|
27
|
+
createdAt: string;
|
|
28
|
+
pluginId: string;
|
|
29
|
+
module: string;
|
|
30
|
+
nextRun: string | null;
|
|
31
|
+
schedule: string;
|
|
32
|
+
}[];
|
|
33
|
+
pageInfo: {
|
|
34
|
+
count: number;
|
|
35
|
+
endCursor: null | number;
|
|
36
|
+
hasNextPage: boolean;
|
|
37
|
+
hasPreviousPage: boolean;
|
|
38
|
+
startCursor: null | number;
|
|
39
|
+
totalCount: number;
|
|
40
|
+
};
|
|
41
|
+
}, 200, "json">>;
|
|
42
|
+
pluginId: "@vitnode/core";
|
|
43
|
+
route: {
|
|
44
|
+
method: "get";
|
|
45
|
+
description: string;
|
|
46
|
+
path: "/";
|
|
47
|
+
request: {
|
|
48
|
+
query: import("zod").ZodObject<{
|
|
49
|
+
cursor: import("zod").ZodOptional<import("zod").ZodString>;
|
|
50
|
+
first: import("zod").ZodOptional<import("zod").ZodString>;
|
|
51
|
+
last: import("zod").ZodOptional<import("zod").ZodString>;
|
|
52
|
+
order: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
53
|
+
asc: "asc";
|
|
54
|
+
desc: "desc";
|
|
55
|
+
}>>;
|
|
56
|
+
orderBy: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
57
|
+
createdAt: "createdAt";
|
|
58
|
+
lastRun: "lastRun";
|
|
59
|
+
nextRun: "nextRun";
|
|
60
|
+
}>>;
|
|
61
|
+
}, import("zod/v4/core").$strip>;
|
|
62
|
+
};
|
|
63
|
+
responses: {
|
|
64
|
+
200: {
|
|
65
|
+
content: {
|
|
66
|
+
"application/json": {
|
|
67
|
+
schema: import("zod").ZodObject<{
|
|
68
|
+
edges: import("zod").ZodArray<import("zod").ZodObject<{
|
|
69
|
+
id: import("zod").ZodNumber;
|
|
70
|
+
createdAt: import("zod").ZodDate;
|
|
71
|
+
name: import("zod").ZodString;
|
|
72
|
+
description: import("zod").ZodNullable<import("zod").ZodString>;
|
|
73
|
+
pluginId: import("zod").ZodString;
|
|
74
|
+
module: import("zod").ZodString;
|
|
75
|
+
lastRun: import("zod").ZodNullable<import("zod").ZodDate>;
|
|
76
|
+
nextRun: import("zod").ZodNullable<import("zod").ZodDate>;
|
|
77
|
+
schedule: import("zod").ZodString;
|
|
78
|
+
}, import("zod/v4/core").$strip>>;
|
|
79
|
+
pageInfo: import("zod").ZodObject<{
|
|
80
|
+
totalCount: import("zod").ZodNumber;
|
|
81
|
+
count: import("zod").ZodNumber;
|
|
82
|
+
hasNextPage: import("zod").ZodBoolean;
|
|
83
|
+
hasPreviousPage: import("zod").ZodBoolean;
|
|
84
|
+
startCursor: import("zod").ZodNullable<import("zod").ZodNumber>;
|
|
85
|
+
endCursor: import("zod").ZodNullable<import("zod").ZodNumber>;
|
|
86
|
+
}, import("zod/v4/core").$strip>;
|
|
87
|
+
}, import("zod/v4/core").$strip>;
|
|
88
|
+
};
|
|
89
|
+
};
|
|
90
|
+
description: string;
|
|
91
|
+
};
|
|
92
|
+
};
|
|
93
|
+
} & {
|
|
94
|
+
getRoutingPath: () => "/";
|
|
95
|
+
};
|
|
96
|
+
}, {
|
|
97
|
+
handler: (c: import("hono").Context<import("../../../middlewares/global.middleware").EnvVitNode, "/:id", {
|
|
98
|
+
in: {
|
|
99
|
+
param: {
|
|
100
|
+
id: string;
|
|
101
|
+
};
|
|
102
|
+
};
|
|
103
|
+
out: {
|
|
104
|
+
param: {
|
|
105
|
+
id: string;
|
|
106
|
+
};
|
|
107
|
+
};
|
|
108
|
+
}>) => Promise<(Response & import("hono").TypedResponse<{
|
|
109
|
+
error: string;
|
|
110
|
+
}, 404, "json">) | (Response & import("hono").TypedResponse<{
|
|
111
|
+
message: string;
|
|
112
|
+
}, 201, "json">) | (Response & import("hono").TypedResponse<{
|
|
113
|
+
error: string;
|
|
114
|
+
}, 500, "json">)>;
|
|
115
|
+
pluginId: "@vitnode/core";
|
|
116
|
+
route: {
|
|
117
|
+
method: "post";
|
|
118
|
+
description: string;
|
|
119
|
+
path: "/{id}";
|
|
120
|
+
request: {
|
|
121
|
+
params: import("zod").ZodObject<{
|
|
122
|
+
id: import("zod").ZodString;
|
|
123
|
+
}, import("zod/v4/core").$strip>;
|
|
124
|
+
};
|
|
125
|
+
responses: {
|
|
126
|
+
201: {
|
|
127
|
+
content: {
|
|
128
|
+
"application/json": {
|
|
129
|
+
schema: import("zod").ZodObject<{
|
|
130
|
+
message: import("zod").ZodOptional<import("zod").ZodString>;
|
|
131
|
+
error: import("zod").ZodOptional<import("zod").ZodString>;
|
|
132
|
+
}, import("zod/v4/core").$strip>;
|
|
133
|
+
};
|
|
134
|
+
};
|
|
135
|
+
description: string;
|
|
136
|
+
};
|
|
137
|
+
404: {
|
|
138
|
+
content: {
|
|
139
|
+
"application/json": {
|
|
140
|
+
schema: import("zod").ZodObject<{
|
|
141
|
+
message: import("zod").ZodOptional<import("zod").ZodString>;
|
|
142
|
+
error: import("zod").ZodOptional<import("zod").ZodString>;
|
|
143
|
+
}, import("zod/v4/core").$strip>;
|
|
144
|
+
};
|
|
145
|
+
};
|
|
146
|
+
description: string;
|
|
147
|
+
};
|
|
148
|
+
500: {
|
|
149
|
+
content: {
|
|
150
|
+
"application/json": {
|
|
151
|
+
schema: import("zod").ZodObject<{
|
|
152
|
+
message: import("zod").ZodOptional<import("zod").ZodString>;
|
|
153
|
+
error: import("zod").ZodOptional<import("zod").ZodString>;
|
|
154
|
+
}, import("zod/v4/core").$strip>;
|
|
155
|
+
};
|
|
156
|
+
};
|
|
157
|
+
description: string;
|
|
158
|
+
};
|
|
159
|
+
};
|
|
160
|
+
} & {
|
|
161
|
+
getRoutingPath: () => "/:id";
|
|
162
|
+
};
|
|
163
|
+
}], import("../../../../api/lib/module").BaseBuildModuleReturn<"@vitnode/core", string, import("../../../lib/route").Route<"@vitnode/core", import("@hono/zod-openapi").RouteConfig, import("@hono/zod-openapi").RouteHandler<import("@hono/zod-openapi").RouteConfig>>[]>[]>[]>;
|
|
164
|
+
//# sourceMappingURL=advanced.admin.module.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"advanced.admin.module.d.ts","sourceRoot":"","sources":["../../../../../../src/api/modules/admin/advanced/advanced.admin.module.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sQAK9B,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { buildModule } from "../../../lib/module.js";
|
|
2
|
+
import { CONFIG_PLUGIN } from "../../../../config.js";
|
|
3
|
+
import { cronAdminModule } from "./cron/cron.admin.module.js";
|
|
4
|
+
export const advancedAdminModule = buildModule({
|
|
5
|
+
pluginId: CONFIG_PLUGIN.pluginId,
|
|
6
|
+
name: "advanced",
|
|
7
|
+
routes: [],
|
|
8
|
+
modules: [
|
|
9
|
+
cronAdminModule
|
|
10
|
+
]
|
|
11
|
+
});
|
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
export declare const cronAdminModule: import("../../../../../api/lib/module").BuildModuleReturn<"@vitnode/core", "cron", [{
|
|
2
|
+
handler: (c: import("hono").Context<import("../../../../middlewares/global.middleware").EnvVitNode, "/", {
|
|
3
|
+
in: {
|
|
4
|
+
query: {
|
|
5
|
+
cursor?: string | undefined;
|
|
6
|
+
first?: string | undefined;
|
|
7
|
+
last?: string | undefined;
|
|
8
|
+
order?: "asc" | "desc" | undefined;
|
|
9
|
+
orderBy?: "createdAt" | "lastRun" | "nextRun" | undefined;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
out: {
|
|
13
|
+
query: {
|
|
14
|
+
cursor?: string | undefined;
|
|
15
|
+
first?: string | undefined;
|
|
16
|
+
last?: string | undefined;
|
|
17
|
+
order?: "asc" | "desc" | undefined;
|
|
18
|
+
orderBy?: "createdAt" | "lastRun" | "nextRun" | undefined;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
}>) => Promise<Response & import("hono").TypedResponse<{
|
|
22
|
+
edges: {
|
|
23
|
+
id: number;
|
|
24
|
+
name: string;
|
|
25
|
+
description: string | null;
|
|
26
|
+
lastRun: string | null;
|
|
27
|
+
createdAt: string;
|
|
28
|
+
pluginId: string;
|
|
29
|
+
module: string;
|
|
30
|
+
nextRun: string | null;
|
|
31
|
+
schedule: string;
|
|
32
|
+
}[];
|
|
33
|
+
pageInfo: {
|
|
34
|
+
count: number;
|
|
35
|
+
endCursor: null | number;
|
|
36
|
+
hasNextPage: boolean;
|
|
37
|
+
hasPreviousPage: boolean;
|
|
38
|
+
startCursor: null | number;
|
|
39
|
+
totalCount: number;
|
|
40
|
+
};
|
|
41
|
+
}, 200, "json">>;
|
|
42
|
+
pluginId: "@vitnode/core";
|
|
43
|
+
route: {
|
|
44
|
+
method: "get";
|
|
45
|
+
description: string;
|
|
46
|
+
path: "/";
|
|
47
|
+
request: {
|
|
48
|
+
query: import("zod").ZodObject<{
|
|
49
|
+
cursor: import("zod").ZodOptional<import("zod").ZodString>;
|
|
50
|
+
first: import("zod").ZodOptional<import("zod").ZodString>;
|
|
51
|
+
last: import("zod").ZodOptional<import("zod").ZodString>;
|
|
52
|
+
order: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
53
|
+
asc: "asc";
|
|
54
|
+
desc: "desc";
|
|
55
|
+
}>>;
|
|
56
|
+
orderBy: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
57
|
+
createdAt: "createdAt";
|
|
58
|
+
lastRun: "lastRun";
|
|
59
|
+
nextRun: "nextRun";
|
|
60
|
+
}>>;
|
|
61
|
+
}, import("zod/v4/core").$strip>;
|
|
62
|
+
};
|
|
63
|
+
responses: {
|
|
64
|
+
200: {
|
|
65
|
+
content: {
|
|
66
|
+
"application/json": {
|
|
67
|
+
schema: import("zod").ZodObject<{
|
|
68
|
+
edges: import("zod").ZodArray<import("zod").ZodObject<{
|
|
69
|
+
id: import("zod").ZodNumber;
|
|
70
|
+
createdAt: import("zod").ZodDate;
|
|
71
|
+
name: import("zod").ZodString;
|
|
72
|
+
description: import("zod").ZodNullable<import("zod").ZodString>;
|
|
73
|
+
pluginId: import("zod").ZodString;
|
|
74
|
+
module: import("zod").ZodString;
|
|
75
|
+
lastRun: import("zod").ZodNullable<import("zod").ZodDate>;
|
|
76
|
+
nextRun: import("zod").ZodNullable<import("zod").ZodDate>;
|
|
77
|
+
schedule: import("zod").ZodString;
|
|
78
|
+
}, import("zod/v4/core").$strip>>;
|
|
79
|
+
pageInfo: import("zod").ZodObject<{
|
|
80
|
+
totalCount: import("zod").ZodNumber;
|
|
81
|
+
count: import("zod").ZodNumber;
|
|
82
|
+
hasNextPage: import("zod").ZodBoolean;
|
|
83
|
+
hasPreviousPage: import("zod").ZodBoolean;
|
|
84
|
+
startCursor: import("zod").ZodNullable<import("zod").ZodNumber>;
|
|
85
|
+
endCursor: import("zod").ZodNullable<import("zod").ZodNumber>;
|
|
86
|
+
}, import("zod/v4/core").$strip>;
|
|
87
|
+
}, import("zod/v4/core").$strip>;
|
|
88
|
+
};
|
|
89
|
+
};
|
|
90
|
+
description: string;
|
|
91
|
+
};
|
|
92
|
+
};
|
|
93
|
+
} & {
|
|
94
|
+
getRoutingPath: () => "/";
|
|
95
|
+
};
|
|
96
|
+
}, {
|
|
97
|
+
handler: (c: import("hono").Context<import("../../../../middlewares/global.middleware").EnvVitNode, "/:id", {
|
|
98
|
+
in: {
|
|
99
|
+
param: {
|
|
100
|
+
id: string;
|
|
101
|
+
};
|
|
102
|
+
};
|
|
103
|
+
out: {
|
|
104
|
+
param: {
|
|
105
|
+
id: string;
|
|
106
|
+
};
|
|
107
|
+
};
|
|
108
|
+
}>) => Promise<(Response & import("hono").TypedResponse<{
|
|
109
|
+
error: string;
|
|
110
|
+
}, 404, "json">) | (Response & import("hono").TypedResponse<{
|
|
111
|
+
message: string;
|
|
112
|
+
}, 201, "json">) | (Response & import("hono").TypedResponse<{
|
|
113
|
+
error: string;
|
|
114
|
+
}, 500, "json">)>;
|
|
115
|
+
pluginId: "@vitnode/core";
|
|
116
|
+
route: {
|
|
117
|
+
method: "post";
|
|
118
|
+
description: string;
|
|
119
|
+
path: "/{id}";
|
|
120
|
+
request: {
|
|
121
|
+
params: import("zod").ZodObject<{
|
|
122
|
+
id: import("zod").ZodString;
|
|
123
|
+
}, import("zod/v4/core").$strip>;
|
|
124
|
+
};
|
|
125
|
+
responses: {
|
|
126
|
+
201: {
|
|
127
|
+
content: {
|
|
128
|
+
"application/json": {
|
|
129
|
+
schema: import("zod").ZodObject<{
|
|
130
|
+
message: import("zod").ZodOptional<import("zod").ZodString>;
|
|
131
|
+
error: import("zod").ZodOptional<import("zod").ZodString>;
|
|
132
|
+
}, import("zod/v4/core").$strip>;
|
|
133
|
+
};
|
|
134
|
+
};
|
|
135
|
+
description: string;
|
|
136
|
+
};
|
|
137
|
+
404: {
|
|
138
|
+
content: {
|
|
139
|
+
"application/json": {
|
|
140
|
+
schema: import("zod").ZodObject<{
|
|
141
|
+
message: import("zod").ZodOptional<import("zod").ZodString>;
|
|
142
|
+
error: import("zod").ZodOptional<import("zod").ZodString>;
|
|
143
|
+
}, import("zod/v4/core").$strip>;
|
|
144
|
+
};
|
|
145
|
+
};
|
|
146
|
+
description: string;
|
|
147
|
+
};
|
|
148
|
+
500: {
|
|
149
|
+
content: {
|
|
150
|
+
"application/json": {
|
|
151
|
+
schema: import("zod").ZodObject<{
|
|
152
|
+
message: import("zod").ZodOptional<import("zod").ZodString>;
|
|
153
|
+
error: import("zod").ZodOptional<import("zod").ZodString>;
|
|
154
|
+
}, import("zod/v4/core").$strip>;
|
|
155
|
+
};
|
|
156
|
+
};
|
|
157
|
+
description: string;
|
|
158
|
+
};
|
|
159
|
+
};
|
|
160
|
+
} & {
|
|
161
|
+
getRoutingPath: () => "/:id";
|
|
162
|
+
};
|
|
163
|
+
}], import("../../../../../api/lib/module").BaseBuildModuleReturn<"@vitnode/core", string, import("../../../../lib/route").Route<"@vitnode/core", import("@hono/zod-openapi").RouteConfig, import("@hono/zod-openapi").RouteHandler<import("@hono/zod-openapi").RouteConfig>>[]>[]>;
|
|
164
|
+
//# sourceMappingURL=cron.admin.module.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cron.admin.module.d.ts","sourceRoot":"","sources":["../../../../../../../src/api/modules/admin/advanced/cron/cron.admin.module.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sQAI1B,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { buildModule } from "../../../../lib/module.js";
|
|
2
|
+
import { CONFIG_PLUGIN } from "../../../../../config.js";
|
|
3
|
+
import { getCronsRoute } from "./routes/get.route.js";
|
|
4
|
+
import { runCronRoute } from "./routes/run.route.js";
|
|
5
|
+
export const cronAdminModule = buildModule({
|
|
6
|
+
pluginId: CONFIG_PLUGIN.pluginId,
|
|
7
|
+
name: "cron",
|
|
8
|
+
routes: [
|
|
9
|
+
getCronsRoute,
|
|
10
|
+
runCronRoute
|
|
11
|
+
]
|
|
12
|
+
});
|