@veruna/api-contracts 1.0.88 → 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 +6 -5
  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 +3 -3
  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
@@ -0,0 +1,31 @@
1
+ import { z } from 'zod';
2
+ import { HttpMethod } from '../../../shared/http-method';
3
+ export declare namespace UpdateNotificationSettingsCommand {
4
+ const Request: z.ZodObject<{
5
+ settings: z.ZodArray<z.ZodObject<{
6
+ groupKey: z.ZodEnum<typeof import("../schemas").NotificationGroup>;
7
+ channel: z.ZodEnum<typeof import("../schemas").NotificationChannel>;
8
+ enabled: z.ZodBoolean;
9
+ }, z.core.$strip>>;
10
+ }, z.core.$strip>;
11
+ const Response: z.ZodObject<{
12
+ settings: z.ZodArray<z.ZodObject<{
13
+ groupKey: z.ZodEnum<typeof import("../schemas").NotificationGroup>;
14
+ channel: z.ZodEnum<typeof import("../schemas").NotificationChannel>;
15
+ status: z.ZodEnum<typeof import("../schemas").NotificationSettingStatus>;
16
+ }, z.core.$strip>>;
17
+ integrations: z.ZodObject<{
18
+ email: z.ZodObject<{
19
+ linked: z.ZodBoolean;
20
+ }, z.core.$strip>;
21
+ telegram: z.ZodObject<{
22
+ linked: z.ZodBoolean;
23
+ deliveryStatus: z.ZodNullable<z.ZodEnum<typeof import("../schemas").TelegramDeliveryStatus>>;
24
+ }, z.core.$strip>;
25
+ }, z.core.$strip>;
26
+ }, z.core.$strip>;
27
+ const URL: "/api/v1/notifications/settings";
28
+ const METHOD = HttpMethod.PUT;
29
+ type RequestType = z.infer<typeof Request>;
30
+ type ResponseType = z.infer<typeof Response>;
31
+ }
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UpdateNotificationSettingsCommand = 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 UpdateNotificationSettingsCommand;
8
+ (function (UpdateNotificationSettingsCommand) {
9
+ UpdateNotificationSettingsCommand.Request = schemas_1.UpdateNotificationSettingsRequestSchema;
10
+ UpdateNotificationSettingsCommand.Response = schemas_1.NotificationSettingsResponseSchema;
11
+ UpdateNotificationSettingsCommand.URL = rest_api_1.REST_API.V1.NOTIFICATIONS.SETTINGS;
12
+ UpdateNotificationSettingsCommand.METHOD = http_method_1.HttpMethod.PUT;
13
+ })(UpdateNotificationSettingsCommand || (exports.UpdateNotificationSettingsCommand = UpdateNotificationSettingsCommand = {}));
14
+ //# sourceMappingURL=update-notification-settings.command.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-notification-settings.command.js","sourceRoot":"","sources":["../../../../v1/notifications/commands/update-notification-settings.command.ts"],"names":[],"mappings":";;;AACA,wCAGoB;AACpB,gDAA6C;AAC7C,6DAAyD;AAEzD,IAAiB,iCAAiC,CAQjD;AARD,WAAiB,iCAAiC;IACjC,yCAAO,GAAG,iDAAuC,CAAC;IAClD,0CAAQ,GAAG,4CAAkC,CAAC;IAC9C,qCAAG,GAAG,mBAAQ,CAAC,EAAE,CAAC,aAAa,CAAC,QAAQ,CAAC;IACzC,wCAAM,GAAG,wBAAU,CAAC,GAAG,CAAC;AAIzC,CAAC,EARgB,iCAAiC,iDAAjC,iCAAiC,QAQjD"}
@@ -1,2 +1,4 @@
1
1
  export * from './schemas';
2
2
  export * from './notifications.errors';
3
+ export * from './commands';
4
+ export * from './queries';
@@ -16,4 +16,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./schemas"), exports);
18
18
  __exportStar(require("./notifications.errors"), exports);
