@lyxa.ai/marketing 1.0.52 → 1.0.54
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/dist/lib/index.d.ts +946 -53
- package/dist/lib/index.d.ts.map +1 -1
- package/dist/lib/index.js +1 -1
- package/dist/lib/index.js.map +1 -1
- package/dist/lib/modules/coupon/routers/coupon.router.d.ts +647 -0
- package/dist/lib/modules/coupon/routers/coupon.router.d.ts.map +1 -1
- package/dist/lib/modules/coupon/routers/coupon.router.js +7 -0
- package/dist/lib/modules/coupon/routers/coupon.router.js.map +1 -1
- package/dist/lib/modules/coupon/services/coupon.service.d.ts +8 -1
- package/dist/lib/modules/coupon/services/coupon.service.d.ts.map +1 -1
- package/dist/lib/modules/coupon/services/coupon.service.js +231 -27
- package/dist/lib/modules/coupon/services/coupon.service.js.map +1 -1
- package/dist/lib/modules/coupon/services/patterns/repository/CouponMetricsRepository.d.ts.map +1 -1
- package/dist/lib/modules/coupon/services/patterns/repository/CouponMetricsRepository.js +17 -4
- package/dist/lib/modules/coupon/services/patterns/repository/CouponMetricsRepository.js.map +1 -1
- package/dist/lib/modules/coupon/validations/coupon.validation.d.ts +26 -0
- package/dist/lib/modules/coupon/validations/coupon.validation.d.ts.map +1 -1
- package/dist/lib/modules/coupon/validations/coupon.validation.js +10 -1
- package/dist/lib/modules/coupon/validations/coupon.validation.js.map +1 -1
- package/dist/lib/modules/limited-time-offer/campaign/campaign.router.d.ts +40 -40
- package/dist/lib/modules/limited-time-offer/campaign/campaign.router.js +9 -9
- package/dist/lib/modules/limited-time-offer/campaign/campaign.router.js.map +1 -1
- package/dist/lib/modules/limited-time-offer/campaign/jobs/limited-time-offer-campaign.worker.d.ts +0 -1
- package/dist/lib/modules/limited-time-offer/campaign/jobs/limited-time-offer-campaign.worker.d.ts.map +1 -1
- package/dist/lib/modules/limited-time-offer/campaign/jobs/limited-time-offer-campaign.worker.js +2 -5
- package/dist/lib/modules/limited-time-offer/campaign/jobs/limited-time-offer-campaign.worker.js.map +1 -1
- package/dist/lib/modules/limited-time-offer/campaign/limited-time-offer-campaign.builder.d.ts +1 -0
- package/dist/lib/modules/limited-time-offer/campaign/limited-time-offer-campaign.builder.d.ts.map +1 -1
- package/dist/lib/modules/limited-time-offer/campaign/limited-time-offer-campaign.builder.js +2 -0
- package/dist/lib/modules/limited-time-offer/campaign/limited-time-offer-campaign.builder.js.map +1 -1
- package/dist/lib/modules/limited-time-offer/campaign/limited-time-offer-campaign.validation.d.ts +53 -40
- package/dist/lib/modules/limited-time-offer/campaign/limited-time-offer-campaign.validation.d.ts.map +1 -1
- package/dist/lib/modules/limited-time-offer/campaign/limited-time-offer-campaign.validation.js +3 -2
- package/dist/lib/modules/limited-time-offer/campaign/limited-time-offer-campaign.validation.js.map +1 -1
- package/dist/lib/modules/limited-time-offer/campaign/services/limited-time-offer-campaign.service.d.ts +3 -9
- package/dist/lib/modules/limited-time-offer/campaign/services/limited-time-offer-campaign.service.d.ts.map +1 -1
- package/dist/lib/modules/limited-time-offer/campaign/services/limited-time-offer-campaign.service.js +4 -7
- package/dist/lib/modules/limited-time-offer/campaign/services/limited-time-offer-campaign.service.js.map +1 -1
- package/dist/lib/modules/limited-time-offer/config/limited-time-offer-config.service.d.ts +1 -0
- package/dist/lib/modules/limited-time-offer/config/limited-time-offer-config.service.d.ts.map +1 -1
- package/dist/lib/modules/limited-time-offer/config/limited-time-offer-config.service.js +15 -0
- package/dist/lib/modules/limited-time-offer/config/limited-time-offer-config.service.js.map +1 -1
- package/dist/lib/modules/limited-time-offer/limited-time-offer.router.d.ts +88 -42
- package/dist/lib/modules/limited-time-offer/limited-time-offer.router.d.ts.map +1 -1
- package/dist/lib/modules/limited-time-offer/limited-time-offer.router.js +23 -0
- package/dist/lib/modules/limited-time-offer/limited-time-offer.router.js.map +1 -1
- package/dist/lib/modules/limited-time-offer/limited-time-offer.service.d.ts +19 -0
- package/dist/lib/modules/limited-time-offer/limited-time-offer.service.d.ts.map +1 -0
- package/dist/lib/modules/limited-time-offer/limited-time-offer.service.js +84 -0
- package/dist/lib/modules/limited-time-offer/limited-time-offer.service.js.map +1 -0
- package/dist/lib/modules/limited-time-offer/notification/limited-time-offer-notification.builder.d.ts +13 -0
- package/dist/lib/modules/limited-time-offer/notification/limited-time-offer-notification.builder.d.ts.map +1 -0
- package/dist/lib/modules/limited-time-offer/notification/limited-time-offer-notification.builder.js +22 -0
- package/dist/lib/modules/limited-time-offer/notification/limited-time-offer-notification.builder.js.map +1 -0
- package/dist/lib/modules/limited-time-offer/notification/limited-time-offer-notification.constants.d.ts +20 -0
- package/dist/lib/modules/limited-time-offer/notification/limited-time-offer-notification.constants.d.ts.map +1 -0
- package/dist/lib/modules/limited-time-offer/notification/limited-time-offer-notification.constants.js +26 -0
- package/dist/lib/modules/limited-time-offer/notification/limited-time-offer-notification.constants.js.map +1 -0
- package/dist/lib/modules/limited-time-offer/notification/limited-time-offer-notification.service.d.ts +8 -0
- package/dist/lib/modules/limited-time-offer/notification/limited-time-offer-notification.service.d.ts.map +1 -0
- package/dist/lib/modules/{tournament/notification/notification.scheduler.service.js → limited-time-offer/notification/limited-time-offer-notification.service.js} +15 -28
- package/dist/lib/modules/limited-time-offer/notification/limited-time-offer-notification.service.js.map +1 -0
- package/dist/lib/modules/limited-time-offer/notification/limited-time-offer-notification.type.d.ts +5 -0
- package/dist/lib/modules/limited-time-offer/notification/limited-time-offer-notification.type.d.ts.map +1 -0
- package/dist/lib/modules/limited-time-offer/notification/limited-time-offer-notification.type.js +3 -0
- package/dist/lib/modules/limited-time-offer/notification/limited-time-offer-notification.type.js.map +1 -0
- package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.builder.js +1 -1
- package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.builder.js.map +1 -1
- package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.repository.d.ts +13 -0
- package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.repository.d.ts.map +1 -1
- package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.repository.js +75 -0
- package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.repository.js.map +1 -1
- package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.router.d.ts +6 -2
- package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.router.d.ts.map +1 -1
- package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.service.d.ts +1 -0
- package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.service.d.ts.map +1 -0
- package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.service.js +2 -0
- package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.service.js.map +1 -0
- package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.validation.d.ts +6 -1
- package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.validation.d.ts.map +1 -1
- package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.validation.js +3 -2
- package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.validation.js.map +1 -1
- package/dist/lib/modules/limited-time-offer/participant/services/limited-time-offer-participant.service.d.ts +12 -2
- package/dist/lib/modules/limited-time-offer/participant/services/limited-time-offer-participant.service.d.ts.map +1 -1
- package/dist/lib/modules/limited-time-offer/participant/services/limited-time-offer-participant.service.js +80 -27
- package/dist/lib/modules/limited-time-offer/participant/services/limited-time-offer-participant.service.js.map +1 -1
- package/dist/lib/modules/marketing/services/marketing.service.d.ts +1 -0
- package/dist/lib/modules/marketing/services/marketing.service.d.ts.map +1 -1
- package/dist/lib/modules/marketing/services/marketing.service.js +9 -0
- package/dist/lib/modules/marketing/services/marketing.service.js.map +1 -1
- package/dist/lib/modules/marketing/validations/product-marketing.validation.d.ts +2 -2
- package/dist/lib/modules/punch-marketing-history/routers/punch-marketing-history.router.d.ts +1 -1
- package/dist/lib/modules/punch-marketing-history/validations/punch-marketing-history.validation.d.ts +2 -2
- package/dist/lib/modules/tournament/config/config.builder.d.ts.map +1 -1
- package/dist/lib/modules/tournament/config/config.builder.js +4 -0
- package/dist/lib/modules/tournament/config/config.builder.js.map +1 -1
- package/dist/lib/modules/tournament/config/config.repository.d.ts +8 -2
- package/dist/lib/modules/tournament/config/config.repository.d.ts.map +1 -1
- package/dist/lib/modules/tournament/config/config.repository.js +30 -1
- package/dist/lib/modules/tournament/config/config.repository.js.map +1 -1
- package/dist/lib/modules/tournament/config/config.router.d.ts +92 -2
- package/dist/lib/modules/tournament/config/config.router.d.ts.map +1 -1
- package/dist/lib/modules/tournament/config/config.types.d.ts +15 -0
- package/dist/lib/modules/tournament/config/config.types.d.ts.map +1 -0
- package/dist/lib/modules/tournament/config/config.types.js +3 -0
- package/dist/lib/modules/tournament/config/config.types.js.map +1 -0
- package/dist/lib/modules/tournament/config/config.validation.d.ts +395 -15
- package/dist/lib/modules/tournament/config/config.validation.d.ts.map +1 -1
- package/dist/lib/modules/tournament/config/config.validation.js +17 -2
- package/dist/lib/modules/tournament/config/config.validation.js.map +1 -1
- package/dist/lib/modules/tournament/integration/integration.factory.d.ts +4 -0
- package/dist/lib/modules/tournament/integration/integration.factory.d.ts.map +1 -0
- package/dist/lib/modules/tournament/integration/integration.factory.js +18 -0
- package/dist/lib/modules/tournament/integration/integration.factory.js.map +1 -0
- package/dist/lib/modules/tournament/integration/interfaces/ITournamentService.d.ts +36 -0
- package/dist/lib/modules/tournament/integration/interfaces/ITournamentService.d.ts.map +1 -0
- package/dist/lib/modules/tournament/integration/interfaces/ITournamentService.js +3 -0
- package/dist/lib/modules/tournament/integration/interfaces/ITournamentService.js.map +1 -0
- package/dist/lib/modules/tournament/integration/providers/api-football/api-football.provider.d.ts +14 -0
- package/dist/lib/modules/tournament/integration/providers/api-football/api-football.provider.d.ts.map +1 -0
- package/dist/lib/modules/tournament/integration/providers/api-football/api-football.provider.js +92 -0
- package/dist/lib/modules/tournament/integration/providers/api-football/api-football.provider.js.map +1 -0
- package/dist/lib/modules/tournament/integration/providers/api-football/api-football.types.d.ts +51 -0
- package/dist/lib/modules/tournament/integration/providers/api-football/api-football.types.d.ts.map +1 -0
- package/dist/lib/modules/tournament/integration/providers/api-football/api-football.types.js +3 -0
- package/dist/lib/modules/tournament/integration/providers/api-football/api-football.types.js.map +1 -0
- package/dist/lib/modules/tournament/integration/providers/api-football/index.d.ts +3 -0
- package/dist/lib/modules/tournament/integration/providers/api-football/index.d.ts.map +1 -0
- package/dist/lib/modules/tournament/integration/providers/api-football/index.js +19 -0
- package/dist/lib/modules/tournament/integration/providers/api-football/index.js.map +1 -0
- package/dist/lib/modules/tournament/integration/providers/index.d.ts +3 -0
- package/dist/lib/modules/tournament/integration/providers/index.d.ts.map +1 -0
- package/dist/lib/modules/tournament/integration/providers/index.js +19 -0
- package/dist/lib/modules/tournament/integration/providers/index.js.map +1 -0
- package/dist/lib/modules/tournament/integration/providers/mock.provider.d.ts +7 -0
- package/dist/lib/modules/tournament/integration/providers/mock.provider.d.ts.map +1 -0
- package/dist/lib/modules/tournament/integration/providers/mock.provider.js +22 -0
- package/dist/lib/modules/tournament/integration/providers/mock.provider.js.map +1 -0
- package/dist/lib/modules/tournament/integration/tournamentService.d.ts +9 -0
- package/dist/lib/modules/tournament/integration/tournamentService.d.ts.map +1 -0
- package/dist/lib/modules/tournament/integration/tournamentService.js +20 -0
- package/dist/lib/modules/tournament/integration/tournamentService.js.map +1 -0
- package/dist/lib/modules/tournament/match/events/evaluate-predictions.consumer.d.ts.map +1 -1
- package/dist/lib/modules/tournament/match/events/evaluate-predictions.consumer.js +47 -11
- package/dist/lib/modules/tournament/match/events/evaluate-predictions.consumer.js.map +1 -1
- package/dist/lib/modules/tournament/match/events/evaluate-predictions.event.d.ts +7 -3
- package/dist/lib/modules/tournament/match/events/evaluate-predictions.event.d.ts.map +1 -1
- package/dist/lib/modules/tournament/match/events/evaluate-predictions.event.js +1 -1
- package/dist/lib/modules/tournament/match/events/evaluate-predictions.event.js.map +1 -1
- package/dist/lib/modules/tournament/match/events/match-evaluation.orchestrator.d.ts +14 -0
- package/dist/lib/modules/tournament/match/events/match-evaluation.orchestrator.d.ts.map +1 -0
- package/dist/lib/modules/tournament/{notification/jobs/notification.worker.js → match/events/match-evaluation.orchestrator.js} +31 -27
- package/dist/lib/modules/tournament/match/events/match-evaluation.orchestrator.js.map +1 -0
- package/dist/lib/modules/tournament/match/match.builder.d.ts +13 -34
- package/dist/lib/modules/tournament/match/match.builder.d.ts.map +1 -1
- package/dist/lib/modules/tournament/match/match.builder.js +31 -10
- package/dist/lib/modules/tournament/match/match.builder.js.map +1 -1
- package/dist/lib/modules/tournament/match/match.repository.d.ts +1 -1
- package/dist/lib/modules/tournament/match/match.repository.d.ts.map +1 -1
- package/dist/lib/modules/tournament/match/match.repository.js.map +1 -1
- package/dist/lib/modules/tournament/match/match.router.d.ts +36 -0
- package/dist/lib/modules/tournament/match/match.router.d.ts.map +1 -1
- package/dist/lib/modules/tournament/match/match.service.d.ts +3 -0
- package/dist/lib/modules/tournament/match/match.service.d.ts.map +1 -1
- package/dist/lib/modules/tournament/match/match.service.js +15 -12
- package/dist/lib/modules/tournament/match/match.service.js.map +1 -1
- package/dist/lib/modules/tournament/match/match.types.d.ts +51 -0
- package/dist/lib/modules/tournament/match/match.types.d.ts.map +1 -0
- package/dist/lib/modules/tournament/match/match.types.js +3 -0
- package/dist/lib/modules/tournament/match/match.types.js.map +1 -0
- package/dist/lib/modules/tournament/notification/notification-template.repository.d.ts +2 -1
- package/dist/lib/modules/tournament/notification/notification-template.repository.d.ts.map +1 -1
- package/dist/lib/modules/tournament/notification/notification-template.repository.js +2 -1
- package/dist/lib/modules/tournament/notification/notification-template.repository.js.map +1 -1
- package/dist/lib/modules/tournament/notification/notification.builder.d.ts +30 -0
- package/dist/lib/modules/tournament/notification/notification.builder.d.ts.map +1 -0
- package/dist/lib/modules/tournament/notification/notification.builder.js +35 -0
- package/dist/lib/modules/tournament/notification/notification.builder.js.map +1 -0
- package/dist/lib/modules/tournament/notification/notification.config.d.ts +10 -9
- package/dist/lib/modules/tournament/notification/notification.config.d.ts.map +1 -1
- package/dist/lib/modules/tournament/notification/notification.config.js +0 -12
- package/dist/lib/modules/tournament/notification/notification.config.js.map +1 -1
- package/dist/lib/modules/tournament/notification/notification.service.d.ts +5 -3
- package/dist/lib/modules/tournament/notification/notification.service.d.ts.map +1 -1
- package/dist/lib/modules/tournament/notification/notification.service.js +23 -15
- package/dist/lib/modules/tournament/notification/notification.service.js.map +1 -1
- package/dist/lib/modules/tournament/participant/participant.builder.d.ts +12 -0
- package/dist/lib/modules/tournament/participant/participant.builder.d.ts.map +1 -0
- package/dist/lib/modules/tournament/participant/participant.builder.js +17 -0
- package/dist/lib/modules/tournament/participant/participant.builder.js.map +1 -0
- package/dist/lib/modules/tournament/participant/participant.repository.d.ts +8 -7
- package/dist/lib/modules/tournament/participant/participant.repository.d.ts.map +1 -1
- package/dist/lib/modules/tournament/participant/participant.repository.js +12 -2
- package/dist/lib/modules/tournament/participant/participant.repository.js.map +1 -1
- package/dist/lib/modules/tournament/participant/participant.service.d.ts +1 -0
- package/dist/lib/modules/tournament/participant/participant.service.d.ts.map +1 -1
- package/dist/lib/modules/tournament/participant/participant.service.js +15 -17
- package/dist/lib/modules/tournament/participant/participant.service.js.map +1 -1
- package/dist/lib/modules/tournament/prediction/prediction.builder.d.ts +3 -9
- package/dist/lib/modules/tournament/prediction/prediction.builder.d.ts.map +1 -1
- package/dist/lib/modules/tournament/prediction/prediction.builder.js.map +1 -1
- package/dist/lib/modules/tournament/prediction/prediction.repository.d.ts +11 -3
- package/dist/lib/modules/tournament/prediction/prediction.repository.d.ts.map +1 -1
- package/dist/lib/modules/tournament/prediction/prediction.repository.js +47 -0
- package/dist/lib/modules/tournament/prediction/prediction.repository.js.map +1 -1
- package/dist/lib/modules/tournament/prediction/prediction.service.d.ts +1 -1
- package/dist/lib/modules/tournament/prediction/prediction.service.d.ts.map +1 -1
- package/dist/lib/modules/tournament/prediction/prediction.service.js +16 -26
- package/dist/lib/modules/tournament/prediction/prediction.service.js.map +1 -1
- package/dist/lib/modules/tournament/prediction/prediction.types.d.ts +17 -0
- package/dist/lib/modules/tournament/prediction/prediction.types.d.ts.map +1 -0
- package/dist/lib/modules/tournament/prediction/prediction.types.js +3 -0
- package/dist/lib/modules/tournament/prediction/prediction.types.js.map +1 -0
- package/dist/lib/modules/tournament/reward/handlers/coupon-reward.handler.d.ts +8 -5
- package/dist/lib/modules/tournament/reward/handlers/coupon-reward.handler.d.ts.map +1 -1
- package/dist/lib/modules/tournament/reward/handlers/coupon-reward.handler.js +58 -16
- package/dist/lib/modules/tournament/reward/handlers/coupon-reward.handler.js.map +1 -1
- package/dist/lib/modules/tournament/reward/reward.builder.d.ts +5 -2
- package/dist/lib/modules/tournament/reward/reward.builder.d.ts.map +1 -1
- package/dist/lib/modules/tournament/reward/reward.builder.js +44 -28
- package/dist/lib/modules/tournament/reward/reward.builder.js.map +1 -1
- package/dist/lib/modules/tournament/reward/reward.factory.d.ts +1 -1
- package/dist/lib/modules/tournament/reward/reward.factory.d.ts.map +1 -1
- package/dist/lib/modules/tournament/reward/reward.factory.js.map +1 -1
- package/dist/lib/modules/tournament/reward/reward.interface.d.ts +2 -2
- package/dist/lib/modules/tournament/reward/reward.interface.d.ts.map +1 -1
- package/dist/lib/modules/tournament/reward/reward.interface.js.map +1 -1
- package/dist/lib/modules/tournament/reward/reward.service.d.ts +1 -1
- package/dist/lib/modules/tournament/reward/reward.service.d.ts.map +1 -1
- package/dist/lib/modules/tournament/reward/reward.service.js +1 -1
- package/dist/lib/modules/tournament/reward/reward.service.js.map +1 -1
- package/dist/lib/modules/tournament/reward/reward.types.d.ts +35 -2
- package/dist/lib/modules/tournament/reward/reward.types.d.ts.map +1 -1
- package/dist/lib/modules/tournament/reward/reward.types.js.map +1 -1
- package/dist/lib/modules/tournament/schedule/schedule.router.d.ts.map +1 -1
- package/dist/lib/modules/tournament/schedule/schedule.router.js +1 -3
- package/dist/lib/modules/tournament/schedule/schedule.router.js.map +1 -1
- package/dist/lib/modules/tournament/schedule/schedule.service.d.ts +3 -0
- package/dist/lib/modules/tournament/schedule/schedule.service.d.ts.map +1 -1
- package/dist/lib/modules/tournament/schedule/schedule.service.js +30 -1
- package/dist/lib/modules/tournament/schedule/schedule.service.js.map +1 -1
- package/dist/lib/modules/tournament/score/score.repository.d.ts +13 -0
- package/dist/lib/modules/tournament/score/score.repository.d.ts.map +1 -1
- package/dist/lib/modules/tournament/score/score.repository.js +20 -0
- package/dist/lib/modules/tournament/score/score.repository.js.map +1 -1
- package/dist/lib/modules/tournament/score/score.service.d.ts +3 -0
- package/dist/lib/modules/tournament/score/score.service.d.ts.map +1 -1
- package/dist/lib/modules/tournament/score/score.service.js +3 -0
- package/dist/lib/modules/tournament/score/score.service.js.map +1 -1
- package/dist/lib/modules/tournament/statistics/statistics.builder.d.ts +5 -0
- package/dist/lib/modules/tournament/statistics/statistics.builder.d.ts.map +1 -1
- package/dist/lib/modules/tournament/statistics/statistics.builder.js +47 -28
- package/dist/lib/modules/tournament/statistics/statistics.builder.js.map +1 -1
- package/dist/lib/modules/tournament/statistics/statistics.router.d.ts +4 -2
- package/dist/lib/modules/tournament/statistics/statistics.router.d.ts.map +1 -1
- package/dist/lib/modules/tournament/statistics/statistics.service.js +4 -4
- package/dist/lib/modules/tournament/statistics/statistics.service.js.map +1 -1
- package/dist/lib/modules/tournament/statistics/statistics.validation.d.ts +32 -14
- package/dist/lib/modules/tournament/statistics/statistics.validation.d.ts.map +1 -1
- package/dist/lib/modules/tournament/statistics/statistics.validation.js +2 -1
- package/dist/lib/modules/tournament/statistics/statistics.validation.js.map +1 -1
- package/dist/lib/modules/tournament/sync/sync.repository.d.ts +11 -0
- package/dist/lib/modules/tournament/sync/sync.repository.d.ts.map +1 -0
- package/dist/lib/modules/tournament/sync/sync.repository.js +67 -0
- package/dist/lib/modules/tournament/sync/sync.repository.js.map +1 -0
- package/dist/lib/modules/tournament/sync/sync.router.d.ts +27 -0
- package/dist/lib/modules/tournament/sync/sync.router.d.ts.map +1 -0
- package/dist/lib/modules/tournament/sync/sync.router.js +15 -0
- package/dist/lib/modules/tournament/sync/sync.router.js.map +1 -0
- package/dist/lib/modules/tournament/sync/sync.service.d.ts +9 -0
- package/dist/lib/modules/tournament/sync/sync.service.d.ts.map +1 -0
- package/dist/lib/modules/tournament/sync/sync.service.js +117 -0
- package/dist/lib/modules/tournament/sync/sync.service.js.map +1 -0
- package/dist/lib/modules/tournament/team/team.builder.d.ts +4 -0
- package/dist/lib/modules/tournament/team/team.builder.d.ts.map +1 -1
- package/dist/lib/modules/tournament/team/team.builder.js +6 -0
- package/dist/lib/modules/tournament/team/team.builder.js.map +1 -1
- package/dist/lib/modules/tournament/team/team.repository.d.ts +3 -0
- package/dist/lib/modules/tournament/team/team.repository.d.ts.map +1 -1
- package/dist/lib/modules/tournament/team/team.repository.js +6 -0
- package/dist/lib/modules/tournament/team/team.repository.js.map +1 -1
- package/dist/lib/modules/tournament/team/team.router.d.ts +22 -4
- package/dist/lib/modules/tournament/team/team.router.d.ts.map +1 -1
- package/dist/lib/modules/tournament/team/team.router.js +1 -1
- package/dist/lib/modules/tournament/team/team.router.js.map +1 -1
- package/dist/lib/modules/tournament/team/team.service.d.ts +2 -1
- package/dist/lib/modules/tournament/team/team.service.d.ts.map +1 -1
- package/dist/lib/modules/tournament/team/team.service.js +26 -23
- package/dist/lib/modules/tournament/team/team.service.js.map +1 -1
- package/dist/lib/modules/tournament/team/team.validation.d.ts +23 -24
- package/dist/lib/modules/tournament/team/team.validation.d.ts.map +1 -1
- package/dist/lib/modules/tournament/team/team.validation.js +3 -4
- package/dist/lib/modules/tournament/team/team.validation.js.map +1 -1
- package/dist/lib/modules/tournament/tournament.builder.d.ts +11 -0
- package/dist/lib/modules/tournament/tournament.builder.d.ts.map +1 -0
- package/dist/lib/modules/tournament/tournament.builder.js +34 -0
- package/dist/lib/modules/tournament/tournament.builder.js.map +1 -0
- package/dist/lib/modules/tournament/tournament.router.d.ts +210 -10
- package/dist/lib/modules/tournament/tournament.router.d.ts.map +1 -1
- package/dist/lib/modules/tournament/tournament.router.js +2 -0
- package/dist/lib/modules/tournament/tournament.router.js.map +1 -1
- package/dist/lib/modules/tournament/tournament.service.d.ts.map +1 -1
- package/dist/lib/modules/tournament/tournament.service.js +3 -10
- package/dist/lib/modules/tournament/tournament.service.js.map +1 -1
- package/dist/lib/modules/tournament/tournament.utils.d.ts +4 -0
- package/dist/lib/modules/tournament/tournament.utils.d.ts.map +1 -1
- package/dist/lib/modules/tournament/tournament.utils.js +8 -1
- package/dist/lib/modules/tournament/tournament.utils.js.map +1 -1
- package/dist/lib/modules/tournament/tournament.validation.d.ts +205 -1
- package/dist/lib/modules/tournament/tournament.validation.d.ts.map +1 -1
- package/dist/lib/modules/tournament/tournament.validation.js +23 -2
- package/dist/lib/modules/tournament/tournament.validation.js.map +1 -1
- package/dist/types/index.d.ts +946 -53
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/modules/coupon/routers/coupon.router.d.ts +647 -0
- package/dist/types/modules/coupon/routers/coupon.router.d.ts.map +1 -1
- package/dist/types/modules/coupon/services/coupon.service.d.ts +8 -1
- package/dist/types/modules/coupon/services/coupon.service.d.ts.map +1 -1
- package/dist/types/modules/coupon/services/patterns/repository/CouponMetricsRepository.d.ts.map +1 -1
- package/dist/types/modules/coupon/validations/coupon.validation.d.ts +26 -0
- package/dist/types/modules/coupon/validations/coupon.validation.d.ts.map +1 -1
- package/dist/types/modules/limited-time-offer/campaign/campaign.router.d.ts +42 -40
- package/dist/types/modules/limited-time-offer/campaign/campaign.router.d.ts.map +1 -1
- package/dist/types/modules/limited-time-offer/campaign/jobs/limited-time-offer-campaign.worker.d.ts +0 -1
- package/dist/types/modules/limited-time-offer/campaign/jobs/limited-time-offer-campaign.worker.d.ts.map +1 -1
- package/dist/types/modules/limited-time-offer/campaign/limited-time-offer-campaign.builder.d.ts +1 -0
- package/dist/types/modules/limited-time-offer/campaign/limited-time-offer-campaign.builder.d.ts.map +1 -1
- package/dist/types/modules/limited-time-offer/campaign/limited-time-offer-campaign.validation.d.ts +53 -40
- package/dist/types/modules/limited-time-offer/campaign/limited-time-offer-campaign.validation.d.ts.map +1 -1
- package/dist/types/modules/limited-time-offer/campaign/services/limited-time-offer-campaign.service.d.ts +3 -9
- package/dist/types/modules/limited-time-offer/campaign/services/limited-time-offer-campaign.service.d.ts.map +1 -1
- package/dist/types/modules/limited-time-offer/config/limited-time-offer-config.service.d.ts +1 -0
- package/dist/types/modules/limited-time-offer/config/limited-time-offer-config.service.d.ts.map +1 -1
- package/dist/types/modules/limited-time-offer/limited-time-offer.router.d.ts +88 -42
- package/dist/types/modules/limited-time-offer/limited-time-offer.router.d.ts.map +1 -1
- package/dist/types/modules/limited-time-offer/limited-time-offer.service.d.ts +24 -0
- package/dist/types/modules/limited-time-offer/limited-time-offer.service.d.ts.map +1 -0
- package/dist/types/modules/limited-time-offer/notification/limited-time-offer-notification.builder.d.ts +13 -0
- package/dist/types/modules/limited-time-offer/notification/limited-time-offer-notification.builder.d.ts.map +1 -0
- package/dist/types/modules/limited-time-offer/notification/limited-time-offer-notification.constants.d.ts +20 -0
- package/dist/types/modules/limited-time-offer/notification/limited-time-offer-notification.constants.d.ts.map +1 -0
- package/dist/types/modules/limited-time-offer/notification/limited-time-offer-notification.service.d.ts +8 -0
- package/dist/types/modules/limited-time-offer/notification/limited-time-offer-notification.service.d.ts.map +1 -0
- package/dist/types/modules/limited-time-offer/notification/limited-time-offer-notification.type.d.ts +5 -0
- package/dist/types/modules/limited-time-offer/notification/limited-time-offer-notification.type.d.ts.map +1 -0
- package/dist/types/modules/limited-time-offer/participant/limited-time-offer-participant.repository.d.ts +13 -0
- package/dist/types/modules/limited-time-offer/participant/limited-time-offer-participant.repository.d.ts.map +1 -1
- package/dist/types/modules/limited-time-offer/participant/limited-time-offer-participant.router.d.ts +6 -2
- package/dist/types/modules/limited-time-offer/participant/limited-time-offer-participant.router.d.ts.map +1 -1
- package/dist/types/modules/limited-time-offer/participant/limited-time-offer-participant.validation.d.ts +6 -1
- package/dist/types/modules/limited-time-offer/participant/limited-time-offer-participant.validation.d.ts.map +1 -1
- package/dist/types/modules/limited-time-offer/participant/services/limited-time-offer-participant.service.d.ts +22 -2
- package/dist/types/modules/limited-time-offer/participant/services/limited-time-offer-participant.service.d.ts.map +1 -1
- package/dist/types/modules/marketing/services/marketing.service.d.ts +1 -0
- package/dist/types/modules/marketing/services/marketing.service.d.ts.map +1 -1
- package/dist/types/modules/marketing/validations/product-marketing.validation.d.ts +2 -2
- package/dist/types/modules/punch-marketing-history/routers/punch-marketing-history.router.d.ts +1 -1
- package/dist/types/modules/punch-marketing-history/validations/punch-marketing-history.validation.d.ts +2 -2
- package/dist/types/modules/tournament/config/config.builder.d.ts.map +1 -1
- package/dist/types/modules/tournament/config/config.repository.d.ts +8 -2
- package/dist/types/modules/tournament/config/config.repository.d.ts.map +1 -1
- package/dist/types/modules/tournament/config/config.router.d.ts +92 -2
- package/dist/types/modules/tournament/config/config.router.d.ts.map +1 -1
- package/dist/types/modules/tournament/config/config.types.d.ts +15 -0
- package/dist/types/modules/tournament/config/config.types.d.ts.map +1 -0
- package/dist/types/modules/tournament/config/config.validation.d.ts +395 -15
- package/dist/types/modules/tournament/config/config.validation.d.ts.map +1 -1
- package/dist/types/modules/tournament/integration/integration.factory.d.ts +4 -0
- package/dist/types/modules/tournament/integration/integration.factory.d.ts.map +1 -0
- package/dist/types/modules/tournament/integration/interfaces/ITournamentService.d.ts +36 -0
- package/dist/types/modules/tournament/integration/interfaces/ITournamentService.d.ts.map +1 -0
- package/dist/types/modules/tournament/integration/providers/api-football/api-football.provider.d.ts +14 -0
- package/dist/types/modules/tournament/integration/providers/api-football/api-football.provider.d.ts.map +1 -0
- package/dist/types/modules/tournament/integration/providers/api-football/api-football.types.d.ts +51 -0
- package/dist/types/modules/tournament/integration/providers/api-football/api-football.types.d.ts.map +1 -0
- package/dist/types/modules/tournament/integration/providers/api-football/index.d.ts +3 -0
- package/dist/types/modules/tournament/integration/providers/api-football/index.d.ts.map +1 -0
- package/dist/types/modules/tournament/integration/providers/index.d.ts +3 -0
- package/dist/types/modules/tournament/integration/providers/index.d.ts.map +1 -0
- package/dist/types/modules/tournament/integration/providers/mock.provider.d.ts +7 -0
- package/dist/types/modules/tournament/integration/providers/mock.provider.d.ts.map +1 -0
- package/dist/types/modules/tournament/integration/tournamentService.d.ts +9 -0
- package/dist/types/modules/tournament/integration/tournamentService.d.ts.map +1 -0
- package/dist/types/modules/tournament/match/events/evaluate-predictions.consumer.d.ts.map +1 -1
- package/dist/types/modules/tournament/match/events/evaluate-predictions.event.d.ts +7 -3
- package/dist/types/modules/tournament/match/events/evaluate-predictions.event.d.ts.map +1 -1
- package/dist/types/modules/tournament/match/events/match-evaluation.orchestrator.d.ts +14 -0
- package/dist/types/modules/tournament/match/events/match-evaluation.orchestrator.d.ts.map +1 -0
- package/dist/types/modules/tournament/match/match.builder.d.ts +13 -34
- package/dist/types/modules/tournament/match/match.builder.d.ts.map +1 -1
- package/dist/types/modules/tournament/match/match.repository.d.ts +1 -1
- package/dist/types/modules/tournament/match/match.repository.d.ts.map +1 -1
- package/dist/types/modules/tournament/match/match.router.d.ts +36 -0
- package/dist/types/modules/tournament/match/match.router.d.ts.map +1 -1
- package/dist/types/modules/tournament/match/match.service.d.ts +3 -0
- package/dist/types/modules/tournament/match/match.service.d.ts.map +1 -1
- package/dist/types/modules/tournament/match/match.types.d.ts +51 -0
- package/dist/types/modules/tournament/match/match.types.d.ts.map +1 -0
- package/dist/types/modules/tournament/notification/notification-template.repository.d.ts +2 -1
- package/dist/types/modules/tournament/notification/notification-template.repository.d.ts.map +1 -1
- package/dist/types/modules/tournament/notification/notification.builder.d.ts +30 -0
- package/dist/types/modules/tournament/notification/notification.builder.d.ts.map +1 -0
- package/dist/types/modules/tournament/notification/notification.config.d.ts +10 -9
- package/dist/types/modules/tournament/notification/notification.config.d.ts.map +1 -1
- package/dist/types/modules/tournament/notification/notification.service.d.ts +5 -3
- package/dist/types/modules/tournament/notification/notification.service.d.ts.map +1 -1
- package/dist/types/modules/tournament/participant/participant.builder.d.ts +12 -0
- package/dist/types/modules/tournament/participant/participant.builder.d.ts.map +1 -0
- package/dist/types/modules/tournament/participant/participant.repository.d.ts +8 -7
- package/dist/types/modules/tournament/participant/participant.repository.d.ts.map +1 -1
- package/dist/types/modules/tournament/participant/participant.service.d.ts +1 -0
- package/dist/types/modules/tournament/participant/participant.service.d.ts.map +1 -1
- package/dist/types/modules/tournament/prediction/prediction.builder.d.ts +3 -9
- package/dist/types/modules/tournament/prediction/prediction.builder.d.ts.map +1 -1
- package/dist/types/modules/tournament/prediction/prediction.repository.d.ts +11 -3
- package/dist/types/modules/tournament/prediction/prediction.repository.d.ts.map +1 -1
- package/dist/types/modules/tournament/prediction/prediction.service.d.ts +1 -1
- package/dist/types/modules/tournament/prediction/prediction.service.d.ts.map +1 -1
- package/dist/types/modules/tournament/prediction/prediction.types.d.ts +17 -0
- package/dist/types/modules/tournament/prediction/prediction.types.d.ts.map +1 -0
- package/dist/types/modules/tournament/reward/handlers/coupon-reward.handler.d.ts +8 -5
- package/dist/types/modules/tournament/reward/handlers/coupon-reward.handler.d.ts.map +1 -1
- package/dist/types/modules/tournament/reward/reward.builder.d.ts +5 -2
- package/dist/types/modules/tournament/reward/reward.builder.d.ts.map +1 -1
- package/dist/types/modules/tournament/reward/reward.factory.d.ts +1 -1
- package/dist/types/modules/tournament/reward/reward.factory.d.ts.map +1 -1
- package/dist/types/modules/tournament/reward/reward.interface.d.ts +2 -2
- package/dist/types/modules/tournament/reward/reward.interface.d.ts.map +1 -1
- package/dist/types/modules/tournament/reward/reward.service.d.ts +1 -1
- package/dist/types/modules/tournament/reward/reward.service.d.ts.map +1 -1
- package/dist/types/modules/tournament/reward/reward.types.d.ts +35 -2
- package/dist/types/modules/tournament/reward/reward.types.d.ts.map +1 -1
- package/dist/types/modules/tournament/schedule/schedule.router.d.ts.map +1 -1
- package/dist/types/modules/tournament/schedule/schedule.service.d.ts +3 -0
- package/dist/types/modules/tournament/schedule/schedule.service.d.ts.map +1 -1
- package/dist/types/modules/tournament/score/score.repository.d.ts +13 -0
- package/dist/types/modules/tournament/score/score.repository.d.ts.map +1 -1
- package/dist/types/modules/tournament/score/score.service.d.ts +3 -0
- package/dist/types/modules/tournament/score/score.service.d.ts.map +1 -1
- package/dist/types/modules/tournament/statistics/statistics.builder.d.ts +5 -0
- package/dist/types/modules/tournament/statistics/statistics.builder.d.ts.map +1 -1
- package/dist/types/modules/tournament/statistics/statistics.router.d.ts +4 -2
- package/dist/types/modules/tournament/statistics/statistics.router.d.ts.map +1 -1
- package/dist/types/modules/tournament/statistics/statistics.validation.d.ts +32 -14
- package/dist/types/modules/tournament/statistics/statistics.validation.d.ts.map +1 -1
- package/dist/types/modules/tournament/sync/sync.repository.d.ts +11 -0
- package/dist/types/modules/tournament/sync/sync.repository.d.ts.map +1 -0
- package/dist/types/modules/tournament/sync/sync.router.d.ts +27 -0
- package/dist/types/modules/tournament/sync/sync.router.d.ts.map +1 -0
- package/dist/types/modules/tournament/sync/sync.service.d.ts +9 -0
- package/dist/types/modules/tournament/sync/sync.service.d.ts.map +1 -0
- package/dist/types/modules/tournament/team/team.builder.d.ts +4 -0
- package/dist/types/modules/tournament/team/team.builder.d.ts.map +1 -1
- package/dist/types/modules/tournament/team/team.repository.d.ts +3 -0
- package/dist/types/modules/tournament/team/team.repository.d.ts.map +1 -1
- package/dist/types/modules/tournament/team/team.router.d.ts +22 -4
- package/dist/types/modules/tournament/team/team.router.d.ts.map +1 -1
- package/dist/types/modules/tournament/team/team.service.d.ts +2 -1
- package/dist/types/modules/tournament/team/team.service.d.ts.map +1 -1
- package/dist/types/modules/tournament/team/team.validation.d.ts +23 -24
- package/dist/types/modules/tournament/team/team.validation.d.ts.map +1 -1
- package/dist/types/modules/tournament/tournament.builder.d.ts +11 -0
- package/dist/types/modules/tournament/tournament.builder.d.ts.map +1 -0
- package/dist/types/modules/tournament/tournament.router.d.ts +210 -10
- package/dist/types/modules/tournament/tournament.router.d.ts.map +1 -1
- package/dist/types/modules/tournament/tournament.service.d.ts.map +1 -1
- package/dist/types/modules/tournament/tournament.utils.d.ts +4 -0
- package/dist/types/modules/tournament/tournament.utils.d.ts.map +1 -1
- package/dist/types/modules/tournament/tournament.validation.d.ts +205 -1
- package/dist/types/modules/tournament/tournament.validation.d.ts.map +1 -1
- package/package.json +2 -2
- package/dist/lib/modules/tournament/match/events/match-ended.consumer.d.ts +0 -2
- package/dist/lib/modules/tournament/match/events/match-ended.consumer.d.ts.map +0 -1
- package/dist/lib/modules/tournament/match/events/match-ended.consumer.js +0 -15
- package/dist/lib/modules/tournament/match/events/match-ended.consumer.js.map +0 -1
- package/dist/lib/modules/tournament/match/events/match-ended.event.d.ts +0 -14
- package/dist/lib/modules/tournament/match/events/match-ended.event.d.ts.map +0 -1
- package/dist/lib/modules/tournament/match/events/match-ended.event.js +0 -12
- package/dist/lib/modules/tournament/match/events/match-ended.event.js.map +0 -1
- package/dist/lib/modules/tournament/notification/jobs/notification.producer.d.ts +0 -10
- package/dist/lib/modules/tournament/notification/jobs/notification.producer.d.ts.map +0 -1
- package/dist/lib/modules/tournament/notification/jobs/notification.producer.js +0 -23
- package/dist/lib/modules/tournament/notification/jobs/notification.producer.js.map +0 -1
- package/dist/lib/modules/tournament/notification/jobs/notification.worker.d.ts +0 -9
- package/dist/lib/modules/tournament/notification/jobs/notification.worker.d.ts.map +0 -1
- package/dist/lib/modules/tournament/notification/jobs/notification.worker.js.map +0 -1
- package/dist/lib/modules/tournament/notification/notification.schedule.config.d.ts +0 -10
- package/dist/lib/modules/tournament/notification/notification.schedule.config.d.ts.map +0 -1
- package/dist/lib/modules/tournament/notification/notification.schedule.config.js +0 -15
- package/dist/lib/modules/tournament/notification/notification.schedule.config.js.map +0 -1
- package/dist/lib/modules/tournament/notification/notification.scheduler.service.d.ts +0 -10
- package/dist/lib/modules/tournament/notification/notification.scheduler.service.d.ts.map +0 -1
- package/dist/lib/modules/tournament/notification/notification.scheduler.service.js.map +0 -1
- package/dist/types/events/event-initializations.d.ts +0 -2
- package/dist/types/events/event-initializations.d.ts.map +0 -1
- package/dist/types/modules/tournament/config/tournament-config.validation.d.ts +0 -201
- package/dist/types/modules/tournament/config/tournament-config.validation.d.ts.map +0 -1
- package/dist/types/modules/tournament/match/events/match-ended.consumer.d.ts +0 -2
- package/dist/types/modules/tournament/match/events/match-ended.consumer.d.ts.map +0 -1
- package/dist/types/modules/tournament/match/events/match-ended.event.d.ts +0 -14
- package/dist/types/modules/tournament/match/events/match-ended.event.d.ts.map +0 -1
- package/dist/types/modules/tournament/notification/jobs/notification.producer.d.ts +0 -10
- package/dist/types/modules/tournament/notification/jobs/notification.producer.d.ts.map +0 -1
- package/dist/types/modules/tournament/notification/jobs/notification.worker.d.ts +0 -9
- package/dist/types/modules/tournament/notification/jobs/notification.worker.d.ts.map +0 -1
- package/dist/types/modules/tournament/notification/notification.schedule.config.d.ts +0 -10
- package/dist/types/modules/tournament/notification/notification.schedule.config.d.ts.map +0 -1
- package/dist/types/modules/tournament/notification/notification.scheduler.service.d.ts +0 -10
- package/dist/types/modules/tournament/notification/notification.scheduler.service.d.ts.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { DTO } from '@lyxa.ai/core/dist/utilities/validation/global-validation';
|
|
3
|
-
import { Status, TournamentRewardType } from '@lyxa.ai/core/dist/utilities/enum';
|
|
3
|
+
import { Status, TournamentNotificationTag, TournamentRewardType, TournamentScheduledNotificationTarget } from '@lyxa.ai/core/dist/utilities/enum';
|
|
4
4
|
export declare const CreateTournamentConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
5
5
|
name: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
6
6
|
tag: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
@@ -11,17 +11,17 @@ export declare const CreateTournamentConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
11
11
|
type: z.ZodLiteral<TournamentRewardType.COUPON>;
|
|
12
12
|
couponNamePrefix: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
13
13
|
percentage: z.ZodNumber;
|
|
14
|
-
maxDiscountPerOrder: z.
|
|
14
|
+
maxDiscountPerOrder: z.ZodNumber;
|
|
15
15
|
}, "strip", z.ZodTypeAny, {
|
|
16
16
|
type: TournamentRewardType.COUPON;
|
|
17
|
+
maxDiscountPerOrder: number;
|
|
17
18
|
couponNamePrefix: string;
|
|
18
19
|
percentage: number;
|
|
19
|
-
maxDiscountPerOrder?: number | null | undefined;
|
|
20
20
|
}, {
|
|
21
21
|
type: TournamentRewardType.COUPON;
|
|
22
|
+
maxDiscountPerOrder: number;
|
|
22
23
|
couponNamePrefix: string;
|
|
23
24
|
percentage: number;
|
|
24
|
-
maxDiscountPerOrder?: number | null | undefined;
|
|
25
25
|
}>, z.ZodObject<{
|
|
26
26
|
type: z.ZodLiteral<TournamentRewardType.FREE_DELIVERY>;
|
|
27
27
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -29,6 +29,29 @@ export declare const CreateTournamentConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
29
29
|
}, {
|
|
30
30
|
type: TournamentRewardType.FREE_DELIVERY;
|
|
31
31
|
}>]>>;
|
|
32
|
+
notificationTemplates: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof TournamentNotificationTag>, z.ZodObject<{
|
|
33
|
+
title: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
34
|
+
body: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
35
|
+
}, "strip", z.ZodTypeAny, {
|
|
36
|
+
title: string;
|
|
37
|
+
body: string;
|
|
38
|
+
}, {
|
|
39
|
+
title: string;
|
|
40
|
+
body: string;
|
|
41
|
+
}>>>;
|
|
42
|
+
scheduledNotifications: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
43
|
+
type: z.ZodNativeEnum<typeof TournamentNotificationTag>;
|
|
44
|
+
durationMins: z.ZodNumber;
|
|
45
|
+
target: z.ZodNativeEnum<typeof TournamentScheduledNotificationTarget>;
|
|
46
|
+
}, "strip", z.ZodTypeAny, {
|
|
47
|
+
type: TournamentNotificationTag;
|
|
48
|
+
durationMins: number;
|
|
49
|
+
target: TournamentScheduledNotificationTarget;
|
|
50
|
+
}, {
|
|
51
|
+
type: TournamentNotificationTag;
|
|
52
|
+
durationMins: number;
|
|
53
|
+
target: TournamentScheduledNotificationTarget;
|
|
54
|
+
}>, "many">>;
|
|
32
55
|
}, "strip", z.ZodTypeAny, {
|
|
33
56
|
name: string;
|
|
34
57
|
startDate: Date;
|
|
@@ -39,10 +62,19 @@ export declare const CreateTournamentConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
39
62
|
type: TournamentRewardType.FREE_DELIVERY;
|
|
40
63
|
} | {
|
|
41
64
|
type: TournamentRewardType.COUPON;
|
|
65
|
+
maxDiscountPerOrder: number;
|
|
42
66
|
couponNamePrefix: string;
|
|
43
67
|
percentage: number;
|
|
44
|
-
maxDiscountPerOrder?: number | null | undefined;
|
|
45
68
|
} | undefined;
|
|
69
|
+
notificationTemplates?: Partial<Record<TournamentNotificationTag, {
|
|
70
|
+
title: string;
|
|
71
|
+
body: string;
|
|
72
|
+
}>> | undefined;
|
|
73
|
+
scheduledNotifications?: {
|
|
74
|
+
type: TournamentNotificationTag;
|
|
75
|
+
durationMins: number;
|
|
76
|
+
target: TournamentScheduledNotificationTarget;
|
|
77
|
+
}[] | undefined;
|
|
46
78
|
}, {
|
|
47
79
|
name: string;
|
|
48
80
|
startDate: string | Date;
|
|
@@ -53,10 +85,19 @@ export declare const CreateTournamentConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
53
85
|
type: TournamentRewardType.FREE_DELIVERY;
|
|
54
86
|
} | {
|
|
55
87
|
type: TournamentRewardType.COUPON;
|
|
88
|
+
maxDiscountPerOrder: number;
|
|
56
89
|
couponNamePrefix: string;
|
|
57
90
|
percentage: number;
|
|
58
|
-
maxDiscountPerOrder?: number | null | undefined;
|
|
59
91
|
} | undefined;
|
|
92
|
+
notificationTemplates?: Partial<Record<TournamentNotificationTag, {
|
|
93
|
+
title: string;
|
|
94
|
+
body: string;
|
|
95
|
+
}>> | undefined;
|
|
96
|
+
scheduledNotifications?: {
|
|
97
|
+
type: TournamentNotificationTag;
|
|
98
|
+
durationMins: number;
|
|
99
|
+
target: TournamentScheduledNotificationTarget;
|
|
100
|
+
}[] | undefined;
|
|
60
101
|
}>, {
|
|
61
102
|
name: string;
|
|
62
103
|
startDate: Date;
|
|
@@ -67,10 +108,19 @@ export declare const CreateTournamentConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
67
108
|
type: TournamentRewardType.FREE_DELIVERY;
|
|
68
109
|
} | {
|
|
69
110
|
type: TournamentRewardType.COUPON;
|
|
111
|
+
maxDiscountPerOrder: number;
|
|
70
112
|
couponNamePrefix: string;
|
|
71
113
|
percentage: number;
|
|
72
|
-
maxDiscountPerOrder?: number | null | undefined;
|
|
73
114
|
} | undefined;
|
|
115
|
+
notificationTemplates?: Partial<Record<TournamentNotificationTag, {
|
|
116
|
+
title: string;
|
|
117
|
+
body: string;
|
|
118
|
+
}>> | undefined;
|
|
119
|
+
scheduledNotifications?: {
|
|
120
|
+
type: TournamentNotificationTag;
|
|
121
|
+
durationMins: number;
|
|
122
|
+
target: TournamentScheduledNotificationTarget;
|
|
123
|
+
}[] | undefined;
|
|
74
124
|
}, {
|
|
75
125
|
name: string;
|
|
76
126
|
startDate: string | Date;
|
|
@@ -81,10 +131,19 @@ export declare const CreateTournamentConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
81
131
|
type: TournamentRewardType.FREE_DELIVERY;
|
|
82
132
|
} | {
|
|
83
133
|
type: TournamentRewardType.COUPON;
|
|
134
|
+
maxDiscountPerOrder: number;
|
|
84
135
|
couponNamePrefix: string;
|
|
85
136
|
percentage: number;
|
|
86
|
-
maxDiscountPerOrder?: number | null | undefined;
|
|
87
137
|
} | undefined;
|
|
138
|
+
notificationTemplates?: Partial<Record<TournamentNotificationTag, {
|
|
139
|
+
title: string;
|
|
140
|
+
body: string;
|
|
141
|
+
}>> | undefined;
|
|
142
|
+
scheduledNotifications?: {
|
|
143
|
+
type: TournamentNotificationTag;
|
|
144
|
+
durationMins: number;
|
|
145
|
+
target: TournamentScheduledNotificationTarget;
|
|
146
|
+
}[] | undefined;
|
|
88
147
|
}>;
|
|
89
148
|
export declare const UpdateTournamentConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
90
149
|
_id: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>;
|
|
@@ -97,17 +156,17 @@ export declare const UpdateTournamentConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
97
156
|
type: z.ZodLiteral<TournamentRewardType.COUPON>;
|
|
98
157
|
couponNamePrefix: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
99
158
|
percentage: z.ZodNumber;
|
|
100
|
-
maxDiscountPerOrder: z.
|
|
159
|
+
maxDiscountPerOrder: z.ZodNumber;
|
|
101
160
|
}, "strip", z.ZodTypeAny, {
|
|
102
161
|
type: TournamentRewardType.COUPON;
|
|
162
|
+
maxDiscountPerOrder: number;
|
|
103
163
|
couponNamePrefix: string;
|
|
104
164
|
percentage: number;
|
|
105
|
-
maxDiscountPerOrder?: number | null | undefined;
|
|
106
165
|
}, {
|
|
107
166
|
type: TournamentRewardType.COUPON;
|
|
167
|
+
maxDiscountPerOrder: number;
|
|
108
168
|
couponNamePrefix: string;
|
|
109
169
|
percentage: number;
|
|
110
|
-
maxDiscountPerOrder?: number | null | undefined;
|
|
111
170
|
}>, z.ZodObject<{
|
|
112
171
|
type: z.ZodLiteral<TournamentRewardType.FREE_DELIVERY>;
|
|
113
172
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -115,6 +174,29 @@ export declare const UpdateTournamentConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
115
174
|
}, {
|
|
116
175
|
type: TournamentRewardType.FREE_DELIVERY;
|
|
117
176
|
}>]>>;
|
|
177
|
+
notificationTemplates: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof TournamentNotificationTag>, z.ZodObject<{
|
|
178
|
+
title: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
179
|
+
body: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
180
|
+
}, "strip", z.ZodTypeAny, {
|
|
181
|
+
title: string;
|
|
182
|
+
body: string;
|
|
183
|
+
}, {
|
|
184
|
+
title: string;
|
|
185
|
+
body: string;
|
|
186
|
+
}>>>;
|
|
187
|
+
scheduledNotifications: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
188
|
+
type: z.ZodNativeEnum<typeof TournamentNotificationTag>;
|
|
189
|
+
durationMins: z.ZodNumber;
|
|
190
|
+
target: z.ZodNativeEnum<typeof TournamentScheduledNotificationTarget>;
|
|
191
|
+
}, "strip", z.ZodTypeAny, {
|
|
192
|
+
type: TournamentNotificationTag;
|
|
193
|
+
durationMins: number;
|
|
194
|
+
target: TournamentScheduledNotificationTarget;
|
|
195
|
+
}, {
|
|
196
|
+
type: TournamentNotificationTag;
|
|
197
|
+
durationMins: number;
|
|
198
|
+
target: TournamentScheduledNotificationTarget;
|
|
199
|
+
}>, "many">>;
|
|
118
200
|
}, "strip", z.ZodTypeAny, {
|
|
119
201
|
_id: import("mongoose").Types.ObjectId;
|
|
120
202
|
status?: Status | undefined;
|
|
@@ -126,10 +208,19 @@ export declare const UpdateTournamentConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
126
208
|
type: TournamentRewardType.FREE_DELIVERY;
|
|
127
209
|
} | {
|
|
128
210
|
type: TournamentRewardType.COUPON;
|
|
211
|
+
maxDiscountPerOrder: number;
|
|
129
212
|
couponNamePrefix: string;
|
|
130
213
|
percentage: number;
|
|
131
|
-
maxDiscountPerOrder?: number | null | undefined;
|
|
132
214
|
} | undefined;
|
|
215
|
+
notificationTemplates?: Partial<Record<TournamentNotificationTag, {
|
|
216
|
+
title: string;
|
|
217
|
+
body: string;
|
|
218
|
+
}>> | undefined;
|
|
219
|
+
scheduledNotifications?: {
|
|
220
|
+
type: TournamentNotificationTag;
|
|
221
|
+
durationMins: number;
|
|
222
|
+
target: TournamentScheduledNotificationTarget;
|
|
223
|
+
}[] | undefined;
|
|
133
224
|
}, {
|
|
134
225
|
_id: string | import("mongoose").Types.ObjectId;
|
|
135
226
|
status?: Status | undefined;
|
|
@@ -141,10 +232,19 @@ export declare const UpdateTournamentConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
141
232
|
type: TournamentRewardType.FREE_DELIVERY;
|
|
142
233
|
} | {
|
|
143
234
|
type: TournamentRewardType.COUPON;
|
|
235
|
+
maxDiscountPerOrder: number;
|
|
144
236
|
couponNamePrefix: string;
|
|
145
237
|
percentage: number;
|
|
146
|
-
maxDiscountPerOrder?: number | null | undefined;
|
|
147
238
|
} | undefined;
|
|
239
|
+
notificationTemplates?: Partial<Record<TournamentNotificationTag, {
|
|
240
|
+
title: string;
|
|
241
|
+
body: string;
|
|
242
|
+
}>> | undefined;
|
|
243
|
+
scheduledNotifications?: {
|
|
244
|
+
type: TournamentNotificationTag;
|
|
245
|
+
durationMins: number;
|
|
246
|
+
target: TournamentScheduledNotificationTarget;
|
|
247
|
+
}[] | undefined;
|
|
148
248
|
}>, {
|
|
149
249
|
_id: import("mongoose").Types.ObjectId;
|
|
150
250
|
status?: Status | undefined;
|
|
@@ -156,10 +256,19 @@ export declare const UpdateTournamentConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
156
256
|
type: TournamentRewardType.FREE_DELIVERY;
|
|
157
257
|
} | {
|
|
158
258
|
type: TournamentRewardType.COUPON;
|
|
259
|
+
maxDiscountPerOrder: number;
|
|
159
260
|
couponNamePrefix: string;
|
|
160
261
|
percentage: number;
|
|
161
|
-
maxDiscountPerOrder?: number | null | undefined;
|
|
162
262
|
} | undefined;
|
|
263
|
+
notificationTemplates?: Partial<Record<TournamentNotificationTag, {
|
|
264
|
+
title: string;
|
|
265
|
+
body: string;
|
|
266
|
+
}>> | undefined;
|
|
267
|
+
scheduledNotifications?: {
|
|
268
|
+
type: TournamentNotificationTag;
|
|
269
|
+
durationMins: number;
|
|
270
|
+
target: TournamentScheduledNotificationTarget;
|
|
271
|
+
}[] | undefined;
|
|
163
272
|
}, {
|
|
164
273
|
_id: string | import("mongoose").Types.ObjectId;
|
|
165
274
|
status?: Status | undefined;
|
|
@@ -171,10 +280,19 @@ export declare const UpdateTournamentConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
171
280
|
type: TournamentRewardType.FREE_DELIVERY;
|
|
172
281
|
} | {
|
|
173
282
|
type: TournamentRewardType.COUPON;
|
|
283
|
+
maxDiscountPerOrder: number;
|
|
174
284
|
couponNamePrefix: string;
|
|
175
285
|
percentage: number;
|
|
176
|
-
maxDiscountPerOrder?: number | null | undefined;
|
|
177
286
|
} | undefined;
|
|
287
|
+
notificationTemplates?: Partial<Record<TournamentNotificationTag, {
|
|
288
|
+
title: string;
|
|
289
|
+
body: string;
|
|
290
|
+
}>> | undefined;
|
|
291
|
+
scheduledNotifications?: {
|
|
292
|
+
type: TournamentNotificationTag;
|
|
293
|
+
durationMins: number;
|
|
294
|
+
target: TournamentScheduledNotificationTarget;
|
|
295
|
+
}[] | undefined;
|
|
178
296
|
}>;
|
|
179
297
|
export declare const TournamentConfigSchema: z.ZodObject<{
|
|
180
298
|
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
@@ -207,6 +325,29 @@ export declare const TournamentConfigSchema: z.ZodObject<{
|
|
|
207
325
|
}>]>>;
|
|
208
326
|
createdAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
209
327
|
updatedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
328
|
+
notificationTemplates: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof TournamentNotificationTag>, z.ZodObject<{
|
|
329
|
+
title: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
330
|
+
body: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
331
|
+
}, "strip", z.ZodTypeAny, {
|
|
332
|
+
title: string;
|
|
333
|
+
body: string;
|
|
334
|
+
}, {
|
|
335
|
+
title: string;
|
|
336
|
+
body: string;
|
|
337
|
+
}>>>;
|
|
338
|
+
scheduledNotifications: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
339
|
+
type: z.ZodNativeEnum<typeof TournamentNotificationTag>;
|
|
340
|
+
durationMins: z.ZodNumber;
|
|
341
|
+
target: z.ZodNativeEnum<typeof TournamentScheduledNotificationTarget>;
|
|
342
|
+
}, "strip", z.ZodTypeAny, {
|
|
343
|
+
type: TournamentNotificationTag;
|
|
344
|
+
durationMins: number;
|
|
345
|
+
target: TournamentScheduledNotificationTarget;
|
|
346
|
+
}, {
|
|
347
|
+
type: TournamentNotificationTag;
|
|
348
|
+
durationMins: number;
|
|
349
|
+
target: TournamentScheduledNotificationTarget;
|
|
350
|
+
}>, "many">>;
|
|
210
351
|
}, "strip", z.ZodTypeAny, {
|
|
211
352
|
status: Status;
|
|
212
353
|
name: string;
|
|
@@ -224,6 +365,15 @@ export declare const TournamentConfigSchema: z.ZodObject<{
|
|
|
224
365
|
couponNamePrefix?: string | undefined;
|
|
225
366
|
percentage?: number | undefined;
|
|
226
367
|
} | undefined;
|
|
368
|
+
notificationTemplates?: Partial<Record<TournamentNotificationTag, {
|
|
369
|
+
title: string;
|
|
370
|
+
body: string;
|
|
371
|
+
}>> | undefined;
|
|
372
|
+
scheduledNotifications?: {
|
|
373
|
+
type: TournamentNotificationTag;
|
|
374
|
+
durationMins: number;
|
|
375
|
+
target: TournamentScheduledNotificationTarget;
|
|
376
|
+
}[] | undefined;
|
|
227
377
|
}, {
|
|
228
378
|
status: Status;
|
|
229
379
|
name: string;
|
|
@@ -241,6 +391,15 @@ export declare const TournamentConfigSchema: z.ZodObject<{
|
|
|
241
391
|
couponNamePrefix?: string | undefined;
|
|
242
392
|
percentage?: number | undefined;
|
|
243
393
|
} | undefined;
|
|
394
|
+
notificationTemplates?: Partial<Record<TournamentNotificationTag, {
|
|
395
|
+
title: string;
|
|
396
|
+
body: string;
|
|
397
|
+
}>> | undefined;
|
|
398
|
+
scheduledNotifications?: {
|
|
399
|
+
type: TournamentNotificationTag;
|
|
400
|
+
durationMins: number;
|
|
401
|
+
target: TournamentScheduledNotificationTarget;
|
|
402
|
+
}[] | undefined;
|
|
244
403
|
}>;
|
|
245
404
|
export declare const TournamentConfigListItemSchema: z.ZodObject<{
|
|
246
405
|
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
@@ -251,6 +410,29 @@ export declare const TournamentConfigListItemSchema: z.ZodObject<{
|
|
|
251
410
|
status: z.ZodNativeEnum<typeof Status>;
|
|
252
411
|
createdAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
253
412
|
updatedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
413
|
+
notificationTemplates: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof TournamentNotificationTag>, z.ZodObject<{
|
|
414
|
+
title: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
415
|
+
body: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
416
|
+
}, "strip", z.ZodTypeAny, {
|
|
417
|
+
title: string;
|
|
418
|
+
body: string;
|
|
419
|
+
}, {
|
|
420
|
+
title: string;
|
|
421
|
+
body: string;
|
|
422
|
+
}>>>;
|
|
423
|
+
scheduledNotifications: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
424
|
+
type: z.ZodNativeEnum<typeof TournamentNotificationTag>;
|
|
425
|
+
durationMins: z.ZodNumber;
|
|
426
|
+
target: z.ZodNativeEnum<typeof TournamentScheduledNotificationTarget>;
|
|
427
|
+
}, "strip", z.ZodTypeAny, {
|
|
428
|
+
type: TournamentNotificationTag;
|
|
429
|
+
durationMins: number;
|
|
430
|
+
target: TournamentScheduledNotificationTarget;
|
|
431
|
+
}, {
|
|
432
|
+
type: TournamentNotificationTag;
|
|
433
|
+
durationMins: number;
|
|
434
|
+
target: TournamentScheduledNotificationTarget;
|
|
435
|
+
}>, "many">>;
|
|
254
436
|
} & {
|
|
255
437
|
reward: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
256
438
|
type: z.ZodLiteral<TournamentRewardType.COUPON>;
|
|
@@ -287,6 +469,15 @@ export declare const TournamentConfigListItemSchema: z.ZodObject<{
|
|
|
287
469
|
maxDiscountPerOrder?: number | null | undefined;
|
|
288
470
|
percentage?: number | undefined;
|
|
289
471
|
} | undefined;
|
|
472
|
+
notificationTemplates?: Partial<Record<TournamentNotificationTag, {
|
|
473
|
+
title: string;
|
|
474
|
+
body: string;
|
|
475
|
+
}>> | undefined;
|
|
476
|
+
scheduledNotifications?: {
|
|
477
|
+
type: TournamentNotificationTag;
|
|
478
|
+
durationMins: number;
|
|
479
|
+
target: TournamentScheduledNotificationTarget;
|
|
480
|
+
}[] | undefined;
|
|
290
481
|
}, {
|
|
291
482
|
status: Status;
|
|
292
483
|
name: string;
|
|
@@ -303,6 +494,15 @@ export declare const TournamentConfigListItemSchema: z.ZodObject<{
|
|
|
303
494
|
maxDiscountPerOrder?: number | null | undefined;
|
|
304
495
|
percentage?: number | undefined;
|
|
305
496
|
} | undefined;
|
|
497
|
+
notificationTemplates?: Partial<Record<TournamentNotificationTag, {
|
|
498
|
+
title: string;
|
|
499
|
+
body: string;
|
|
500
|
+
}>> | undefined;
|
|
501
|
+
scheduledNotifications?: {
|
|
502
|
+
type: TournamentNotificationTag;
|
|
503
|
+
durationMins: number;
|
|
504
|
+
target: TournamentScheduledNotificationTarget;
|
|
505
|
+
}[] | undefined;
|
|
306
506
|
}>;
|
|
307
507
|
export declare const TournamentConfigResponseSchema: z.ZodObject<{
|
|
308
508
|
success: z.ZodBoolean;
|
|
@@ -341,6 +541,15 @@ export declare const TournamentConfigResponseSchema: z.ZodObject<{
|
|
|
341
541
|
couponNamePrefix?: string | undefined;
|
|
342
542
|
percentage?: number | undefined;
|
|
343
543
|
} | undefined;
|
|
544
|
+
notificationTemplates?: Partial<Record<TournamentNotificationTag, {
|
|
545
|
+
title: string;
|
|
546
|
+
body: string;
|
|
547
|
+
}>> | undefined;
|
|
548
|
+
scheduledNotifications?: {
|
|
549
|
+
type: TournamentNotificationTag;
|
|
550
|
+
durationMins: number;
|
|
551
|
+
target: TournamentScheduledNotificationTarget;
|
|
552
|
+
}[] | undefined;
|
|
344
553
|
}, z.ZodTypeDef, {
|
|
345
554
|
status: Status;
|
|
346
555
|
name: string;
|
|
@@ -358,6 +567,15 @@ export declare const TournamentConfigResponseSchema: z.ZodObject<{
|
|
|
358
567
|
couponNamePrefix?: string | undefined;
|
|
359
568
|
percentage?: number | undefined;
|
|
360
569
|
} | undefined;
|
|
570
|
+
notificationTemplates?: Partial<Record<TournamentNotificationTag, {
|
|
571
|
+
title: string;
|
|
572
|
+
body: string;
|
|
573
|
+
}>> | undefined;
|
|
574
|
+
scheduledNotifications?: {
|
|
575
|
+
type: TournamentNotificationTag;
|
|
576
|
+
durationMins: number;
|
|
577
|
+
target: TournamentScheduledNotificationTarget;
|
|
578
|
+
}[] | undefined;
|
|
361
579
|
}>, "many">;
|
|
362
580
|
}, "strip", z.ZodTypeAny, {
|
|
363
581
|
documents: {
|
|
@@ -377,6 +595,15 @@ export declare const TournamentConfigResponseSchema: z.ZodObject<{
|
|
|
377
595
|
couponNamePrefix?: string | undefined;
|
|
378
596
|
percentage?: number | undefined;
|
|
379
597
|
} | undefined;
|
|
598
|
+
notificationTemplates?: Partial<Record<TournamentNotificationTag, {
|
|
599
|
+
title: string;
|
|
600
|
+
body: string;
|
|
601
|
+
}>> | undefined;
|
|
602
|
+
scheduledNotifications?: {
|
|
603
|
+
type: TournamentNotificationTag;
|
|
604
|
+
durationMins: number;
|
|
605
|
+
target: TournamentScheduledNotificationTarget;
|
|
606
|
+
}[] | undefined;
|
|
380
607
|
}[];
|
|
381
608
|
metadata?: {
|
|
382
609
|
page: number;
|
|
@@ -402,6 +629,15 @@ export declare const TournamentConfigResponseSchema: z.ZodObject<{
|
|
|
402
629
|
couponNamePrefix?: string | undefined;
|
|
403
630
|
percentage?: number | undefined;
|
|
404
631
|
} | undefined;
|
|
632
|
+
notificationTemplates?: Partial<Record<TournamentNotificationTag, {
|
|
633
|
+
title: string;
|
|
634
|
+
body: string;
|
|
635
|
+
}>> | undefined;
|
|
636
|
+
scheduledNotifications?: {
|
|
637
|
+
type: TournamentNotificationTag;
|
|
638
|
+
durationMins: number;
|
|
639
|
+
target: TournamentScheduledNotificationTarget;
|
|
640
|
+
}[] | undefined;
|
|
405
641
|
}[];
|
|
406
642
|
metadata?: {
|
|
407
643
|
page: number;
|
|
@@ -426,6 +662,15 @@ export declare const TournamentConfigResponseSchema: z.ZodObject<{
|
|
|
426
662
|
couponNamePrefix?: string | undefined;
|
|
427
663
|
percentage?: number | undefined;
|
|
428
664
|
} | undefined;
|
|
665
|
+
notificationTemplates?: Partial<Record<TournamentNotificationTag, {
|
|
666
|
+
title: string;
|
|
667
|
+
body: string;
|
|
668
|
+
}>> | undefined;
|
|
669
|
+
scheduledNotifications?: {
|
|
670
|
+
type: TournamentNotificationTag;
|
|
671
|
+
durationMins: number;
|
|
672
|
+
target: TournamentScheduledNotificationTarget;
|
|
673
|
+
}[] | undefined;
|
|
429
674
|
}, z.ZodTypeDef, {
|
|
430
675
|
status: Status;
|
|
431
676
|
name: string;
|
|
@@ -443,6 +688,15 @@ export declare const TournamentConfigResponseSchema: z.ZodObject<{
|
|
|
443
688
|
couponNamePrefix?: string | undefined;
|
|
444
689
|
percentage?: number | undefined;
|
|
445
690
|
} | undefined;
|
|
691
|
+
notificationTemplates?: Partial<Record<TournamentNotificationTag, {
|
|
692
|
+
title: string;
|
|
693
|
+
body: string;
|
|
694
|
+
}>> | undefined;
|
|
695
|
+
scheduledNotifications?: {
|
|
696
|
+
type: TournamentNotificationTag;
|
|
697
|
+
durationMins: number;
|
|
698
|
+
target: TournamentScheduledNotificationTarget;
|
|
699
|
+
}[] | undefined;
|
|
446
700
|
}>]>>;
|
|
447
701
|
}, "strip", z.ZodTypeAny, {
|
|
448
702
|
message: string;
|
|
@@ -464,6 +718,15 @@ export declare const TournamentConfigResponseSchema: z.ZodObject<{
|
|
|
464
718
|
couponNamePrefix?: string | undefined;
|
|
465
719
|
percentage?: number | undefined;
|
|
466
720
|
} | undefined;
|
|
721
|
+
notificationTemplates?: Partial<Record<TournamentNotificationTag, {
|
|
722
|
+
title: string;
|
|
723
|
+
body: string;
|
|
724
|
+
}>> | undefined;
|
|
725
|
+
scheduledNotifications?: {
|
|
726
|
+
type: TournamentNotificationTag;
|
|
727
|
+
durationMins: number;
|
|
728
|
+
target: TournamentScheduledNotificationTarget;
|
|
729
|
+
}[] | undefined;
|
|
467
730
|
} | {
|
|
468
731
|
documents: {
|
|
469
732
|
status: Status;
|
|
@@ -482,6 +745,15 @@ export declare const TournamentConfigResponseSchema: z.ZodObject<{
|
|
|
482
745
|
couponNamePrefix?: string | undefined;
|
|
483
746
|
percentage?: number | undefined;
|
|
484
747
|
} | undefined;
|
|
748
|
+
notificationTemplates?: Partial<Record<TournamentNotificationTag, {
|
|
749
|
+
title: string;
|
|
750
|
+
body: string;
|
|
751
|
+
}>> | undefined;
|
|
752
|
+
scheduledNotifications?: {
|
|
753
|
+
type: TournamentNotificationTag;
|
|
754
|
+
durationMins: number;
|
|
755
|
+
target: TournamentScheduledNotificationTarget;
|
|
756
|
+
}[] | undefined;
|
|
485
757
|
}[];
|
|
486
758
|
metadata?: {
|
|
487
759
|
page: number;
|
|
@@ -510,6 +782,15 @@ export declare const TournamentConfigResponseSchema: z.ZodObject<{
|
|
|
510
782
|
couponNamePrefix?: string | undefined;
|
|
511
783
|
percentage?: number | undefined;
|
|
512
784
|
} | undefined;
|
|
785
|
+
notificationTemplates?: Partial<Record<TournamentNotificationTag, {
|
|
786
|
+
title: string;
|
|
787
|
+
body: string;
|
|
788
|
+
}>> | undefined;
|
|
789
|
+
scheduledNotifications?: {
|
|
790
|
+
type: TournamentNotificationTag;
|
|
791
|
+
durationMins: number;
|
|
792
|
+
target: TournamentScheduledNotificationTarget;
|
|
793
|
+
}[] | undefined;
|
|
513
794
|
} | {
|
|
514
795
|
documents: {
|
|
515
796
|
status: Status;
|
|
@@ -528,6 +809,15 @@ export declare const TournamentConfigResponseSchema: z.ZodObject<{
|
|
|
528
809
|
couponNamePrefix?: string | undefined;
|
|
529
810
|
percentage?: number | undefined;
|
|
530
811
|
} | undefined;
|
|
812
|
+
notificationTemplates?: Partial<Record<TournamentNotificationTag, {
|
|
813
|
+
title: string;
|
|
814
|
+
body: string;
|
|
815
|
+
}>> | undefined;
|
|
816
|
+
scheduledNotifications?: {
|
|
817
|
+
type: TournamentNotificationTag;
|
|
818
|
+
durationMins: number;
|
|
819
|
+
target: TournamentScheduledNotificationTarget;
|
|
820
|
+
}[] | undefined;
|
|
531
821
|
}[];
|
|
532
822
|
metadata?: {
|
|
533
823
|
page: number;
|
|
@@ -573,6 +863,15 @@ export declare const TournamentConfigListResponseSchema: z.ZodObject<{
|
|
|
573
863
|
maxDiscountPerOrder?: number | null | undefined;
|
|
574
864
|
percentage?: number | undefined;
|
|
575
865
|
} | undefined;
|
|
866
|
+
notificationTemplates?: Partial<Record<TournamentNotificationTag, {
|
|
867
|
+
title: string;
|
|
868
|
+
body: string;
|
|
869
|
+
}>> | undefined;
|
|
870
|
+
scheduledNotifications?: {
|
|
871
|
+
type: TournamentNotificationTag;
|
|
872
|
+
durationMins: number;
|
|
873
|
+
target: TournamentScheduledNotificationTarget;
|
|
874
|
+
}[] | undefined;
|
|
576
875
|
}[], z.ZodTypeDef, {
|
|
577
876
|
status: Status;
|
|
578
877
|
name: string;
|
|
@@ -589,6 +888,15 @@ export declare const TournamentConfigListResponseSchema: z.ZodObject<{
|
|
|
589
888
|
maxDiscountPerOrder?: number | null | undefined;
|
|
590
889
|
percentage?: number | undefined;
|
|
591
890
|
} | undefined;
|
|
891
|
+
notificationTemplates?: Partial<Record<TournamentNotificationTag, {
|
|
892
|
+
title: string;
|
|
893
|
+
body: string;
|
|
894
|
+
}>> | undefined;
|
|
895
|
+
scheduledNotifications?: {
|
|
896
|
+
type: TournamentNotificationTag;
|
|
897
|
+
durationMins: number;
|
|
898
|
+
target: TournamentScheduledNotificationTarget;
|
|
899
|
+
}[] | undefined;
|
|
592
900
|
}[]>, "many">;
|
|
593
901
|
}, "strip", z.ZodTypeAny, {
|
|
594
902
|
documents: {
|
|
@@ -607,6 +915,15 @@ export declare const TournamentConfigListResponseSchema: z.ZodObject<{
|
|
|
607
915
|
maxDiscountPerOrder?: number | null | undefined;
|
|
608
916
|
percentage?: number | undefined;
|
|
609
917
|
} | undefined;
|
|
918
|
+
notificationTemplates?: Partial<Record<TournamentNotificationTag, {
|
|
919
|
+
title: string;
|
|
920
|
+
body: string;
|
|
921
|
+
}>> | undefined;
|
|
922
|
+
scheduledNotifications?: {
|
|
923
|
+
type: TournamentNotificationTag;
|
|
924
|
+
durationMins: number;
|
|
925
|
+
target: TournamentScheduledNotificationTarget;
|
|
926
|
+
}[] | undefined;
|
|
610
927
|
}[][];
|
|
611
928
|
metadata?: {
|
|
612
929
|
page: number;
|
|
@@ -631,6 +948,15 @@ export declare const TournamentConfigListResponseSchema: z.ZodObject<{
|
|
|
631
948
|
maxDiscountPerOrder?: number | null | undefined;
|
|
632
949
|
percentage?: number | undefined;
|
|
633
950
|
} | undefined;
|
|
951
|
+
notificationTemplates?: Partial<Record<TournamentNotificationTag, {
|
|
952
|
+
title: string;
|
|
953
|
+
body: string;
|
|
954
|
+
}>> | undefined;
|
|
955
|
+
scheduledNotifications?: {
|
|
956
|
+
type: TournamentNotificationTag;
|
|
957
|
+
durationMins: number;
|
|
958
|
+
target: TournamentScheduledNotificationTarget;
|
|
959
|
+
}[] | undefined;
|
|
634
960
|
}[][];
|
|
635
961
|
metadata?: {
|
|
636
962
|
page: number;
|
|
@@ -654,6 +980,15 @@ export declare const TournamentConfigListResponseSchema: z.ZodObject<{
|
|
|
654
980
|
maxDiscountPerOrder?: number | null | undefined;
|
|
655
981
|
percentage?: number | undefined;
|
|
656
982
|
} | undefined;
|
|
983
|
+
notificationTemplates?: Partial<Record<TournamentNotificationTag, {
|
|
984
|
+
title: string;
|
|
985
|
+
body: string;
|
|
986
|
+
}>> | undefined;
|
|
987
|
+
scheduledNotifications?: {
|
|
988
|
+
type: TournamentNotificationTag;
|
|
989
|
+
durationMins: number;
|
|
990
|
+
target: TournamentScheduledNotificationTarget;
|
|
991
|
+
}[] | undefined;
|
|
657
992
|
}[], z.ZodTypeDef, {
|
|
658
993
|
status: Status;
|
|
659
994
|
name: string;
|
|
@@ -670,6 +1005,15 @@ export declare const TournamentConfigListResponseSchema: z.ZodObject<{
|
|
|
670
1005
|
maxDiscountPerOrder?: number | null | undefined;
|
|
671
1006
|
percentage?: number | undefined;
|
|
672
1007
|
} | undefined;
|
|
1008
|
+
notificationTemplates?: Partial<Record<TournamentNotificationTag, {
|
|
1009
|
+
title: string;
|
|
1010
|
+
body: string;
|
|
1011
|
+
}>> | undefined;
|
|
1012
|
+
scheduledNotifications?: {
|
|
1013
|
+
type: TournamentNotificationTag;
|
|
1014
|
+
durationMins: number;
|
|
1015
|
+
target: TournamentScheduledNotificationTarget;
|
|
1016
|
+
}[] | undefined;
|
|
673
1017
|
}[]>]>>;
|
|
674
1018
|
}, "strip", z.ZodTypeAny, {
|
|
675
1019
|
message: string;
|
|
@@ -690,6 +1034,15 @@ export declare const TournamentConfigListResponseSchema: z.ZodObject<{
|
|
|
690
1034
|
maxDiscountPerOrder?: number | null | undefined;
|
|
691
1035
|
percentage?: number | undefined;
|
|
692
1036
|
} | undefined;
|
|
1037
|
+
notificationTemplates?: Partial<Record<TournamentNotificationTag, {
|
|
1038
|
+
title: string;
|
|
1039
|
+
body: string;
|
|
1040
|
+
}>> | undefined;
|
|
1041
|
+
scheduledNotifications?: {
|
|
1042
|
+
type: TournamentNotificationTag;
|
|
1043
|
+
durationMins: number;
|
|
1044
|
+
target: TournamentScheduledNotificationTarget;
|
|
1045
|
+
}[] | undefined;
|
|
693
1046
|
}[] | {
|
|
694
1047
|
documents: {
|
|
695
1048
|
status: Status;
|
|
@@ -707,6 +1060,15 @@ export declare const TournamentConfigListResponseSchema: z.ZodObject<{
|
|
|
707
1060
|
maxDiscountPerOrder?: number | null | undefined;
|
|
708
1061
|
percentage?: number | undefined;
|
|
709
1062
|
} | undefined;
|
|
1063
|
+
notificationTemplates?: Partial<Record<TournamentNotificationTag, {
|
|
1064
|
+
title: string;
|
|
1065
|
+
body: string;
|
|
1066
|
+
}>> | undefined;
|
|
1067
|
+
scheduledNotifications?: {
|
|
1068
|
+
type: TournamentNotificationTag;
|
|
1069
|
+
durationMins: number;
|
|
1070
|
+
target: TournamentScheduledNotificationTarget;
|
|
1071
|
+
}[] | undefined;
|
|
710
1072
|
}[][];
|
|
711
1073
|
metadata?: {
|
|
712
1074
|
page: number;
|
|
@@ -734,6 +1096,15 @@ export declare const TournamentConfigListResponseSchema: z.ZodObject<{
|
|
|
734
1096
|
maxDiscountPerOrder?: number | null | undefined;
|
|
735
1097
|
percentage?: number | undefined;
|
|
736
1098
|
} | undefined;
|
|
1099
|
+
notificationTemplates?: Partial<Record<TournamentNotificationTag, {
|
|
1100
|
+
title: string;
|
|
1101
|
+
body: string;
|
|
1102
|
+
}>> | undefined;
|
|
1103
|
+
scheduledNotifications?: {
|
|
1104
|
+
type: TournamentNotificationTag;
|
|
1105
|
+
durationMins: number;
|
|
1106
|
+
target: TournamentScheduledNotificationTarget;
|
|
1107
|
+
}[] | undefined;
|
|
737
1108
|
}[] | {
|
|
738
1109
|
documents: {
|
|
739
1110
|
status: Status;
|
|
@@ -751,6 +1122,15 @@ export declare const TournamentConfigListResponseSchema: z.ZodObject<{
|
|
|
751
1122
|
maxDiscountPerOrder?: number | null | undefined;
|
|
752
1123
|
percentage?: number | undefined;
|
|
753
1124
|
} | undefined;
|
|
1125
|
+
notificationTemplates?: Partial<Record<TournamentNotificationTag, {
|
|
1126
|
+
title: string;
|
|
1127
|
+
body: string;
|
|
1128
|
+
}>> | undefined;
|
|
1129
|
+
scheduledNotifications?: {
|
|
1130
|
+
type: TournamentNotificationTag;
|
|
1131
|
+
durationMins: number;
|
|
1132
|
+
target: TournamentScheduledNotificationTarget;
|
|
1133
|
+
}[] | undefined;
|
|
754
1134
|
}[][];
|
|
755
1135
|
metadata?: {
|
|
756
1136
|
page: number;
|