@vitnode/blog 1.2.0-canary.55 → 1.2.0-canary.56
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 +161 -309
- package/dist/src/api/modules/admin/admin.module.d.ts.map +1 -1
- package/dist/src/api/modules/admin/categories/categories.admin.module.d.ts +75 -143
- package/dist/src/api/modules/admin/categories/categories.admin.module.d.ts.map +1 -1
- package/dist/src/api/modules/admin/categories/routes/create.route.d.ts +28 -49
- package/dist/src/api/modules/admin/categories/routes/create.route.d.ts.map +1 -1
- package/dist/src/api/modules/admin/categories/routes/delete.route.d.ts +16 -31
- package/dist/src/api/modules/admin/categories/routes/delete.route.d.ts.map +1 -1
- package/dist/src/api/modules/admin/categories/routes/edit.route.d.ts +34 -66
- package/dist/src/api/modules/admin/categories/routes/edit.route.d.ts.map +1 -1
- package/dist/src/api/modules/admin/posts/posts.admin.module.d.ts +87 -167
- package/dist/src/api/modules/admin/posts/posts.admin.module.d.ts.map +1 -1
- package/dist/src/api/modules/admin/posts/routes/create.route.d.ts +36 -63
- package/dist/src/api/modules/admin/posts/routes/create.route.d.ts.map +1 -1
- package/dist/src/api/modules/admin/posts/routes/delete.route.d.ts +16 -31
- package/dist/src/api/modules/admin/posts/routes/delete.route.d.ts.map +1 -1
- package/dist/src/api/modules/admin/posts/routes/edit.route.d.ts +39 -77
- package/dist/src/api/modules/admin/posts/routes/edit.route.d.ts.map +1 -1
- package/dist/src/api/modules/categories/categories.module.d.ts +59 -104
- package/dist/src/api/modules/categories/categories.module.d.ts.map +1 -1
- package/dist/src/api/modules/categories/routes/get.route.d.ts +41 -82
- package/dist/src/api/modules/categories/routes/get.route.d.ts.map +1 -1
- package/dist/src/api/modules/categories/test.route.d.ts +19 -23
- package/dist/src/api/modules/categories/test.route.d.ts.map +1 -1
- package/dist/src/api/modules/posts/posts.module.d.ts +46 -94
- package/dist/src/api/modules/posts/posts.module.d.ts.map +1 -1
- package/dist/src/api/modules/posts/routes/get.route.d.ts +46 -94
- package/dist/src/api/modules/posts/routes/get.route.d.ts.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +20 -20
|
@@ -1,187 +1,107 @@
|
|
|
1
|
-
export declare const postsAdminModule: import("@vitnode/core/api/lib/module").BuildModuleReturn<"@vitnode/blog", "posts", [{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
title: string;
|
|
17
|
-
content: string;
|
|
18
|
-
categoryId: number;
|
|
19
|
-
};
|
|
20
|
-
};
|
|
21
|
-
out: {
|
|
22
|
-
json: {
|
|
23
|
-
title: string;
|
|
24
|
-
content: string;
|
|
25
|
-
categoryId: number;
|
|
26
|
-
};
|
|
27
|
-
};
|
|
28
|
-
}>) => Promise<Response & import("hono").TypedResponse<{
|
|
29
|
-
id: number;
|
|
30
|
-
title: string;
|
|
31
|
-
titleSeo: string;
|
|
32
|
-
content: string;
|
|
33
|
-
categoryId: number;
|
|
34
|
-
createdAt: string;
|
|
35
|
-
updatedAt: string;
|
|
36
|
-
}, 400 | 200 | 404, "json">>;
|
|
37
|
-
pluginId: "@vitnode/blog";
|
|
38
|
-
route: {
|
|
39
|
-
method: "put";
|
|
40
|
-
path: "/{id}";
|
|
41
|
-
request: {
|
|
42
|
-
params: import("zod").ZodObject<{
|
|
43
|
-
id: import("zod").ZodPipe<import("zod").ZodString, import("zod").ZodTransform<number, string>>;
|
|
44
|
-
}, import("zod/v4/core").$strip>;
|
|
45
|
-
body: {
|
|
46
|
-
content: {
|
|
47
|
-
"application/json": {
|
|
48
|
-
schema: import("zod").ZodObject<{
|
|
49
|
-
title: import("zod").ZodString;
|
|
50
|
-
content: import("zod").ZodString;
|
|
51
|
-
categoryId: import("zod").ZodNumber;
|
|
52
|
-
}, import("zod/v4/core").$strip>;
|
|
53
|
-
};
|
|
1
|
+
export declare const postsAdminModule: import("@vitnode/core/api/lib/module").BuildModuleReturn<"@vitnode/blog", "posts", [import("@vitnode/core/api/lib/route").Route<"@vitnode/blog", {
|
|
2
|
+
method: "put";
|
|
3
|
+
path: "/{id}";
|
|
4
|
+
request: {
|
|
5
|
+
params: import("zod").ZodObject<{
|
|
6
|
+
id: import("zod").ZodPipe<import("zod").ZodString, import("zod").ZodTransform<number, string>>;
|
|
7
|
+
}, import("zod/v4/core").$strip>;
|
|
8
|
+
body: {
|
|
9
|
+
content: {
|
|
10
|
+
"application/json": {
|
|
11
|
+
schema: import("zod").ZodObject<{
|
|
12
|
+
title: import("zod").ZodString;
|
|
13
|
+
content: import("zod").ZodString;
|
|
14
|
+
categoryId: import("zod").ZodNumber;
|
|
15
|
+
}, import("zod/v4/core").$strip>;
|
|
54
16
|
};
|
|
55
17
|
};
|
|
56
18
|
};
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
}
|
|
19
|
+
};
|
|
20
|
+
responses: {
|
|
21
|
+
200: {
|
|
22
|
+
content: {
|
|
23
|
+
"application/json": {
|
|
24
|
+
schema: import("zod").ZodObject<{
|
|
25
|
+
id: import("zod").ZodNumber;
|
|
26
|
+
title: import("zod").ZodString;
|
|
27
|
+
titleSeo: import("zod").ZodString;
|
|
28
|
+
content: import("zod").ZodString;
|
|
29
|
+
categoryId: import("zod").ZodNumber;
|
|
30
|
+
createdAt: import("zod").ZodDate;
|
|
31
|
+
updatedAt: import("zod").ZodDate;
|
|
32
|
+
}, import("zod/v4/core").$strip>;
|
|
71
33
|
};
|
|
72
|
-
description: string;
|
|
73
|
-
};
|
|
74
|
-
400: {
|
|
75
|
-
description: string;
|
|
76
|
-
};
|
|
77
|
-
404: {
|
|
78
|
-
description: string;
|
|
79
34
|
};
|
|
35
|
+
description: string;
|
|
80
36
|
};
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
};
|
|
84
|
-
}, {
|
|
85
|
-
handler: (c: import("hono").Context<import("@vitnode/core/api/middlewares/global.middleware").EnvVitNode, "/", {
|
|
86
|
-
in: {
|
|
87
|
-
json: {
|
|
88
|
-
title: string;
|
|
89
|
-
content: string;
|
|
90
|
-
categoryId: number;
|
|
91
|
-
};
|
|
37
|
+
400: {
|
|
38
|
+
description: string;
|
|
92
39
|
};
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
title: string;
|
|
96
|
-
content: string;
|
|
97
|
-
categoryId: number;
|
|
98
|
-
};
|
|
40
|
+
404: {
|
|
41
|
+
description: string;
|
|
99
42
|
};
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
content: {
|
|
116
|
-
"application/json": {
|
|
117
|
-
schema: import("zod").ZodObject<{
|
|
118
|
-
title: import("zod").ZodString;
|
|
119
|
-
content: import("zod").ZodString;
|
|
120
|
-
categoryId: import("zod").ZodNumber;
|
|
121
|
-
}, import("zod/v4/core").$strip>;
|
|
122
|
-
};
|
|
43
|
+
};
|
|
44
|
+
} & {
|
|
45
|
+
path: string;
|
|
46
|
+
}>, import("@vitnode/core/api/lib/route").Route<"@vitnode/blog", {
|
|
47
|
+
method: "post";
|
|
48
|
+
path: "/";
|
|
49
|
+
request: {
|
|
50
|
+
body: {
|
|
51
|
+
content: {
|
|
52
|
+
"application/json": {
|
|
53
|
+
schema: import("zod").ZodObject<{
|
|
54
|
+
title: import("zod").ZodString;
|
|
55
|
+
content: import("zod").ZodString;
|
|
56
|
+
categoryId: import("zod").ZodNumber;
|
|
57
|
+
}, import("zod/v4/core").$strip>;
|
|
123
58
|
};
|
|
124
59
|
};
|
|
125
60
|
};
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
}
|
|
61
|
+
};
|
|
62
|
+
responses: {
|
|
63
|
+
201: {
|
|
64
|
+
content: {
|
|
65
|
+
"application/json": {
|
|
66
|
+
schema: import("zod").ZodObject<{
|
|
67
|
+
id: import("zod").ZodNumber;
|
|
68
|
+
title: import("zod").ZodString;
|
|
69
|
+
titleSeo: import("zod").ZodString;
|
|
70
|
+
content: import("zod").ZodString;
|
|
71
|
+
categoryId: import("zod").ZodNumber;
|
|
72
|
+
createdAt: import("zod").ZodDate;
|
|
73
|
+
updatedAt: import("zod").ZodDate;
|
|
74
|
+
}, import("zod/v4/core").$strip>;
|
|
140
75
|
};
|
|
141
|
-
description: string;
|
|
142
|
-
};
|
|
143
|
-
400: {
|
|
144
|
-
description: string;
|
|
145
|
-
};
|
|
146
|
-
404: {
|
|
147
|
-
description: string;
|
|
148
76
|
};
|
|
77
|
+
description: string;
|
|
149
78
|
};
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
};
|
|
153
|
-
}, {
|
|
154
|
-
handler: (c: import("hono").Context<import("@vitnode/core/api/middlewares/global.middleware").EnvVitNode, "/:id", {
|
|
155
|
-
in: {
|
|
156
|
-
param: {
|
|
157
|
-
id: string;
|
|
158
|
-
};
|
|
79
|
+
400: {
|
|
80
|
+
description: string;
|
|
159
81
|
};
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
id: number;
|
|
163
|
-
};
|
|
82
|
+
404: {
|
|
83
|
+
description: string;
|
|
164
84
|
};
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
85
|
+
};
|
|
86
|
+
} & {
|
|
87
|
+
path: string;
|
|
88
|
+
}>, import("@vitnode/core/api/lib/route").Route<"@vitnode/blog", {
|
|
89
|
+
method: "delete";
|
|
90
|
+
path: "/{id}";
|
|
91
|
+
request: {
|
|
92
|
+
params: import("zod").ZodObject<{
|
|
93
|
+
id: import("zod").ZodPipe<import("zod").ZodString, import("zod").ZodTransform<number, string>>;
|
|
94
|
+
}, import("zod/v4/core").$strip>;
|
|
95
|
+
};
|
|
96
|
+
responses: {
|
|
97
|
+
204: {
|
|
98
|
+
description: string;
|
|
174
99
|
};
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
description: string;
|
|
178
|
-
};
|
|
179
|
-
404: {
|
|
180
|
-
description: string;
|
|
181
|
-
};
|
|
100
|
+
404: {
|
|
101
|
+
description: string;
|
|
182
102
|
};
|
|
183
|
-
} & {
|
|
184
|
-
getRoutingPath: () => "/:id";
|
|
185
103
|
};
|
|
186
|
-
}
|
|
104
|
+
} & {
|
|
105
|
+
path: string;
|
|
106
|
+
}>], import("@vitnode/core/api/lib/module").BaseBuildModuleReturn<"@vitnode/blog", string, import("@vitnode/core/api/lib/route").Route<"@vitnode/blog", import("@hono/zod-openapi").RouteConfig>[]>[]>;
|
|
187
107
|
//# sourceMappingURL=posts.admin.module.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"posts.admin.module.d.ts","sourceRoot":"","sources":["../../../../../../src/api/modules/admin/posts/posts.admin.module.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,gBAAgB
|
|
1
|
+
{"version":3,"file":"posts.admin.module.d.ts","sourceRoot":"","sources":["../../../../../../src/api/modules/admin/posts/posts.admin.module.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sMAI3B,CAAC"}
|
|
@@ -4,74 +4,47 @@ export declare const zodCreatePostSchema: z.ZodObject<{
|
|
|
4
4
|
content: z.ZodString;
|
|
5
5
|
categoryId: z.ZodNumber;
|
|
6
6
|
}, z.core.$strip>;
|
|
7
|
-
export declare const createPostRoute: {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
content: string;
|
|
20
|
-
categoryId: number;
|
|
21
|
-
};
|
|
22
|
-
};
|
|
23
|
-
}>) => Promise<Response & import("hono").TypedResponse<{
|
|
24
|
-
id: number;
|
|
25
|
-
title: string;
|
|
26
|
-
createdAt: string;
|
|
27
|
-
updatedAt: string;
|
|
28
|
-
titleSeo: string;
|
|
29
|
-
content: string;
|
|
30
|
-
categoryId: number;
|
|
31
|
-
}, 201, "json">>;
|
|
32
|
-
pluginId: "@vitnode/blog";
|
|
33
|
-
route: {
|
|
34
|
-
method: "post";
|
|
35
|
-
path: "/";
|
|
36
|
-
request: {
|
|
37
|
-
body: {
|
|
38
|
-
content: {
|
|
39
|
-
"application/json": {
|
|
40
|
-
schema: z.ZodObject<{
|
|
41
|
-
title: z.ZodString;
|
|
42
|
-
content: z.ZodString;
|
|
43
|
-
categoryId: z.ZodNumber;
|
|
44
|
-
}, z.core.$strip>;
|
|
45
|
-
};
|
|
7
|
+
export declare const createPostRoute: import("@vitnode/core/api/lib/route").Route<"@vitnode/blog", {
|
|
8
|
+
method: "post";
|
|
9
|
+
path: "/";
|
|
10
|
+
request: {
|
|
11
|
+
body: {
|
|
12
|
+
content: {
|
|
13
|
+
"application/json": {
|
|
14
|
+
schema: z.ZodObject<{
|
|
15
|
+
title: z.ZodString;
|
|
16
|
+
content: z.ZodString;
|
|
17
|
+
categoryId: z.ZodNumber;
|
|
18
|
+
}, z.core.$strip>;
|
|
46
19
|
};
|
|
47
20
|
};
|
|
48
21
|
};
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
}
|
|
22
|
+
};
|
|
23
|
+
responses: {
|
|
24
|
+
201: {
|
|
25
|
+
content: {
|
|
26
|
+
"application/json": {
|
|
27
|
+
schema: z.ZodObject<{
|
|
28
|
+
id: z.ZodNumber;
|
|
29
|
+
title: z.ZodString;
|
|
30
|
+
titleSeo: z.ZodString;
|
|
31
|
+
content: z.ZodString;
|
|
32
|
+
categoryId: z.ZodNumber;
|
|
33
|
+
createdAt: z.ZodDate;
|
|
34
|
+
updatedAt: z.ZodDate;
|
|
35
|
+
}, z.core.$strip>;
|
|
63
36
|
};
|
|
64
|
-
description: string;
|
|
65
|
-
};
|
|
66
|
-
400: {
|
|
67
|
-
description: string;
|
|
68
|
-
};
|
|
69
|
-
404: {
|
|
70
|
-
description: string;
|
|
71
37
|
};
|
|
38
|
+
description: string;
|
|
39
|
+
};
|
|
40
|
+
400: {
|
|
41
|
+
description: string;
|
|
42
|
+
};
|
|
43
|
+
404: {
|
|
44
|
+
description: string;
|
|
72
45
|
};
|
|
73
|
-
} & {
|
|
74
|
-
getRoutingPath: () => "/";
|
|
75
46
|
};
|
|
76
|
-
}
|
|
47
|
+
} & {
|
|
48
|
+
path: string;
|
|
49
|
+
}>;
|
|
77
50
|
//# sourceMappingURL=create.route.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create.route.d.ts","sourceRoot":"","sources":["../../../../../../../src/api/modules/admin/posts/routes/create.route.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,mBAAmB,CAAC;AAoBtC,eAAO,MAAM,mBAAmB;;;;iBAO9B,CAAC;AAEH,eAAO,MAAM,eAAe
|
|
1
|
+
{"version":3,"file":"create.route.d.ts","sourceRoot":"","sources":["../../../../../../../src/api/modules/admin/posts/routes/create.route.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,mBAAmB,CAAC;AAoBtC,eAAO,MAAM,mBAAmB;;;;iBAO9B,CAAC;AAEH,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA4E1B,CAAC"}
|
|
@@ -1,36 +1,21 @@
|
|
|
1
1
|
import { z } from "@hono/zod-openapi";
|
|
2
|
-
export declare const deletePostRoute: {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
};
|
|
14
|
-
}>) => Promise<Response & import("hono").TypedResponse<null, 204, "body">>;
|
|
15
|
-
pluginId: "@vitnode/blog";
|
|
16
|
-
route: {
|
|
17
|
-
method: "delete";
|
|
18
|
-
path: "/{id}";
|
|
19
|
-
request: {
|
|
20
|
-
params: z.ZodObject<{
|
|
21
|
-
id: z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>;
|
|
22
|
-
}, z.core.$strip>;
|
|
2
|
+
export declare const deletePostRoute: import("@vitnode/core/api/lib/route").Route<"@vitnode/blog", {
|
|
3
|
+
method: "delete";
|
|
4
|
+
path: "/{id}";
|
|
5
|
+
request: {
|
|
6
|
+
params: z.ZodObject<{
|
|
7
|
+
id: z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>;
|
|
8
|
+
}, z.core.$strip>;
|
|
9
|
+
};
|
|
10
|
+
responses: {
|
|
11
|
+
204: {
|
|
12
|
+
description: string;
|
|
23
13
|
};
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
description: string;
|
|
27
|
-
};
|
|
28
|
-
404: {
|
|
29
|
-
description: string;
|
|
30
|
-
};
|
|
14
|
+
404: {
|
|
15
|
+
description: string;
|
|
31
16
|
};
|
|
32
|
-
} & {
|
|
33
|
-
getRoutingPath: () => "/:id";
|
|
34
17
|
};
|
|
35
|
-
}
|
|
18
|
+
} & {
|
|
19
|
+
path: string;
|
|
20
|
+
}>;
|
|
36
21
|
//# sourceMappingURL=delete.route.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete.route.d.ts","sourceRoot":"","sources":["../../../../../../../src/api/modules/admin/posts/routes/delete.route.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,mBAAmB,CAAC;AAQtC,eAAO,MAAM,eAAe
|
|
1
|
+
{"version":3,"file":"delete.route.d.ts","sourceRoot":"","sources":["../../../../../../../src/api/modules/admin/posts/routes/delete.route.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,mBAAmB,CAAC;AAQtC,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;EAkC1B,CAAC"}
|
|
@@ -1,86 +1,48 @@
|
|
|
1
1
|
import { z } from "@hono/zod-openapi";
|
|
2
|
-
export declare const editPostRoute: {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
title: string;
|
|
18
|
-
content: string;
|
|
19
|
-
categoryId: number;
|
|
20
|
-
};
|
|
21
|
-
};
|
|
22
|
-
out: {
|
|
23
|
-
json: {
|
|
24
|
-
title: string;
|
|
25
|
-
content: string;
|
|
26
|
-
categoryId: number;
|
|
27
|
-
};
|
|
28
|
-
};
|
|
29
|
-
}>) => Promise<Response & import("hono").TypedResponse<{
|
|
30
|
-
id: number;
|
|
31
|
-
title: string;
|
|
32
|
-
titleSeo: string;
|
|
33
|
-
content: string;
|
|
34
|
-
categoryId: number;
|
|
35
|
-
createdAt: string;
|
|
36
|
-
updatedAt: string;
|
|
37
|
-
}, 400 | 200 | 404, "json">>;
|
|
38
|
-
pluginId: "@vitnode/blog";
|
|
39
|
-
route: {
|
|
40
|
-
method: "put";
|
|
41
|
-
path: "/{id}";
|
|
42
|
-
request: {
|
|
43
|
-
params: z.ZodObject<{
|
|
44
|
-
id: z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>;
|
|
45
|
-
}, z.core.$strip>;
|
|
46
|
-
body: {
|
|
47
|
-
content: {
|
|
48
|
-
"application/json": {
|
|
49
|
-
schema: z.ZodObject<{
|
|
50
|
-
title: z.ZodString;
|
|
51
|
-
content: z.ZodString;
|
|
52
|
-
categoryId: z.ZodNumber;
|
|
53
|
-
}, z.core.$strip>;
|
|
54
|
-
};
|
|
2
|
+
export declare const editPostRoute: import("@vitnode/core/api/lib/route").Route<"@vitnode/blog", {
|
|
3
|
+
method: "put";
|
|
4
|
+
path: "/{id}";
|
|
5
|
+
request: {
|
|
6
|
+
params: z.ZodObject<{
|
|
7
|
+
id: z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>;
|
|
8
|
+
}, z.core.$strip>;
|
|
9
|
+
body: {
|
|
10
|
+
content: {
|
|
11
|
+
"application/json": {
|
|
12
|
+
schema: z.ZodObject<{
|
|
13
|
+
title: z.ZodString;
|
|
14
|
+
content: z.ZodString;
|
|
15
|
+
categoryId: z.ZodNumber;
|
|
16
|
+
}, z.core.$strip>;
|
|
55
17
|
};
|
|
56
18
|
};
|
|
57
19
|
};
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
}
|
|
20
|
+
};
|
|
21
|
+
responses: {
|
|
22
|
+
200: {
|
|
23
|
+
content: {
|
|
24
|
+
"application/json": {
|
|
25
|
+
schema: z.ZodObject<{
|
|
26
|
+
id: z.ZodNumber;
|
|
27
|
+
title: z.ZodString;
|
|
28
|
+
titleSeo: z.ZodString;
|
|
29
|
+
content: z.ZodString;
|
|
30
|
+
categoryId: z.ZodNumber;
|
|
31
|
+
createdAt: z.ZodDate;
|
|
32
|
+
updatedAt: z.ZodDate;
|
|
33
|
+
}, z.core.$strip>;
|
|
72
34
|
};
|
|
73
|
-
description: string;
|
|
74
|
-
};
|
|
75
|
-
400: {
|
|
76
|
-
description: string;
|
|
77
|
-
};
|
|
78
|
-
404: {
|
|
79
|
-
description: string;
|
|
80
35
|
};
|
|
36
|
+
description: string;
|
|
37
|
+
};
|
|
38
|
+
400: {
|
|
39
|
+
description: string;
|
|
40
|
+
};
|
|
41
|
+
404: {
|
|
42
|
+
description: string;
|
|
81
43
|
};
|
|
82
|
-
} & {
|
|
83
|
-
getRoutingPath: () => "/:id";
|
|
84
44
|
};
|
|
85
|
-
}
|
|
45
|
+
} & {
|
|
46
|
+
path: string;
|
|
47
|
+
}>;
|
|
86
48
|
//# sourceMappingURL=edit.route.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"edit.route.d.ts","sourceRoot":"","sources":["../../../../../../../src/api/modules/admin/posts/routes/edit.route.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,mBAAmB,CAAC;AAsBtC,eAAO,MAAM,aAAa
|
|
1
|
+
{"version":3,"file":"edit.route.d.ts","sourceRoot":"","sources":["../../../../../../../src/api/modules/admin/posts/routes/edit.route.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,mBAAmB,CAAC;AAsBtC,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA8FxB,CAAC"}
|