19
+ __exportStar(require("./commands"), exports);
20
+ __exportStar(require("./queries"), exports);
19
21
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../v1/notifications/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAA0B;AAC1B,yDAAuC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../v1/notifications/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAA0B;AAC1B,yDAAuC;AACvC,6CAA2B;AAC3B,4CAA0B"}
@@ -0,0 +1,25 @@
1
+ import { z } from 'zod';
2
+ import { HttpMethod } from '../../../shared/http-method';
3
+ export declare namespace GetNotificationSettingsQuery {
4
+ const Request: z.ZodObject<{}, z.core.$strip>;
5
+ const Response: z.ZodObject<{
6
+ settings: z.ZodArray<z.ZodObject<{
7
+ groupKey: z.ZodEnum<typeof import("../schemas").NotificationGroup>;
8
+ channel: z.ZodEnum<typeof import("../schemas").NotificationChannel>;
9
+ status: z.ZodEnum<typeof import("../schemas").NotificationSettingStatus>;
10
+ }, z.core.$strip>>;
11
+ integrations: z.ZodObject<{
12
+ email: z.ZodObject<{
13
+ linked: z.ZodBoolean;
14
+ }, z.core.$strip>;
15
+ telegram: z.ZodObject<{
16
+ linked: z.ZodBoolean;
17
+ deliveryStatus: z.ZodNullable<z.ZodEnum<typeof import("../schemas").TelegramDeliveryStatus>>;
18
+ }, z.core.$strip>;
19
+ }, z.core.$strip>;
20
+ }, z.core.$strip>;
21
+ const URL: "/api/v1/notifications/settings";
22
+ const METHOD = HttpMethod.GET;
23
+ type RequestType = z.infer<typeof Request>;
24
+ type ResponseType = z.infer<typeof Response>;
25
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetNotificationSettingsQuery = 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 GetNotificationSettingsQuery;
9
+ (function (GetNotificationSettingsQuery) {
10
+ GetNotificationSettingsQuery.Request = zod_1.z.object({});
11
+ GetNotificationSettingsQuery.Response = schemas_1.NotificationSettingsResponseSchema;
12
+ GetNotificationSettingsQuery.URL = rest_api_1.REST_API.V1.NOTIFICATIONS.SETTINGS;
13
+ GetNotificationSettingsQuery.METHOD = http_method_1.HttpMethod.GET;
14
+ })(GetNotificationSettingsQuery || (exports.GetNotificationSettingsQuery = GetNotificationSettingsQuery = {}));
15
+ //# sourceMappingURL=get-notification-settings.query.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-notification-settings.query.js","sourceRoot":"","sources":["../../../../v1/notifications/queries/get-notification-settings.query.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,wCAAgE;AAChE,gDAA6C;AAC7C,6DAAyD;AAEzD,IAAiB,4BAA4B,CAQ5C;AARD,WAAiB,4BAA4B;IAC5B,oCAAO,GAAG,OAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;IACvB,qCAAQ,GAAG,4CAAkC,CAAC;IAC9C,gCAAG,GAAG,mBAAQ,CAAC,EAAE,CAAC,aAAa,CAAC,QAAQ,CAAC;IACzC,mCAAM,GAAG,wBAAU,CAAC,GAAG,CAAC;AAIzC,CAAC,EARgB,4BAA4B,4CAA5B,4BAA4B,QAQ5C"}
@@ -0,0 +1 @@
1
+ export * from './get-notification-settings.query';
@@ -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("./get-notification-settings.query"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../v1/notifications/queries/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oEAAkD"}
@@ -0,0 +1,4 @@
1
+ export declare enum ChannelSkipReason {
2
+ DISABLED_OR_UNAVAILABLE = "DISABLED_OR_UNAVAILABLE",
3
+ EMAIL_NOT_LINKED = "EMAIL_NOT_LINKED"
4
+ }
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ChannelSkipReason = void 0;
4
+ var ChannelSkipReason;
5
+ (function (ChannelSkipReason) {
6
+ ChannelSkipReason["DISABLED_OR_UNAVAILABLE"] = "DISABLED_OR_UNAVAILABLE";
7
+ ChannelSkipReason["EMAIL_NOT_LINKED"] = "EMAIL_NOT_LINKED";
8
+ })(ChannelSkipReason || (exports.ChannelSkipReason = ChannelSkipReason = {}));
9
+ //# sourceMappingURL=channel-skip-reason.enum.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"channel-skip-reason.enum.js","sourceRoot":"","sources":["../../../../v1/notifications/schemas/channel-skip-reason.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,iBAGX;AAHD,WAAY,iBAAiB;IACzB,wEAAmD,CAAA;IACnD,0DAAqC,CAAA;AACzC,CAAC,EAHW,iBAAiB,iCAAjB,iBAAiB,QAG5B"}
@@ -1,3 +1,14 @@
1
1
  export * from './notification-type.enum';
2
2
  export * from './notification-status.enum';
3
+ export * from './notification-job-status.enum';
4
+ export * from './notification-provider.enum';
5
+ export * from './channel-skip-reason.enum';
3
6
  export * from './email-template.enum';
7
+ export * from './notification-group.enum';
8
+ export * from './notification-channel.enum';
9
+ export * from './notification-setting-status.enum';
10
+ export * from './telegram-delivery-status.enum';
11
+ export * from './notification-setting.schema';
12
+ export * from './notification-settings-response.schema';
13
+ export * from './update-notification-settings-request.schema';
14
+ export * from './notification-job-action.enum';
@@ -16,5 +16,16 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./notification-type.enum"), exports);
18
18
  __exportStar(require("./notification-status.enum"), exports);
19
+ __exportStar(require("./notification-job-status.enum"), exports);
20
+ __exportStar(require("./notification-provider.enum"), exports);
21
+ __exportStar(require("./channel-skip-reason.enum"), exports);
19
22
  __exportStar(require("./email-template.enum"), exports);
23
+ __exportStar(require("./notification-group.enum"), exports);
24
+ __exportStar(require("./notification-channel.enum"), exports);
25
+ __exportStar(require("./notification-setting-status.enum"), exports);
26
+ __exportStar(require("./telegram-delivery-status.enum"), exports);
27
+ __exportStar(require("./notification-setting.schema"), exports);
28
+ __exportStar(require("./notification-settings-response.schema"), exports);
29
+ __exportStar(require("./update-notification-settings-request.schema"), exports);
30
+ __exportStar(require("./notification-job-action.enum"), exports);
20
31
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../v1/notifications/schemas/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2DAAyC;AACzC,6DAA2C;AAC3C,wDAAsC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../v1/notifications/schemas/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2DAAyC;AACzC,6DAA2C;AAC3C,iEAA+C;AAC/C,+DAA6C;AAC7C,6DAA2C;AAC3C,wDAAsC;AACtC,4DAA0C;AAC1C,8DAA4C;AAC5C,qEAAmD;AACnD,kEAAgD;AAChD,gEAA8C;AAC9C,0EAAwD;AACxD,gFAA8D;AAC9D,iEAA+C"}
@@ -0,0 +1,5 @@
1
+ export declare enum NotificationChannel {
2
+ EMAIL = "EMAIL",
3
+ TELEGRAM = "TELEGRAM",
4
+ WEB = "WEB"
5
+ }
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.NotificationChannel = void 0;
4
+ var NotificationChannel;
5
+ (function (NotificationChannel) {
6
+ NotificationChannel["EMAIL"] = "EMAIL";
7
+ NotificationChannel["TELEGRAM"] = "TELEGRAM";
8
+ NotificationChannel["WEB"] = "WEB";
9
+ })(NotificationChannel || (exports.NotificationChannel = NotificationChannel = {}));
10
+ //# sourceMappingURL=notification-channel.enum.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"notification-channel.enum.js","sourceRoot":"","sources":["../../../../v1/notifications/schemas/notification-channel.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,mBAIX;AAJD,WAAY,mBAAmB;IAC3B,sCAAe,CAAA;IACf,4CAAqB,CAAA;IACrB,kCAAW,CAAA;AACf,CAAC,EAJW,mBAAmB,mCAAnB,mBAAmB,QAI9B"}
@@ -0,0 +1,6 @@
1
+ export declare enum NotificationGroup {
2
+ SYSTEM_MESSAGES = "SYSTEM_MESSAGES",
3
+ SYSTEM_UPDATES = "SYSTEM_UPDATES",
4
+ BLOG_NEW_POSTS = "BLOG_NEW_POSTS",
5
+ PERSONAL_PROMOS = "PERSONAL_PROMOS"
6
+ }
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.NotificationGroup = void 0;
4
+ var NotificationGroup;
5
+ (function (NotificationGroup) {
6
+ NotificationGroup["SYSTEM_MESSAGES"] = "SYSTEM_MESSAGES";
7
+ NotificationGroup["SYSTEM_UPDATES"] = "SYSTEM_UPDATES";
8
+ NotificationGroup["BLOG_NEW_POSTS"] = "BLOG_NEW_POSTS";
9
+ NotificationGroup["PERSONAL_PROMOS"] = "PERSONAL_PROMOS";
10
+ })(NotificationGroup || (exports.NotificationGroup = NotificationGroup = {}));
11
+ //# sourceMappingURL=notification-group.enum.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"notification-group.enum.js","sourceRoot":"","sources":["../../../../v1/notifications/schemas/notification-group.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,iBAKX;AALD,WAAY,iBAAiB;IACzB,wDAAmC,CAAA;IACnC,sDAAiC,CAAA;IACjC,sDAAiC,CAAA;IACjC,wDAAmC,CAAA;AACvC,CAAC,EALW,iBAAiB,iCAAjB,iBAAiB,QAK5B"}
@@ -0,0 +1,7 @@
1
+ export declare enum NotificationJobAction {
2
+ SENT = "SENT",
3
+ DLQ = "DLQ",
4
+ DLQ_WITH_ATTEMPTS = "DLQ_WITH_ATTEMPTS",
5
+ RETRY = "RETRY",
6
+ RESET_TO_PENDING = "RESET_TO_PENDING"
7
+ }
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.NotificationJobAction = void 0;
4
+ var NotificationJobAction;
5
+ (function (NotificationJobAction) {
6
+ NotificationJobAction["SENT"] = "SENT";
7
+ NotificationJobAction["DLQ"] = "DLQ";
8
+ NotificationJobAction["DLQ_WITH_ATTEMPTS"] = "DLQ_WITH_ATTEMPTS";
9
+ NotificationJobAction["RETRY"] = "RETRY";
10
+ NotificationJobAction["RESET_TO_PENDING"] = "RESET_TO_PENDING";
11
+ })(NotificationJobAction || (exports.NotificationJobAction = NotificationJobAction = {}));
12
+ //# sourceMappingURL=notification-job-action.enum.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"notification-job-action.enum.js","sourceRoot":"","sources":["../../../../v1/notifications/schemas/notification-job-action.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,qBAMX;AAND,WAAY,qBAAqB;IAC7B,sCAAa,CAAA;IACb,oCAAW,CAAA;IACX,gEAAuC,CAAA;IACvC,wCAAe,CAAA;IACf,8DAAqC,CAAA;AACzC,CAAC,EANW,qBAAqB,qCAArB,qBAAqB,QAMhC"}
@@ -0,0 +1,6 @@
1
+ export declare enum NotificationJobStatus {
2
+ PENDING = "PENDING",
3
+ PROCESSING = "PROCESSING",
4
+ SENT = "SENT",
5
+ DLQ = "DLQ"
6
+ }
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.NotificationJobStatus = void 0;
4
+ var NotificationJobStatus;
5
+ (function (NotificationJobStatus) {
6
+ NotificationJobStatus["PENDING"] = "PENDING";
7
+ NotificationJobStatus["PROCESSING"] = "PROCESSING";
8
+ NotificationJobStatus["SENT"] = "SENT";
9
+ NotificationJobStatus["DLQ"] = "DLQ";
10
+ })(NotificationJobStatus || (exports.NotificationJobStatus = NotificationJobStatus = {}));
11
+ //# sourceMappingURL=notification-job-status.enum.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"notification-job-status.enum.js","sourceRoot":"","sources":["../../../../v1/notifications/schemas/notification-job-status.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,qBAKX;AALD,WAAY,qBAAqB;IAC7B,4CAAmB,CAAA;IACnB,kDAAyB,CAAA;IACzB,sCAAa,CAAA;IACb,oCAAW,CAAA;AACf,CAAC,EALW,qBAAqB,qCAArB,qBAAqB,QAKhC"}
@@ -0,0 +1,4 @@
1
+ export declare enum NotificationProvider {
2
+ RUSENDER = "rusender",
3
+ TELEGRAM = "telegram"
4
+ }
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.NotificationProvider = void 0;
4
+ var NotificationProvider;
5
+ (function (NotificationProvider) {
6
+ NotificationProvider["RUSENDER"] = "rusender";
7
+ NotificationProvider["TELEGRAM"] = "telegram";
8
+ })(NotificationProvider || (exports.NotificationProvider = NotificationProvider = {}));
9
+ //# sourceMappingURL=notification-provider.enum.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"notification-provider.enum.js","sourceRoot":"","sources":["../../../../v1/notifications/schemas/notification-provider.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,oBAGX;AAHD,WAAY,oBAAoB;IAC5B,6CAAqB,CAAA;IACrB,6CAAqB,CAAA;AACzB,CAAC,EAHW,oBAAoB,oCAApB,oBAAoB,QAG/B"}
@@ -0,0 +1,7 @@
1
+ export declare enum NotificationSettingStatus {
2
+ ACTIVE = "ACTIVE",
3
+ DISABLED = "DISABLED",
4
+ NOT_LINKED = "NOT_LINKED",
5
+ BLOCKED = "BLOCKED",
6
+ UNREACHABLE = "UNREACHABLE"
7
+ }
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.NotificationSettingStatus = void 0;
4
+ var NotificationSettingStatus;
5
+ (function (NotificationSettingStatus) {
6
+ NotificationSettingStatus["ACTIVE"] = "ACTIVE";
7
+ NotificationSettingStatus["DISABLED"] = "DISABLED";
8
+ NotificationSettingStatus["NOT_LINKED"] = "NOT_LINKED";
9
+ NotificationSettingStatus["BLOCKED"] = "BLOCKED";
10
+ NotificationSettingStatus["UNREACHABLE"] = "UNREACHABLE";
11
+ })(NotificationSettingStatus || (exports.NotificationSettingStatus = NotificationSettingStatus = {}));
12
+ //# sourceMappingURL=notification-setting-status.enum.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"notification-setting-status.enum.js","sourceRoot":"","sources":["../../../../v1/notifications/schemas/notification-setting-status.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,yBAMX;AAND,WAAY,yBAAyB;IACjC,8CAAiB,CAAA;IACjB,kDAAqB,CAAA;IACrB,sDAAyB,CAAA;IACzB,gDAAmB,CAAA;IACnB,wDAA2B,CAAA;AAC/B,CAAC,EANW,yBAAyB,yCAAzB,yBAAyB,QAMpC"}
@@ -0,0 +1,10 @@
1
+ import { z } from 'zod';
2
+ import { NotificationGroup } from './notification-group.enum';
3
+ import { NotificationChannel } from './notification-channel.enum';
4
+ import { NotificationSettingStatus } from './notification-setting-status.enum';
5
+ export declare const NotificationSettingSchema: z.ZodObject<{
6
+ groupKey: z.ZodEnum<typeof NotificationGroup>;
7
+ channel: z.ZodEnum<typeof NotificationChannel>;
8
+ status: z.ZodEnum<typeof NotificationSettingStatus>;
9
+ }, z.core.$strip>;
10
+ export type NotificationSettingDto = z.infer<typeof NotificationSettingSchema>;
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.NotificationSettingSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ const notification_group_enum_1 = require("./notification-group.enum");
6
+ const notification_channel_enum_1 = require("./notification-channel.enum");
7
+ const notification_setting_status_enum_1 = require("./notification-setting-status.enum");
8
+ exports.NotificationSettingSchema = zod_1.z.object({
9
+ groupKey: zod_1.z.nativeEnum(notification_group_enum_1.NotificationGroup),
10
+ channel: zod_1.z.nativeEnum(notification_channel_enum_1.NotificationChannel),
11
+ status: zod_1.z.nativeEnum(notification_setting_status_enum_1.NotificationSettingStatus),
12
+ });
13
+ //# sourceMappingURL=notification-setting.schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"notification-setting.schema.js","sourceRoot":"","sources":["../../../../v1/notifications/schemas/notification-setting.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,uEAA8D;AAC9D,2EAAkE;AAClE,yFAA+E;AAElE,QAAA,yBAAyB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC9C,QAAQ,EAAE,OAAC,CAAC,UAAU,CAAC,2CAAiB,CAAC;IACzC,OAAO,EAAE,OAAC,CAAC,UAAU,CAAC,+CAAmB,CAAC;IAC1C,MAAM,EAAE,OAAC,CAAC,UAAU,CAAC,4DAAyB,CAAC;CAClD,CAAC,CAAC"}
@@ -0,0 +1,19 @@
1
+ import { z } from 'zod';
2
+ import { TelegramDeliveryStatus } from './telegram-delivery-status.enum';
3
+ export declare const NotificationSettingsResponseSchema: z.ZodObject<{
4
+ settings: z.ZodArray<z.ZodObject<{
5
+ groupKey: z.ZodEnum<typeof import("./notification-group.enum").NotificationGroup>;
6
+ channel: z.ZodEnum<typeof import("./notification-channel.enum").NotificationChannel>;
7
+ status: z.ZodEnum<typeof import("./notification-setting-status.enum").NotificationSettingStatus>;
8
+ }, z.core.$strip>>;
9
+ integrations: z.ZodObject<{
10
+ email: z.ZodObject<{
11
+ linked: z.ZodBoolean;
12
+ }, z.core.$strip>;
13
+ telegram: z.ZodObject<{
14
+ linked: z.ZodBoolean;
15
+ deliveryStatus: z.ZodNullable<z.ZodEnum<typeof TelegramDeliveryStatus>>;
16
+ }, z.core.$strip>;
17
+ }, z.core.$strip>;
18
+ }, z.core.$strip>;
19
+ export type NotificationSettingsResponseDto = z.infer<typeof NotificationSettingsResponseSchema>;
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.NotificationSettingsResponseSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ const notification_setting_schema_1 = require("./notification-setting.schema");
6
+ const telegram_delivery_status_enum_1 = require("./telegram-delivery-status.enum");
7
+ exports.NotificationSettingsResponseSchema = zod_1.z.object({
8
+ settings: zod_1.z.array(notification_setting_schema_1.NotificationSettingSchema),
9
+ integrations: zod_1.z.object({
10
+ email: zod_1.z.object({
11
+ linked: zod_1.z.boolean(),
12
+ }),
13
+ telegram: zod_1.z.object({
14
+ linked: zod_1.z.boolean(),
15
+ deliveryStatus: zod_1.z.nativeEnum(telegram_delivery_status_enum_1.TelegramDeliveryStatus).nullable(),
16
+ }),
17
+ }),
18
+ });
19
+ //# sourceMappingURL=notification-settings-response.schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"notification-settings-response.schema.js","sourceRoot":"","sources":["../../../../v1/notifications/schemas/notification-settings-response.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,+EAA0E;AAC1E,mFAAyE;AAE5D,QAAA,kCAAkC,GAAG,OAAC,CAAC,MAAM,CAAC;IACvD,QAAQ,EAAE,OAAC,CAAC,KAAK,CAAC,uDAAyB,CAAC;IAC5C,YAAY,EAAE,OAAC,CAAC,MAAM,CAAC;QACnB,KAAK,EAAE,OAAC,CAAC,MAAM,CAAC;YACZ,MAAM,EAAE,OAAC,CAAC,OAAO,EAAE;SACtB,CAAC;QACF,QAAQ,EAAE,OAAC,CAAC,MAAM,CAAC;YACf,MAAM,EAAE,OAAC,CAAC,OAAO,EAAE;YACnB,cAAc,EAAE,OAAC,CAAC,UAAU,CAAC,sDAAsB,CAAC,CAAC,QAAQ,EAAE;SAClE,CAAC;KACL,CAAC;CACL,CAAC,CAAC"}
@@ -0,0 +1,5 @@
1
+ export declare enum TelegramDeliveryStatus {
2
+ ACTIVE = "ACTIVE",
3
+ BLOCKED_BY_USER = "BLOCKED_BY_USER",
4
+ UNREACHABLE = "UNREACHABLE"
5
+ }
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TelegramDeliveryStatus = void 0;
4
+ var TelegramDeliveryStatus;
5
+ (function (TelegramDeliveryStatus) {
6
+ TelegramDeliveryStatus["ACTIVE"] = "ACTIVE";
7
+ TelegramDeliveryStatus["BLOCKED_BY_USER"] = "BLOCKED_BY_USER";
8
+ TelegramDeliveryStatus["UNREACHABLE"] = "UNREACHABLE";
9
+ })(TelegramDeliveryStatus || (exports.TelegramDeliveryStatus = TelegramDeliveryStatus = {}));
10
+ //# sourceMappingURL=telegram-delivery-status.enum.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"telegram-delivery-status.enum.js","sourceRoot":"","sources":["../../../../v1/notifications/schemas/telegram-delivery-status.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,sBAIX;AAJD,WAAY,sBAAsB;IAC9B,2CAAiB,CAAA;IACjB,6DAAmC,CAAA;IACnC,qDAA2B,CAAA;AAC/B,CAAC,EAJW,sBAAsB,sCAAtB,sBAAsB,QAIjC"}
@@ -0,0 +1,11 @@
1
+ import { z } from 'zod';
2
+ import { NotificationGroup } from './notification-group.enum';
3
+ import { NotificationChannel } from './notification-channel.enum';
4
+ export declare const UpdateNotificationSettingsRequestSchema: z.ZodObject<{
5
+ settings: z.ZodArray<z.ZodObject<{
6
+ groupKey: z.ZodEnum<typeof NotificationGroup>;
7
+ channel: z.ZodEnum<typeof NotificationChannel>;
8
+ enabled: z.ZodBoolean;
9
+ }, z.core.$strip>>;
10
+ }, z.core.$strip>;
11
+ export type UpdateNotificationSettingsRequestDto = z.infer<typeof UpdateNotificationSettingsRequestSchema>;
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UpdateNotificationSettingsRequestSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ const notification_group_enum_1 = require("./notification-group.enum");
6
+ const notification_channel_enum_1 = require("./notification-channel.enum");
7
+ exports.UpdateNotificationSettingsRequestSchema = zod_1.z.object({
8
+ settings: zod_1.z
9
+ .array(zod_1.z.object({
10
+ groupKey: zod_1.z.nativeEnum(notification_group_enum_1.NotificationGroup, {
11
+ error: 'UpdateNotificationSettingsRequest.groupKey.invalid',
12
+ }),
13
+ channel: zod_1.z.nativeEnum(notification_channel_enum_1.NotificationChannel, {
14
+ error: 'UpdateNotificationSettingsRequest.channel.invalid',
15
+ }),
16
+ enabled: zod_1.z.boolean({
17
+ error: 'UpdateNotificationSettingsRequest.enabled.required',
18
+ }),
19
+ }))
20
+ .min(1, { message: 'UpdateNotificationSettingsRequest.settings.min' }),
21
+ });
22
+ //# sourceMappingURL=update-notification-settings-request.schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-notification-settings-request.schema.js","sourceRoot":"","sources":["../../../../v1/notifications/schemas/update-notification-settings-request.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,uEAA8D;AAC9D,2EAAkE;AAErD,QAAA,uCAAuC,GAAG,OAAC,CAAC,MAAM,CAAC;IAC5D,QAAQ,EAAE,OAAC;SACN,KAAK,CACF,OAAC,CAAC,MAAM,CAAC;QACL,QAAQ,EAAE,OAAC,CAAC,UAAU,CAAC,2CAAiB,EAAE;YACtC,KAAK,EAAE,oDAAoD;SAC9D,CAAC;QACF,OAAO,EAAE,OAAC,CAAC,UAAU,CAAC,+CAAmB,EAAE;YACvC,KAAK,EAAE,mDAAmD;SAC7D,CAAC;QACF,OAAO,EAAE,OAAC,CAAC,OAAO,CAAC;YACf,KAAK,EAAE,oDAAoD;SAC9D,CAAC;KACL,CAAC,CACL;SACA,GAAG,CAAC,CAAC,EAAE,EAAE,OAAO,EAAE,gDAAgD,EAAE,CAAC;CAC7E,CAAC,CAAC"}
@@ -10,15 +10,15 @@ var S2SUploadAiImageOwnerType;
10
10
  })(S2SUploadAiImageOwnerType || (exports.S2SUploadAiImageOwnerType = S2SUploadAiImageOwnerType = {}));
