@veruna/api-contracts 1.0.89 → 1.0.90

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 (217) hide show
  1. package/build/controllers/attribution.controllers.d.ts +1 -0
  2. package/build/controllers/attribution.controllers.js +5 -0
  3. package/build/controllers/attribution.controllers.js.map +1 -0
  4. package/build/controllers/index.d.ts +3 -0
  5. package/build/controllers/index.js +7 -1
  6. package/build/controllers/index.js.map +1 -1
  7. package/build/controllers/notifications.controllers.d.ts +1 -0
  8. package/build/controllers/notifications.controllers.js +5 -0
  9. package/build/controllers/notifications.controllers.js.map +1 -0
  10. package/build/controllers/web-notifications.controllers.d.ts +1 -0
  11. package/build/controllers/web-notifications.controllers.js +5 -0
  12. package/build/controllers/web-notifications.controllers.js.map +1 -0
  13. package/build/locales/validation.d.ts +138 -8
  14. package/build/locales/validation.js +138 -8
  15. package/build/locales/validation.js.map +1 -1
  16. package/build/rest-api.d.ts +11 -1
  17. package/build/rest-api.js +11 -1
  18. package/build/rest-api.js.map +1 -1
  19. package/build/routes/attribution.routes.d.ts +3 -0
  20. package/build/routes/attribution.routes.js +7 -0
  21. package/build/routes/attribution.routes.js.map +1 -0
  22. package/build/routes/index.d.ts +3 -0
  23. package/build/routes/index.js +7 -1
  24. package/build/routes/index.js.map +1 -1
  25. package/build/routes/notifications.routes.d.ts +3 -0
  26. package/build/routes/notifications.routes.js +7 -0
  27. package/build/routes/notifications.routes.js.map +1 -0
  28. package/build/routes/users.routes.d.ts +0 -1
  29. package/build/routes/users.routes.js +0 -1
  30. package/build/routes/users.routes.js.map +1 -1
  31. package/build/routes/web-notifications.routes.d.ts +5 -0
  32. package/build/routes/web-notifications.routes.js +9 -0
  33. package/build/routes/web-notifications.routes.js.map +1 -0
  34. package/build/shared/constants.d.ts +1 -0
  35. package/build/shared/constants.js +2 -1
  36. package/build/shared/constants.js.map +1 -1
  37. package/build/shared/regex.d.ts +3 -0
  38. package/build/shared/regex.js +4 -1
  39. package/build/shared/regex.js.map +1 -1
  40. package/build/tsconfig.tsbuildinfo +1 -1
  41. package/build/v1/ai-model/schemas/create-model-request.schema.js +9 -9
  42. package/build/v1/ai-model/schemas/create-model-request.schema.js.map +1 -1
  43. package/build/v1/ai-model/schemas/update-model-request.schema.js +12 -12
  44. package/build/v1/ai-model/schemas/update-model-request.schema.js.map +1 -1
  45. package/build/v1/ai-provider/schemas/create-provider-request.schema.js +1 -1
  46. package/build/v1/ai-provider/schemas/create-provider-request.schema.js.map +1 -1
  47. package/build/v1/attribution/attribution.errors.d.ts +8 -0
  48. package/build/v1/attribution/attribution.errors.js +29 -0
  49. package/build/v1/attribution/attribution.errors.js.map +1 -0
  50. package/build/v1/attribution/index.d.ts +2 -0
  51. package/build/v1/attribution/index.js +19 -0
  52. package/build/v1/attribution/index.js.map +1 -0
  53. package/build/v1/attribution/schemas/attribution-event-type.enum.d.ts +8 -0
  54. package/build/v1/attribution/schemas/attribution-event-type.enum.js +13 -0
  55. package/build/v1/attribution/schemas/attribution-event-type.enum.js.map +1 -0
  56. package/build/v1/attribution/schemas/attribution-method.enum.d.ts +4 -0
  57. package/build/v1/attribution/schemas/attribution-method.enum.js +9 -0
  58. package/build/v1/attribution/schemas/attribution-method.enum.js.map +1 -0
  59. package/build/v1/attribution/schemas/attribution-source-module.enum.d.ts +3 -0
  60. package/build/v1/attribution/schemas/attribution-source-module.enum.js +8 -0
  61. package/build/v1/attribution/schemas/attribution-source-module.enum.js.map +1 -0
  62. package/build/v1/attribution/schemas/click-redirect-params.schema.d.ts +5 -0
  63. package/build/v1/attribution/schemas/click-redirect-params.schema.js +13 -0
  64. package/build/v1/attribution/schemas/click-redirect-params.schema.js.map +1 -0
  65. package/build/v1/attribution/schemas/conversion-type.enum.d.ts +4 -0
  66. package/build/v1/attribution/schemas/conversion-type.enum.js +9 -0
  67. package/build/v1/attribution/schemas/conversion-type.enum.js.map +1 -0
  68. package/build/v1/attribution/schemas/index.d.ts +5 -0
  69. package/build/v1/attribution/schemas/index.js +22 -0
  70. package/build/v1/attribution/schemas/index.js.map +1 -0
  71. package/build/v1/auth/auth.errors.d.ts +2 -1
  72. package/build/v1/auth/auth.errors.js +5 -0
  73. package/build/v1/auth/auth.errors.js.map +1 -1
  74. package/build/v1/auth/commands/signin.command.d.ts +0 -1
  75. package/build/v1/auth/commands/signup.command.d.ts +0 -2
  76. package/build/v1/auth/schemas/auth-response.schema.d.ts +0 -1
  77. package/build/v1/auth/schemas/signup-request.schema.d.ts +0 -1
  78. package/build/v1/auth/schemas/signup-request.schema.js +2 -2
  79. package/build/v1/auth/schemas/signup-request.schema.js.map +1 -1
  80. package/build/v1/forms/schemas/cooperation-form.schema.js +4 -2
  81. package/build/v1/forms/schemas/cooperation-form.schema.js.map +1 -1
  82. package/build/v1/index.d.ts +2 -0
  83. package/build/v1/index.js +2 -0
  84. package/build/v1/index.js.map +1 -1
  85. package/build/v1/notifications/commands/index.d.ts +1 -0
  86. package/build/v1/notifications/commands/index.js +18 -0
  87. package/build/v1/notifications/commands/index.js.map +1 -0
  88. package/build/v1/notifications/commands/update-notification-settings.command.d.ts +31 -0
  89. package/build/v1/notifications/commands/update-notification-settings.command.js +14 -0
  90. package/build/v1/notifications/commands/update-notification-settings.command.js.map +1 -0
  91. package/build/v1/notifications/index.d.ts +2 -0
  92. package/build/v1/notifications/index.js +2 -0
  93. package/build/v1/notifications/index.js.map +1 -1
  94. package/build/v1/notifications/queries/get-notification-settings.query.d.ts +25 -0
  95. package/build/v1/notifications/queries/get-notification-settings.query.js +15 -0
  96. package/build/v1/notifications/queries/get-notification-settings.query.js.map +1 -0
  97. package/build/v1/notifications/queries/index.d.ts +1 -0
  98. package/build/v1/notifications/queries/index.js +18 -0
  99. package/build/v1/notifications/queries/index.js.map +1 -0
  100. package/build/v1/notifications/schemas/channel-skip-reason.enum.d.ts +4 -0
  101. package/build/v1/notifications/schemas/channel-skip-reason.enum.js +9 -0
  102. package/build/v1/notifications/schemas/channel-skip-reason.enum.js.map +1 -0
  103. package/build/v1/notifications/schemas/index.d.ts +11 -0
  104. package/build/v1/notifications/schemas/index.js +11 -0
  105. package/build/v1/notifications/schemas/index.js.map +1 -1
  106. package/build/v1/notifications/schemas/notification-channel.enum.d.ts +5 -0
  107. package/build/v1/notifications/schemas/notification-channel.enum.js +10 -0
  108. package/build/v1/notifications/schemas/notification-channel.enum.js.map +1 -0
  109. package/build/v1/notifications/schemas/notification-group.enum.d.ts +6 -0
  110. package/build/v1/notifications/schemas/notification-group.enum.js +11 -0
  111. package/build/v1/notifications/schemas/notification-group.enum.js.map +1 -0
  112. package/build/v1/notifications/schemas/notification-job-action.enum.d.ts +7 -0
  113. package/build/v1/notifications/schemas/notification-job-action.enum.js +12 -0
  114. package/build/v1/notifications/schemas/notification-job-action.enum.js.map +1 -0
  115. package/build/v1/notifications/schemas/notification-job-status.enum.d.ts +6 -0
  116. package/build/v1/notifications/schemas/notification-job-status.enum.js +11 -0
  117. package/build/v1/notifications/schemas/notification-job-status.enum.js.map +1 -0
  118. package/build/v1/notifications/schemas/notification-provider.enum.d.ts +4 -0
  119. package/build/v1/notifications/schemas/notification-provider.enum.js +9 -0
  120. package/build/v1/notifications/schemas/notification-provider.enum.js.map +1 -0
  121. package/build/v1/notifications/schemas/notification-setting-status.enum.d.ts +7 -0
  122. package/build/v1/notifications/schemas/notification-setting-status.enum.js +12 -0
  123. package/build/v1/notifications/schemas/notification-setting-status.enum.js.map +1 -0
  124. package/build/v1/notifications/schemas/notification-setting.schema.d.ts +10 -0
  125. package/build/v1/notifications/schemas/notification-setting.schema.js +13 -0
  126. package/build/v1/notifications/schemas/notification-setting.schema.js.map +1 -0
  127. package/build/v1/notifications/schemas/notification-settings-response.schema.d.ts +19 -0
  128. package/build/v1/notifications/schemas/notification-settings-response.schema.js +19 -0
  129. package/build/v1/notifications/schemas/notification-settings-response.schema.js.map +1 -0
  130. package/build/v1/notifications/schemas/telegram-delivery-status.enum.d.ts +5 -0
  131. package/build/v1/notifications/schemas/telegram-delivery-status.enum.js +10 -0
  132. package/build/v1/notifications/schemas/telegram-delivery-status.enum.js.map +1 -0
  133. package/build/v1/notifications/schemas/update-notification-settings-request.schema.d.ts +11 -0
  134. package/build/v1/notifications/schemas/update-notification-settings-request.schema.js +22 -0
  135. package/build/v1/notifications/schemas/update-notification-settings-request.schema.js.map +1 -0
  136. package/build/v1/s2s/schemas/s2s-upload-ai-image-request.schema.js +9 -9
  137. package/build/v1/s2s/schemas/s2s-upload-ai-image-request.schema.js.map +1 -1
  138. package/build/v1/users/commands/index.d.ts +0 -1
  139. package/build/v1/users/commands/index.js +0 -1
  140. package/build/v1/users/commands/index.js.map +1 -1
  141. package/build/v1/users/commands/password-reset-confirm.command.d.ts +1 -0
  142. package/build/v1/users/commands/update-profile.command.d.ts +0 -1
  143. package/build/v1/users/queries/confirm-email-verification.query.d.ts +1 -0
  144. package/build/v1/users/queries/confirm-email-verification.query.js +6 -0
  145. package/build/v1/users/queries/confirm-email-verification.query.js.map +1 -1
  146. package/build/v1/users/queries/get-current-user.query.d.ts +0 -1
  147. package/build/v1/users/schemas/change-password-request.schema.js +1 -1
  148. package/build/v1/users/schemas/change-password-request.schema.js.map +1 -1
  149. package/build/v1/users/schemas/index.d.ts +0 -1
  150. package/build/v1/users/schemas/index.js +0 -1
  151. package/build/v1/users/schemas/index.js.map +1 -1
  152. package/build/v1/users/schemas/password-change-complete-request.schema.js +1 -1
  153. package/build/v1/users/schemas/password-change-complete-request.schema.js.map +1 -1
  154. package/build/v1/users/schemas/password-reset-confirm-request.schema.d.ts +1 -0
  155. package/build/v1/users/schemas/password-reset-confirm-request.schema.js +6 -0
  156. package/build/v1/users/schemas/password-reset-confirm-request.schema.js.map +1 -1
  157. package/build/v1/users/schemas/response-unions.schema.d.ts +0 -12
  158. package/build/v1/users/schemas/response-unions.schema.js +1 -2
  159. package/build/v1/users/schemas/response-unions.schema.js.map +1 -1
  160. package/build/v1/users/schemas/user-response.schema.d.ts +0 -1
  161. package/build/v1/users/schemas/user-response.schema.js +0 -1
  162. package/build/v1/users/schemas/user-response.schema.js.map +1 -1
  163. package/build/v1/vk-auth/vk-auth.errors.d.ts +4 -1
  164. package/build/v1/vk-auth/vk-auth.errors.js +6 -0
  165. package/build/v1/vk-auth/vk-auth.errors.js.map +1 -1
  166. package/build/v1/web-notifications/commands/index.d.ts +1 -0
  167. package/build/v1/web-notifications/commands/index.js +18 -0
  168. package/build/v1/web-notifications/commands/index.js.map +1 -0
  169. package/build/v1/web-notifications/commands/mark-web-notifications-read-up-to.command.d.ts +15 -0
  170. package/build/v1/web-notifications/commands/mark-web-notifications-read-up-to.command.js +14 -0
  171. package/build/v1/web-notifications/commands/mark-web-notifications-read-up-to.command.js.map +1 -0
  172. package/build/v1/web-notifications/index.d.ts +3 -0
  173. package/build/v1/web-notifications/index.js +20 -0
  174. package/build/v1/web-notifications/index.js.map +1 -0
  175. package/build/v1/web-notifications/queries/get-web-notifications.query.d.ts +30 -0
  176. package/build/v1/web-notifications/queries/get-web-notifications.query.js +14 -0
  177. package/build/v1/web-notifications/queries/get-web-notifications.query.js.map +1 -0
  178. package/build/v1/web-notifications/queries/get-web-unread-count.query.d.ts +12 -0
  179. package/build/v1/web-notifications/queries/get-web-unread-count.query.js +15 -0
  180. package/build/v1/web-notifications/queries/get-web-unread-count.query.js.map +1 -0
  181. package/build/v1/web-notifications/queries/index.d.ts +2 -0
  182. package/build/v1/web-notifications/queries/index.js +19 -0
  183. package/build/v1/web-notifications/queries/index.js.map +1 -0
  184. package/build/v1/web-notifications/schemas/get-web-notifications-query.schema.d.ts +8 -0
  185. package/build/v1/web-notifications/schemas/get-web-notifications-query.schema.js +22 -0
  186. package/build/v1/web-notifications/schemas/get-web-notifications-query.schema.js.map +1 -0
  187. package/build/v1/web-notifications/schemas/index.d.ts +7 -0
  188. package/build/v1/web-notifications/schemas/index.js +24 -0
  189. package/build/v1/web-notifications/schemas/index.js.map +1 -0
  190. package/build/v1/web-notifications/schemas/mark-web-notifications-read-up-to-request.schema.d.ts +5 -0
  191. package/build/v1/web-notifications/schemas/mark-web-notifications-read-up-to-request.schema.js +11 -0
  192. package/build/v1/web-notifications/schemas/mark-web-notifications-read-up-to-request.schema.js.map +1 -0
  193. package/build/v1/web-notifications/schemas/mark-web-notifications-read-up-to-response.schema.d.ts +6 -0
  194. package/build/v1/web-notifications/schemas/mark-web-notifications-read-up-to-response.schema.js +9 -0
  195. package/build/v1/web-notifications/schemas/mark-web-notifications-read-up-to-response.schema.js.map +1 -0
  196. package/build/v1/web-notifications/schemas/web-notification-status-filter.enum.d.ts +5 -0
  197. package/build/v1/web-notifications/schemas/web-notification-status-filter.enum.js +10 -0
  198. package/build/v1/web-notifications/schemas/web-notification-status-filter.enum.js.map +1 -0
  199. package/build/v1/web-notifications/schemas/web-notification.schema.d.ts +15 -0
  200. package/build/v1/web-notifications/schemas/web-notification.schema.js +19 -0
  201. package/build/v1/web-notifications/schemas/web-notification.schema.js.map +1 -0
  202. package/build/v1/web-notifications/schemas/web-notifications-response.schema.d.ts +19 -0
  203. package/build/v1/web-notifications/schemas/web-notifications-response.schema.js +12 -0
  204. package/build/v1/web-notifications/schemas/web-notifications-response.schema.js.map +1 -0
  205. package/build/v1/web-notifications/schemas/web-unread-count-response.schema.d.ts +5 -0
  206. package/build/v1/web-notifications/schemas/web-unread-count-response.schema.js +8 -0
  207. package/build/v1/web-notifications/schemas/web-unread-count-response.schema.js.map +1 -0
  208. package/build/v1/yandex-auth/yandex-auth.errors.d.ts +3 -1
  209. package/build/v1/yandex-auth/yandex-auth.errors.js +10 -0
  210. package/build/v1/yandex-auth/yandex-auth.errors.js.map +1 -1
  211. package/package.json +1 -1
  212. package/build/v1/users/commands/toggle-marketing-consent.command.d.ts +0 -21
  213. package/build/v1/users/commands/toggle-marketing-consent.command.js +0 -15
  214. package/build/v1/users/commands/toggle-marketing-consent.command.js.map +0 -1
  215. package/build/v1/users/schemas/toggle-marketing-consent-request.schema.d.ts +0 -4
  216. package/build/v1/users/schemas/toggle-marketing-consent-request.schema.js +0 -10
  217. package/build/v1/users/schemas/toggle-marketing-consent-request.schema.js.map +0 -1
