@vitnode/blog 1.2.0-canary.48 → 1.2.0-canary.49
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 +16 -108
- 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 +8 -44
- 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 +3 -21
- 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 +2 -6
- 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 +4 -22
- 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 +8 -64
- 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 +3 -35
- 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 +2 -6
- 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 +4 -32
- 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 +15 -79
- package/dist/src/api/modules/categories/categories.module.d.ts.map +1 -1
- package/dist/src/api/modules/categories/routes/get.route.d.ts +15 -79
- package/dist/src/api/modules/categories/routes/get.route.d.ts.map +1 -1
- package/dist/src/api/modules/posts/posts.module.d.ts +18 -121
- package/dist/src/api/modules/posts/posts.module.d.ts.map +1 -1
- package/dist/src/api/modules/posts/routes/get.route.d.ts +20 -157
- package/dist/src/api/modules/posts/routes/get.route.d.ts.map +1 -1
- package/dist/src/views/admin/categories/table/actions/edit-action.d.ts +1 -1
- package/dist/src/views/admin/posts/table/actions/edit-action.d.ts +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +10 -10
|
@@ -27,11 +27,7 @@ export declare const adminModule: import("@vitnode/core/api/lib/module").BuildMo
|
|
|
27
27
|
'application/json': {
|
|
28
28
|
schema: import("zod").ZodObject<{
|
|
29
29
|
title: import("zod").ZodString;
|
|
30
|
-
},
|
|
31
|
-
title: string;
|
|
32
|
-
}, {
|
|
33
|
-
title: string;
|
|
34
|
-
}>;
|
|
30
|
+
}, import("zod/v4/core").$strip>;
|
|
35
31
|
};
|
|
36
32
|
};
|
|
37
33
|
};
|
|
@@ -45,17 +41,7 @@ export declare const adminModule: import("@vitnode/core/api/lib/module").BuildMo
|
|
|
45
41
|
title: import("zod").ZodString;
|
|
46
42
|
createdAt: import("zod").ZodDate;
|
|
47
43
|
updatedAt: import("zod").ZodDate;
|
|
48
|
-
},
|
|
49
|
-
id: number;
|
|
50
|
-
title: string;
|
|
51
|
-
createdAt: Date;
|
|
52
|
-
updatedAt: Date;
|
|
53
|
-
}, {
|
|
54
|
-
id: number;
|
|
55
|
-
title: string;
|
|
56
|
-
createdAt: Date;
|
|
57
|
-
updatedAt: Date;
|
|
58
|
-
}>;
|
|
44
|
+
}, import("zod/v4/core").$strip>;
|
|
59
45
|
};
|
|
60
46
|
};
|
|
61
47
|
description: string;
|
|
@@ -103,22 +89,14 @@ export declare const adminModule: import("@vitnode/core/api/lib/module").BuildMo
|
|
|
103
89
|
path: "/{id}";
|
|
104
90
|
request: {
|
|
105
91
|
params: import("zod").ZodObject<{
|
|
106
|
-
id: import("zod").
|
|
107
|
-
},
|
|
108
|
-
id: number;
|
|
109
|
-
}, {
|
|
110
|
-
id: string;
|
|
111
|
-
}>;
|
|
92
|
+
id: import("zod").ZodPipe<import("zod").ZodString, import("zod").ZodTransform<number, string>>;
|
|
93
|
+
}, import("zod/v4/core").$strip>;
|
|
112
94
|
body: {
|
|
113
95
|
content: {
|
|
114
96
|
'application/json': {
|
|
115
97
|
schema: import("zod").ZodObject<{
|
|
116
98
|
title: import("zod").ZodString;
|
|
117
|
-
},
|
|
118
|
-
title: string;
|
|
119
|
-
}, {
|
|
120
|
-
title: string;
|
|
121
|
-
}>;
|
|
99
|
+
}, import("zod/v4/core").$strip>;
|
|
122
100
|
};
|
|
123
101
|
};
|
|
124
102
|
};
|
|
@@ -132,17 +110,7 @@ export declare const adminModule: import("@vitnode/core/api/lib/module").BuildMo
|
|
|
132
110
|
title: import("zod").ZodString;
|
|
133
111
|
createdAt: import("zod").ZodDate;
|
|
134
112
|
updatedAt: import("zod").ZodDate;
|
|
135
|
-
},
|
|
136
|
-
id: number;
|
|
137
|
-
title: string;
|
|
138
|
-
createdAt: Date;
|
|
139
|
-
updatedAt: Date;
|
|
140
|
-
}, {
|
|
141
|
-
id: number;
|
|
142
|
-
title: string;
|
|
143
|
-
createdAt: Date;
|
|
144
|
-
updatedAt: Date;
|
|
145
|
-
}>;
|
|
113
|
+
}, import("zod/v4/core").$strip>;
|
|
146
114
|
};
|
|
147
115
|
};
|
|
148
116
|
description: string;
|
|
@@ -176,12 +144,8 @@ export declare const adminModule: import("@vitnode/core/api/lib/module").BuildMo
|
|
|
176
144
|
path: "/{id}";
|
|
177
145
|
request: {
|
|
178
146
|
params: import("zod").ZodObject<{
|
|
179
|
-
id: import("zod").
|
|
180
|
-
},
|
|
181
|
-
id: number;
|
|
182
|
-
}, {
|
|
183
|
-
id: string;
|
|
184
|
-
}>;
|
|
147
|
+
id: import("zod").ZodPipe<import("zod").ZodString, import("zod").ZodTransform<number, string>>;
|
|
148
|
+
}, import("zod/v4/core").$strip>;
|
|
185
149
|
};
|
|
186
150
|
responses: {
|
|
187
151
|
204: {
|
|
@@ -236,12 +200,8 @@ export declare const adminModule: import("@vitnode/core/api/lib/module").BuildMo
|
|
|
236
200
|
path: "/{id}";
|
|
237
201
|
request: {
|
|
238
202
|
params: import("zod").ZodObject<{
|
|
239
|
-
id: import("zod").
|
|
240
|
-
},
|
|
241
|
-
id: number;
|
|
242
|
-
}, {
|
|
243
|
-
id: string;
|
|
244
|
-
}>;
|
|
203
|
+
id: import("zod").ZodPipe<import("zod").ZodString, import("zod").ZodTransform<number, string>>;
|
|
204
|
+
}, import("zod/v4/core").$strip>;
|
|
245
205
|
body: {
|
|
246
206
|
content: {
|
|
247
207
|
'application/json': {
|
|
@@ -249,15 +209,7 @@ export declare const adminModule: import("@vitnode/core/api/lib/module").BuildMo
|
|
|
249
209
|
title: import("zod").ZodString;
|
|
250
210
|
content: import("zod").ZodString;
|
|
251
211
|
categoryId: import("zod").ZodNumber;
|
|
252
|
-
},
|
|
253
|
-
title: string;
|
|
254
|
-
content: string;
|
|
255
|
-
categoryId: number;
|
|
256
|
-
}, {
|
|
257
|
-
title: string;
|
|
258
|
-
content: string;
|
|
259
|
-
categoryId: number;
|
|
260
|
-
}>;
|
|
212
|
+
}, import("zod/v4/core").$strip>;
|
|
261
213
|
};
|
|
262
214
|
};
|
|
263
215
|
};
|
|
@@ -274,23 +226,7 @@ export declare const adminModule: import("@vitnode/core/api/lib/module").BuildMo
|
|
|
274
226
|
categoryId: import("zod").ZodNumber;
|
|
275
227
|
createdAt: import("zod").ZodDate;
|
|
276
228
|
updatedAt: import("zod").ZodDate;
|
|
277
|
-
},
|
|
278
|
-
id: number;
|
|
279
|
-
title: string;
|
|
280
|
-
createdAt: Date;
|
|
281
|
-
updatedAt: Date;
|
|
282
|
-
titleSeo: string;
|
|
283
|
-
content: string;
|
|
284
|
-
categoryId: number;
|
|
285
|
-
}, {
|
|
286
|
-
id: number;
|
|
287
|
-
title: string;
|
|
288
|
-
createdAt: Date;
|
|
289
|
-
updatedAt: Date;
|
|
290
|
-
titleSeo: string;
|
|
291
|
-
content: string;
|
|
292
|
-
categoryId: number;
|
|
293
|
-
}>;
|
|
229
|
+
}, import("zod/v4/core").$strip>;
|
|
294
230
|
};
|
|
295
231
|
};
|
|
296
232
|
description: string;
|
|
@@ -342,15 +278,7 @@ export declare const adminModule: import("@vitnode/core/api/lib/module").BuildMo
|
|
|
342
278
|
title: import("zod").ZodString;
|
|
343
279
|
content: import("zod").ZodString;
|
|
344
280
|
categoryId: import("zod").ZodNumber;
|
|
345
|
-
},
|
|
346
|
-
title: string;
|
|
347
|
-
content: string;
|
|
348
|
-
categoryId: number;
|
|
349
|
-
}, {
|
|
350
|
-
title: string;
|
|
351
|
-
content: string;
|
|
352
|
-
categoryId: number;
|
|
353
|
-
}>;
|
|
281
|
+
}, import("zod/v4/core").$strip>;
|
|
354
282
|
};
|
|
355
283
|
};
|
|
356
284
|
};
|
|
@@ -367,23 +295,7 @@ export declare const adminModule: import("@vitnode/core/api/lib/module").BuildMo
|
|
|
367
295
|
categoryId: import("zod").ZodNumber;
|
|
368
296
|
createdAt: import("zod").ZodDate;
|
|
369
297
|
updatedAt: import("zod").ZodDate;
|
|
370
|
-
},
|
|
371
|
-
id: number;
|
|
372
|
-
title: string;
|
|
373
|
-
createdAt: Date;
|
|
374
|
-
updatedAt: Date;
|
|
375
|
-
titleSeo: string;
|
|
376
|
-
content: string;
|
|
377
|
-
categoryId: number;
|
|
378
|
-
}, {
|
|
379
|
-
id: number;
|
|
380
|
-
title: string;
|
|
381
|
-
createdAt: Date;
|
|
382
|
-
updatedAt: Date;
|
|
383
|
-
titleSeo: string;
|
|
384
|
-
content: string;
|
|
385
|
-
categoryId: number;
|
|
386
|
-
}>;
|
|
298
|
+
}, import("zod/v4/core").$strip>;
|
|
387
299
|
};
|
|
388
300
|
};
|
|
389
301
|
description: string;
|
|
@@ -417,12 +329,8 @@ export declare const adminModule: import("@vitnode/core/api/lib/module").BuildMo
|
|
|
417
329
|
path: "/{id}";
|
|
418
330
|
request: {
|
|
419
331
|
params: import("zod").ZodObject<{
|
|
420
|
-
id: import("zod").
|
|
421
|
-
},
|
|
422
|
-
id: number;
|
|
423
|
-
}, {
|
|
424
|
-
id: string;
|
|
425
|
-
}>;
|
|
332
|
+
id: import("zod").ZodPipe<import("zod").ZodString, import("zod").ZodTransform<number, string>>;
|
|
333
|
+
}, import("zod/v4/core").$strip>;
|
|
426
334
|
};
|
|
427
335
|
responses: {
|
|
428
336
|
204: {
|
|
@@ -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
|
|
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"}
|
|
@@ -27,11 +27,7 @@ export declare const categoriesAdminModule: import("@vitnode/core/api/lib/module
|
|
|
27
27
|
'application/json': {
|
|
28
28
|
schema: import("zod").ZodObject<{
|
|
29
29
|
title: import("zod").ZodString;
|
|
30
|
-
},
|
|
31
|
-
title: string;
|
|
32
|
-
}, {
|
|
33
|
-
title: string;
|
|
34
|
-
}>;
|
|
30
|
+
}, import("zod/v4/core").$strip>;
|
|
35
31
|
};
|
|
36
32
|
};
|
|
37
33
|
};
|
|
@@ -45,17 +41,7 @@ export declare const categoriesAdminModule: import("@vitnode/core/api/lib/module
|
|
|
45
41
|
title: import("zod").ZodString;
|
|
46
42
|
createdAt: import("zod").ZodDate;
|
|
47
43
|
updatedAt: import("zod").ZodDate;
|
|
48
|
-
},
|
|
49
|
-
id: number;
|
|
50
|
-
title: string;
|
|
51
|
-
createdAt: Date;
|
|
52
|
-
updatedAt: Date;
|
|
53
|
-
}, {
|
|
54
|
-
id: number;
|
|
55
|
-
title: string;
|
|
56
|
-
createdAt: Date;
|
|
57
|
-
updatedAt: Date;
|
|
58
|
-
}>;
|
|
44
|
+
}, import("zod/v4/core").$strip>;
|
|
59
45
|
};
|
|
60
46
|
};
|
|
61
47
|
description: string;
|
|
@@ -103,22 +89,14 @@ export declare const categoriesAdminModule: import("@vitnode/core/api/lib/module
|
|
|
103
89
|
path: "/{id}";
|
|
104
90
|
request: {
|
|
105
91
|
params: import("zod").ZodObject<{
|
|
106
|
-
id: import("zod").
|
|
107
|
-
},
|
|
108
|
-
id: number;
|
|
109
|
-
}, {
|
|
110
|
-
id: string;
|
|
111
|
-
}>;
|
|
92
|
+
id: import("zod").ZodPipe<import("zod").ZodString, import("zod").ZodTransform<number, string>>;
|
|
93
|
+
}, import("zod/v4/core").$strip>;
|
|
112
94
|
body: {
|
|
113
95
|
content: {
|
|
114
96
|
'application/json': {
|
|
115
97
|
schema: import("zod").ZodObject<{
|
|
116
98
|
title: import("zod").ZodString;
|
|
117
|
-
},
|
|
118
|
-
title: string;
|
|
119
|
-
}, {
|
|
120
|
-
title: string;
|
|
121
|
-
}>;
|
|
99
|
+
}, import("zod/v4/core").$strip>;
|
|
122
100
|
};
|
|
123
101
|
};
|
|
124
102
|
};
|
|
@@ -132,17 +110,7 @@ export declare const categoriesAdminModule: import("@vitnode/core/api/lib/module
|
|
|
132
110
|
title: import("zod").ZodString;
|
|
133
111
|
createdAt: import("zod").ZodDate;
|
|
134
112
|
updatedAt: import("zod").ZodDate;
|
|
135
|
-
},
|
|
136
|
-
id: number;
|
|
137
|
-
title: string;
|
|
138
|
-
createdAt: Date;
|
|
139
|
-
updatedAt: Date;
|
|
140
|
-
}, {
|
|
141
|
-
id: number;
|
|
142
|
-
title: string;
|
|
143
|
-
createdAt: Date;
|
|
144
|
-
updatedAt: Date;
|
|
145
|
-
}>;
|
|
113
|
+
}, import("zod/v4/core").$strip>;
|
|
146
114
|
};
|
|
147
115
|
};
|
|
148
116
|
description: string;
|
|
@@ -176,12 +144,8 @@ export declare const categoriesAdminModule: import("@vitnode/core/api/lib/module
|
|
|
176
144
|
path: "/{id}";
|
|
177
145
|
request: {
|
|
178
146
|
params: import("zod").ZodObject<{
|
|
179
|
-
id: import("zod").
|
|
180
|
-
},
|
|
181
|
-
id: number;
|
|
182
|
-
}, {
|
|
183
|
-
id: string;
|
|
184
|
-
}>;
|
|
147
|
+
id: import("zod").ZodPipe<import("zod").ZodString, import("zod").ZodTransform<number, string>>;
|
|
148
|
+
}, import("zod/v4/core").$strip>;
|
|
185
149
|
};
|
|
186
150
|
responses: {
|
|
187
151
|
204: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"categories.admin.module.d.ts","sourceRoot":"","sources":["../../../../../../src/api/modules/admin/categories/categories.admin.module.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,qBAAqB
|
|
1
|
+
{"version":3,"file":"categories.admin.module.d.ts","sourceRoot":"","sources":["../../../../../../src/api/modules/admin/categories/categories.admin.module.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wRAIhC,CAAC"}
|
|
@@ -1,11 +1,7 @@
|
|
|
1
1
|
import { z } from '@hono/zod-openapi';
|
|
2
2
|
export declare const zodCreateCategorySchema: z.ZodObject<{
|
|
3
3
|
title: z.ZodString;
|
|
4
|
-
},
|
|
5
|
-
title: string;
|
|
6
|
-
}, {
|
|
7
|
-
title: string;
|
|
8
|
-
}>;
|
|
4
|
+
}, z.core.$strip>;
|
|
9
5
|
export declare const createCategoryRoute: {
|
|
10
6
|
handler: (c: import("hono").Context<import("@vitnode/core/api/middlewares/global.middleware").EnvVitNode, "/", {
|
|
11
7
|
in: {
|
|
@@ -35,11 +31,7 @@ export declare const createCategoryRoute: {
|
|
|
35
31
|
'application/json': {
|
|
36
32
|
schema: z.ZodObject<{
|
|
37
33
|
title: z.ZodString;
|
|
38
|
-
},
|
|
39
|
-
title: string;
|
|
40
|
-
}, {
|
|
41
|
-
title: string;
|
|
42
|
-
}>;
|
|
34
|
+
}, z.core.$strip>;
|
|
43
35
|
};
|
|
44
36
|
};
|
|
45
37
|
};
|
|
@@ -53,17 +45,7 @@ export declare const createCategoryRoute: {
|
|
|
53
45
|
title: z.ZodString;
|
|
54
46
|
createdAt: z.ZodDate;
|
|
55
47
|
updatedAt: z.ZodDate;
|
|
56
|
-
},
|
|
57
|
-
id: number;
|
|
58
|
-
title: string;
|
|
59
|
-
createdAt: Date;
|
|
60
|
-
updatedAt: Date;
|
|
61
|
-
}, {
|
|
62
|
-
id: number;
|
|
63
|
-
title: string;
|
|
64
|
-
createdAt: Date;
|
|
65
|
-
updatedAt: Date;
|
|
66
|
-
}>;
|
|
48
|
+
}, z.core.$strip>;
|
|
67
49
|
};
|
|
68
50
|
};
|
|
69
51
|
description: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create.route.d.ts","sourceRoot":"","sources":["../../../../../../../src/api/modules/admin/categories/routes/create.route.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,mBAAmB,CAAC;AAStC,eAAO,MAAM,uBAAuB
|
|
1
|
+
{"version":3,"file":"create.route.d.ts","sourceRoot":"","sources":["../../../../../../../src/api/modules/admin/categories/routes/create.route.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,mBAAmB,CAAC;AAStC,eAAO,MAAM,uBAAuB;;iBAElC,CAAC;AASH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyD9B,CAAC"}
|
|
@@ -18,12 +18,8 @@ export declare const deleteCategoryRoute: {
|
|
|
18
18
|
path: "/{id}";
|
|
19
19
|
request: {
|
|
20
20
|
params: z.ZodObject<{
|
|
21
|
-
id: z.
|
|
22
|
-
},
|
|
23
|
-
id: number;
|
|
24
|
-
}, {
|
|
25
|
-
id: string;
|
|
26
|
-
}>;
|
|
21
|
+
id: z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>;
|
|
22
|
+
}, z.core.$strip>;
|
|
27
23
|
};
|
|
28
24
|
responses: {
|
|
29
25
|
204: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete.route.d.ts","sourceRoot":"","sources":["../../../../../../../src/api/modules/admin/categories/routes/delete.route.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,mBAAmB,CAAC;AAQtC,eAAO,MAAM,mBAAmB
|
|
1
|
+
{"version":3,"file":"delete.route.d.ts","sourceRoot":"","sources":["../../../../../../../src/api/modules/admin/categories/routes/delete.route.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,mBAAmB,CAAC;AAQtC,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkC9B,CAAC"}
|
|
@@ -35,22 +35,14 @@ export declare const editCategoryRoute: {
|
|
|
35
35
|
path: "/{id}";
|
|
36
36
|
request: {
|
|
37
37
|
params: z.ZodObject<{
|
|
38
|
-
id: z.
|
|
39
|
-
},
|
|
40
|
-
id: number;
|
|
41
|
-
}, {
|
|
42
|
-
id: string;
|
|
43
|
-
}>;
|
|
38
|
+
id: z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>;
|
|
39
|
+
}, z.core.$strip>;
|
|
44
40
|
body: {
|
|
45
41
|
content: {
|
|
46
42
|
'application/json': {
|
|
47
43
|
schema: z.ZodObject<{
|
|
48
44
|
title: z.ZodString;
|
|
49
|
-
},
|
|
50
|
-
title: string;
|
|
51
|
-
}, {
|
|
52
|
-
title: string;
|
|
53
|
-
}>;
|
|
45
|
+
}, z.core.$strip>;
|
|
54
46
|
};
|
|
55
47
|
};
|
|
56
48
|
};
|
|
@@ -64,17 +56,7 @@ export declare const editCategoryRoute: {
|
|
|
64
56
|
title: z.ZodString;
|
|
65
57
|
createdAt: z.ZodDate;
|
|
66
58
|
updatedAt: z.ZodDate;
|
|
67
|
-
},
|
|
68
|
-
id: number;
|
|
69
|
-
title: string;
|
|
70
|
-
createdAt: Date;
|
|
71
|
-
updatedAt: Date;
|
|
72
|
-
}, {
|
|
73
|
-
id: number;
|
|
74
|
-
title: string;
|
|
75
|
-
createdAt: Date;
|
|
76
|
-
updatedAt: Date;
|
|
77
|
-
}>;
|
|
59
|
+
}, z.core.$strip>;
|
|
78
60
|
};
|
|
79
61
|
};
|
|
80
62
|
description: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"edit.route.d.ts","sourceRoot":"","sources":["../../../../../../../src/api/modules/admin/categories/routes/edit.route.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,mBAAmB,CAAC;AAkBtC,eAAO,MAAM,iBAAiB
|
|
1
|
+
{"version":3,"file":"edit.route.d.ts","sourceRoot":"","sources":["../../../../../../../src/api/modules/admin/categories/routes/edit.route.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,mBAAmB,CAAC;AAkBtC,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiF5B,CAAC"}
|
|
@@ -40,12 +40,8 @@ export declare const postsAdminModule: import("@vitnode/core/api/lib/module").Bu
|
|
|
40
40
|
path: "/{id}";
|
|
41
41
|
request: {
|
|
42
42
|
params: import("zod").ZodObject<{
|
|
43
|
-
id: import("zod").
|
|
44
|
-
},
|
|
45
|
-
id: number;
|
|
46
|
-
}, {
|
|
47
|
-
id: string;
|
|
48
|
-
}>;
|
|
43
|
+
id: import("zod").ZodPipe<import("zod").ZodString, import("zod").ZodTransform<number, string>>;
|
|
44
|
+
}, import("zod/v4/core").$strip>;
|
|
49
45
|
body: {
|
|
50
46
|
content: {
|
|
51
47
|
'application/json': {
|
|
@@ -53,15 +49,7 @@ export declare const postsAdminModule: import("@vitnode/core/api/lib/module").Bu
|
|
|
53
49
|
title: import("zod").ZodString;
|
|
54
50
|
content: import("zod").ZodString;
|
|
55
51
|
categoryId: import("zod").ZodNumber;
|
|
56
|
-
},
|
|
57
|
-
title: string;
|
|
58
|
-
content: string;
|
|
59
|
-
categoryId: number;
|
|
60
|
-
}, {
|
|
61
|
-
title: string;
|
|
62
|
-
content: string;
|
|
63
|
-
categoryId: number;
|
|
64
|
-
}>;
|
|
52
|
+
}, import("zod/v4/core").$strip>;
|
|
65
53
|
};
|
|
66
54
|
};
|
|
67
55
|
};
|
|
@@ -78,23 +66,7 @@ export declare const postsAdminModule: import("@vitnode/core/api/lib/module").Bu
|
|
|
78
66
|
categoryId: import("zod").ZodNumber;
|
|
79
67
|
createdAt: import("zod").ZodDate;
|
|
80
68
|
updatedAt: import("zod").ZodDate;
|
|
81
|
-
},
|
|
82
|
-
id: number;
|
|
83
|
-
title: string;
|
|
84
|
-
createdAt: Date;
|
|
85
|
-
updatedAt: Date;
|
|
86
|
-
titleSeo: string;
|
|
87
|
-
content: string;
|
|
88
|
-
categoryId: number;
|
|
89
|
-
}, {
|
|
90
|
-
id: number;
|
|
91
|
-
title: string;
|
|
92
|
-
createdAt: Date;
|
|
93
|
-
updatedAt: Date;
|
|
94
|
-
titleSeo: string;
|
|
95
|
-
content: string;
|
|
96
|
-
categoryId: number;
|
|
97
|
-
}>;
|
|
69
|
+
}, import("zod/v4/core").$strip>;
|
|
98
70
|
};
|
|
99
71
|
};
|
|
100
72
|
description: string;
|
|
@@ -146,15 +118,7 @@ export declare const postsAdminModule: import("@vitnode/core/api/lib/module").Bu
|
|
|
146
118
|
title: import("zod").ZodString;
|
|
147
119
|
content: import("zod").ZodString;
|
|
148
120
|
categoryId: import("zod").ZodNumber;
|
|
149
|
-
},
|
|
150
|
-
title: string;
|
|
151
|
-
content: string;
|
|
152
|
-
categoryId: number;
|
|
153
|
-
}, {
|
|
154
|
-
title: string;
|
|
155
|
-
content: string;
|
|
156
|
-
categoryId: number;
|
|
157
|
-
}>;
|
|
121
|
+
}, import("zod/v4/core").$strip>;
|
|
158
122
|
};
|
|
159
123
|
};
|
|
160
124
|
};
|
|
@@ -171,23 +135,7 @@ export declare const postsAdminModule: import("@vitnode/core/api/lib/module").Bu
|
|
|
171
135
|
categoryId: import("zod").ZodNumber;
|
|
172
136
|
createdAt: import("zod").ZodDate;
|
|
173
137
|
updatedAt: import("zod").ZodDate;
|
|
174
|
-
},
|
|
175
|
-
id: number;
|
|
176
|
-
title: string;
|
|
177
|
-
createdAt: Date;
|
|
178
|
-
updatedAt: Date;
|
|
179
|
-
titleSeo: string;
|
|
180
|
-
content: string;
|
|
181
|
-
categoryId: number;
|
|
182
|
-
}, {
|
|
183
|
-
id: number;
|
|
184
|
-
title: string;
|
|
185
|
-
createdAt: Date;
|
|
186
|
-
updatedAt: Date;
|
|
187
|
-
titleSeo: string;
|
|
188
|
-
content: string;
|
|
189
|
-
categoryId: number;
|
|
190
|
-
}>;
|
|
138
|
+
}, import("zod/v4/core").$strip>;
|
|
191
139
|
};
|
|
192
140
|
};
|
|
193
141
|
description: string;
|
|
@@ -221,12 +169,8 @@ export declare const postsAdminModule: import("@vitnode/core/api/lib/module").Bu
|
|
|
221
169
|
path: "/{id}";
|
|
222
170
|
request: {
|
|
223
171
|
params: import("zod").ZodObject<{
|
|
224
|
-
id: import("zod").
|
|
225
|
-
},
|
|
226
|
-
id: number;
|
|
227
|
-
}, {
|
|
228
|
-
id: string;
|
|
229
|
-
}>;
|
|
172
|
+
id: import("zod").ZodPipe<import("zod").ZodString, import("zod").ZodTransform<number, string>>;
|
|
173
|
+
}, import("zod/v4/core").$strip>;
|
|
230
174
|
};
|
|
231
175
|
responses: {
|
|
232
176
|
204: {
|
|
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wRAI3B,CAAC"}
|
|
@@ -3,15 +3,7 @@ export declare const zodCreatePostSchema: z.ZodObject<{
|
|
|
3
3
|
title: z.ZodString;
|
|
4
4
|
content: z.ZodString;
|
|
5
5
|
categoryId: z.ZodNumber;
|
|
6
|
-
},
|
|
7
|
-
title: string;
|
|
8
|
-
content: string;
|
|
9
|
-
categoryId: number;
|
|
10
|
-
}, {
|
|
11
|
-
title: string;
|
|
12
|
-
content: string;
|
|
13
|
-
categoryId: number;
|
|
14
|
-
}>;
|
|
6
|
+
}, z.core.$strip>;
|
|
15
7
|
export declare const createPostRoute: {
|
|
16
8
|
handler: (c: import("hono").Context<import("@vitnode/core/api/middlewares/global.middleware").EnvVitNode, "/", {
|
|
17
9
|
in: {
|
|
@@ -49,15 +41,7 @@ export declare const createPostRoute: {
|
|
|
49
41
|
title: z.ZodString;
|
|
50
42
|
content: z.ZodString;
|
|
51
43
|
categoryId: z.ZodNumber;
|
|
52
|
-
},
|
|
53
|
-
title: string;
|
|
54
|
-
content: string;
|
|
55
|
-
categoryId: number;
|
|
56
|
-
}, {
|
|
57
|
-
title: string;
|
|
58
|
-
content: string;
|
|
59
|
-
categoryId: number;
|
|
60
|
-
}>;
|
|
44
|
+
}, z.core.$strip>;
|
|
61
45
|
};
|
|
62
46
|
};
|
|
63
47
|
};
|
|
@@ -74,23 +58,7 @@ export declare const createPostRoute: {
|
|
|
74
58
|
categoryId: z.ZodNumber;
|
|
75
59
|
createdAt: z.ZodDate;
|
|
76
60
|
updatedAt: z.ZodDate;
|
|
77
|
-
},
|
|
78
|
-
id: number;
|
|
79
|
-
title: string;
|
|
80
|
-
createdAt: Date;
|
|
81
|
-
updatedAt: Date;
|
|
82
|
-
titleSeo: string;
|
|
83
|
-
content: string;
|
|
84
|
-
categoryId: number;
|
|
85
|
-
}, {
|
|
86
|
-
id: number;
|
|
87
|
-
title: string;
|
|
88
|
-
createdAt: Date;
|
|
89
|
-
updatedAt: Date;
|
|
90
|
-
titleSeo: string;
|
|
91
|
-
content: string;
|
|
92
|
-
categoryId: number;
|
|
93
|
-
}>;
|
|
61
|
+
}, z.core.$strip>;
|
|
94
62
|
};
|
|
95
63
|
};
|
|
96
64
|
description: string;
|
|
@@ -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;AAUtC,eAAO,MAAM,mBAAmB
|
|
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;AAUtC,eAAO,MAAM,mBAAmB;;;;iBAO9B,CAAC;AAYH,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4E1B,CAAC"}
|
|
@@ -18,12 +18,8 @@ export declare const deletePostRoute: {
|
|
|
18
18
|
path: "/{id}";
|
|
19
19
|
request: {
|
|
20
20
|
params: z.ZodObject<{
|
|
21
|
-
id: z.
|
|
22
|
-
},
|
|
23
|
-
id: number;
|
|
24
|
-
}, {
|
|
25
|
-
id: string;
|
|
26
|
-
}>;
|
|
21
|
+
id: z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>;
|
|
22
|
+
}, z.core.$strip>;
|
|
27
23
|
};
|
|
28
24
|
responses: {
|
|
29
25
|
204: {
|
|
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkC1B,CAAC"}
|