@veruna/api-contracts 1.0.8 → 1.0.10

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 (153) hide show
  1. package/build/controllers/auth.controllers.d.ts +4 -0
  2. package/build/controllers/blog.controllers.d.ts +7 -0
  3. package/build/controllers/index.d.ts +7 -0
  4. package/build/controllers/index.js +17 -0
  5. package/build/controllers/unreg-users.controllers.d.ts +4 -0
  6. package/build/controllers/users.controllers.d.ts +4 -0
  7. package/build/index.d.ts +5 -0
  8. package/build/index.js +1 -0
  9. package/build/locales/en.d.ts +31 -0
  10. package/build/locales/index.d.ts +66 -0
  11. package/build/locales/ru.d.ts +30 -0
  12. package/build/rest-api.d.ts +52 -0
  13. package/build/rest-api.js +12 -18
  14. package/build/routes/auth.routes.d.ts +12 -0
  15. package/build/{v1/auth/routes → routes}/auth.routes.js +1 -1
  16. package/build/routes/blog-admin-categories.routes.d.ts +11 -0
  17. package/build/routes/blog-admin-posts.routes.d.ts +10 -0
  18. package/build/routes/blog-public.routes.d.ts +10 -0
  19. package/build/routes/index.d.ts +9 -0
  20. package/build/routes/index.js +19 -0
  21. package/build/routes/unreg-users.routes.d.ts +6 -0
  22. package/build/routes/users.routes.d.ts +9 -0
  23. package/build/shared/common-schemas.d.ts +12 -0
  24. package/build/shared/error-response.schema.d.ts +25 -0
  25. package/build/shared/http-method.d.ts +10 -0
  26. package/build/shared/index.d.ts +2 -0
  27. package/build/shared/pagination.schema.d.ts +35 -0
  28. package/build/shared/regex.d.ts +8 -0
  29. package/build/utils/index.d.ts +1 -0
  30. package/build/utils/path-builder.d.ts +20 -0
  31. package/build/v1/auth/auth.errors.d.ts +12 -0
  32. package/build/v1/auth/auth.paths.d.ts +17 -0
  33. package/build/v1/auth/auth.paths.js +2 -2
  34. package/build/v1/auth/auth.types.d.ts +8 -0
  35. package/build/v1/auth/commands/delete-session.command.d.ts +12 -0
  36. package/build/v1/auth/commands/delete-session.command.js +1 -3
  37. package/build/v1/auth/commands/index.d.ts +5 -0
  38. package/build/v1/auth/commands/index.js +1 -1
  39. package/build/v1/auth/commands/logout-all.command.d.ts +12 -0
  40. package/build/v1/auth/commands/logout-all.command.js +1 -3
  41. package/build/v1/auth/commands/logout.command.d.ts +12 -0
  42. package/build/v1/auth/commands/logout.command.js +1 -3
  43. package/build/v1/auth/commands/signin.command.d.ts +31 -0
  44. package/build/v1/auth/commands/signin.command.js +16 -0
  45. package/build/v1/auth/commands/signup.command.d.ts +33 -0
  46. package/build/v1/auth/commands/signup.command.js +1 -3
  47. package/build/v1/auth/index.d.ts +8 -0
  48. package/build/v1/auth/index.js +6 -2
  49. package/build/v1/auth/queries/get-sessions.query.d.ts +19 -0
  50. package/build/v1/auth/queries/get-sessions.query.js +1 -3
  51. package/build/v1/auth/queries/index.d.ts +1 -0
  52. package/build/v1/auth/schemas/auth-response.schema.d.ts +36 -0
  53. package/build/v1/auth/schemas/index.d.ts +5 -0
  54. package/build/v1/auth/schemas/index.js +1 -1
  55. package/build/v1/auth/schemas/session-response.schema.d.ts +13 -0
  56. package/build/v1/auth/schemas/signin-request.schema.d.ts +9 -0
  57. package/build/v1/auth/schemas/{login-request.schema.js → signin-request.schema.js} +3 -3
  58. package/build/v1/auth/schemas/signup-request.schema.d.ts +11 -0
  59. package/build/v1/auth/schemas/signup-request.schema.js +1 -12
  60. package/build/v1/auth/schemas/user-role.enum.d.ts +7 -0
  61. package/build/v1/blog/admin/commands/create-category.command.d.ts +23 -0
  62. package/build/v1/blog/admin/commands/create-category.command.js +0 -2
  63. package/build/v1/blog/admin/commands/create-post.command.d.ts +42 -0
  64. package/build/v1/blog/admin/commands/create-post.command.js +0 -2
  65. package/build/v1/blog/admin/commands/delete-category.command.d.ts +10 -0
  66. package/build/v1/blog/admin/commands/delete-category.command.js +0 -2
  67. package/build/v1/blog/admin/commands/delete-post.command.d.ts +10 -0
  68. package/build/v1/blog/admin/commands/delete-post.command.js +0 -2
  69. package/build/v1/blog/admin/commands/index.d.ts +6 -0
  70. package/build/v1/blog/admin/commands/update-category.command.d.ts +23 -0
  71. package/build/v1/blog/admin/commands/update-category.command.js +0 -2
  72. package/build/v1/blog/admin/commands/update-post.command.d.ts +42 -0
  73. package/build/v1/blog/admin/commands/update-post.command.js +0 -2
  74. package/build/v1/blog/admin/queries/get-categories.query.d.ts +23 -0
  75. package/build/v1/blog/admin/queries/get-categories.query.js +0 -2
  76. package/build/v1/blog/admin/queries/get-category.query.d.ts +18 -0
  77. package/build/v1/blog/admin/queries/get-category.query.js +0 -2
  78. package/build/v1/blog/admin/queries/get-post.query.d.ts +32 -0
  79. package/build/v1/blog/admin/queries/get-post.query.js +0 -2
  80. package/build/v1/blog/admin/queries/get-posts.query.d.ts +47 -0
  81. package/build/v1/blog/admin/queries/get-posts.query.js +0 -2
  82. package/build/v1/blog/admin/queries/index.d.ts +4 -0
  83. package/build/v1/blog/blog.paths.d.ts +36 -0
  84. package/build/v1/blog/blog.types.d.ts +12 -0
  85. package/build/v1/blog/index.d.ts +8 -0
  86. package/build/v1/blog/index.js +12 -2
  87. package/build/v1/blog/public/queries/get-categories.query.d.ts +20 -0
  88. package/build/v1/blog/public/queries/get-categories.query.js +0 -2
  89. package/build/v1/blog/public/queries/get-post-by-alias.query.d.ts +32 -0
  90. package/build/v1/blog/public/queries/get-post-by-alias.query.js +0 -2
  91. package/build/v1/blog/public/queries/get-posts.query.d.ts +46 -0
  92. package/build/v1/blog/public/queries/get-posts.query.js +0 -2
  93. package/build/v1/blog/public/queries/index.d.ts +3 -0
  94. package/build/v1/blog/schemas/blog-category-status.enum.d.ts +8 -0
  95. package/build/v1/blog/schemas/blog-post-status.enum.d.ts +8 -0
  96. package/build/v1/blog/schemas/category-response.schema.d.ts +14 -0
  97. package/build/v1/blog/schemas/create-category-request.schema.d.ts +8 -0
  98. package/build/v1/blog/schemas/create-post-request.schema.d.ts +13 -0
  99. package/build/v1/blog/schemas/get-posts-query.schema.d.ts +13 -0
  100. package/build/v1/blog/schemas/index.d.ts +9 -0
  101. package/build/v1/blog/schemas/post-response.schema.d.ts +28 -0
  102. package/build/v1/blog/schemas/update-category-request.schema.d.ts +8 -0
  103. package/build/v1/blog/schemas/update-post-request.schema.d.ts +13 -0
  104. package/build/v1/index.d.ts +2 -0
  105. package/build/v1/unregistered-users/commands/authenticate.command.d.ts +24 -0
  106. package/build/v1/unregistered-users/commands/authenticate.command.js +0 -2
  107. package/build/v1/unregistered-users/commands/index.d.ts +1 -0
  108. package/build/v1/unregistered-users/index.d.ts +7 -0
  109. package/build/v1/unregistered-users/index.js +6 -0
  110. package/build/v1/unregistered-users/schemas/authenticate-request.schema.d.ts +24 -0
  111. package/build/v1/unregistered-users/schemas/authenticate-request.schema.js +12 -1
  112. package/build/v1/unregistered-users/schemas/authenticate-response.schema.d.ts +11 -0
  113. package/build/v1/unregistered-users/schemas/index.d.ts +3 -0
  114. package/build/v1/unregistered-users/schemas/unreg-user-status.enum.d.ts +8 -0
  115. package/build/v1/unregistered-users/unregistered-users.errors.d.ts +15 -0
  116. package/build/v1/unregistered-users/unregistered-users.paths.d.ts +15 -0
  117. package/build/v1/unregistered-users/unregistered-users.types.d.ts +9 -0
  118. package/build/v1/users/commands/change-password.command.d.ts +16 -0
  119. package/build/v1/users/commands/change-password.command.js +7 -6
  120. package/build/v1/users/commands/delete-account.command.d.ts +12 -0
  121. package/build/v1/users/commands/delete-account.command.js +4 -4
  122. package/build/v1/users/commands/index.d.ts +4 -0
  123. package/build/v1/users/commands/toggle-marketing-consent.command.d.ts +19 -0
  124. package/build/v1/users/commands/toggle-marketing-consent.command.js +2 -4
  125. package/build/v1/users/commands/update-profile.command.d.ts +19 -0
  126. package/build/v1/users/commands/update-profile.command.js +2 -4
  127. package/build/v1/users/index.d.ts +7 -0
  128. package/build/v1/users/index.js +6 -2
  129. package/build/v1/users/queries/get-current-user.query.d.ts +17 -0
  130. package/build/v1/users/queries/get-current-user.query.js +0 -2
  131. package/build/v1/users/queries/index.d.ts +1 -0
  132. package/build/v1/users/schemas/change-password-request.schema.d.ts +10 -0
  133. package/build/v1/users/schemas/delete-account-request.schema.d.ts +5 -0
  134. package/build/v1/users/schemas/index.d.ts +6 -0
  135. package/build/v1/users/schemas/response-unions.schema.d.ts +34 -0
  136. package/build/v1/users/schemas/response-unions.schema.js +6 -6
  137. package/build/v1/users/schemas/toggle-marketing-consent-request.schema.d.ts +7 -0
  138. package/build/v1/users/schemas/update-profile-request.schema.d.ts +8 -0
  139. package/build/v1/users/schemas/user-response.schema.d.ts +12 -0
  140. package/build/v1/users/users.paths.d.ts +11 -0
  141. package/build/v1/users/users.types.d.ts +11 -0
  142. package/package.json +1 -1
  143. package/build/v1/auth/commands/login.command.js +0 -18
  144. package/build/v1/blog/routes/index.js +0 -19
  145. /package/build/{v1/auth/controllers.js → controllers/auth.controllers.js} +0 -0
  146. /package/build/{v1/blog/controllers.js → controllers/blog.controllers.js} +0 -0
  147. /package/build/{v1/unregistered-users/controllers.js → controllers/unreg-users.controllers.js} +0 -0
  148. /package/build/{v1/users/controllers.js → controllers/users.controllers.js} +0 -0
  149. /package/build/{v1/blog/routes → routes}/blog-admin-categories.routes.js +0 -0
  150. /package/build/{v1/blog/routes → routes}/blog-admin-posts.routes.js +0 -0
  151. /package/build/{v1/blog/routes → routes}/blog-public.routes.js +0 -0
  152. /package/build/{v1/unregistered-users/routes → routes}/unreg-users.routes.js +0 -0
  153. /package/build/{v1/users/routes → routes}/users.routes.js +0 -0
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Auth Controller paths for NestJS @Controller decorator
3
+ */
4
+ export declare const AUTH_CONTROLLER: "v1/auth";
@@ -0,0 +1,7 @@
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";
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Centralized exports for all controllers
3
+ */
4
+ export { AUTH_CONTROLLER } from './auth.controllers';
5
+ export { USERS_CONTROLLER } from './users.controllers';
6
+ export { UNREG_USERS_CONTROLLER } from './unreg-users.controllers';
7
+ export { BLOG_ADMIN_CATEGORIES_CONTROLLER, BLOG_ADMIN_POSTS_CONTROLLER, BLOG_PUBLIC_CATEGORIES_CONTROLLER, BLOG_PUBLIC_POSTS_CONTROLLER, } from './blog.controllers';
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BLOG_PUBLIC_POSTS_CONTROLLER = exports.BLOG_PUBLIC_CATEGORIES_CONTROLLER = exports.BLOG_ADMIN_POSTS_CONTROLLER = exports.BLOG_ADMIN_CATEGORIES_CONTROLLER = exports.UNREG_USERS_CONTROLLER = exports.USERS_CONTROLLER = exports.AUTH_CONTROLLER = void 0;
4
+ /**
5
+ * Centralized exports for all controllers
6
+ */
7
+ var auth_controllers_1 = require("./auth.controllers");
8
+ Object.defineProperty(exports, "AUTH_CONTROLLER", { enumerable: true, get: function () { return auth_controllers_1.AUTH_CONTROLLER; } });
9
+ var users_controllers_1 = require("./users.controllers");
10
+ Object.defineProperty(exports, "USERS_CONTROLLER", { enumerable: true, get: function () { return users_controllers_1.USERS_CONTROLLER; } });
11
+ var unreg_users_controllers_1 = require("./unreg-users.controllers");
12
+ Object.defineProperty(exports, "UNREG_USERS_CONTROLLER", { enumerable: true, get: function () { return unreg_users_controllers_1.UNREG_USERS_CONTROLLER; } });
13
+ var blog_controllers_1 = require("./blog.controllers");
14
+ Object.defineProperty(exports, "BLOG_ADMIN_CATEGORIES_CONTROLLER", { enumerable: true, get: function () { return blog_controllers_1.BLOG_ADMIN_CATEGORIES_CONTROLLER; } });
15
+ Object.defineProperty(exports, "BLOG_ADMIN_POSTS_CONTROLLER", { enumerable: true, get: function () { return blog_controllers_1.BLOG_ADMIN_POSTS_CONTROLLER; } });
16
+ Object.defineProperty(exports, "BLOG_PUBLIC_CATEGORIES_CONTROLLER", { enumerable: true, get: function () { return blog_controllers_1.BLOG_PUBLIC_CATEGORIES_CONTROLLER; } });
17
+ Object.defineProperty(exports, "BLOG_PUBLIC_POSTS_CONTROLLER", { enumerable: true, get: function () { return blog_controllers_1.BLOG_PUBLIC_POSTS_CONTROLLER; } });
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Unregistered Users Controller path
3
+ */
4
+ export declare const UNREG_USERS_CONTROLLER: "v1/unreg";
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Users Controller paths for NestJS @Controller decorator
3
+ */
4
+ export declare const USERS_CONTROLLER: "v1/users";
@@ -0,0 +1,5 @@
1
+ export * from './shared';
2
+ export * from './v1';
3
+ export * from './locales';
4
+ export * from './utils';
5
+ export * from './rest-api';
package/build/index.js CHANGED
@@ -19,3 +19,4 @@ __exportStar(require("./shared"), exports);
19
19
  __exportStar(require("./v1"), exports);
