@vitnode/blog 1.2.0-canary.74 → 1.2.0-canary.76
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/src/api/modules/admin/admin.module.d.ts +180 -177
- package/dist/src/api/modules/admin/admin.module.d.ts.map +1 -1
- package/dist/src/api/modules/admin/admin.module.js +2 -1
- package/dist/src/api/modules/admin/admin.module.js.map +1 -0
- package/dist/src/api/modules/admin/categories/categories.admin.module.d.ts +80 -77
- package/dist/src/api/modules/admin/categories/categories.admin.module.d.ts.map +1 -1
- package/dist/src/api/modules/admin/categories/categories.admin.module.js +2 -1
- package/dist/src/api/modules/admin/categories/categories.admin.module.js.map +1 -0
- package/dist/src/api/modules/admin/categories/routes/create.route.d.ts +34 -31
- package/dist/src/api/modules/admin/categories/routes/create.route.d.ts.map +1 -1
- package/dist/src/api/modules/admin/categories/routes/create.route.js +2 -1
- package/dist/src/api/modules/admin/categories/routes/create.route.js.map +1 -0
- package/dist/src/api/modules/admin/categories/routes/delete.route.d.ts +18 -15
- package/dist/src/api/modules/admin/categories/routes/delete.route.d.ts.map +1 -1
- package/dist/src/api/modules/admin/categories/routes/delete.route.js +2 -1
- package/dist/src/api/modules/admin/categories/routes/delete.route.js.map +1 -0
- package/dist/src/api/modules/admin/categories/routes/edit.route.d.ts +38 -35
- package/dist/src/api/modules/admin/categories/routes/edit.route.d.ts.map +1 -1
- package/dist/src/api/modules/admin/categories/routes/edit.route.js +2 -1
- package/dist/src/api/modules/admin/categories/routes/edit.route.js.map +1 -0
- package/dist/src/api/modules/admin/posts/posts.admin.module.d.ts +93 -90
- package/dist/src/api/modules/admin/posts/posts.admin.module.d.ts.map +1 -1
- package/dist/src/api/modules/admin/posts/posts.admin.module.js +2 -1
- package/dist/src/api/modules/admin/posts/posts.admin.module.js.map +1 -0
- package/dist/src/api/modules/admin/posts/routes/create.route.d.ts +44 -41
- package/dist/src/api/modules/admin/posts/routes/create.route.d.ts.map +1 -1
- package/dist/src/api/modules/admin/posts/routes/create.route.js +2 -1
- package/dist/src/api/modules/admin/posts/routes/create.route.js.map +1 -0
- package/dist/src/api/modules/admin/posts/routes/delete.route.d.ts +18 -15
- package/dist/src/api/modules/admin/posts/routes/delete.route.d.ts.map +1 -1
- package/dist/src/api/modules/admin/posts/routes/delete.route.js +2 -1
- package/dist/src/api/modules/admin/posts/routes/delete.route.js.map +1 -0
- package/dist/src/api/modules/admin/posts/routes/edit.route.d.ts +43 -40
- package/dist/src/api/modules/admin/posts/routes/edit.route.d.ts.map +1 -1
- package/dist/src/api/modules/admin/posts/routes/edit.route.js +2 -1
- package/dist/src/api/modules/admin/posts/routes/edit.route.js.map +1 -0
- package/dist/src/api/modules/categories/categories.module.d.ts +64 -61
- package/dist/src/api/modules/categories/categories.module.d.ts.map +1 -1
- package/dist/src/api/modules/categories/categories.module.js +2 -1
- package/dist/src/api/modules/categories/categories.module.js.map +1 -0
- package/dist/src/api/modules/categories/routes/get.route.d.ts +45 -42
- package/dist/src/api/modules/categories/routes/get.route.d.ts.map +1 -1
- package/dist/src/api/modules/categories/routes/get.route.js +2 -1
- package/dist/src/api/modules/categories/routes/get.route.js.map +1 -0
- package/dist/src/api/modules/categories/test.route.d.ts +23 -20
- package/dist/src/api/modules/categories/test.route.d.ts.map +1 -1
- package/dist/src/api/modules/categories/test.route.js +2 -1
- package/dist/src/api/modules/categories/test.route.js.map +1 -0
- package/dist/src/api/modules/posts/posts.module.d.ts +54 -51
- package/dist/src/api/modules/posts/posts.module.d.ts.map +1 -1
- package/dist/src/api/modules/posts/posts.module.js +2 -1
- package/dist/src/api/modules/posts/posts.module.js.map +1 -0
- package/dist/src/api/modules/posts/routes/get.route.d.ts +64 -61
- package/dist/src/api/modules/posts/routes/get.route.d.ts.map +1 -1
- package/dist/src/api/modules/posts/routes/get.route.js +2 -1
- package/dist/src/api/modules/posts/routes/get.route.js.map +1 -0
- package/dist/src/config.api.d.ts +4 -1
- package/dist/src/config.api.d.ts.map +1 -1
- package/dist/src/config.api.js +2 -1
- package/dist/src/config.api.js.map +1 -0
- package/dist/src/config.d.ts +4 -1
- package/dist/src/config.d.ts.map +1 -1
- package/dist/src/config.js +2 -1
- package/dist/src/config.js.map +1 -0
- package/dist/src/const.d.ts +5 -2
- package/dist/src/const.d.ts.map +1 -1
- package/dist/src/const.js +2 -1
- package/dist/src/const.js.map +1 -0
- package/dist/src/database/categories.d.ts +98 -95
- package/dist/src/database/categories.d.ts.map +1 -1
- package/dist/src/database/categories.js +2 -1
- package/dist/src/database/categories.js.map +1 -0
- package/dist/src/database/index.d.ts +4 -4
- package/dist/src/database/index.js +1 -1
- package/dist/src/database/posts.d.ts +132 -129
- package/dist/src/database/posts.d.ts.map +1 -1
- package/dist/src/database/posts.js +2 -1
- package/dist/src/database/posts.js.map +1 -0
- package/dist/src/database/relations.d.ts +7 -4
- package/dist/src/database/relations.d.ts.map +1 -1
- package/dist/src/database/relations.js +2 -1
- package/dist/src/database/relations.js.map +1 -0
- package/dist/src/emails/test-template.d.ts +20 -18
- package/dist/src/emails/test-template.d.ts.map +1 -1
- package/dist/src/emails/test-template.js +2 -1
- package/dist/src/emails/test-template.js.map +1 -0
- package/dist/src/routes/admin/blog/categories/page.d.ts +7 -5
- package/dist/src/routes/admin/blog/categories/page.d.ts.map +1 -1
- package/dist/src/routes/admin/blog/categories/page.js +2 -1
- package/dist/src/routes/admin/blog/categories/page.js.map +1 -0
- package/dist/src/routes/admin/blog/posts/page.d.ts +7 -5
- package/dist/src/routes/admin/blog/posts/page.d.ts.map +1 -1
- package/dist/src/routes/admin/blog/posts/page.js +2 -1
- package/dist/src/routes/admin/blog/posts/page.js.map +1 -0
- package/dist/src/views/admin/categories/actions/actions.d.ts +4 -1
- package/dist/src/views/admin/categories/actions/actions.d.ts.map +1 -1
- package/dist/src/views/admin/categories/actions/actions.js +2 -1
- package/dist/src/views/admin/categories/actions/actions.js.map +1 -0
- package/dist/src/views/admin/categories/actions/create-edit/create-edit.d.ts +8 -5
- package/dist/src/views/admin/categories/actions/create-edit/create-edit.d.ts.map +1 -1
- package/dist/src/views/admin/categories/actions/create-edit/create-edit.js +2 -1
- package/dist/src/views/admin/categories/actions/create-edit/create-edit.js.map +1 -0
- package/dist/src/views/admin/categories/actions/create-edit/mutation-api.d.ts +10 -7
- package/dist/src/views/admin/categories/actions/create-edit/mutation-api.d.ts.map +1 -1
- package/dist/src/views/admin/categories/actions/create-edit/mutation-api.js +2 -1
- package/dist/src/views/admin/categories/actions/create-edit/mutation-api.js.map +1 -0
- package/dist/src/views/admin/categories/table/actions/delete/delete-action.d.ts +7 -4
- package/dist/src/views/admin/categories/table/actions/delete/delete-action.d.ts.map +1 -1
- package/dist/src/views/admin/categories/table/actions/delete/delete-action.js +2 -1
- package/dist/src/views/admin/categories/table/actions/delete/delete-action.js.map +1 -0
- package/dist/src/views/admin/categories/table/actions/delete/mutation-api.d.ts +5 -2
- package/dist/src/views/admin/categories/table/actions/delete/mutation-api.d.ts.map +1 -1
- package/dist/src/views/admin/categories/table/actions/delete/mutation-api.js +2 -1
- package/dist/src/views/admin/categories/table/actions/delete/mutation-api.js.map +1 -0
- package/dist/src/views/admin/categories/table/actions/edit-action.d.ts +8 -5
- package/dist/src/views/admin/categories/table/actions/edit-action.d.ts.map +1 -1
- package/dist/src/views/admin/categories/table/actions/edit-action.js +2 -1
- package/dist/src/views/admin/categories/table/actions/edit-action.js.map +1 -0
- package/dist/src/views/admin/categories/table/categories-admin-view.d.ts +5 -2
- package/dist/src/views/admin/categories/table/categories-admin-view.d.ts.map +1 -1
- package/dist/src/views/admin/categories/table/categories-admin-view.js +2 -1
- package/dist/src/views/admin/categories/table/categories-admin-view.js.map +1 -0
- package/dist/src/views/admin/posts/actions/actions.d.ts +4 -1
- package/dist/src/views/admin/posts/actions/actions.d.ts.map +1 -1
- package/dist/src/views/admin/posts/actions/actions.js +2 -1
- package/dist/src/views/admin/posts/actions/actions.js.map +1 -0
- package/dist/src/views/admin/posts/actions/create-edit/create-edit.d.ts +8 -5
- package/dist/src/views/admin/posts/actions/create-edit/create-edit.d.ts.map +1 -1
- package/dist/src/views/admin/posts/actions/create-edit/create-edit.js +2 -1
- package/dist/src/views/admin/posts/actions/create-edit/create-edit.js.map +1 -0
- package/dist/src/views/admin/posts/actions/create-edit/mutation-api.d.ts +10 -7
- package/dist/src/views/admin/posts/actions/create-edit/mutation-api.d.ts.map +1 -1
- package/dist/src/views/admin/posts/actions/create-edit/mutation-api.js +2 -1
- package/dist/src/views/admin/posts/actions/create-edit/mutation-api.js.map +1 -0
- package/dist/src/views/admin/posts/table/actions/delete/delete-action.d.ts +7 -4
- package/dist/src/views/admin/posts/table/actions/delete/delete-action.d.ts.map +1 -1
- package/dist/src/views/admin/posts/table/actions/delete/delete-action.js +2 -1
- package/dist/src/views/admin/posts/table/actions/delete/delete-action.js.map +1 -0
- package/dist/src/views/admin/posts/table/actions/delete/mutation-api.d.ts +5 -2
- package/dist/src/views/admin/posts/table/actions/delete/mutation-api.d.ts.map +1 -1
- package/dist/src/views/admin/posts/table/actions/delete/mutation-api.js +2 -1
- package/dist/src/views/admin/posts/table/actions/delete/mutation-api.js.map +1 -0
- package/dist/src/views/admin/posts/table/actions/edit-action.d.ts +8 -5
- package/dist/src/views/admin/posts/table/actions/edit-action.d.ts.map +1 -1
- package/dist/src/views/admin/posts/table/actions/edit-action.js +2 -1
- package/dist/src/views/admin/posts/table/actions/edit-action.js.map +1 -0
- package/dist/src/views/admin/posts/table/posts-admin-view.d.ts +5 -2
- package/dist/src/views/admin/posts/table/posts-admin-view.d.ts.map +1 -1
- package/dist/src/views/admin/posts/table/posts-admin-view.js +2 -1
- package/dist/src/views/admin/posts/table/posts-admin-view.js.map +1 -0
- package/package.json +12 -15
- package/src/locales/en.json +11 -1
- package/src/routes/admin/blog/categories/page.tsx +19 -2
- package/src/routes/admin/blog/posts/page.tsx +19 -2
- package/tsconfig.build.json +5 -0
- package/dist/src/database/index.d.ts.map +0 -1
|
@@ -1,199 +1,202 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
1
|
+
//#region src/api/modules/admin/admin.module.d.ts
|
|
2
|
+
declare const adminModule: import("@vitnode/core/api/lib/module").BuildModuleReturn<"@vitnode/blog", "admin", [], (import("@vitnode/core/api/lib/module").BuildModuleReturn<"@vitnode/blog", "posts", [import("@vitnode/core/api/lib/route").Route<"@vitnode/blog", {
|
|
3
|
+
method: "put";
|
|
4
|
+
path: "/{id}";
|
|
5
|
+
request: {
|
|
6
|
+
params: import("zod").ZodObject<{
|
|
7
|
+
id: import("zod").ZodPipe<import("zod").ZodString, import("zod").ZodTransform<number, string>>;
|
|
8
|
+
}, import("zod/v4/core").$strip>;
|
|
9
|
+
body: {
|
|
10
|
+
content: {
|
|
11
|
+
"application/json": {
|
|
12
|
+
schema: import("zod").ZodObject<{
|
|
13
|
+
title: import("zod").ZodString;
|
|
14
|
+
content: import("zod").ZodString;
|
|
15
|
+
categoryId: import("zod").ZodNumber;
|
|
16
|
+
}, import("zod/v4/core").$strip>;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
14
19
|
};
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
20
|
+
};
|
|
21
|
+
responses: {
|
|
22
|
+
200: {
|
|
23
|
+
content: {
|
|
24
|
+
"application/json": {
|
|
25
|
+
schema: import("zod").ZodObject<{
|
|
26
|
+
id: import("zod").ZodNumber;
|
|
27
|
+
title: import("zod").ZodString;
|
|
28
|
+
titleSeo: import("zod").ZodString;
|
|
29
|
+
content: import("zod").ZodString;
|
|
30
|
+
categoryId: import("zod").ZodNumber;
|
|
31
|
+
createdAt: import("zod").ZodDate;
|
|
32
|
+
updatedAt: import("zod").ZodDate;
|
|
33
|
+
}, import("zod/v4/core").$strip>;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
description: string;
|
|
37
|
+
};
|
|
38
|
+
400: {
|
|
39
|
+
description: string;
|
|
32
40
|
};
|
|
41
|
+
404: {
|
|
42
|
+
description: string;
|
|
43
|
+
};
|
|
44
|
+
};
|
|
33
45
|
} & {
|
|
34
|
-
|
|
46
|
+
path: string;
|
|
35
47
|
}>, import("@vitnode/core/api/lib/route").Route<"@vitnode/blog", {
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
};
|
|
50
|
-
};
|
|
48
|
+
method: "post";
|
|
49
|
+
path: "/";
|
|
50
|
+
request: {
|
|
51
|
+
body: {
|
|
52
|
+
content: {
|
|
53
|
+
"application/json": {
|
|
54
|
+
schema: import("zod").ZodObject<{
|
|
55
|
+
title: import("zod").ZodString;
|
|
56
|
+
content: import("zod").ZodString;
|
|
57
|
+
categoryId: import("zod").ZodNumber;
|
|
58
|
+
}, import("zod/v4/core").$strip>;
|
|
59
|
+
};
|
|
60
|
+
};
|
|
51
61
|
};
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
62
|
+
};
|
|
63
|
+
responses: {
|
|
64
|
+
201: {
|
|
65
|
+
content: {
|
|
66
|
+
"application/json": {
|
|
67
|
+
schema: import("zod").ZodObject<{
|
|
68
|
+
id: import("zod").ZodNumber;
|
|
69
|
+
title: import("zod").ZodString;
|
|
70
|
+
titleSeo: import("zod").ZodString;
|
|
71
|
+
content: import("zod").ZodString;
|
|
72
|
+
categoryId: import("zod").ZodNumber;
|
|
73
|
+
createdAt: import("zod").ZodDate;
|
|
74
|
+
updatedAt: import("zod").ZodDate;
|
|
75
|
+
}, import("zod/v4/core").$strip>;
|
|
76
|
+
};
|
|
77
|
+
};
|
|
78
|
+
description: string;
|
|
79
|
+
};
|
|
80
|
+
400: {
|
|
81
|
+
description: string;
|
|
82
|
+
};
|
|
83
|
+
404: {
|
|
84
|
+
description: string;
|
|
72
85
|
};
|
|
86
|
+
};
|
|
73
87
|
} & {
|
|
74
|
-
|
|
88
|
+
path: string;
|
|
75
89
|
}>, import("@vitnode/core/api/lib/route").Route<"@vitnode/blog", {
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
};
|
|
90
|
+
method: "delete";
|
|
91
|
+
path: "/{id}";
|
|
92
|
+
request: {
|
|
93
|
+
params: import("zod").ZodObject<{
|
|
94
|
+
id: import("zod").ZodPipe<import("zod").ZodString, import("zod").ZodTransform<number, string>>;
|
|
95
|
+
}, import("zod/v4/core").$strip>;
|
|
96
|
+
};
|
|
97
|
+
responses: {
|
|
98
|
+
204: {
|
|
99
|
+
description: string;
|
|
100
|
+
};
|
|
101
|
+
404: {
|
|
102
|
+
description: string;
|
|
90
103
|
};
|
|
104
|
+
};
|
|
91
105
|
} & {
|
|
92
|
-
|
|
93
|
-
}>], import("@vitnode/core/api/lib/module").BaseBuildModuleReturn<"@vitnode/blog", string, import("@vitnode/core/api/lib/route").Route<"@vitnode/blog", import("@hono/zod-openapi").RouteConfig>[]>[]> | import("@vitnode/core/api/lib/module").BuildModuleReturn<"@vitnode/blog", "
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
content: import("zod").ZodString;
|
|
106
|
-
categoryId: import("zod").ZodNumber;
|
|
107
|
-
}, import("zod/v4/core").$strip>;
|
|
108
|
-
};
|
|
109
|
-
};
|
|
110
|
-
};
|
|
106
|
+
path: string;
|
|
107
|
+
}>], import("@vitnode/core/api/lib/module").BaseBuildModuleReturn<"@vitnode/blog", string, import("@vitnode/core/api/lib/route").Route<"@vitnode/blog", import("@hono/zod-openapi").RouteConfig>[]>[]> | import("@vitnode/core/api/lib/module").BuildModuleReturn<"@vitnode/blog", "categories", [import("@vitnode/core/api/lib/route").Route<"@vitnode/blog", {
|
|
108
|
+
method: "post";
|
|
109
|
+
path: "/";
|
|
110
|
+
request: {
|
|
111
|
+
body: {
|
|
112
|
+
content: {
|
|
113
|
+
"application/json": {
|
|
114
|
+
schema: import("zod").ZodObject<{
|
|
115
|
+
title: import("zod").ZodString;
|
|
116
|
+
}, import("zod/v4/core").$strip>;
|
|
117
|
+
};
|
|
118
|
+
};
|
|
111
119
|
};
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
};
|
|
127
|
-
description: string;
|
|
128
|
-
};
|
|
129
|
-
400: {
|
|
130
|
-
description: string;
|
|
131
|
-
};
|
|
132
|
-
404: {
|
|
133
|
-
description: string;
|
|
134
|
-
};
|
|
120
|
+
};
|
|
121
|
+
responses: {
|
|
122
|
+
201: {
|
|
123
|
+
content: {
|
|
124
|
+
"application/json": {
|
|
125
|
+
schema: import("zod").ZodObject<{
|
|
126
|
+
id: import("zod").ZodNumber;
|
|
127
|
+
title: import("zod").ZodString;
|
|
128
|
+
createdAt: import("zod").ZodDate;
|
|
129
|
+
updatedAt: import("zod").ZodDate;
|
|
130
|
+
}, import("zod/v4/core").$strip>;
|
|
131
|
+
};
|
|
132
|
+
};
|
|
133
|
+
description: string;
|
|
135
134
|
};
|
|
135
|
+
400: {
|
|
136
|
+
description: string;
|
|
137
|
+
};
|
|
138
|
+
};
|
|
136
139
|
} & {
|
|
137
|
-
|
|
140
|
+
path: string;
|
|
138
141
|
}>, import("@vitnode/core/api/lib/route").Route<"@vitnode/blog", {
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
142
|
+
method: "put";
|
|
143
|
+
path: "/{id}";
|
|
144
|
+
request: {
|
|
145
|
+
params: import("zod").ZodObject<{
|
|
146
|
+
id: import("zod").ZodPipe<import("zod").ZodString, import("zod").ZodTransform<number, string>>;
|
|
147
|
+
}, import("zod/v4/core").$strip>;
|
|
148
|
+
body: {
|
|
149
|
+
content: {
|
|
150
|
+
"application/json": {
|
|
151
|
+
schema: import("zod").ZodObject<{
|
|
152
|
+
title: import("zod").ZodString;
|
|
153
|
+
}, import("zod/v4/core").$strip>;
|
|
154
|
+
};
|
|
155
|
+
};
|
|
153
156
|
};
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
404: {
|
|
175
|
-
description: string;
|
|
176
|
-
};
|
|
157
|
+
};
|
|
158
|
+
responses: {
|
|
159
|
+
200: {
|
|
160
|
+
content: {
|
|
161
|
+
"application/json": {
|
|
162
|
+
schema: import("zod").ZodObject<{
|
|
163
|
+
id: import("zod").ZodNumber;
|
|
164
|
+
title: import("zod").ZodString;
|
|
165
|
+
createdAt: import("zod").ZodDate;
|
|
166
|
+
updatedAt: import("zod").ZodDate;
|
|
167
|
+
}, import("zod/v4/core").$strip>;
|
|
168
|
+
};
|
|
169
|
+
};
|
|
170
|
+
description: string;
|
|
171
|
+
};
|
|
172
|
+
400: {
|
|
173
|
+
description: string;
|
|
174
|
+
};
|
|
175
|
+
404: {
|
|
176
|
+
description: string;
|
|
177
177
|
};
|
|
178
|
+
};
|
|
178
179
|
} & {
|
|
179
|
-
|
|
180
|
+
path: string;
|
|
180
181
|
}>, import("@vitnode/core/api/lib/route").Route<"@vitnode/blog", {
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
};
|
|
182
|
+
method: "delete";
|
|
183
|
+
path: "/{id}";
|
|
184
|
+
request: {
|
|
185
|
+
params: import("zod").ZodObject<{
|
|
186
|
+
id: import("zod").ZodPipe<import("zod").ZodString, import("zod").ZodTransform<number, string>>;
|
|
187
|
+
}, import("zod/v4/core").$strip>;
|
|
188
|
+
};
|
|
189
|
+
responses: {
|
|
190
|
+
204: {
|
|
191
|
+
description: string;
|
|
192
|
+
};
|
|
193
|
+
404: {
|
|
194
|
+
description: string;
|
|
195
195
|
};
|
|
196
|
+
};
|
|
196
197
|
} & {
|
|
197
|
-
|
|
198
|
+
path: string;
|
|
198
199
|
}>], import("@vitnode/core/api/lib/module").BaseBuildModuleReturn<"@vitnode/blog", string, import("@vitnode/core/api/lib/route").Route<"@vitnode/blog", import("@hono/zod-openapi").RouteConfig>[]>[]>)[]>;
|
|
200
|
+
//#endregion
|
|
201
|
+
export { adminModule };
|
|
199
202
|
//# sourceMappingURL=admin.module.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"admin.module.d.ts","
|
|
1
|
+
{"version":3,"file":"admin.module.d.ts","names":[],"sources":["../../../../../src/api/modules/admin/admin.module.ts"],"mappings":";cAMa,oDAAW,wFAAA,mFAAA"}
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{CONFIG_PLUGIN as e}from"../../../const.js";import{categoriesAdminModule as t}from"./categories/categories.admin.module.js";import{postsAdminModule as n}from"./posts/posts.admin.module.js";import{buildModule as r}from"@vitnode/core/api/lib/module";const i=r({pluginId:e.pluginId,name:`admin`,modules:[t,n],routes:[]});export{i as adminModule};
|
|
2
|
+
//# sourceMappingURL=admin.module.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"admin.module.js","names":[],"sources":["../../../../../src/api/modules/admin/admin.module.ts"],"sourcesContent":["import { buildModule } from \"@vitnode/core/api/lib/module\";\n\nimport { CONFIG_PLUGIN } from \"../../../const\";\nimport { categoriesAdminModule } from \"./categories/categories.admin.module\";\nimport { postsAdminModule } from \"./posts/posts.admin.module\";\n\nexport const adminModule = buildModule({\n pluginId: CONFIG_PLUGIN.pluginId,\n name: \"admin\",\n modules: [categoriesAdminModule, postsAdminModule],\n routes: [],\n});\n"],"mappings":"8PAMA,MAAa,EAAc,EAAY,CACrC,SAAU,EAAc,SACxB,KAAM,QACN,QAAS,CAAC,EAAuB,CAAgB,EACjD,OAAQ,CAAC,CACX,CAAC"}
|
|
@@ -1,94 +1,97 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
};
|
|
1
|
+
//#region src/api/modules/admin/categories/categories.admin.module.d.ts
|
|
2
|
+
declare const categoriesAdminModule: import("@vitnode/core/api/lib/module").BuildModuleReturn<"@vitnode/blog", "categories", [import("@vitnode/core/api/lib/route").Route<"@vitnode/blog", {
|
|
3
|
+
method: "post";
|
|
4
|
+
path: "/";
|
|
5
|
+
request: {
|
|
6
|
+
body: {
|
|
7
|
+
content: {
|
|
8
|
+
"application/json": {
|
|
9
|
+
schema: import("zod").ZodObject<{
|
|
10
|
+
title: import("zod").ZodString;
|
|
11
|
+
}, import("zod/v4/core").$strip>;
|
|
13
12
|
};
|
|
13
|
+
};
|
|
14
14
|
};
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
};
|
|
27
|
-
description: string;
|
|
28
|
-
};
|
|
29
|
-
400: {
|
|
30
|
-
description: string;
|
|
15
|
+
};
|
|
16
|
+
responses: {
|
|
17
|
+
201: {
|
|
18
|
+
content: {
|
|
19
|
+
"application/json": {
|
|
20
|
+
schema: import("zod").ZodObject<{
|
|
21
|
+
id: import("zod").ZodNumber;
|
|
22
|
+
title: import("zod").ZodString;
|
|
23
|
+
createdAt: import("zod").ZodDate;
|
|
24
|
+
updatedAt: import("zod").ZodDate;
|
|
25
|
+
}, import("zod/v4/core").$strip>;
|
|
31
26
|
};
|
|
27
|
+
};
|
|
28
|
+
description: string;
|
|
29
|
+
};
|
|
30
|
+
400: {
|
|
31
|
+
description: string;
|
|
32
32
|
};
|
|
33
|
+
};
|
|
33
34
|
} & {
|
|
34
|
-
|
|
35
|
+
path: string;
|
|
35
36
|
}>, import("@vitnode/core/api/lib/route").Route<"@vitnode/blog", {
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
};
|
|
49
|
-
};
|
|
37
|
+
method: "put";
|
|
38
|
+
path: "/{id}";
|
|
39
|
+
request: {
|
|
40
|
+
params: import("zod").ZodObject<{
|
|
41
|
+
id: import("zod").ZodPipe<import("zod").ZodString, import("zod").ZodTransform<number, string>>;
|
|
42
|
+
}, import("zod/v4/core").$strip>;
|
|
43
|
+
body: {
|
|
44
|
+
content: {
|
|
45
|
+
"application/json": {
|
|
46
|
+
schema: import("zod").ZodObject<{
|
|
47
|
+
title: import("zod").ZodString;
|
|
48
|
+
}, import("zod/v4/core").$strip>;
|
|
50
49
|
};
|
|
50
|
+
};
|
|
51
51
|
};
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
};
|
|
64
|
-
description: string;
|
|
65
|
-
};
|
|
66
|
-
400: {
|
|
67
|
-
description: string;
|
|
68
|
-
};
|
|
69
|
-
404: {
|
|
70
|
-
description: string;
|
|
52
|
+
};
|
|
53
|
+
responses: {
|
|
54
|
+
200: {
|
|
55
|
+
content: {
|
|
56
|
+
"application/json": {
|
|
57
|
+
schema: import("zod").ZodObject<{
|
|
58
|
+
id: import("zod").ZodNumber;
|
|
59
|
+
title: import("zod").ZodString;
|
|
60
|
+
createdAt: import("zod").ZodDate;
|
|
61
|
+
updatedAt: import("zod").ZodDate;
|
|
62
|
+
}, import("zod/v4/core").$strip>;
|
|
71
63
|
};
|
|
64
|
+
};
|
|
65
|
+
description: string;
|
|
72
66
|
};
|
|
67
|
+
400: {
|
|
68
|
+
description: string;
|
|
69
|
+
};
|
|
70
|
+
404: {
|
|
71
|
+
description: string;
|
|
72
|
+
};
|
|
73
|
+
};
|
|
73
74
|
} & {
|
|
74
|
-
|
|
75
|
+
path: string;
|
|
75
76
|
}>, import("@vitnode/core/api/lib/route").Route<"@vitnode/blog", {
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
77
|
+
method: "delete";
|
|
78
|
+
path: "/{id}";
|
|
79
|
+
request: {
|
|
80
|
+
params: import("zod").ZodObject<{
|
|
81
|
+
id: import("zod").ZodPipe<import("zod").ZodString, import("zod").ZodTransform<number, string>>;
|
|
82
|
+
}, import("zod/v4/core").$strip>;
|
|
83
|
+
};
|
|
84
|
+
responses: {
|
|
85
|
+
204: {
|
|
86
|
+
description: string;
|
|
82
87
|
};
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
description: string;
|
|
86
|
-
};
|
|
87
|
-
404: {
|
|
88
|
-
description: string;
|
|
89
|
-
};
|
|
88
|
+
404: {
|
|
89
|
+
description: string;
|
|
90
90
|
};
|
|
91
|
+
};
|
|
91
92
|
} & {
|
|
92
|
-
|
|
93
|
+
path: string;
|
|
93
94
|
}>], import("@vitnode/core/api/lib/module").BaseBuildModuleReturn<"@vitnode/blog", string, import("@vitnode/core/api/lib/route").Route<"@vitnode/blog", import("@hono/zod-openapi").RouteConfig>[]>[]>;
|
|
95
|
+
//#endregion
|
|
96
|
+
export { categoriesAdminModule };
|
|
94
97
|
//# sourceMappingURL=categories.admin.module.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"categories.admin.module.d.ts","
|
|
1
|
+
{"version":3,"file":"categories.admin.module.d.ts","names":[],"sources":["../../../../../../src/api/modules/admin/categories/categories.admin.module.ts"],"mappings":";cAOa,8DAAqB,wFAAA"}
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{CONFIG_PLUGIN as e}from"../../../../const.js";import{createCategoryRoute as t}from"./routes/create.route.js";import{deleteCategoryRoute as n}from"./routes/delete.route.js";import{editCategoryRoute as r}from"./routes/edit.route.js";import{buildModule as i}from"@vitnode/core/api/lib/module";const a=i({pluginId:e.pluginId,name:`categories`,routes:[t,r,n]});export{a as categoriesAdminModule};
|
|
2
|
+
//# sourceMappingURL=categories.admin.module.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"categories.admin.module.js","names":[],"sources":["../../../../../../src/api/modules/admin/categories/categories.admin.module.ts"],"sourcesContent":["import { buildModule } from \"@vitnode/core/api/lib/module\";\n\nimport { CONFIG_PLUGIN } from \"../../../../const\";\nimport { createCategoryRoute } from \"./routes/create.route\";\nimport { deleteCategoryRoute } from \"./routes/delete.route\";\nimport { editCategoryRoute } from \"./routes/edit.route\";\n\nexport const categoriesAdminModule = buildModule({\n pluginId: CONFIG_PLUGIN.pluginId,\n name: \"categories\",\n routes: [createCategoryRoute, editCategoryRoute, deleteCategoryRoute],\n});\n"],"mappings":"ySAOA,MAAa,EAAwB,EAAY,CAC/C,SAAU,EAAc,SACxB,KAAM,aACN,OAAQ,CAAC,EAAqB,EAAmB,CAAmB,CACtE,CAAC"}
|