11
11
  exports.S2SUploadAiImageOwnerTypeSchema = zod_1.z.nativeEnum(S2SUploadAiImageOwnerType);
12
12
  exports.S2SUploadAiImageRequestSchema = zod_1.z.object({
13
- chatId: zod_1.z.string().regex(shared_1.UUID_REGEX),
14
- pageId: zod_1.z.string().regex(shared_1.UUID_REGEX).nullable().optional(),
15
- messageId: zod_1.z.string().regex(shared_1.UUID_REGEX),
16
- ownerId: zod_1.z.string().regex(shared_1.UUID_REGEX),
13
+ chatId: zod_1.z.string({ error: 'S2SUploadAiImageRequest.chatId.required' }).regex(shared_1.UUID_REGEX, { message: 'S2SUploadAiImageRequest.chatId.invalid' }),
14
+ pageId: zod_1.z.string({ error: 'S2SUploadAiImageRequest.pageId.required' }).regex(shared_1.UUID_REGEX, { message: 'S2SUploadAiImageRequest.pageId.invalid' }).nullable().optional(),
15
+ messageId: zod_1.z.string({ error: 'S2SUploadAiImageRequest.messageId.required' }).regex(shared_1.UUID_REGEX, { message: 'S2SUploadAiImageRequest.messageId.invalid' }),
16
+ ownerId: zod_1.z.string({ error: 'S2SUploadAiImageRequest.ownerId.required' }).regex(shared_1.UUID_REGEX, { message: 'S2SUploadAiImageRequest.ownerId.invalid' }),
17
17
  ownerType: exports.S2SUploadAiImageOwnerTypeSchema,
18
- imageBase64: zod_1.z.string().min(1),
19
- mimeType: zod_1.z.string().regex(/^image\/[a-z0-9.+-]+$/i),
20
- filename: zod_1.z.string().min(1).max(255),
21
- idempotencyKey: zod_1.z.string().min(1).max(255),
22
- imageIndex: zod_1.z.number().int().min(0),
18
+ imageBase64: zod_1.z.string({ error: 'S2SUploadAiImageRequest.imageBase64.required' }).min(1, { message: 'S2SUploadAiImageRequest.imageBase64.min' }),
19
+ mimeType: zod_1.z.string({ error: 'S2SUploadAiImageRequest.mimeType.required' }).regex(/^image\/[a-z0-9.+-]+$/i, { message: 'S2SUploadAiImageRequest.mimeType.invalid' }),
20
+ filename: zod_1.z.string({ error: 'S2SUploadAiImageRequest.filename.required' }).min(1, { message: 'S2SUploadAiImageRequest.filename.min' }).max(255, { message: 'S2SUploadAiImageRequest.filename.max' }),
21
+ idempotencyKey: zod_1.z.string({ error: 'S2SUploadAiImageRequest.idempotencyKey.required' }).min(1, { message: 'S2SUploadAiImageRequest.idempotencyKey.min' }).max(255, { message: 'S2SUploadAiImageRequest.idempotencyKey.max' }),
22
+ imageIndex: zod_1.z.number({ error: 'S2SUploadAiImageRequest.imageIndex.required' }).int({ message: 'S2SUploadAiImageRequest.imageIndex.invalid' }).min(0, { message: 'S2SUploadAiImageRequest.imageIndex.min' }),
23
23
  });
