@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,162 +1,94 @@
1
- export declare const categoriesAdminModule: 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 categoriesAdminModule: 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;
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>;
25
+ };
66
26
  };
27
+ description: string;
67
28
  };
68
- } & {
69
- in: {
70
- json: {
71
- title: string;
72
- };
29
+ 400: {
30
+ description: string;
73
31
  };
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
- };
32
+ };
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>;
101
48
  };
102
49
  };
103
50
  };
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
- };
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>;
115
62
  };
116
- description: string;
117
- };
118
- 400: {
119
- description: string;
120
- };
121
- 404: {
122
- description: string;
123
63
  };
64
+ description: string;
124
65
  };
125
- } & {
126
- getRoutingPath: () => "/:id";
127
- };
128
- }, {
129
- handler: (c: import("hono").Context<import("@vitnode/core/api/middlewares/global.middleware").EnvVitNode, "/:id", {
130
- in: {
131
- param: {
132
- id: string;
133
- };
66
+ 400: {
67
+ description: string;
134
68
  };
135
- out: {
136
- param: {
137
- id: number;
138
- };
69
+ 404: {
70
+ description: string;
139
71
  };
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>;
72
+ };
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;
149
86
  };
150
- responses: {
151
- 204: {
152
- description: string;
153
- };
154
- 404: {
155
- description: string;
156
- };
87
+ 404: {
88
+ description: string;
157
89
  };
158
- } & {
159
- getRoutingPath: () => "/:id";
160
90
  };
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>>[]>[]>;
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>[]>[]>;
162
94
  //# sourceMappingURL=categories.admin.module.d.ts.map
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wRAIhC,CAAC"}
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sMAIhC,CAAC"}
@@ -2,60 +2,39 @@ import { z } from "@hono/zod-openapi";
2
2
  export declare const zodCreateCategorySchema: z.ZodObject<{
3
3
  title: z.ZodString;
4
4
  }, z.core.$strip>;
5
- export declare const createCategoryRoute: {
6
- handler: (c: import("hono").Context<import("@vitnode/core/api/middlewares/global.middleware").EnvVitNode, "/", {
7
- in: {
8
- json: {
9
- title: string;
10
- };
11
- };
12
- out: {
13
- json: {
14
- title: string;
15
- };
16
- };
17
- }>) => Promise<Response & import("hono").TypedResponse<{
18
- id: number;
19
- title: string;
20
- createdAt: string;
21
- updatedAt: string;
22
- titleSeo: string;
23
- }, 201, "json">>;
24
- pluginId: "@vitnode/blog";
25
- route: {
26
- method: "post";
27
- path: "/";
28
- request: {
29
- body: {
30
- content: {
31
- "application/json": {
32
- schema: z.ZodObject<{
33
- title: z.ZodString;
34
- }, z.core.$strip>;
35
- };
5
+ export declare const createCategoryRoute: import("@vitnode/core/api/lib/route").Route<"@vitnode/blog", {
6
+ method: "post";
7
+ path: "/";
8
+ request: {
9
+ body: {
10
+ content: {
11
+ "application/json": {
12
+ schema: z.ZodObject<{
13
+ title: z.ZodString;
14
+ }, z.core.$strip>;
36
15
  };
37
16
  };
38
17
  };
39
- responses: {
40
- 201: {
41
- content: {
42
- "application/json": {
43
- schema: z.ZodObject<{
44
- id: z.ZodNumber;
45
- title: z.ZodString;
46
- createdAt: z.ZodDate;
47
- updatedAt: z.ZodDate;
48
- }, z.core.$strip>;
49
- };
18
+ };
19
+ responses: {
20
+ 201: {
21
+ content: {
22
+ "application/json": {
23
+ schema: z.ZodObject<{
24
+ id: z.ZodNumber;
25
+ title: z.ZodString;
26
+ createdAt: z.ZodDate;
27
+ updatedAt: z.ZodDate;
28
+ }, z.core.$strip>;
50
29
  };
51
- description: string;
52
- };
53
- 400: {
54
- description: string;
55
30
  };
31
+ description: string;
32
+ };
33
+ 400: {
34
+ description: string;
56
35
  };
57
- } & {
58
- getRoutingPath: () => "/";
59
36
  };
60
- };
37
+ } & {
38
+ path: string;
39
+ }>;
61
40
  //# sourceMappingURL=create.route.d.ts.map
@@ -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;AAgBtC,eAAO,MAAM,uBAAuB;;iBAElC,CAAC;AAEH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyD9B,CAAC"}
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;AAgBtC,eAAO,MAAM,uBAAuB;;iBAElC,CAAC;AAEH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAyD9B,CAAC"}
@@ -1,36 +1,21 @@
1
1
  import { z } from "@hono/zod-openapi";
2
- export declare const deleteCategoryRoute: {
3
- handler: (c: import("hono").Context<import("@vitnode/core/api/middlewares/global.middleware").EnvVitNode, "/:id", {
4
- in: {
5
- param: {
6
- id: string;
7
- };
8
- };
9
- out: {
10
- param: {
11
- id: number;
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 deleteCategoryRoute: 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
- responses: {
25
- 204: {
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/categories/routes/delete.route.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,mBAAmB,CAAC;AAQtC,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkC9B,CAAC"}
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;;;;;;;;;;;;;;;;;;EAkC9B,CAAC"}
@@ -1,75 +1,43 @@
1
1
  import { z } from "@hono/zod-openapi";
2
- export declare const editCategoryRoute: {
3
- handler: (c: import("hono").Context<import("@vitnode/core/api/middlewares/global.middleware").EnvVitNode, "/:id", {
4
- in: {
5
- param: {
6
- id: string;
7
- };
8
- };
9
- out: {
10
- param: {
11
- id: number;
12
- };
13
- };
14
- } & {
15
- in: {
16
- json: {
17
- title: string;
18
- };
19
- };
20
- out: {
21
- json: {
22
- title: string;
23
- };
24
- };
25
- }>) => Promise<Response & import("hono").TypedResponse<{
26
- id: number;
27
- title: string;
28
- createdAt: string;
29
- updatedAt: string;
30
- titleSeo: string;
31
- }, 400 | 200 | 404, "json">>;
32
- pluginId: "@vitnode/blog";
33
- route: {
34
- method: "put";
35
- path: "/{id}";
36
- request: {
37
- params: z.ZodObject<{
38
- id: z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>;
39
- }, z.core.$strip>;
40
- body: {
41
- content: {
42
- "application/json": {
43
- schema: z.ZodObject<{
44
- title: z.ZodString;
45
- }, z.core.$strip>;
46
- };
2
+ export declare const editCategoryRoute: 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
+ }, z.core.$strip>;
47
15
  };
48
16
  };
49
17
  };
50
- responses: {
51
- 200: {
52
- content: {
53
- "application/json": {
54
- schema: z.ZodObject<{
55
- id: z.ZodNumber;
56
- title: z.ZodString;
57
- createdAt: z.ZodDate;
58
- updatedAt: z.ZodDate;
59
- }, z.core.$strip>;
60
- };
18
+ };
19
+ responses: {
20
+ 200: {
21
+ content: {
22
+ "application/json": {
23
+ schema: z.ZodObject<{
24
+ id: z.ZodNumber;
25
+ title: z.ZodString;
26
+ createdAt: z.ZodDate;
27
+ updatedAt: z.ZodDate;
28
+ }, z.core.$strip>;
61
29
  };
62
- description: string;
63
- };
64
- 400: {
65
- description: string;
66
- };
67
- 404: {
68
- description: string;
69
30
  };
31
+ description: string;
32
+ };
33
+ 400: {
34
+ description: string;
35
+ };
36
+ 404: {
37
+ description: string;
70
38
  };
71
- } & {
72
- getRoutingPath: () => "/:id";
73
39
  };
74
- };
40
+ } & {
41
+ path: string;
42
+ }>;
75
43
  //# sourceMappingURL=edit.route.d.ts.map
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiF5B,CAAC"}
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAiF5B,CAAC"}