@veruna/api-contracts 1.0.12 → 1.0.14

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 (73) hide show
  1. package/build/index.d.ts +3 -1
  2. package/build/index.js +3 -1
  3. package/build/locales/en.d.ts +5 -0
  4. package/build/locales/en.js +6 -0
  5. package/build/locales/index.d.ts +10 -0
  6. package/build/locales/ru.d.ts +5 -0
  7. package/build/locales/ru.js +6 -0
  8. package/build/rest-api.d.ts +1 -1
  9. package/build/rest-api.js +1 -1
  10. package/build/shared/common.errors.d.ts +8 -0
  11. package/build/shared/common.errors.js +28 -0
  12. package/build/shared/device-type.enum.d.ts +11 -0
  13. package/build/shared/device-type.enum.js +15 -0
  14. package/build/shared/error-metadata.d.ts +9 -0
  15. package/build/shared/index.d.ts +4 -0
  16. package/build/shared/index.js +4 -0
  17. package/build/v1/auth/auth.errors.d.ts +4 -1
  18. package/build/v1/auth/auth.errors.js +30 -1
  19. package/build/v1/auth/commands/signin.command.d.ts +2 -0
  20. package/build/v1/auth/commands/signup.command.d.ts +2 -0
  21. package/build/v1/auth/commands/signup.command.js +4 -4
  22. package/build/v1/auth/index.d.ts +0 -2
  23. package/build/v1/auth/index.js +0 -2
  24. package/build/v1/auth/queries/get-sessions.query.d.ts +2 -0
  25. package/build/v1/auth/schemas/auth-response.schema.d.ts +4 -0
  26. package/build/v1/auth/schemas/session-response.schema.d.ts +3 -0
  27. package/build/v1/auth/schemas/session-response.schema.js +6 -4
  28. package/build/v1/blog/index.d.ts +0 -2
  29. package/build/v1/blog/index.js +0 -2
  30. package/build/v1/email/email.errors.d.ts +15 -0
  31. package/build/v1/email/email.errors.js +63 -0
  32. package/build/v1/email/index.d.ts +1 -0
  33. package/build/v1/email/index.js +17 -0
  34. package/build/v1/index.d.ts +2 -0
  35. package/build/v1/index.js +2 -0
  36. package/build/v1/notifications/index.d.ts +2 -0
  37. package/build/v1/notifications/index.js +18 -0
  38. package/build/v1/notifications/notifications.errors.d.ts +26 -0
  39. package/build/v1/notifications/notifications.errors.js +101 -0
  40. package/build/v1/notifications/schemas/email-template.enum.d.ts +12 -0
  41. package/build/v1/notifications/schemas/email-template.enum.js +20 -0
  42. package/build/v1/notifications/schemas/index.d.ts +3 -0
  43. package/build/v1/notifications/schemas/index.js +19 -0
  44. package/build/v1/notifications/schemas/notification-status.enum.d.ts +11 -0
  45. package/build/v1/notifications/schemas/notification-status.enum.js +15 -0
  46. package/build/v1/notifications/schemas/notification-type.enum.d.ts +8 -0
  47. package/build/v1/notifications/schemas/notification-type.enum.js +14 -0
  48. package/build/v1/unregistered-users/commands/authenticate.command.d.ts +1 -1
  49. package/build/v1/unregistered-users/index.d.ts +1 -5
  50. package/build/v1/unregistered-users/index.js +1 -9
  51. package/build/v1/unregistered-users/unregistered-users.errors.d.ts +8 -9
  52. package/build/v1/unregistered-users/unregistered-users.errors.js +18 -9
  53. package/build/v1/users/index.d.ts +1 -2
  54. package/build/v1/users/index.js +1 -2
  55. package/build/v1/users/users.errors.d.ts +18 -0
  56. package/build/v1/users/users.errors.js +51 -0
  57. package/package.json +1 -1
  58. package/build/v1/auth/auth.paths.d.ts +0 -17
  59. package/build/v1/auth/auth.paths.js +0 -20
  60. package/build/v1/auth/auth.types.d.ts +0 -8
  61. package/build/v1/auth/auth.types.js +0 -6
  62. package/build/v1/blog/blog.paths.d.ts +0 -36
  63. package/build/v1/blog/blog.paths.js +0 -47
  64. package/build/v1/blog/blog.types.d.ts +0 -12
  65. package/build/v1/blog/blog.types.js +0 -7
  66. package/build/v1/unregistered-users/unregistered-users.paths.d.ts +0 -15
  67. package/build/v1/unregistered-users/unregistered-users.paths.js +0 -18
  68. package/build/v1/unregistered-users/unregistered-users.types.d.ts +0 -9
  69. package/build/v1/unregistered-users/unregistered-users.types.js +0 -8
  70. package/build/v1/users/users.paths.d.ts +0 -11
  71. package/build/v1/users/users.paths.js +0 -14
  72. package/build/v1/users/users.types.d.ts +0 -11
  73. /package/build/{v1/users/users.types.js → shared/error-metadata.js} +0 -0
@@ -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>;