@@ -9,7 +9,6 @@ export declare namespace UserGetCurrentUserQuery {
9
9
  role: z.ZodString;
10
10
  registerType: z.ZodEnum<typeof import("..").RegisterType>;
11
11
  status: z.ZodEnum<typeof import("..").UserStatus>;
12
- marketingConsent: z.ZodBoolean;
13
12
  createdAt: z.ZodString;
14
13
  }, z.core.$strip>;
15
14
  const URL: "/api/v1/users/me";
@@ -12,6 +12,6 @@ exports.ChangePasswordRequestSchema = zod_1.z.object({
12
12
  .min(8, { message: 'ChangePasswordRequest.newPassword.min' })
13
13
  .max(128, { message: 'ChangePasswordRequest.newPassword.max' })
14
14
  .regex(regex_1.PASSWORD_STRENGTH_REGEX, { message: 'ChangePasswordRequest.newPassword.weak' }),
15
- logoutFromAllDevices: zod_1.z.boolean().default(false),
15
+ logoutFromAllDevices: zod_1.z.boolean({ error: 'ChangePasswordRequest.logoutFromAllDevices.required' }).default(false),
16
16
  });
17
17
  //# sourceMappingURL=change-password-request.schema.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"change-password-request.schema.js","sourceRoot":"","sources":["../../../../v1/users/schemas/change-password-request.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,iDAAgE;AAMnD,QAAA,2BAA2B,GAAG,OAAC,CAAC,MAAM,CAAC;IAChD,WAAW,EAAE,OAAC;SACT,MAAM,CAAC,EAAE,KAAK,EAAE,4CAA4C,EAAE,CAAC;SAC/D,GAAG,CAAC,CAAC,EAAE,EAAE,OAAO,EAAE,uCAAuC,EAAE,CAAC;IACjE,WAAW,EAAE,OAAC;SACT,MAAM,CAAC,EAAE,KAAK,EAAE,4CAA4C,EAAE,CAAC;SAC/D,GAAG,CAAC,CAAC,EAAE,EAAE,OAAO,EAAE,uCAAuC,EAAE,CAAC;SAC5D,GAAG,CAAC,GAAG,EAAE,EAAE,OAAO,EAAE,uCAAuC,EAAE,CAAC;SAC9D,KAAK,CAAC,+BAAuB,EAAE,EAAE,OAAO,EAAE,wCAAwC,EAAE,CAAC;IAC1F,oBAAoB,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC;CACnD,CAAC,CAAC"}
