@veruna/api-contracts 1.0.7 → 1.0.8

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 (103) hide show
  1. package/build/v1/auth/commands/delete-session.command.js +3 -2
  2. package/build/v1/auth/commands/logout-all.command.js +3 -2
  3. package/build/v1/auth/commands/logout.command.js +3 -2
  4. package/package.json +2 -1
  5. package/build/index.d.ts +0 -4
  6. package/build/locales/en.d.ts +0 -31
  7. package/build/locales/index.d.ts +0 -66
  8. package/build/locales/ru.d.ts +0 -30
  9. package/build/rest-api.d.ts +0 -52
  10. package/build/shared/common-schemas.d.ts +0 -12
  11. package/build/shared/error-response.schema.d.ts +0 -25
  12. package/build/shared/http-method.d.ts +0 -10
  13. package/build/shared/index.d.ts +0 -2
  14. package/build/shared/pagination.schema.d.ts +0 -35
  15. package/build/shared/regex.d.ts +0 -8
  16. package/build/utils/index.d.ts +0 -1
  17. package/build/utils/path-builder.d.ts +0 -20
  18. package/build/v1/auth/auth.errors.d.ts +0 -12
  19. package/build/v1/auth/auth.paths.d.ts +0 -17
  20. package/build/v1/auth/auth.types.d.ts +0 -9
  21. package/build/v1/auth/commands/delete-session.command.d.ts +0 -11
  22. package/build/v1/auth/commands/index.d.ts +0 -5
  23. package/build/v1/auth/commands/login.command.d.ts +0 -32
  24. package/build/v1/auth/commands/logout-all.command.d.ts +0 -11
  25. package/build/v1/auth/commands/logout.command.d.ts +0 -11
  26. package/build/v1/auth/commands/signup.command.d.ts +0 -41
  27. package/build/v1/auth/controllers.d.ts +0 -4
  28. package/build/v1/auth/index.d.ts +0 -8
  29. package/build/v1/auth/queries/get-sessions.query.d.ts +0 -20
  30. package/build/v1/auth/queries/index.d.ts +0 -1
  31. package/build/v1/auth/routes/auth.routes.d.ts +0 -12
  32. package/build/v1/auth/schemas/auth-response.schema.d.ts +0 -36
  33. package/build/v1/auth/schemas/index.d.ts +0 -5
  34. package/build/v1/auth/schemas/login-request.schema.d.ts +0 -9
  35. package/build/v1/auth/schemas/session-response.schema.d.ts +0 -13
  36. package/build/v1/auth/schemas/signup-request.schema.d.ts +0 -28
  37. package/build/v1/auth/schemas/user-role.enum.d.ts +0 -7
  38. package/build/v1/blog/admin/commands/create-category.command.d.ts +0 -24
  39. package/build/v1/blog/admin/commands/create-post.command.d.ts +0 -43
  40. package/build/v1/blog/admin/commands/delete-category.command.d.ts +0 -11
  41. package/build/v1/blog/admin/commands/delete-post.command.d.ts +0 -11
  42. package/build/v1/blog/admin/commands/index.d.ts +0 -6
  43. package/build/v1/blog/admin/commands/update-category.command.d.ts +0 -24
  44. package/build/v1/blog/admin/commands/update-post.command.d.ts +0 -43
  45. package/build/v1/blog/admin/queries/get-categories.query.d.ts +0 -24
  46. package/build/v1/blog/admin/queries/get-category.query.d.ts +0 -19
  47. package/build/v1/blog/admin/queries/get-post.query.d.ts +0 -33
  48. package/build/v1/blog/admin/queries/get-posts.query.d.ts +0 -48
  49. package/build/v1/blog/admin/queries/index.d.ts +0 -4
  50. package/build/v1/blog/blog.paths.d.ts +0 -36
  51. package/build/v1/blog/blog.types.d.ts +0 -12
  52. package/build/v1/blog/controllers.d.ts +0 -7
  53. package/build/v1/blog/index.d.ts +0 -8
  54. package/build/v1/blog/public/queries/get-categories.query.d.ts +0 -21
  55. package/build/v1/blog/public/queries/get-post-by-alias.query.d.ts +0 -33
  56. package/build/v1/blog/public/queries/get-posts.query.d.ts +0 -47
  57. package/build/v1/blog/public/queries/index.d.ts +0 -3
  58. package/build/v1/blog/routes/blog-admin-categories.routes.d.ts +0 -11
  59. package/build/v1/blog/routes/blog-admin-posts.routes.d.ts +0 -10
  60. package/build/v1/blog/routes/blog-public.routes.d.ts +0 -10
  61. package/build/v1/blog/routes/index.d.ts +0 -3
  62. package/build/v1/blog/schemas/blog-category-status.enum.d.ts +0 -8
  63. package/build/v1/blog/schemas/blog-post-status.enum.d.ts +0 -8
  64. package/build/v1/blog/schemas/category-response.schema.d.ts +0 -14
  65. package/build/v1/blog/schemas/create-category-request.schema.d.ts +0 -8
  66. package/build/v1/blog/schemas/create-post-request.schema.d.ts +0 -13
  67. package/build/v1/blog/schemas/get-posts-query.schema.d.ts +0 -13
  68. package/build/v1/blog/schemas/index.d.ts +0 -9
  69. package/build/v1/blog/schemas/post-response.schema.d.ts +0 -28
  70. package/build/v1/blog/schemas/update-category-request.schema.d.ts +0 -8
  71. package/build/v1/blog/schemas/update-post-request.schema.d.ts +0 -13
  72. package/build/v1/index.d.ts +0 -2
  73. package/build/v1/unregistered-users/commands/authenticate.command.d.ts +0 -18
  74. package/build/v1/unregistered-users/commands/index.d.ts +0 -1
  75. package/build/v1/unregistered-users/controllers.d.ts +0 -4
  76. package/build/v1/unregistered-users/index.d.ts +0 -5
  77. package/build/v1/unregistered-users/routes/unreg-users.routes.d.ts +0 -6
  78. package/build/v1/unregistered-users/schemas/authenticate-request.schema.d.ts +0 -7
  79. package/build/v1/unregistered-users/schemas/authenticate-response.schema.d.ts +0 -11
  80. package/build/v1/unregistered-users/schemas/index.d.ts +0 -3
  81. package/build/v1/unregistered-users/schemas/unreg-user-status.enum.d.ts +0 -8
  82. package/build/v1/unregistered-users/unregistered-users.errors.d.ts +0 -15
  83. package/build/v1/unregistered-users/unregistered-users.paths.d.ts +0 -15
  84. package/build/v1/unregistered-users/unregistered-users.types.d.ts +0 -9
  85. package/build/v1/users/commands/change-password.command.d.ts +0 -15
  86. package/build/v1/users/commands/delete-account.command.d.ts +0 -11
  87. package/build/v1/users/commands/index.d.ts +0 -4
  88. package/build/v1/users/commands/toggle-marketing-consent.command.d.ts +0 -13
  89. package/build/v1/users/commands/update-profile.command.d.ts +0 -13
  90. package/build/v1/users/controllers.d.ts +0 -4
  91. package/build/v1/users/index.d.ts +0 -7
  92. package/build/v1/users/queries/get-current-user.query.d.ts +0 -18
  93. package/build/v1/users/queries/index.d.ts +0 -1
  94. package/build/v1/users/routes/users.routes.d.ts +0 -9
  95. package/build/v1/users/schemas/change-password-request.schema.d.ts +0 -10
  96. package/build/v1/users/schemas/delete-account-request.schema.d.ts +0 -5
  97. package/build/v1/users/schemas/index.d.ts +0 -6
  98. package/build/v1/users/schemas/response-unions.schema.d.ts +0 -31
  99. package/build/v1/users/schemas/toggle-marketing-consent-request.schema.d.ts +0 -7
  100. package/build/v1/users/schemas/update-profile-request.schema.d.ts +0 -8
  101. package/build/v1/users/schemas/user-response.schema.d.ts +0 -12
  102. package/build/v1/users/users.paths.d.ts +0 -11
  103. package/build/v1/users/users.types.d.ts +0 -11