24
24
  //# sourceMappingURL=s2s-upload-ai-image-request.schema.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"s2s-upload-ai-image-request.schema.js","sourceRoot":"","sources":["../../../../v1/s2s/schemas/s2s-upload-ai-image-request.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,4CAA6C;AAE7C,IAAY,yBAGX;AAHD,WAAY,yBAAyB;IACjC,sDAAyB,CAAA;IACzB,0DAA6B,CAAA;AACjC,CAAC,EAHW,yBAAyB,yCAAzB,yBAAyB,QAGpC;AAEY,QAAA,+BAA+B,GAAG,OAAC,CAAC,UAAU,CAAC,yBAAyB,CAAC,CAAC;AAE1E,QAAA,6BAA6B,GAAG,OAAC,CAAC,MAAM,CAAC;IAClD,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,mBAAU,CAAC;IACpC,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,mBAAU,CAAC,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IAC1D,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,mBAAU,CAAC;IACvC,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,mBAAU,CAAC;IACrC,SAAS,EAAE,uCAA+B;IAC1C,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAC9B,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,wBAAwB,CAAC;IACpD,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC;IACpC,cAAc,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC;IAC1C,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;CACtC,CAAC,CAAC"}
1
+ {"version":3,"file":"s2s-upload-ai-image-request.schema.js","sourceRoot":"","sources":["../../../../v1/s2s/schemas/s2s-upload-ai-image-request.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,4CAA6C;AAE7C,IAAY,yBAGX;AAHD,WAAY,yBAAyB;IACjC,sDAAyB,CAAA;IACzB,0DAA6B,CAAA;AACjC,CAAC,EAHW,yBAAyB,yCAAzB,yBAAyB,QAGpC;AAEY,QAAA,+BAA+B,GAAG,OAAC,CAAC,UAAU,CAAC,yBAAyB,CAAC,CAAC;AAE1E,QAAA,6BAA6B,GAAG,OAAC,CAAC,MAAM,CAAC;IAClD,MAAM,EAAE,OAAC,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,yCAAyC,EAAE,CAAC,CAAC,KAAK,CAAC,mBAAU,EAAE,EAAE,OAAO,EAAE,wCAAwC,EAAE,CAAC;IAC/I,MAAM,EAAE,OAAC,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,yCAAyC,EAAE,CAAC,CAAC,KAAK,CAAC,mBAAU,EAAE,EAAE,OAAO,EAAE,wCAAwC,EAAE,CAAC,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IACrK,SAAS,EAAE,OAAC,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,4CAA4C,EAAE,CAAC,CAAC,KAAK,CAAC,mBAAU,EAAE,EAAE,OAAO,EAAE,2CAA2C,EAAE,CAAC;IACxJ,OAAO,EAAE,OAAC,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,0CAA0C,EAAE,CAAC,CAAC,KAAK,CAAC,mBAAU,EAAE,EAAE,OAAO,EAAE,yCAAyC,EAAE,CAAC;IAClJ,SAAS,EAAE,uCAA+B;IAC1C,WAAW,EAAE,OAAC,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,8CAA8C,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,OAAO,EAAE,yCAAyC,EAAE,CAAC;IAC/I,QAAQ,EAAE,OAAC,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,2CAA2C,EAAE,CAAC,CAAC,KAAK,CAAC,wBAAwB,EAAE,EAAE,OAAO,EAAE,0CAA0C,EAAE,CAAC;IACnK,QAAQ,EAAE,OAAC,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,2CAA2C,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,OAAO,EAAE,sCAAsC,EAAE,CAAC,CAAC,GAAG,CAAC,GAAG,EAAE,EAAE,OAAO,EAAE,sCAAsC,EAAE,CAAC;IACpM,cAAc,EAAE,OAAC,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,iDAAiD,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,OAAO,EAAE,4CAA4C,EAAE,CAAC,CAAC,GAAG,CAAC,GAAG,EAAE,EAAE,OAAO,EAAE,4CAA4C,EAAE,CAAC;IAC5N,UAAU,EAAE,OAAC,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,6CAA6C,EAAE,CAAC,CAAC,GAAG,CAAC,EAAE,OAAO,EAAE,4CAA4C,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,OAAO,EAAE,wCAAwC,EAAE,CAAC;CAC9M,CAAC,CAAC"}
@@ -1,6 +1,5 @@
1
1
  export * from './update-profile.command';
2
2
  export * from './change-password.command';
3
- export * from './toggle-marketing-consent.command';
4
3
  export * from './delete-account.command';
5
4
  export * from './email-change-start.command';
6
5
  export * from './email-change-verify.command';
@@ -16,7 +16,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./update-profile.command"), exports);
18
18
  __exportStar(require("./change-password.command"), exports);
19
- __exportStar(require("./toggle-marketing-consent.command"), exports);
20
19
  __exportStar(require("./delete-account.command"), exports);
21
20
  __exportStar(require("./email-change-start.command"), exports);
22
21
  __exportStar(require("./email-change-verify.command"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../v1/users/commands/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2DAAyC;AACzC,4DAA0C;AAC1C,qEAAmD;AACnD,2DAAyC;AACzC,+DAA6C;AAC7C,gEAA8C;AAC9C,kEAAgD;AAChD,iEAA+C;AAC/C,kEAAgD;AAChD,oEAAkD;AAClD,kEAAgD;AAChD,mEAAiD;AACjD,qEAAmD;AACnD,2DAAyC;AACzC,wDAAsC;AACtC,sEAAoD;AACpD,mEAAiD;AACjD,mEAAiD"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../v1/users/commands/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2DAAyC;AACzC,4DAA0C;AAC1C,2DAAyC;AACzC,+DAA6C;AAC7C,gEAA8C;AAC9C,kEAAgD;AAChD,iEAA+C;AAC/C,kEAAgD;AAChD,oEAAkD;AAClD,kEAAgD;AAChD,mEAAiD;AACjD,qEAAmD;AACnD,2DAAyC;AACzC,wDAAsC;AACtC,sEAAoD;AACpD,mEAAiD;AACjD,mEAAiD"}
@@ -6,6 +6,7 @@ export declare namespace UserPasswordResetConfirmCommand {
6
6
  token: z.ZodString;
7
7
  newPassword: z.ZodString;
8
8
  logoutAllSessions: z.ZodBoolean;
9
+ atr: z.ZodOptional<z.ZodString>;
9
10
  }, z.core.$strip>;
10
11
  const Response: z.ZodObject<{
11
12
  userId: z.ZodString;
@@ -11,7 +11,6 @@ export declare namespace UserUpdateProfileCommand {
11
11
  role: z.ZodString;
12
12
  registerType: z.ZodEnum<typeof import("..").RegisterType>;
13
13
  status: z.ZodEnum<typeof import("..").UserStatus>;
14
- marketingConsent: z.ZodBoolean;
15
14
  createdAt: z.ZodString;
16
15
  }, z.core.$strip>;
17
16
  const URL: "/api/v1/users/me";
@@ -4,6 +4,7 @@ export declare namespace UserConfirmEmailVerificationQuery {
4
4
  const Request: z.ZodObject<{
5
5
  userId: z.ZodString;
6
6
  token: z.ZodString;
7
+ atr: z.ZodOptional<z.ZodString>;
7
8
  }, z.core.$strip>;
8
9
  const Response: z.ZodObject<{
9
10
  userId: z.ZodString;
@@ -17,6 +17,12 @@ var UserConfirmEmailVerificationQuery;
17
17
  .regex(regex_1.EMAIL_VERIFICATION_TOKEN_REGEX, {
18
18
  message: 'ConfirmEmailVerificationQuery.token.invalid',
19
19
  }),
20
+ atr: zod_1.z
21
+ .string({ error: 'ConfirmEmailVerificationQuery.atr.invalid' })
22
+ .regex(regex_1.ATR_TOKEN_REGEX, {
23
+ message: 'ConfirmEmailVerificationQuery.atr.invalidFormat',
24
+ })
25
+ .optional(),
20
26
  });
21
27
  UserConfirmEmailVerificationQuery.Response = email_verification_response_schema_1.EmailVerificationConfirmResponseSchema;
22
28
  UserConfirmEmailVerificationQuery.URL = rest_api_1.REST_API.V1.USERS.EMAIL_VERIFICATION_CONFIRM;
@@ -1 +1 @@
1
- {"version":3,"file":"confirm-email-verification.query.js","sourceRoot":"","sources":["../../../../v1/users/queries/confirm-email-verification.query.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,gDAA6C;AAC7C,6DAAyD;AACzD,sGAAuG;AACvG,iDAAuE;AAEvE,IAAiB,iCAAiC,CAgBjD;AAhBD,WAAiB,iCAAiC;IACjC,yCAAO,GAAG,OAAC,CAAC,MAAM,CAAC;QAC5B,MAAM,EAAE,OAAC;aACJ,MAAM,CAAC,EAAE,KAAK,EAAE,+CAA+C,EAAE,CAAC;aAClE,IAAI,CAAC,EAAE,OAAO,EAAE,8CAA8C,EAAE,CAAC;QACtE,KAAK,EAAE,OAAC;aACH,MAAM,CAAC,EAAE,KAAK,EAAE,8CAA8C,EAAE,CAAC;aACjE,KAAK,CAAC,sCAA8B,EAAE;YACnC,OAAO,EAAE,6CAA6C;SACzD,CAAC;KACT,CAAC,CAAC;IACU,0CAAQ,GAAG,2EAAsC,CAAC;IAClD,qCAAG,GAAG,mBAAQ,CAAC,EAAE,CAAC,KAAK,CAAC,0BAA0B,CAAC;IACnD,wCAAM,GAAG,wBAAU,CAAC,GAAG,CAAC;AAGzC,CAAC,EAhBgB,iCAAiC,iDAAjC,iCAAiC,QAgBjD"}
1
+ {"version":3,"file":"confirm-email-verification.query.js","sourceRoot":"","sources":["../../../../v1/users/queries/confirm-email-verification.query.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,gDAA6C;AAC7C,6DAAyD;AACzD,sGAAuG;AACvG,iDAAwF;AAExF,IAAiB,iCAAiC,CAsBjD;AAtBD,WAAiB,iCAAiC;IACjC,yCAAO,GAAG,OAAC,CAAC,MAAM,CAAC;QAC5B,MAAM,EAAE,OAAC;aACJ,MAAM,CAAC,EAAE,KAAK,EAAE,+CAA+C,EAAE,CAAC;aAClE,IAAI,CAAC,EAAE,OAAO,EAAE,8CAA8C,EAAE,CAAC;QACtE,KAAK,EAAE,OAAC;aACH,MAAM,CAAC,EAAE,KAAK,EAAE,8CAA8C,EAAE,CAAC;aACjE,KAAK,CAAC,sCAA8B,EAAE;YACnC,OAAO,EAAE,6CAA6C;SACzD,CAAC;QACN,GAAG,EAAE,OAAC;aACD,MAAM,CAAC,EAAE,KAAK,EAAE,2CAA2C,EAAE,CAAC;aAC9D,KAAK,CAAC,uBAAe,EAAE;YACpB,OAAO,EAAE,iDAAiD;SAC7D,CAAC;aACD,QAAQ,EAAE;KAClB,CAAC,CAAC;IACU,0CAAQ,GAAG,2EAAsC,CAAC;IAClD,qCAAG,GAAG,mBAAQ,CAAC,EAAE,CAAC,KAAK,CAAC,0BAA0B,CAAC;IACnD,wCAAM,GAAG,wBAAU,CAAC,GAAG,CAAC;AAGzC,CAAC,EAtBgB,iCAAiC,iDAAjC,iCAAiC,QAsBjD"}