20
20
  __exportStar(require("./locales"), exports);
21
21
  __exportStar(require("./utils"), exports);
22
+ __exportStar(require("./rest-api"), exports);
@@ -0,0 +1,31 @@
1
+ /**
2
+ * English error messages
3
+ */
4
+ export declare const en: {
5
+ readonly EMAIL_ALREADY_EXISTS: "Email already exists";
6
+ readonly INVALID_CREDENTIALS: "Invalid email or password";
7
+ readonly USER_NOT_FOUND: "User not found";
8
+ readonly USER_DELETED: "User account has been deleted";
9
+ readonly SESSION_NOT_FOUND: "Session not found";
10
+ readonly SESSION_INACTIVE: "Session is inactive";
11
+ readonly INVALID_TOKEN: "Invalid or expired token";
12
+ readonly PASSWORD_TOO_WEAK: "Password is too weak";
13
+ readonly UNREG_USER_ALREADY_MIGRATED: "Guest user already migrated";
14
+ readonly SESSION_NOT_OWNED_BY_USER: "Session does not belong to user";
15
+ readonly DOMAIN_VALIDATION_ERROR: "Validation error";
16
+ readonly ENTITY_NOT_FOUND: "Resource not found";
17
+ readonly CONFLICT: "Resource already exists";
18
+ readonly BUSINESS_RULE_VIOLATION: "Business rule violation";
19
+ readonly UNAUTHORIZED: "Unauthorized";
20
+ readonly FORBIDDEN: "Access forbidden";
21
+ readonly VALIDATION_ERROR: "Validation failed";
22
+ readonly INTERNAL_SERVER_ERROR: "Internal server error";
23
+ readonly CATEGORY_NOT_FOUND: "Category not found";
24
+ readonly CATEGORY_ALIAS_EXISTS: "Category alias already exists";
25
+ readonly POST_NOT_FOUND: "Post not found";
26
+ readonly POST_ALIAS_EXISTS: "Post alias already exists";
27
+ readonly INVALID_CATEGORY_ID: "Invalid category ID";
28
+ readonly AT_LEAST_ONE_CATEGORY_REQUIRED: "At least one category required";
29
+ readonly UNKNOWN_ERROR: "An unexpected error occurred";
30
+ };
31
+ export type ErrorCode = keyof typeof en;
@@ -0,0 +1,66 @@
1
+ import { en, ErrorCode } from './en';
2
+ import { ru } from './ru';
3
+ export { en, ru, ErrorCode };
4
+ /**
5
+ * Get localized error message
6
+ */
7
+ export declare function getErrorMessage(code: string, locale?: 'en' | 'ru'): string;
8
+ /**
9
+ * Type-safe error messages
10
+ */
11
+ export declare const errorMessages: {
12
+ readonly en: {
13
+ readonly EMAIL_ALREADY_EXISTS: "Email already exists";
14
+ readonly INVALID_CREDENTIALS: "Invalid email or password";
15
+ readonly USER_NOT_FOUND: "User not found";
16
+ readonly USER_DELETED: "User account has been deleted";
17
+ readonly SESSION_NOT_FOUND: "Session not found";
18
+ readonly SESSION_INACTIVE: "Session is inactive";
19
+ readonly INVALID_TOKEN: "Invalid or expired token";
20
+ readonly PASSWORD_TOO_WEAK: "Password is too weak";
21
+ readonly UNREG_USER_ALREADY_MIGRATED: "Guest user already migrated";
22
+ readonly SESSION_NOT_OWNED_BY_USER: "Session does not belong to user";
23
+ readonly DOMAIN_VALIDATION_ERROR: "Validation error";
24
+ readonly ENTITY_NOT_FOUND: "Resource not found";
25
+ readonly CONFLICT: "Resource already exists";
26
+ readonly BUSINESS_RULE_VIOLATION: "Business rule violation";
27
+ readonly UNAUTHORIZED: "Unauthorized";
28
+ readonly FORBIDDEN: "Access forbidden";
29
+ readonly VALIDATION_ERROR: "Validation failed";
30
+ readonly INTERNAL_SERVER_ERROR: "Internal server error";
31
+ readonly CATEGORY_NOT_FOUND: "Category not found";
32
+ readonly CATEGORY_ALIAS_EXISTS: "Category alias already exists";
33
+ readonly POST_NOT_FOUND: "Post not found";
34
+ readonly POST_ALIAS_EXISTS: "Post alias already exists";
35
+ readonly INVALID_CATEGORY_ID: "Invalid category ID";
36
+ readonly AT_LEAST_ONE_CATEGORY_REQUIRED: "At least one category required";
37
+ readonly UNKNOWN_ERROR: "An unexpected error occurred";
38
+ };
39
+ readonly ru: {
40
+ readonly EMAIL_ALREADY_EXISTS: "Email уже зарегистрирован";
41
+ readonly INVALID_CREDENTIALS: "Неверный email или пароль";
42
+ readonly USER_NOT_FOUND: "Пользователь не найден";
43
+ readonly USER_DELETED: "Аккаунт пользователя удалён";
44
+ readonly SESSION_NOT_FOUND: "Сессия не найдена";
45
+ readonly SESSION_INACTIVE: "Сессия неактивна";
46
+ readonly INVALID_TOKEN: "Невалидный или истёкший токен";
47
+ readonly PASSWORD_TOO_WEAK: "Пароль слишком слабый";
48
+ readonly UNREG_USER_ALREADY_MIGRATED: "Гостевой пользователь уже мигрирован";
49
+ readonly SESSION_NOT_OWNED_BY_USER: "Сессия не принадлежит пользователю";
50
+ readonly DOMAIN_VALIDATION_ERROR: "Ошибка валидации";
51
+ readonly ENTITY_NOT_FOUND: "Ресурс не найден";
52
+ readonly CONFLICT: "Ресурс уже существует";
53
+ readonly BUSINESS_RULE_VIOLATION: "Нарушение бизнес-правила";
54
+ readonly UNAUTHORIZED: "Не авторизован";
55
+ readonly FORBIDDEN: "Доступ запрещён";
56
+ readonly VALIDATION_ERROR: "Ошибка валидации";
57
+ readonly INTERNAL_SERVER_ERROR: "Внутренняя ошибка сервера";
58
+ readonly CATEGORY_NOT_FOUND: "Категория не найдена";
59
+ readonly CATEGORY_ALIAS_EXISTS: "Alias категории уже существует";
60
+ readonly POST_NOT_FOUND: "Пост не найден";
61
+ readonly POST_ALIAS_EXISTS: "Alias поста уже существует";
62
+ readonly INVALID_CATEGORY_ID: "Невалидный ID категории";
63
+ readonly AT_LEAST_ONE_CATEGORY_REQUIRED: "Требуется минимум одна категория";
64
+ readonly UNKNOWN_ERROR: "Произошла неожиданная ошибка";
65
+ };
66
+ };
@@ -0,0 +1,30 @@
1
+ /**
2
+ * Russian error messages
3
+ */
4
+ export declare const ru: {
5
+ readonly EMAIL_ALREADY_EXISTS: "Email уже зарегистрирован";
6
+ readonly INVALID_CREDENTIALS: "Неверный email или пароль";
7
+ readonly USER_NOT_FOUND: "Пользователь не найден";
8
+ readonly USER_DELETED: "Аккаунт пользователя удалён";
9
+ readonly SESSION_NOT_FOUND: "Сессия не найдена";
10
+ readonly SESSION_INACTIVE: "Сессия неактивна";
11
+ readonly INVALID_TOKEN: "Невалидный или истёкший токен";
12
+ readonly PASSWORD_TOO_WEAK: "Пароль слишком слабый";
13
+ readonly UNREG_USER_ALREADY_MIGRATED: "Гостевой пользователь уже мигрирован";
14
+ readonly SESSION_NOT_OWNED_BY_USER: "Сессия не принадлежит пользователю";
15
+ readonly DOMAIN_VALIDATION_ERROR: "Ошибка валидации";
16
+ readonly ENTITY_NOT_FOUND: "Ресурс не найден";
17
+ readonly CONFLICT: "Ресурс уже существует";
18
+ readonly BUSINESS_RULE_VIOLATION: "Нарушение бизнес-правила";
19
+ readonly UNAUTHORIZED: "Не авторизован";
20
+ readonly FORBIDDEN: "Доступ запрещён";
21
+ readonly VALIDATION_ERROR: "Ошибка валидации";
22
+ readonly INTERNAL_SERVER_ERROR: "Внутренняя ошибка сервера";
23
+ readonly CATEGORY_NOT_FOUND: "Категория не найдена";
24
+ readonly CATEGORY_ALIAS_EXISTS: "Alias категории уже существует";
25
+ readonly POST_NOT_FOUND: "Пост не найден";
26
+ readonly POST_ALIAS_EXISTS: "Alias поста уже существует";
27
+ readonly INVALID_CATEGORY_ID: "Невалидный ID категории";
28
+ readonly AT_LEAST_ONE_CATEGORY_REQUIRED: "Требуется минимум одна категория";
29
+ readonly UNKNOWN_ERROR: "Произошла неожиданная ошибка";
30
+ };
@@ -0,0 +1,52 @@
1
+ /**
2
+ * Centralized REST API URLs
3
+ * Used by frontend for API calls
4
+ */
5
+ export declare const ROOT: "/api";
6
+ export declare const REST_API: {
7
+ readonly V1: {
8
+ readonly AUTH: {
9
+ readonly SIGNUP: "/api/v1/auth/signup";
10
+ readonly SIGNIN: "/api/v1/auth/signin";
11
+ readonly LOGOUT: "/api/v1/auth/logout";
12
+ readonly LOGOUT_ALL: "/api/v1/auth/logout-all";
13
+ readonly SESSIONS: "/api/v1/auth/sessions";
14
+ readonly SESSION_BY_ID: (id: string) => string;
15
+ };
16
+ readonly USERS: {
17
+ readonly ME: "/api/v1/users/me";
18
+ readonly ME_MARKETING_CONSENT: "/api/v1/users/me/marketing-consent";
19
+ readonly ME_PASSWORD: "/api/v1/users/me/password";
20
+ };
21
+ readonly UNREG: {
22
+ readonly AUTHENTICATE: "/api/v1/unreg/";
23
+ };
24
+ readonly BLOG: {
25
+ readonly ADMIN: {
26
+ readonly CATEGORIES: {
27
+ readonly CREATE: "/api/v1/admin/blog/categories/";
28
+ readonly GET_ALL: "/api/v1/admin/blog/categories/";
29
+ readonly GET_BY_UUID: (uuid: string) => string;
30
+ readonly UPDATE: (uuid: string) => string;
31
+ readonly DELETE: (uuid: string) => string;
32
+ };
33
+ readonly POSTS: {
34
+ readonly CREATE: "/api/v1/admin/blog/posts/";
35
+ readonly GET_ALL: "/api/v1/admin/blog/posts/";
36
+ readonly GET_BY_UUID: (uuid: string) => string;
37
+ readonly UPDATE: (uuid: string) => string;
38
+ readonly DELETE: (uuid: string) => string;
39
+ };
40
+ };
41
+ readonly PUBLIC: {
42
+ readonly CATEGORIES: {
43
+ readonly GET_ALL: "/api/v1/blog/categories/";
44
+ };
45
+ readonly POSTS: {
46
+ readonly GET_ALL: "/api/v1/blog/posts/";
47
+ readonly GET_BY_ALIAS: (alias: string) => string;
48
+ };
49
+ };
50
+ };
51
+ };
52
+ };
package/build/rest-api.js CHANGED
@@ -5,35 +5,29 @@
5
5
  */
