@veruna/api-contracts 15.1.0 → 17.0.0
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/index.d.ts +3 -1
- package/build/controllers/index.js +8 -2
- package/build/controllers/index.js.map +1 -1
- package/build/controllers/notifications.controllers.d.ts +1 -0
- package/build/controllers/notifications.controllers.js +2 -1
- package/build/controllers/notifications.controllers.js.map +1 -1
- package/build/controllers/offers-unreg.controllers.d.ts +1 -0
- package/build/controllers/offers-unreg.controllers.js +5 -0
- package/build/controllers/offers-unreg.controllers.js.map +1 -0
- package/build/controllers/offers.controllers.d.ts +1 -0
- package/build/controllers/offers.controllers.js +5 -0
- package/build/controllers/offers.controllers.js.map +1 -0
- package/build/locales/validation.d.ts +482 -0
- package/build/locales/validation.js +340 -0
- package/build/locales/validation.js.map +1 -1
- package/build/rest-api.d.ts +24 -0
- package/build/rest-api.js +24 -0
- package/build/rest-api.js.map +1 -1
- package/build/routes/index.d.ts +3 -1
- package/build/routes/index.js +7 -2
- package/build/routes/index.js.map +1 -1
- package/build/routes/notifications.routes.d.ts +3 -0
- package/build/routes/notifications.routes.js +4 -1
- package/build/routes/notifications.routes.js.map +1 -1
- package/build/routes/offers.routes.d.ts +16 -0
- package/build/routes/offers.routes.js +20 -0
- package/build/routes/offers.routes.js.map +1 -0
- package/build/routes/web-notifications.routes.d.ts +3 -0
- package/build/routes/web-notifications.routes.js +3 -0
- package/build/routes/web-notifications.routes.js.map +1 -1
- package/build/shared/frontend-routes.d.ts +2 -0
- package/build/shared/frontend-routes.js +9 -1
- package/build/shared/frontend-routes.js.map +1 -1
- package/build/shared/regex.d.ts +1 -0
- package/build/shared/regex.js +2 -1
- package/build/shared/regex.js.map +1 -1
- package/build/tsconfig.tsbuildinfo +1 -1
- package/build/v1/ai/ai.errors.d.ts +1 -0
- package/build/v1/ai/ai.errors.js +5 -0
- package/build/v1/ai/ai.errors.js.map +1 -1
- package/build/v1/attribution/schemas/conversion-type.enum.d.ts +6 -1
- package/build/v1/attribution/schemas/conversion-type.enum.js +5 -0
- package/build/v1/attribution/schemas/conversion-type.enum.js.map +1 -1
- package/build/v1/engagement/schemas/lifecycle-campaign.enum.d.ts +0 -6
- package/build/v1/engagement/schemas/lifecycle-campaign.enum.js +0 -6
- package/build/v1/engagement/schemas/lifecycle-campaign.enum.js.map +1 -1
- package/build/v1/engagement/schemas/lifecycle-stage.enum.d.ts +3 -0
- package/build/v1/engagement/schemas/lifecycle-stage.enum.js +3 -0
- package/build/v1/engagement/schemas/lifecycle-stage.enum.js.map +1 -1
- package/build/v1/engagement/schemas/suppression-channel.enum.d.ts +3 -1
- package/build/v1/engagement/schemas/suppression-channel.enum.js +2 -0
- package/build/v1/engagement/schemas/suppression-channel.enum.js.map +1 -1
- package/build/v1/index.d.ts +1 -0
- package/build/v1/index.js +1 -0
- package/build/v1/index.js.map +1 -1
- package/build/v1/notifications/schemas/email-template.enum.d.ts +2 -8
- package/build/v1/notifications/schemas/email-template.enum.js +1 -7
- package/build/v1/notifications/schemas/email-template.enum.js.map +1 -1
- package/build/v1/notifications/schemas/index.d.ts +1 -0
- package/build/v1/notifications/schemas/index.js +1 -0
- package/build/v1/notifications/schemas/index.js.map +1 -1
- package/build/v1/notifications/schemas/notification-channel.enum.d.ts +3 -1
- package/build/v1/notifications/schemas/notification-channel.enum.js +2 -0
- package/build/v1/notifications/schemas/notification-channel.enum.js.map +1 -1
- package/build/v1/notifications/schemas/notification-job-status.enum.d.ts +2 -1
- package/build/v1/notifications/schemas/notification-job-status.enum.js +1 -0
- package/build/v1/notifications/schemas/notification-job-status.enum.js.map +1 -1
- package/build/v1/notifications/schemas/unsubscribe-params.schema.d.ts +6 -0
- package/build/v1/notifications/schemas/unsubscribe-params.schema.js +16 -0
- package/build/v1/notifications/schemas/unsubscribe-params.schema.js.map +1 -0
- package/build/v1/offers/commands/admin-create-offer-campaign.command.d.ts +125 -0
- package/build/v1/offers/commands/admin-create-offer-campaign.command.js +14 -0
- package/build/v1/offers/commands/admin-create-offer-campaign.command.js.map +1 -0
- package/build/v1/offers/commands/admin-delete-offer-campaign.command.d.ts +12 -0
- package/build/v1/offers/commands/admin-delete-offer-campaign.command.js +15 -0
- package/build/v1/offers/commands/admin-delete-offer-campaign.command.js.map +1 -0
- package/build/v1/offers/commands/admin-issue-offer-campaign.command.d.ts +15 -0
- package/build/v1/offers/commands/admin-issue-offer-campaign.command.js +14 -0
- package/build/v1/offers/commands/admin-issue-offer-campaign.command.js.map +1 -0
- package/build/v1/offers/commands/admin-revoke-offer-campaign.command.d.ts +16 -0
- package/build/v1/offers/commands/admin-revoke-offer-campaign.command.js +15 -0
- package/build/v1/offers/commands/admin-revoke-offer-campaign.command.js.map +1 -0
- package/build/v1/offers/commands/admin-update-offer-campaign.command.d.ts +124 -0
- package/build/v1/offers/commands/admin-update-offer-campaign.command.js +14 -0
- package/build/v1/offers/commands/admin-update-offer-campaign.command.js.map +1 -0
- package/build/v1/offers/commands/index.d.ts +6 -0
- package/build/v1/offers/commands/index.js +25 -0
- package/build/v1/offers/commands/index.js.map +1 -0
- package/build/v1/offers/commands/unreg-track-header-offer.command.d.ts +11 -0
- package/build/v1/offers/commands/unreg-track-header-offer.command.js +15 -0
- package/build/v1/offers/commands/unreg-track-header-offer.command.js.map +1 -0
- package/build/v1/offers/index.d.ts +6 -0
- package/build/v1/offers/index.js +26 -0
- package/build/v1/offers/index.js.map +1 -0
- package/build/v1/offers/offers.errors.d.ts +13 -0
- package/build/v1/offers/offers.errors.js +54 -0
- package/build/v1/offers/offers.errors.js.map +1 -0
- package/build/v1/offers/queries/admin-get-offer-campaign-by-id.query.d.ts +70 -0
- package/build/v1/offers/queries/admin-get-offer-campaign-by-id.query.js +15 -0
- package/build/v1/offers/queries/admin-get-offer-campaign-by-id.query.js.map +1 -0
- package/build/v1/offers/queries/admin-get-offer-campaign-stats.query.d.ts +21 -0
- package/build/v1/offers/queries/admin-get-offer-campaign-stats.query.js +15 -0
- package/build/v1/offers/queries/admin-get-offer-campaign-stats.query.js.map +1 -0
- package/build/v1/offers/queries/admin-list-offer-campaigns.query.d.ts +83 -0
- package/build/v1/offers/queries/admin-list-offer-campaigns.query.js +14 -0
- package/build/v1/offers/queries/admin-list-offer-campaigns.query.js.map +1 -0
- package/build/v1/offers/queries/admin-list-user-offers.query.d.ts +34 -0
- package/build/v1/offers/queries/admin-list-user-offers.query.js +14 -0
- package/build/v1/offers/queries/admin-list-user-offers.query.js.map +1 -0
- package/build/v1/offers/queries/index.d.ts +5 -0
- package/build/v1/offers/queries/index.js +24 -0
- package/build/v1/offers/queries/index.js.map +1 -0
- package/build/v1/offers/queries/unreg-get-header-offer.query.d.ts +23 -0
- package/build/v1/offers/queries/unreg-get-header-offer.query.js +15 -0
- package/build/v1/offers/queries/unreg-get-header-offer.query.js.map +1 -0
- package/build/v1/offers/schemas/admin-list-offer-campaigns-filters.schema.d.ts +18 -0
- package/build/v1/offers/schemas/admin-list-offer-campaigns-filters.schema.js +45 -0
- package/build/v1/offers/schemas/admin-list-offer-campaigns-filters.schema.js.map +1 -0
- package/build/v1/offers/schemas/admin-list-user-offers-filters.schema.d.ts +9 -0
- package/build/v1/offers/schemas/admin-list-user-offers-filters.schema.js +25 -0
- package/build/v1/offers/schemas/admin-list-user-offers-filters.schema.js.map +1 -0
- package/build/v1/offers/schemas/admin-offer-campaign-sort.enum.d.ts +6 -0
- package/build/v1/offers/schemas/admin-offer-campaign-sort.enum.js +11 -0
- package/build/v1/offers/schemas/admin-offer-campaign-sort.enum.js.map +1 -0
- package/build/v1/offers/schemas/guest-offer-banner.schema.d.ts +30 -0
- package/build/v1/offers/schemas/guest-offer-banner.schema.js +21 -0
- package/build/v1/offers/schemas/guest-offer-banner.schema.js.map +1 -0
- package/build/v1/offers/schemas/index.d.ts +18 -0
- package/build/v1/offers/schemas/index.js +39 -0
- package/build/v1/offers/schemas/index.js.map +1 -0
- package/build/v1/offers/schemas/offer-audience.schema.d.ts +7 -0
- package/build/v1/offers/schemas/offer-audience.schema.js +18 -0
- package/build/v1/offers/schemas/offer-audience.schema.js.map +1 -0
- package/build/v1/offers/schemas/offer-campaign-stats.schema.d.ts +14 -0
- package/build/v1/offers/schemas/offer-campaign-stats.schema.js +17 -0
- package/build/v1/offers/schemas/offer-campaign-stats.schema.js.map +1 -0
- package/build/v1/offers/schemas/offer-campaign-status.enum.d.ts +5 -0
- package/build/v1/offers/schemas/offer-campaign-status.enum.js +10 -0
- package/build/v1/offers/schemas/offer-campaign-status.enum.js.map +1 -0
- package/build/v1/offers/schemas/offer-campaign.schema.d.ts +268 -0
- package/build/v1/offers/schemas/offer-campaign.schema.js +248 -0
- package/build/v1/offers/schemas/offer-campaign.schema.js.map +1 -0
- package/build/v1/offers/schemas/offer-countdown-mode.enum.d.ts +5 -0
- package/build/v1/offers/schemas/offer-countdown-mode.enum.js +10 -0
- package/build/v1/offers/schemas/offer-countdown-mode.enum.js.map +1 -0
- package/build/v1/offers/schemas/offer-cta-action.enum.d.ts +4 -0
- package/build/v1/offers/schemas/offer-cta-action.enum.js +9 -0
- package/build/v1/offers/schemas/offer-cta-action.enum.js.map +1 -0
- package/build/v1/offers/schemas/offer-presentation.schema.d.ts +47 -0
- package/build/v1/offers/schemas/offer-presentation.schema.js +97 -0
- package/build/v1/offers/schemas/offer-presentation.schema.js.map +1 -0
- package/build/v1/offers/schemas/offer-promo-template.schema.d.ts +28 -0
- package/build/v1/offers/schemas/offer-promo-template.schema.js +44 -0
- package/build/v1/offers/schemas/offer-promo-template.schema.js.map +1 -0
- package/build/v1/offers/schemas/offer-trigger-type.enum.d.ts +5 -0
- package/build/v1/offers/schemas/offer-trigger-type.enum.js +10 -0
- package/build/v1/offers/schemas/offer-trigger-type.enum.js.map +1 -0
- package/build/v1/offers/schemas/unreg-track-header-offer-request.schema.d.ts +5 -0
- package/build/v1/offers/schemas/unreg-track-header-offer-request.schema.js +11 -0
- package/build/v1/offers/schemas/unreg-track-header-offer-request.schema.js.map +1 -0
- package/build/v1/offers/schemas/user-offer-event-type.enum.d.ts +6 -0
- package/build/v1/offers/schemas/user-offer-event-type.enum.js +11 -0
- package/build/v1/offers/schemas/user-offer-event-type.enum.js.map +1 -0
- package/build/v1/offers/schemas/user-offer-status.enum.d.ts +9 -0
- package/build/v1/offers/schemas/user-offer-status.enum.js +14 -0
- package/build/v1/offers/schemas/user-offer-status.enum.js.map +1 -0
- package/build/v1/offers/schemas/user-offer.schema.d.ts +41 -0
- package/build/v1/offers/schemas/user-offer.schema.js +28 -0
- package/build/v1/offers/schemas/user-offer.schema.js.map +1 -0
- package/build/v1/web-notifications/commands/dismiss-web-notification.command.d.ts +12 -0
- package/build/v1/web-notifications/commands/dismiss-web-notification.command.js +15 -0
- package/build/v1/web-notifications/commands/dismiss-web-notification.command.js.map +1 -0
- package/build/v1/web-notifications/commands/index.d.ts +3 -0
- package/build/v1/web-notifications/commands/index.js +3 -0
- package/build/v1/web-notifications/commands/index.js.map +1 -1
- package/build/v1/web-notifications/commands/track-web-notification-click.command.d.ts +12 -0
- package/build/v1/web-notifications/commands/track-web-notification-click.command.js +15 -0
- package/build/v1/web-notifications/commands/track-web-notification-click.command.js.map +1 -0
- package/build/v1/web-notifications/commands/track-web-notification-impression.command.d.ts +12 -0
- package/build/v1/web-notifications/commands/track-web-notification-impression.command.js +15 -0
- package/build/v1/web-notifications/commands/track-web-notification-impression.command.js.map +1 -0
- package/build/v1/web-notifications/queries/get-web-notifications.query.d.ts +6 -0
- package/build/v1/web-notifications/queries/get-web-unread-count.query.d.ts +2 -0
- package/build/v1/web-notifications/schemas/dismiss-web-notification-response.schema.d.ts +5 -0
- package/build/v1/web-notifications/schemas/dismiss-web-notification-response.schema.js +8 -0
- package/build/v1/web-notifications/schemas/dismiss-web-notification-response.schema.js.map +1 -0
- package/build/v1/web-notifications/schemas/get-web-notifications-query.schema.d.ts +4 -0
- package/build/v1/web-notifications/schemas/get-web-notifications-query.schema.js +20 -0
- package/build/v1/web-notifications/schemas/get-web-notifications-query.schema.js.map +1 -1
- package/build/v1/web-notifications/schemas/index.d.ts +2 -0
- package/build/v1/web-notifications/schemas/index.js +2 -0
- package/build/v1/web-notifications/schemas/index.js.map +1 -1
- package/build/v1/web-notifications/schemas/track-web-notification-engagement-response.schema.d.ts +5 -0
- package/build/v1/web-notifications/schemas/track-web-notification-engagement-response.schema.js +8 -0
- package/build/v1/web-notifications/schemas/track-web-notification-engagement-response.schema.js.map +1 -0
- package/build/v1/web-notifications/schemas/web-notification.schema.d.ts +4 -0
- package/build/v1/web-notifications/schemas/web-notification.schema.js +4 -0
- package/build/v1/web-notifications/schemas/web-notification.schema.js.map +1 -1
- package/build/v1/web-notifications/schemas/web-notifications-response.schema.d.ts +4 -0
- package/build/v1/web-notifications/schemas/web-unread-count-response.schema.d.ts +3 -0
- package/build/v1/web-notifications/schemas/web-unread-count-response.schema.js +3 -0
- package/build/v1/web-notifications/schemas/web-unread-count-response.schema.js.map +1 -1
- package/build-esm/.tsbuildinfo +1 -1
- package/build-esm/controllers/index.js +3 -1
- package/build-esm/controllers/index.js.map +1 -1
- package/build-esm/controllers/notifications.controllers.js +1 -0
- package/build-esm/controllers/notifications.controllers.js.map +1 -1
- package/build-esm/controllers/offers-unreg.controllers.js +2 -0
- package/build-esm/controllers/offers-unreg.controllers.js.map +1 -0
- package/build-esm/controllers/offers.controllers.js +2 -0
- package/build-esm/controllers/offers.controllers.js.map +1 -0
- package/build-esm/locales/validation.js +340 -0
- package/build-esm/locales/validation.js.map +1 -1
- package/build-esm/rest-api.js +26 -2
- package/build-esm/rest-api.js.map +1 -1
- package/build-esm/routes/index.js +3 -1
- package/build-esm/routes/index.js.map +1 -1
- package/build-esm/routes/notifications.routes.js +3 -0
- package/build-esm/routes/notifications.routes.js.map +1 -1
- package/build-esm/routes/offers.routes.js +17 -0
- package/build-esm/routes/offers.routes.js.map +1 -0
- package/build-esm/routes/web-notifications.routes.js +3 -0
- package/build-esm/routes/web-notifications.routes.js.map +1 -1
- package/build-esm/shared/frontend-routes.js +7 -0
- package/build-esm/shared/frontend-routes.js.map +1 -1
- package/build-esm/shared/regex.js +1 -0
- package/build-esm/shared/regex.js.map +1 -1
- package/build-esm/v1/ai/ai.errors.js +5 -0
- package/build-esm/v1/ai/ai.errors.js.map +1 -1
- package/build-esm/v1/attribution/schemas/conversion-type.enum.js +5 -0
- package/build-esm/v1/attribution/schemas/conversion-type.enum.js.map +1 -1
- package/build-esm/v1/engagement/schemas/lifecycle-campaign.enum.js +0 -6
- package/build-esm/v1/engagement/schemas/lifecycle-campaign.enum.js.map +1 -1
- package/build-esm/v1/engagement/schemas/lifecycle-stage.enum.js +3 -0
- package/build-esm/v1/engagement/schemas/lifecycle-stage.enum.js.map +1 -1
- package/build-esm/v1/engagement/schemas/suppression-channel.enum.js +2 -0
- package/build-esm/v1/engagement/schemas/suppression-channel.enum.js.map +1 -1
- package/build-esm/v1/index.js +1 -0
- package/build-esm/v1/index.js.map +1 -1
- package/build-esm/v1/notifications/schemas/email-template.enum.js +1 -7
- package/build-esm/v1/notifications/schemas/email-template.enum.js.map +1 -1
- package/build-esm/v1/notifications/schemas/index.js +1 -0
- package/build-esm/v1/notifications/schemas/index.js.map +1 -1
- package/build-esm/v1/notifications/schemas/notification-channel.enum.js +2 -0
- package/build-esm/v1/notifications/schemas/notification-channel.enum.js.map +1 -1
- package/build-esm/v1/notifications/schemas/notification-job-status.enum.js +1 -0
- package/build-esm/v1/notifications/schemas/notification-job-status.enum.js.map +1 -1
- package/build-esm/v1/notifications/schemas/unsubscribe-params.schema.js +13 -0
- package/build-esm/v1/notifications/schemas/unsubscribe-params.schema.js.map +1 -0
- package/build-esm/v1/offers/commands/admin-create-offer-campaign.command.js +11 -0
- package/build-esm/v1/offers/commands/admin-create-offer-campaign.command.js.map +1 -0
- package/build-esm/v1/offers/commands/admin-delete-offer-campaign.command.js +12 -0
- package/build-esm/v1/offers/commands/admin-delete-offer-campaign.command.js.map +1 -0
- package/build-esm/v1/offers/commands/admin-issue-offer-campaign.command.js +11 -0
- package/build-esm/v1/offers/commands/admin-issue-offer-campaign.command.js.map +1 -0
- package/build-esm/v1/offers/commands/admin-revoke-offer-campaign.command.js +12 -0
- package/build-esm/v1/offers/commands/admin-revoke-offer-campaign.command.js.map +1 -0
- package/build-esm/v1/offers/commands/admin-update-offer-campaign.command.js +11 -0
- package/build-esm/v1/offers/commands/admin-update-offer-campaign.command.js.map +1 -0
- package/build-esm/v1/offers/commands/index.js +7 -0
- package/build-esm/v1/offers/commands/index.js.map +1 -0
- package/build-esm/v1/offers/commands/unreg-track-header-offer.command.js +12 -0
- package/build-esm/v1/offers/commands/unreg-track-header-offer.command.js.map +1 -0
- package/build-esm/v1/offers/index.js +7 -0
- package/build-esm/v1/offers/index.js.map +1 -0
- package/build-esm/v1/offers/offers.errors.js +51 -0
- package/build-esm/v1/offers/offers.errors.js.map +1 -0
- package/build-esm/v1/offers/queries/admin-get-offer-campaign-by-id.query.js +12 -0
- package/build-esm/v1/offers/queries/admin-get-offer-campaign-by-id.query.js.map +1 -0
- package/build-esm/v1/offers/queries/admin-get-offer-campaign-stats.query.js +12 -0
- package/build-esm/v1/offers/queries/admin-get-offer-campaign-stats.query.js.map +1 -0
- package/build-esm/v1/offers/queries/admin-list-offer-campaigns.query.js +11 -0
- package/build-esm/v1/offers/queries/admin-list-offer-campaigns.query.js.map +1 -0
- package/build-esm/v1/offers/queries/admin-list-user-offers.query.js +11 -0
- package/build-esm/v1/offers/queries/admin-list-user-offers.query.js.map +1 -0
- package/build-esm/v1/offers/queries/index.js +6 -0
- package/build-esm/v1/offers/queries/index.js.map +1 -0
- package/build-esm/v1/offers/queries/unreg-get-header-offer.query.js +12 -0
- package/build-esm/v1/offers/queries/unreg-get-header-offer.query.js.map +1 -0
- package/build-esm/v1/offers/schemas/admin-list-offer-campaigns-filters.schema.js +42 -0
- package/build-esm/v1/offers/schemas/admin-list-offer-campaigns-filters.schema.js.map +1 -0
- package/build-esm/v1/offers/schemas/admin-list-user-offers-filters.schema.js +22 -0
- package/build-esm/v1/offers/schemas/admin-list-user-offers-filters.schema.js.map +1 -0
- package/build-esm/v1/offers/schemas/admin-offer-campaign-sort.enum.js +8 -0
- package/build-esm/v1/offers/schemas/admin-offer-campaign-sort.enum.js.map +1 -0
- package/build-esm/v1/offers/schemas/guest-offer-banner.schema.js +18 -0
- package/build-esm/v1/offers/schemas/guest-offer-banner.schema.js.map +1 -0
- package/build-esm/v1/offers/schemas/index.js +18 -0
- package/build-esm/v1/offers/schemas/index.js.map +1 -0
- package/build-esm/v1/offers/schemas/offer-audience.schema.js +15 -0
- package/build-esm/v1/offers/schemas/offer-audience.schema.js.map +1 -0
- package/build-esm/v1/offers/schemas/offer-campaign-stats.schema.js +14 -0
- package/build-esm/v1/offers/schemas/offer-campaign-stats.schema.js.map +1 -0
- package/build-esm/v1/offers/schemas/offer-campaign-status.enum.js +7 -0
- package/build-esm/v1/offers/schemas/offer-campaign-status.enum.js.map +1 -0
- package/build-esm/v1/offers/schemas/offer-campaign.schema.js +245 -0
- package/build-esm/v1/offers/schemas/offer-campaign.schema.js.map +1 -0
- package/build-esm/v1/offers/schemas/offer-countdown-mode.enum.js +7 -0
- package/build-esm/v1/offers/schemas/offer-countdown-mode.enum.js.map +1 -0
- package/build-esm/v1/offers/schemas/offer-cta-action.enum.js +6 -0
- package/build-esm/v1/offers/schemas/offer-cta-action.enum.js.map +1 -0
- package/build-esm/v1/offers/schemas/offer-presentation.schema.js +94 -0
- package/build-esm/v1/offers/schemas/offer-presentation.schema.js.map +1 -0
- package/build-esm/v1/offers/schemas/offer-promo-template.schema.js +41 -0
- package/build-esm/v1/offers/schemas/offer-promo-template.schema.js.map +1 -0
- package/build-esm/v1/offers/schemas/offer-trigger-type.enum.js +7 -0
- package/build-esm/v1/offers/schemas/offer-trigger-type.enum.js.map +1 -0
- package/build-esm/v1/offers/schemas/unreg-track-header-offer-request.schema.js +8 -0
- package/build-esm/v1/offers/schemas/unreg-track-header-offer-request.schema.js.map +1 -0
- package/build-esm/v1/offers/schemas/user-offer-event-type.enum.js +8 -0
- package/build-esm/v1/offers/schemas/user-offer-event-type.enum.js.map +1 -0
- package/build-esm/v1/offers/schemas/user-offer-status.enum.js +11 -0
- package/build-esm/v1/offers/schemas/user-offer-status.enum.js.map +1 -0
- package/build-esm/v1/offers/schemas/user-offer.schema.js +25 -0
- package/build-esm/v1/offers/schemas/user-offer.schema.js.map +1 -0
- package/build-esm/v1/web-notifications/commands/dismiss-web-notification.command.js +12 -0
- package/build-esm/v1/web-notifications/commands/dismiss-web-notification.command.js.map +1 -0
- package/build-esm/v1/web-notifications/commands/index.js +3 -0
- package/build-esm/v1/web-notifications/commands/index.js.map +1 -1
- package/build-esm/v1/web-notifications/commands/track-web-notification-click.command.js +12 -0
- package/build-esm/v1/web-notifications/commands/track-web-notification-click.command.js.map +1 -0
- package/build-esm/v1/web-notifications/commands/track-web-notification-impression.command.js +12 -0
- package/build-esm/v1/web-notifications/commands/track-web-notification-impression.command.js.map +1 -0
- package/build-esm/v1/web-notifications/schemas/dismiss-web-notification-response.schema.js +5 -0
- package/build-esm/v1/web-notifications/schemas/dismiss-web-notification-response.schema.js.map +1 -0
- package/build-esm/v1/web-notifications/schemas/get-web-notifications-query.schema.js +20 -0
- package/build-esm/v1/web-notifications/schemas/get-web-notifications-query.schema.js.map +1 -1
- package/build-esm/v1/web-notifications/schemas/index.js +2 -0
- package/build-esm/v1/web-notifications/schemas/index.js.map +1 -1
- package/build-esm/v1/web-notifications/schemas/track-web-notification-engagement-response.schema.js +5 -0
- package/build-esm/v1/web-notifications/schemas/track-web-notification-engagement-response.schema.js.map +1 -0
- package/build-esm/v1/web-notifications/schemas/web-notification.schema.js +4 -0
- package/build-esm/v1/web-notifications/schemas/web-notification.schema.js.map +1 -1
- package/build-esm/v1/web-notifications/schemas/web-unread-count-response.schema.js +3 -0
- package/build-esm/v1/web-notifications/schemas/web-unread-count-response.schema.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
import { NotificationChannel } from '../../notifications/schemas/notification-channel.enum';
|
|
3
|
+
import { NotificationGroup } from '../../notifications/schemas/notification-group.enum';
|
|
2
4
|
import { WebNotificationStatusFilter } from './web-notification-status-filter.enum';
|
|
5
|
+
const WEB_NOTIFICATION_CHANNELS = new Set([
|
|
6
|
+
NotificationChannel.WEB,
|
|
7
|
+
NotificationChannel.HOME,
|
|
8
|
+
NotificationChannel.HEADER,
|
|
9
|
+
]);
|
|
3
10
|
export const GetWebNotificationsQuerySchema = z.object({
|
|
4
11
|
status: z
|
|
5
12
|
.nativeEnum(WebNotificationStatusFilter, {
|
|
@@ -15,5 +22,18 @@ export const GetWebNotificationsQuerySchema = z.object({
|
|
|
15
22
|
.max(100, { message: 'GetWebNotificationsQuery.limit.max' })
|
|
16
23
|
.optional(),
|
|
17
24
|
cursor: z.string({ error: 'GetWebNotificationsQuery.cursor.invalid' }).optional(),
|
|
25
|
+
channel: z
|
|
26
|
+
.nativeEnum(NotificationChannel, {
|
|
27
|
+
error: 'GetWebNotificationsQuery.channel.invalid',
|
|
28
|
+
})
|
|
29
|
+
.refine((value) => WEB_NOTIFICATION_CHANNELS.has(value), {
|
|
30
|
+
message: 'GetWebNotificationsQuery.channel.invalid',
|
|
31
|
+
})
|
|
32
|
+
.optional(),
|
|
33
|
+
groupKey: z
|
|
34
|
+
.nativeEnum(NotificationGroup, {
|
|
35
|
+
error: 'GetWebNotificationsQuery.groupKey.invalid',
|
|
36
|
+
})
|
|
37
|
+
.optional(),
|
|
18
38
|
});
|
|
19
39
|
//# sourceMappingURL=get-web-notifications-query.schema.js.map
|
|
@@ -1 +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,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,2BAA2B,EAAE,MAAM,uCAAuC,CAAC;
|
|
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,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,mBAAmB,EAAE,MAAM,uDAAuD,CAAC;AAC5F,OAAO,EAAE,iBAAiB,EAAE,MAAM,qDAAqD,CAAC;AACxF,OAAO,EAAE,2BAA2B,EAAE,MAAM,uCAAuC,CAAC;AAGpF,MAAM,yBAAyB,GAAG,IAAI,GAAG,CAAsB;IAC3D,mBAAmB,CAAC,GAAG;IACvB,mBAAmB,CAAC,IAAI;IACxB,mBAAmB,CAAC,MAAM;CAC7B,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,8BAA8B,GAAG,CAAC,CAAC,MAAM,CAAC;IACnD,MAAM,EAAE,CAAC;SACJ,UAAU,CAAC,2BAA2B,EAAE;QACrC,KAAK,EAAE,yCAAyC;KACnD,CAAC;SACD,QAAQ,EAAE;IACf,KAAK,EAAE,CAAC,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,CAAC,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,yCAAyC,EAAE,CAAC,CAAC,QAAQ,EAAE;IAEjF,OAAO,EAAE,CAAC;SACL,UAAU,CAAC,mBAAmB,EAAE;QAC7B,KAAK,EAAE,0CAA0C;KACpD,CAAC;SACD,MAAM,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,yBAAyB,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE;QACrD,OAAO,EAAE,0CAA0C;KACtD,CAAC;SACD,QAAQ,EAAE;IAEf,QAAQ,EAAE,CAAC;SACN,UAAU,CAAC,iBAAiB,EAAE;QAC3B,KAAK,EAAE,2CAA2C;KACrD,CAAC;SACD,QAAQ,EAAE;CAClB,CAAC,CAAC"}
|
|
@@ -5,4 +5,6 @@ export * from './get-web-notifications-query.schema';
|
|
|
5
5
|
export * from './mark-web-notifications-read-up-to-request.schema';
|
|
6
6
|
export * from './mark-web-notifications-read-up-to-response.schema';
|
|
7
7
|
export * from './web-unread-count-response.schema';
|
|
8
|
+
export * from './dismiss-web-notification-response.schema';
|
|
9
|
+
export * from './track-web-notification-engagement-response.schema';
|
|
8
10
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../v1/web-notifications/schemas/index.ts"],"names":[],"mappings":"AAAA,cAAc,uCAAuC,CAAC;AACtD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,qCAAqC,CAAC;AACpD,cAAc,sCAAsC,CAAC;AACrD,cAAc,oDAAoD,CAAC;AACnE,cAAc,qDAAqD,CAAC;AACpE,cAAc,oCAAoC,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../v1/web-notifications/schemas/index.ts"],"names":[],"mappings":"AAAA,cAAc,uCAAuC,CAAC;AACtD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,qCAAqC,CAAC;AACpD,cAAc,sCAAsC,CAAC;AACrD,cAAc,oDAAoD,CAAC;AACnE,cAAc,qDAAqD,CAAC;AACpE,cAAc,oCAAoC,CAAC;AACnD,cAAc,4CAA4C,CAAC;AAC3D,cAAc,qDAAqD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"track-web-notification-engagement-response.schema.js","sourceRoot":"","sources":["../../../../v1/web-notifications/schemas/track-web-notification-engagement-response.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB,MAAM,CAAC,MAAM,4CAA4C,GAAG,CAAC,CAAC,MAAM,CAAC;IACjE,OAAO,EAAE,CAAC,CAAC,OAAO,EAAE;CACvB,CAAC,CAAC"}
|
|
@@ -10,6 +10,10 @@ export const WebNotificationSchema = z.object({
|
|
|
10
10
|
ctaLabel: z.string().nullable(),
|
|
11
11
|
ctaUrl: z.string().nullable(),
|
|
12
12
|
imageUrl: z.string().nullable(),
|
|
13
|
+
variant: z.string().nullable(),
|
|
14
|
+
badge: z.string().nullable(),
|
|
15
|
+
dismissible: z.boolean(),
|
|
16
|
+
countdownUntil: z.string().regex(DATETIME_REGEX).nullable(),
|
|
13
17
|
readAt: z.string().regex(DATETIME_REGEX).nullable(),
|
|
14
18
|
createdAt: z.string().regex(DATETIME_REGEX),
|
|
15
19
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"web-notification.schema.js","sourceRoot":"","sources":["../../../../v1/web-notifications/schemas/web-notification.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACnE,OAAO,EAAE,iBAAiB,EAAE,MAAM,qDAAqD,CAAC;AAExF,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC1C,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,UAAU,CAAC;IAClC,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,UAAU,CAAC;IACvC,QAAQ,EAAE,CAAC,CAAC,IAAI,CAAC,iBAAiB,CAAC;IACnC,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;IAClB,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC/B,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC7B,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;
|
|
1
|
+
{"version":3,"file":"web-notification.schema.js","sourceRoot":"","sources":["../../../../v1/web-notifications/schemas/web-notification.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACnE,OAAO,EAAE,iBAAiB,EAAE,MAAM,qDAAqD,CAAC;AAExF,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC1C,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,UAAU,CAAC;IAClC,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,UAAU,CAAC;IACvC,QAAQ,EAAE,CAAC,CAAC,IAAI,CAAC,iBAAiB,CAAC;IACnC,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;IAClB,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC/B,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC7B,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAO/B,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC9B,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAE5B,WAAW,EAAE,CAAC,CAAC,OAAO,EAAE;IAKxB,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC,QAAQ,EAAE;IAC3D,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC,QAAQ,EAAE;IACnD,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,cAAc,CAAC;CAC9C,CAAC,CAAC"}
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
import { NotificationGroup } from '../../notifications/schemas/notification-group.enum';
|
|
2
3
|
export const WebUnreadCountResponseSchema = z.object({
|
|
3
4
|
unreadCount: z.number().int().nonnegative(),
|
|
5
|
+
total: z.number().int().nonnegative(),
|
|
6
|
+
byGroup: z.record(z.enum(NotificationGroup), z.number().int().nonnegative()),
|
|
4
7
|
});
|
|
5
8
|
//# sourceMappingURL=web-unread-count-response.schema.js.map
|
|
@@ -1 +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,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
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,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,iBAAiB,EAAE,MAAM,qDAAqD,CAAC;AAExF,MAAM,CAAC,MAAM,4BAA4B,GAAG,CAAC,CAAC,MAAM,CAAC;IAKjD,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE;IAC3C,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE;IAErC,OAAO,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,iBAAiB,CAAC,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE,CAAC;CAC/E,CAAC,CAAC"}
|