@veruna/api-contracts 1.0.13 → 1.0.15

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 (118) hide show
  1. package/build/controllers/index.d.ts +1 -0
  2. package/build/controllers/index.js +4 -1
  3. package/build/controllers/seo-pages.controllers.d.ts +5 -0
  4. package/build/controllers/seo-pages.controllers.js +8 -0
  5. package/build/index.d.ts +3 -1
  6. package/build/index.js +3 -1
  7. package/build/locales/en.d.ts +5 -0
  8. package/build/locales/en.js +6 -0
  9. package/build/locales/index.d.ts +10 -0
  10. package/build/locales/ru.d.ts +5 -0
  11. package/build/locales/ru.js +6 -0
  12. package/build/rest-api.d.ts +12 -0
  13. package/build/rest-api.js +13 -0
  14. package/build/routes/index.d.ts +2 -0
  15. package/build/routes/index.js +5 -1
  16. package/build/routes/seo-pages-admin.routes.d.ts +10 -0
  17. package/build/routes/seo-pages-admin.routes.js +13 -0
  18. package/build/routes/seo-pages-public.routes.d.ts +6 -0
  19. package/build/routes/seo-pages-public.routes.js +9 -0
  20. package/build/shared/common.errors.d.ts +8 -0
  21. package/build/shared/common.errors.js +28 -0
  22. package/build/shared/device-type.enum.d.ts +11 -0
  23. package/build/shared/device-type.enum.js +15 -0
  24. package/build/shared/error-metadata.d.ts +9 -0
  25. package/build/shared/index.d.ts +4 -0
  26. package/build/shared/index.js +4 -0
  27. package/build/v1/auth/auth.errors.d.ts +4 -1
  28. package/build/v1/auth/auth.errors.js +30 -1
  29. package/build/v1/auth/commands/signin.command.d.ts +2 -0
  30. package/build/v1/auth/commands/signup.command.d.ts +2 -0
  31. package/build/v1/auth/commands/signup.command.js +4 -4
  32. package/build/v1/auth/index.d.ts +0 -2
  33. package/build/v1/auth/index.js +0 -2
  34. package/build/v1/auth/queries/get-sessions.query.d.ts +2 -0
  35. package/build/v1/auth/schemas/auth-response.schema.d.ts +4 -0
  36. package/build/v1/auth/schemas/session-response.schema.d.ts +3 -0
  37. package/build/v1/auth/schemas/session-response.schema.js +6 -4
  38. package/build/v1/blog/blog.errors.d.ts +18 -0
  39. package/build/v1/blog/blog.errors.js +84 -0
  40. package/build/v1/blog/index.d.ts +1 -2
  41. package/build/v1/blog/index.js +1 -2
  42. package/build/v1/blog/schemas/create-category-request.schema.js +3 -3
  43. package/build/v1/blog/schemas/create-post-request.schema.js +4 -4
  44. package/build/v1/email/email.errors.d.ts +15 -0
  45. package/build/v1/email/email.errors.js +63 -0
  46. package/build/v1/email/index.d.ts +1 -0
  47. package/build/v1/email/index.js +17 -0
  48. package/build/v1/index.d.ts +3 -0
  49. package/build/v1/index.js +3 -0
  50. package/build/v1/notifications/index.d.ts +2 -0
  51. package/build/v1/notifications/index.js +18 -0
  52. package/build/v1/notifications/notifications.errors.d.ts +26 -0
  53. package/build/v1/notifications/notifications.errors.js +101 -0
  54. package/build/v1/notifications/schemas/email-template.enum.d.ts +12 -0
  55. package/build/v1/notifications/schemas/email-template.enum.js +20 -0
  56. package/build/v1/notifications/schemas/index.d.ts +3 -0
  57. package/build/v1/notifications/schemas/index.js +19 -0
  58. package/build/v1/notifications/schemas/notification-status.enum.d.ts +11 -0
  59. package/build/v1/notifications/schemas/notification-status.enum.js +15 -0
  60. package/build/v1/notifications/schemas/notification-type.enum.d.ts +8 -0
  61. package/build/v1/notifications/schemas/notification-type.enum.js +14 -0
  62. package/build/v1/seo-pages/admin/commands/create-page.command.d.ts +29 -0
  63. package/build/v1/seo-pages/admin/commands/create-page.command.js +13 -0
  64. package/build/v1/seo-pages/admin/commands/delete-page.command.d.ts +12 -0
  65. package/build/v1/seo-pages/admin/commands/delete-page.command.js +13 -0
  66. package/build/v1/seo-pages/admin/commands/index.d.ts +6 -0
  67. package/build/v1/seo-pages/admin/commands/index.js +12 -0
  68. package/build/v1/seo-pages/admin/commands/update-page.command.d.ts +29 -0
  69. package/build/v1/seo-pages/admin/commands/update-page.command.js +13 -0
  70. package/build/v1/seo-pages/admin/queries/get-page.query.d.ts +21 -0
  71. package/build/v1/seo-pages/admin/queries/get-page.query.js +14 -0
  72. package/build/v1/seo-pages/admin/queries/get-pages.query.d.ts +34 -0
  73. package/build/v1/seo-pages/admin/queries/get-pages.query.js +19 -0
  74. package/build/v1/seo-pages/admin/queries/index.d.ts +5 -0
  75. package/build/v1/seo-pages/admin/queries/index.js +10 -0
  76. package/build/v1/seo-pages/index.d.ts +8 -0
  77. package/build/v1/seo-pages/index.js +32 -0
  78. package/build/v1/seo-pages/public/queries/get-page-by-alias.query.d.ts +21 -0
  79. package/build/v1/seo-pages/public/queries/get-page-by-alias.query.js +14 -0
  80. package/build/v1/seo-pages/public/queries/index.d.ts +4 -0
  81. package/build/v1/seo-pages/public/queries/index.js +8 -0
  82. package/build/v1/seo-pages/schemas/create-page-request.schema.d.ts +14 -0
  83. package/build/v1/seo-pages/schemas/create-page-request.schema.js +18 -0
  84. package/build/v1/seo-pages/schemas/index.d.ts +7 -0
  85. package/build/v1/seo-pages/schemas/index.js +14 -0
  86. package/build/v1/seo-pages/schemas/page-response.schema.d.ts +17 -0
  87. package/build/v1/seo-pages/schemas/page-response.schema.js +21 -0
  88. package/build/v1/seo-pages/schemas/page-type.enum.d.ts +8 -0
  89. package/build/v1/seo-pages/schemas/page-type.enum.js +12 -0
  90. package/build/v1/seo-pages/schemas/update-page-request.schema.d.ts +14 -0
  91. package/build/v1/seo-pages/schemas/update-page-request.schema.js +18 -0
  92. package/build/v1/seo-pages/seo-pages.errors.d.ts +11 -0
  93. package/build/v1/seo-pages/seo-pages.errors.js +43 -0
  94. package/build/v1/unregistered-users/index.d.ts +1 -5
  95. package/build/v1/unregistered-users/index.js +1 -9
  96. package/build/v1/unregistered-users/unregistered-users.errors.d.ts +8 -9
  97. package/build/v1/unregistered-users/unregistered-users.errors.js +18 -9
  98. package/build/v1/users/index.d.ts +1 -2
  99. package/build/v1/users/index.js +1 -2
  100. package/build/v1/users/users.errors.d.ts +18 -0
  101. package/build/v1/users/users.errors.js +51 -0
  102. package/package.json +1 -1
  103. package/build/v1/auth/auth.paths.d.ts +0 -17
  104. package/build/v1/auth/auth.paths.js +0 -20
  105. package/build/v1/auth/auth.types.d.ts +0 -8
  106. package/build/v1/auth/auth.types.js +0 -6
  107. package/build/v1/blog/blog.paths.d.ts +0 -36
  108. package/build/v1/blog/blog.paths.js +0 -47
  109. package/build/v1/blog/blog.types.d.ts +0 -12
  110. package/build/v1/blog/blog.types.js +0 -7
  111. package/build/v1/unregistered-users/unregistered-users.paths.d.ts +0 -15
  112. package/build/v1/unregistered-users/unregistered-users.paths.js +0 -18
  113. package/build/v1/unregistered-users/unregistered-users.types.d.ts +0 -9
  114. package/build/v1/unregistered-users/unregistered-users.types.js +0 -8
  115. package/build/v1/users/users.paths.d.ts +0 -11
  116. package/build/v1/users/users.paths.js +0 -14
  117. package/build/v1/users/users.types.d.ts +0 -11
  118. /package/build/{v1/users/users.types.js → shared/error-metadata.js} +0 -0
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.USER_ERRORS = exports.UserErrorCode = void 0;
4
+ var UserErrorCode;
5
+ (function (UserErrorCode) {
6
+ UserErrorCode["USER_NOT_FOUND"] = "USER_NOT_FOUND";
7
+ UserErrorCode["INCORRECT_PASSWORD"] = "INCORRECT_PASSWORD";
8
+ UserErrorCode["USER_DELETED"] = "USER_DELETED";
9
+ UserErrorCode["EMAIL_ALREADY_EXISTS"] = "EMAIL_ALREADY_EXISTS";
10
+ UserErrorCode["INVALID_EMAIL_FORMAT"] = "INVALID_EMAIL_FORMAT";
11
+ UserErrorCode["INVALID_PASSWORD_FORMAT"] = "INVALID_PASSWORD_FORMAT";
12
+ UserErrorCode["WEAK_PASSWORD"] = "WEAK_PASSWORD";
13
+ UserErrorCode["INVALID_USER_ROLE"] = "INVALID_USER_ROLE";
14
+ UserErrorCode["PASSWORD_MISMATCH"] = "PASSWORD_MISMATCH";
15
+ UserErrorCode["SAME_PASSWORD"] = "SAME_PASSWORD";
16
+ UserErrorCode["INVALID_USER_DATA"] = "INVALID_USER_DATA";
17
+ UserErrorCode["USER_CREATION_FAILED"] = "USER_CREATION_FAILED";
18
+ UserErrorCode["USER_UPDATE_FAILED"] = "USER_UPDATE_FAILED";
19
+ UserErrorCode["PASSWORD_CHANGE_FAILED"] = "PASSWORD_CHANGE_FAILED";
20
+ })(UserErrorCode || (exports.UserErrorCode = UserErrorCode = {}));
21
+ exports.USER_ERRORS = {
22
+ [UserErrorCode.USER_NOT_FOUND]: { code: UserErrorCode.USER_NOT_FOUND, statusCode: 404 },
23
+ [UserErrorCode.INCORRECT_PASSWORD]: { code: UserErrorCode.INCORRECT_PASSWORD, statusCode: 401 },
24
+ [UserErrorCode.USER_DELETED]: { code: UserErrorCode.USER_DELETED, statusCode: 401 },
25
+ [UserErrorCode.EMAIL_ALREADY_EXISTS]: {
26
+ code: UserErrorCode.EMAIL_ALREADY_EXISTS,
27
+ statusCode: 409,
28
+ },
29
+ [UserErrorCode.INVALID_EMAIL_FORMAT]: {
30
+ code: UserErrorCode.INVALID_EMAIL_FORMAT,
31
+ statusCode: 400,
32
+ },
33
+ [UserErrorCode.INVALID_PASSWORD_FORMAT]: {
34
+ code: UserErrorCode.INVALID_PASSWORD_FORMAT,
35
+ statusCode: 400,
36
+ },
37
+ [UserErrorCode.WEAK_PASSWORD]: { code: UserErrorCode.WEAK_PASSWORD, statusCode: 400 },
38
+ [UserErrorCode.INVALID_USER_ROLE]: { code: UserErrorCode.INVALID_USER_ROLE, statusCode: 400 },
39
+ [UserErrorCode.PASSWORD_MISMATCH]: { code: UserErrorCode.PASSWORD_MISMATCH, statusCode: 400 },
40
+ [UserErrorCode.SAME_PASSWORD]: { code: UserErrorCode.SAME_PASSWORD, statusCode: 400 },
41
+ [UserErrorCode.INVALID_USER_DATA]: { code: UserErrorCode.INVALID_USER_DATA, statusCode: 400 },
42
+ [UserErrorCode.USER_CREATION_FAILED]: {
43
+ code: UserErrorCode.USER_CREATION_FAILED,
44
+ statusCode: 500,
45
+ },
46
+ [UserErrorCode.USER_UPDATE_FAILED]: { code: UserErrorCode.USER_UPDATE_FAILED, statusCode: 500 },
47
+ [UserErrorCode.PASSWORD_CHANGE_FAILED]: {
48
+ code: UserErrorCode.PASSWORD_CHANGE_FAILED,
49
+ statusCode: 500,
50
+ },
51
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@veruna/api-contracts",
3
- "version": "1.0.13",
3
+ "version": "1.0.15",
4
4
  "description": "API contracts for Veruna project - Zod schemas, types, and paths",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",
@@ -1,17 +0,0 @@
1
- export declare const AUTH_PATHS: {
2
- readonly BASE: "v1/auth";
3
- readonly SIGNUP: "signup";
4
- readonly SIGNIN: "signin";
5
- readonly LOGOUT: "logout";
6
- readonly LOGOUT_ALL: "logout-all";
7
- readonly SESSIONS: "sessions";
8
- readonly SESSION_BY_ID: "sessions/:id";
9
- };
10
- export declare const AUTH_API_PATHS: {
11
- readonly SIGNUP: "/api/v1/auth/signup";
12
- readonly SIGNIN: "/api/v1/auth/signin";
13
- readonly LOGOUT: "/api/v1/auth/logout";
14
- readonly LOGOUT_ALL: "/api/v1/auth/logout-all";
15
- readonly SESSIONS: "/api/v1/auth/sessions";
16
- readonly SESSION_BY_ID: (id: string) => string;
17
- };
@@ -1,20 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AUTH_API_PATHS = exports.AUTH_PATHS = void 0;
4
- exports.AUTH_PATHS = {
5
- BASE: 'v1/auth',
6
- SIGNUP: 'signup',
7
- SIGNIN: 'signin',
8
- LOGOUT: 'logout',
9
- LOGOUT_ALL: 'logout-all',
10
- SESSIONS: 'sessions',
11
- SESSION_BY_ID: 'sessions/:id',
12
- };
13
- exports.AUTH_API_PATHS = {
14
- SIGNUP: `/api/${exports.AUTH_PATHS.BASE}/${exports.AUTH_PATHS.SIGNUP}`,
15
- SIGNIN: `/api/${exports.AUTH_PATHS.BASE}/${exports.AUTH_PATHS.SIGNIN}`,
16
- LOGOUT: `/api/${exports.AUTH_PATHS.BASE}/${exports.AUTH_PATHS.LOGOUT}`,
17
- LOGOUT_ALL: `/api/${exports.AUTH_PATHS.BASE}/${exports.AUTH_PATHS.LOGOUT_ALL}`,
18
- SESSIONS: `/api/${exports.AUTH_PATHS.BASE}/${exports.AUTH_PATHS.SESSIONS}`,
19
- SESSION_BY_ID: (id) => `/api/${exports.AUTH_PATHS.BASE}/sessions/${id}`,
20
- };
@@ -1,8 +0,0 @@
1
- import { z } from 'zod';
2
- import { SignUpRequestSchema, SignInRequestSchema, SessionResponseSchema, AuthResponseSchema, SessionsListResponseSchema } from './schemas';
3
- export { UserRole } from './schemas/user-role.enum';
4
- export type SignUpRequest = z.infer<typeof SignUpRequestSchema>;
5
- export type SignInRequest = z.infer<typeof SignInRequestSchema>;
6
- export type SessionResponse = z.infer<typeof SessionResponseSchema>;
7
- export type AuthResponse = z.infer<typeof AuthResponseSchema>;
8
- export type SessionsListResponse = z.infer<typeof SessionsListResponseSchema>;
@@ -1,6 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.UserRole = void 0;
4
- // Re-export UserRole enum
5
- var user_role_enum_1 = require("./schemas/user-role.enum");
6
- Object.defineProperty(exports, "UserRole", { enumerable: true, get: function () { return user_role_enum_1.UserRole; } });
@@ -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,47 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.BLOG_PUBLIC_API_PATHS = exports.BLOG_ADMIN_API_PATHS = exports.BLOG_PUBLIC_PATHS = exports.BLOG_ADMIN_PATHS = void 0;
4
- /**
5
- * Blog Admin API Paths (UUID-based, requires admin role)
6
- */
7
- exports.BLOG_ADMIN_PATHS = {
8
- BASE: 'v1/admin/blog',
9
- // Categories
10
- CATEGORIES: 'categories',
11
- CATEGORY_BY_UUID: 'categories/:uuid',
12
- // Posts
13
- POSTS: 'posts',
14
- POST_BY_UUID: 'posts/:uuid',
15
- };
16
- /**
17
- * Blog Public API Paths (alias-based, public access)
18
- */
19
- exports.BLOG_PUBLIC_PATHS = {
20
- BASE: 'v1/blog',
21
- // Categories
22
- CATEGORIES: 'categories',
23
- // Posts
24
- POSTS: 'posts',
25
- POST_BY_ALIAS: 'posts/:alias',
26
- };
27
- /**
28
- * Full Admin API URLs
29
- */
30
- exports.BLOG_ADMIN_API_PATHS = {
31
- // Categories
32
- CATEGORIES: `/api/${exports.BLOG_ADMIN_PATHS.BASE}/${exports.BLOG_ADMIN_PATHS.CATEGORIES}`,
33
- CATEGORY_BY_UUID: (uuid) => `/api/${exports.BLOG_ADMIN_PATHS.BASE}/categories/${uuid}`,
34
- // Posts
35
- POSTS: `/api/${exports.BLOG_ADMIN_PATHS.BASE}/${exports.BLOG_ADMIN_PATHS.POSTS}`,
36
- POST_BY_UUID: (uuid) => `/api/${exports.BLOG_ADMIN_PATHS.BASE}/posts/${uuid}`,
37
- };
38
- /**
39
- * Full Public API URLs
40
- */
41
- exports.BLOG_PUBLIC_API_PATHS = {
42
- // Categories
43
- CATEGORIES: `/api/${exports.BLOG_PUBLIC_PATHS.BASE}/${exports.BLOG_PUBLIC_PATHS.CATEGORIES}`,
44
- // Posts
45
- POSTS: `/api/${exports.BLOG_PUBLIC_PATHS.BASE}/${exports.BLOG_PUBLIC_PATHS.POSTS}`,
46
- POST_BY_ALIAS: (alias) => `/api/${exports.BLOG_PUBLIC_PATHS.BASE}/posts/${alias}`,
47
- };
@@ -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
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.BlogPostStatus = exports.BlogCategoryStatus = void 0;
4
- var blog_category_status_enum_1 = require("./schemas/blog-category-status.enum");
5
- Object.defineProperty(exports, "BlogCategoryStatus", { enumerable: true, get: function () { return blog_category_status_enum_1.BlogCategoryStatus; } });
6
- var blog_post_status_enum_1 = require("./schemas/blog-post-status.enum");
7
- Object.defineProperty(exports, "BlogPostStatus", { enumerable: true, get: function () { return blog_post_status_enum_1.BlogPostStatus; } });
@@ -1,15 +0,0 @@
1
- /**
2
- * Unregistered Users API paths
3
- */
4
- export declare const UNREG_USERS_PATHS: {
5
- /** Base path for unregistered users controller */
6
- readonly BASE: "v1/unreg";
7
- /** Authenticate unregistered user - PUT /api/v1/unreg */
8
- readonly AUTHENTICATE: "";
9
- };
10
- /**
11
- * Full API paths (with /api prefix)
12
- */
13
- export declare const UNREG_USERS_API_PATHS: {
14
- readonly AUTHENTICATE: "/api/v1/unreg";
15
- };
@@ -1,18 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.UNREG_USERS_API_PATHS = exports.UNREG_USERS_PATHS = void 0;
4
- /**
5
- * Unregistered Users API paths
6
- */
7
- exports.UNREG_USERS_PATHS = {
8
- /** Base path for unregistered users controller */
9
- BASE: 'v1/unreg',
10
- /** Authenticate unregistered user - PUT /api/v1/unreg */
11
- AUTHENTICATE: '',
12
- };
13
- /**
14
- * Full API paths (with /api prefix)
15
- */
16
- exports.UNREG_USERS_API_PATHS = {
17
- AUTHENTICATE: `/api/${exports.UNREG_USERS_PATHS.BASE}`,
18
- };
@@ -1,9 +0,0 @@
1
- import { z } from 'zod';
2
- import { AuthenticateUnregUserRequestSchema, AuthenticateUnregUserResponseSchema } from './schemas';
3
- export { UnregUserStatus } from './schemas/unreg-user-status.enum';
4
- export { UnregUserStatus as UnregUserStatusContract } from './schemas/unreg-user-status.enum';
5
- /**
6
- * Request/Response Types
7
- */
8
- export type AuthenticateUnregUserRequest = z.infer<typeof AuthenticateUnregUserRequestSchema>;
9
- export type AuthenticateUnregUserResponse = z.infer<typeof AuthenticateUnregUserResponseSchema>;
@@ -1,8 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.UnregUserStatusContract = exports.UnregUserStatus = void 0;
4
- var unreg_user_status_enum_1 = require("./schemas/unreg-user-status.enum");
5
- Object.defineProperty(exports, "UnregUserStatus", { enumerable: true, get: function () { return unreg_user_status_enum_1.UnregUserStatus; } });
6
- // Backward compatibility
7
- var unreg_user_status_enum_2 = require("./schemas/unreg-user-status.enum");
8
- Object.defineProperty(exports, "UnregUserStatusContract", { enumerable: true, get: function () { return unreg_user_status_enum_2.UnregUserStatus; } });
@@ -1,11 +0,0 @@
1
- export declare const USERS_PATHS: {
2
- readonly BASE: "v1/users";
3
- readonly ME: "me";
4
- readonly ME_MARKETING_CONSENT: "me/marketing-consent";
5
- readonly ME_PASSWORD: "me/password";
6
- };
7
- export declare const USERS_API_PATHS: {
8
- readonly ME: "/api/v1/users/me";
9
- readonly ME_MARKETING_CONSENT: "/api/v1/users/me/marketing-consent";
10
- readonly ME_PASSWORD: "/api/v1/users/me/password";
11
- };
@@ -1,14 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.USERS_API_PATHS = exports.USERS_PATHS = void 0;
4
- exports.USERS_PATHS = {
5
- BASE: 'v1/users',
6
- ME: 'me',
7
- ME_MARKETING_CONSENT: 'me/marketing-consent',
8
- ME_PASSWORD: 'me/password',
9
- };
10
- exports.USERS_API_PATHS = {
11
- ME: `/api/${exports.USERS_PATHS.BASE}/${exports.USERS_PATHS.ME}`,
12
- ME_MARKETING_CONSENT: `/api/${exports.USERS_PATHS.BASE}/${exports.USERS_PATHS.ME_MARKETING_CONSENT}`,
13
- ME_PASSWORD: `/api/${exports.USERS_PATHS.BASE}/${exports.USERS_PATHS.ME_PASSWORD}`,
14
- };
@@ -1,11 +0,0 @@
1
- import { z } from 'zod';
2
- import { UserResponseSchema, UpdateProfileRequestSchema, ChangePasswordRequestSchema, ToggleMarketingConsentRequestSchema, UpdateProfileResponseSchema, DeleteAccountResponseSchema, ToggleMarketingConsentResponseSchema, ChangePasswordResponseSchema, GetCurrentUserResponseSchema } from './schemas';
3
- export type UpdateProfileRequest = z.infer<typeof UpdateProfileRequestSchema>;
4
- export type ChangePasswordRequest = z.infer<typeof ChangePasswordRequestSchema>;
5
- export type ToggleMarketingConsentRequest = z.infer<typeof ToggleMarketingConsentRequestSchema>;
6
- export type UserResponse = z.infer<typeof UserResponseSchema>;
7
- export type UpdateProfileResponse = z.infer<typeof UpdateProfileResponseSchema>;
8
- export type DeleteAccountResponse = z.infer<typeof DeleteAccountResponseSchema>;
9
- export type ToggleMarketingConsentResponse = z.infer<typeof ToggleMarketingConsentResponseSchema>;
10
- export type ChangePasswordResponse = z.infer<typeof ChangePasswordResponseSchema>;
11
- export type GetCurrentUserResponse = z.infer<typeof GetCurrentUserResponseSchema>;