@vitnode/core 1.2.0-canary.53 → 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/dist/scripts/prepare-database.d.ts +0 -1
- package/dist/scripts/prepare-database.d.ts.map +1 -1
- package/dist/scripts/scripts.js +4 -4
- 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/config.d.ts.map +1 -1
- package/dist/src/api/config.js +21 -9
- 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/module.d.ts +4 -1
- 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 +2 -0
- package/dist/src/api/lib/plugin.d.ts.map +1 -1
- package/dist/src/api/lib/plugin.js +9 -1
- 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 +6 -0
- package/dist/src/api/middlewares/global.middleware.d.ts.map +1 -1
- package/dist/src/api/middlewares/global.middleware.js +33 -22
- package/dist/src/api/models/user/sign-up.d.ts +1 -1
- package/dist/src/api/models/user.d.ts +1 -1
- package/dist/src/api/modules/admin/admin.module.d.ts +163 -1
- package/dist/src/api/modules/admin/admin.module.d.ts.map +1 -1
- package/dist/src/api/modules/admin/admin.module.js +6 -3
- 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.js +1 -1
- package/dist/src/api/modules/admin/debug/routes/logs.route.js +1 -1
- package/dist/src/api/modules/admin/routes/session.route.js +1 -1
- package/dist/src/api/modules/admin/users/routes/list.route.js +1 -1
- package/dist/src/api/modules/admin/users/routes/users.route.d.ts +3 -3
- package/dist/src/api/modules/admin/users/routes/users.route.js +1 -1
- package/dist/src/api/modules/admin/users/users.admin.module.js +1 -1
- 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.js +1 -1
- package/dist/src/api/modules/middleware/route.js +1 -1
- package/dist/src/api/modules/users/routes/change-password.route.js +1 -1
- package/dist/src/api/modules/users/routes/reset-passowrd.route.js +1 -1
- package/dist/src/api/modules/users/routes/session.route.js +1 -1
- package/dist/src/api/modules/users/routes/sign-in.route.js +1 -1
- package/dist/src/api/modules/users/routes/sign-out.route.js +1 -1
- package/dist/src/api/modules/users/routes/sign-up.route.js +1 -1
- package/dist/src/api/modules/users/routes/test.route.js +1 -1
- package/dist/src/api/modules/users/sso/routes/callback.route.js +1 -1
- package/dist/src/api/modules/users/sso/routes/create-url.route.js +1 -1
- package/dist/src/api/modules/users/sso/sso.module.js +1 -1
- package/dist/src/api/modules/users/users.module.js +1 -1
- package/dist/src/api/plugin.d.ts.map +1 -1
- package/dist/src/api/plugin.js +4 -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/components/switchers/langs/{language-swietcher.d.ts → language-switcher.d.ts} +1 -1
- package/dist/src/components/switchers/langs/language-switcher.d.ts.map +1 -0
- 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/button-client.d.ts.map +1 -1
- package/dist/src/components/ui/button-client.js +1 -1
- package/dist/src/components/ui/button.js +1 -1
- 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/sidebar.js +14 -14
- package/dist/src/components/ui/table.js +1 -1
- package/dist/src/components/ui/tooltip.d.ts +4 -1
- package/dist/src/components/ui/tooltip.d.ts.map +1 -1
- package/dist/src/components/ui/tooltip.js +18 -2
- 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/users.d.ts +2 -2
- package/dist/src/database/users.js +1 -1
- 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/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/config.d.ts +1 -0
- package/dist/src/lib/config.d.ts.map +1 -1
- package/dist/src/lib/config.js +7 -5
- 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/navigation.d.ts +1 -1
- package/dist/src/lib/navigation.d.ts.map +1 -1
- package/dist/src/views/admin/layouts/admin-layout.js +1 -1
- package/dist/src/views/admin/layouts/sidebar/nav/item.d.ts.map +1 -1
- package/dist/src/views/admin/layouts/sidebar/nav/item.js +0 -3
- package/dist/src/views/admin/layouts/sidebar/nav/nav.d.ts.map +1 -1
- package/dist/src/views/admin/layouts/sidebar/nav/nav.js +12 -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/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 +11 -20
- package/dist/src/views/admin/views/core/test.d.ts.map +1 -1
- package/dist/src/views/admin/views/core/test.js +116 -106
- package/dist/src/views/layouts/theme/header/header.js +1 -1
- package/dist/src/vitnode.config.d.ts +2 -0
- package/dist/src/vitnode.config.d.ts.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +32 -26
- package/src/app_admin/core/advanced/cron/page.tsx +41 -0
- 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
- /package/dist/src/components/switchers/langs/{language-swietcher.js → language-switcher.js} +0 -0
|
@@ -2,29 +2,40 @@ import { HTTPException } from "hono/http-exception";
|
|
|
2
2
|
import { EmailModel } from "../models/email.js";
|
|
3
3
|
import { SessionModel } from "../models/session.js";
|
|
4
4
|
import { SessionAdminModel } from "../models/session-admin.js";
|
|
5
|
+
import { CONFIG } from "../../lib/config.js";
|
|
5
6
|
import { loggerMiddleware } from "../lib/logger-middleware.js";
|
|
6
7
|
export const globalMiddleware = ({ authorization, metadata, email, dbProvider, captcha, plugins, pathToMessages })=>{
|
|
8
|
+
const pluginsMetadata = plugins.map((plugin)=>({
|
|
9
|
+
id: plugin.pluginId
|
|
10
|
+
}));
|
|
11
|
+
const cronMetadata = plugins.flatMap((plugin)=>plugin.cronJobs.map((cronJob)=>({
|
|
12
|
+
pluginId: plugin.pluginId,
|
|
13
|
+
module: cronJob.module,
|
|
14
|
+
name: cronJob.name,
|
|
15
|
+
schedule: cronJob.schedule,
|
|
16
|
+
handler: cronJob.handler,
|
|
17
|
+
description: cronJob.description
|
|
18
|
+
})));
|
|
19
|
+
const ipHeaderKeys = [
|
|
20
|
+
"x-forwarded-for",
|
|
21
|
+
"x-real-ip",
|
|
22
|
+
"cf-connecting-ip",
|
|
23
|
+
"x-client-ip",
|
|
24
|
+
"x-forwarded",
|
|
25
|
+
"x-cluster-client-ip",
|
|
26
|
+
"forwarded-for",
|
|
27
|
+
"forwarded",
|
|
28
|
+
"via",
|
|
29
|
+
"remote-addr",
|
|
30
|
+
"client-ip",
|
|
31
|
+
"ip",
|
|
32
|
+
"x-ip",
|
|
33
|
+
"true-client-ip",
|
|
34
|
+
"fastly-client-ip",
|
|
35
|
+
"x-fastly-client-ip"
|
|
36
|
+
];
|
|
7
37
|
// biome-ignore lint/complexity/noExcessiveCognitiveComplexity: <needed>
|
|
8
38
|
return async (c, next)=>{
|
|
9
|
-
// Collect possible IP header keys in order of trust/preference
|
|
10
|
-
const ipHeaderKeys = [
|
|
11
|
-
"x-forwarded-for",
|
|
12
|
-
"x-real-ip",
|
|
13
|
-
"cf-connecting-ip",
|
|
14
|
-
"x-client-ip",
|
|
15
|
-
"x-forwarded",
|
|
16
|
-
"x-cluster-client-ip",
|
|
17
|
-
"forwarded-for",
|
|
18
|
-
"forwarded",
|
|
19
|
-
"via",
|
|
20
|
-
"remote-addr",
|
|
21
|
-
"client-ip",
|
|
22
|
-
"ip",
|
|
23
|
-
"x-ip",
|
|
24
|
-
"true-client-ip",
|
|
25
|
-
"fastly-client-ip",
|
|
26
|
-
"x-fastly-client-ip"
|
|
27
|
-
];
|
|
28
39
|
let ipAddress;
|
|
29
40
|
// Try to get IP from Hono's request header method first
|
|
30
41
|
for (const key of ipHeaderKeys){
|
|
@@ -63,9 +74,9 @@ export const globalMiddleware = ({ authorization, metadata, email, dbProvider, c
|
|
|
63
74
|
cookieSecure: authorization?.cookieSecure ?? true
|
|
64
75
|
},
|
|
65
76
|
captcha,
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
77
|
+
cronSecret: CONFIG.cronJobSecret,
|
|
78
|
+
plugins: pluginsMetadata,
|
|
79
|
+
cron: cronMetadata
|
|
69
80
|
});
|
|
70
81
|
const user = await new SessionModel(c).getUser();
|
|
71
82
|
c.set("user", user);
|
|
@@ -5,9 +5,9 @@ export declare const signUp: ({ email, name, newsletter, hashedPassword, }: {
|
|
|
5
5
|
name: string;
|
|
6
6
|
newsletter?: boolean;
|
|
7
7
|
}, c: Context) => Promise<{
|
|
8
|
+
id: number;
|
|
8
9
|
email: string;
|
|
9
10
|
ipAddress: string;
|
|
10
|
-
id: number;
|
|
11
11
|
name: string;
|
|
12
12
|
createdAt: Date;
|
|
13
13
|
language: string;
|
|
@@ -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: {
|
|
@@ -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
|
+
pluginId: CONFIG_PLUGIN.pluginId,
|
|
8
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
|
+
});
|