6
6
  Object.defineProperty(exports, "__esModule", { value: true });
7
7
  exports.REST_API = exports.ROOT = void 0;
8
- const controllers_1 = require("./v1/blog/controllers");
9
- const routes_1 = require("./v1/blog/routes");
10
- const controllers_2 = require("./v1/auth/controllers");
11
- const auth_routes_1 = require("./v1/auth/routes/auth.routes");
12
- const controllers_3 = require("./v1/users/controllers");
13
- const users_routes_1 = require("./v1/users/routes/users.routes");
14
- const controllers_4 = require("./v1/unregistered-users/controllers");
15
- const unreg_users_routes_1 = require("./v1/unregistered-users/routes/unreg-users.routes");
8
+ const controllers_1 = require("./controllers");
9
+ const routes_1 = require("./routes");
16
10
  exports.ROOT = '/api';
17
11
  exports.REST_API = {
18
12
  V1: {
19
13
  // Auth module
20
14
  AUTH: {
21
- SIGNUP: `${exports.ROOT}/${controllers_2.AUTH_CONTROLLER}/${auth_routes_1.AUTH_ROUTES.SIGNUP}`,
22
- LOGIN: `${exports.ROOT}/${controllers_2.AUTH_CONTROLLER}/${auth_routes_1.AUTH_ROUTES.LOGIN}`,
23
- LOGOUT: `${exports.ROOT}/${controllers_2.AUTH_CONTROLLER}/${auth_routes_1.AUTH_ROUTES.LOGOUT}`,
24
- LOGOUT_ALL: `${exports.ROOT}/${controllers_2.AUTH_CONTROLLER}/${auth_routes_1.AUTH_ROUTES.LOGOUT_ALL}`,
25
- SESSIONS: `${exports.ROOT}/${controllers_2.AUTH_CONTROLLER}/${auth_routes_1.AUTH_ROUTES.SESSIONS}`,
26
- SESSION_BY_ID: (id) => `${exports.ROOT}/${controllers_2.AUTH_CONTROLLER}/sessions/${id}`,
15
+ SIGNUP: `${exports.ROOT}/${controllers_1.AUTH_CONTROLLER}/${routes_1.AUTH_ROUTES.SIGNUP}`,
16
+ SIGNIN: `${exports.ROOT}/${controllers_1.AUTH_CONTROLLER}/${routes_1.AUTH_ROUTES.SIGNIN}`,
17
+ LOGOUT: `${exports.ROOT}/${controllers_1.AUTH_CONTROLLER}/${routes_1.AUTH_ROUTES.LOGOUT}`,
18
+ LOGOUT_ALL: `${exports.ROOT}/${controllers_1.AUTH_CONTROLLER}/${routes_1.AUTH_ROUTES.LOGOUT_ALL}`,
19
+ SESSIONS: `${exports.ROOT}/${controllers_1.AUTH_CONTROLLER}/${routes_1.AUTH_ROUTES.SESSIONS}`,
20
+ SESSION_BY_ID: (id) => `${exports.ROOT}/${controllers_1.AUTH_CONTROLLER}/sessions/${id}`,
27
21
  },
28
22
  // Users module
29
23
  USERS: {
30
- ME: `${exports.ROOT}/${controllers_3.USERS_CONTROLLER}/${users_routes_1.USERS_ROUTES.ME}`,
31
- ME_MARKETING_CONSENT: `${exports.ROOT}/${controllers_3.USERS_CONTROLLER}/${users_routes_1.USERS_ROUTES.ME_MARKETING_CONSENT}`,
32
- ME_PASSWORD: `${exports.ROOT}/${controllers_3.USERS_CONTROLLER}/${users_routes_1.USERS_ROUTES.ME_PASSWORD}`,
24
+ ME: `${exports.ROOT}/${controllers_1.USERS_CONTROLLER}/${routes_1.USERS_ROUTES.ME}`,
25
+ ME_MARKETING_CONSENT: `${exports.ROOT}/${controllers_1.USERS_CONTROLLER}/${routes_1.USERS_ROUTES.ME_MARKETING_CONSENT}`,
26
+ ME_PASSWORD: `${exports.ROOT}/${controllers_1.USERS_CONTROLLER}/${routes_1.USERS_ROUTES.ME_PASSWORD}`,
33
27
  },
34
28
  // Unregistered Users
35
29
  UNREG: {
36
- AUTHENTICATE: `${exports.ROOT}/${controllers_4.UNREG_USERS_CONTROLLER}/${unreg_users_routes_1.UNREG_USERS_ROUTES.AUTHENTICATE}`,
30
+ AUTHENTICATE: `${exports.ROOT}/${controllers_1.UNREG_USERS_CONTROLLER}/${routes_1.UNREG_USERS_ROUTES.AUTHENTICATE}`,
37
31
  },
38
32
  // Blog module
39
33
  BLOG: {
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Auth Routes
3
+ * For NestJS method decorators (@Get, @Post, etc.)
4
+ */
5
+ export declare const AUTH_ROUTES: {
6
+ readonly SIGNUP: "signup";
7
+ readonly SIGNIN: "signin";
8
+ readonly LOGOUT: "logout";
9
+ readonly LOGOUT_ALL: "logout-all";
10
+ readonly SESSIONS: "sessions";
11
+ readonly SESSION_BY_ID: "sessions/:id";
12
+ };
@@ -7,7 +7,7 @@ exports.AUTH_ROUTES = void 0;
7
7
  */
8
8
  exports.AUTH_ROUTES = {
9
9
  SIGNUP: 'signup',
10
- LOGIN: 'login',
10
+ SIGNIN: 'signin',
11
11
  LOGOUT: 'logout',
12
12
  LOGOUT_ALL: 'logout-all',
13
13
  SESSIONS: 'sessions',
@@ -0,0 +1,11 @@
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
+ };
@@ -0,0 +1,10 @@
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
+ };
@@ -0,0 +1,10 @@
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
+ };
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Centralized exports for all routes
3
+ */
4
+ export { AUTH_ROUTES } from './auth.routes';
5
+ export { USERS_ROUTES } from './users.routes';
6
+ export { UNREG_USERS_ROUTES } from './unreg-users.routes';
7
+ export { BLOG_ADMIN_CATEGORIES_ROUTES } from './blog-admin-categories.routes';
8
+ export { BLOG_ADMIN_POSTS_ROUTES } from './blog-admin-posts.routes';
9
+ export { BLOG_PUBLIC_CATEGORIES_ROUTES, BLOG_PUBLIC_POSTS_ROUTES } from './blog-public.routes';
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BLOG_PUBLIC_POSTS_ROUTES = exports.BLOG_PUBLIC_CATEGORIES_ROUTES = exports.BLOG_ADMIN_POSTS_ROUTES = exports.BLOG_ADMIN_CATEGORIES_ROUTES = exports.UNREG_USERS_ROUTES = exports.USERS_ROUTES = exports.AUTH_ROUTES = void 0;
4
+ /**
5
+ * Centralized exports for all routes
6
+ */
7
+ var auth_routes_1 = require("./auth.routes");
8
+ Object.defineProperty(exports, "AUTH_ROUTES", { enumerable: true, get: function () { return auth_routes_1.AUTH_ROUTES; } });
9
+ var users_routes_1 = require("./users.routes");
10
+ Object.defineProperty(exports, "USERS_ROUTES", { enumerable: true, get: function () { return users_routes_1.USERS_ROUTES; } });
11
+ var unreg_users_routes_1 = require("./unreg-users.routes");
12
+ Object.defineProperty(exports, "UNREG_USERS_ROUTES", { enumerable: true, get: function () { return unreg_users_routes_1.UNREG_USERS_ROUTES; } });
13
+ var blog_admin_categories_routes_1 = require("./blog-admin-categories.routes");
14
+ Object.defineProperty(exports, "BLOG_ADMIN_CATEGORIES_ROUTES", { enumerable: true, get: function () { return blog_admin_categories_routes_1.BLOG_ADMIN_CATEGORIES_ROUTES; } });
15
+ var blog_admin_posts_routes_1 = require("./blog-admin-posts.routes");
16
+ Object.defineProperty(exports, "BLOG_ADMIN_POSTS_ROUTES", { enumerable: true, get: function () { return blog_admin_posts_routes_1.BLOG_ADMIN_POSTS_ROUTES; } });
17
+ var blog_public_routes_1 = require("./blog-public.routes");
18
+ Object.defineProperty(exports, "BLOG_PUBLIC_CATEGORIES_ROUTES", { enumerable: true, get: function () { return blog_public_routes_1.BLOG_PUBLIC_CATEGORIES_ROUTES; } });
19
+ Object.defineProperty(exports, "BLOG_PUBLIC_POSTS_ROUTES", { enumerable: true, get: function () { return blog_public_routes_1.BLOG_PUBLIC_POSTS_ROUTES; } });
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Unregistered Users Routes
3
+ */
4
+ export declare const UNREG_USERS_ROUTES: {
5
+ readonly AUTHENTICATE: "";
6
+ };
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Users Routes
3
+ * For NestJS method decorators
4
+ */
5
+ export declare const USERS_ROUTES: {
6
+ readonly ME: "me";
7
+ readonly ME_MARKETING_CONSENT: "me/marketing-consent";
8
+ readonly ME_PASSWORD: "me/password";
9
+ };
@@ -0,0 +1,12 @@
1
+ import { z } from 'zod';
2
+ /**
3
+ * Empty Response (for void operations)
4
+ */
5
+ export declare const EmptyResponseSchema: z.ZodObject<{}, z.core.$strip>;
6
+ /**
7
+ * Error Response Schema
8
+ */
9
+ export declare const ErrorResponseSchema: z.ZodObject<{
10
+ code: z.ZodString;
11
+ details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
12
+ }, z.core.$strip>;
@@ -0,0 +1,25 @@
1
+ import { z } from 'zod';
2
+ /**
3
+ * Base error response schema
4
+ */
5
+ export declare const ErrorResponseSchema: z.ZodObject<{
6
+ statusCode: z.ZodNumber;
7
+ message: z.ZodString;
8
+ error: z.ZodString;
9
+ code: z.ZodOptional<z.ZodString>;
10
+ details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
11
+ timestamp: z.ZodString;
12
+ }, z.core.$strip>;
13
+ export type ErrorResponse = z.infer<typeof ErrorResponseSchema>;
14
+ /**
15
+ * Validation error response schema
16
+ */
17
+ export declare const ValidationErrorResponseSchema: z.ZodObject<{
18
+ statusCode: z.ZodNumber;
19
+ message: z.ZodString;
20
+ error: z.ZodString;
21
+ timestamp: z.ZodString;
22
+ code: z.ZodLiteral<"VALIDATION_ERROR">;
23
+ details: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>;
24
+ }, z.core.$strip>;
25
+ export type ValidationErrorResponse = z.infer<typeof ValidationErrorResponseSchema>;
@@ -0,0 +1,10 @@
1
+ /**
2
+ * HTTP Methods enum
3
+ */
4
+ export declare enum HttpMethod {
5
+ GET = "GET",
6
+ POST = "POST",
7
+ PUT = "PUT",
8
+ PATCH = "PATCH",
9
+ DELETE = "DELETE"
10
+ }
@@ -0,0 +1,2 @@
1
+ export * from './error-response.schema';
2
+ export * from './pagination.schema';
@@ -0,0 +1,35 @@
1
+ import { z } from 'zod';
2
+ /**
3
+ * Pagination query params schema
4
+ */
5
+ export declare const PaginationQuerySchema: z.ZodObject<{
6
+ page: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
7
+ limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
8
+ }, z.core.$strip>;
9
+ export type PaginationQuery = z.infer<typeof PaginationQuerySchema>;
10
+ /**
11
+ * Pagination metadata schema
12
+ */
13
+ export declare const PaginationMetaSchema: z.ZodObject<{
14
+ page: z.ZodNumber;
15
+ limit: z.ZodNumber;
16
+ total: z.ZodNumber;
17
+ totalPages: z.ZodNumber;
18
+ hasNext: z.ZodBoolean;
19
+ hasPrev: z.ZodBoolean;
20
+ }, z.core.$strip>;
21
+ export type PaginationMeta = z.infer<typeof PaginationMetaSchema>;
22
+ /**
23
+ * Paginated response schema
24
+ */
25
+ export declare const createPaginatedResponseSchema: <T extends z.ZodType>(itemSchema: T) => z.ZodObject<{
26
+ data: z.ZodArray<T>;
27
+ meta: z.ZodObject<{
28
+ page: z.ZodNumber;
29
+ limit: z.ZodNumber;
30
+ total: z.ZodNumber;
31
+ totalPages: z.ZodNumber;
32
+ hasNext: z.ZodBoolean;
33
+ hasPrev: z.ZodBoolean;
34
+ }, z.core.$strip>;
35
+ }, z.core.$strip>;
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Common regex patterns for validation
3
+ */
4
+ export declare const EMAIL_REGEX: RegExp;
5
+ export declare const UUID_REGEX: RegExp;
6
+ export declare const DATETIME_REGEX: RegExp;
7
+ export declare const PASSWORD_STRENGTH_REGEX: RegExp;
8
+ export declare const SLUG_REGEX: RegExp;
@@ -0,0 +1 @@
1
+ export * from './path-builder';
@@ -0,0 +1,20 @@
1
+ /**
2
+ * Build URL path with parameters
3
+ * @example
4
+ * buildPath('/users/:id', { id: '123' }) // '/users/123'
5
+ * buildPath('/users/:id/posts/:postId', { id: '1', postId: '2' }) // '/users/1/posts/2'
6
+ */
7
+ export declare function buildPath(pattern: string, params?: Record<string, string | number>): string;
8
+ /**
9
+ * Build URL with query parameters
10
+ * @example
11
+ * buildUrl('/users', { page: 1, limit: 10 }) // '/users?page=1&limit=10'
12
+ */
13
+ export declare function buildUrl(path: string, queryParams?: Record<string, string | number | boolean | undefined>): string;
14
+ /**
15
+ * Build full URL with path params and query params
16
+ * @example
17
+ * buildFullUrl('/users/:id', { id: '123' }, { include: 'posts' })
18
+ * // '/users/123?include=posts'
19
+ */
20
+ export declare function buildFullUrl(pattern: string, pathParams?: Record<string, string | number>, queryParams?: Record<string, string | number | boolean | undefined>): string;
@@ -0,0 +1,12 @@
1
+ export declare enum AuthErrorCode {
2
+ EMAIL_ALREADY_EXISTS = "EMAIL_ALREADY_EXISTS",
3
+ INVALID_CREDENTIALS = "INVALID_CREDENTIALS",
4
+ USER_NOT_FOUND = "USER_NOT_FOUND",
5
+ USER_DELETED = "USER_DELETED",
6
+ SESSION_NOT_FOUND = "SESSION_NOT_FOUND",
7
+ SESSION_INACTIVE = "SESSION_INACTIVE",
8
+ INVALID_TOKEN = "INVALID_TOKEN",
9
+ PASSWORD_TOO_WEAK = "PASSWORD_TOO_WEAK",
10
+ UNREG_USER_ALREADY_MIGRATED = "UNREG_USER_ALREADY_MIGRATED",
11
+ SESSION_NOT_OWNED_BY_USER = "SESSION_NOT_OWNED_BY_USER"
12
+ }
@@ -0,0 +1,17 @@
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
+ };
@@ -4,7 +4,7 @@ exports.AUTH_API_PATHS = exports.AUTH_PATHS = void 0;
4
4
  exports.AUTH_PATHS = {
5
5
  BASE: 'v1/auth',
6
6
  SIGNUP: 'signup',
7
- LOGIN: 'login',
7
+ SIGNIN: 'signin',
8
8
  LOGOUT: 'logout',
9
9
  LOGOUT_ALL: 'logout-all',
10
10
  SESSIONS: 'sessions',
@@ -12,7 +12,7 @@ exports.AUTH_PATHS = {
12
12
  };
13
13
  exports.AUTH_API_PATHS = {
14
14
  SIGNUP: `/api/${exports.AUTH_PATHS.BASE}/${exports.AUTH_PATHS.SIGNUP}`,
15
- LOGIN: `/api/${exports.AUTH_PATHS.BASE}/${exports.AUTH_PATHS.LOGIN}`,
15
+ SIGNIN: `/api/${exports.AUTH_PATHS.BASE}/${exports.AUTH_PATHS.SIGNIN}`,
16
16
  LOGOUT: `/api/${exports.AUTH_PATHS.BASE}/${exports.AUTH_PATHS.LOGOUT}`,
17
17
  LOGOUT_ALL: `/api/${exports.AUTH_PATHS.BASE}/${exports.AUTH_PATHS.LOGOUT_ALL}`,
18
18
  SESSIONS: `/api/${exports.AUTH_PATHS.BASE}/${exports.AUTH_PATHS.SESSIONS}`,
@@ -0,0 +1,8 @@
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>;
@@ -0,0 +1,12 @@
1
+ import { z } from 'zod';
2
+ import { HttpMethod } from '../../../shared/http-method';
3
+ export declare namespace AuthDeleteSessionCommand {
4
+ const Request: z.ZodObject<{}, z.core.$strip>;
5
+ const Response: z.ZodObject<{
6
+ sessionId: z.ZodString;
7
+ }, z.core.$strip>;
8
+ const URL: (id: string) => string;
9
+ const METHOD = HttpMethod.DELETE;
10
+ type RequestType = z.infer<typeof Request>;
11
+ type ResponseType = z.infer<typeof Response>;
12
+ }
@@ -2,7 +2,6 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.AuthDeleteSessionCommand = void 0;
4
4
  const zod_1 = require("zod");
5
- const auth_routes_1 = require("../routes/auth.routes");
6
5
  const rest_api_1 = require("../../../rest-api");
7
6
  const http_method_1 = require("../../../shared/http-method");
8
7
  var AuthDeleteSessionCommand;
@@ -12,8 +11,7 @@ var AuthDeleteSessionCommand;
12
11
  AuthDeleteSessionCommand.Response = zod_1.z.object({
13
12
  sessionId: zod_1.z.string().uuid(),
14
13
  });
15
- // Path/URL/Method
16
- AuthDeleteSessionCommand.PATH = auth_routes_1.AUTH_ROUTES.SESSION_BY_ID;
14
+ // URL/Method
17
15
  AuthDeleteSessionCommand.URL = (id) => rest_api_1.REST_API.V1.AUTH.SESSION_BY_ID(id);
18
16
  AuthDeleteSessionCommand.METHOD = http_method_1.HttpMethod.DELETE;
19
17
  })(AuthDeleteSessionCommand || (exports.AuthDeleteSessionCommand = AuthDeleteSessionCommand = {}));