@@ -1,9 +0,0 @@
1
- import { z } from 'zod';
2
- /**
3
- * Login Request Schema
4
- * Error messages are in locales (en.ts, ru.ts)
5
- */
6
- export declare const LoginRequestSchema: z.ZodObject<{
7
- email: z.ZodString;
8
- password: z.ZodString;
9
- }, z.core.$strip>;
@@ -1,13 +0,0 @@
1
- import { z } from 'zod';
2
- /**
3
- * Session Response Schema
4
- * Error messages are in locales (en.ts, ru.ts)
5
- */
6
- export declare const SessionResponseSchema: z.ZodObject<{
7
- uuid: z.ZodString;
8
- deviceName: z.ZodString;
9
- ip: z.ZodString;
10
- isCurrent: z.ZodBoolean;
11
- createdAt: z.ZodString;
12
- lastUsedAt: z.ZodString;
13
- }, z.core.$strip>;
@@ -1,28 +0,0 @@
1
- import { z } from 'zod';
2
- /**
3
- * UTM Schema
4
- */
5
- export declare const UtmSchema: z.ZodObject<{
6
- utmSource: z.ZodOptional<z.ZodString>;
7
- utmMedium: z.ZodOptional<z.ZodString>;
8
- utmCampaign: z.ZodOptional<z.ZodString>;
9
- utmContent: z.ZodOptional<z.ZodString>;
10
- utmTerm: z.ZodOptional<z.ZodString>;
11
- }, z.core.$strip>;
12
- /**
13
- * Sign Up Request Schema
14
- * Error messages are in locales (en.ts, ru.ts)
15
- */
16
- export declare const SignUpRequestSchema: z.ZodObject<{
17
- email: z.ZodString;
18
- password: z.ZodString;
19
- name: z.ZodString;
20
- marketingConsent: z.ZodDefault<z.ZodBoolean>;
21
- utm: z.ZodOptional<z.ZodObject<{
22
- utmSource: z.ZodOptional<z.ZodString>;
23
- utmMedium: z.ZodOptional<z.ZodString>;
24
- utmCampaign: z.ZodOptional<z.ZodString>;
25
- utmContent: z.ZodOptional<z.ZodString>;
26
- utmTerm: z.ZodOptional<z.ZodString>;
27
- }, z.core.$strip>>;
28
- }, z.core.$strip>;
@@ -1,7 +0,0 @@
1
- /**
2
- * User Role enum
3
- */
4
- export declare enum UserRole {
5
- USER = "user",
6
- ADMIN = "admin"
7
- }
@@ -1,24 +0,0 @@
1
- import { z } from 'zod';
2
- import { HttpMethod } from '../../../../shared/http-method';
3
- export declare namespace AdminBlogCreateCategoryCommand {
4
- const Request: z.ZodObject<{
5
- alias: z.ZodString;
6
- title: z.ZodString;
7
- order: z.ZodDefault<z.ZodNumber>;
8
- status: z.ZodDefault<z.ZodEnum<typeof import("../../schemas").BlogCategoryStatus>>;
9
- }, z.core.$strip>;
10
- const Response: z.ZodObject<{
11
- uuid: z.ZodString;
12
- alias: z.ZodString;
13
- title: z.ZodString;
14
- order: z.ZodNumber;
15
- status: z.ZodEnum<typeof import("../../schemas").BlogCategoryStatus>;
16
- createdAt: z.ZodString;
17
- updatedAt: z.ZodString;
18
- }, z.core.$strip>;
19
- const PATH: "";
20
- const URL: "/api/v1/admin/blog/categories/";
21
- const METHOD = HttpMethod.POST;
22
- type RequestType = z.infer<typeof Request>;
23
- type ResponseType = z.infer<typeof Response>;
24
- }
@@ -1,43 +0,0 @@
1
- import { z } from 'zod';
2
- import { HttpMethod } from '../../../../shared/http-method';
3
- export declare namespace AdminBlogCreatePostCommand {
4
- const Request: z.ZodObject<{
5
- alias: z.ZodString;
6
- title: z.ZodString;
7
- metaTitle: z.ZodString;
8
- metaDescription: z.ZodString;
9
- content: z.ZodString;
10
- image: z.ZodString;
11
- author: z.ZodString;
12
- categoryIds: z.ZodArray<z.ZodString>;
13
- status: z.ZodDefault<z.ZodEnum<typeof import("../../schemas").BlogPostStatus>>;
14
- }, z.core.$strip>;
15
- const Response: z.ZodObject<{
16
- uuid: z.ZodString;
17
- alias: z.ZodString;
18
- title: z.ZodString;
19
- metaTitle: z.ZodString;
20
- metaDescription: z.ZodString;
21
- content: z.ZodString;
22
- image: z.ZodString;
23
- author: z.ZodString;
24
- categories: z.ZodArray<z.ZodObject<{
25
- uuid: z.ZodString;
26
- alias: z.ZodString;
27
- title: z.ZodString;
28
- order: z.ZodNumber;
29
- status: z.ZodEnum<typeof import("../../schemas").BlogCategoryStatus>;
30
- createdAt: z.ZodString;
31
- updatedAt: z.ZodString;
32
- }, z.core.$strip>>;
33
- viewsCount: z.ZodNumber;
34
- status: z.ZodEnum<typeof import("../../schemas").BlogPostStatus>;
35
- createdAt: z.ZodString;
36
- updatedAt: z.ZodString;
37
- }, z.core.$strip>;
38
- const PATH: "";
39
- const URL: "/api/v1/admin/blog/posts/";
40
- const METHOD = HttpMethod.POST;
41
- type RequestType = z.infer<typeof Request>;
42
- type ResponseType = z.infer<typeof Response>;
43
- }
@@ -1,11 +0,0 @@
1
- import { z } from 'zod';
2
- import { HttpMethod } from '../../../../shared/http-method';
3
- export declare namespace AdminBlogDeleteCategoryCommand {
4
- const Request: z.ZodObject<{}, z.core.$strip>;
5
- const Response: z.ZodObject<{}, z.core.$strip>;
6
- const PATH: ":uuid";
7
- const URL: (uuid: string) => string;
8
- const METHOD = HttpMethod.DELETE;
9
- type RequestType = z.infer<typeof Request>;
10
- type ResponseType = z.infer<typeof Response>;
11
- }
@@ -1,11 +0,0 @@
1
- import { z } from 'zod';
2
- import { HttpMethod } from '../../../../shared/http-method';
3
- export declare namespace AdminBlogDeletePostCommand {
4
- const Request: z.ZodObject<{}, z.core.$strip>;
5
- const Response: z.ZodObject<{}, z.core.$strip>;
6
- const PATH: ":uuid";
7
- const URL: (uuid: string) => string;
8
- const METHOD = HttpMethod.DELETE;
9
- type RequestType = z.infer<typeof Request>;
10
- type ResponseType = z.infer<typeof Response>;
11
- }
@@ -1,6 +0,0 @@
1
- export * from './create-category.command';
2
- export * from './update-category.command';
3
- export * from './delete-category.command';
4
- export * from './create-post.command';
5
- export * from './update-post.command';
6
- export * from './delete-post.command';
@@ -1,24 +0,0 @@
1
- import { z } from 'zod';
2
- import { HttpMethod } from '../../../../shared/http-method';
3
- export declare namespace AdminBlogUpdateCategoryCommand {
4
- const Request: z.ZodObject<{
5
- alias: z.ZodOptional<z.ZodString>;
6
- title: z.ZodOptional<z.ZodString>;
7
- order: z.ZodOptional<z.ZodNumber>;
8
- status: z.ZodOptional<z.ZodEnum<typeof import("../../schemas").BlogCategoryStatus>>;
9
- }, z.core.$strip>;
10
- const Response: z.ZodObject<{
11
- uuid: z.ZodString;
12
- alias: z.ZodString;
13
- title: z.ZodString;
14
- order: z.ZodNumber;
15
- status: z.ZodEnum<typeof import("../../schemas").BlogCategoryStatus>;
16
- createdAt: z.ZodString;
17
- updatedAt: z.ZodString;
18
- }, z.core.$strip>;
19
- const PATH: ":uuid";
20
- const URL: (uuid: string) => string;
21
- const METHOD = HttpMethod.PATCH;
22
- type RequestType = z.infer<typeof Request>;
23
- type ResponseType = z.infer<typeof Response>;
24
- }
@@ -1,43 +0,0 @@
1
- import { z } from 'zod';
2
- import { HttpMethod } from '../../../../shared/http-method';
3
- export declare namespace AdminBlogUpdatePostCommand {
4
- const Request: z.ZodObject<{
5
- alias: z.ZodOptional<z.ZodString>;
6
- title: z.ZodOptional<z.ZodString>;
7
- metaTitle: z.ZodOptional<z.ZodString>;
8
- metaDescription: z.ZodOptional<z.ZodString>;
9
- content: z.ZodOptional<z.ZodString>;
10
- image: z.ZodOptional<z.ZodString>;
11
- author: z.ZodOptional<z.ZodString>;
12
- categoryIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
13
- status: z.ZodOptional<z.ZodEnum<typeof import("../../schemas").BlogPostStatus>>;
14
- }, z.core.$strip>;
15
- const Response: z.ZodObject<{
16
- uuid: z.ZodString;
17
- alias: z.ZodString;
18
- title: z.ZodString;
19
- metaTitle: z.ZodString;
20
- metaDescription: z.ZodString;
21
- content: z.ZodString;
22
- image: z.ZodString;
23
- author: z.ZodString;
24
- categories: z.ZodArray<z.ZodObject<{
25
- uuid: z.ZodString;
26
- alias: z.ZodString;
27
- title: z.ZodString;
28
- order: z.ZodNumber;
29
- status: z.ZodEnum<typeof import("../../schemas").BlogCategoryStatus>;
30
- createdAt: z.ZodString;
31
- updatedAt: z.ZodString;
32
- }, z.core.$strip>>;
33
- viewsCount: z.ZodNumber;
34
- status: z.ZodEnum<typeof import("../../schemas").BlogPostStatus>;
35
- createdAt: z.ZodString;
36
- updatedAt: z.ZodString;
37
- }, z.core.$strip>;
38
- const PATH: ":uuid";
39
- const URL: (uuid: string) => string;
40
- const METHOD = HttpMethod.PATCH;
41
- type RequestType = z.infer<typeof Request>;
42
- type ResponseType = z.infer<typeof Response>;
43
- }
@@ -1,24 +0,0 @@
1
- import { z } from 'zod';
2
- import { BlogCategoryStatus } from '../../schemas';
3
- import { HttpMethod } from '../../../../shared/http-method';
4
- export declare namespace AdminBlogGetCategoriesQuery {
5
- const Request: z.ZodObject<{
6
- status: z.ZodOptional<z.ZodEnum<typeof BlogCategoryStatus>>;
7
- }, z.core.$strip>;
8
- const Response: z.ZodObject<{
9
- categories: z.ZodArray<z.ZodObject<{
10
- uuid: z.ZodString;
11
- alias: z.ZodString;
12
- title: z.ZodString;
13
- order: z.ZodNumber;
14
- status: z.ZodEnum<typeof BlogCategoryStatus>;
15
- createdAt: z.ZodString;
16
- updatedAt: z.ZodString;
17
- }, z.core.$strip>>;
18
- }, z.core.$strip>;
19
- const PATH: "";
20
- const URL: "/api/v1/admin/blog/categories/";
21
- const METHOD = HttpMethod.GET;
22
- type RequestType = z.infer<typeof Request>;
23
- type ResponseType = z.infer<typeof Response>;
24
- }
@@ -1,19 +0,0 @@
1
- import { z } from 'zod';
2
- import { HttpMethod } from '../../../../shared/http-method';
3
- export declare namespace AdminBlogGetCategoryQuery {
4
- const Request: z.ZodObject<{}, z.core.$strip>;
5
- const Response: z.ZodObject<{
6
- uuid: z.ZodString;
7
- alias: z.ZodString;
8
- title: z.ZodString;
9
- order: z.ZodNumber;
10
- status: z.ZodEnum<typeof import("../../schemas").BlogCategoryStatus>;
11
- createdAt: z.ZodString;
12
- updatedAt: z.ZodString;
13
- }, z.core.$strip>;
14
- const PATH: ":uuid";
15
- const URL: (uuid: string) => string;
16
- const METHOD = HttpMethod.GET;
17
- type RequestType = z.infer<typeof Request>;
18
- type ResponseType = z.infer<typeof Response>;
19
- }
@@ -1,33 +0,0 @@
1
- import { z } from 'zod';
2
- import { HttpMethod } from '../../../../shared/http-method';
3
- export declare namespace AdminBlogGetPostQuery {
4
- const Request: z.ZodObject<{}, z.core.$strip>;
5
- const Response: z.ZodObject<{
6
- uuid: z.ZodString;
7
- alias: z.ZodString;
8
- title: z.ZodString;
9
- metaTitle: z.ZodString;
10
- metaDescription: z.ZodString;
11
- content: z.ZodString;
12
- image: z.ZodString;
13
- author: z.ZodString;
14
- categories: z.ZodArray<z.ZodObject<{
15
- uuid: z.ZodString;
16
- alias: z.ZodString;
17
- title: z.ZodString;
18
- order: z.ZodNumber;
19
- status: z.ZodEnum<typeof import("../../schemas").BlogCategoryStatus>;
20
- createdAt: z.ZodString;
21
- updatedAt: z.ZodString;
22
- }, z.core.$strip>>;
23
- viewsCount: z.ZodNumber;
24
- status: z.ZodEnum<typeof import("../../schemas").BlogPostStatus>;
25
- createdAt: z.ZodString;
26
- updatedAt: z.ZodString;
27
- }, z.core.$strip>;
28
- const PATH: ":uuid";
29
- const URL: (uuid: string) => string;
30
- const METHOD = HttpMethod.GET;
31
- type RequestType = z.infer<typeof Request>;
32
- type ResponseType = z.infer<typeof Response>;
33
- }
@@ -1,48 +0,0 @@
1
- import { z } from 'zod';
2
- import { HttpMethod } from '../../../../shared/http-method';
3
- export declare namespace AdminBlogGetPostsQuery {
4
- const Request: z.ZodObject<{
5
- page: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
6
- limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
7
- status: z.ZodOptional<z.ZodEnum<typeof import("../../schemas").BlogPostStatus>>;
8
- categoryAliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
9
- }, z.core.$strip>;
10
- const Response: z.ZodObject<{
11
- data: z.ZodArray<z.ZodObject<{
12
- uuid: z.ZodString;
13
- alias: z.ZodString;
14
- title: z.ZodString;
15
- metaTitle: z.ZodString;
16
- metaDescription: z.ZodString;
17
- content: z.ZodString;
18
- image: z.ZodString;
19
- author: z.ZodString;
20
- categories: z.ZodArray<z.ZodObject<{
21
- uuid: z.ZodString;
22
- alias: z.ZodString;
23
- title: z.ZodString;
24
- order: z.ZodNumber;
25
- status: z.ZodEnum<typeof import("../../schemas").BlogCategoryStatus>;
26
- createdAt: z.ZodString;
27
- updatedAt: z.ZodString;
28
- }, z.core.$strip>>;
29
- viewsCount: z.ZodNumber;
30
- status: z.ZodEnum<typeof import("../../schemas").BlogPostStatus>;
31
- createdAt: z.ZodString;
32
- updatedAt: z.ZodString;
33
- }, z.core.$strip>>;
34
- meta: z.ZodObject<{
35
- page: z.ZodNumber;
36
- limit: z.ZodNumber;
37
- total: z.ZodNumber;
38
- totalPages: z.ZodNumber;
39
- hasNext: z.ZodBoolean;
40
- hasPrev: z.ZodBoolean;
41
- }, z.core.$strip>;
42
- }, z.core.$strip>;
43
- const PATH: "";
44
- const URL: "/api/v1/admin/blog/posts/";
45
- const METHOD = HttpMethod.GET;
46
- type RequestType = z.infer<typeof Request>;
47
- type ResponseType = z.infer<typeof Response>;
48
- }
@@ -1,4 +0,0 @@
1
- export * from './get-category.query';
2
- export * from './get-categories.query';
3
- export * from './get-post.query';
4
- export * from './get-posts.query';
@@ -1,36 +0,0 @@
1
- /**
2
- * Blog Admin API Paths (UUID-based, requires admin role)
3
- */
4
- export declare const BLOG_ADMIN_PATHS: {
5
- readonly BASE: "v1/admin/blog";
6
- readonly CATEGORIES: "categories";
7
- readonly CATEGORY_BY_UUID: "categories/:uuid";
8
- readonly POSTS: "posts";
9
- readonly POST_BY_UUID: "posts/:uuid";
10
- };
11
- /**
12
- * Blog Public API Paths (alias-based, public access)
13
- */
14
- export declare const BLOG_PUBLIC_PATHS: {
15
- readonly BASE: "v1/blog";
16
- readonly CATEGORIES: "categories";
17
- readonly POSTS: "posts";
18
- readonly POST_BY_ALIAS: "posts/:alias";
19
- };
20
- /**
21
- * Full Admin API URLs
22
- */
23
- export declare const BLOG_ADMIN_API_PATHS: {
24
- readonly CATEGORIES: "/api/v1/admin/blog/categories";
25
- readonly CATEGORY_BY_UUID: (uuid: string) => string;
26
- readonly POSTS: "/api/v1/admin/blog/posts";
27
- readonly POST_BY_UUID: (uuid: string) => string;
28
- };
29
- /**
30
- * Full Public API URLs
31
- */
32
- export declare const BLOG_PUBLIC_API_PATHS: {
33
- readonly CATEGORIES: "/api/v1/blog/categories";
34
- readonly POSTS: "/api/v1/blog/posts";
35
- readonly POST_BY_ALIAS: (alias: string) => string;
36
- };
@@ -1,12 +0,0 @@
1
- import { z } from 'zod';
2
- import { CategoryResponseSchema, CreateCategoryRequestSchema, UpdateCategoryRequestSchema, PostResponseSchema, CreatePostRequestSchema, UpdatePostRequestSchema, GetPostsQueryAdminSchema, GetPostsQueryPublicSchema } from './schemas';
3
- export { BlogCategoryStatus } from './schemas/blog-category-status.enum';
4
- export { BlogPostStatus } from './schemas/blog-post-status.enum';
5
- export type CategoryResponse = z.infer<typeof CategoryResponseSchema>;
6
- export type CreateCategoryRequest = z.infer<typeof CreateCategoryRequestSchema>;
7
- export type UpdateCategoryRequest = z.infer<typeof UpdateCategoryRequestSchema>;
8
- export type PostResponse = z.infer<typeof PostResponseSchema>;
9
- export type CreatePostRequest = z.infer<typeof CreatePostRequestSchema>;
10
- export type UpdatePostRequest = z.infer<typeof UpdatePostRequestSchema>;
11
- export type GetPostsQueryAdmin = z.infer<typeof GetPostsQueryAdminSchema>;
12
- export type GetPostsQueryPublic = z.infer<typeof GetPostsQueryPublicSchema>;
@@ -1,7 +0,0 @@
1
- /**
2
- * Blog Controller paths for NestJS @Controller decorator
3
- */
4
- export declare const BLOG_ADMIN_CATEGORIES_CONTROLLER: "v1/admin/blog/categories";
5
- export declare const BLOG_ADMIN_POSTS_CONTROLLER: "v1/admin/blog/posts";
6
- export declare const BLOG_PUBLIC_CATEGORIES_CONTROLLER: "v1/blog/categories";
7
- export declare const BLOG_PUBLIC_POSTS_CONTROLLER: "v1/blog/posts";
@@ -1,8 +0,0 @@
1
- export * from './schemas';
2
- export * from './blog.types';
3
- export * from './blog.paths';
4
- export * from './controllers';
5
- export * from './routes';
6
- export * from './admin/commands';
7
- export * from './admin/queries';
8
- export * from './public/queries';
@@ -1,21 +0,0 @@
1
- import { z } from 'zod';
2
- import { HttpMethod } from '../../../../shared/http-method';
3
- export declare namespace BlogGetCategoriesQuery {
4
- const Request: z.ZodObject<{}, z.core.$strip>;
5
- const Response: z.ZodObject<{
6
- categories: z.ZodArray<z.ZodObject<{
7
- uuid: z.ZodString;
8
- alias: z.ZodString;
9
- title: z.ZodString;
10
- order: z.ZodNumber;
11
- status: z.ZodEnum<typeof import("../../schemas").BlogCategoryStatus>;
12
- createdAt: z.ZodString;
13
- updatedAt: z.ZodString;
14
- }, z.core.$strip>>;
15
- }, z.core.$strip>;
16
- const PATH: "";
17
- const URL: "/api/v1/blog/categories/";
18
- const METHOD = HttpMethod.GET;
19
- type RequestType = z.infer<typeof Request>;
20
- type ResponseType = z.infer<typeof Response>;
21
- }
@@ -1,33 +0,0 @@
1
- import { z } from 'zod';
2
- import { HttpMethod } from '../../../../shared/http-method';
3
- export declare namespace BlogGetPostByAliasQuery {
4
- const Request: z.ZodObject<{}, z.core.$strip>;
5
- const Response: z.ZodObject<{
6
- uuid: z.ZodString;
7
- alias: z.ZodString;
8
- title: z.ZodString;
9
- metaTitle: z.ZodString;
10
- metaDescription: z.ZodString;
11
- content: z.ZodString;
12
- image: z.ZodString;
13
- author: z.ZodString;
14
- categories: z.ZodArray<z.ZodObject<{
15
- uuid: z.ZodString;
16
- alias: z.ZodString;
17
- title: z.ZodString;
18
- order: z.ZodNumber;
19
- status: z.ZodEnum<typeof import("../../schemas").BlogCategoryStatus>;
20
- createdAt: z.ZodString;
21
- updatedAt: z.ZodString;
22
- }, z.core.$strip>>;
23
- viewsCount: z.ZodNumber;
24
- status: z.ZodEnum<typeof import("../../schemas").BlogPostStatus>;
25
- createdAt: z.ZodString;
26
- updatedAt: z.ZodString;
27
- }, z.core.$strip>;
28
- const PATH: ":alias";
29
- const URL: (alias: string) => string;
30
- const METHOD = HttpMethod.GET;
31
- type RequestType = z.infer<typeof Request>;
32
- type ResponseType = z.infer<typeof Response>;
33
- }
@@ -1,47 +0,0 @@
1
- import { z } from 'zod';
2
- import { HttpMethod } from '../../../../shared/http-method';
3
- export declare namespace BlogGetPostsQuery {
4
- const Request: z.ZodObject<{
5
- page: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
6
- limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
7
- categoryAliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
8
- }, z.core.$strip>;
9
- const Response: z.ZodObject<{
10
- data: z.ZodArray<z.ZodObject<{
11
- uuid: z.ZodString;
12
- alias: z.ZodString;
13
- title: z.ZodString;
14
- metaTitle: z.ZodString;
15
- metaDescription: z.ZodString;
16
- content: z.ZodString;
17
- image: z.ZodString;
18
- author: z.ZodString;
19
- categories: z.ZodArray<z.ZodObject<{
20
- uuid: z.ZodString;
21
- alias: z.ZodString;
22
- title: z.ZodString;
23
- order: z.ZodNumber;
24
- status: z.ZodEnum<typeof import("../../schemas").BlogCategoryStatus>;
25
- createdAt: z.ZodString;
26
- updatedAt: z.ZodString;
27
- }, z.core.$strip>>;
28
- viewsCount: z.ZodNumber;
29
- status: z.ZodEnum<typeof import("../../schemas").BlogPostStatus>;
30
- createdAt: z.ZodString;
31
- updatedAt: z.ZodString;
32
- }, z.core.$strip>>;
33
- meta: z.ZodObject<{
34
- page: z.ZodNumber;
35
- limit: z.ZodNumber;
36
- total: z.ZodNumber;
37
- totalPages: z.ZodNumber;
38
- hasNext: z.ZodBoolean;
39
- hasPrev: z.ZodBoolean;
40
- }, z.core.$strip>;
41
- }, z.core.$strip>;
42
- const PATH: "";
43
- const URL: "/api/v1/blog/posts/";
44
- const METHOD = HttpMethod.GET;
45
- type RequestType = z.infer<typeof Request>;
46
- type ResponseType = z.infer<typeof Response>;
47
- }
@@ -1,3 +0,0 @@
1
- export * from './get-categories.query';
2
- export * from './get-posts.query';
3
- export * from './get-post-by-alias.query';
@@ -1,11 +0,0 @@
1
- /**
2
- * Blog Admin Categories Routes
3
- * For NestJS method decorators (@Get, @Post, etc.)
4
- */
5
- export declare const BLOG_ADMIN_CATEGORIES_ROUTES: {
6
- readonly CREATE: "";
7
- readonly GET_ALL: "";
8
- readonly GET_BY_UUID: ":uuid";
9
- readonly UPDATE: ":uuid";
10
- readonly DELETE: ":uuid";
11
- };
@@ -1,10 +0,0 @@
1
- /**
2
- * Blog Admin Posts Routes
3
- */
4
- export declare const BLOG_ADMIN_POSTS_ROUTES: {
5
- readonly CREATE: "";
6
- readonly GET_ALL: "";
7
- readonly GET_BY_UUID: ":uuid";
8
- readonly UPDATE: ":uuid";
9
- readonly DELETE: ":uuid";
10
- };
@@ -1,10 +0,0 @@
1
- /**
2
- * Blog Public Routes
3
- */
4
- export declare const BLOG_PUBLIC_CATEGORIES_ROUTES: {
5
- readonly GET_ALL: "";
6
- };
7
- export declare const BLOG_PUBLIC_POSTS_ROUTES: {
8
- readonly GET_ALL: "";
9
- readonly GET_BY_ALIAS: ":alias";
10
- };
@@ -1,3 +0,0 @@
1
- export * from './blog-admin-categories.routes';
2
- export * from './blog-admin-posts.routes';
3
- export * from './blog-public.routes';
@@ -1,8 +0,0 @@
1
- /**
2
- * Blog Category Status
3
- */
4
- export declare enum BlogCategoryStatus {
5
- DRAFT = "draft",
6
- PUBLISHED = "published",
7
- ARCHIVED = "archived"
8
- }
@@ -1,8 +0,0 @@
1
- /**
2
- * Blog Post Status
3
- */
4
- export declare enum BlogPostStatus {
5
- DRAFT = "draft",
6
- PUBLISHED = "published",
7
- ARCHIVED = "archived"
8
- }
@@ -1,14 +0,0 @@
1
- import { z } from 'zod';
2
- import { BlogCategoryStatus } from './blog-category-status.enum';
3
- /**
4
- * Category Response Schema
5
- */
6
- export declare const CategoryResponseSchema: z.ZodObject<{
7
- uuid: z.ZodString;
8
- alias: z.ZodString;
9
- title: z.ZodString;
10
- order: z.ZodNumber;
11
- status: z.ZodEnum<typeof BlogCategoryStatus>;
12
- createdAt: z.ZodString;
13
- updatedAt: z.ZodString;
14
- }, z.core.$strip>;
@@ -1,8 +0,0 @@
1
- import { z } from 'zod';
2
- import { BlogCategoryStatus } from './blog-category-status.enum';
3
- export declare const CreateCategoryRequestSchema: z.ZodObject<{
4
- alias: z.ZodString;
5
- title: z.ZodString;
6
- order: z.ZodDefault<z.ZodNumber>;
7
- status: z.ZodDefault<z.ZodEnum<typeof BlogCategoryStatus>>;
8
- }, z.core.$strip>;
@@ -1,13 +0,0 @@
1
- import { z } from 'zod';
2
- import { BlogPostStatus } from './blog-post-status.enum';
3
- export declare const CreatePostRequestSchema: z.ZodObject<{
4
- alias: z.ZodString;
5
- title: z.ZodString;
6
- metaTitle: z.ZodString;
7
- metaDescription: z.ZodString;
8
- content: z.ZodString;
9
- image: z.ZodString;
10
- author: z.ZodString;
11
- categoryIds: z.ZodArray<z.ZodString>;
12
- status: z.ZodDefault<z.ZodEnum<typeof BlogPostStatus>>;
13
- }, z.core.$strip>;