@veruna/api-contracts 1.0.89 → 1.0.91
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.
- package/build/controllers/attribution.controllers.d.ts +1 -0
- package/build/controllers/attribution.controllers.js +5 -0
- package/build/controllers/attribution.controllers.js.map +1 -0
- package/build/controllers/index.d.ts +3 -0
- package/build/controllers/index.js +7 -1
- package/build/controllers/index.js.map +1 -1
- package/build/controllers/notifications.controllers.d.ts +1 -0
- package/build/controllers/notifications.controllers.js +5 -0
- package/build/controllers/notifications.controllers.js.map +1 -0
- package/build/controllers/web-notifications.controllers.d.ts +1 -0
- package/build/controllers/web-notifications.controllers.js +5 -0
- package/build/controllers/web-notifications.controllers.js.map +1 -0
- package/build/locales/validation.d.ts +156 -10
- package/build/locales/validation.js +156 -10
- package/build/locales/validation.js.map +1 -1
- package/build/rest-api.d.ts +23 -3
- package/build/rest-api.js +23 -3
- package/build/rest-api.js.map +1 -1
- package/build/routes/attribution.routes.d.ts +3 -0
- package/build/routes/attribution.routes.js +7 -0
- package/build/routes/attribution.routes.js.map +1 -0
- package/build/routes/index.d.ts +3 -0
- package/build/routes/index.js +7 -1
- package/build/routes/index.js.map +1 -1
- package/build/routes/notifications.routes.d.ts +3 -0
- package/build/routes/notifications.routes.js +7 -0
- package/build/routes/notifications.routes.js.map +1 -0
- package/build/routes/users.routes.d.ts +8 -3
- package/build/routes/users.routes.js +8 -3
- package/build/routes/users.routes.js.map +1 -1
- package/build/routes/web-notifications.routes.d.ts +5 -0
- package/build/routes/web-notifications.routes.js +9 -0
- package/build/routes/web-notifications.routes.js.map +1 -0
- package/build/shared/constants.d.ts +1 -0
- package/build/shared/constants.js +2 -1
- package/build/shared/constants.js.map +1 -1
- package/build/shared/regex.d.ts +3 -0
- package/build/shared/regex.js +4 -1
- package/build/shared/regex.js.map +1 -1
- package/build/tsconfig.tsbuildinfo +1 -1
- package/build/v1/ai-model/schemas/create-model-request.schema.js +9 -9
- package/build/v1/ai-model/schemas/create-model-request.schema.js.map +1 -1
- package/build/v1/ai-model/schemas/update-model-request.schema.js +12 -12
- package/build/v1/ai-model/schemas/update-model-request.schema.js.map +1 -1
- package/build/v1/ai-provider/schemas/create-provider-request.schema.js +1 -1
- package/build/v1/ai-provider/schemas/create-provider-request.schema.js.map +1 -1
- package/build/v1/attribution/attribution.errors.d.ts +8 -0
- package/build/v1/attribution/attribution.errors.js +29 -0
- package/build/v1/attribution/attribution.errors.js.map +1 -0
- package/build/v1/attribution/index.d.ts +2 -0
- package/build/v1/attribution/index.js +19 -0
- package/build/v1/attribution/index.js.map +1 -0
- package/build/v1/attribution/schemas/attribution-event-type.enum.d.ts +8 -0
- package/build/v1/attribution/schemas/attribution-event-type.enum.js +13 -0
- package/build/v1/attribution/schemas/attribution-event-type.enum.js.map +1 -0
- package/build/v1/attribution/schemas/attribution-method.enum.d.ts +4 -0
- package/build/v1/attribution/schemas/attribution-method.enum.js +9 -0
- package/build/v1/attribution/schemas/attribution-method.enum.js.map +1 -0
- package/build/v1/attribution/schemas/attribution-source-module.enum.d.ts +3 -0
- package/build/v1/attribution/schemas/attribution-source-module.enum.js +8 -0
- package/build/v1/attribution/schemas/attribution-source-module.enum.js.map +1 -0
- package/build/v1/attribution/schemas/click-redirect-params.schema.d.ts +5 -0
- package/build/v1/attribution/schemas/click-redirect-params.schema.js +13 -0
- package/build/v1/attribution/schemas/click-redirect-params.schema.js.map +1 -0
- package/build/v1/attribution/schemas/conversion-type.enum.d.ts +4 -0
- package/build/v1/attribution/schemas/conversion-type.enum.js +9 -0
- package/build/v1/attribution/schemas/conversion-type.enum.js.map +1 -0
- package/build/v1/attribution/schemas/index.d.ts +5 -0
- package/build/v1/attribution/schemas/index.js +22 -0
- package/build/v1/attribution/schemas/index.js.map +1 -0
- package/build/v1/auth/auth.errors.d.ts +2 -1
- package/build/v1/auth/auth.errors.js +5 -0
- package/build/v1/auth/auth.errors.js.map +1 -1
- package/build/v1/auth/commands/signin.command.d.ts +0 -1
- package/build/v1/auth/commands/signup.command.d.ts +0 -2
- package/build/v1/auth/schemas/auth-response.schema.d.ts +0 -1
- package/build/v1/auth/schemas/signup-request.schema.d.ts +0 -1
- package/build/v1/auth/schemas/signup-request.schema.js +2 -2
- package/build/v1/auth/schemas/signup-request.schema.js.map +1 -1
- package/build/v1/forms/schemas/cooperation-form.schema.js +4 -2
- package/build/v1/forms/schemas/cooperation-form.schema.js.map +1 -1
- package/build/v1/index.d.ts +2 -0
- package/build/v1/index.js +2 -0
- package/build/v1/index.js.map +1 -1
- package/build/v1/notifications/commands/index.d.ts +1 -0
- package/build/v1/notifications/commands/index.js +18 -0
- package/build/v1/notifications/commands/index.js.map +1 -0
- package/build/v1/notifications/commands/update-notification-settings.command.d.ts +31 -0
- package/build/v1/notifications/commands/update-notification-settings.command.js +14 -0
- package/build/v1/notifications/commands/update-notification-settings.command.js.map +1 -0
- package/build/v1/notifications/index.d.ts +2 -0
- package/build/v1/notifications/index.js +2 -0
- package/build/v1/notifications/index.js.map +1 -1
- package/build/v1/notifications/queries/get-notification-settings.query.d.ts +25 -0
- package/build/v1/notifications/queries/get-notification-settings.query.js +15 -0
- package/build/v1/notifications/queries/get-notification-settings.query.js.map +1 -0
- package/build/v1/notifications/queries/index.d.ts +1 -0
- package/build/v1/notifications/queries/index.js +18 -0
- package/build/v1/notifications/queries/index.js.map +1 -0
- package/build/v1/notifications/schemas/channel-skip-reason.enum.d.ts +4 -0
- package/build/v1/notifications/schemas/channel-skip-reason.enum.js +9 -0
- package/build/v1/notifications/schemas/channel-skip-reason.enum.js.map +1 -0
- package/build/v1/notifications/schemas/index.d.ts +11 -0
- package/build/v1/notifications/schemas/index.js +11 -0
- package/build/v1/notifications/schemas/index.js.map +1 -1
- package/build/v1/notifications/schemas/notification-channel.enum.d.ts +5 -0
- package/build/v1/notifications/schemas/notification-channel.enum.js +10 -0
- package/build/v1/notifications/schemas/notification-channel.enum.js.map +1 -0
- package/build/v1/notifications/schemas/notification-group.enum.d.ts +6 -0
- package/build/v1/notifications/schemas/notification-group.enum.js +11 -0
- package/build/v1/notifications/schemas/notification-group.enum.js.map +1 -0
- package/build/v1/notifications/schemas/notification-job-action.enum.d.ts +7 -0
- package/build/v1/notifications/schemas/notification-job-action.enum.js +12 -0
- package/build/v1/notifications/schemas/notification-job-action.enum.js.map +1 -0
- package/build/v1/notifications/schemas/notification-job-status.enum.d.ts +6 -0
- package/build/v1/notifications/schemas/notification-job-status.enum.js +11 -0
- package/build/v1/notifications/schemas/notification-job-status.enum.js.map +1 -0
- package/build/v1/notifications/schemas/notification-provider.enum.d.ts +4 -0
- package/build/v1/notifications/schemas/notification-provider.enum.js +9 -0
- package/build/v1/notifications/schemas/notification-provider.enum.js.map +1 -0
- package/build/v1/notifications/schemas/notification-setting-status.enum.d.ts +7 -0
- package/build/v1/notifications/schemas/notification-setting-status.enum.js +12 -0
- package/build/v1/notifications/schemas/notification-setting-status.enum.js.map +1 -0
- package/build/v1/notifications/schemas/notification-setting.schema.d.ts +10 -0
- package/build/v1/notifications/schemas/notification-setting.schema.js +13 -0
- package/build/v1/notifications/schemas/notification-setting.schema.js.map +1 -0
- package/build/v1/notifications/schemas/notification-settings-response.schema.d.ts +19 -0
- package/build/v1/notifications/schemas/notification-settings-response.schema.js +19 -0
- package/build/v1/notifications/schemas/notification-settings-response.schema.js.map +1 -0
- package/build/v1/notifications/schemas/telegram-delivery-status.enum.d.ts +5 -0
- package/build/v1/notifications/schemas/telegram-delivery-status.enum.js +10 -0
- package/build/v1/notifications/schemas/telegram-delivery-status.enum.js.map +1 -0
- package/build/v1/notifications/schemas/update-notification-settings-request.schema.d.ts +11 -0
- package/build/v1/notifications/schemas/update-notification-settings-request.schema.js +22 -0
- package/build/v1/notifications/schemas/update-notification-settings-request.schema.js.map +1 -0
- package/build/v1/s2s/schemas/s2s-upload-ai-image-request.schema.js +9 -9
- package/build/v1/s2s/schemas/s2s-upload-ai-image-request.schema.js.map +1 -1
- package/build/v1/users/{queries/confirm-email-verification.query.d.ts → commands/confirm-email-verification.command.d.ts} +3 -2
- package/build/v1/users/commands/confirm-email-verification.command.js +31 -0
- package/build/v1/users/commands/confirm-email-verification.command.js.map +1 -0
- package/build/v1/users/commands/delete-account-start.command.d.ts +1 -1
- package/build/v1/users/commands/delete-account-verify.command.d.ts +6 -0
- package/build/v1/users/commands/email-change-start.command.d.ts +1 -0
- package/build/v1/users/commands/email-change-verify.command.d.ts +6 -0
- package/build/v1/users/commands/index.d.ts +5 -1
- package/build/v1/users/commands/index.js +5 -1
- package/build/v1/users/commands/index.js.map +1 -1
- package/build/v1/users/commands/password-change-verify.command.d.ts +6 -0
- package/build/v1/users/commands/password-reset-confirm.command.d.ts +1 -0
- package/build/v1/users/commands/setup-email-complete.command.d.ts +15 -0
- package/build/v1/users/commands/setup-email-complete.command.js +14 -0
- package/build/v1/users/commands/setup-email-complete.command.js.map +1 -0
- package/build/v1/users/commands/setup-email-verify.command.d.ts +25 -0
- package/build/v1/users/commands/setup-email-verify.command.js +14 -0
- package/build/v1/users/commands/setup-email-verify.command.js.map +1 -0
- package/build/v1/users/commands/setup-email.command.d.ts +9 -6
- package/build/v1/users/commands/setup-email.command.js +1 -1
- package/build/v1/users/commands/setup-email.command.js.map +1 -1
- package/build/v1/users/commands/setup-password-complete.command.d.ts +16 -0
- package/build/v1/users/commands/setup-password-complete.command.js +15 -0
- package/build/v1/users/commands/setup-password-complete.command.js.map +1 -0
- package/build/v1/users/commands/setup-password-verify.command.d.ts +25 -0
- package/build/v1/users/commands/setup-password-verify.command.js +14 -0
- package/build/v1/users/commands/setup-password-verify.command.js.map +1 -0
- package/build/v1/users/commands/setup-password.command.d.ts +11 -5
- package/build/v1/users/commands/setup-password.command.js +1 -1
- package/build/v1/users/commands/setup-password.command.js.map +1 -1
- package/build/v1/users/commands/update-profile.command.d.ts +0 -1
- package/build/v1/users/queries/get-current-user.query.d.ts +0 -1
- package/build/v1/users/queries/get-setup-status.query.d.ts +8 -2
- package/build/v1/users/queries/index.d.ts +2 -1
- package/build/v1/users/queries/index.js +2 -1
- package/build/v1/users/queries/index.js.map +1 -1
- package/build/v1/users/queries/setup-email-status.query.d.ts +22 -0
- package/build/v1/users/queries/setup-email-status.query.js +17 -0
- package/build/v1/users/queries/setup-email-status.query.js.map +1 -0
- package/build/v1/users/queries/setup-password-status.query.d.ts +22 -0
- package/build/v1/users/queries/setup-password-status.query.js +17 -0
- package/build/v1/users/queries/setup-password-status.query.js.map +1 -0
- package/build/v1/users/schemas/change-password-request.schema.js +1 -1
- package/build/v1/users/schemas/change-password-request.schema.js.map +1 -1
- package/build/v1/users/schemas/delete-account-start-request.schema.d.ts +1 -1
- package/build/v1/users/schemas/delete-account-start-request.schema.js +2 -1
- package/build/v1/users/schemas/delete-account-start-request.schema.js.map +1 -1
- package/build/v1/users/schemas/email-change-start-request.schema.d.ts +1 -0
- package/build/v1/users/schemas/email-change-start-request.schema.js +3 -0
- package/build/v1/users/schemas/email-change-start-request.schema.js.map +1 -1
- package/build/v1/users/schemas/index.d.ts +1 -1
- package/build/v1/users/schemas/index.js +1 -1
- package/build/v1/users/schemas/index.js.map +1 -1
- package/build/v1/users/schemas/password-change-complete-request.schema.js +1 -1
- package/build/v1/users/schemas/password-change-complete-request.schema.js.map +1 -1
- package/build/v1/users/schemas/password-reset-confirm-request.schema.d.ts +1 -0
- package/build/v1/users/schemas/password-reset-confirm-request.schema.js +6 -0
- package/build/v1/users/schemas/password-reset-confirm-request.schema.js.map +1 -1
- package/build/v1/users/schemas/response-unions.schema.d.ts +0 -12
- package/build/v1/users/schemas/response-unions.schema.js +1 -2
- package/build/v1/users/schemas/response-unions.schema.js.map +1 -1
- package/build/v1/users/schemas/setup-email-response.schema.d.ts +11 -9
- package/build/v1/users/schemas/setup-email-response.schema.js +2 -12
- package/build/v1/users/schemas/setup-email-response.schema.js.map +1 -1
- package/build/v1/users/schemas/setup-password-complete-request.schema.d.ts +5 -0
- package/build/v1/users/schemas/setup-password-complete-request.schema.js +16 -0
- package/build/v1/users/schemas/setup-password-complete-request.schema.js.map +1 -0
- package/build/v1/users/schemas/setup-password-request.schema.d.ts +1 -3
- package/build/v1/users/schemas/setup-password-request.schema.js +1 -8
- package/build/v1/users/schemas/setup-password-request.schema.js.map +1 -1
- package/build/v1/users/schemas/setup-password-response.schema.d.ts +11 -4
- package/build/v1/users/schemas/setup-password-response.schema.js +2 -5
- package/build/v1/users/schemas/setup-password-response.schema.js.map +1 -1
- package/build/v1/users/schemas/setup-status-response.schema.d.ts +8 -2
- package/build/v1/users/schemas/setup-status-response.schema.js +6 -2
- package/build/v1/users/schemas/setup-status-response.schema.js.map +1 -1
- package/build/v1/users/schemas/user-response.schema.d.ts +0 -1
- package/build/v1/users/schemas/user-response.schema.js +0 -1
- package/build/v1/users/schemas/user-response.schema.js.map +1 -1
- package/build/v1/users/users.errors.d.ts +2 -1
- package/build/v1/users/users.errors.js +5 -0
- package/build/v1/users/users.errors.js.map +1 -1
- package/build/v1/verification/schemas/verification-channel.enum.d.ts +2 -1
- package/build/v1/verification/schemas/verification-channel.enum.js +1 -0
- package/build/v1/verification/schemas/verification-channel.enum.js.map +1 -1
- package/build/v1/verification/schemas/verification-step.schema.js +1 -1
- package/build/v1/verification/schemas/verification-step.schema.js.map +1 -1
- package/build/v1/verification/schemas/verification-type.enum.d.ts +3 -1
- package/build/v1/verification/schemas/verification-type.enum.js +2 -0
- package/build/v1/verification/schemas/verification-type.enum.js.map +1 -1
- package/build/v1/verification/schemas/verification-verify-response.schema.d.ts +6 -0
- package/build/v1/verification/schemas/verification-verify-response.schema.js +2 -0
- package/build/v1/verification/schemas/verification-verify-response.schema.js.map +1 -1
- package/build/v1/vk-auth/vk-auth.errors.d.ts +4 -1
- package/build/v1/vk-auth/vk-auth.errors.js +6 -0
- package/build/v1/vk-auth/vk-auth.errors.js.map +1 -1
- package/build/v1/web-notifications/commands/index.d.ts +1 -0
- package/build/v1/web-notifications/commands/index.js +18 -0
- package/build/v1/web-notifications/commands/index.js.map +1 -0
- package/build/v1/web-notifications/commands/mark-web-notifications-read-up-to.command.d.ts +15 -0
- package/build/v1/web-notifications/commands/mark-web-notifications-read-up-to.command.js +14 -0
- package/build/v1/web-notifications/commands/mark-web-notifications-read-up-to.command.js.map +1 -0
- package/build/v1/web-notifications/index.d.ts +3 -0
- package/build/v1/web-notifications/index.js +20 -0
- package/build/v1/web-notifications/index.js.map +1 -0
- package/build/v1/web-notifications/queries/get-web-notifications.query.d.ts +30 -0
- package/build/v1/web-notifications/queries/get-web-notifications.query.js +14 -0
- package/build/v1/web-notifications/queries/get-web-notifications.query.js.map +1 -0
- package/build/v1/web-notifications/queries/get-web-unread-count.query.d.ts +12 -0
- package/build/v1/web-notifications/queries/get-web-unread-count.query.js +15 -0
- package/build/v1/web-notifications/queries/get-web-unread-count.query.js.map +1 -0
- package/build/v1/web-notifications/queries/index.d.ts +2 -0
- package/build/v1/web-notifications/queries/index.js +19 -0
- package/build/v1/web-notifications/queries/index.js.map +1 -0
- package/build/v1/web-notifications/schemas/get-web-notifications-query.schema.d.ts +8 -0
- package/build/v1/web-notifications/schemas/get-web-notifications-query.schema.js +22 -0
- package/build/v1/web-notifications/schemas/get-web-notifications-query.schema.js.map +1 -0
- package/build/v1/web-notifications/schemas/index.d.ts +7 -0
- package/build/v1/web-notifications/schemas/index.js +24 -0
- package/build/v1/web-notifications/schemas/index.js.map +1 -0
- package/build/v1/web-notifications/schemas/mark-web-notifications-read-up-to-request.schema.d.ts +5 -0
- package/build/v1/web-notifications/schemas/mark-web-notifications-read-up-to-request.schema.js +11 -0
- package/build/v1/web-notifications/schemas/mark-web-notifications-read-up-to-request.schema.js.map +1 -0
- package/build/v1/web-notifications/schemas/mark-web-notifications-read-up-to-response.schema.d.ts +6 -0
- package/build/v1/web-notifications/schemas/mark-web-notifications-read-up-to-response.schema.js +9 -0
- package/build/v1/web-notifications/schemas/mark-web-notifications-read-up-to-response.schema.js.map +1 -0
- package/build/v1/web-notifications/schemas/web-notification-status-filter.enum.d.ts +5 -0
- package/build/v1/web-notifications/schemas/web-notification-status-filter.enum.js +10 -0
- package/build/v1/web-notifications/schemas/web-notification-status-filter.enum.js.map +1 -0
- package/build/v1/web-notifications/schemas/web-notification.schema.d.ts +15 -0
- package/build/v1/web-notifications/schemas/web-notification.schema.js +19 -0
- package/build/v1/web-notifications/schemas/web-notification.schema.js.map +1 -0
- package/build/v1/web-notifications/schemas/web-notifications-response.schema.d.ts +19 -0
- package/build/v1/web-notifications/schemas/web-notifications-response.schema.js +12 -0
- package/build/v1/web-notifications/schemas/web-notifications-response.schema.js.map +1 -0
- package/build/v1/web-notifications/schemas/web-unread-count-response.schema.d.ts +5 -0
- package/build/v1/web-notifications/schemas/web-unread-count-response.schema.js +8 -0
- package/build/v1/web-notifications/schemas/web-unread-count-response.schema.js.map +1 -0
- package/build/v1/yandex-auth/yandex-auth.errors.d.ts +3 -1
- package/build/v1/yandex-auth/yandex-auth.errors.js +10 -0
- package/build/v1/yandex-auth/yandex-auth.errors.js.map +1 -1
- package/package.json +1 -1
- package/build/v1/users/commands/toggle-marketing-consent.command.d.ts +0 -21
- package/build/v1/users/commands/toggle-marketing-consent.command.js +0 -15
- package/build/v1/users/commands/toggle-marketing-consent.command.js.map +0 -1
- package/build/v1/users/queries/confirm-email-verification.query.js +0 -25
- package/build/v1/users/queries/confirm-email-verification.query.js.map +0 -1
- package/build/v1/users/schemas/toggle-marketing-consent-request.schema.d.ts +0 -4
- package/build/v1/users/schemas/toggle-marketing-consent-request.schema.js +0 -10
- package/build/v1/users/schemas/toggle-marketing-consent-request.schema.js.map +0 -1
|
@@ -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,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"}
|
package/build/v1/web-notifications/schemas/mark-web-notifications-read-up-to-request.schema.js
ADDED
|
@@ -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
|
package/build/v1/web-notifications/schemas/mark-web-notifications-read-up-to-request.schema.js.map
ADDED
|
@@ -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"}
|
package/build/v1/web-notifications/schemas/mark-web-notifications-read-up-to-response.schema.d.ts
ADDED
|
@@ -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>;
|
package/build/v1/web-notifications/schemas/mark-web-notifications-read-up-to-response.schema.js
ADDED
|
@@ -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
|
package/build/v1/web-notifications/schemas/mark-web-notifications-read-up-to-response.schema.js.map
ADDED
|
@@ -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,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>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WebNotificationSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const regex_1 = require("../../../shared/regex");
|
|
6
|
+
const notification_group_enum_1 = require("../../notifications/schemas/notification-group.enum");
|
|
7
|
+
exports.WebNotificationSchema = zod_1.z.object({
|
|
8
|
+
uuid: zod_1.z.string().regex(regex_1.UUID_REGEX),
|
|
9
|
+
messageId: zod_1.z.string().regex(regex_1.UUID_REGEX),
|
|
10
|
+
groupKey: zod_1.z.nativeEnum(notification_group_enum_1.NotificationGroup),
|
|
11
|
+
title: zod_1.z.string(),
|
|
12
|
+
bodyMd: zod_1.z.string(),
|
|
13
|
+
ctaLabel: zod_1.z.string().nullable(),
|
|
14
|
+
ctaUrl: zod_1.z.string().nullable(),
|
|
15
|
+
imageUrl: zod_1.z.string().nullable(),
|
|
16
|
+
readAt: zod_1.z.string().regex(regex_1.DATETIME_REGEX).nullable(),
|
|
17
|
+
createdAt: zod_1.z.string().regex(regex_1.DATETIME_REGEX),
|
|
18
|
+
});
|
|
19
|
+
//# sourceMappingURL=web-notification.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"web-notification.schema.js","sourceRoot":"","sources":["../../../../v1/web-notifications/schemas/web-notification.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,iDAAmE;AACnE,iGAAwF;AAE3E,QAAA,qBAAqB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC1C,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,kBAAU,CAAC;IAClC,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,kBAAU,CAAC;IACvC,QAAQ,EAAE,OAAC,CAAC,UAAU,CAAC,2CAAiB,CAAC;IACzC,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE;IACjB,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE;IAClB,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC/B,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC7B,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC/B,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,sBAAc,CAAC,CAAC,QAAQ,EAAE;IACnD,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,sBAAc,CAAC;CAC9C,CAAC,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const WebNotificationsResponseSchema: z.ZodObject<{
|
|
3
|
+
items: z.ZodArray<z.ZodObject<{
|
|
4
|
+
uuid: z.ZodString;
|
|
5
|
+
messageId: z.ZodString;
|
|
6
|
+
groupKey: z.ZodEnum<typeof import("../..").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
|
+
nextCursor: z.ZodNullable<z.ZodString>;
|
|
16
|
+
hasMore: z.ZodBoolean;
|
|
17
|
+
unreadCount: z.ZodNumber;
|
|
18
|
+
}, z.core.$strip>;
|
|
19
|
+
export type WebNotificationsResponseDto = z.infer<typeof WebNotificationsResponseSchema>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WebNotificationsResponseSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const web_notification_schema_1 = require("./web-notification.schema");
|
|
6
|
+
exports.WebNotificationsResponseSchema = zod_1.z.object({
|
|
7
|
+
items: zod_1.z.array(web_notification_schema_1.WebNotificationSchema),
|
|
8
|
+
nextCursor: zod_1.z.string().nullable(),
|
|
9
|
+
hasMore: zod_1.z.boolean(),
|
|
10
|
+
unreadCount: zod_1.z.number().int().nonnegative(),
|
|
11
|
+
});
|
|
12
|
+
//# sourceMappingURL=web-notifications-response.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"web-notifications-response.schema.js","sourceRoot":"","sources":["../../../../v1/web-notifications/schemas/web-notifications-response.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,uEAAkE;AAErD,QAAA,8BAA8B,GAAG,OAAC,CAAC,MAAM,CAAC;IACnD,KAAK,EAAE,OAAC,CAAC,KAAK,CAAC,+CAAqB,CAAC;IACrC,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjC,OAAO,EAAE,OAAC,CAAC,OAAO,EAAE;IACpB,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE;CAC9C,CAAC,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WebUnreadCountResponseSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.WebUnreadCountResponseSchema = zod_1.z.object({
|
|
6
|
+
unreadCount: zod_1.z.number().int().nonnegative(),
|
|
7
|
+
});
|
|
8
|
+
//# sourceMappingURL=web-unread-count-response.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"web-unread-count-response.schema.js","sourceRoot":"","sources":["../../../../v1/web-notifications/schemas/web-unread-count-response.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAEX,QAAA,4BAA4B,GAAG,OAAC,CAAC,MAAM,CAAC;IACjD,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE;CAC9C,CAAC,CAAC"}
|
|
@@ -7,8 +7,10 @@ export declare enum YandexAuthErrorCode {
|
|
|
7
7
|
AUTH_REQUEST_NOT_CONFIRMED = "YANDEX_AUTH_NOT_CONFIRMED",
|
|
8
8
|
TOO_MANY_PENDING_REQUESTS = "YANDEX_TOO_MANY_PENDING_REQUESTS",
|
|
9
9
|
STATE_ERROR = "YANDEX_STATE_ERROR",
|
|
10
|
+
CODE_ERROR = "YANDEX_CODE_ERROR",
|
|
10
11
|
GET_ACCESS_TOKEN_ERROR = "YANDEX_GET_ACCESS_TOKEN_ERROR",
|
|
11
12
|
GET_USER_INFO_ERROR = "YANDEX_GET_USER_INFO_ERROR",
|
|
12
|
-
REGISTER_CONFLICT = "YANDEX_REGISTER_CONFLICT"
|
|
13
|
+
REGISTER_CONFLICT = "YANDEX_REGISTER_CONFLICT",
|
|
14
|
+
IP_MISMATCH = "YANDEX_IP_MISMATCH"
|
|
13
15
|
}
|
|
14
16
|
export declare const YANDEX_AUTH_ERRORS: Record<YandexAuthErrorCode, ErrorMetadata>;
|
|
@@ -10,9 +10,11 @@ var YandexAuthErrorCode;
|
|
|
10
10
|
YandexAuthErrorCode["AUTH_REQUEST_NOT_CONFIRMED"] = "YANDEX_AUTH_NOT_CONFIRMED";
|
|
11
11
|
YandexAuthErrorCode["TOO_MANY_PENDING_REQUESTS"] = "YANDEX_TOO_MANY_PENDING_REQUESTS";
|
|
12
12
|
YandexAuthErrorCode["STATE_ERROR"] = "YANDEX_STATE_ERROR";
|
|
13
|
+
YandexAuthErrorCode["CODE_ERROR"] = "YANDEX_CODE_ERROR";
|
|
13
14
|
YandexAuthErrorCode["GET_ACCESS_TOKEN_ERROR"] = "YANDEX_GET_ACCESS_TOKEN_ERROR";
|
|
14
15
|
YandexAuthErrorCode["GET_USER_INFO_ERROR"] = "YANDEX_GET_USER_INFO_ERROR";
|
|
15
16
|
YandexAuthErrorCode["REGISTER_CONFLICT"] = "YANDEX_REGISTER_CONFLICT";
|
|
17
|
+
YandexAuthErrorCode["IP_MISMATCH"] = "YANDEX_IP_MISMATCH";
|
|
16
18
|
})(YandexAuthErrorCode || (exports.YandexAuthErrorCode = YandexAuthErrorCode = {}));
|
|
17
19
|
exports.YANDEX_AUTH_ERRORS = {
|
|
18
20
|
[YandexAuthErrorCode.AUTH_REQUEST_NOT_FOUND]: {
|
|
@@ -43,6 +45,10 @@ exports.YANDEX_AUTH_ERRORS = {
|
|
|
43
45
|
code: YandexAuthErrorCode.STATE_ERROR,
|
|
44
46
|
statusCode: 400,
|
|
45
47
|
},
|
|
48
|
+
[YandexAuthErrorCode.CODE_ERROR]: {
|
|
49
|
+
code: YandexAuthErrorCode.CODE_ERROR,
|
|
50
|
+
statusCode: 400,
|
|
51
|
+
},
|
|
46
52
|
[YandexAuthErrorCode.GET_ACCESS_TOKEN_ERROR]: {
|
|
47
53
|
code: YandexAuthErrorCode.GET_ACCESS_TOKEN_ERROR,
|
|
48
54
|
statusCode: 500,
|
|
@@ -55,5 +61,9 @@ exports.YANDEX_AUTH_ERRORS = {
|
|
|
55
61
|
code: YandexAuthErrorCode.REGISTER_CONFLICT,
|
|
56
62
|
statusCode: 409,
|
|
57
63
|
},
|
|
64
|
+
[YandexAuthErrorCode.IP_MISMATCH]: {
|
|
65
|
+
code: YandexAuthErrorCode.IP_MISMATCH,
|
|
66
|
+
statusCode: 403,
|
|
67
|
+
},
|
|
58
68
|
};
|
|
59
69
|
//# sourceMappingURL=yandex-auth.errors.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"yandex-auth.errors.js","sourceRoot":"","sources":["../../../v1/yandex-auth/yandex-auth.errors.ts"],"names":[],"mappings":";;;AAEA,IAAY,
|
|
1
|
+
{"version":3,"file":"yandex-auth.errors.js","sourceRoot":"","sources":["../../../v1/yandex-auth/yandex-auth.errors.ts"],"names":[],"mappings":";;;AAEA,IAAY,mBAaX;AAbD,WAAY,mBAAmB;IAC3B,+EAAwD,CAAA;IACxD,2EAAoD,CAAA;IACpD,uFAAgE,CAAA;IAChE,uFAAgE,CAAA;IAChE,+EAAwD,CAAA;IACxD,qFAA8D,CAAA;IAC9D,yDAAkC,CAAA;IAClC,uDAAgC,CAAA;IAChC,+EAAwD,CAAA;IACxD,yEAAkD,CAAA;IAClD,qEAA8C,CAAA;IAC9C,yDAAkC,CAAA;AACtC,CAAC,EAbW,mBAAmB,mCAAnB,mBAAmB,QAa9B;AAEY,QAAA,kBAAkB,GAA+C;IAC1E,CAAC,mBAAmB,CAAC,sBAAsB,CAAC,EAAE;QAC1C,IAAI,EAAE,mBAAmB,CAAC,sBAAsB;QAChD,UAAU,EAAE,GAAG;KAClB;IACD,CAAC,mBAAmB,CAAC,oBAAoB,CAAC,EAAE;QACxC,IAAI,EAAE,mBAAmB,CAAC,oBAAoB;QAC9C,UAAU,EAAE,GAAG;KAClB;IACD,CAAC,mBAAmB,CAAC,8BAA8B,CAAC,EAAE;QAClD,IAAI,EAAE,mBAAmB,CAAC,8BAA8B;QACxD,UAAU,EAAE,GAAG;KAClB;IACD,CAAC,mBAAmB,CAAC,8BAA8B,CAAC,EAAE;QAClD,IAAI,EAAE,mBAAmB,CAAC,8BAA8B;QACxD,UAAU,EAAE,GAAG;KAClB;IACD,CAAC,mBAAmB,CAAC,0BAA0B,CAAC,EAAE;QAC9C,IAAI,EAAE,mBAAmB,CAAC,0BAA0B;QACpD,UAAU,EAAE,GAAG;KAClB;IACD,CAAC,mBAAmB,CAAC,yBAAyB,CAAC,EAAE;QAC7C,IAAI,EAAE,mBAAmB,CAAC,yBAAyB;QACnD,UAAU,EAAE,GAAG;KAClB;IACD,CAAC,mBAAmB,CAAC,WAAW,CAAC,EAAE;QAC/B,IAAI,EAAE,mBAAmB,CAAC,WAAW;QACrC,UAAU,EAAE,GAAG;KAClB;IACD,CAAC,mBAAmB,CAAC,UAAU,CAAC,EAAE;QAC9B,IAAI,EAAE,mBAAmB,CAAC,UAAU;QACpC,UAAU,EAAE,GAAG;KAClB;IACD,CAAC,mBAAmB,CAAC,sBAAsB,CAAC,EAAE;QAC1C,IAAI,EAAE,mBAAmB,CAAC,sBAAsB;QAChD,UAAU,EAAE,GAAG;KAClB;IACD,CAAC,mBAAmB,CAAC,mBAAmB,CAAC,EAAE;QACvC,IAAI,EAAE,mBAAmB,CAAC,mBAAmB;QAC7C,UAAU,EAAE,GAAG;KAClB;IACD,CAAC,mBAAmB,CAAC,iBAAiB,CAAC,EAAE;QACrC,IAAI,EAAE,mBAAmB,CAAC,iBAAiB;QAC3C,UAAU,EAAE,GAAG;KAClB;IACD,CAAC,mBAAmB,CAAC,WAAW,CAAC,EAAE;QAC/B,IAAI,EAAE,mBAAmB,CAAC,WAAW;QACrC,UAAU,EAAE,GAAG;KAClB;CACK,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { HttpMethod } from '../../../shared/http-method';
|
|
3
|
-
export declare namespace UserToggleMarketingConsentCommand {
|
|
4
|
-
const Request: z.ZodObject<{
|
|
5
|
-
marketingConsent: z.ZodBoolean;
|
|
6
|
-
}, z.core.$strip>;
|
|
7
|
-
const Response: z.ZodObject<{
|
|
8
|
-
uuid: z.ZodString;
|
|
9
|
-
email: z.ZodNullable<z.ZodString>;
|
|
10
|
-
name: z.ZodString;
|
|
11
|
-
role: z.ZodString;
|
|
12
|
-
registerType: z.ZodEnum<typeof import("..").RegisterType>;
|
|
13
|
-
status: z.ZodEnum<typeof import("..").UserStatus>;
|
|
14
|
-
marketingConsent: z.ZodBoolean;
|
|
15
|
-
createdAt: z.ZodString;
|
|
16
|
-
}, z.core.$strip>;
|
|
17
|
-
const URL: "/api/v1/users/me/marketing-consent";
|
|
18
|
-
const METHOD = HttpMethod.PUT;
|
|
19
|
-
type RequestType = z.infer<typeof Request>;
|
|
20
|
-
type ResponseType = z.infer<typeof Response>;
|
|
21
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UserToggleMarketingConsentCommand = void 0;
|
|
4
|
-
const toggle_marketing_consent_request_schema_1 = require("../schemas/toggle-marketing-consent-request.schema");
|
|
5
|
-
const user_response_schema_1 = require("../schemas/user-response.schema");
|
|
6
|
-
const rest_api_1 = require("../../../rest-api");
|
|
7
|
-
const http_method_1 = require("../../../shared/http-method");
|
|
8
|
-
var UserToggleMarketingConsentCommand;
|
|
9
|
-
(function (UserToggleMarketingConsentCommand) {
|
|
10
|
-
UserToggleMarketingConsentCommand.Request = toggle_marketing_consent_request_schema_1.ToggleMarketingConsentRequestSchema;
|
|
11
|
-
UserToggleMarketingConsentCommand.Response = user_response_schema_1.UserResponseSchema;
|
|
12
|
-
UserToggleMarketingConsentCommand.URL = rest_api_1.REST_API.V1.USERS.ME_MARKETING_CONSENT;
|
|
13
|
-
UserToggleMarketingConsentCommand.METHOD = http_method_1.HttpMethod.PUT;
|
|
14
|
-
})(UserToggleMarketingConsentCommand || (exports.UserToggleMarketingConsentCommand = UserToggleMarketingConsentCommand = {}));
|
|
15
|
-
//# sourceMappingURL=toggle-marketing-consent.command.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"toggle-marketing-consent.command.js","sourceRoot":"","sources":["../../../../v1/users/commands/toggle-marketing-consent.command.ts"],"names":[],"mappings":";;;AACA,gHAAyG;AACzG,0EAAqE;AACrE,gDAA6C;AAC7C,6DAAyD;AAEzD,IAAiB,iCAAiC,CAOjD;AAPD,WAAiB,iCAAiC;IACnC,yCAAO,GAAG,6EAAmC,CAAC;IAC9C,0CAAQ,GAAG,yCAAkB,CAAC;IAC9B,qCAAG,GAAG,mBAAQ,CAAC,EAAE,CAAC,KAAK,CAAC,oBAAoB,CAAC;IAC7C,wCAAM,GAAG,wBAAU,CAAC,GAAG,CAAC;AAGvC,CAAC,EAPgB,iCAAiC,iDAAjC,iCAAiC,QAOjD"}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UserConfirmEmailVerificationQuery = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
const rest_api_1 = require("../../../rest-api");
|
|
6
|
-
const http_method_1 = require("../../../shared/http-method");
|
|
7
|
-
const email_verification_response_schema_1 = require("../schemas/email-verification-response.schema");
|
|
8
|
-
const regex_1 = require("../../../shared/regex");
|
|
9
|
-
var UserConfirmEmailVerificationQuery;
|
|
10
|
-
(function (UserConfirmEmailVerificationQuery) {
|
|
11
|
-
UserConfirmEmailVerificationQuery.Request = zod_1.z.object({
|
|
12
|
-
userId: zod_1.z
|
|
13
|
-
.string({ error: 'ConfirmEmailVerificationQuery.userId.required' })
|
|
14
|
-
.uuid({ message: 'ConfirmEmailVerificationQuery.userId.invalid' }),
|
|
15
|
-
token: zod_1.z
|
|
16
|
-
.string({ error: 'ConfirmEmailVerificationQuery.token.required' })
|
|
17
|
-
.regex(regex_1.EMAIL_VERIFICATION_TOKEN_REGEX, {
|
|
18
|
-
message: 'ConfirmEmailVerificationQuery.token.invalid',
|
|
19
|
-
}),
|
|
20
|
-
});
|
|
21
|
-
UserConfirmEmailVerificationQuery.Response = email_verification_response_schema_1.EmailVerificationConfirmResponseSchema;
|
|
22
|
-
UserConfirmEmailVerificationQuery.URL = rest_api_1.REST_API.V1.USERS.EMAIL_VERIFICATION_CONFIRM;
|
|
23
|
-
UserConfirmEmailVerificationQuery.METHOD = http_method_1.HttpMethod.GET;
|
|
24
|
-
})(UserConfirmEmailVerificationQuery || (exports.UserConfirmEmailVerificationQuery = UserConfirmEmailVerificationQuery = {}));
|
|
25
|
-
//# sourceMappingURL=confirm-email-verification.query.js.map
|
|
@@ -1 +0,0 @@
|
|
|
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,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ToggleMarketingConsentRequestSchema = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
exports.ToggleMarketingConsentRequestSchema = zod_1.z.object({
|
|
6
|
-
marketingConsent: zod_1.z.boolean({
|
|
7
|
-
error: 'ToggleMarketingConsentRequest.marketingConsent.required',
|
|
8
|
-
}),
|
|
9
|
-
});
|
|
10
|
-
//# sourceMappingURL=toggle-marketing-consent-request.schema.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"toggle-marketing-consent-request.schema.js","sourceRoot":"","sources":["../../../../v1/users/schemas/toggle-marketing-consent-request.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAMX,QAAA,mCAAmC,GAAG,OAAC,CAAC,MAAM,CAAC;IACxD,gBAAgB,EAAE,OAAC,CAAC,OAAO,CAAC;QACxB,KAAK,EAAE,yDAAyD;KACnE,CAAC;CACL,CAAC,CAAC"}
|