@vitnode/blog 1.2.0-canary.47 → 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
|
@@ -11,62 +11,28 @@ export declare const zodPostSchema: z.ZodObject<{
|
|
|
11
11
|
id: z.ZodNumber;
|
|
12
12
|
title: z.ZodString;
|
|
13
13
|
titleSeo: z.ZodString;
|
|
14
|
-
},
|
|
15
|
-
|
|
16
|
-
title: string;
|
|
17
|
-
titleSeo: string;
|
|
18
|
-
}, {
|
|
19
|
-
id: number;
|
|
20
|
-
title: string;
|
|
21
|
-
titleSeo: string;
|
|
22
|
-
}>;
|
|
23
|
-
}, "strip", z.ZodTypeAny, {
|
|
24
|
-
id: number;
|
|
25
|
-
title: string;
|
|
26
|
-
createdAt: Date;
|
|
27
|
-
updatedAt: Date;
|
|
28
|
-
titleSeo: string;
|
|
29
|
-
content: string;
|
|
30
|
-
category: {
|
|
31
|
-
id: number;
|
|
32
|
-
title: string;
|
|
33
|
-
titleSeo: string;
|
|
34
|
-
};
|
|
35
|
-
categoryId: number;
|
|
36
|
-
}, {
|
|
37
|
-
id: number;
|
|
38
|
-
title: string;
|
|
39
|
-
createdAt: Date;
|
|
40
|
-
updatedAt: Date;
|
|
41
|
-
titleSeo: string;
|
|
42
|
-
content: string;
|
|
43
|
-
category: {
|
|
44
|
-
id: number;
|
|
45
|
-
title: string;
|
|
46
|
-
titleSeo: string;
|
|
47
|
-
};
|
|
48
|
-
categoryId: number;
|
|
49
|
-
}>;
|
|
14
|
+
}, z.core.$strip>;
|
|
15
|
+
}, z.core.$strip>;
|
|
50
16
|
export declare const postsRoute: {
|
|
51
17
|
handler: (c: import("hono").Context<import("@vitnode/core/api/middlewares/global.middleware").EnvVitNode, "/", {
|
|
52
18
|
in: {
|
|
53
19
|
query: {
|
|
54
|
-
orderBy?: "createdAt" | "updatedAt" | undefined;
|
|
55
|
-
categoryId?: string | undefined;
|
|
56
20
|
cursor?: string | undefined;
|
|
57
21
|
first?: string | undefined;
|
|
58
22
|
last?: string | undefined;
|
|
59
23
|
order?: "asc" | "desc" | undefined;
|
|
24
|
+
orderBy?: "createdAt" | "updatedAt" | undefined;
|
|
25
|
+
categoryId?: string | undefined;
|
|
60
26
|
};
|
|
61
27
|
};
|
|
62
28
|
out: {
|
|
63
29
|
query: {
|
|
64
|
-
orderBy?: "createdAt" | "updatedAt" | undefined;
|
|
65
|
-
categoryId?: number | undefined;
|
|
66
30
|
cursor?: string | undefined;
|
|
67
31
|
first?: string | undefined;
|
|
68
32
|
last?: string | undefined;
|
|
69
33
|
order?: "asc" | "desc" | undefined;
|
|
34
|
+
orderBy?: "createdAt" | "updatedAt" | undefined;
|
|
35
|
+
categoryId?: number | undefined;
|
|
70
36
|
};
|
|
71
37
|
};
|
|
72
38
|
}>) => Promise<Response & import("hono").TypedResponse<{
|
|
@@ -102,25 +68,16 @@ export declare const postsRoute: {
|
|
|
102
68
|
cursor: z.ZodOptional<z.ZodString>;
|
|
103
69
|
first: z.ZodOptional<z.ZodString>;
|
|
104
70
|
last: z.ZodOptional<z.ZodString>;
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
order?: "asc" | "desc" | undefined;
|
|
116
|
-
}, {
|
|
117
|
-
orderBy?: "createdAt" | "updatedAt" | undefined;
|
|
118
|
-
categoryId?: string | undefined;
|
|
119
|
-
cursor?: string | undefined;
|
|
120
|
-
first?: string | undefined;
|
|
121
|
-
last?: string | undefined;
|
|
122
|
-
order?: "asc" | "desc" | undefined;
|
|
123
|
-
}>;
|
|
71
|
+
order: z.ZodOptional<z.ZodEnum<{
|
|
72
|
+
asc: "asc";
|
|
73
|
+
desc: "desc";
|
|
74
|
+
}>>;
|
|
75
|
+
orderBy: z.ZodOptional<z.ZodEnum<{
|
|
76
|
+
createdAt: "createdAt";
|
|
77
|
+
updatedAt: "updatedAt";
|
|
78
|
+
}>>;
|
|
79
|
+
categoryId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>>;
|
|
80
|
+
}, z.core.$strip>;
|
|
124
81
|
};
|
|
125
82
|
responses: {
|
|
126
83
|
200: {
|
|
@@ -139,42 +96,8 @@ export declare const postsRoute: {
|
|
|
139
96
|
id: z.ZodNumber;
|
|
140
97
|
title: z.ZodString;
|
|
141
98
|
titleSeo: z.ZodString;
|
|
142
|
-
},
|
|
143
|
-
|
|
144
|
-
title: string;
|
|
145
|
-
titleSeo: string;
|
|
146
|
-
}, {
|
|
147
|
-
id: number;
|
|
148
|
-
title: string;
|
|
149
|
-
titleSeo: string;
|
|
150
|
-
}>;
|
|
151
|
-
}, "strip", z.ZodTypeAny, {
|
|
152
|
-
id: number;
|
|
153
|
-
title: string;
|
|
154
|
-
createdAt: Date;
|
|
155
|
-
updatedAt: Date;
|
|
156
|
-
titleSeo: string;
|
|
157
|
-
content: string;
|
|
158
|
-
category: {
|
|
159
|
-
id: number;
|
|
160
|
-
title: string;
|
|
161
|
-
titleSeo: string;
|
|
162
|
-
};
|
|
163
|
-
categoryId: number;
|
|
164
|
-
}, {
|
|
165
|
-
id: number;
|
|
166
|
-
title: string;
|
|
167
|
-
createdAt: Date;
|
|
168
|
-
updatedAt: Date;
|
|
169
|
-
titleSeo: string;
|
|
170
|
-
content: string;
|
|
171
|
-
category: {
|
|
172
|
-
id: number;
|
|
173
|
-
title: string;
|
|
174
|
-
titleSeo: string;
|
|
175
|
-
};
|
|
176
|
-
categoryId: number;
|
|
177
|
-
}>, "many">;
|
|
99
|
+
}, z.core.$strip>;
|
|
100
|
+
}, z.core.$strip>>;
|
|
178
101
|
pageInfo: z.ZodObject<{
|
|
179
102
|
totalCount: z.ZodNumber;
|
|
180
103
|
count: z.ZodNumber;
|
|
@@ -182,68 +105,8 @@ export declare const postsRoute: {
|
|
|
182
105
|
hasPreviousPage: z.ZodBoolean;
|
|
183
106
|
startCursor: z.ZodNullable<z.ZodNumber>;
|
|
184
107
|
endCursor: z.ZodNullable<z.ZodNumber>;
|
|
185
|
-
},
|
|
186
|
-
|
|
187
|
-
totalCount: number;
|
|
188
|
-
hasNextPage: boolean;
|
|
189
|
-
hasPreviousPage: boolean;
|
|
190
|
-
startCursor: number | null;
|
|
191
|
-
endCursor: number | null;
|
|
192
|
-
}, {
|
|
193
|
-
count: number;
|
|
194
|
-
totalCount: number;
|
|
195
|
-
hasNextPage: boolean;
|
|
196
|
-
hasPreviousPage: boolean;
|
|
197
|
-
startCursor: number | null;
|
|
198
|
-
endCursor: number | null;
|
|
199
|
-
}>;
|
|
200
|
-
}, "strip", z.ZodTypeAny, {
|
|
201
|
-
edges: {
|
|
202
|
-
id: number;
|
|
203
|
-
title: string;
|
|
204
|
-
createdAt: Date;
|
|
205
|
-
updatedAt: Date;
|
|
206
|
-
titleSeo: string;
|
|
207
|
-
content: string;
|
|
208
|
-
category: {
|
|
209
|
-
id: number;
|
|
210
|
-
title: string;
|
|
211
|
-
titleSeo: string;
|
|
212
|
-
};
|
|
213
|
-
categoryId: number;
|
|
214
|
-
}[];
|
|
215
|
-
pageInfo: {
|
|
216
|
-
count: number;
|
|
217
|
-
totalCount: number;
|
|
218
|
-
hasNextPage: boolean;
|
|
219
|
-
hasPreviousPage: boolean;
|
|
220
|
-
startCursor: number | null;
|
|
221
|
-
endCursor: number | null;
|
|
222
|
-
};
|
|
223
|
-
}, {
|
|
224
|
-
edges: {
|
|
225
|
-
id: number;
|
|
226
|
-
title: string;
|
|
227
|
-
createdAt: Date;
|
|
228
|
-
updatedAt: Date;
|
|
229
|
-
titleSeo: string;
|
|
230
|
-
content: string;
|
|
231
|
-
category: {
|
|
232
|
-
id: number;
|
|
233
|
-
title: string;
|
|
234
|
-
titleSeo: string;
|
|
235
|
-
};
|
|
236
|
-
categoryId: number;
|
|
237
|
-
}[];
|
|
238
|
-
pageInfo: {
|
|
239
|
-
count: number;
|
|
240
|
-
totalCount: number;
|
|
241
|
-
hasNextPage: boolean;
|
|
242
|
-
hasPreviousPage: boolean;
|
|
243
|
-
startCursor: number | null;
|
|
244
|
-
endCursor: number | null;
|
|
245
|
-
};
|
|
246
|
-
}>;
|
|
108
|
+
}, z.core.$strip>;
|
|
109
|
+
}, z.core.$strip>;
|
|
247
110
|
};
|
|
248
111
|
};
|
|
249
112
|
description: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get.route.d.ts","sourceRoot":"","sources":["../../../../../../src/api/modules/posts/routes/get.route.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,mBAAmB,CAAC;AAatC,eAAO,MAAM,aAAa
|
|
1
|
+
{"version":3,"file":"get.route.d.ts","sourceRoot":"","sources":["../../../../../../src/api/modules/posts/routes/get.route.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,mBAAmB,CAAC;AAatC,eAAO,MAAM,aAAa;;;;;;;;;;;;;iBAaxB,CAAC;AAEH,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2ErB,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
declare const CreateEditActionCategoriesAdmin: React.ComponentType<{
|
|
3
|
-
data?: import("zod").
|
|
3
|
+
data?: import("zod").infer<typeof import("../../../../../api/modules/admin/categories/routes/create.route").zodCreateCategorySchema> & {
|
|
4
4
|
id: number;
|
|
5
5
|
};
|
|
6
6
|
}>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
declare const CreateEditActionPostsAdmin: React.ComponentType<{
|
|
3
|
-
data?: import("zod").
|
|
3
|
+
data?: import("zod").infer<typeof import("../../../../../api/modules/posts/routes/get.route").zodPostSchema> & {
|
|
4
4
|
id?: number;
|
|
5
5
|
};
|
|
6
6
|
}>;
|