@lyxa.ai/marketing 1.0.51 → 1.0.53
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 +323 -77
- 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.map +1 -1
- package/dist/lib/modules/coupon/routers/coupon.router.js +1 -1
- package/dist/lib/modules/coupon/routers/coupon.router.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 +16 -3
- package/dist/lib/modules/coupon/services/patterns/repository/CouponMetricsRepository.js.map +1 -1
- package/dist/lib/modules/coupon/validations/all-coupons.validation.d.ts +1117 -285
- package/dist/lib/modules/coupon/validations/all-coupons.validation.d.ts.map +1 -1
- package/dist/lib/modules/coupon/validations/all-coupons.validation.js +16 -2
- package/dist/lib/modules/coupon/validations/all-coupons.validation.js.map +1 -1
- package/dist/lib/modules/coupon/validations/index.d.ts +0 -1
- package/dist/lib/modules/coupon/validations/index.d.ts.map +1 -1
- package/dist/lib/modules/coupon/validations/index.js +0 -1
- package/dist/lib/modules/coupon/validations/index.js.map +1 -1
- package/dist/lib/modules/limited-time-offer/campaign/campaign.router.d.ts +32 -32
- 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 +19 -6
- 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 +96 -50
- 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 +18 -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 +78 -0
- package/dist/lib/modules/limited-time-offer/limited-time-offer.service.js.map +1 -0
- package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.repository.d.ts +12 -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 +68 -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 +22 -18
- 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 +88 -83
- 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 +10 -1
- 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 +68 -22
- package/dist/lib/modules/limited-time-offer/participant/services/limited-time-offer-participant.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 +102 -12
- 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 +431 -52
- package/dist/lib/modules/tournament/config/config.validation.d.ts.map +1 -1
- package/dist/lib/modules/tournament/config/config.validation.js +20 -6
- 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 +50 -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 +40 -4
- 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/{notification/notification.scheduler.service.js → sync/sync.repository.js} +22 -28
- 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 +24 -6
- 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 +226 -26
- 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.types.d.ts +0 -3
- package/dist/lib/modules/tournament/tournament.types.d.ts.map +1 -1
- package/dist/lib/modules/tournament/tournament.types.js +1 -5
- package/dist/lib/modules/tournament/tournament.types.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 +323 -77
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/modules/coupon/routers/coupon.router.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/all-coupons.validation.d.ts +1117 -285
- package/dist/types/modules/coupon/validations/all-coupons.validation.d.ts.map +1 -1
- package/dist/types/modules/coupon/validations/index.d.ts +0 -1
- package/dist/types/modules/coupon/validations/index.d.ts.map +1 -1
- package/dist/types/modules/limited-time-offer/campaign/campaign.router.d.ts +34 -32
- 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 +19 -6
- 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 +96 -50
- 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 +23 -0
- package/dist/types/modules/limited-time-offer/limited-time-offer.service.d.ts.map +1 -0
- package/dist/types/modules/limited-time-offer/participant/limited-time-offer-participant.repository.d.ts +12 -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 +22 -18
- 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 +88 -83
- 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 +20 -1
- package/dist/types/modules/limited-time-offer/participant/services/limited-time-offer-participant.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 +102 -12
- 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 +431 -52
- 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 +40 -4
- 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 +24 -6
- 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 +226 -26
- 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.types.d.ts +0 -3
- package/dist/types/modules/tournament/tournament.types.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 +3 -3
- 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,10 +1,9 @@
|
|
|
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';
|
|
4
|
-
import { TournamentTag } from '../tournament.types';
|
|
3
|
+
import { Status, TournamentNotificationTag, TournamentRewardType, TournamentScheduledNotificationTarget } from '@lyxa.ai/core/dist/utilities/enum';
|
|
5
4
|
export declare const CreateTournamentConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
6
5
|
name: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
7
|
-
tag: z.
|
|
6
|
+
tag: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
8
7
|
startDate: z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Date, string>, z.ZodDate]>, Date, string | Date>, Date, string | Date>;
|
|
9
8
|
endDate: z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Date, string>, z.ZodDate]>, Date, string | Date>, Date, string | Date>;
|
|
10
9
|
status: z.ZodOptional<z.ZodNativeEnum<typeof Status>>;
|
|
@@ -12,17 +11,17 @@ export declare const CreateTournamentConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
12
11
|
type: z.ZodLiteral<TournamentRewardType.COUPON>;
|
|
13
12
|
couponNamePrefix: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
14
13
|
percentage: z.ZodNumber;
|
|
15
|
-
maxDiscountPerOrder: z.
|
|
14
|
+
maxDiscountPerOrder: z.ZodNumber;
|
|
16
15
|
}, "strip", z.ZodTypeAny, {
|
|
17
16
|
type: TournamentRewardType.COUPON;
|
|
17
|
+
maxDiscountPerOrder: number;
|
|
18
18
|
couponNamePrefix: string;
|
|
19
19
|
percentage: number;
|
|
20
|
-
maxDiscountPerOrder?: number | null | undefined;
|
|
21
20
|
}, {
|
|
22
21
|
type: TournamentRewardType.COUPON;
|
|
22
|
+
maxDiscountPerOrder: number;
|
|
23
23
|
couponNamePrefix: string;
|
|
24
24
|
percentage: number;
|
|
25
|
-
maxDiscountPerOrder?: number | null | undefined;
|
|
26
25
|
}>, z.ZodObject<{
|
|
27
26
|
type: z.ZodLiteral<TournamentRewardType.FREE_DELIVERY>;
|
|
28
27
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -30,67 +29,126 @@ export declare const CreateTournamentConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
30
29
|
}, {
|
|
31
30
|
type: TournamentRewardType.FREE_DELIVERY;
|
|
32
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">>;
|
|
33
55
|
}, "strip", z.ZodTypeAny, {
|
|
34
56
|
name: string;
|
|
35
57
|
startDate: Date;
|
|
36
58
|
endDate: Date;
|
|
37
|
-
tag:
|
|
59
|
+
tag: string;
|
|
38
60
|
status?: Status | undefined;
|
|
39
61
|
reward?: {
|
|
40
62
|
type: TournamentRewardType.FREE_DELIVERY;
|
|
41
63
|
} | {
|
|
42
64
|
type: TournamentRewardType.COUPON;
|
|
65
|
+
maxDiscountPerOrder: number;
|
|
43
66
|
couponNamePrefix: string;
|
|
44
67
|
percentage: number;
|
|
45
|
-
maxDiscountPerOrder?: number | null | undefined;
|
|
46
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;
|
|
47
78
|
}, {
|
|
48
79
|
name: string;
|
|
49
80
|
startDate: string | Date;
|
|
50
81
|
endDate: string | Date;
|
|
51
|
-
tag:
|
|
82
|
+
tag: string;
|
|
52
83
|
status?: Status | undefined;
|
|
53
84
|
reward?: {
|
|
54
85
|
type: TournamentRewardType.FREE_DELIVERY;
|
|
55
86
|
} | {
|
|
56
87
|
type: TournamentRewardType.COUPON;
|
|
88
|
+
maxDiscountPerOrder: number;
|
|
57
89
|
couponNamePrefix: string;
|
|
58
90
|
percentage: number;
|
|
59
|
-
maxDiscountPerOrder?: number | null | undefined;
|
|
60
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;
|
|
61
101
|
}>, {
|
|
62
102
|
name: string;
|
|
63
103
|
startDate: Date;
|
|
64
104
|
endDate: Date;
|
|
65
|
-
tag:
|
|
105
|
+
tag: string;
|
|
66
106
|
status?: Status | undefined;
|
|
67
107
|
reward?: {
|
|
68
108
|
type: TournamentRewardType.FREE_DELIVERY;
|
|
69
109
|
} | {
|
|
70
110
|
type: TournamentRewardType.COUPON;
|
|
111
|
+
maxDiscountPerOrder: number;
|
|
71
112
|
couponNamePrefix: string;
|
|
72
113
|
percentage: number;
|
|
73
|
-
maxDiscountPerOrder?: number | null | undefined;
|
|
74
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;
|
|
75
124
|
}, {
|
|
76
125
|
name: string;
|
|
77
126
|
startDate: string | Date;
|
|
78
127
|
endDate: string | Date;
|
|
79
|
-
tag:
|
|
128
|
+
tag: string;
|
|
80
129
|
status?: Status | undefined;
|
|
81
130
|
reward?: {
|
|
82
131
|
type: TournamentRewardType.FREE_DELIVERY;
|
|
83
132
|
} | {
|
|
84
133
|
type: TournamentRewardType.COUPON;
|
|
134
|
+
maxDiscountPerOrder: number;
|
|
85
135
|
couponNamePrefix: string;
|
|
86
136
|
percentage: number;
|
|
87
|
-
maxDiscountPerOrder?: number | null | undefined;
|
|
88
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;
|
|
89
147
|
}>;
|
|
90
148
|
export declare const UpdateTournamentConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
91
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>]>;
|
|
92
150
|
name: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
93
|
-
tag: z.ZodOptional<z.
|
|
151
|
+
tag: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
94
152
|
startDate: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Date, string>, z.ZodDate]>, Date, string | Date>, Date, string | Date>>;
|
|
95
153
|
endDate: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Date, string>, z.ZodDate]>, Date, string | Date>, Date, string | Date>>;
|
|
96
154
|
status: z.ZodOptional<z.ZodNativeEnum<typeof Status>>;
|
|
@@ -98,17 +156,17 @@ export declare const UpdateTournamentConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
98
156
|
type: z.ZodLiteral<TournamentRewardType.COUPON>;
|
|
99
157
|
couponNamePrefix: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
100
158
|
percentage: z.ZodNumber;
|
|
101
|
-
maxDiscountPerOrder: z.
|
|
159
|
+
maxDiscountPerOrder: z.ZodNumber;
|
|
102
160
|
}, "strip", z.ZodTypeAny, {
|
|
103
161
|
type: TournamentRewardType.COUPON;
|
|
162
|
+
maxDiscountPerOrder: number;
|
|
104
163
|
couponNamePrefix: string;
|
|
105
164
|
percentage: number;
|
|
106
|
-
maxDiscountPerOrder?: number | null | undefined;
|
|
107
165
|
}, {
|
|
108
166
|
type: TournamentRewardType.COUPON;
|
|
167
|
+
maxDiscountPerOrder: number;
|
|
109
168
|
couponNamePrefix: string;
|
|
110
169
|
percentage: number;
|
|
111
|
-
maxDiscountPerOrder?: number | null | undefined;
|
|
112
170
|
}>, z.ZodObject<{
|
|
113
171
|
type: z.ZodLiteral<TournamentRewardType.FREE_DELIVERY>;
|
|
114
172
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -116,71 +174,130 @@ export declare const UpdateTournamentConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
116
174
|
}, {
|
|
117
175
|
type: TournamentRewardType.FREE_DELIVERY;
|
|
118
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">>;
|
|
119
200
|
}, "strip", z.ZodTypeAny, {
|
|
120
201
|
_id: import("mongoose").Types.ObjectId;
|
|
121
202
|
status?: Status | undefined;
|
|
122
203
|
name?: string | undefined;
|
|
123
204
|
startDate?: Date | undefined;
|
|
124
205
|
endDate?: Date | undefined;
|
|
125
|
-
tag?:
|
|
206
|
+
tag?: string | undefined;
|
|
126
207
|
reward?: {
|
|
127
208
|
type: TournamentRewardType.FREE_DELIVERY;
|
|
128
209
|
} | {
|
|
129
210
|
type: TournamentRewardType.COUPON;
|
|
211
|
+
maxDiscountPerOrder: number;
|
|
130
212
|
couponNamePrefix: string;
|
|
131
213
|
percentage: number;
|
|
132
|
-
maxDiscountPerOrder?: number | null | undefined;
|
|
133
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;
|
|
134
224
|
}, {
|
|
135
225
|
_id: string | import("mongoose").Types.ObjectId;
|
|
136
226
|
status?: Status | undefined;
|
|
137
227
|
name?: string | undefined;
|
|
138
228
|
startDate?: string | Date | undefined;
|
|
139
229
|
endDate?: string | Date | undefined;
|
|
140
|
-
tag?:
|
|
230
|
+
tag?: string | undefined;
|
|
141
231
|
reward?: {
|
|
142
232
|
type: TournamentRewardType.FREE_DELIVERY;
|
|
143
233
|
} | {
|
|
144
234
|
type: TournamentRewardType.COUPON;
|
|
235
|
+
maxDiscountPerOrder: number;
|
|
145
236
|
couponNamePrefix: string;
|
|
146
237
|
percentage: number;
|
|
147
|
-
maxDiscountPerOrder?: number | null | undefined;
|
|
148
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;
|
|
149
248
|
}>, {
|
|
150
249
|
_id: import("mongoose").Types.ObjectId;
|
|
151
250
|
status?: Status | undefined;
|
|
152
251
|
name?: string | undefined;
|
|
153
252
|
startDate?: Date | undefined;
|
|
154
253
|
endDate?: Date | undefined;
|
|
155
|
-
tag?:
|
|
254
|
+
tag?: string | undefined;
|
|
156
255
|
reward?: {
|
|
157
256
|
type: TournamentRewardType.FREE_DELIVERY;
|
|
158
257
|
} | {
|
|
159
258
|
type: TournamentRewardType.COUPON;
|
|
259
|
+
maxDiscountPerOrder: number;
|
|
160
260
|
couponNamePrefix: string;
|
|
161
261
|
percentage: number;
|
|
162
|
-
maxDiscountPerOrder?: number | null | undefined;
|
|
163
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;
|
|
164
272
|
}, {
|
|
165
273
|
_id: string | import("mongoose").Types.ObjectId;
|
|
166
274
|
status?: Status | undefined;
|
|
167
275
|
name?: string | undefined;
|
|
168
276
|
startDate?: string | Date | undefined;
|
|
169
277
|
endDate?: string | Date | undefined;
|
|
170
|
-
tag?:
|
|
278
|
+
tag?: string | undefined;
|
|
171
279
|
reward?: {
|
|
172
280
|
type: TournamentRewardType.FREE_DELIVERY;
|
|
173
281
|
} | {
|
|
174
282
|
type: TournamentRewardType.COUPON;
|
|
283
|
+
maxDiscountPerOrder: number;
|
|
175
284
|
couponNamePrefix: string;
|
|
176
285
|
percentage: number;
|
|
177
|
-
maxDiscountPerOrder?: number | null | undefined;
|
|
178
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;
|
|
179
296
|
}>;
|
|
180
297
|
export declare const TournamentConfigSchema: z.ZodObject<{
|
|
181
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>]>>;
|
|
182
299
|
name: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
183
|
-
tag: z.
|
|
300
|
+
tag: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
184
301
|
startDate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
185
302
|
endDate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
186
303
|
status: z.ZodNativeEnum<typeof Status>;
|
|
@@ -208,10 +325,33 @@ export declare const TournamentConfigSchema: z.ZodObject<{
|
|
|
208
325
|
}>]>>;
|
|
209
326
|
createdAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
210
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">>;
|
|
211
351
|
}, "strip", z.ZodTypeAny, {
|
|
212
352
|
status: Status;
|
|
213
353
|
name: string;
|
|
214
|
-
tag:
|
|
354
|
+
tag: string;
|
|
215
355
|
_id?: import("mongoose").Types.ObjectId | undefined;
|
|
216
356
|
createdAt?: Date | null | undefined;
|
|
217
357
|
startDate?: Date | null | undefined;
|
|
@@ -225,15 +365,24 @@ export declare const TournamentConfigSchema: z.ZodObject<{
|
|
|
225
365
|
couponNamePrefix?: string | undefined;
|
|
226
366
|
percentage?: number | undefined;
|
|
227
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;
|
|
228
377
|
}, {
|
|
229
378
|
status: Status;
|
|
230
379
|
name: string;
|
|
380
|
+
tag: string;
|
|
231
381
|
_id?: string | import("mongoose").Types.ObjectId | undefined;
|
|
232
382
|
createdAt?: Date | null | undefined;
|
|
233
383
|
startDate?: Date | null | undefined;
|
|
234
384
|
endDate?: Date | null | undefined;
|
|
235
385
|
updatedAt?: Date | null | undefined;
|
|
236
|
-
tag?: TournamentTag | undefined;
|
|
237
386
|
reward?: {
|
|
238
387
|
type: TournamentRewardType.FREE_DELIVERY;
|
|
239
388
|
} | {
|
|
@@ -242,16 +391,48 @@ export declare const TournamentConfigSchema: z.ZodObject<{
|
|
|
242
391
|
couponNamePrefix?: string | undefined;
|
|
243
392
|
percentage?: number | undefined;
|
|
244
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;
|
|
245
403
|
}>;
|
|
246
404
|
export declare const TournamentConfigListItemSchema: z.ZodObject<{
|
|
247
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>]>>;
|
|
248
406
|
name: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
249
|
-
tag: z.
|
|
407
|
+
tag: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
250
408
|
startDate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
251
409
|
endDate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
252
410
|
status: z.ZodNativeEnum<typeof Status>;
|
|
253
411
|
createdAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
254
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">>;
|
|
255
436
|
} & {
|
|
256
437
|
reward: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
257
438
|
type: z.ZodLiteral<TournamentRewardType.COUPON>;
|
|
@@ -275,7 +456,7 @@ export declare const TournamentConfigListItemSchema: z.ZodObject<{
|
|
|
275
456
|
}, "strip", z.ZodTypeAny, {
|
|
276
457
|
status: Status;
|
|
277
458
|
name: string;
|
|
278
|
-
tag:
|
|
459
|
+
tag: string;
|
|
279
460
|
_id?: import("mongoose").Types.ObjectId | undefined;
|
|
280
461
|
createdAt?: Date | null | undefined;
|
|
281
462
|
startDate?: Date | null | undefined;
|
|
@@ -288,15 +469,24 @@ export declare const TournamentConfigListItemSchema: z.ZodObject<{
|
|
|
288
469
|
maxDiscountPerOrder?: number | null | undefined;
|
|
289
470
|
percentage?: number | undefined;
|
|
290
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;
|
|
291
481
|
}, {
|
|
292
482
|
status: Status;
|
|
293
483
|
name: string;
|
|
484
|
+
tag: string;
|
|
294
485
|
_id?: string | import("mongoose").Types.ObjectId | undefined;
|
|
295
486
|
createdAt?: Date | null | undefined;
|
|
296
487
|
startDate?: Date | null | undefined;
|
|
297
488
|
endDate?: Date | null | undefined;
|
|
298
489
|
updatedAt?: Date | null | undefined;
|
|
299
|
-
tag?: TournamentTag | undefined;
|
|
300
490
|
reward?: {
|
|
301
491
|
type: TournamentRewardType.FREE_DELIVERY;
|
|
302
492
|
} | {
|
|
@@ -304,6 +494,15 @@ export declare const TournamentConfigListItemSchema: z.ZodObject<{
|
|
|
304
494
|
maxDiscountPerOrder?: number | null | undefined;
|
|
305
495
|
percentage?: number | undefined;
|
|
306
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;
|
|
307
506
|
}>;
|
|
308
507
|
export declare const TournamentConfigResponseSchema: z.ZodObject<{
|
|
309
508
|
success: z.ZodBoolean;
|
|
@@ -328,12 +527,12 @@ export declare const TournamentConfigResponseSchema: z.ZodObject<{
|
|
|
328
527
|
documents: z.ZodArray<z.ZodType<{
|
|
329
528
|
status: Status;
|
|
330
529
|
name: string;
|
|
530
|
+
tag: string;
|
|
331
531
|
_id?: string | import("mongoose").Types.ObjectId | undefined;
|
|
332
532
|
createdAt?: Date | null | undefined;
|
|
333
533
|
startDate?: Date | null | undefined;
|
|
334
534
|
endDate?: Date | null | undefined;
|
|
335
535
|
updatedAt?: Date | null | undefined;
|
|
336
|
-
tag?: TournamentTag | undefined;
|
|
337
536
|
reward?: {
|
|
338
537
|
type: TournamentRewardType.FREE_DELIVERY;
|
|
339
538
|
} | {
|
|
@@ -342,15 +541,24 @@ export declare const TournamentConfigResponseSchema: z.ZodObject<{
|
|
|
342
541
|
couponNamePrefix?: string | undefined;
|
|
343
542
|
percentage?: number | undefined;
|
|
344
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;
|
|
345
553
|
}, z.ZodTypeDef, {
|
|
346
554
|
status: Status;
|
|
347
555
|
name: string;
|
|
556
|
+
tag: string;
|
|
348
557
|
_id?: string | import("mongoose").Types.ObjectId | undefined;
|
|
349
558
|
createdAt?: Date | null | undefined;
|
|
350
559
|
startDate?: Date | null | undefined;
|
|
351
560
|
endDate?: Date | null | undefined;
|
|
352
561
|
updatedAt?: Date | null | undefined;
|
|
353
|
-
tag?: TournamentTag | undefined;
|
|
354
562
|
reward?: {
|
|
355
563
|
type: TournamentRewardType.FREE_DELIVERY;
|
|
356
564
|
} | {
|
|
@@ -359,17 +567,26 @@ export declare const TournamentConfigResponseSchema: z.ZodObject<{
|
|
|
359
567
|
couponNamePrefix?: string | undefined;
|
|
360
568
|
percentage?: number | undefined;
|
|
361
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;
|
|
362
579
|
}>, "many">;
|
|
363
580
|
}, "strip", z.ZodTypeAny, {
|
|
364
581
|
documents: {
|
|
365
582
|
status: Status;
|
|
366
583
|
name: string;
|
|
584
|
+
tag: string;
|
|
367
585
|
_id?: string | import("mongoose").Types.ObjectId | undefined;
|
|
368
586
|
createdAt?: Date | null | undefined;
|
|
369
587
|
startDate?: Date | null | undefined;
|
|
370
588
|
endDate?: Date | null | undefined;
|
|
371
589
|
updatedAt?: Date | null | undefined;
|
|
372
|
-
tag?: TournamentTag | undefined;
|
|
373
590
|
reward?: {
|
|
374
591
|
type: TournamentRewardType.FREE_DELIVERY;
|
|
375
592
|
} | {
|
|
@@ -378,6 +595,15 @@ export declare const TournamentConfigResponseSchema: z.ZodObject<{
|
|
|
378
595
|
couponNamePrefix?: string | undefined;
|
|
379
596
|
percentage?: number | undefined;
|
|
380
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;
|
|
381
607
|
}[];
|
|
382
608
|
metadata?: {
|
|
383
609
|
page: number;
|
|
@@ -389,12 +615,12 @@ export declare const TournamentConfigResponseSchema: z.ZodObject<{
|
|
|
389
615
|
documents: {
|
|
390
616
|
status: Status;
|
|
391
617
|
name: string;
|
|
618
|
+
tag: string;
|
|
392
619
|
_id?: string | import("mongoose").Types.ObjectId | undefined;
|
|
393
620
|
createdAt?: Date | null | undefined;
|
|
394
621
|
startDate?: Date | null | undefined;
|
|
395
622
|
endDate?: Date | null | undefined;
|
|
396
623
|
updatedAt?: Date | null | undefined;
|
|
397
|
-
tag?: TournamentTag | undefined;
|
|
398
624
|
reward?: {
|
|
399
625
|
type: TournamentRewardType.FREE_DELIVERY;
|
|
400
626
|
} | {
|
|
@@ -403,6 +629,15 @@ export declare const TournamentConfigResponseSchema: z.ZodObject<{
|
|
|
403
629
|
couponNamePrefix?: string | undefined;
|
|
404
630
|
percentage?: number | undefined;
|
|
405
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;
|
|
406
641
|
}[];
|
|
407
642
|
metadata?: {
|
|
408
643
|
page: number;
|
|
@@ -413,12 +648,12 @@ export declare const TournamentConfigResponseSchema: z.ZodObject<{
|
|
|
413
648
|
}>, z.ZodType<{
|
|
414
649
|
status: Status;
|
|
415
650
|
name: string;
|
|
651
|
+
tag: string;
|
|
416
652
|
_id?: string | import("mongoose").Types.ObjectId | undefined;
|
|
417
653
|
createdAt?: Date | null | undefined;
|
|
418
654
|
startDate?: Date | null | undefined;
|
|
419
655
|
endDate?: Date | null | undefined;
|
|
420
656
|
updatedAt?: Date | null | undefined;
|
|
421
|
-
tag?: TournamentTag | undefined;
|
|
422
657
|
reward?: {
|
|
423
658
|
type: TournamentRewardType.FREE_DELIVERY;
|
|
424
659
|
} | {
|
|
@@ -427,15 +662,24 @@ export declare const TournamentConfigResponseSchema: z.ZodObject<{
|
|
|
427
662
|
couponNamePrefix?: string | undefined;
|
|
428
663
|
percentage?: number | undefined;
|
|
429
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;
|
|
430
674
|
}, z.ZodTypeDef, {
|
|
431
675
|
status: Status;
|
|
432
676
|
name: string;
|
|
677
|
+
tag: string;
|
|
433
678
|
_id?: string | import("mongoose").Types.ObjectId | undefined;
|
|
434
679
|
createdAt?: Date | null | undefined;
|
|
435
680
|
startDate?: Date | null | undefined;
|
|
436
681
|
endDate?: Date | null | undefined;
|
|
437
682
|
updatedAt?: Date | null | undefined;
|
|
438
|
-
tag?: TournamentTag | undefined;
|
|
439
683
|
reward?: {
|
|
440
684
|
type: TournamentRewardType.FREE_DELIVERY;
|
|
441
685
|
} | {
|
|
@@ -444,6 +688,15 @@ export declare const TournamentConfigResponseSchema: z.ZodObject<{
|
|
|
444
688
|
couponNamePrefix?: string | undefined;
|
|
445
689
|
percentage?: number | undefined;
|
|
446
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;
|
|
447
700
|
}>]>>;
|
|
448
701
|
}, "strip", z.ZodTypeAny, {
|
|
449
702
|
message: string;
|
|
@@ -451,12 +704,12 @@ export declare const TournamentConfigResponseSchema: z.ZodObject<{
|
|
|
451
704
|
data?: {
|
|
452
705
|
status: Status;
|
|
453
706
|
name: string;
|
|
707
|
+
tag: string;
|
|
454
708
|
_id?: string | import("mongoose").Types.ObjectId | undefined;
|
|
455
709
|
createdAt?: Date | null | undefined;
|
|
456
710
|
startDate?: Date | null | undefined;
|
|
457
711
|
endDate?: Date | null | undefined;
|
|
458
712
|
updatedAt?: Date | null | undefined;
|
|
459
|
-
tag?: TournamentTag | undefined;
|
|
460
713
|
reward?: {
|
|
461
714
|
type: TournamentRewardType.FREE_DELIVERY;
|
|
462
715
|
} | {
|
|
@@ -465,16 +718,25 @@ export declare const TournamentConfigResponseSchema: z.ZodObject<{
|
|
|
465
718
|
couponNamePrefix?: string | undefined;
|
|
466
719
|
percentage?: number | undefined;
|
|
467
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;
|
|
468
730
|
} | {
|
|
469
731
|
documents: {
|
|
470
732
|
status: Status;
|
|
471
733
|
name: string;
|
|
734
|
+
tag: string;
|
|
472
735
|
_id?: string | import("mongoose").Types.ObjectId | undefined;
|
|
473
736
|
createdAt?: Date | null | undefined;
|
|
474
737
|
startDate?: Date | null | undefined;
|
|
475
738
|
endDate?: Date | null | undefined;
|
|
476
739
|
updatedAt?: Date | null | undefined;
|
|
477
|
-
tag?: TournamentTag | undefined;
|
|
478
740
|
reward?: {
|
|
479
741
|
type: TournamentRewardType.FREE_DELIVERY;
|
|
480
742
|
} | {
|
|
@@ -483,6 +745,15 @@ export declare const TournamentConfigResponseSchema: z.ZodObject<{
|
|
|
483
745
|
couponNamePrefix?: string | undefined;
|
|
484
746
|
percentage?: number | undefined;
|
|
485
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;
|
|
486
757
|
}[];
|
|
487
758
|
metadata?: {
|
|
488
759
|
page: number;
|
|
@@ -497,12 +768,12 @@ export declare const TournamentConfigResponseSchema: z.ZodObject<{
|
|
|
497
768
|
data?: {
|
|
498
769
|
status: Status;
|
|
499
770
|
name: string;
|
|
771
|
+
tag: string;
|
|
500
772
|
_id?: string | import("mongoose").Types.ObjectId | undefined;
|
|
501
773
|
createdAt?: Date | null | undefined;
|
|
502
774
|
startDate?: Date | null | undefined;
|
|
503
775
|
endDate?: Date | null | undefined;
|
|
504
776
|
updatedAt?: Date | null | undefined;
|
|
505
|
-
tag?: TournamentTag | undefined;
|
|
506
777
|
reward?: {
|
|
507
778
|
type: TournamentRewardType.FREE_DELIVERY;
|
|
508
779
|
} | {
|
|
@@ -511,16 +782,25 @@ export declare const TournamentConfigResponseSchema: z.ZodObject<{
|
|
|
511
782
|
couponNamePrefix?: string | undefined;
|
|
512
783
|
percentage?: number | undefined;
|
|
513
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;
|
|
514
794
|
} | {
|
|
515
795
|
documents: {
|
|
516
796
|
status: Status;
|
|
517
797
|
name: string;
|
|
798
|
+
tag: string;
|
|
518
799
|
_id?: string | import("mongoose").Types.ObjectId | undefined;
|
|
519
800
|
createdAt?: Date | null | undefined;
|
|
520
801
|
startDate?: Date | null | undefined;
|
|
521
802
|
endDate?: Date | null | undefined;
|
|
522
803
|
updatedAt?: Date | null | undefined;
|
|
523
|
-
tag?: TournamentTag | undefined;
|
|
524
804
|
reward?: {
|
|
525
805
|
type: TournamentRewardType.FREE_DELIVERY;
|
|
526
806
|
} | {
|
|
@@ -529,6 +809,15 @@ export declare const TournamentConfigResponseSchema: z.ZodObject<{
|
|
|
529
809
|
couponNamePrefix?: string | undefined;
|
|
530
810
|
percentage?: number | undefined;
|
|
531
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;
|
|
532
821
|
}[];
|
|
533
822
|
metadata?: {
|
|
534
823
|
page: number;
|
|
@@ -561,12 +850,12 @@ export declare const TournamentConfigListResponseSchema: z.ZodObject<{
|
|
|
561
850
|
documents: z.ZodArray<z.ZodType<{
|
|
562
851
|
status: Status;
|
|
563
852
|
name: string;
|
|
853
|
+
tag: string;
|
|
564
854
|
_id?: string | import("mongoose").Types.ObjectId | undefined;
|
|
565
855
|
createdAt?: Date | null | undefined;
|
|
566
856
|
startDate?: Date | null | undefined;
|
|
567
857
|
endDate?: Date | null | undefined;
|
|
568
858
|
updatedAt?: Date | null | undefined;
|
|
569
|
-
tag?: TournamentTag | undefined;
|
|
570
859
|
reward?: {
|
|
571
860
|
type: TournamentRewardType.FREE_DELIVERY;
|
|
572
861
|
} | {
|
|
@@ -574,15 +863,24 @@ export declare const TournamentConfigListResponseSchema: z.ZodObject<{
|
|
|
574
863
|
maxDiscountPerOrder?: number | null | undefined;
|
|
575
864
|
percentage?: number | undefined;
|
|
576
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;
|
|
577
875
|
}[], z.ZodTypeDef, {
|
|
578
876
|
status: Status;
|
|
579
877
|
name: string;
|
|
878
|
+
tag: string;
|
|
580
879
|
_id?: string | import("mongoose").Types.ObjectId | undefined;
|
|
581
880
|
createdAt?: Date | null | undefined;
|
|
582
881
|
startDate?: Date | null | undefined;
|
|
583
882
|
endDate?: Date | null | undefined;
|
|
584
883
|
updatedAt?: Date | null | undefined;
|
|
585
|
-
tag?: TournamentTag | undefined;
|
|
586
884
|
reward?: {
|
|
587
885
|
type: TournamentRewardType.FREE_DELIVERY;
|
|
588
886
|
} | {
|
|
@@ -590,17 +888,26 @@ export declare const TournamentConfigListResponseSchema: z.ZodObject<{
|
|
|
590
888
|
maxDiscountPerOrder?: number | null | undefined;
|
|
591
889
|
percentage?: number | undefined;
|
|
592
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;
|
|
593
900
|
}[]>, "many">;
|
|
594
901
|
}, "strip", z.ZodTypeAny, {
|
|
595
902
|
documents: {
|
|
596
903
|
status: Status;
|
|
597
904
|
name: string;
|
|
905
|
+
tag: string;
|
|
598
906
|
_id?: string | import("mongoose").Types.ObjectId | undefined;
|
|
599
907
|
createdAt?: Date | null | undefined;
|
|
600
908
|
startDate?: Date | null | undefined;
|
|
601
909
|
endDate?: Date | null | undefined;
|
|
602
910
|
updatedAt?: Date | null | undefined;
|
|
603
|
-
tag?: TournamentTag | undefined;
|
|
604
911
|
reward?: {
|
|
605
912
|
type: TournamentRewardType.FREE_DELIVERY;
|
|
606
913
|
} | {
|
|
@@ -608,6 +915,15 @@ export declare const TournamentConfigListResponseSchema: z.ZodObject<{
|
|
|
608
915
|
maxDiscountPerOrder?: number | null | undefined;
|
|
609
916
|
percentage?: number | undefined;
|
|
610
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;
|
|
611
927
|
}[][];
|
|
612
928
|
metadata?: {
|
|
613
929
|
page: number;
|
|
@@ -619,12 +935,12 @@ export declare const TournamentConfigListResponseSchema: z.ZodObject<{
|
|
|
619
935
|
documents: {
|
|
620
936
|
status: Status;
|
|
621
937
|
name: string;
|
|
938
|
+
tag: string;
|
|
622
939
|
_id?: string | import("mongoose").Types.ObjectId | undefined;
|
|
623
940
|
createdAt?: Date | null | undefined;
|
|
624
941
|
startDate?: Date | null | undefined;
|
|
625
942
|
endDate?: Date | null | undefined;
|
|
626
943
|
updatedAt?: Date | null | undefined;
|
|
627
|
-
tag?: TournamentTag | undefined;
|
|
628
944
|
reward?: {
|
|
629
945
|
type: TournamentRewardType.FREE_DELIVERY;
|
|
630
946
|
} | {
|
|
@@ -632,6 +948,15 @@ export declare const TournamentConfigListResponseSchema: z.ZodObject<{
|
|
|
632
948
|
maxDiscountPerOrder?: number | null | undefined;
|
|
633
949
|
percentage?: number | undefined;
|
|
634
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;
|
|
635
960
|
}[][];
|
|
636
961
|
metadata?: {
|
|
637
962
|
page: number;
|
|
@@ -642,12 +967,12 @@ export declare const TournamentConfigListResponseSchema: z.ZodObject<{
|
|
|
642
967
|
}>, z.ZodType<{
|
|
643
968
|
status: Status;
|
|
644
969
|
name: string;
|
|
970
|
+
tag: string;
|
|
645
971
|
_id?: string | import("mongoose").Types.ObjectId | undefined;
|
|
646
972
|
createdAt?: Date | null | undefined;
|
|
647
973
|
startDate?: Date | null | undefined;
|
|
648
974
|
endDate?: Date | null | undefined;
|
|
649
975
|
updatedAt?: Date | null | undefined;
|
|
650
|
-
tag?: TournamentTag | undefined;
|
|
651
976
|
reward?: {
|
|
652
977
|
type: TournamentRewardType.FREE_DELIVERY;
|
|
653
978
|
} | {
|
|
@@ -655,15 +980,24 @@ export declare const TournamentConfigListResponseSchema: z.ZodObject<{
|
|
|
655
980
|
maxDiscountPerOrder?: number | null | undefined;
|
|
656
981
|
percentage?: number | undefined;
|
|
657
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;
|
|
658
992
|
}[], z.ZodTypeDef, {
|
|
659
993
|
status: Status;
|
|
660
994
|
name: string;
|
|
995
|
+
tag: string;
|
|
661
996
|
_id?: string | import("mongoose").Types.ObjectId | undefined;
|
|
662
997
|
createdAt?: Date | null | undefined;
|
|
663
998
|
startDate?: Date | null | undefined;
|
|
664
999
|
endDate?: Date | null | undefined;
|
|
665
1000
|
updatedAt?: Date | null | undefined;
|
|
666
|
-
tag?: TournamentTag | undefined;
|
|
667
1001
|
reward?: {
|
|
668
1002
|
type: TournamentRewardType.FREE_DELIVERY;
|
|
669
1003
|
} | {
|
|
@@ -671,6 +1005,15 @@ export declare const TournamentConfigListResponseSchema: z.ZodObject<{
|
|
|
671
1005
|
maxDiscountPerOrder?: number | null | undefined;
|
|
672
1006
|
percentage?: number | undefined;
|
|
673
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;
|
|
674
1017
|
}[]>]>>;
|
|
675
1018
|
}, "strip", z.ZodTypeAny, {
|
|
676
1019
|
message: string;
|
|
@@ -678,12 +1021,12 @@ export declare const TournamentConfigListResponseSchema: z.ZodObject<{
|
|
|
678
1021
|
data?: {
|
|
679
1022
|
status: Status;
|
|
680
1023
|
name: string;
|
|
1024
|
+
tag: string;
|
|
681
1025
|
_id?: string | import("mongoose").Types.ObjectId | undefined;
|
|
682
1026
|
createdAt?: Date | null | undefined;
|
|
683
1027
|
startDate?: Date | null | undefined;
|
|
684
1028
|
endDate?: Date | null | undefined;
|
|
685
1029
|
updatedAt?: Date | null | undefined;
|
|
686
|
-
tag?: TournamentTag | undefined;
|
|
687
1030
|
reward?: {
|
|
688
1031
|
type: TournamentRewardType.FREE_DELIVERY;
|
|
689
1032
|
} | {
|
|
@@ -691,16 +1034,25 @@ export declare const TournamentConfigListResponseSchema: z.ZodObject<{
|
|
|
691
1034
|
maxDiscountPerOrder?: number | null | undefined;
|
|
692
1035
|
percentage?: number | undefined;
|
|
693
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;
|
|
694
1046
|
}[] | {
|
|
695
1047
|
documents: {
|
|
696
1048
|
status: Status;
|
|
697
1049
|
name: string;
|
|
1050
|
+
tag: string;
|
|
698
1051
|
_id?: string | import("mongoose").Types.ObjectId | undefined;
|
|
699
1052
|
createdAt?: Date | null | undefined;
|
|
700
1053
|
startDate?: Date | null | undefined;
|
|
701
1054
|
endDate?: Date | null | undefined;
|
|
702
1055
|
updatedAt?: Date | null | undefined;
|
|
703
|
-
tag?: TournamentTag | undefined;
|
|
704
1056
|
reward?: {
|
|
705
1057
|
type: TournamentRewardType.FREE_DELIVERY;
|
|
706
1058
|
} | {
|
|
@@ -708,6 +1060,15 @@ export declare const TournamentConfigListResponseSchema: z.ZodObject<{
|
|
|
708
1060
|
maxDiscountPerOrder?: number | null | undefined;
|
|
709
1061
|
percentage?: number | undefined;
|
|
710
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;
|
|
711
1072
|
}[][];
|
|
712
1073
|
metadata?: {
|
|
713
1074
|
page: number;
|
|
@@ -722,12 +1083,12 @@ export declare const TournamentConfigListResponseSchema: z.ZodObject<{
|
|
|
722
1083
|
data?: {
|
|
723
1084
|
status: Status;
|
|
724
1085
|
name: string;
|
|
1086
|
+
tag: string;
|
|
725
1087
|
_id?: string | import("mongoose").Types.ObjectId | undefined;
|
|
726
1088
|
createdAt?: Date | null | undefined;
|
|
727
1089
|
startDate?: Date | null | undefined;
|
|
728
1090
|
endDate?: Date | null | undefined;
|
|
729
1091
|
updatedAt?: Date | null | undefined;
|
|
730
|
-
tag?: TournamentTag | undefined;
|
|
731
1092
|
reward?: {
|
|
732
1093
|
type: TournamentRewardType.FREE_DELIVERY;
|
|
733
1094
|
} | {
|
|
@@ -735,16 +1096,25 @@ export declare const TournamentConfigListResponseSchema: z.ZodObject<{
|
|
|
735
1096
|
maxDiscountPerOrder?: number | null | undefined;
|
|
736
1097
|
percentage?: number | undefined;
|
|
737
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;
|
|
738
1108
|
}[] | {
|
|
739
1109
|
documents: {
|
|
740
1110
|
status: Status;
|
|
741
1111
|
name: string;
|
|
1112
|
+
tag: string;
|
|
742
1113
|
_id?: string | import("mongoose").Types.ObjectId | undefined;
|
|
743
1114
|
createdAt?: Date | null | undefined;
|
|
744
1115
|
startDate?: Date | null | undefined;
|
|
745
1116
|
endDate?: Date | null | undefined;
|
|
746
1117
|
updatedAt?: Date | null | undefined;
|
|
747
|
-
tag?: TournamentTag | undefined;
|
|
748
1118
|
reward?: {
|
|
749
1119
|
type: TournamentRewardType.FREE_DELIVERY;
|
|
750
1120
|
} | {
|
|
@@ -752,6 +1122,15 @@ export declare const TournamentConfigListResponseSchema: z.ZodObject<{
|
|
|
752
1122
|
maxDiscountPerOrder?: number | null | undefined;
|
|
753
1123
|
percentage?: number | undefined;
|
|
754
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;
|
|
755
1134
|
}[][];
|
|
756
1135
|
metadata?: {
|
|
757
1136
|
page: number;
|