@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.
Files changed (30) hide show
  1. package/dist/src/api/modules/admin/admin.module.d.ts +161 -309
  2. package/dist/src/api/modules/admin/admin.module.d.ts.map +1 -1
  3. package/dist/src/api/modules/admin/categories/categories.admin.module.d.ts +75 -143
  4. package/dist/src/api/modules/admin/categories/categories.admin.module.d.ts.map +1 -1
  5. package/dist/src/api/modules/admin/categories/routes/create.route.d.ts +28 -49
  6. package/dist/src/api/modules/admin/categories/routes/create.route.d.ts.map +1 -1
  7. package/dist/src/api/modules/admin/categories/routes/delete.route.d.ts +16 -31
  8. package/dist/src/api/modules/admin/categories/routes/delete.route.d.ts.map +1 -1
  9. package/dist/src/api/modules/admin/categories/routes/edit.route.d.ts +34 -66
  10. package/dist/src/api/modules/admin/categories/routes/edit.route.d.ts.map +1 -1
  11. package/dist/src/api/modules/admin/posts/posts.admin.module.d.ts +87 -167
  12. package/dist/src/api/modules/admin/posts/posts.admin.module.d.ts.map +1 -1
  13. package/dist/src/api/modules/admin/posts/routes/create.route.d.ts +36 -63
  14. package/dist/src/api/modules/admin/posts/routes/create.route.d.ts.map +1 -1
  15. package/dist/src/api/modules/admin/posts/routes/delete.route.d.ts +16 -31
  16. package/dist/src/api/modules/admin/posts/routes/delete.route.d.ts.map +1 -1
  17. package/dist/src/api/modules/admin/posts/routes/edit.route.d.ts +39 -77
  18. package/dist/src/api/modules/admin/posts/routes/edit.route.d.ts.map +1 -1
  19. package/dist/src/api/modules/categories/categories.module.d.ts +59 -104
  20. package/dist/src/api/modules/categories/categories.module.d.ts.map +1 -1
  21. package/dist/src/api/modules/categories/routes/get.route.d.ts +41 -82
  22. package/dist/src/api/modules/categories/routes/get.route.d.ts.map +1 -1
  23. package/dist/src/api/modules/categories/test.route.d.ts +19 -23
  24. package/dist/src/api/modules/categories/test.route.d.ts.map +1 -1
  25. package/dist/src/api/modules/posts/posts.module.d.ts +46 -94
  26. package/dist/src/api/modules/posts/posts.module.d.ts.map +1 -1
  27. package/dist/src/api/modules/posts/routes/get.route.d.ts +46 -94
  28. package/dist/src/api/modules/posts/routes/get.route.d.ts.map +1 -1
  29. package/dist/tsconfig.tsbuildinfo +1 -1
  30. package/package.json +20 -20
