@vitnode/core 1.2.0-canary.71 → 1.2.0-canary.73
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/scripts/plugin.d.ts.map +1 -1
- package/dist/scripts/plugin.js +22 -4
- package/dist/scripts/prepare-plugins-files.d.ts.map +1 -1
- package/dist/scripts/prepare-plugins-files.js +22 -4
- package/dist/src/api/lib/module.d.ts +4 -1
- package/dist/src/api/lib/module.d.ts.map +1 -1
- package/dist/src/api/lib/module.js +1 -1
- package/dist/src/api/lib/plugin.d.ts +2 -0
- package/dist/src/api/lib/plugin.d.ts.map +1 -1
- package/dist/src/api/lib/plugin.js +1 -1
- package/dist/src/api/lib/websocket.d.ts +26 -0
- package/dist/src/api/lib/websocket.d.ts.map +1 -0
- package/dist/src/api/lib/websocket.js +1 -0
- package/dist/src/api/lib/with-pagination.d.ts +3 -1
- package/dist/src/api/lib/with-pagination.d.ts.map +1 -1
- package/dist/src/api/lib/with-pagination.js +1 -1
- package/dist/src/api/middlewares/global.middleware.d.ts +4 -0
- package/dist/src/api/middlewares/global.middleware.d.ts.map +1 -1
- package/dist/src/api/middlewares/global.middleware.js +1 -1
- package/dist/src/api/middlewares/rate-limiter.middleware.d.ts.map +1 -1
- package/dist/src/api/middlewares/rate-limiter.middleware.js +1 -1
- package/dist/src/api/models/user/get-user-by-name-code.d.ts +18 -0
- package/dist/src/api/models/user/get-user-by-name-code.d.ts.map +1 -0
- package/dist/src/api/models/user/get-user-by-name-code.js +1 -0
- package/dist/src/api/models/user.d.ts +16 -0
- package/dist/src/api/models/user.d.ts.map +1 -1
- package/dist/src/api/models/user.js +1 -1
- package/dist/src/api/modules/admin/admin.module.d.ts +272 -0
- package/dist/src/api/modules/admin/admin.module.d.ts.map +1 -1
- package/dist/src/api/modules/admin/admin.module.js +1 -1
- package/dist/src/api/modules/admin/roles/roles.admin.module.d.ts +109 -0
- package/dist/src/api/modules/admin/roles/roles.admin.module.d.ts.map +1 -0
- package/dist/src/api/modules/admin/roles/roles.admin.module.js +1 -0
- package/dist/src/api/modules/admin/roles/routes/list.route.d.ts +63 -0
- package/dist/src/api/modules/admin/roles/routes/list.route.d.ts.map +1 -0
- package/dist/src/api/modules/admin/roles/routes/list.route.js +1 -0
- package/dist/src/api/modules/admin/roles/routes/show.route.d.ts +50 -0
- package/dist/src/api/modules/admin/roles/routes/show.route.d.ts.map +1 -0
- package/dist/src/api/modules/admin/roles/routes/show.route.js +1 -0
- package/dist/src/api/modules/admin/routes/notifications.route.d.ts +54 -0
- package/dist/src/api/modules/admin/routes/notifications.route.d.ts.map +1 -0
- package/dist/src/api/modules/admin/routes/notifications.route.js +1 -0
- package/dist/src/api/modules/admin/users/routes/create.route.d.ts +48 -0
- package/dist/src/api/modules/admin/users/routes/create.route.d.ts.map +1 -0
- package/dist/src/api/modules/admin/users/routes/create.route.js +1 -0
- package/dist/src/api/modules/admin/users/routes/list.route.d.ts +2 -0
- package/dist/src/api/modules/admin/users/routes/list.route.d.ts.map +1 -1
- package/dist/src/api/modules/admin/users/routes/list.route.js +1 -1
- package/dist/src/api/modules/admin/users/routes/show.route.d.ts +49 -0
- package/dist/src/api/modules/admin/users/routes/show.route.d.ts.map +1 -0
- package/dist/src/api/modules/admin/users/routes/show.route.js +1 -0
- package/dist/src/api/modules/admin/users/routes/verify-email.route.d.ts +40 -0
- package/dist/src/api/modules/admin/users/routes/verify-email.route.d.ts.map +1 -0
- package/dist/src/api/modules/admin/users/routes/verify-email.route.js +1 -0
- package/dist/src/api/modules/admin/users/users.admin.module.d.ts +125 -0
- package/dist/src/api/modules/admin/users/users.admin.module.d.ts.map +1 -1
- package/dist/src/api/modules/admin/users/users.admin.module.js +1 -1
- package/dist/src/components/avatar.d.ts +1 -1
- package/dist/src/components/avatar.d.ts.map +1 -1
- package/dist/src/components/confirm-action/confirm-action-alert-dialog.d.ts +1 -1
- package/dist/src/components/confirm-action/confirm-action-alert-dialog.d.ts.map +1 -1
- package/dist/src/components/confirm-action/content.d.ts +2 -1
- package/dist/src/components/confirm-action/content.d.ts.map +1 -1
- package/dist/src/components/date-format.d.ts +1 -1
- package/dist/src/components/date-format.d.ts.map +1 -1
- package/dist/src/components/date-format.js +1 -1
- package/dist/src/components/form/auto-form.d.ts +6 -1
- package/dist/src/components/form/auto-form.d.ts.map +1 -1
- package/dist/src/components/form/auto-form.js +1 -1
- package/dist/src/components/form/common/desc.d.ts +1 -1
- package/dist/src/components/form/common/desc.d.ts.map +1 -1
- package/dist/src/components/form/common/label.d.ts +4 -3
- package/dist/src/components/form/common/label.d.ts.map +1 -1
- package/dist/src/components/form/common/label.js +1 -1
- package/dist/src/components/form/fields/array.d.ts +19 -0
- package/dist/src/components/form/fields/array.d.ts.map +1 -0
- package/dist/src/components/form/fields/array.js +1 -0
- package/dist/src/components/form/fields/checkbox.d.ts +1 -1
- package/dist/src/components/form/fields/checkbox.d.ts.map +1 -1
- package/dist/src/components/form/fields/checkbox.js +1 -1
- package/dist/src/components/form/fields/combobox.d.ts +22 -4
- package/dist/src/components/form/fields/combobox.d.ts.map +1 -1
- package/dist/src/components/form/fields/combobox.js +1 -1
- package/dist/src/components/form/fields/combobox.test.d.ts +2 -0
- package/dist/src/components/form/fields/combobox.test.d.ts.map +1 -0
- package/dist/src/components/form/fields/combobox.test.js +1 -0
- package/dist/src/components/form/fields/input.d.ts +1 -1
- package/dist/src/components/form/fields/input.d.ts.map +1 -1
- package/dist/src/components/form/fields/input.js +1 -1
- package/dist/src/components/form/fields/radio-group.d.ts +11 -6
- package/dist/src/components/form/fields/radio-group.d.ts.map +1 -1
- package/dist/src/components/form/fields/radio-group.js +1 -1
- package/dist/src/components/form/fields/select.d.ts +2 -2
- package/dist/src/components/form/fields/select.d.ts.map +1 -1
- package/dist/src/components/form/fields/select.js +1 -1
- package/dist/src/components/form/fields/switch.d.ts +1 -1
- package/dist/src/components/form/fields/switch.d.ts.map +1 -1
- package/dist/src/components/form/fields/switch.js +1 -1
- package/dist/src/components/form/fields/textarea.d.ts +2 -2
- package/dist/src/components/form/fields/textarea.d.ts.map +1 -1
- package/dist/src/components/form/fields/textarea.js +1 -1
- package/dist/src/components/i18n-provider.d.ts +1 -1
- package/dist/src/components/i18n-provider.d.ts.map +1 -1
- package/dist/src/components/logo-vitnode.d.ts +1 -1
- package/dist/src/components/logo-vitnode.d.ts.map +1 -1
- package/dist/src/components/role-format.d.ts +11 -0
- package/dist/src/components/role-format.d.ts.map +1 -0
- package/dist/src/components/role-format.js +1 -0
- package/dist/src/components/switchers/langs/language-switcher.d.ts +2 -1
- package/dist/src/components/switchers/langs/language-switcher.d.ts.map +1 -1
- package/dist/src/components/switchers/themes/theme-switcher.d.ts +1 -1
- package/dist/src/components/switchers/themes/theme-switcher.d.ts.map +1 -1
- 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 +1 -1
- package/dist/src/components/table/data-table.d.ts +14 -4
- package/dist/src/components/table/data-table.d.ts.map +1 -1
- package/dist/src/components/table/filters.d.ts +16 -0
- package/dist/src/components/table/filters.d.ts.map +1 -0
- package/dist/src/components/table/filters.js +1 -0
- package/dist/src/components/table/order-table-head.d.ts +1 -1
- package/dist/src/components/table/order-table-head.d.ts.map +1 -1
- package/dist/src/components/table/order-table-head.js +1 -1
- package/dist/src/components/table/pagination.d.ts +2 -1
- package/dist/src/components/table/pagination.d.ts.map +1 -1
- package/dist/src/components/table/search.d.ts +5 -0
- package/dist/src/components/table/search.d.ts.map +1 -0
- package/dist/src/components/table/search.js +1 -0
- package/dist/src/components/tiptap/toolbar/actions/alignment-action.d.ts +1 -1
- package/dist/src/components/tiptap/toolbar/actions/alignment-action.d.ts.map +1 -1
- package/dist/src/components/tiptap/toolbar/actions/alignment-action.js +1 -1
- package/dist/src/components/tiptap/toolbar/actions/bold-action.d.ts +1 -1
- package/dist/src/components/tiptap/toolbar/actions/bold-action.d.ts.map +1 -1
- package/dist/src/components/tiptap/toolbar/actions/bold-action.js +1 -1
- package/dist/src/components/tiptap/toolbar/actions/headings-action.d.ts +1 -1
- package/dist/src/components/tiptap/toolbar/actions/headings-action.d.ts.map +1 -1
- package/dist/src/components/tiptap/toolbar/actions/headings-action.js +1 -1
- package/dist/src/components/tiptap/toolbar/actions/italic-action.d.ts +1 -1
- package/dist/src/components/tiptap/toolbar/actions/italic-action.d.ts.map +1 -1
- package/dist/src/components/tiptap/toolbar/actions/italic-action.js +1 -1
- package/dist/src/components/tiptap/toolbar/actions/list-action.d.ts +1 -1
- package/dist/src/components/tiptap/toolbar/actions/list-action.d.ts.map +1 -1
- package/dist/src/components/tiptap/toolbar/actions/list-action.js +1 -1
- package/dist/src/components/tiptap/toolbar/actions/text-format-more/text-format-more.d.ts +1 -1
- package/dist/src/components/tiptap/toolbar/actions/text-format-more/text-format-more.d.ts.map +1 -1
- package/dist/src/components/tiptap/toolbar/actions/text-format-more/text-format-more.js +1 -1
- package/dist/src/components/tiptap/toolbar/actions/underline-action.d.ts +1 -1
- package/dist/src/components/tiptap/toolbar/actions/underline-action.d.ts.map +1 -1
- package/dist/src/components/tiptap/toolbar/actions/underline-action.js +1 -1
- package/dist/src/components/tiptap/toolbar/actions/undo-redo-actions.d.ts +1 -1
- package/dist/src/components/tiptap/toolbar/actions/undo-redo-actions.d.ts.map +1 -1
- package/dist/src/components/tiptap/toolbar/actions/undo-redo-actions.js +1 -1
- package/dist/src/components/tiptap/toolbar/actions/utils/tooltip-shortcut.d.ts +1 -1
- package/dist/src/components/tiptap/toolbar/actions/utils/tooltip-shortcut.d.ts.map +1 -1
- package/dist/src/components/tiptap/toolbar/tiptap-toolbar.d.ts +1 -1
- package/dist/src/components/tiptap/toolbar/tiptap-toolbar.d.ts.map +1 -1
- package/dist/src/components/tiptap/toolbar/tiptap-toolbar.js +1 -1
- package/dist/src/components/ui/accordion.d.ts +5 -5
- package/dist/src/components/ui/accordion.d.ts.map +1 -1
- package/dist/src/components/ui/accordion.js +1 -1
- package/dist/src/components/ui/alert-dialog.d.ts +15 -13
- package/dist/src/components/ui/alert-dialog.d.ts.map +1 -1
- package/dist/src/components/ui/alert-dialog.js +1 -1
- package/dist/src/components/ui/alert.d.ts +6 -5
- package/dist/src/components/ui/alert.d.ts.map +1 -1
- package/dist/src/components/ui/alert.js +1 -1
- package/dist/src/components/ui/aspect-ratio.d.ts +4 -0
- package/dist/src/components/ui/aspect-ratio.d.ts.map +1 -0
- package/dist/src/components/ui/aspect-ratio.js +1 -0
- package/dist/src/components/ui/avatar.d.ts +12 -0
- package/dist/src/components/ui/avatar.d.ts.map +1 -0
- package/dist/src/components/ui/avatar.js +1 -0
- 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 +1 -1
- package/dist/src/components/ui/breadcrumb.d.ts +12 -0
- package/dist/src/components/ui/breadcrumb.d.ts.map +1 -0
- package/dist/src/components/ui/breadcrumb.js +1 -0
- 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-group.d.ts +12 -0
- package/dist/src/components/ui/button-group.d.ts.map +1 -0
- package/dist/src/components/ui/button-group.js +1 -0
- package/dist/src/components/ui/button.d.ts +9 -9
- package/dist/src/components/ui/button.d.ts.map +1 -1
- package/dist/src/components/ui/button.js +1 -1
- package/dist/src/components/ui/card.d.ts +10 -8
- package/dist/src/components/ui/card.d.ts.map +1 -1
- package/dist/src/components/ui/card.js +1 -1
- package/dist/src/components/ui/carousel.d.ts +29 -0
- package/dist/src/components/ui/carousel.d.ts.map +1 -0
- package/dist/src/components/ui/carousel.js +1 -0
- package/dist/src/components/ui/chart.d.ts +45 -0
- package/dist/src/components/ui/chart.d.ts.map +1 -0
- package/dist/src/components/ui/chart.js +5 -0
- 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 +1 -1
- package/dist/src/components/ui/collapsible.d.ts +3 -3
- package/dist/src/components/ui/collapsible.d.ts.map +1 -1
- package/dist/src/components/ui/combobox.d.ts +25 -0
- package/dist/src/components/ui/combobox.d.ts.map +1 -0
- package/dist/src/components/ui/combobox.js +1 -0
- package/dist/src/components/ui/command.d.ts +10 -10
- package/dist/src/components/ui/command.d.ts.map +1 -1
- package/dist/src/components/ui/command.js +1 -1
- package/dist/src/components/ui/context-menu.d.ts +24 -18
- package/dist/src/components/ui/context-menu.d.ts.map +1 -1
- package/dist/src/components/ui/context-menu.js +1 -1
- package/dist/src/components/ui/dialog.d.ts +12 -10
- package/dist/src/components/ui/dialog.d.ts.map +1 -1
- package/dist/src/components/ui/dialog.js +1 -1
- package/dist/src/components/ui/direction.d.ts +8 -0
- package/dist/src/components/ui/direction.d.ts.map +1 -0
- package/dist/src/components/ui/direction.js +1 -0
- package/dist/src/components/ui/drawer.d.ts +11 -11
- package/dist/src/components/ui/drawer.d.ts.map +1 -1
- package/dist/src/components/ui/drawer.js +1 -1
- package/dist/src/components/ui/dropdown-menu.d.ts +20 -16
- package/dist/src/components/ui/dropdown-menu.d.ts.map +1 -1
- package/dist/src/components/ui/dropdown-menu.js +1 -1
- package/dist/src/components/ui/editor-content.d.ts +1 -1
- package/dist/src/components/ui/editor-content.d.ts.map +1 -1
- package/dist/src/components/ui/editor.d.ts +1 -1
- package/dist/src/components/ui/editor.d.ts.map +1 -1
- package/dist/src/components/ui/editor.js +1 -1
- package/dist/src/components/ui/empty.d.ts +12 -0
- package/dist/src/components/ui/empty.d.ts.map +1 -0
- package/dist/src/components/ui/empty.js +1 -0
- package/dist/src/components/ui/field.d.ts +25 -0
- package/dist/src/components/ui/field.d.ts.map +1 -0
- package/dist/src/components/ui/field.js +1 -0
- package/dist/src/components/ui/form.d.ts +7 -14
- package/dist/src/components/ui/form.d.ts.map +1 -1
- package/dist/src/components/ui/form.js +1 -1
- package/dist/src/components/ui/header-content.d.ts +1 -1
- package/dist/src/components/ui/header-content.d.ts.map +1 -1
- package/dist/src/components/ui/hover-card.d.ts +4 -4
- package/dist/src/components/ui/hover-card.d.ts.map +1 -1
- package/dist/src/components/ui/hover-card.js +1 -1
- package/dist/src/components/ui/input-group.d.ts +17 -0
- package/dist/src/components/ui/input-group.d.ts.map +1 -0
- package/dist/src/components/ui/input-group.js +1 -0
- 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 +1 -1
- 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 -1
- package/dist/src/components/ui/item.d.ts +24 -0
- package/dist/src/components/ui/item.d.ts.map +1 -0
- package/dist/src/components/ui/item.js +1 -0
- package/dist/src/components/ui/kbd.d.ts +4 -0
- package/dist/src/components/ui/kbd.d.ts.map +1 -0
- package/dist/src/components/ui/kbd.js +1 -0
- 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 +1 -1
- package/dist/src/components/ui/loader.d.ts +1 -1
- package/dist/src/components/ui/loader.d.ts.map +1 -1
- package/dist/src/components/ui/menubar.d.ts +21 -17
- package/dist/src/components/ui/menubar.d.ts.map +1 -1
- package/dist/src/components/ui/menubar.js +1 -1
- package/dist/src/components/ui/native-select.d.ts +9 -0
- package/dist/src/components/ui/native-select.d.ts.map +1 -0
- package/dist/src/components/ui/native-select.js +1 -0
- package/dist/src/components/ui/navigation-menu.d.ts +9 -9
- package/dist/src/components/ui/navigation-menu.d.ts.map +1 -1
- package/dist/src/components/ui/navigation-menu.js +1 -1
- package/dist/src/components/ui/pagination.d.ts +18 -0
- package/dist/src/components/ui/pagination.d.ts.map +1 -0
- package/dist/src/components/ui/pagination.js +1 -0
- package/dist/src/components/ui/popover.d.ts +9 -6
- package/dist/src/components/ui/popover.d.ts.map +1 -1
- package/dist/src/components/ui/popover.js +1 -1
- 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 +1 -1
- package/dist/src/components/ui/radio-group.d.ts +3 -3
- package/dist/src/components/ui/radio-group.d.ts.map +1 -1
- package/dist/src/components/ui/radio-group.js +1 -1
- package/dist/src/components/ui/resizable.d.ts +8 -0
- package/dist/src/components/ui/resizable.d.ts.map +1 -0
- package/dist/src/components/ui/resizable.js +1 -0
- package/dist/src/components/ui/scroll-area.d.ts +3 -3
- package/dist/src/components/ui/scroll-area.d.ts.map +1 -1
- package/dist/src/components/ui/scroll-area.js +1 -1
- package/dist/src/components/ui/select.d.ts +11 -11
- package/dist/src/components/ui/select.d.ts.map +1 -1
- package/dist/src/components/ui/select.js +1 -1
- 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 +1 -1
- package/dist/src/components/ui/sheet.d.ts +11 -10
- package/dist/src/components/ui/sheet.d.ts.map +1 -1
- package/dist/src/components/ui/sheet.js +1 -1
- package/dist/src/components/ui/sidebar.d.ts +25 -25
- package/dist/src/components/ui/sidebar.d.ts.map +1 -1
- package/dist/src/components/ui/sidebar.js +1 -1
- package/dist/src/components/ui/skeleton.d.ts +1 -1
- package/dist/src/components/ui/skeleton.d.ts.map +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 +1 -1
- package/dist/src/components/ui/sonner.d.ts +2 -2
- package/dist/src/components/ui/sonner.d.ts.map +1 -1
- package/dist/src/components/ui/sonner.js +1 -1
- package/dist/src/components/ui/spinner.d.ts +3 -0
- package/dist/src/components/ui/spinner.d.ts.map +1 -0
- package/dist/src/components/ui/spinner.js +1 -0
- package/dist/src/components/ui/switch.d.ts +4 -2
- package/dist/src/components/ui/switch.d.ts.map +1 -1
- package/dist/src/components/ui/switch.js +1 -1
- 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 +1 -1
- package/dist/src/components/ui/tabs.d.ts +10 -6
- package/dist/src/components/ui/tabs.d.ts.map +1 -1
- package/dist/src/components/ui/tabs.js +1 -1
- 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 -1
- package/dist/src/components/ui/toggle-group.d.ts +9 -5
- package/dist/src/components/ui/toggle-group.d.ts.map +1 -1
- package/dist/src/components/ui/toggle-group.js +1 -1
- package/dist/src/components/ui/toggle.d.ts +2 -3
- package/dist/src/components/ui/toggle.d.ts.map +1 -1
- package/dist/src/components/ui/toggle.js +1 -1
- package/dist/src/components/ui/tooltip.d.ts +9 -8
- package/dist/src/components/ui/tooltip.d.ts.map +1 -1
- package/dist/src/components/ui/tooltip.js +1 -1
- package/dist/src/components/user-format.d.ts +14 -0
- package/dist/src/components/user-format.d.ts.map +1 -0
- package/dist/src/components/user-format.js +1 -0
- package/dist/src/emails/default-template.d.ts +1 -1
- package/dist/src/emails/default-template.d.ts.map +1 -1
- package/dist/src/emails/default-template.js +1 -1
- 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/ui/button.d.ts +2 -2
- package/dist/src/emails/ui/button.d.ts.map +1 -1
- package/dist/src/emails/ui/card.d.ts +6 -6
- package/dist/src/emails/ui/card.d.ts.map +1 -1
- package/dist/src/hooks/use-captcha.d.ts.map +1 -1
- package/dist/src/hooks/use-captcha.js +1 -1
- package/dist/src/hooks/use-mobile.js +1 -1
- package/dist/src/lib/colors.d.ts.map +1 -1
- package/dist/src/lib/fetcher/core.d.ts.map +1 -1
- package/dist/src/lib/fetcher/core.js +1 -1
- package/dist/src/lib/fetcher/types.d.ts.map +1 -1
- package/dist/src/lib/helpers/auto-form.d.ts +2 -0
- package/dist/src/lib/helpers/auto-form.d.ts.map +1 -1
- package/dist/src/lib/helpers/auto-form.js +1 -1
- package/dist/src/lib/helpers/auto-form.test.js +1 -1
- package/dist/src/lib/navigation.d.ts +26 -25
- package/dist/src/lib/navigation.d.ts.map +1 -1
- package/dist/src/lib/plugin.d.ts.map +1 -1
- package/dist/src/locales/en.json +66 -2
- package/dist/src/{app_admin → routes/admin}/core/advanced/cron/page.d.ts +2 -2
- package/dist/src/routes/admin/core/advanced/cron/page.d.ts.map +1 -0
- package/dist/src/routes/admin/core/advanced/cron/page.js +1 -0
- package/dist/src/{app_admin → routes/admin}/core/debug/page.d.ts +1 -1
- package/dist/src/routes/admin/core/debug/page.d.ts.map +1 -0
- package/dist/src/routes/admin/core/debug/page.js +1 -0
- package/dist/src/routes/admin/core/page.d.ts +2 -0
- package/dist/src/routes/admin/core/page.d.ts.map +1 -0
- package/dist/src/routes/admin/core/page.js +1 -0
- package/dist/src/routes/admin/core/test/page.d.ts +2 -0
- package/dist/src/routes/admin/core/test/page.d.ts.map +1 -0
- package/dist/src/routes/admin/core/test/page.js +1 -0
- package/dist/src/routes/admin/core/users/[nameCode]/page.d.ts +13 -0
- package/dist/src/routes/admin/core/users/[nameCode]/page.d.ts.map +1 -0
- package/dist/src/routes/admin/core/users/[nameCode]/page.js +1 -0
- package/dist/src/{app_admin → routes/admin}/core/users/page.d.ts +1 -1
- package/dist/src/routes/admin/core/users/page.d.ts.map +1 -0
- package/dist/src/routes/admin/core/users/page.js +1 -0
- package/dist/src/routes/admin/core/users/roles/page.d.ts +9 -0
- package/dist/src/routes/admin/core/users/roles/page.d.ts.map +1 -0
- package/dist/src/routes/admin/core/users/roles/page.js +1 -0
- package/dist/src/routes/blank/test/page.d.ts +2 -0
- package/dist/src/routes/blank/test/page.d.ts.map +1 -0
- package/dist/src/routes/blank/test/page.js +1 -0
- package/dist/src/routes/breadcrumb/admin/[...all]/page.d.ts +6 -0
- package/dist/src/routes/breadcrumb/admin/[...all]/page.d.ts.map +1 -0
- package/dist/src/routes/breadcrumb/admin/[...all]/page.js +1 -0
- package/dist/src/routes/breadcrumb/admin/core/users/[nameCode]/page.d.ts +6 -0
- package/dist/src/routes/breadcrumb/admin/core/users/[nameCode]/page.d.ts.map +1 -0
- package/dist/src/routes/breadcrumb/admin/core/users/[nameCode]/page.js +1 -0
- package/dist/src/routes/breadcrumb/admin/default.d.ts +2 -0
- package/dist/src/routes/breadcrumb/admin/default.d.ts.map +1 -0
- package/dist/src/routes/breadcrumb/admin/default.js +1 -0
- package/dist/src/routes/breadcrumb/main/[...rest]/page.d.ts +6 -0
- package/dist/src/routes/breadcrumb/main/[...rest]/page.d.ts.map +1 -0
- package/dist/src/routes/breadcrumb/main/[...rest]/page.js +1 -0
- package/dist/src/routes/breadcrumb/main/default.d.ts +2 -0
- package/dist/src/routes/breadcrumb/main/default.d.ts.map +1 -0
- package/dist/src/routes/breadcrumb/main/default.js +1 -0
- package/dist/src/routes/breadcrumb/main/login/page.d.ts +2 -0
- package/dist/src/routes/breadcrumb/main/login/page.d.ts.map +1 -0
- package/dist/src/routes/breadcrumb/main/login/page.js +1 -0
- package/dist/src/routes/breadcrumb/main/login/reset-password/page.d.ts +2 -0
- package/dist/src/routes/breadcrumb/main/login/reset-password/page.d.ts.map +1 -0
- package/dist/src/routes/breadcrumb/main/login/reset-password/page.js +1 -0
- package/dist/src/routes/breadcrumb/main/page.d.ts +2 -0
- package/dist/src/routes/breadcrumb/main/page.d.ts.map +1 -0
- package/dist/src/routes/breadcrumb/main/page.js +1 -0
- package/dist/src/routes/breadcrumb/main/register/page.d.ts +2 -0
- package/dist/src/routes/breadcrumb/main/register/page.d.ts.map +1 -0
- package/dist/src/routes/breadcrumb/main/register/page.js +1 -0
- package/dist/src/{app → routes/main}/login/page.d.ts +1 -1
- package/dist/src/routes/main/login/page.d.ts.map +1 -0
- package/dist/src/routes/main/login/page.js +1 -0
- package/dist/src/{app → routes/main}/login/reset-password/page.d.ts +2 -2
- package/dist/src/routes/main/login/reset-password/page.d.ts.map +1 -0
- package/dist/src/routes/main/login/reset-password/page.js +1 -0
- package/dist/src/{app → routes/main}/login/sso/[providerId]/page.d.ts +1 -1
- package/dist/src/routes/main/login/sso/[providerId]/page.d.ts.map +1 -0
- package/dist/src/routes/main/login/sso/[providerId]/page.js +1 -0
- package/dist/src/{app → routes/main}/register/page.d.ts +1 -1
- package/dist/src/routes/main/register/page.d.ts.map +1 -0
- package/dist/src/routes/main/register/page.js +1 -0
- package/dist/src/views/admin/layouts/admin-layout.d.ts +3 -2
- package/dist/src/views/admin/layouts/admin-layout.d.ts.map +1 -1
- package/dist/src/views/admin/layouts/admin-layout.js +1 -1
- package/dist/src/views/admin/layouts/breadcrumb/breadcrumb-admin.d.ts +11 -0
- package/dist/src/views/admin/layouts/breadcrumb/breadcrumb-admin.d.ts.map +1 -0
- package/dist/src/views/admin/layouts/breadcrumb/breadcrumb-admin.js +1 -0
- package/dist/src/views/admin/layouts/breadcrumb/breadcrumb-user-admin.d.ts +6 -0
- package/dist/src/views/admin/layouts/breadcrumb/breadcrumb-user-admin.d.ts.map +1 -0
- package/dist/src/views/admin/layouts/breadcrumb/breadcrumb-user-admin.js +1 -0
- package/dist/src/views/admin/layouts/breadcrumb/resolve-breadcrumb.d.ts +5 -0
- package/dist/src/views/admin/layouts/breadcrumb/resolve-breadcrumb.d.ts.map +1 -0
- package/dist/src/views/admin/layouts/breadcrumb/resolve-breadcrumb.js +1 -0
- package/dist/src/views/admin/layouts/sidebar/nav/get-admin-nav.d.ts +11 -0
- package/dist/src/views/admin/layouts/sidebar/nav/get-admin-nav.d.ts.map +1 -0
- package/dist/src/views/admin/layouts/sidebar/nav/get-admin-nav.js +1 -0
- package/dist/src/views/admin/layouts/sidebar/nav/item.d.ts +1 -1
- package/dist/src/views/admin/layouts/sidebar/nav/item.d.ts.map +1 -1
- package/dist/src/views/admin/layouts/sidebar/nav/nav.d.ts +5 -9
- package/dist/src/views/admin/layouts/sidebar/nav/nav.d.ts.map +1 -1
- package/dist/src/views/admin/layouts/sidebar/nav/nav.js +1 -1
- 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 -1
- package/dist/src/views/admin/layouts/sidebar/sign-out.d.ts +1 -1
- package/dist/src/views/admin/layouts/sidebar/sign-out.d.ts.map +1 -1
- package/dist/src/views/admin/layouts/user-bar/client.d.ts +1 -1
- package/dist/src/views/admin/layouts/user-bar/client.d.ts.map +1 -1
- 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/sign-in/sign-in-admin-view.d.ts +1 -1
- package/dist/src/views/admin/sign-in/sign-in-admin-view.d.ts.map +1 -1
- package/dist/src/views/admin/views/core/advanced/cron/cron-table-view.d.ts +1 -1
- package/dist/src/views/admin/views/core/advanced/cron/cron-table-view.d.ts.map +1 -1
- package/dist/src/views/admin/views/core/advanced/cron/cron-table-view.js +1 -1
- package/dist/src/views/admin/views/core/advanced/cron/run-action/run-action.d.ts +1 -1
- package/dist/src/views/admin/views/core/advanced/cron/run-action/run-action.d.ts.map +1 -1
- package/dist/src/views/admin/views/core/dashboard/dashboard-admin-view.d.ts +1 -1
- package/dist/src/views/admin/views/core/dashboard/dashboard-admin-view.d.ts.map +1 -1
- package/dist/src/views/admin/views/core/dashboard/dashboard-admin-view.js +1 -1
- package/dist/src/views/admin/views/core/dashboard/send-notification/mutation-api.d.ts +6 -0
- package/dist/src/views/admin/views/core/dashboard/send-notification/mutation-api.d.ts.map +1 -0
- package/dist/src/views/admin/views/core/dashboard/send-notification/mutation-api.js +1 -0
- package/dist/src/views/admin/views/core/dashboard/send-notification/send-notification.d.ts +5 -0
- package/dist/src/views/admin/views/core/dashboard/send-notification/send-notification.d.ts.map +1 -0
- package/dist/src/views/admin/views/core/dashboard/send-notification/send-notification.js +1 -0
- package/dist/src/views/admin/views/core/debug/actions/clear-cache/clear-cache.d.ts +1 -1
- package/dist/src/views/admin/views/core/debug/actions/clear-cache/clear-cache.d.ts.map +1 -1
- 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/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/badges/badge-status.d.ts +1 -1
- 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-type-log.d.ts +1 -1
- package/dist/src/views/admin/views/core/debug/system-logs/badges/badge-type-log.d.ts.map +1 -1
- package/dist/src/views/admin/views/core/debug/system-logs/system-logs-view.d.ts +1 -1
- package/dist/src/views/admin/views/core/debug/system-logs/system-logs-view.d.ts.map +1 -1
- package/dist/src/views/admin/views/core/debug/system-logs/system-logs-view.js +1 -1
- package/dist/src/views/admin/views/core/test.d.ts +1 -1
- package/dist/src/views/admin/views/core/test.d.ts.map +1 -1
- package/dist/src/views/admin/views/core/test.js +1 -1
- package/dist/src/views/admin/views/core/users/actions/create/content.d.ts +2 -0
- package/dist/src/views/admin/views/core/users/actions/create/content.d.ts.map +1 -0
- package/dist/src/views/admin/views/core/users/actions/create/content.js +1 -0
- package/dist/src/views/admin/views/core/users/actions/create/create.d.ts +3 -0
- package/dist/src/views/admin/views/core/users/actions/create/create.d.ts.map +1 -0
- package/dist/src/views/admin/views/core/users/actions/create/create.js +1 -0
- package/dist/src/views/admin/views/core/users/actions/create/mutation-api.d.ts +14 -0
- package/dist/src/views/admin/views/core/users/actions/create/mutation-api.d.ts.map +1 -0
- package/dist/src/views/admin/views/core/users/actions/create/mutation-api.js +1 -0
- package/dist/src/views/admin/views/core/users/actions/create/use-form.d.ts +15 -0
- package/dist/src/views/admin/views/core/users/actions/create/use-form.d.ts.map +1 -0
- package/dist/src/views/admin/views/core/users/actions/create/use-form.js +1 -0
- package/dist/src/views/admin/views/core/users/actions/verify-email/mutation-api.d.ts +11 -0
- package/dist/src/views/admin/views/core/users/actions/verify-email/mutation-api.d.ts.map +1 -0
- package/dist/src/views/admin/views/core/users/actions/verify-email/mutation-api.js +1 -0
- package/dist/src/views/admin/views/core/users/actions/verify-email/verify-email.d.ts +6 -0
- package/dist/src/views/admin/views/core/users/actions/verify-email/verify-email.d.ts.map +1 -0
- package/dist/src/views/admin/views/core/users/actions/verify-email/verify-email.js +1 -0
- package/dist/src/views/admin/views/core/users/actions.d.ts +5 -0
- package/dist/src/views/admin/views/core/users/actions.d.ts.map +1 -0
- package/dist/src/views/admin/views/core/users/actions.js +1 -0
- package/dist/src/views/admin/views/core/users/roles/roles-admin-view.d.ts +4 -0
- package/dist/src/views/admin/views/core/users/roles/roles-admin-view.d.ts.map +1 -0
- package/dist/src/views/admin/views/core/users/roles/roles-admin-view.js +1 -0
- package/dist/src/views/admin/views/core/users/search-roles.action.d.ts +3 -0
- package/dist/src/views/admin/views/core/users/search-roles.action.d.ts.map +1 -0
- package/dist/src/views/admin/views/core/users/search-roles.action.js +1 -0
- package/dist/src/views/admin/views/core/users/show/show-user-admin-view.d.ts +4 -0
- package/dist/src/views/admin/views/core/users/show/show-user-admin-view.d.ts.map +1 -0
- package/dist/src/views/admin/views/core/users/show/show-user-admin-view.js +1 -0
- package/dist/src/views/admin/views/core/users/users-admin-view.d.ts +1 -1
- 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 +1 -1
- package/dist/src/views/auth/password-reset/change-password-form/form.d.ts +1 -1
- package/dist/src/views/auth/password-reset/change-password-form/form.d.ts.map +1 -1
- package/dist/src/views/auth/password-reset/form/form.d.ts +1 -1
- package/dist/src/views/auth/password-reset/form/form.d.ts.map +1 -1
- package/dist/src/views/auth/password-reset/password-reset-view.d.ts +1 -1
- package/dist/src/views/auth/password-reset/password-reset-view.d.ts.map +1 -1
- package/dist/src/views/auth/password-reset/password-reset-view.js +1 -1
- package/dist/src/views/auth/sign-in/form/form.d.ts +1 -1
- package/dist/src/views/auth/sign-in/form/form.d.ts.map +1 -1
- package/dist/src/views/auth/sign-in/sign-in-view.d.ts +2 -1
- package/dist/src/views/auth/sign-in/sign-in-view.d.ts.map +1 -1
- package/dist/src/views/auth/sign-in/sign-in-view.js +1 -1
- package/dist/src/views/auth/sign-up/components/password-input.d.ts +1 -1
- 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 +1 -1
- package/dist/src/views/auth/sign-up/email-confirmation-view.d.ts +1 -1
- package/dist/src/views/auth/sign-up/email-confirmation-view.d.ts.map +1 -1
- package/dist/src/views/auth/sign-up/form/form.d.ts +1 -1
- package/dist/src/views/auth/sign-up/form/form.d.ts.map +1 -1
- package/dist/src/views/auth/sign-up/sign-up-view.d.ts +2 -1
- package/dist/src/views/auth/sign-up/sign-up-view.d.ts.map +1 -1
- package/dist/src/views/auth/sign-up/sign-up-view.js +1 -1
- 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/sso/buttons/client.d.ts +1 -1
- package/dist/src/views/auth/sso/buttons/client.d.ts.map +1 -1
- package/dist/src/views/auth/sso/buttons/sso-buttons.d.ts +2 -2
- package/dist/src/views/auth/sso/buttons/sso-buttons.d.ts.map +1 -1
- package/dist/src/views/auth/sso/callback/callback-sso-view.d.ts +1 -1
- package/dist/src/views/auth/sso/callback/callback-sso-view.d.ts.map +1 -1
- 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/breadcrumb/breadcrumb-main.d.ts +7 -0
- package/dist/src/views/breadcrumb/breadcrumb-main.d.ts.map +1 -0
- package/dist/src/views/breadcrumb/breadcrumb-main.js +1 -0
- package/dist/src/views/breadcrumb/breadcrumb-render.d.ts +5 -0
- package/dist/src/views/breadcrumb/breadcrumb-render.d.ts.map +1 -0
- package/dist/src/views/breadcrumb/breadcrumb-render.js +1 -0
- package/dist/src/views/breadcrumb/crumb.d.ts +9 -0
- package/dist/src/views/breadcrumb/crumb.d.ts.map +1 -0
- package/dist/src/views/breadcrumb/crumb.js +1 -0
- package/dist/src/views/breadcrumb/resolve-main-breadcrumb.d.ts +3 -0
- package/dist/src/views/breadcrumb/resolve-main-breadcrumb.d.ts.map +1 -0
- package/dist/src/views/breadcrumb/resolve-main-breadcrumb.js +1 -0
- package/dist/src/views/error/back-button.d.ts +1 -1
- package/dist/src/views/error/back-button.d.ts.map +1 -1
- package/dist/src/views/error/error-view.d.ts +1 -1
- package/dist/src/views/error/error-view.d.ts.map +1 -1
- package/dist/src/views/error/global-error-view.d.ts +1 -1
- package/dist/src/views/error/global-error-view.d.ts.map +1 -1
- package/dist/src/views/layouts/provider.d.ts +3 -5
- package/dist/src/views/layouts/provider.d.ts.map +1 -1
- package/dist/src/views/layouts/provider.js +1 -1
- package/dist/src/views/layouts/root-layout.d.ts +1 -1
- package/dist/src/views/layouts/root-layout.d.ts.map +1 -1
- package/dist/src/views/layouts/root-layout.js +1 -1
- package/dist/src/views/layouts/theme/header/header.d.ts +1 -1
- package/dist/src/views/layouts/theme/header/header.d.ts.map +1 -1
- package/dist/src/views/layouts/theme/header/user/auth/auth.d.ts +1 -1
- package/dist/src/views/layouts/theme/header/user/auth/auth.d.ts.map +1 -1
- 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/user.d.ts +1 -1
- package/dist/src/views/layouts/theme/header/user/user.d.ts.map +1 -1
- package/dist/src/views/layouts/theme/layout.d.ts +3 -2
- package/dist/src/views/layouts/theme/layout.d.ts.map +1 -1
- package/dist/src/views/layouts/theme/layout.js +1 -1
- package/dist/src/views/layouts/theme/notification-listener.d.ts +2 -0
- package/dist/src/views/layouts/theme/notification-listener.d.ts.map +1 -0
- package/dist/src/views/layouts/theme/notification-listener.js +1 -0
- package/dist/src/views/layouts/theme/web-socket-auth-sync.d.ts +4 -0
- package/dist/src/views/layouts/theme/web-socket-auth-sync.d.ts.map +1 -0
- package/dist/src/views/layouts/theme/web-socket-auth-sync.js +1 -0
- package/dist/src/vitnode.config.d.ts +4 -0
- package/dist/src/vitnode.config.d.ts.map +1 -1
- package/dist/src/vitnode.config.js +1 -1
- package/dist/src/ws/handle.d.ts +5 -0
- package/dist/src/ws/handle.d.ts.map +1 -0
- package/dist/src/ws/handle.js +1 -0
- package/dist/src/ws/manager.d.ts +14 -0
- package/dist/src/ws/manager.d.ts.map +1 -0
- package/dist/src/ws/manager.js +1 -0
- package/dist/src/ws/notifications.d.ts +8 -0
- package/dist/src/ws/notifications.d.ts.map +1 -0
- package/dist/src/ws/notifications.js +1 -0
- package/dist/src/ws/provider.d.ts +14 -0
- package/dist/src/ws/provider.d.ts.map +1 -0
- package/dist/src/ws/provider.js +1 -0
- package/dist/src/ws/registry.d.ts +14 -0
- package/dist/src/ws/registry.d.ts.map +1 -0
- package/dist/src/ws/registry.js +1 -0
- package/dist/src/ws/types.d.ts +22 -0
- package/dist/src/ws/types.d.ts.map +1 -0
- package/dist/src/ws/types.js +1 -0
- package/dist/src/ws/use-websocket.d.ts +9 -0
- package/dist/src/ws/use-websocket.d.ts.map +1 -0
- package/dist/src/ws/use-websocket.js +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/vitest.config.d.ts.map +1 -1
- package/dist/vitest.config.js +1 -2
- package/package.json +61 -52
- package/src/locales/en.json +66 -2
- package/dist/src/app/login/page.d.ts.map +0 -1
- package/dist/src/app/login/page.js +0 -1
- package/dist/src/app/login/reset-password/page.d.ts.map +0 -1
- package/dist/src/app/login/reset-password/page.js +0 -1
- package/dist/src/app/login/sso/[providerId]/page.d.ts.map +0 -1
- package/dist/src/app/login/sso/[providerId]/page.js +0 -1
- package/dist/src/app/register/page.d.ts.map +0 -1
- package/dist/src/app/register/page.js +0 -1
- package/dist/src/app_admin/core/advanced/cron/page.d.ts.map +0 -1
- package/dist/src/app_admin/core/advanced/cron/page.js +0 -1
- package/dist/src/app_admin/core/debug/page.d.ts.map +0 -1
- package/dist/src/app_admin/core/debug/page.js +0 -1
- package/dist/src/app_admin/core/page.d.ts +0 -2
- package/dist/src/app_admin/core/page.d.ts.map +0 -1
- package/dist/src/app_admin/core/page.js +0 -1
- package/dist/src/app_admin/core/test/page.d.ts +0 -2
- package/dist/src/app_admin/core/test/page.d.ts.map +0 -1
- package/dist/src/app_admin/core/test/page.js +0 -1
- package/dist/src/app_admin/core/users/page.d.ts.map +0 -1
- package/dist/src/app_admin/core/users/page.js +0 -1
- package/dist/src/components/form/fields/combobox-async.d.ts +0 -18
- package/dist/src/components/form/fields/combobox-async.d.ts.map +0 -1
- package/dist/src/components/form/fields/combobox-async.js +0 -1
- package/src/app/login/page.tsx +0 -22
- package/src/app/login/reset-password/page.tsx +0 -27
- package/src/app/login/sso/[providerId]/page.tsx +0 -19
- package/src/app/register/page.tsx +0 -22
- package/src/app_admin/core/advanced/cron/page.tsx +0 -42
- package/src/app_admin/core/debug/page.tsx +0 -46
- package/src/app_admin/core/page.tsx +0 -5
- package/src/app_admin/core/test/page.tsx +0 -5
- package/src/app_admin/core/users/page.tsx +0 -41
|
@@ -31,6 +31,46 @@ export declare const adminModule: import("../../../api/lib/module").BuildModuleR
|
|
|
31
31
|
};
|
|
32
32
|
} & {
|
|
33
33
|
path: string;
|
|
34
|
+
}>, import("../../lib/route").Route<"@vitnode/core", {
|
|
35
|
+
method: "post";
|
|
36
|
+
description: string;
|
|
37
|
+
path: "/notifications/send";
|
|
38
|
+
request: {
|
|
39
|
+
body: {
|
|
40
|
+
content: {
|
|
41
|
+
"application/json": {
|
|
42
|
+
schema: import("zod").ZodObject<{
|
|
43
|
+
description: import("zod").ZodOptional<import("zod").ZodString>;
|
|
44
|
+
title: import("zod").ZodString;
|
|
45
|
+
type: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
46
|
+
error: "error";
|
|
47
|
+
success: "success";
|
|
48
|
+
info: "info";
|
|
49
|
+
warning: "warning";
|
|
50
|
+
}>>;
|
|
51
|
+
userId: import("zod").ZodNumber;
|
|
52
|
+
}, import("zod/v4/core").$strip>;
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
responses: {
|
|
58
|
+
200: {
|
|
59
|
+
content: {
|
|
60
|
+
"application/json": {
|
|
61
|
+
schema: import("zod").ZodObject<{
|
|
62
|
+
success: import("zod").ZodBoolean;
|
|
63
|
+
}, import("zod/v4/core").$strip>;
|
|
64
|
+
};
|
|
65
|
+
};
|
|
66
|
+
description: string;
|
|
67
|
+
};
|
|
68
|
+
403: {
|
|
69
|
+
description: string;
|
|
70
|
+
};
|
|
71
|
+
};
|
|
72
|
+
} & {
|
|
73
|
+
path: string;
|
|
34
74
|
}>], (import("../../../api/lib/module").BuildModuleReturn<"@vitnode/core", "advanced", [], import("../../../api/lib/module").BuildModuleReturn<"@vitnode/core", "cron", [import("../../lib/route").Route<"@vitnode/core", {
|
|
35
75
|
method: "get";
|
|
36
76
|
description: string;
|
|
@@ -191,6 +231,113 @@ export declare const adminModule: import("../../../api/lib/module").BuildModuleR
|
|
|
191
231
|
};
|
|
192
232
|
} & {
|
|
193
233
|
path: string;
|
|
234
|
+
}>], import("../../../api/lib/module").BaseBuildModuleReturn<"@vitnode/core", string, import("../../lib/route").Route<"@vitnode/core", import("@hono/zod-openapi").RouteConfig>[]>[]> | import("../../../api/lib/module").BuildModuleReturn<"@vitnode/core", "roles", [import("../../lib/route").Route<"@vitnode/core", {
|
|
235
|
+
method: "get";
|
|
236
|
+
description: string;
|
|
237
|
+
path: "/list";
|
|
238
|
+
request: {
|
|
239
|
+
query: import("zod").ZodObject<{
|
|
240
|
+
cursor: import("zod").ZodOptional<import("zod").ZodString>;
|
|
241
|
+
first: import("zod").ZodOptional<import("zod").ZodString>;
|
|
242
|
+
last: import("zod").ZodOptional<import("zod").ZodString>;
|
|
243
|
+
order: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
244
|
+
asc: "asc";
|
|
245
|
+
desc: "desc";
|
|
246
|
+
}>>;
|
|
247
|
+
orderBy: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
248
|
+
id: "id";
|
|
249
|
+
createdAt: "createdAt";
|
|
250
|
+
updatedAt: "updatedAt";
|
|
251
|
+
}>>;
|
|
252
|
+
search: import("zod").ZodOptional<import("zod").ZodString>;
|
|
253
|
+
}, import("zod/v4/core").$strip>;
|
|
254
|
+
};
|
|
255
|
+
responses: {
|
|
256
|
+
200: {
|
|
257
|
+
content: {
|
|
258
|
+
"application/json": {
|
|
259
|
+
schema: import("zod").ZodObject<{
|
|
260
|
+
edges: import("zod").ZodArray<import("zod").ZodObject<{
|
|
261
|
+
id: import("zod").ZodNumber;
|
|
262
|
+
name: import("zod").ZodArray<import("zod").ZodObject<{
|
|
263
|
+
name: import("zod").ZodString;
|
|
264
|
+
languageCode: import("zod").ZodString;
|
|
265
|
+
}, import("zod/v4/core").$strip>>;
|
|
266
|
+
color: import("zod").ZodNullable<import("zod").ZodString>;
|
|
267
|
+
protected: import("zod").ZodBoolean;
|
|
268
|
+
default: import("zod").ZodBoolean;
|
|
269
|
+
root: import("zod").ZodBoolean;
|
|
270
|
+
guest: import("zod").ZodBoolean;
|
|
271
|
+
createdAt: import("zod").ZodDate;
|
|
272
|
+
updatedAt: import("zod").ZodDate;
|
|
273
|
+
usersCount: import("zod").ZodNumber;
|
|
274
|
+
}, import("zod/v4/core").$strip>>;
|
|
275
|
+
pageInfo: import("zod").ZodObject<{
|
|
276
|
+
totalCount: import("zod").ZodNumber;
|
|
277
|
+
count: import("zod").ZodNumber;
|
|
278
|
+
hasNextPage: import("zod").ZodBoolean;
|
|
279
|
+
hasPreviousPage: import("zod").ZodBoolean;
|
|
280
|
+
startCursor: import("zod").ZodNullable<import("zod").ZodNumber>;
|
|
281
|
+
endCursor: import("zod").ZodNullable<import("zod").ZodNumber>;
|
|
282
|
+
}, import("zod/v4/core").$strip>;
|
|
283
|
+
}, import("zod/v4/core").$strip>;
|
|
284
|
+
};
|
|
285
|
+
};
|
|
286
|
+
description: string;
|
|
287
|
+
};
|
|
288
|
+
403: {
|
|
289
|
+
description: string;
|
|
290
|
+
};
|
|
291
|
+
};
|
|
292
|
+
} & {
|
|
293
|
+
path: string;
|
|
294
|
+
}>, import("../../lib/route").Route<"@vitnode/core", {
|
|
295
|
+
method: "get";
|
|
296
|
+
description: string;
|
|
297
|
+
path: "/{id}";
|
|
298
|
+
request: {
|
|
299
|
+
params: import("zod").ZodObject<{
|
|
300
|
+
id: import("zod").ZodString;
|
|
301
|
+
}, import("zod/v4/core").$strip>;
|
|
302
|
+
};
|
|
303
|
+
responses: {
|
|
304
|
+
200: {
|
|
305
|
+
content: {
|
|
306
|
+
"application/json": {
|
|
307
|
+
schema: import("zod").ZodObject<{
|
|
308
|
+
id: import("zod").ZodNumber;
|
|
309
|
+
name: import("zod").ZodArray<import("zod").ZodObject<{
|
|
310
|
+
name: import("zod").ZodString;
|
|
311
|
+
languageCode: import("zod").ZodString;
|
|
312
|
+
}, import("zod/v4/core").$strip>>;
|
|
313
|
+
color: import("zod").ZodNullable<import("zod").ZodString>;
|
|
314
|
+
protected: import("zod").ZodBoolean;
|
|
315
|
+
default: import("zod").ZodBoolean;
|
|
316
|
+
root: import("zod").ZodBoolean;
|
|
317
|
+
guest: import("zod").ZodBoolean;
|
|
318
|
+
createdAt: import("zod").ZodDate;
|
|
319
|
+
updatedAt: import("zod").ZodDate;
|
|
320
|
+
}, import("zod/v4/core").$strip>;
|
|
321
|
+
};
|
|
322
|
+
};
|
|
323
|
+
description: string;
|
|
324
|
+
};
|
|
325
|
+
403: {
|
|
326
|
+
description: string;
|
|
327
|
+
};
|
|
328
|
+
404: {
|
|
329
|
+
content: {
|
|
330
|
+
"application/json": {
|
|
331
|
+
schema: import("zod").ZodObject<{
|
|
332
|
+
error: import("zod").ZodString;
|
|
333
|
+
}, import("zod/v4/core").$strip>;
|
|
334
|
+
};
|
|
335
|
+
};
|
|
336
|
+
description: string;
|
|
337
|
+
};
|
|
338
|
+
};
|
|
339
|
+
} & {
|
|
340
|
+
path: string;
|
|
194
341
|
}>], import("../../../api/lib/module").BaseBuildModuleReturn<"@vitnode/core", string, import("../../lib/route").Route<"@vitnode/core", import("@hono/zod-openapi").RouteConfig>[]>[]> | import("../../../api/lib/module").BuildModuleReturn<"@vitnode/core", "users", [import("../../lib/route").Route<"@vitnode/core", {
|
|
195
342
|
method: "get";
|
|
196
343
|
description: string;
|
|
@@ -208,6 +355,8 @@ export declare const adminModule: import("../../../api/lib/module").BuildModuleR
|
|
|
208
355
|
name: "name";
|
|
209
356
|
createdAt: "createdAt";
|
|
210
357
|
}>>;
|
|
358
|
+
roleId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
359
|
+
search: import("zod").ZodOptional<import("zod").ZodString>;
|
|
211
360
|
}, import("zod/v4/core").$strip>;
|
|
212
361
|
};
|
|
213
362
|
responses: {
|
|
@@ -244,5 +393,128 @@ export declare const adminModule: import("../../../api/lib/module").BuildModuleR
|
|
|
244
393
|
};
|
|
245
394
|
} & {
|
|
246
395
|
path: string;
|
|
396
|
+
}>, import("../../lib/route").Route<"@vitnode/core", {
|
|
397
|
+
method: "post";
|
|
398
|
+
description: string;
|
|
399
|
+
path: "/create";
|
|
400
|
+
request: {
|
|
401
|
+
body: {
|
|
402
|
+
required: true;
|
|
403
|
+
content: {
|
|
404
|
+
"application/json": {
|
|
405
|
+
schema: import("zod").ZodObject<{
|
|
406
|
+
email: import("zod").ZodEmail;
|
|
407
|
+
name: import("zod").ZodString;
|
|
408
|
+
password: import("zod").ZodString;
|
|
409
|
+
}, import("zod/v4/core").$strip>;
|
|
410
|
+
};
|
|
411
|
+
};
|
|
412
|
+
};
|
|
413
|
+
};
|
|
414
|
+
responses: {
|
|
415
|
+
201: {
|
|
416
|
+
content: {
|
|
417
|
+
"application/json": {
|
|
418
|
+
schema: import("zod").ZodObject<{
|
|
419
|
+
id: import("zod").ZodNumber;
|
|
420
|
+
name: import("zod").ZodString;
|
|
421
|
+
email: import("zod").ZodEmail;
|
|
422
|
+
}, import("zod/v4/core").$strip>;
|
|
423
|
+
};
|
|
424
|
+
};
|
|
425
|
+
description: string;
|
|
426
|
+
};
|
|
427
|
+
403: {
|
|
428
|
+
description: string;
|
|
429
|
+
};
|
|
430
|
+
409: {
|
|
431
|
+
description: string;
|
|
432
|
+
};
|
|
433
|
+
};
|
|
434
|
+
} & {
|
|
435
|
+
path: string;
|
|
436
|
+
}>, import("../../lib/route").Route<"@vitnode/core", {
|
|
437
|
+
method: "get";
|
|
438
|
+
description: string;
|
|
439
|
+
path: "/{nameCode}";
|
|
440
|
+
request: {
|
|
441
|
+
params: import("zod").ZodObject<{
|
|
442
|
+
nameCode: import("zod").ZodString;
|
|
443
|
+
}, import("zod/v4/core").$strip>;
|
|
444
|
+
};
|
|
445
|
+
responses: {
|
|
446
|
+
200: {
|
|
447
|
+
content: {
|
|
448
|
+
"application/json": {
|
|
449
|
+
schema: import("zod").ZodObject<{
|
|
450
|
+
id: import("zod").ZodNumber;
|
|
451
|
+
name: import("zod").ZodString;
|
|
452
|
+
email: import("zod").ZodString;
|
|
453
|
+
nameCode: import("zod").ZodString;
|
|
454
|
+
createdAt: import("zod").ZodDate;
|
|
455
|
+
newsletter: import("zod").ZodBoolean;
|
|
456
|
+
avatarColor: import("zod").ZodString;
|
|
457
|
+
emailVerified: import("zod").ZodBoolean;
|
|
458
|
+
roleId: import("zod").ZodNumber;
|
|
459
|
+
birthday: import("zod").ZodNullable<import("zod").ZodDate>;
|
|
460
|
+
language: import("zod").ZodString;
|
|
461
|
+
}, import("zod/v4/core").$strip>;
|
|
462
|
+
};
|
|
463
|
+
};
|
|
464
|
+
description: string;
|
|
465
|
+
};
|
|
466
|
+
403: {
|
|
467
|
+
description: string;
|
|
468
|
+
};
|
|
469
|
+
404: {
|
|
470
|
+
content: {
|
|
471
|
+
"application/json": {
|
|
472
|
+
schema: import("zod").ZodObject<{
|
|
473
|
+
error: import("zod").ZodString;
|
|
474
|
+
}, import("zod/v4/core").$strip>;
|
|
475
|
+
};
|
|
476
|
+
};
|
|
477
|
+
description: string;
|
|
478
|
+
};
|
|
479
|
+
};
|
|
480
|
+
} & {
|
|
481
|
+
path: string;
|
|
482
|
+
}>, import("../../lib/route").Route<"@vitnode/core", {
|
|
483
|
+
method: "post";
|
|
484
|
+
description: string;
|
|
485
|
+
path: "/{nameCode}/verify-email";
|
|
486
|
+
request: {
|
|
487
|
+
params: import("zod").ZodObject<{
|
|
488
|
+
nameCode: import("zod").ZodString;
|
|
489
|
+
}, import("zod/v4/core").$strip>;
|
|
490
|
+
};
|
|
491
|
+
responses: {
|
|
492
|
+
200: {
|
|
493
|
+
content: {
|
|
494
|
+
"application/json": {
|
|
495
|
+
schema: import("zod").ZodObject<{
|
|
496
|
+
name: import("zod").ZodString;
|
|
497
|
+
emailVerified: import("zod").ZodBoolean;
|
|
498
|
+
}, import("zod/v4/core").$strip>;
|
|
499
|
+
};
|
|
500
|
+
};
|
|
501
|
+
description: string;
|
|
502
|
+
};
|
|
503
|
+
403: {
|
|
504
|
+
description: string;
|
|
505
|
+
};
|
|
506
|
+
404: {
|
|
507
|
+
content: {
|
|
508
|
+
"application/json": {
|
|
509
|
+
schema: import("zod").ZodObject<{
|
|
510
|
+
error: import("zod").ZodString;
|
|
511
|
+
}, import("zod/v4/core").$strip>;
|
|
512
|
+
};
|
|
513
|
+
};
|
|
514
|
+
description: string;
|
|
515
|
+
};
|
|
516
|
+
};
|
|
517
|
+
} & {
|
|
518
|
+
path: string;
|
|
247
519
|
}>], import("../../../api/lib/module").BaseBuildModuleReturn<"@vitnode/core", string, import("../../lib/route").Route<"@vitnode/core", import("@hono/zod-openapi").RouteConfig>[]>[]>)[]>;
|
|
248
520
|
//# sourceMappingURL=admin.module.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"admin.module.d.ts","sourceRoot":"","sources":["../../../../../src/api/modules/admin/admin.module.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"admin.module.d.ts","sourceRoot":"","sources":["../../../../../src/api/modules/admin/admin.module.ts"],"names":[],"mappings":"AAUA,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kLAWtB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{buildModule}from"../../lib/module.js";import{CONFIG_PLUGIN}from"../../../config.js";import{advancedAdminModule}from"./advanced/advanced.admin.module.js";import{debugAdminModule}from"./debug/debug.admin.module.js";import{sessionAdminRoute}from"./routes/session.route.js";import{usersAdminModule}from"./users/users.admin.module.js";export const adminModule=buildModule({pluginId:CONFIG_PLUGIN.pluginId,name:"admin",routes:[sessionAdminRoute],modules:[usersAdminModule,debugAdminModule,advancedAdminModule],cronJobs:[]});
|
|
1
|
+
import{buildModule}from"../../lib/module.js";import{CONFIG_PLUGIN}from"../../../config.js";import{advancedAdminModule}from"./advanced/advanced.admin.module.js";import{debugAdminModule}from"./debug/debug.admin.module.js";import{rolesAdminModule}from"./roles/roles.admin.module.js";import{sendNotificationRoute}from"./routes/notifications.route.js";import{sessionAdminRoute}from"./routes/session.route.js";import{usersAdminModule}from"./users/users.admin.module.js";export const adminModule=buildModule({pluginId:CONFIG_PLUGIN.pluginId,name:"admin",routes:[sessionAdminRoute,sendNotificationRoute],modules:[usersAdminModule,rolesAdminModule,debugAdminModule,advancedAdminModule],cronJobs:[]});
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
export declare const rolesAdminModule: import("../../../../api/lib/module").BuildModuleReturn<"@vitnode/core", "roles", [import("../../../lib/route").Route<"@vitnode/core", {
|
|
2
|
+
method: "get";
|
|
3
|
+
description: string;
|
|
4
|
+
path: "/list";
|
|
5
|
+
request: {
|
|
6
|
+
query: import("zod").ZodObject<{
|
|
7
|
+
cursor: import("zod").ZodOptional<import("zod").ZodString>;
|
|
8
|
+
first: import("zod").ZodOptional<import("zod").ZodString>;
|
|
9
|
+
last: import("zod").ZodOptional<import("zod").ZodString>;
|
|
10
|
+
order: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
11
|
+
asc: "asc";
|
|
12
|
+
desc: "desc";
|
|
13
|
+
}>>;
|
|
14
|
+
orderBy: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
15
|
+
id: "id";
|
|
16
|
+
createdAt: "createdAt";
|
|
17
|
+
updatedAt: "updatedAt";
|
|
18
|
+
}>>;
|
|
19
|
+
search: import("zod").ZodOptional<import("zod").ZodString>;
|
|
20
|
+
}, import("zod/v4/core").$strip>;
|
|
21
|
+
};
|
|
22
|
+
responses: {
|
|
23
|
+
200: {
|
|
24
|
+
content: {
|
|
25
|
+
"application/json": {
|
|
26
|
+
schema: import("zod").ZodObject<{
|
|
27
|
+
edges: import("zod").ZodArray<import("zod").ZodObject<{
|
|
28
|
+
id: import("zod").ZodNumber;
|
|
29
|
+
name: import("zod").ZodArray<import("zod").ZodObject<{
|
|
30
|
+
name: import("zod").ZodString;
|
|
31
|
+
languageCode: import("zod").ZodString;
|
|
32
|
+
}, import("zod/v4/core").$strip>>;
|
|
33
|
+
color: import("zod").ZodNullable<import("zod").ZodString>;
|
|
34
|
+
protected: import("zod").ZodBoolean;
|
|
35
|
+
default: import("zod").ZodBoolean;
|
|
36
|
+
root: import("zod").ZodBoolean;
|
|
37
|
+
guest: import("zod").ZodBoolean;
|
|
38
|
+
createdAt: import("zod").ZodDate;
|
|
39
|
+
updatedAt: import("zod").ZodDate;
|
|
40
|
+
usersCount: import("zod").ZodNumber;
|
|
41
|
+
}, import("zod/v4/core").$strip>>;
|
|
42
|
+
pageInfo: import("zod").ZodObject<{
|
|
43
|
+
totalCount: import("zod").ZodNumber;
|
|
44
|
+
count: import("zod").ZodNumber;
|
|
45
|
+
hasNextPage: import("zod").ZodBoolean;
|
|
46
|
+
hasPreviousPage: import("zod").ZodBoolean;
|
|
47
|
+
startCursor: import("zod").ZodNullable<import("zod").ZodNumber>;
|
|
48
|
+
endCursor: import("zod").ZodNullable<import("zod").ZodNumber>;
|
|
49
|
+
}, import("zod/v4/core").$strip>;
|
|
50
|
+
}, import("zod/v4/core").$strip>;
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
description: string;
|
|
54
|
+
};
|
|
55
|
+
403: {
|
|
56
|
+
description: string;
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
} & {
|
|
60
|
+
path: string;
|
|
61
|
+
}>, import("../../../lib/route").Route<"@vitnode/core", {
|
|
62
|
+
method: "get";
|
|
63
|
+
description: string;
|
|
64
|
+
path: "/{id}";
|
|
65
|
+
request: {
|
|
66
|
+
params: import("zod").ZodObject<{
|
|
67
|
+
id: import("zod").ZodString;
|
|
68
|
+
}, import("zod/v4/core").$strip>;
|
|
69
|
+
};
|
|
70
|
+
responses: {
|
|
71
|
+
200: {
|
|
72
|
+
content: {
|
|
73
|
+
"application/json": {
|
|
74
|
+
schema: import("zod").ZodObject<{
|
|
75
|
+
id: import("zod").ZodNumber;
|
|
76
|
+
name: import("zod").ZodArray<import("zod").ZodObject<{
|
|
77
|
+
name: import("zod").ZodString;
|
|
78
|
+
languageCode: import("zod").ZodString;
|
|
79
|
+
}, import("zod/v4/core").$strip>>;
|
|
80
|
+
color: import("zod").ZodNullable<import("zod").ZodString>;
|
|
81
|
+
protected: import("zod").ZodBoolean;
|
|
82
|
+
default: import("zod").ZodBoolean;
|
|
83
|
+
root: import("zod").ZodBoolean;
|
|
84
|
+
guest: import("zod").ZodBoolean;
|
|
85
|
+
createdAt: import("zod").ZodDate;
|
|
86
|
+
updatedAt: import("zod").ZodDate;
|
|
87
|
+
}, import("zod/v4/core").$strip>;
|
|
88
|
+
};
|
|
89
|
+
};
|
|
90
|
+
description: string;
|
|
91
|
+
};
|
|
92
|
+
403: {
|
|
93
|
+
description: string;
|
|
94
|
+
};
|
|
95
|
+
404: {
|
|
96
|
+
content: {
|
|
97
|
+
"application/json": {
|
|
98
|
+
schema: import("zod").ZodObject<{
|
|
99
|
+
error: import("zod").ZodString;
|
|
100
|
+
}, import("zod/v4/core").$strip>;
|
|
101
|
+
};
|
|
102
|
+
};
|
|
103
|
+
description: string;
|
|
104
|
+
};
|
|
105
|
+
};
|
|
106
|
+
} & {
|
|
107
|
+
path: string;
|
|
108
|
+
}>], import("../../../../api/lib/module").BaseBuildModuleReturn<"@vitnode/core", string, import("../../../lib/route").Route<"@vitnode/core", import("@hono/zod-openapi").RouteConfig>[]>[]>;
|
|
109
|
+
//# sourceMappingURL=roles.admin.module.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"roles.admin.module.d.ts","sourceRoot":"","sources":["../../../../../../src/api/modules/admin/roles/roles.admin.module.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iLAI3B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{buildModule}from"../../../lib/module.js";import{CONFIG_PLUGIN}from"../../../../config.js";import{listRolesAdminRoute}from"./routes/list.route.js";import{showRoleAdminRoute}from"./routes/show.route.js";export const rolesAdminModule=buildModule({pluginId:CONFIG_PLUGIN.pluginId,name:"roles",routes:[listRolesAdminRoute,showRoleAdminRoute]});
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { z } from "@hono/zod-openapi";
|
|
2
|
+
export declare const listRolesAdminRoute: import("../../../../../api/lib/route").Route<"@vitnode/core", {
|
|
3
|
+
method: "get";
|
|
4
|
+
description: string;
|
|
5
|
+
path: "/list";
|
|
6
|
+
request: {
|
|
7
|
+
query: z.ZodObject<{
|
|
8
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
9
|
+
first: z.ZodOptional<z.ZodString>;
|
|
10
|
+
last: z.ZodOptional<z.ZodString>;
|
|
11
|
+
order: z.ZodOptional<z.ZodEnum<{
|
|
12
|
+
asc: "asc";
|
|
13
|
+
desc: "desc";
|
|
14
|
+
}>>;
|
|
15
|
+
orderBy: z.ZodOptional<z.ZodEnum<{
|
|
16
|
+
id: "id";
|
|
17
|
+
createdAt: "createdAt";
|
|
18
|
+
updatedAt: "updatedAt";
|
|
19
|
+
}>>;
|
|
20
|
+
search: z.ZodOptional<z.ZodString>;
|
|
21
|
+
}, z.core.$strip>;
|
|
22
|
+
};
|
|
23
|
+
responses: {
|
|
24
|
+
200: {
|
|
25
|
+
content: {
|
|
26
|
+
"application/json": {
|
|
27
|
+
schema: z.ZodObject<{
|
|
28
|
+
edges: z.ZodArray<z.ZodObject<{
|
|
29
|
+
id: z.ZodNumber;
|
|
30
|
+
name: z.ZodArray<z.ZodObject<{
|
|
31
|
+
name: z.ZodString;
|
|
32
|
+
languageCode: z.ZodString;
|
|
33
|
+
}, z.core.$strip>>;
|
|
34
|
+
color: z.ZodNullable<z.ZodString>;
|
|
35
|
+
protected: z.ZodBoolean;
|
|
36
|
+
default: z.ZodBoolean;
|
|
37
|
+
root: z.ZodBoolean;
|
|
38
|
+
guest: z.ZodBoolean;
|
|
39
|
+
createdAt: z.ZodDate;
|
|
40
|
+
updatedAt: z.ZodDate;
|
|
41
|
+
usersCount: z.ZodNumber;
|
|
42
|
+
}, z.core.$strip>>;
|
|
43
|
+
pageInfo: z.ZodObject<{
|
|
44
|
+
totalCount: z.ZodNumber;
|
|
45
|
+
count: z.ZodNumber;
|
|
46
|
+
hasNextPage: z.ZodBoolean;
|
|
47
|
+
hasPreviousPage: z.ZodBoolean;
|
|
48
|
+
startCursor: z.ZodNullable<z.ZodNumber>;
|
|
49
|
+
endCursor: z.ZodNullable<z.ZodNumber>;
|
|
50
|
+
}, z.core.$strip>;
|
|
51
|
+
}, z.core.$strip>;
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
description: string;
|
|
55
|
+
};
|
|
56
|
+
403: {
|
|
57
|
+
description: string;
|
|
58
|
+
};
|
|
59
|
+
};
|
|
60
|
+
} & {
|
|
61
|
+
path: string;
|
|
62
|
+
}>;
|
|
63
|
+
//# sourceMappingURL=list.route.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list.route.d.ts","sourceRoot":"","sources":["../../../../../../../src/api/modules/admin/roles/routes/list.route.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,mBAAmB,CAAC;AAuCtC,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA6H9B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{z}from"@hono/zod-openapi";import{and,count,eq,ilike,inArray}from"drizzle-orm";import{buildRoute}from"../../../../lib/route.js";import{withPagination,zodPaginationPageInfo,zodPaginationQuery}from"../../../../lib/with-pagination.js";import{CONFIG_PLUGIN}from"../../../../../config.js";import{core_languages_words}from"../../../../../database/languages.js";import{core_roles}from"../../../../../database/roles.js";import{core_users}from"../../../../../database/users.js";const rolesAdminListSchema=z.object({edges:z.array(z.object({id:z.number(),name:z.array(z.object({name:z.string(),languageCode:z.string()})),color:z.string().nullable(),protected:z.boolean(),default:z.boolean(),root:z.boolean(),guest:z.boolean(),createdAt:z.date(),updatedAt:z.date(),usersCount:z.number()})),pageInfo:zodPaginationPageInfo});export const listRolesAdminRoute=buildRoute({pluginId:CONFIG_PLUGIN.pluginId,route:{method:"get",description:"Get list of all roles (Admin only)",path:"/list",request:{query:zodPaginationQuery.extend({order:z.enum(["asc","desc"]).optional(),orderBy:z.enum(["id","createdAt","updatedAt"]).optional(),search:z.string().optional()})},responses:{200:{content:{"application/json":{schema:rolesAdminListSchema}},description:"List of roles"},403:{description:"Access Denied"}}},handler:async c=>{const query=c.req.valid("query");const search=query.search?.trim();const data=await withPagination({params:{query},where:search?inArray(core_roles.id,c.get("db").select({id:core_languages_words.itemId}).from(core_languages_words).where(and(eq(core_languages_words.tableName,"core_roles"),eq(core_languages_words.variable,"name"),eq(core_languages_words.pluginCode,"core"),ilike(core_languages_words.value,`%${search}%`)))):undefined,primaryCursor:core_roles.id,query:async({limit,where,orderBy})=>await c.get("db").select({id:core_roles.id,color:core_roles.color,protected:core_roles.protected,default:core_roles.default,root:core_roles.root,guest:core_roles.guest,createdAt:core_roles.createdAt,updatedAt:core_roles.updatedAt}).from(core_roles).where(where).orderBy(orderBy).limit(limit),table:core_roles,orderBy:{column:query.orderBy?core_roles[query.orderBy]:core_roles.updatedAt,order:query.order??"desc"},c});const roleIds=data.edges.map(role=>role.id);const names=roleIds.length?await c.get("db").select({itemId:core_languages_words.itemId,languageCode:core_languages_words.languageCode,value:core_languages_words.value}).from(core_languages_words).where(and(eq(core_languages_words.tableName,"core_roles"),eq(core_languages_words.variable,"name"),eq(core_languages_words.pluginCode,"core"),inArray(core_languages_words.itemId,roleIds))):[];const userCounts=roleIds.length?await c.get("db").select({roleId:core_users.roleId,total:count()}).from(core_users).where(inArray(core_users.roleId,roleIds)).groupBy(core_users.roleId):[];return c.json({pageInfo:data.pageInfo,edges:data.edges.map(role=>({...role,name:names.filter(word=>word.itemId===role.id).map(word=>({name:word.value,languageCode:word.languageCode})),usersCount:userCounts.find(item=>item.roleId===role.id)?.total??0}))})}});
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { z } from "@hono/zod-openapi";
|
|
2
|
+
export declare const showRoleAdminRoute: import("../../../../../api/lib/route").Route<"@vitnode/core", {
|
|
3
|
+
method: "get";
|
|
4
|
+
description: string;
|
|
5
|
+
path: "/{id}";
|
|
6
|
+
request: {
|
|
7
|
+
params: z.ZodObject<{
|
|
8
|
+
id: z.ZodString;
|
|
9
|
+
}, z.core.$strip>;
|
|
10
|
+
};
|
|
11
|
+
responses: {
|
|
12
|
+
200: {
|
|
13
|
+
content: {
|
|
14
|
+
"application/json": {
|
|
15
|
+
schema: z.ZodObject<{
|
|
16
|
+
id: z.ZodNumber;
|
|
17
|
+
name: z.ZodArray<z.ZodObject<{
|
|
18
|
+
name: z.ZodString;
|
|
19
|
+
languageCode: z.ZodString;
|
|
20
|
+
}, z.core.$strip>>;
|
|
21
|
+
color: z.ZodNullable<z.ZodString>;
|
|
22
|
+
protected: z.ZodBoolean;
|
|
23
|
+
default: z.ZodBoolean;
|
|
24
|
+
root: z.ZodBoolean;
|
|
25
|
+
guest: z.ZodBoolean;
|
|
26
|
+
createdAt: z.ZodDate;
|
|
27
|
+
updatedAt: z.ZodDate;
|
|
28
|
+
}, z.core.$strip>;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
description: string;
|
|
32
|
+
};
|
|
33
|
+
403: {
|
|
34
|
+
description: string;
|
|
35
|
+
};
|
|
36
|
+
404: {
|
|
37
|
+
content: {
|
|
38
|
+
"application/json": {
|
|
39
|
+
schema: z.ZodObject<{
|
|
40
|
+
error: z.ZodString;
|
|
41
|
+
}, z.core.$strip>;
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
description: string;
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
} & {
|
|
48
|
+
path: string;
|
|
49
|
+
}>;
|
|
50
|
+
//# sourceMappingURL=show.route.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"show.route.d.ts","sourceRoot":"","sources":["../../../../../../../src/api/modules/admin/roles/routes/show.route.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,mBAAmB,CAAC;AA2BtC,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAwF7B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{z}from"@hono/zod-openapi";import{and,eq}from"drizzle-orm";import{buildRoute}from"../../../../lib/route.js";import{CONFIG_PLUGIN}from"../../../../../config.js";import{core_languages_words}from"../../../../../database/languages.js";import{core_roles}from"../../../../../database/roles.js";const roleAdminSchema=z.object({id:z.number(),name:z.array(z.object({name:z.string(),languageCode:z.string()})),color:z.string().nullable(),protected:z.boolean(),default:z.boolean(),root:z.boolean(),guest:z.boolean(),createdAt:z.date(),updatedAt:z.date()});export const showRoleAdminRoute=buildRoute({pluginId:CONFIG_PLUGIN.pluginId,route:{method:"get",description:"Get a single role by id (Admin only)",path:"/{id}",request:{params:z.object({id:z.string().openapi({example:"1"})})},responses:{200:{content:{"application/json":{schema:roleAdminSchema}},description:"Role found"},403:{description:"Access Denied"},404:{content:{"application/json":{schema:z.object({error:z.string()})}},description:"Role not found"}}},handler:async c=>{const{id}=c.req.valid("param");const roleId=Number(id);if(!Number.isInteger(roleId)){return c.json({error:"Role not found"},404)}const[role]=await c.get("db").select({id:core_roles.id,color:core_roles.color,protected:core_roles.protected,default:core_roles.default,root:core_roles.root,guest:core_roles.guest,createdAt:core_roles.createdAt}).from(core_roles).where(eq(core_roles.id,roleId)).limit(1);if(!role){return c.json({error:"Role not found"},404)}const names=await c.get("db").select({languageCode:core_languages_words.languageCode,value:core_languages_words.value}).from(core_languages_words).where(and(eq(core_languages_words.tableName,"core_roles"),eq(core_languages_words.variable,"name"),eq(core_languages_words.pluginCode,"core"),eq(core_languages_words.itemId,roleId)));return c.json({...role,name:names.map(word=>({name:word.value,languageCode:word.languageCode}))},200)}});
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const zodSendNotificationSchema: z.ZodObject<{
|
|
3
|
+
description: z.ZodOptional<z.ZodString>;
|
|
4
|
+
title: z.ZodString;
|
|
5
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
6
|
+
error: "error";
|
|
7
|
+
success: "success";
|
|
8
|
+
info: "info";
|
|
9
|
+
warning: "warning";
|
|
10
|
+
}>>;
|
|
11
|
+
userId: z.ZodNumber;
|
|
12
|
+
}, z.core.$strip>;
|
|
13
|
+
export declare const sendNotificationRoute: import("../../../../api/lib/route").Route<"@vitnode/core", {
|
|
14
|
+
method: "post";
|
|
15
|
+
description: string;
|
|
16
|
+
path: "/notifications/send";
|
|
17
|
+
request: {
|
|
18
|
+
body: {
|
|
19
|
+
content: {
|
|
20
|
+
"application/json": {
|
|
21
|
+
schema: z.ZodObject<{
|
|
22
|
+
description: z.ZodOptional<z.ZodString>;
|
|
23
|
+
title: z.ZodString;
|
|
24
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
25
|
+
error: "error";
|
|
26
|
+
success: "success";
|
|
27
|
+
info: "info";
|
|
28
|
+
warning: "warning";
|
|
29
|
+
}>>;
|
|
30
|
+
userId: z.ZodNumber;
|
|
31
|
+
}, z.core.$strip>;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
responses: {
|
|
37
|
+
200: {
|
|
38
|
+
content: {
|
|
39
|
+
"application/json": {
|
|
40
|
+
schema: z.ZodObject<{
|
|
41
|
+
success: z.ZodBoolean;
|
|
42
|
+
}, z.core.$strip>;
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
description: string;
|
|
46
|
+
};
|
|
47
|
+
403: {
|
|
48
|
+
description: string;
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
} & {
|
|
52
|
+
path: string;
|
|
53
|
+
}>;
|
|
54
|
+
//# sourceMappingURL=notifications.route.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"notifications.route.d.ts","sourceRoot":"","sources":["../../../../../../src/api/modules/admin/routes/notifications.route.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,eAAO,MAAM,yBAAyB;;;;;;;;;;iBAKpC,CAAC;AAEH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA4ChC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{HTTPException}from"hono/http-exception";import{z}from"zod";import{buildRoute}from"../../../lib/route.js";import{CONFIG_PLUGIN}from"../../../../config.js";import{notificationsChannel}from"../../../../ws/notifications.js";export const zodSendNotificationSchema=z.object({description:z.string().optional(),title:z.string().min(1,"Title is required"),type:z.enum(["error","info","success","warning"]).optional(),userId:z.number()});export const sendNotificationRoute=buildRoute({pluginId:CONFIG_PLUGIN.pluginId,route:{method:"post",description:"Send a notification to a user",path:"/notifications/send",request:{body:{content:{"application/json":{schema:zodSendNotificationSchema}}}},responses:{200:{content:{"application/json":{schema:z.object({success:z.boolean()})}},description:"Notification sent"},403:{description:"Access Denied"}}},handler:c=>{const admin=c.get("admin")?.user;if(!admin)throw new HTTPException(403);const{userId,title,description,type}=c.req.valid("json");c.get("realtime").sendToUser(userId,notificationsChannel,{description,title,type});return c.json({success:true})}});
|