1
+ {"version":3,"file":"change-password-request.schema.js","sourceRoot":"","sources":["../../../../v1/users/schemas/change-password-request.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,iDAAgE;AAMnD,QAAA,2BAA2B,GAAG,OAAC,CAAC,MAAM,CAAC;IAChD,WAAW,EAAE,OAAC;SACT,MAAM,CAAC,EAAE,KAAK,EAAE,4CAA4C,EAAE,CAAC;SAC/D,GAAG,CAAC,CAAC,EAAE,EAAE,OAAO,EAAE,uCAAuC,EAAE,CAAC;IACjE,WAAW,EAAE,OAAC;SACT,MAAM,CAAC,EAAE,KAAK,EAAE,4CAA4C,EAAE,CAAC;SAC/D,GAAG,CAAC,CAAC,EAAE,EAAE,OAAO,EAAE,uCAAuC,EAAE,CAAC;SAC5D,GAAG,CAAC,GAAG,EAAE,EAAE,OAAO,EAAE,uCAAuC,EAAE,CAAC;SAC9D,KAAK,CAAC,+BAAuB,EAAE,EAAE,OAAO,EAAE,wCAAwC,EAAE,CAAC;IAC1F,oBAAoB,EAAE,OAAC,CAAC,OAAO,CAAC,EAAE,KAAK,EAAE,qDAAqD,EAAE,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC;CACnH,CAAC,CAAC"}
@@ -3,7 +3,6 @@ export * from './user-status.enum';
3
3
  export * from './user-response.schema';
4
4
  export * from './update-profile-request.schema';
5
5
  export * from './change-password-request.schema';
6
- export * from './toggle-marketing-consent-request.schema';
7
6
  export * from './delete-account-request.schema';
8
7
  export * from './response-unions.schema';
9
8
  export * from './email-change-start-request.schema';
@@ -19,7 +19,6 @@ __exportStar(require("./user-status.enum"), exports);
19
19
  __exportStar(require("./user-response.schema"), exports);
20
20
  __exportStar(require("./update-profile-request.schema"), exports);
21
21
  __exportStar(require("./change-password-request.schema"), exports);
22
- __exportStar(require("./toggle-marketing-consent-request.schema"), exports);
23
22
  __exportStar(require("./delete-account-request.schema"), exports);
24
23
  __exportStar(require("./response-unions.schema"), exports);
25
24
  __exportStar(require("./email-change-start-request.schema"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../v1/users/schemas/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uDAAqC;AACrC,qDAAmC;AACnC,yDAAuC;AACvC,kEAAgD;AAChD,mEAAiD;AACjD,4EAA0D;AAC1D,kEAAgD;AAChD,2DAAyC;AACzC,sEAAoD;AACpD,wEAAsD;AACtD,yEAAuD;AACvD,4EAA0D;AAC1D,kEAAgD;AAChD,mEAAiD;AACjD,+DAA6C;AAC7C,gEAA8C;AAC9C,iEAA+C;AAC/C,uEAAqD;AACrD,kEAAgD;AAChD,0EAAwD;AACxD,mEAAiD"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../v1/users/schemas/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uDAAqC;AACrC,qDAAmC;AACnC,yDAAuC;AACvC,kEAAgD;AAChD,mEAAiD;AACjD,kEAAgD;AAChD,2DAAyC;AACzC,sEAAoD;AACpD,wEAAsD;AACtD,yEAAuD;AACvD,4EAA0D;AAC1D,kEAAgD;AAChD,mEAAiD;AACjD,+DAA6C;AAC7C,gEAA8C;AAC9C,iEAA+C;AAC/C,uEAAqD;AACrD,kEAAgD;AAChD,0EAAwD;AACxD,mEAAiD"}
@@ -10,6 +10,6 @@ exports.PasswordChangeCompleteRequestSchema = zod_1.z.object({
10
10
  .min(8, { message: 'PasswordChangeCompleteRequest.newPassword.min' })
11
11
  .max(128, { message: 'PasswordChangeCompleteRequest.newPassword.max' })
12
12
  .regex(regex_1.PASSWORD_STRENGTH_REGEX, { message: 'PasswordChangeCompleteRequest.newPassword.weak' }),
13
- logoutOtherSessions: zod_1.z.boolean().default(true),
13
+ logoutOtherSessions: zod_1.z.boolean({ error: 'PasswordChangeCompleteRequest.logoutOtherSessions.required' }).default(true),
14
14
  });
15
15
  //# sourceMappingURL=password-change-complete-request.schema.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"password-change-complete-request.schema.js","sourceRoot":"","sources":["../../../../v1/users/schemas/password-change-complete-request.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,iDAAgE;AAMnD,QAAA,mCAAmC,GAAG,OAAC,CAAC,MAAM,CAAC;IACxD,SAAS,EAAE,OAAC,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,kDAAkD,EAAE,CAAC;IAClF,WAAW,EAAE,OAAC;SACT,MAAM,CAAC,EAAE,KAAK,EAAE,oDAAoD,EAAE,CAAC;SACvE,GAAG,CAAC,CAAC,EAAE,EAAE,OAAO,EAAE,+CAA+C,EAAE,CAAC;SACpE,GAAG,CAAC,GAAG,EAAE,EAAE,OAAO,EAAE,+CAA+C,EAAE,CAAC;SACtE,KAAK,CAAC,+BAAuB,EAAE,EAAE,OAAO,EAAE,gDAAgD,EAAE,CAAC;IAClG,mBAAmB,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC;CACjD,CAAC,CAAC"}
1
+ {"version":3,"file":"password-change-complete-request.schema.js","sourceRoot":"","sources":["../../../../v1/users/schemas/password-change-complete-request.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,iDAAgE;AAMnD,QAAA,mCAAmC,GAAG,OAAC,CAAC,MAAM,CAAC;IACxD,SAAS,EAAE,OAAC,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,kDAAkD,EAAE,CAAC;IAClF,WAAW,EAAE,OAAC;SACT,MAAM,CAAC,EAAE,KAAK,EAAE,oDAAoD,EAAE,CAAC;SACvE,GAAG,CAAC,CAAC,EAAE,EAAE,OAAO,EAAE,+CAA+C,EAAE,CAAC;SACpE,GAAG,CAAC,GAAG,EAAE,EAAE,OAAO,EAAE,+CAA+C,EAAE,CAAC;SACtE,KAAK,CAAC,+BAAuB,EAAE,EAAE,OAAO,EAAE,gDAAgD,EAAE,CAAC;IAClG,mBAAmB,EAAE,OAAC,CAAC,OAAO,CAAC,EAAE,KAAK,EAAE,4DAA4D,EAAE,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC;CACxH,CAAC,CAAC"}
@@ -4,4 +4,5 @@ export declare const PasswordResetConfirmRequestSchema: z.ZodObject<{
4
4
  token: z.ZodString;
5
5
  newPassword: z.ZodString;
6
6
  logoutAllSessions: z.ZodBoolean;
7
+ atr: z.ZodOptional<z.ZodString>;
7
8
  }, z.core.$strip>;
@@ -22,5 +22,11 @@ exports.PasswordResetConfirmRequestSchema = zod_1.z.object({
22
22
  logoutAllSessions: zod_1.z.boolean({
23
23
  error: 'PasswordResetConfirmRequest.logoutAllSessions.required',
24
24
  }),
25
+ atr: zod_1.z
26
+ .string({ error: 'PasswordResetConfirmRequest.atr.invalid' })
27
+ .regex(regex_1.ATR_TOKEN_REGEX, {
28
+ message: 'PasswordResetConfirmRequest.atr.invalidFormat',
29
+ })
30
+ .optional(),
25
31
  });
26
32
  //# sourceMappingURL=password-reset-confirm-request.schema.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"password-reset-confirm-request.schema.js","sourceRoot":"","sources":["../../../../v1/users/schemas/password-reset-confirm-request.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,iDAA4F;AAM/E,QAAA,iCAAiC,GAAG,OAAC,CAAC,MAAM,CAAC;IACtD,SAAS,EAAE,OAAC;SACP,MAAM,CAAC,EAAE,KAAK,EAAE,gDAAgD,EAAE,CAAC;SACnE,IAAI,CAAC,EAAE,OAAO,EAAE,+CAA+C,EAAE,CAAC;IACvE,KAAK,EAAE,OAAC;SACH,MAAM,CAAC,EAAE,KAAK,EAAE,4CAA4C,EAAE,CAAC;SAC/D,KAAK,CAAC,kCAA0B,EAAE;QAC/B,OAAO,EAAE,2CAA2C;KACvD,CAAC;IACN,WAAW,EAAE,OAAC;SACT,MAAM,CAAC,EAAE,KAAK,EAAE,kDAAkD,EAAE,CAAC;SACrE,GAAG,CAAC,CAAC,EAAE,EAAE,OAAO,EAAE,6CAA6C,EAAE,CAAC;SAClE,GAAG,CAAC,GAAG,EAAE,EAAE,OAAO,EAAE,6CAA6C,EAAE,CAAC;SACpE,KAAK,CAAC,+BAAuB,EAAE;QAC5B,OAAO,EAAE,8CAA8C;KAC1D,CAAC;IACN,iBAAiB,EAAE,OAAC,CAAC,OAAO,CAAC;QACzB,KAAK,EAAE,wDAAwD;KAClE,CAAC;CACL,CAAC,CAAC"}
1
+ {"version":3,"file":"password-reset-confirm-request.schema.js","sourceRoot":"","sources":["../../../../v1/users/schemas/password-reset-confirm-request.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,iDAI+B;AAMlB,QAAA,iCAAiC,GAAG,OAAC,CAAC,MAAM,CAAC;IACtD,SAAS,EAAE,OAAC;SACP,MAAM,CAAC,EAAE,KAAK,EAAE,gDAAgD,EAAE,CAAC;SACnE,IAAI,CAAC,EAAE,OAAO,EAAE,+CAA+C,EAAE,CAAC;IACvE,KAAK,EAAE,OAAC;SACH,MAAM,CAAC,EAAE,KAAK,EAAE,4CAA4C,EAAE,CAAC;SAC/D,KAAK,CAAC,kCAA0B,EAAE;QAC/B,OAAO,EAAE,2CAA2C;KACvD,CAAC;IACN,WAAW,EAAE,OAAC;SACT,MAAM,CAAC,EAAE,KAAK,EAAE,kDAAkD,EAAE,CAAC;SACrE,GAAG,CAAC,CAAC,EAAE,EAAE,OAAO,EAAE,6CAA6C,EAAE,CAAC;SAClE,GAAG,CAAC,GAAG,EAAE,EAAE,OAAO,EAAE,6CAA6C,EAAE,CAAC;SACpE,KAAK,CAAC,+BAAuB,EAAE;QAC5B,OAAO,EAAE,8CAA8C;KAC1D,CAAC;IACN,iBAAiB,EAAE,OAAC,CAAC,OAAO,CAAC;QACzB,KAAK,EAAE,wDAAwD;KAClE,CAAC;IACF,GAAG,EAAE,OAAC;SACD,MAAM,CAAC,EAAE,KAAK,EAAE,yCAAyC,EAAE,CAAC;SAC5D,KAAK,CAAC,uBAAe,EAAE;QACpB,OAAO,EAAE,+CAA+C;KAC3D,CAAC;SACD,QAAQ,EAAE;CAClB,CAAC,CAAC"}
@@ -6,22 +6,11 @@ export declare const UpdateProfileResponseSchema: z.ZodObject<{
6
6
  role: z.ZodString;
7
7
  registerType: z.ZodEnum<typeof import("./register-type.enum").RegisterType>;
8
8
  status: z.ZodEnum<typeof import("./user-status.enum").UserStatus>;
9
- marketingConsent: z.ZodBoolean;
10
9
  createdAt: z.ZodString;
11
10
  }, z.core.$strip>;
12
11
  export declare const DeleteAccountResponseSchema: z.ZodObject<{
13
12
  userId: z.ZodString;
14
13
  }, z.core.$strip>;
15
- export declare const ToggleMarketingConsentResponseSchema: z.ZodObject<{
16
- uuid: z.ZodString;
17
- email: z.ZodNullable<z.ZodString>;
18
- name: z.ZodString;
19
- role: z.ZodString;
20
- registerType: z.ZodEnum<typeof import("./register-type.enum").RegisterType>;
21
- status: z.ZodEnum<typeof import("./user-status.enum").UserStatus>;
22
- marketingConsent: z.ZodBoolean;
23
- createdAt: z.ZodString;
24
- }, z.core.$strip>;
25
14
  export declare const ChangePasswordResponseSchema: z.ZodObject<{
26
15
  userId: z.ZodString;
27
16
  }, z.core.$strip>;
@@ -32,6 +21,5 @@ export declare const GetCurrentUserResponseSchema: z.ZodObject<{
32
21
  role: z.ZodString;
33
22
  registerType: z.ZodEnum<typeof import("./register-type.enum").RegisterType>;
34
23
  status: z.ZodEnum<typeof import("./user-status.enum").UserStatus>;
35
- marketingConsent: z.ZodBoolean;
36
24
  createdAt: z.ZodString;
37
25
  }, z.core.$strip>;
@@ -1,12 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.GetCurrentUserResponseSchema = exports.ChangePasswordResponseSchema = exports.ToggleMarketingConsentResponseSchema = exports.DeleteAccountResponseSchema = exports.UpdateProfileResponseSchema = void 0;
3
+ exports.GetCurrentUserResponseSchema = exports.ChangePasswordResponseSchema = exports.DeleteAccountResponseSchema = exports.UpdateProfileResponseSchema = void 0;
4
4
  const zod_1 = require("zod");
5
5
  const user_response_schema_1 = require("./user-response.schema");
6
6
  const regex_1 = require("../../../shared/regex");
7
7
  exports.UpdateProfileResponseSchema = user_response_schema_1.UserResponseSchema;
8
8
  exports.DeleteAccountResponseSchema = zod_1.z.object({ userId: zod_1.z.string().regex(regex_1.UUID_REGEX) });
9
- exports.ToggleMarketingConsentResponseSchema = user_response_schema_1.UserResponseSchema;
10
9
  exports.ChangePasswordResponseSchema = zod_1.z.object({ userId: zod_1.z.string().regex(regex_1.UUID_REGEX) });
11
10
  exports.GetCurrentUserResponseSchema = user_response_schema_1.UserResponseSchema;
12
11
  //# sourceMappingURL=response-unions.schema.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"response-unions.schema.js","sourceRoot":"","sources":["../../../../v1/users/schemas/response-unions.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,iEAA4D;AAC5D,iDAAmD;AAKtC,QAAA,2BAA2B,GAAG,yCAAkB,CAAC;AACjD,QAAA,2BAA2B,GAAG,OAAC,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,kBAAU,CAAC,EAAE,CAAC,CAAC;AACjF,QAAA,oCAAoC,GAAG,yCAAkB,CAAC;AAC1D,QAAA,4BAA4B,GAAG,OAAC,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,kBAAU,CAAC,EAAE,CAAC,CAAC;AAClF,QAAA,4BAA4B,GAAG,yCAAkB,CAAC"}
1
+ {"version":3,"file":"response-unions.schema.js","sourceRoot":"","sources":["../../../../v1/users/schemas/response-unions.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,iEAA4D;AAC5D,iDAAmD;AAKtC,QAAA,2BAA2B,GAAG,yCAAkB,CAAC;AACjD,QAAA,2BAA2B,GAAG,OAAC,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,kBAAU,CAAC,EAAE,CAAC,CAAC;AACjF,QAAA,4BAA4B,GAAG,OAAC,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,kBAAU,CAAC,EAAE,CAAC,CAAC;AAClF,QAAA,4BAA4B,GAAG,yCAAkB,CAAC"}
@@ -8,6 +8,5 @@ export declare const UserResponseSchema: z.ZodObject<{
8
8
  role: z.ZodString;
9
9
  registerType: z.ZodEnum<typeof RegisterType>;
10
10
  status: z.ZodEnum<typeof UserStatus>;
11
- marketingConsent: z.ZodBoolean;
12
11
  createdAt: z.ZodString;
13
12
  }, z.core.$strip>;
@@ -12,7 +12,6 @@ exports.UserResponseSchema = zod_1.z.object({
12
12
  role: zod_1.z.string(),
13
13
  registerType: zod_1.z.nativeEnum(register_type_enum_1.RegisterType),
14
14
  status: zod_1.z.nativeEnum(user_status_enum_1.UserStatus),
15
- marketingConsent: zod_1.z.boolean(),
16
15
  createdAt: zod_1.z.string().regex(regex_1.DATETIME_REGEX),
17
16
  });
18
17
  //# sourceMappingURL=user-response.schema.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"user-response.schema.js","sourceRoot":"","sources":["../../../../v1/users/schemas/user-response.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,iDAAgF;AAChF,6DAAoD;AACpD,yDAAgD;AAKnC,QAAA,kBAAkB,GAAG,OAAC,CAAC,MAAM,CAAC;IACvC,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,kBAAU,CAAC;IAClC,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,mBAAW,CAAC,CAAC,QAAQ,EAAE;IAC/C,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE;IAChB,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE;IAChB,YAAY,EAAE,OAAC,CAAC,UAAU,CAAC,iCAAY,CAAC;IACxC,MAAM,EAAE,OAAC,CAAC,UAAU,CAAC,6BAAU,CAAC;IAChC,gBAAgB,EAAE,OAAC,CAAC,OAAO,EAAE;IAC7B,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,sBAAc,CAAC;CAC9C,CAAC,CAAC"}
1
+ {"version":3,"file":"user-response.schema.js","sourceRoot":"","sources":["../../../../v1/users/schemas/user-response.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,iDAAgF;AAChF,6DAAoD;AACpD,yDAAgD;AAKnC,QAAA,kBAAkB,GAAG,OAAC,CAAC,MAAM,CAAC;IACvC,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,kBAAU,CAAC;IAClC,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,mBAAW,CAAC,CAAC,QAAQ,EAAE;IAC/C,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE;IAChB,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE;IAChB,YAAY,EAAE,OAAC,CAAC,UAAU,CAAC,iCAAY,CAAC;IACxC,MAAM,EAAE,OAAC,CAAC,UAAU,CAAC,6BAAU,CAAC;IAChC,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,sBAAc,CAAC;CAC9C,CAAC,CAAC"}
@@ -7,8 +7,11 @@ export declare enum VkAuthErrorCode {
7
7
  AUTH_REQUEST_NOT_CONFIRMED = "VK_AUTH_NOT_CONFIRMED",
8
8
  TOO_MANY_PENDING_REQUESTS = "VK_TOO_MANY_PENDING_REQUESTS",
9
9
  STATE_ERROR = "VK_STATE_ERROR",
10
+ CODE_ERROR = "VK_CODE_ERROR",
11
+ DEVICE_ID_MISSING = "VK_DEVICE_ID_MISSING",
10
12
  GET_ACCESS_TOKEN_ERROR = "VK_GET_ACCESS_TOKEN_ERROR",
11
13
  GET_USER_INFO_ERROR = "VK_GET_USER_INFO_ERROR",
12
- REGISTER_CONFLICT = "VK_REGISTER_CONFLICT"
14
+ REGISTER_CONFLICT = "VK_REGISTER_CONFLICT",
15
+ IP_MISMATCH = "VK_IP_MISMATCH"
13
16
  }
14
17
  export declare const VK_AUTH_ERRORS: Record<VkAuthErrorCode, ErrorMetadata>;
@@ -10,9 +10,12 @@ var VkAuthErrorCode;
10
10
  VkAuthErrorCode["AUTH_REQUEST_NOT_CONFIRMED"] = "VK_AUTH_NOT_CONFIRMED";
11
11
  VkAuthErrorCode["TOO_MANY_PENDING_REQUESTS"] = "VK_TOO_MANY_PENDING_REQUESTS";
12
12
  VkAuthErrorCode["STATE_ERROR"] = "VK_STATE_ERROR";
13
+ VkAuthErrorCode["CODE_ERROR"] = "VK_CODE_ERROR";
14
+ VkAuthErrorCode["DEVICE_ID_MISSING"] = "VK_DEVICE_ID_MISSING";
13
15
  VkAuthErrorCode["GET_ACCESS_TOKEN_ERROR"] = "VK_GET_ACCESS_TOKEN_ERROR";
14
16
  VkAuthErrorCode["GET_USER_INFO_ERROR"] = "VK_GET_USER_INFO_ERROR";
15
17
  VkAuthErrorCode["REGISTER_CONFLICT"] = "VK_REGISTER_CONFLICT";
18
+ VkAuthErrorCode["IP_MISMATCH"] = "VK_IP_MISMATCH";
16
19
  })(VkAuthErrorCode || (exports.VkAuthErrorCode = VkAuthErrorCode = {}));
17
20
  exports.VK_AUTH_ERRORS = {
18
21
  [VkAuthErrorCode.AUTH_REQUEST_NOT_FOUND]: { code: VkAuthErrorCode.AUTH_REQUEST_NOT_FOUND, statusCode: 404 },
@@ -22,8 +25,11 @@ exports.VK_AUTH_ERRORS = {
22
25
  [VkAuthErrorCode.AUTH_REQUEST_NOT_CONFIRMED]: { code: VkAuthErrorCode.AUTH_REQUEST_NOT_CONFIRMED, statusCode: 400 },
23
26
  [VkAuthErrorCode.TOO_MANY_PENDING_REQUESTS]: { code: VkAuthErrorCode.TOO_MANY_PENDING_REQUESTS, statusCode: 429 },
24
27
  [VkAuthErrorCode.STATE_ERROR]: { code: VkAuthErrorCode.STATE_ERROR, statusCode: 400 },
28
+ [VkAuthErrorCode.CODE_ERROR]: { code: VkAuthErrorCode.CODE_ERROR, statusCode: 400 },
29
+ [VkAuthErrorCode.DEVICE_ID_MISSING]: { code: VkAuthErrorCode.DEVICE_ID_MISSING, statusCode: 400 },
25
30
  [VkAuthErrorCode.GET_ACCESS_TOKEN_ERROR]: { code: VkAuthErrorCode.GET_ACCESS_TOKEN_ERROR, statusCode: 500 },
26
31
  [VkAuthErrorCode.GET_USER_INFO_ERROR]: { code: VkAuthErrorCode.GET_USER_INFO_ERROR, statusCode: 500 },
27
32
  [VkAuthErrorCode.REGISTER_CONFLICT]: { code: VkAuthErrorCode.REGISTER_CONFLICT, statusCode: 409 },
33
+ [VkAuthErrorCode.IP_MISMATCH]: { code: VkAuthErrorCode.IP_MISMATCH, statusCode: 403 },
28
34
  };
29
35
  //# sourceMappingURL=vk-auth.errors.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"vk-auth.errors.js","sourceRoot":"","sources":["../../../v1/vk-auth/vk-auth.errors.ts"],"names":[],"mappings":";;;AAEA,IAAY,eAWX;AAXD,WAAY,eAAe;IACvB,uEAAoD,CAAA;IACpD,mEAAgD,CAAA;IAChD,+EAA4D,CAAA;IAC5D,+EAA4D,CAAA;IAC5D,uEAAoD,CAAA;IACpD,6EAA0D,CAAA;IAC1D,iDAA8B,CAAA;IAC9B,uEAAoD,CAAA;IACpD,iEAA8C,CAAA;IAC9C,6DAA0C,CAAA;AAC9C,CAAC,EAXW,eAAe,+BAAf,eAAe,QAW1B;AAEY,QAAA,cAAc,GAA2C;IAClE,CAAC,eAAe,CAAC,sBAAsB,CAAC,EAAE,EAAE,IAAI,EAAE,eAAe,CAAC,sBAAsB,EAAE,UAAU,EAAE,GAAG,EAAE;IAC3G,CAAC,eAAe,CAAC,oBAAoB,CAAC,EAAE,EAAE,IAAI,EAAE,eAAe,CAAC,oBAAoB,EAAE,UAAU,EAAE,GAAG,EAAE;IACvG,CAAC,eAAe,CAAC,8BAA8B,CAAC,EAAE,EAAE,IAAI,EAAE,eAAe,CAAC,8BAA8B,EAAE,UAAU,EAAE,GAAG,EAAE;IAC3H,CAAC,eAAe,CAAC,8BAA8B,CAAC,EAAE,EAAE,IAAI,EAAE,eAAe,CAAC,8BAA8B,EAAE,UAAU,EAAE,GAAG,EAAE;IAC3H,CAAC,eAAe,CAAC,0BAA0B,CAAC,EAAE,EAAE,IAAI,EAAE,eAAe,CAAC,0BAA0B,EAAE,UAAU,EAAE,GAAG,EAAE;IACnH,CAAC,eAAe,CAAC,yBAAyB,CAAC,EAAE,EAAE,IAAI,EAAE,eAAe,CAAC,yBAAyB,EAAE,UAAU,EAAE,GAAG,EAAE;IACjH,CAAC,eAAe,CAAC,WAAW,CAAC,EAAE,EAAE,IAAI,EAAE,eAAe,CAAC,WAAW,EAAE,UAAU,EAAE,GAAG,EAAE;IACrF,CAAC,eAAe,CAAC,sBAAsB,CAAC,EAAE,EAAE,IAAI,EAAE,eAAe,CAAC,sBAAsB,EAAE,UAAU,EAAE,GAAG,EAAE;IAC3G,CAAC,eAAe,CAAC,mBAAmB,CAAC,EAAE,EAAE,IAAI,EAAE,eAAe,CAAC,mBAAmB,EAAE,UAAU,EAAE,GAAG,EAAE;IACrG,CAAC,eAAe,CAAC,iBAAiB,CAAC,EAAE,EAAE,IAAI,EAAE,eAAe,CAAC,iBAAiB,EAAE,UAAU,EAAE,GAAG,EAAE;CAC3F,CAAC"}
1
+ {"version":3,"file":"vk-auth.errors.js","sourceRoot":"","sources":["../../../v1/vk-auth/vk-auth.errors.ts"],"names":[],"mappings":";;;AAEA,IAAY,eAcX;AAdD,WAAY,eAAe;IACvB,uEAAoD,CAAA;IACpD,mEAAgD,CAAA;IAChD,+EAA4D,CAAA;IAC5D,+EAA4D,CAAA;IAC5D,uEAAoD,CAAA;IACpD,6EAA0D,CAAA;IAC1D,iDAA8B,CAAA;IAC9B,+CAA4B,CAAA;IAC5B,6DAA0C,CAAA;IAC1C,uEAAoD,CAAA;IACpD,iEAA8C,CAAA;IAC9C,6DAA0C,CAAA;IAC1C,iDAA8B,CAAA;AAClC,CAAC,EAdW,eAAe,+BAAf,eAAe,QAc1B;AAEY,QAAA,cAAc,GAA2C;IAClE,CAAC,eAAe,CAAC,sBAAsB,CAAC,EAAE,EAAE,IAAI,EAAE,eAAe,CAAC,sBAAsB,EAAE,UAAU,EAAE,GAAG,EAAE;IAC3G,CAAC,eAAe,CAAC,oBAAoB,CAAC,EAAE,EAAE,IAAI,EAAE,eAAe,CAAC,oBAAoB,EAAE,UAAU,EAAE,GAAG,EAAE;IACvG,CAAC,eAAe,CAAC,8BAA8B,CAAC,EAAE,EAAE,IAAI,EAAE,eAAe,CAAC,8BAA8B,EAAE,UAAU,EAAE,GAAG,EAAE;IAC3H,CAAC,eAAe,CAAC,8BAA8B,CAAC,EAAE,EAAE,IAAI,EAAE,eAAe,CAAC,8BAA8B,EAAE,UAAU,EAAE,GAAG,EAAE;IAC3H,CAAC,eAAe,CAAC,0BAA0B,CAAC,EAAE,EAAE,IAAI,EAAE,eAAe,CAAC,0BAA0B,EAAE,UAAU,EAAE,GAAG,EAAE;IACnH,CAAC,eAAe,CAAC,yBAAyB,CAAC,EAAE,EAAE,IAAI,EAAE,eAAe,CAAC,yBAAyB,EAAE,UAAU,EAAE,GAAG,EAAE;IACjH,CAAC,eAAe,CAAC,WAAW,CAAC,EAAE,EAAE,IAAI,EAAE,eAAe,CAAC,WAAW,EAAE,UAAU,EAAE,GAAG,EAAE;IACrF,CAAC,eAAe,CAAC,UAAU,CAAC,EAAE,EAAE,IAAI,EAAE,eAAe,CAAC,UAAU,EAAE,UAAU,EAAE,GAAG,EAAE;IACnF,CAAC,eAAe,CAAC,iBAAiB,CAAC,EAAE,EAAE,IAAI,EAAE,eAAe,CAAC,iBAAiB,EAAE,UAAU,EAAE,GAAG,EAAE;IACjG,CAAC,eAAe,CAAC,sBAAsB,CAAC,EAAE,EAAE,IAAI,EAAE,eAAe,CAAC,sBAAsB,EAAE,UAAU,EAAE,GAAG,EAAE;IAC3G,CAAC,eAAe,CAAC,mBAAmB,CAAC,EAAE,EAAE,IAAI,EAAE,eAAe,CAAC,mBAAmB,EAAE,UAAU,EAAE,GAAG,EAAE;IACrG,CAAC,eAAe,CAAC,iBAAiB,CAAC,EAAE,EAAE,IAAI,EAAE,eAAe,CAAC,iBAAiB,EAAE,UAAU,EAAE,GAAG,EAAE;IACjG,CAAC,eAAe,CAAC,WAAW,CAAC,EAAE,EAAE,IAAI,EAAE,eAAe,CAAC,WAAW,EAAE,UAAU,EAAE,GAAG,EAAE;CAC/E,CAAC"}
@@ -0,0 +1 @@
1
+ export * from './mark-web-notifications-read-up-to.command';
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./mark-web-notifications-read-up-to.command"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../v1/web-notifications/commands/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8EAA4D"}
@@ -0,0 +1,15 @@
1
+ import { z } from 'zod';
2
+ import { HttpMethod } from '../../../shared/http-method';
3
+ export declare namespace MarkWebNotificationsReadUpToCommand {
4
+ const Request: z.ZodObject<{
5
+ lastUuid: z.ZodString;
6
+ }, z.core.$strip>;
7
+ const Response: z.ZodObject<{
8
+ markedCount: z.ZodNumber;
9
+ unreadCount: z.ZodNumber;
10
+ }, z.core.$strip>;
11
+ const URL: "/api/v1/web-notifications/read-up-to";
12
+ const METHOD = HttpMethod.POST;
13
+ type RequestType = z.infer<typeof Request>;
14
+ type ResponseType = z.infer<typeof Response>;
15
+ }
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MarkWebNotificationsReadUpToCommand = void 0;
4
+ const schemas_1 = require("../schemas");
5
+ const rest_api_1 = require("../../../rest-api");
6
+ const http_method_1 = require("../../../shared/http-method");
7
+ var MarkWebNotificationsReadUpToCommand;
8
+ (function (MarkWebNotificationsReadUpToCommand) {
9
+ MarkWebNotificationsReadUpToCommand.Request = schemas_1.MarkWebNotificationsReadUpToRequestSchema;
10
+ MarkWebNotificationsReadUpToCommand.Response = schemas_1.MarkWebNotificationsReadUpToResponseSchema;
11
+ MarkWebNotificationsReadUpToCommand.URL = rest_api_1.REST_API.V1.WEB_NOTIFICATIONS.READ_UP_TO;
12
+ MarkWebNotificationsReadUpToCommand.METHOD = http_method_1.HttpMethod.POST;
13
+ })(MarkWebNotificationsReadUpToCommand || (exports.MarkWebNotificationsReadUpToCommand = MarkWebNotificationsReadUpToCommand = {}));
14
+ //# sourceMappingURL=mark-web-notifications-read-up-to.command.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mark-web-notifications-read-up-to.command.js","sourceRoot":"","sources":["../../../../v1/web-notifications/commands/mark-web-notifications-read-up-to.command.ts"],"names":[],"mappings":";;;AACA,wCAGoB;AACpB,gDAA6C;AAC7C,6DAAyD;AAEzD,IAAiB,mCAAmC,CAQnD;AARD,WAAiB,mCAAmC;IACnC,2CAAO,GAAG,mDAAyC,CAAC;IACpD,4CAAQ,GAAG,oDAA0C,CAAC;IACtD,uCAAG,GAAG,mBAAQ,CAAC,EAAE,CAAC,iBAAiB,CAAC,UAAU,CAAC;IAC/C,0CAAM,GAAG,wBAAU,CAAC,IAAI,CAAC;AAI1C,CAAC,EARgB,mCAAmC,mDAAnC,mCAAmC,QAQnD"}
@@ -0,0 +1,3 @@
1
+ export * from './schemas';
2
+ export * from './commands';
3
+ export * from './queries';
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./schemas"), exports);
18
+ __exportStar(require("./commands"), exports);
19
+ __exportStar(require("./queries"), exports);
20
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../v1/web-notifications/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAA0B;AAC1B,6CAA2B;AAC3B,4CAA0B"}
@@ -0,0 +1,30 @@
1
+ import { z } from 'zod';
2
+ import { HttpMethod } from '../../../shared/http-method';
3
+ export declare namespace GetWebNotificationsQuery {
4
+ const Request: z.ZodObject<{
5
+ status: z.ZodOptional<z.ZodEnum<typeof import("../schemas").WebNotificationStatusFilter>>;
6
+ limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
7
+ cursor: z.ZodOptional<z.ZodString>;
8
+ }, z.core.$strip>;
9
+ const Response: z.ZodObject<{
10
+ items: z.ZodArray<z.ZodObject<{
11
+ uuid: z.ZodString;
12
+ messageId: z.ZodString;
13
+ groupKey: z.ZodEnum<typeof import("../..").NotificationGroup>;
14
+ title: z.ZodString;
15
+ bodyMd: z.ZodString;
16
+ ctaLabel: z.ZodNullable<z.ZodString>;
17
+ ctaUrl: z.ZodNullable<z.ZodString>;
18
+ imageUrl: z.ZodNullable<z.ZodString>;
19
+ readAt: z.ZodNullable<z.ZodString>;
20
+ createdAt: z.ZodString;
21
+ }, z.core.$strip>>;
22
+ nextCursor: z.ZodNullable<z.ZodString>;
23
+ hasMore: z.ZodBoolean;
24
+ unreadCount: z.ZodNumber;
25
+ }, z.core.$strip>;
26
+ const URL: "/api/v1/web-notifications/";
27
+ const METHOD = HttpMethod.GET;
28
+ type RequestType = z.infer<typeof Request>;
29
+ type ResponseType = z.infer<typeof Response>;
30
+ }
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetWebNotificationsQuery = void 0;
4
+ const schemas_1 = require("../schemas");
5
+ const rest_api_1 = require("../../../rest-api");
6
+ const http_method_1 = require("../../../shared/http-method");
7
+ var GetWebNotificationsQuery;
8
+ (function (GetWebNotificationsQuery) {
9
+ GetWebNotificationsQuery.Request = schemas_1.GetWebNotificationsQuerySchema;
10
+ GetWebNotificationsQuery.Response = schemas_1.WebNotificationsResponseSchema;
11
+ GetWebNotificationsQuery.URL = rest_api_1.REST_API.V1.WEB_NOTIFICATIONS.LIST;
12
+ GetWebNotificationsQuery.METHOD = http_method_1.HttpMethod.GET;
13
+ })(GetWebNotificationsQuery || (exports.GetWebNotificationsQuery = GetWebNotificationsQuery = {}));
14
+ //# sourceMappingURL=get-web-notifications.query.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-web-notifications.query.js","sourceRoot":"","sources":["../../../../v1/web-notifications/queries/get-web-notifications.query.ts"],"names":[],"mappings":";;;AACA,wCAA4F;AAC5F,gDAA6C;AAC7C,6DAAyD;AAEzD,IAAiB,wBAAwB,CAQxC;AARD,WAAiB,wBAAwB;IACxB,gCAAO,GAAG,wCAA8B,CAAC;IACzC,iCAAQ,GAAG,wCAA8B,CAAC;IAC1C,4BAAG,GAAG,mBAAQ,CAAC,EAAE,CAAC,iBAAiB,CAAC,IAAI,CAAC;IACzC,+BAAM,GAAG,wBAAU,CAAC,GAAG,CAAC;AAIzC,CAAC,EARgB,wBAAwB,wCAAxB,wBAAwB,QAQxC"}
@@ -0,0 +1,12 @@
1
+ import { z } from 'zod';
2
+ import { HttpMethod } from '../../../shared/http-method';
3
+ export declare namespace GetWebUnreadCountQuery {
4
+ const Request: z.ZodObject<{}, z.core.$strip>;
5
+ const Response: z.ZodObject<{
6
+ unreadCount: z.ZodNumber;
7
+ }, z.core.$strip>;
8
+ const URL: "/api/v1/web-notifications/unread-count";
9
+ const METHOD = HttpMethod.GET;
10
+ type RequestType = z.infer<typeof Request>;
11
+ type ResponseType = z.infer<typeof Response>;
12
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetWebUnreadCountQuery = void 0;
4
+ const zod_1 = require("zod");
5
+ const schemas_1 = require("../schemas");
6
+ const rest_api_1 = require("../../../rest-api");
7
+ const http_method_1 = require("../../../shared/http-method");
8
+ var GetWebUnreadCountQuery;
9
+ (function (GetWebUnreadCountQuery) {
10
+ GetWebUnreadCountQuery.Request = zod_1.z.object({});
11
+ GetWebUnreadCountQuery.Response = schemas_1.WebUnreadCountResponseSchema;
12
+ GetWebUnreadCountQuery.URL = rest_api_1.REST_API.V1.WEB_NOTIFICATIONS.UNREAD_COUNT;
13
+ GetWebUnreadCountQuery.METHOD = http_method_1.HttpMethod.GET;
14
+ })(GetWebUnreadCountQuery || (exports.GetWebUnreadCountQuery = GetWebUnreadCountQuery = {}));
15
+ //# sourceMappingURL=get-web-unread-count.query.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-web-unread-count.query.js","sourceRoot":"","sources":["../../../../v1/web-notifications/queries/get-web-unread-count.query.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,wCAA0D;AAC1D,gDAA6C;AAC7C,6DAAyD;AAEzD,IAAiB,sBAAsB,CAQtC;AARD,WAAiB,sBAAsB;IACtB,8BAAO,GAAG,OAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;IACvB,+BAAQ,GAAG,sCAA4B,CAAC;IACxC,0BAAG,GAAG,mBAAQ,CAAC,EAAE,CAAC,iBAAiB,CAAC,YAAY,CAAC;IACjD,6BAAM,GAAG,wBAAU,CAAC,GAAG,CAAC;AAIzC,CAAC,EARgB,sBAAsB,sCAAtB,sBAAsB,QAQtC"}
@@ -0,0 +1,2 @@
1
+ export * from './get-web-notifications.query';
2
+ export * from './get-web-unread-count.query';
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./get-web-notifications.query"), exports);
18
+ __exportStar(require("./get-web-unread-count.query"), exports);
19
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../v1/web-notifications/queries/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gEAA8C;AAC9C,+DAA6C"}
@@ -0,0 +1,8 @@
1
+ import { z } from 'zod';
2
+ import { WebNotificationStatusFilter } from './web-notification-status-filter.enum';
3
+ export declare const GetWebNotificationsQuerySchema: z.ZodObject<{
4
+ status: z.ZodOptional<z.ZodEnum<typeof WebNotificationStatusFilter>>;
5
+ limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
6
+ cursor: z.ZodOptional<z.ZodString>;
7
+ }, z.core.$strip>;
8
+ export type GetWebNotificationsQueryDto = z.infer<typeof GetWebNotificationsQuerySchema>;
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetWebNotificationsQuerySchema = void 0;
4
+ const zod_1 = require("zod");
5
+ const web_notification_status_filter_enum_1 = require("./web-notification-status-filter.enum");
6
+ exports.GetWebNotificationsQuerySchema = zod_1.z.object({
7
+ status: zod_1.z
8
+ .nativeEnum(web_notification_status_filter_enum_1.WebNotificationStatusFilter, {
9
+ error: 'GetWebNotificationsQuery.status.invalid',
10
+ })
11
+ .optional(),
12
+ limit: zod_1.z.coerce
13
+ .number({
14
+ error: 'GetWebNotificationsQuery.limit.invalid',
15
+ })
16
+ .int({ message: 'GetWebNotificationsQuery.limit.invalid' })
17
+ .positive({ message: 'GetWebNotificationsQuery.limit.positive' })
18
+ .max(100, { message: 'GetWebNotificationsQuery.limit.max' })
19
+ .optional(),
20
+ cursor: zod_1.z.string({ error: 'GetWebNotificationsQuery.cursor.invalid' }).optional(),
21
+ });
22
+ //# sourceMappingURL=get-web-notifications-query.schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-web-notifications-query.schema.js","sourceRoot":"","sources":["../../../../v1/web-notifications/schemas/get-web-notifications-query.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,+FAAoF;AAEvE,QAAA,8BAA8B,GAAG,OAAC,CAAC,MAAM,CAAC;IACnD,MAAM,EAAE,OAAC;SACJ,UAAU,CAAC,iEAA2B,EAAE;QACrC,KAAK,EAAE,yCAAyC;KACnD,CAAC;SACD,QAAQ,EAAE;IACf,KAAK,EAAE,OAAC,CAAC,MAAM;SACV,MAAM,CAAC;QACJ,KAAK,EAAE,wCAAwC;KAClD,CAAC;SACD,GAAG,CAAC,EAAE,OAAO,EAAE,wCAAwC,EAAE,CAAC;SAC1D,QAAQ,CAAC,EAAE,OAAO,EAAE,yCAAyC,EAAE,CAAC;SAChE,GAAG,CAAC,GAAG,EAAE,EAAE,OAAO,EAAE,oCAAoC,EAAE,CAAC;SAC3D,QAAQ,EAAE;IACf,MAAM,EAAE,OAAC,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,yCAAyC,EAAE,CAAC,CAAC,QAAQ,EAAE;CACpF,CAAC,CAAC"}
@@ -0,0 +1,7 @@
1
+ export * from './web-notification-status-filter.enum';
2
+ export * from './web-notification.schema';
3
+ export * from './web-notifications-response.schema';
4
+ export * from './get-web-notifications-query.schema';
5
+ export * from './mark-web-notifications-read-up-to-request.schema';
6
+ export * from './mark-web-notifications-read-up-to-response.schema';
7
+ export * from './web-unread-count-response.schema';
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./web-notification-status-filter.enum"), exports);
18
+ __exportStar(require("./web-notification.schema"), exports);
19
+ __exportStar(require("./web-notifications-response.schema"), exports);
20
+ __exportStar(require("./get-web-notifications-query.schema"), exports);
21
+ __exportStar(require("./mark-web-notifications-read-up-to-request.schema"), exports);
22
+ __exportStar(require("./mark-web-notifications-read-up-to-response.schema"), exports);
23
+ __exportStar(require("./web-unread-count-response.schema"), exports);
24
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../v1/web-notifications/schemas/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wEAAsD;AACtD,4DAA0C;AAC1C,sEAAoD;AACpD,uEAAqD;AACrD,qFAAmE;AACnE,sFAAoE;AACpE,qEAAmD"}
@@ -0,0 +1,5 @@
1
+ import { z } from 'zod';
2
+ export declare const MarkWebNotificationsReadUpToRequestSchema: z.ZodObject<{
3
+ lastUuid: z.ZodString;
4
+ }, z.core.$strip>;
5
+ export type MarkWebNotificationsReadUpToRequestDto = z.infer<typeof MarkWebNotificationsReadUpToRequestSchema>;
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MarkWebNotificationsReadUpToRequestSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ const regex_1 = require("../../../shared/regex");
6
+ exports.MarkWebNotificationsReadUpToRequestSchema = zod_1.z.object({
7
+ lastUuid: zod_1.z
8
+ .string({ error: 'MarkWebNotificationsReadUpToRequest.lastUuid.required' })
9
+ .regex(regex_1.UUID_REGEX, { message: 'MarkWebNotificationsReadUpToRequest.lastUuid.invalid' }),
10
+ });
11
+ //# sourceMappingURL=mark-web-notifications-read-up-to-request.schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mark-web-notifications-read-up-to-request.schema.js","sourceRoot":"","sources":["../../../../v1/web-notifications/schemas/mark-web-notifications-read-up-to-request.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,iDAAmD;AAEtC,QAAA,yCAAyC,GAAG,OAAC,CAAC,MAAM,CAAC;IAC9D,QAAQ,EAAE,OAAC;SACN,MAAM,CAAC,EAAE,KAAK,EAAE,uDAAuD,EAAE,CAAC;SAC1E,KAAK,CAAC,kBAAU,EAAE,EAAE,OAAO,EAAE,sDAAsD,EAAE,CAAC;CAC9F,CAAC,CAAC"}
@@ -0,0 +1,6 @@
1
+ import { z } from 'zod';
2
+ export declare const MarkWebNotificationsReadUpToResponseSchema: z.ZodObject<{
3
+ markedCount: z.ZodNumber;
4
+ unreadCount: z.ZodNumber;
5
+ }, z.core.$strip>;
6
+ export type MarkWebNotificationsReadUpToResponseDto = z.infer<typeof MarkWebNotificationsReadUpToResponseSchema>;
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MarkWebNotificationsReadUpToResponseSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.MarkWebNotificationsReadUpToResponseSchema = zod_1.z.object({
6
+ markedCount: zod_1.z.number().int().nonnegative(),
7
+ unreadCount: zod_1.z.number().int().nonnegative(),
8
+ });
9
+ //# sourceMappingURL=mark-web-notifications-read-up-to-response.schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mark-web-notifications-read-up-to-response.schema.js","sourceRoot":"","sources":["../../../../v1/web-notifications/schemas/mark-web-notifications-read-up-to-response.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAEX,QAAA,0CAA0C,GAAG,OAAC,CAAC,MAAM,CAAC;IAC/D,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE;IAC3C,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE;CAC9C,CAAC,CAAC"}
@@ -0,0 +1,5 @@
1
+ export declare enum WebNotificationStatusFilter {
2
+ UNREAD = "unread",
3
+ READ = "read",
4
+ ALL = "all"
5
+ }
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.WebNotificationStatusFilter = void 0;
4
+ var WebNotificationStatusFilter;
5
+ (function (WebNotificationStatusFilter) {
6
+ WebNotificationStatusFilter["UNREAD"] = "unread";
7
+ WebNotificationStatusFilter["READ"] = "read";
8
+ WebNotificationStatusFilter["ALL"] = "all";
9
+ })(WebNotificationStatusFilter || (exports.WebNotificationStatusFilter = WebNotificationStatusFilter = {}));
10
+ //# sourceMappingURL=web-notification-status-filter.enum.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"web-notification-status-filter.enum.js","sourceRoot":"","sources":["../../../../v1/web-notifications/schemas/web-notification-status-filter.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,2BAIX;AAJD,WAAY,2BAA2B;IACnC,gDAAiB,CAAA;IACjB,4CAAa,CAAA;IACb,0CAAW,CAAA;AACf,CAAC,EAJW,2BAA2B,2CAA3B,2BAA2B,QAItC"}
@@ -0,0 +1,15 @@
1
+ import { z } from 'zod';
2
+ import { NotificationGroup } from '../../notifications/schemas/notification-group.enum';
3
+ export declare const WebNotificationSchema: z.ZodObject<{
4
+ uuid: z.ZodString;
5
+ messageId: z.ZodString;
6
+ groupKey: z.ZodEnum<typeof NotificationGroup>;
7
+ title: z.ZodString;
8
+ bodyMd: z.ZodString;
9
+ ctaLabel: z.ZodNullable<z.ZodString>;
10
+ ctaUrl: z.ZodNullable<z.ZodString>;
11
+ imageUrl: z.ZodNullable<z.ZodString>;
12
+ readAt: z.ZodNullable<z.ZodString>;
13
+ createdAt: z.ZodString;
14
+ }, z.core.$strip>;
15
+ export type WebNotificationDto = z.infer<typeof WebNotificationSchema>;