@@ -1,347 +1,199 @@
1
- export declare const adminModule: import("@vitnode/core/api/lib/module").BuildModuleReturn<"@vitnode/blog", "admin", [], (import("@vitnode/core/api/lib/module").BuildModuleReturn<"@vitnode/blog", "categories", [{
2
- handler: (c: import("hono").Context<import("@vitnode/core/api/middlewares/global.middleware").EnvVitNode, "/", {
3
- in: {
4
- json: {
5
- title: string;
6
- };
7
- };
8
- out: {
9
- json: {
10
- title: string;
11
- };
12
- };
13
- }>) => Promise<Response & import("hono").TypedResponse<{
14
- id: number;
15
- title: string;
16
- createdAt: string;
17
- updatedAt: string;
18
- titleSeo: string;
19
- }, 201, "json">>;
20
- pluginId: "@vitnode/blog";
21
- route: {
22
- method: "post";
23
- path: "/";
24
- request: {
25
- body: {
26
- content: {
27
- "application/json": {
28
- schema: import("zod").ZodObject<{
29
- title: import("zod").ZodString;
30
- }, import("zod/v4/core").$strip>;
31
- };
1
+ export declare const adminModule: import("@vitnode/core/api/lib/module").BuildModuleReturn<"@vitnode/blog", "admin", [], (import("@vitnode/core/api/lib/module").BuildModuleReturn<"@vitnode/blog", "categories", [import("@vitnode/core/api/lib/route").Route<"@vitnode/blog", {
2
+ method: "post";
3
+ path: "/";
4
+ request: {
5
+ body: {
6
+ content: {
7
+ "application/json": {
8
+ schema: import("zod").ZodObject<{
9
+ title: import("zod").ZodString;
10
+ }, import("zod/v4/core").$strip>;
32
11
  };
33
12
  };
34
13
  };
35
- responses: {
36
- 201: {
37
- content: {
38
- "application/json": {
39
- schema: import("zod").ZodObject<{
40
- id: import("zod").ZodNumber;
41
- title: import("zod").ZodString;
42
- createdAt: import("zod").ZodDate;
43
- updatedAt: import("zod").ZodDate;
44
- }, import("zod/v4/core").$strip>;
45
- };
46
- };
47
- description: string;
48
- };
49
- 400: {
50
- description: string;
51
- };
52
- };
53
- } & {
54
- getRoutingPath: () => "/";
55
14
  };
56
- }, {
57
- handler: (c: import("hono").Context<import("@vitnode/core/api/middlewares/global.middleware").EnvVitNode, "/:id", {
58
- in: {
59
- param: {
60
- id: string;
61
- };
62
- };
63
- out: {
64
- param: {
65
- id: number;
66
- };
67
- };
68
- } & {
69
- in: {
70
- json: {
71
- title: string;
72
- };
73
- };
74
- out: {
75
- json: {
76
- title: string;
77
- };
78
- };
79
- }>) => Promise<Response & import("hono").TypedResponse<{
80
- id: number;
81
- title: string;
82
- createdAt: string;
83
- updatedAt: string;
84
- titleSeo: string;
85
- }, 400 | 200 | 404, "json">>;
86
- pluginId: "@vitnode/blog";
87
- route: {
88
- method: "put";
89
- path: "/{id}";
90
- request: {
91
- params: import("zod").ZodObject<{
92
- id: import("zod").ZodPipe<import("zod").ZodString, import("zod").ZodTransform<number, string>>;
93
- }, import("zod/v4/core").$strip>;
94
- body: {
95
- content: {
96
- "application/json": {
97
- schema: import("zod").ZodObject<{
98
- title: import("zod").ZodString;
99
- }, import("zod/v4/core").$strip>;
100
- };
15
+ responses: {
16
+ 201: {
17
+ content: {
18
+ "application/json": {
19
+ schema: import("zod").ZodObject<{
20
+ id: import("zod").ZodNumber;
21
+ title: import("zod").ZodString;
22
+ createdAt: import("zod").ZodDate;
23
+ updatedAt: import("zod").ZodDate;
24
+ }, import("zod/v4/core").$strip>;
101
25
  };
102
26
  };
27
+ description: string;
103
28
  };
104
- responses: {
105
- 200: {
106
- content: {
107
- "application/json": {
108
- schema: import("zod").ZodObject<{
109
- id: import("zod").ZodNumber;
110
- title: import("zod").ZodString;
111
- createdAt: import("zod").ZodDate;
112
- updatedAt: import("zod").ZodDate;
113
- }, import("zod/v4/core").$strip>;
114
- };
115
- };
116
- description: string;
117
- };
118
- 400: {
119
- description: string;
120
- };
121
- 404: {
122
- description: string;
123
- };
29
+ 400: {
30
+ description: string;
124
31
  };
125
- } & {
126
- getRoutingPath: () => "/:id";
127
32
  };
128
- }, {
129
- handler: (c: import("hono").Context<import("@vitnode/core/api/middlewares/global.middleware").EnvVitNode, "/:id", {
130
- in: {
131
- param: {
132
- id: string;
33
+ } & {
34
+ path: string;
35
+ }>, import("@vitnode/core/api/lib/route").Route<"@vitnode/blog", {
36
+ method: "put";
37
+ path: "/{id}";
38
+ request: {
39
+ params: import("zod").ZodObject<{
40
+ id: import("zod").ZodPipe<import("zod").ZodString, import("zod").ZodTransform<number, string>>;
41
+ }, import("zod/v4/core").$strip>;
42
+ body: {
43
+ content: {
44
+ "application/json": {
45
+ schema: import("zod").ZodObject<{
46
+ title: import("zod").ZodString;
47
+ }, import("zod/v4/core").$strip>;
48
+ };
133
49
  };
134
50
  };
135
- out: {
136
- param: {
137
- id: number;
51
+ };
52
+ responses: {
53
+ 200: {
54
+ content: {
55
+ "application/json": {
56
+ schema: import("zod").ZodObject<{
57
+ id: import("zod").ZodNumber;
58
+ title: import("zod").ZodString;
59
+ createdAt: import("zod").ZodDate;
60
+ updatedAt: import("zod").ZodDate;
61
+ }, import("zod/v4/core").$strip>;
62
+ };
138
63
  };
64
+ description: string;
139
65
  };
140
- }>) => Promise<Response & import("hono").TypedResponse<null, 204, "body">>;
141
- pluginId: "@vitnode/blog";
142
- route: {
143
- method: "delete";
144
- path: "/{id}";
145
- request: {
146
- params: import("zod").ZodObject<{
147
- id: import("zod").ZodPipe<import("zod").ZodString, import("zod").ZodTransform<number, string>>;
148
- }, import("zod/v4/core").$strip>;
66
+ 400: {
67
+ description: string;
149
68
  };
150
- responses: {
151
- 204: {
152
- description: string;
153
- };
154
- 404: {
155
- description: string;
156
- };
69
+ 404: {
70
+ description: string;
157
71
  };
158
- } & {
159
- getRoutingPath: () => "/:id";
160
72
  };
161
- }], 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("@hono/zod-openapi").RouteHandler<import("@hono/zod-openapi").RouteConfig>>[]>[]> | import("@vitnode/core/api/lib/module").BuildModuleReturn<"@vitnode/blog", "posts", [{
162
- handler: (c: import("hono").Context<import("@vitnode/core/api/middlewares/global.middleware").EnvVitNode, "/:id", {
163
- in: {
164
- param: {
165
- id: string;
166
- };
167
- };
168
- out: {
169
- param: {
170
- id: number;
171
- };
172
- };
173
- } & {
174
- in: {
175
- json: {
176
- title: string;
177
- content: string;
178
- categoryId: number;
179
- };
73
+ } & {
74
+ path: string;
75
+ }>, import("@vitnode/core/api/lib/route").Route<"@vitnode/blog", {
76
+ method: "delete";
77
+ path: "/{id}";
78
+ request: {
79
+ params: import("zod").ZodObject<{
80
+ id: import("zod").ZodPipe<import("zod").ZodString, import("zod").ZodTransform<number, string>>;
81
+ }, import("zod/v4/core").$strip>;
82
+ };
83
+ responses: {
84
+ 204: {
85
+ description: string;
180
86
  };
181
- out: {
182
- json: {
183
- title: string;
184
- content: string;
185
- categoryId: number;
186
- };
87
+ 404: {
88
+ description: string;
187
89
  };
188
- }>) => Promise<Response & import("hono").TypedResponse<{
189
- id: number;
190
- title: string;
191
- titleSeo: string;
192
- content: string;
193
- categoryId: number;
194
- createdAt: string;
195
- updatedAt: string;
196
- }, 400 | 200 | 404, "json">>;
197
- pluginId: "@vitnode/blog";
198
- route: {
199
- method: "put";
200
- path: "/{id}";
201
- request: {
202
- params: import("zod").ZodObject<{
203
- id: import("zod").ZodPipe<import("zod").ZodString, import("zod").ZodTransform<number, string>>;
204
- }, import("zod/v4/core").$strip>;
205
- body: {
206
- content: {
207
- "application/json": {
208
- schema: import("zod").ZodObject<{
209
- title: import("zod").ZodString;
210
- content: import("zod").ZodString;
211
- categoryId: import("zod").ZodNumber;
212
- }, import("zod/v4/core").$strip>;
213
- };
90
+ };
91
+ } & {
92
+ path: string;
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", "posts", [import("@vitnode/core/api/lib/route").Route<"@vitnode/blog", {
94
+ method: "put";
95
+ path: "/{id}";
96
+ request: {
97
+ params: import("zod").ZodObject<{
98
+ id: import("zod").ZodPipe<import("zod").ZodString, import("zod").ZodTransform<number, string>>;
99
+ }, import("zod/v4/core").$strip>;
100
+ body: {
101
+ content: {
102
+ "application/json": {
103
+ schema: import("zod").ZodObject<{
104
+ title: import("zod").ZodString;
105
+ content: import("zod").ZodString;
106
+ categoryId: import("zod").ZodNumber;
107
+ }, import("zod/v4/core").$strip>;
214
108
  };
215
109
  };
216
110
  };
217
- responses: {
218
- 200: {
219
- content: {
220
- "application/json": {
221
- schema: import("zod").ZodObject<{
222
- id: import("zod").ZodNumber;
223
- title: import("zod").ZodString;
224
- titleSeo: import("zod").ZodString;
225
- content: import("zod").ZodString;
226
- categoryId: import("zod").ZodNumber;
227
- createdAt: import("zod").ZodDate;
228
- updatedAt: import("zod").ZodDate;
229
- }, import("zod/v4/core").$strip>;
230
- };
111
+ };
112
+ responses: {
113
+ 200: {
114
+ content: {
115
+ "application/json": {
116
+ schema: import("zod").ZodObject<{
117
+ id: import("zod").ZodNumber;
118
+ title: import("zod").ZodString;
119
+ titleSeo: import("zod").ZodString;
120
+ content: import("zod").ZodString;
121
+ categoryId: import("zod").ZodNumber;
122
+ createdAt: import("zod").ZodDate;
123
+ updatedAt: import("zod").ZodDate;
124
+ }, import("zod/v4/core").$strip>;
231
125
  };
232
- description: string;
233
- };
234
- 400: {
235
- description: string;
236
- };
237
- 404: {
238
- description: string;
239
126
  };
127
+ description: string;
240
128
  };
241
- } & {
242
- getRoutingPath: () => "/:id";
243
- };
244
- }, {
245
- handler: (c: import("hono").Context<import("@vitnode/core/api/middlewares/global.middleware").EnvVitNode, "/", {
246
- in: {
247
- json: {
248
- title: string;
249
- content: string;
250
- categoryId: number;
251
- };
129
+ 400: {
130
+ description: string;
252
131
  };
253
- out: {
254
- json: {
255
- title: string;
256
- content: string;
257
- categoryId: number;
258
- };
132
+ 404: {
133
+ description: string;
259
134
  };
260
- }>) => Promise<Response & import("hono").TypedResponse<{
261
- id: number;
262
- title: string;
263
- createdAt: string;
264
- updatedAt: string;
265
- titleSeo: string;
266
- content: string;
267
- categoryId: number;
268
- }, 201, "json">>;
269
- pluginId: "@vitnode/blog";
270
- route: {
271
- method: "post";
272
- path: "/";
273
- request: {
274
- body: {
275
- content: {
276
- "application/json": {
277
- schema: import("zod").ZodObject<{
278
- title: import("zod").ZodString;
279
- content: import("zod").ZodString;
280
- categoryId: import("zod").ZodNumber;
281
- }, import("zod/v4/core").$strip>;
282
- };
135
+ };
136
+ } & {
137
+ path: string;
138
+ }>, import("@vitnode/core/api/lib/route").Route<"@vitnode/blog", {
139
+ method: "post";
140
+ path: "/";
141
+ request: {
142
+ body: {
143
+ content: {
144
+ "application/json": {
145
+ schema: import("zod").ZodObject<{
146
+ title: import("zod").ZodString;
147
+ content: import("zod").ZodString;
148
+ categoryId: import("zod").ZodNumber;
149
+ }, import("zod/v4/core").$strip>;
283
150
  };
284
151
  };
285
152
  };
286
- responses: {
287
- 201: {
288
- content: {
289
- "application/json": {
290
- schema: import("zod").ZodObject<{
291
- id: import("zod").ZodNumber;
292
- title: import("zod").ZodString;
293
- titleSeo: import("zod").ZodString;
294
- content: import("zod").ZodString;
295
- categoryId: import("zod").ZodNumber;
296
- createdAt: import("zod").ZodDate;
297
- updatedAt: import("zod").ZodDate;
298
- }, import("zod/v4/core").$strip>;
299
- };
153
+ };
154
+ responses: {
155
+ 201: {
156
+ content: {
157
+ "application/json": {
158
+ schema: import("zod").ZodObject<{
159
+ id: import("zod").ZodNumber;
160
+ title: import("zod").ZodString;
161
+ titleSeo: import("zod").ZodString;
162
+ content: import("zod").ZodString;
163
+ categoryId: import("zod").ZodNumber;
164
+ createdAt: import("zod").ZodDate;
165
+ updatedAt: import("zod").ZodDate;
166
+ }, import("zod/v4/core").$strip>;
300
167
  };
301
- description: string;
302
- };
303
- 400: {
304
- description: string;
305
- };
306
- 404: {
307
- description: string;
308
168
  };
169
+ description: string;
309
170
  };
310
- } & {
311
- getRoutingPath: () => "/";
312
- };
313
- }, {
314
- handler: (c: import("hono").Context<import("@vitnode/core/api/middlewares/global.middleware").EnvVitNode, "/:id", {
315
- in: {
316
- param: {
317
- id: string;
318
- };
171
+ 400: {
172
+ description: string;
319
173
  };
320
- out: {
321
- param: {
322
- id: number;
323
- };
174
+ 404: {
175
+ description: string;
324
176
  };
325
- }>) => Promise<Response & import("hono").TypedResponse<null, 204, "body">>;
326
- pluginId: "@vitnode/blog";
327
- route: {
328
- method: "delete";
329
- path: "/{id}";
330
- request: {
331
- params: import("zod").ZodObject<{
332
- id: import("zod").ZodPipe<import("zod").ZodString, import("zod").ZodTransform<number, string>>;
333
- }, import("zod/v4/core").$strip>;
177
+ };
178
+ } & {
179
+ path: string;
180
+ }>, import("@vitnode/core/api/lib/route").Route<"@vitnode/blog", {
181
+ method: "delete";
182
+ path: "/{id}";
183
+ request: {
184
+ params: import("zod").ZodObject<{
185
+ id: import("zod").ZodPipe<import("zod").ZodString, import("zod").ZodTransform<number, string>>;
186
+ }, import("zod/v4/core").$strip>;
187
+ };
188
+ responses: {
189
+ 204: {
190
+ description: string;
334
191
  };
335
- responses: {
336
- 204: {
337
- description: string;
338
- };
339
- 404: {
340
- description: string;
341
- };
192
+ 404: {
193
+ description: string;
342
194
  };
343
- } & {
344
- getRoutingPath: () => "/:id";
345
195
  };
346
- }], 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("@hono/zod-openapi").RouteHandler<import("@hono/zod-openapi").RouteConfig>>[]>[]>)[]>;
196
+ } & {
197
+ path: string;
198
+ }>], import("@vitnode/core/api/lib/module").BaseBuildModuleReturn<"@vitnode/blog", string, import("@vitnode/core/api/lib/route").Route<"@vitnode/blog", import("@hono/zod-openapi").RouteConfig>[]>[]>)[]>;
347
199
  //# 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":"AAMA,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4RAKtB,CAAC"}
1
+ {"version":3,"file":"admin.module.d.ts","sourceRoot":"","sources":["../../../../../src/api/modules/admin/admin.module.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;0MAKtB,CAAC"}