@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
@@ -13,107 +13,59 @@ export declare const zodPostSchema: z.ZodObject<{
13
13
  titleSeo: z.ZodString;
14
14
  }, z.core.$strip>;
15
15
  }, z.core.$strip>;
16
- export declare const postsRoute: {
17
- handler: (c: import("hono").Context<import("@vitnode/core/api/middlewares/global.middleware").EnvVitNode, "/", {
18
- in: {
19
- query: {
20
- cursor?: string | undefined;
21
- first?: string | undefined;
22
- last?: string | undefined;
23
- order?: "asc" | "desc" | undefined;
24
- orderBy?: "createdAt" | "updatedAt" | undefined;
25
- categoryId?: string | undefined;
26
- };
27
- };
28
- out: {
29
- query: {
30
- cursor?: string | undefined;
31
- first?: string | undefined;
32
- last?: string | undefined;
33
- order?: "asc" | "desc" | undefined;
34
- orderBy?: "createdAt" | "updatedAt" | undefined;
35
- categoryId?: number | undefined;
36
- };
37
- };
38
- }>) => Promise<Response & import("hono").TypedResponse<{
39
- edges: {
40
- id: number;
41
- title: string;
42
- titleSeo: string;
43
- content: string;
44
- categoryId: number;
45
- createdAt: string;
46
- updatedAt: string;
47
- category: {
48
- id: number;
49
- title: string;
50
- titleSeo: string;
51
- };
52
- }[];
53
- pageInfo: {
54
- count: number;
55
- endCursor: null | number;
56
- hasNextPage: boolean;
57
- hasPreviousPage: boolean;
58
- startCursor: null | number;
59
- totalCount: number;
60
- };
61
- }, 200, "json">>;
62
- pluginId: "@vitnode/blog";
63
- route: {
64
- method: "get";
65
- path: "/";
66
- request: {
67
- query: z.ZodObject<{
68
- cursor: z.ZodOptional<z.ZodString>;
69
- first: z.ZodOptional<z.ZodString>;
70
- last: z.ZodOptional<z.ZodString>;
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>;
81
- };
82
- responses: {
83
- 200: {
84
- content: {
85
- "application/json": {
86
- schema: z.ZodObject<{
87
- edges: z.ZodArray<z.ZodObject<{
16
+ export declare const postsRoute: import("@vitnode/core/api/lib/route").Route<"@vitnode/blog", {
17
+ method: "get";
18
+ path: "/";
19
+ request: {
20
+ query: z.ZodObject<{
21
+ cursor: z.ZodOptional<z.ZodString>;
22
+ first: z.ZodOptional<z.ZodString>;
23
+ last: z.ZodOptional<z.ZodString>;
24
+ order: z.ZodOptional<z.ZodEnum<{
25
+ asc: "asc";
26
+ desc: "desc";
27
+ }>>;
28
+ orderBy: z.ZodOptional<z.ZodEnum<{
29
+ createdAt: "createdAt";
30
+ updatedAt: "updatedAt";
31
+ }>>;
32
+ categoryId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>>;
33
+ }, z.core.$strip>;
34
+ };
35
+ responses: {
36
+ 200: {
37
+ content: {
38
+ "application/json": {
39
+ schema: z.ZodObject<{
40
+ edges: z.ZodArray<z.ZodObject<{
41
+ id: z.ZodNumber;
42
+ title: z.ZodString;
43
+ titleSeo: z.ZodString;
44
+ content: z.ZodString;
45
+ categoryId: z.ZodNumber;
46
+ createdAt: z.ZodDate;
47
+ updatedAt: z.ZodDate;
48
+ category: z.ZodObject<{
88
49
  id: z.ZodNumber;
89
50
  title: z.ZodString;
90
51
  titleSeo: z.ZodString;
91
- content: z.ZodString;
92
- categoryId: z.ZodNumber;
93
- createdAt: z.ZodDate;
94
- updatedAt: z.ZodDate;
95
- category: z.ZodObject<{
96
- id: z.ZodNumber;
97
- title: z.ZodString;
98
- titleSeo: z.ZodString;
99
- }, z.core.$strip>;
100
- }, z.core.$strip>>;
101
- pageInfo: z.ZodObject<{
102
- totalCount: z.ZodNumber;
103
- count: z.ZodNumber;
104
- hasNextPage: z.ZodBoolean;
105
- hasPreviousPage: z.ZodBoolean;
106
- startCursor: z.ZodNullable<z.ZodNumber>;
107
- endCursor: z.ZodNullable<z.ZodNumber>;
108
52
  }, z.core.$strip>;
53
+ }, z.core.$strip>>;
54
+ pageInfo: z.ZodObject<{
55
+ totalCount: z.ZodNumber;
56
+ count: z.ZodNumber;
57
+ hasNextPage: z.ZodBoolean;
58
+ hasPreviousPage: z.ZodBoolean;
59
+ startCursor: z.ZodNullable<z.ZodNumber>;
60
+ endCursor: z.ZodNullable<z.ZodNumber>;
109
61
  }, z.core.$strip>;
110
- };
62
+ }, z.core.$strip>;
111
63
  };
112
- description: string;
113
64
  };
65
+ description: string;
114
66
  };
115
- } & {
116
- getRoutingPath: () => "/";
117
67
  };
118
- };
68
+ } & {
69
+ path: string;
70
+ }>;
119
71
  //# sourceMappingURL=get.route.d.ts.map
@@ -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;;;;;;;;;;;;;iBAaxB,CAAC;AAEH,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2ErB,CAAC"}
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA2ErB,CAAC"}