@lyxa.ai/marketing 1.0.48 → 1.0.50
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/event/event-initializations.js +2 -2
- package/dist/lib/event/event-initializations.js.map +1 -1
- package/dist/lib/index.d.ts +462 -508
- package/dist/lib/index.d.ts.map +1 -1
- package/dist/lib/modules/coupon/services/coupon.service.d.ts +2 -2
- package/dist/lib/modules/coupon/services/coupon.service.d.ts.map +1 -1
- package/dist/lib/modules/coupon/services/coupon.service.js.map +1 -1
- package/dist/lib/modules/coupon/services/global-coupon.service.d.ts.map +1 -1
- package/dist/lib/modules/coupon/services/global-coupon.service.js +2 -0
- package/dist/lib/modules/coupon/services/global-coupon.service.js.map +1 -1
- package/dist/lib/modules/coupon/services/helper.service.d.ts.map +1 -1
- package/dist/lib/modules/coupon/services/helper.service.js +2 -0
- package/dist/lib/modules/coupon/services/helper.service.js.map +1 -1
- package/dist/lib/modules/coupon/services/individual-user-coupon.service.d.ts.map +1 -1
- package/dist/lib/modules/coupon/services/individual-user-coupon.service.js +2 -0
- package/dist/lib/modules/coupon/services/individual-user-coupon.service.js.map +1 -1
- package/dist/lib/modules/coupon/services/referral-reward-coupon.service.d.ts.map +1 -1
- package/dist/lib/modules/coupon/services/referral-reward-coupon.service.js +2 -0
- package/dist/lib/modules/coupon/services/referral-reward-coupon.service.js.map +1 -1
- package/dist/lib/modules/limited-time-offer/campaign/campaign.router.d.ts +10 -21
- package/dist/lib/modules/limited-time-offer/campaign/campaign.router.d.ts.map +1 -1
- package/dist/lib/modules/limited-time-offer/campaign/campaign.router.js +5 -4
- package/dist/lib/modules/limited-time-offer/campaign/campaign.router.js.map +1 -1
- package/dist/lib/modules/limited-time-offer/campaign/limited-time-offer-campaign.validation.d.ts +154 -0
- 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 +13 -1
- 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 +8 -2
- 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 +11 -2
- 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/limited-time-offer.router.d.ts +10 -21
- package/dist/lib/modules/limited-time-offer/limited-time-offer.router.d.ts.map +1 -1
- 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 +4 -0
- package/dist/lib/modules/tournament/config/config.repository.d.ts.map +1 -1
- package/dist/lib/modules/tournament/config/config.repository.js +10 -1
- package/dist/lib/modules/tournament/config/config.repository.js.map +1 -1
- package/dist/lib/modules/tournament/config/config.router.d.ts +106 -218
- package/dist/lib/modules/tournament/config/config.router.d.ts.map +1 -1
- package/dist/lib/modules/tournament/config/config.service.d.ts +2 -2
- package/dist/lib/modules/tournament/config/config.service.d.ts.map +1 -1
- package/dist/lib/modules/tournament/config/config.service.js.map +1 -1
- package/dist/lib/modules/tournament/config/config.validation.d.ts +446 -692
- package/dist/lib/modules/tournament/config/config.validation.d.ts.map +1 -1
- package/dist/lib/modules/tournament/config/config.validation.js +44 -28
- package/dist/lib/modules/tournament/config/config.validation.js.map +1 -1
- package/dist/lib/modules/tournament/match/events/evaluate-predictions.consumer.d.ts +2 -0
- package/dist/lib/modules/tournament/match/events/evaluate-predictions.consumer.d.ts.map +1 -0
- package/dist/lib/modules/tournament/match/events/evaluate-predictions.consumer.js +28 -0
- package/dist/lib/modules/tournament/match/events/evaluate-predictions.consumer.js.map +1 -0
- package/dist/lib/modules/tournament/match/events/evaluate-predictions.event.d.ts +15 -0
- package/dist/lib/modules/tournament/match/events/evaluate-predictions.event.d.ts.map +1 -0
- package/dist/lib/modules/tournament/match/events/evaluate-predictions.event.js +12 -0
- package/dist/lib/modules/tournament/match/events/evaluate-predictions.event.js.map +1 -0
- package/dist/lib/modules/tournament/match/match.builder.d.ts +5 -2
- package/dist/lib/modules/tournament/match/match.builder.d.ts.map +1 -1
- package/dist/lib/modules/tournament/match/match.builder.js +13 -7
- package/dist/lib/modules/tournament/match/match.builder.js.map +1 -1
- package/dist/lib/modules/tournament/match/match.repository.d.ts +2 -0
- package/dist/lib/modules/tournament/match/match.repository.d.ts.map +1 -1
- package/dist/lib/modules/tournament/match/match.repository.js +10 -0
- package/dist/lib/modules/tournament/match/match.repository.js.map +1 -1
- package/dist/lib/modules/tournament/match/match.router.d.ts +66 -191
- package/dist/lib/modules/tournament/match/match.router.d.ts.map +1 -1
- package/dist/lib/modules/tournament/match/match.router.js +0 -7
- package/dist/lib/modules/tournament/match/match.router.js.map +1 -1
- package/dist/lib/modules/tournament/match/match.service.d.ts +1 -12
- package/dist/lib/modules/tournament/match/match.service.d.ts.map +1 -1
- package/dist/lib/modules/tournament/match/match.service.js +18 -68
- package/dist/lib/modules/tournament/match/match.service.js.map +1 -1
- package/dist/lib/modules/tournament/match/match.validation.d.ts +96 -34
- package/dist/lib/modules/tournament/match/match.validation.d.ts.map +1 -1
- package/dist/lib/modules/tournament/match/match.validation.js +5 -2
- package/dist/lib/modules/tournament/match/match.validation.js.map +1 -1
- package/dist/lib/modules/tournament/notification/jobs/notification.producer.d.ts +2 -5
- package/dist/lib/modules/tournament/notification/jobs/notification.producer.d.ts.map +1 -1
- package/dist/lib/modules/tournament/notification/jobs/notification.producer.js +1 -6
- package/dist/lib/modules/tournament/notification/jobs/notification.producer.js.map +1 -1
- package/dist/lib/modules/tournament/notification/jobs/notification.worker.d.ts +2 -0
- package/dist/lib/modules/tournament/notification/jobs/notification.worker.d.ts.map +1 -1
- package/dist/lib/modules/tournament/notification/jobs/notification.worker.js +15 -9
- package/dist/lib/modules/tournament/notification/jobs/notification.worker.js.map +1 -1
- package/dist/lib/modules/tournament/notification/notification-template.repository.d.ts +8 -0
- package/dist/lib/modules/tournament/notification/notification-template.repository.d.ts.map +1 -0
- package/dist/lib/modules/tournament/notification/notification-template.repository.js +60 -0
- package/dist/lib/modules/tournament/notification/notification-template.repository.js.map +1 -0
- package/dist/lib/modules/tournament/notification/notification.config.d.ts +10 -0
- package/dist/lib/modules/tournament/notification/notification.config.d.ts.map +1 -0
- package/dist/lib/modules/tournament/notification/notification.config.js +15 -0
- package/dist/lib/modules/tournament/notification/notification.config.js.map +1 -0
- package/dist/lib/modules/tournament/notification/notification.schedule.config.d.ts +10 -0
- package/dist/lib/modules/tournament/notification/notification.schedule.config.d.ts.map +1 -0
- package/dist/lib/modules/tournament/notification/notification.schedule.config.js +15 -0
- package/dist/lib/modules/tournament/notification/notification.schedule.config.js.map +1 -0
- package/dist/lib/modules/tournament/notification/notification.scheduler.service.d.ts +4 -4
- package/dist/lib/modules/tournament/notification/notification.scheduler.service.d.ts.map +1 -1
- package/dist/lib/modules/tournament/notification/notification.scheduler.service.js +15 -28
- package/dist/lib/modules/tournament/notification/notification.scheduler.service.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 +33 -23
- package/dist/lib/modules/tournament/notification/notification.service.js.map +1 -1
- package/dist/lib/modules/tournament/participant/participant.repository.d.ts +1 -0
- package/dist/lib/modules/tournament/participant/participant.repository.d.ts.map +1 -1
- package/dist/lib/modules/tournament/participant/participant.repository.js +6 -0
- package/dist/lib/modules/tournament/participant/participant.repository.js.map +1 -1
- package/dist/lib/modules/tournament/participant/participant.router.d.ts +9 -9
- package/dist/lib/modules/tournament/participant/participant.validation.d.ts +84 -84
- package/dist/lib/modules/tournament/prediction/prediction.builder.d.ts.map +1 -1
- package/dist/lib/modules/tournament/prediction/prediction.builder.js +3 -2
- package/dist/lib/modules/tournament/prediction/prediction.builder.js.map +1 -1
- package/dist/lib/modules/tournament/prediction/prediction.repository.d.ts +4 -1
- package/dist/lib/modules/tournament/prediction/prediction.repository.d.ts.map +1 -1
- package/dist/lib/modules/tournament/prediction/prediction.repository.js +20 -2
- package/dist/lib/modules/tournament/prediction/prediction.repository.js.map +1 -1
- package/dist/lib/modules/tournament/prediction/prediction.router.d.ts +12 -12
- package/dist/lib/modules/tournament/prediction/prediction.service.d.ts +9 -0
- package/dist/lib/modules/tournament/prediction/prediction.service.d.ts.map +1 -1
- package/dist/lib/modules/tournament/prediction/prediction.service.js +30 -4
- package/dist/lib/modules/tournament/prediction/prediction.service.js.map +1 -1
- package/dist/lib/modules/tournament/prediction/prediction.validation.d.ts +64 -64
- package/dist/lib/modules/tournament/reward/handlers/coupon-reward.handler.d.ts +3 -0
- 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 +21 -5
- package/dist/lib/modules/tournament/reward/handlers/coupon-reward.handler.js.map +1 -1
- package/dist/lib/modules/tournament/reward/reward.builder.d.ts +6 -0
- package/dist/lib/modules/tournament/reward/reward.builder.d.ts.map +1 -0
- package/dist/lib/modules/tournament/reward/reward.builder.js +44 -0
- package/dist/lib/modules/tournament/reward/reward.builder.js.map +1 -0
- 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.repository.d.ts +8 -0
- package/dist/lib/modules/tournament/reward/reward.repository.d.ts.map +1 -0
- package/dist/lib/modules/tournament/reward/reward.repository.js +66 -0
- package/dist/lib/modules/tournament/reward/reward.repository.js.map +1 -0
- package/dist/lib/modules/tournament/reward/reward.service.d.ts.map +1 -1
- package/dist/lib/modules/tournament/reward/reward.service.js.map +1 -1
- package/dist/lib/modules/tournament/reward/reward.types.d.ts +1 -1
- 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 +27 -0
- package/dist/lib/modules/tournament/schedule/schedule.router.d.ts.map +1 -0
- package/dist/lib/modules/tournament/schedule/schedule.router.js +17 -0
- package/dist/lib/modules/tournament/schedule/schedule.router.js.map +1 -0
- package/dist/lib/modules/tournament/schedule/schedule.service.d.ts +10 -0
- package/dist/lib/modules/tournament/schedule/schedule.service.d.ts.map +1 -0
- package/dist/lib/modules/tournament/schedule/schedule.service.js +87 -0
- package/dist/lib/modules/tournament/schedule/schedule.service.js.map +1 -0
- package/dist/lib/modules/tournament/score/score.repository.d.ts +13 -0
- package/dist/lib/modules/tournament/score/score.repository.d.ts.map +1 -0
- package/dist/lib/modules/tournament/score/score.repository.js +70 -0
- package/dist/lib/modules/tournament/score/score.repository.js.map +1 -0
- package/dist/lib/modules/tournament/score/score.router.d.ts +98 -0
- package/dist/lib/modules/tournament/score/score.router.d.ts.map +1 -0
- package/dist/lib/modules/tournament/score/score.router.js +20 -0
- package/dist/lib/modules/tournament/score/score.router.js.map +1 -0
- package/dist/lib/modules/tournament/score/score.service.d.ts +13 -0
- package/dist/lib/modules/tournament/score/score.service.d.ts.map +1 -0
- package/dist/lib/modules/tournament/score/score.service.js +109 -0
- package/dist/lib/modules/tournament/score/score.service.js.map +1 -0
- package/dist/lib/modules/tournament/score/score.validation.d.ts +375 -0
- package/dist/lib/modules/tournament/score/score.validation.d.ts.map +1 -0
- package/dist/lib/modules/tournament/score/score.validation.js +19 -0
- package/dist/lib/modules/tournament/score/score.validation.js.map +1 -0
- package/dist/lib/modules/tournament/statistics/statistics.builder.d.ts +10 -0
- package/dist/lib/modules/tournament/statistics/statistics.builder.d.ts.map +1 -0
- package/dist/lib/modules/tournament/statistics/statistics.builder.js +53 -0
- package/dist/lib/modules/tournament/statistics/statistics.builder.js.map +1 -0
- package/dist/lib/modules/tournament/statistics/statistics.router.d.ts +80 -0
- package/dist/lib/modules/tournament/statistics/statistics.router.d.ts.map +1 -0
- package/dist/lib/modules/tournament/statistics/statistics.router.js +21 -0
- package/dist/lib/modules/tournament/statistics/statistics.router.js.map +1 -0
- package/dist/lib/modules/tournament/statistics/statistics.service.d.ts +11 -0
- package/dist/lib/modules/tournament/statistics/statistics.service.d.ts.map +1 -0
- package/dist/lib/modules/tournament/statistics/statistics.service.js +80 -0
- package/dist/lib/modules/tournament/statistics/statistics.service.js.map +1 -0
- package/dist/lib/modules/tournament/statistics/statistics.validation.d.ts +404 -0
- package/dist/lib/modules/tournament/statistics/statistics.validation.d.ts.map +1 -0
- package/dist/lib/modules/tournament/statistics/statistics.validation.js +36 -0
- package/dist/lib/modules/tournament/statistics/statistics.validation.js.map +1 -0
- package/dist/lib/modules/tournament/team/team.router.d.ts +31 -57
- package/dist/lib/modules/tournament/team/team.router.d.ts.map +1 -1
- package/dist/lib/modules/tournament/team/team.service.d.ts +1 -0
- package/dist/lib/modules/tournament/team/team.service.d.ts.map +1 -1
- package/dist/lib/modules/tournament/team/team.service.js +21 -16
- package/dist/lib/modules/tournament/team/team.service.js.map +1 -1
- package/dist/lib/modules/tournament/team/team.validation.d.ts +68 -18
- package/dist/lib/modules/tournament/team/team.validation.d.ts.map +1 -1
- package/dist/lib/modules/tournament/team/team.validation.js +4 -2
- package/dist/lib/modules/tournament/team/team.validation.js.map +1 -1
- package/dist/lib/modules/tournament/tournament.router.d.ts +466 -501
- package/dist/lib/modules/tournament/tournament.router.d.ts.map +1 -1
- package/dist/lib/modules/tournament/tournament.router.js +14 -0
- package/dist/lib/modules/tournament/tournament.router.js.map +1 -1
- package/dist/lib/modules/tournament/tournament.service.d.ts +8 -0
- package/dist/lib/modules/tournament/tournament.service.d.ts.map +1 -0
- package/dist/lib/modules/tournament/tournament.service.js +63 -0
- package/dist/lib/modules/tournament/tournament.service.js.map +1 -0
- package/dist/lib/modules/tournament/tournament.types.d.ts +9 -0
- package/dist/lib/modules/tournament/tournament.types.d.ts.map +1 -0
- package/dist/lib/modules/tournament/tournament.types.js +14 -0
- package/dist/lib/modules/tournament/tournament.types.js.map +1 -0
- package/dist/lib/modules/tournament/tournament.utils.d.ts +2 -0
- package/dist/lib/modules/tournament/tournament.utils.d.ts.map +1 -0
- package/dist/lib/modules/tournament/tournament.utils.js +6 -0
- package/dist/lib/modules/tournament/tournament.utils.js.map +1 -0
- package/dist/lib/modules/tournament/tournament.validation.d.ts +133 -0
- package/dist/lib/modules/tournament/tournament.validation.d.ts.map +1 -0
- package/dist/lib/modules/tournament/tournament.validation.js +14 -0
- package/dist/lib/modules/tournament/tournament.validation.js.map +1 -0
- package/dist/types/index.d.ts +462 -508
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/modules/coupon/services/coupon.service.d.ts +2 -2
- package/dist/types/modules/coupon/services/coupon.service.d.ts.map +1 -1
- package/dist/types/modules/coupon/services/global-coupon.service.d.ts.map +1 -1
- package/dist/types/modules/coupon/services/helper.service.d.ts.map +1 -1
- package/dist/types/modules/coupon/services/individual-user-coupon.service.d.ts.map +1 -1
- package/dist/types/modules/coupon/services/referral-reward-coupon.service.d.ts.map +1 -1
- package/dist/types/modules/limited-time-offer/campaign/campaign.router.d.ts +10 -21
- package/dist/types/modules/limited-time-offer/campaign/campaign.router.d.ts.map +1 -1
- package/dist/types/modules/limited-time-offer/campaign/limited-time-offer-campaign.validation.d.ts +154 -0
- 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 +8 -2
- 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/limited-time-offer.router.d.ts +10 -21
- package/dist/types/modules/limited-time-offer/limited-time-offer.router.d.ts.map +1 -1
- package/dist/types/modules/tournament/config/config.builder.d.ts.map +1 -1
- package/dist/types/modules/tournament/config/config.repository.d.ts +4 -0
- package/dist/types/modules/tournament/config/config.repository.d.ts.map +1 -1
- package/dist/types/modules/tournament/config/config.router.d.ts +106 -218
- package/dist/types/modules/tournament/config/config.router.d.ts.map +1 -1
- package/dist/types/modules/tournament/config/config.service.d.ts +2 -2
- package/dist/types/modules/tournament/config/config.service.d.ts.map +1 -1
- package/dist/types/modules/tournament/config/config.validation.d.ts +446 -692
- package/dist/types/modules/tournament/config/config.validation.d.ts.map +1 -1
- package/dist/types/modules/tournament/match/events/evaluate-predictions.consumer.d.ts +2 -0
- package/dist/types/modules/tournament/match/events/evaluate-predictions.consumer.d.ts.map +1 -0
- package/dist/types/modules/tournament/match/events/evaluate-predictions.event.d.ts +15 -0
- package/dist/types/modules/tournament/match/events/evaluate-predictions.event.d.ts.map +1 -0
- package/dist/types/modules/tournament/match/match.builder.d.ts +5 -2
- package/dist/types/modules/tournament/match/match.builder.d.ts.map +1 -1
- package/dist/types/modules/tournament/match/match.repository.d.ts +2 -0
- package/dist/types/modules/tournament/match/match.repository.d.ts.map +1 -1
- package/dist/types/modules/tournament/match/match.router.d.ts +66 -191
- package/dist/types/modules/tournament/match/match.router.d.ts.map +1 -1
- package/dist/types/modules/tournament/match/match.service.d.ts +1 -12
- package/dist/types/modules/tournament/match/match.service.d.ts.map +1 -1
- package/dist/types/modules/tournament/match/match.validation.d.ts +96 -34
- package/dist/types/modules/tournament/match/match.validation.d.ts.map +1 -1
- package/dist/types/modules/tournament/notification/jobs/notification.producer.d.ts +2 -5
- package/dist/types/modules/tournament/notification/jobs/notification.producer.d.ts.map +1 -1
- package/dist/types/modules/tournament/notification/jobs/notification.worker.d.ts +2 -0
- package/dist/types/modules/tournament/notification/jobs/notification.worker.d.ts.map +1 -1
- package/dist/types/modules/tournament/notification/notification-template.repository.d.ts +8 -0
- package/dist/types/modules/tournament/notification/notification-template.repository.d.ts.map +1 -0
- package/dist/types/modules/tournament/notification/notification.config.d.ts +10 -0
- package/dist/types/modules/tournament/notification/notification.config.d.ts.map +1 -0
- package/dist/types/modules/tournament/notification/notification.schedule.config.d.ts +10 -0
- package/dist/types/modules/tournament/notification/notification.schedule.config.d.ts.map +1 -0
- package/dist/types/modules/tournament/notification/notification.scheduler.service.d.ts +4 -4
- package/dist/types/modules/tournament/notification/notification.scheduler.service.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.repository.d.ts +1 -0
- package/dist/types/modules/tournament/participant/participant.repository.d.ts.map +1 -1
- package/dist/types/modules/tournament/participant/participant.router.d.ts +9 -9
- package/dist/types/modules/tournament/participant/participant.validation.d.ts +84 -84
- package/dist/types/modules/tournament/prediction/prediction.builder.d.ts.map +1 -1
- package/dist/types/modules/tournament/prediction/prediction.repository.d.ts +4 -1
- package/dist/types/modules/tournament/prediction/prediction.repository.d.ts.map +1 -1
- package/dist/types/modules/tournament/prediction/prediction.router.d.ts +12 -12
- package/dist/types/modules/tournament/prediction/prediction.service.d.ts +9 -0
- package/dist/types/modules/tournament/prediction/prediction.service.d.ts.map +1 -1
- package/dist/types/modules/tournament/prediction/prediction.validation.d.ts +64 -64
- package/dist/types/modules/tournament/reward/handlers/coupon-reward.handler.d.ts +3 -0
- 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 +6 -0
- package/dist/types/modules/tournament/reward/reward.builder.d.ts.map +1 -0
- package/dist/types/modules/tournament/reward/reward.interface.d.ts.map +1 -1
- package/dist/types/modules/tournament/reward/reward.repository.d.ts +8 -0
- package/dist/types/modules/tournament/reward/reward.repository.d.ts.map +1 -0
- package/dist/types/modules/tournament/reward/reward.service.d.ts.map +1 -1
- package/dist/types/modules/tournament/reward/reward.types.d.ts +1 -1
- package/dist/types/modules/tournament/reward/reward.types.d.ts.map +1 -1
- package/dist/types/modules/tournament/schedule/schedule.router.d.ts +27 -0
- package/dist/types/modules/tournament/schedule/schedule.router.d.ts.map +1 -0
- package/dist/types/modules/tournament/schedule/schedule.service.d.ts +10 -0
- package/dist/types/modules/tournament/schedule/schedule.service.d.ts.map +1 -0
- package/dist/types/modules/tournament/score/score.repository.d.ts +13 -0
- package/dist/types/modules/tournament/score/score.repository.d.ts.map +1 -0
- package/dist/types/modules/tournament/score/score.router.d.ts +98 -0
- package/dist/types/modules/tournament/score/score.router.d.ts.map +1 -0
- package/dist/types/modules/tournament/score/score.service.d.ts +13 -0
- package/dist/types/modules/tournament/score/score.service.d.ts.map +1 -0
- package/dist/types/modules/tournament/score/score.validation.d.ts +375 -0
- package/dist/types/modules/tournament/score/score.validation.d.ts.map +1 -0
- package/dist/types/modules/tournament/statistics/statistics.builder.d.ts +10 -0
- package/dist/types/modules/tournament/statistics/statistics.builder.d.ts.map +1 -0
- package/dist/types/modules/tournament/statistics/statistics.router.d.ts +80 -0
- package/dist/types/modules/tournament/statistics/statistics.router.d.ts.map +1 -0
- package/dist/types/modules/tournament/statistics/statistics.service.d.ts +11 -0
- package/dist/types/modules/tournament/statistics/statistics.service.d.ts.map +1 -0
- package/dist/types/modules/tournament/statistics/statistics.validation.d.ts +404 -0
- package/dist/types/modules/tournament/statistics/statistics.validation.d.ts.map +1 -0
- package/dist/types/modules/tournament/team/team.router.d.ts +31 -57
- package/dist/types/modules/tournament/team/team.router.d.ts.map +1 -1
- package/dist/types/modules/tournament/team/team.service.d.ts +1 -0
- package/dist/types/modules/tournament/team/team.service.d.ts.map +1 -1
- package/dist/types/modules/tournament/team/team.validation.d.ts +68 -18
- package/dist/types/modules/tournament/team/team.validation.d.ts.map +1 -1
- package/dist/types/modules/tournament/tournament.router.d.ts +466 -501
- package/dist/types/modules/tournament/tournament.router.d.ts.map +1 -1
- package/dist/types/modules/tournament/tournament.service.d.ts +8 -0
- package/dist/types/modules/tournament/tournament.service.d.ts.map +1 -0
- package/dist/types/modules/tournament/tournament.types.d.ts +9 -0
- package/dist/types/modules/tournament/tournament.types.d.ts.map +1 -0
- package/dist/types/modules/tournament/tournament.utils.d.ts +2 -0
- package/dist/types/modules/tournament/tournament.utils.d.ts.map +1 -0
- package/dist/types/modules/tournament/tournament.validation.d.ts +133 -0
- package/dist/types/modules/tournament/tournament.validation.d.ts.map +1 -0
- package/package.json +2 -2
|
@@ -1,226 +1,309 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { DTO } from '@lyxa.ai/core/dist/utilities/validation/global-validation';
|
|
3
|
-
import { Status } from '@lyxa.ai/core/dist/utilities/enum';
|
|
3
|
+
import { Status, TournamentRewardType } from '@lyxa.ai/core/dist/utilities/enum';
|
|
4
|
+
import { TournamentTag } from '../tournament.types';
|
|
4
5
|
export declare const CreateTournamentConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
5
|
-
|
|
6
|
+
name: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
7
|
+
tag: z.ZodNativeEnum<typeof TournamentTag>;
|
|
6
8
|
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>;
|
|
7
9
|
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>;
|
|
8
10
|
status: z.ZodOptional<z.ZodNativeEnum<typeof Status>>;
|
|
11
|
+
reward: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
12
|
+
type: z.ZodLiteral<TournamentRewardType.COUPON>;
|
|
13
|
+
couponNamePrefix: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
14
|
+
percentage: z.ZodNumber;
|
|
15
|
+
maxDiscountPerOrder: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
16
|
+
}, "strip", z.ZodTypeAny, {
|
|
17
|
+
type: TournamentRewardType.COUPON;
|
|
18
|
+
couponNamePrefix: string;
|
|
19
|
+
percentage: number;
|
|
20
|
+
maxDiscountPerOrder?: number | null | undefined;
|
|
21
|
+
}, {
|
|
22
|
+
type: TournamentRewardType.COUPON;
|
|
23
|
+
couponNamePrefix: string;
|
|
24
|
+
percentage: number;
|
|
25
|
+
maxDiscountPerOrder?: number | null | undefined;
|
|
26
|
+
}>, z.ZodObject<{
|
|
27
|
+
type: z.ZodLiteral<TournamentRewardType.FREE_DELIVERY>;
|
|
28
|
+
}, "strip", z.ZodTypeAny, {
|
|
29
|
+
type: TournamentRewardType.FREE_DELIVERY;
|
|
30
|
+
}, {
|
|
31
|
+
type: TournamentRewardType.FREE_DELIVERY;
|
|
32
|
+
}>]>>;
|
|
9
33
|
}, "strip", z.ZodTypeAny, {
|
|
34
|
+
name: string;
|
|
10
35
|
startDate: Date;
|
|
11
36
|
endDate: Date;
|
|
12
|
-
tag:
|
|
37
|
+
tag: TournamentTag;
|
|
13
38
|
status?: Status | undefined;
|
|
39
|
+
reward?: {
|
|
40
|
+
type: TournamentRewardType.FREE_DELIVERY;
|
|
41
|
+
} | {
|
|
42
|
+
type: TournamentRewardType.COUPON;
|
|
43
|
+
couponNamePrefix: string;
|
|
44
|
+
percentage: number;
|
|
45
|
+
maxDiscountPerOrder?: number | null | undefined;
|
|
46
|
+
} | undefined;
|
|
14
47
|
}, {
|
|
48
|
+
name: string;
|
|
15
49
|
startDate: string | Date;
|
|
16
50
|
endDate: string | Date;
|
|
17
|
-
tag:
|
|
51
|
+
tag: TournamentTag;
|
|
18
52
|
status?: Status | undefined;
|
|
53
|
+
reward?: {
|
|
54
|
+
type: TournamentRewardType.FREE_DELIVERY;
|
|
55
|
+
} | {
|
|
56
|
+
type: TournamentRewardType.COUPON;
|
|
57
|
+
couponNamePrefix: string;
|
|
58
|
+
percentage: number;
|
|
59
|
+
maxDiscountPerOrder?: number | null | undefined;
|
|
60
|
+
} | undefined;
|
|
19
61
|
}>, {
|
|
62
|
+
name: string;
|
|
20
63
|
startDate: Date;
|
|
21
64
|
endDate: Date;
|
|
22
|
-
tag:
|
|
65
|
+
tag: TournamentTag;
|
|
23
66
|
status?: Status | undefined;
|
|
67
|
+
reward?: {
|
|
68
|
+
type: TournamentRewardType.FREE_DELIVERY;
|
|
69
|
+
} | {
|
|
70
|
+
type: TournamentRewardType.COUPON;
|
|
71
|
+
couponNamePrefix: string;
|
|
72
|
+
percentage: number;
|
|
73
|
+
maxDiscountPerOrder?: number | null | undefined;
|
|
74
|
+
} | undefined;
|
|
24
75
|
}, {
|
|
76
|
+
name: string;
|
|
25
77
|
startDate: string | Date;
|
|
26
78
|
endDate: string | Date;
|
|
27
|
-
tag:
|
|
79
|
+
tag: TournamentTag;
|
|
28
80
|
status?: Status | undefined;
|
|
81
|
+
reward?: {
|
|
82
|
+
type: TournamentRewardType.FREE_DELIVERY;
|
|
83
|
+
} | {
|
|
84
|
+
type: TournamentRewardType.COUPON;
|
|
85
|
+
couponNamePrefix: string;
|
|
86
|
+
percentage: number;
|
|
87
|
+
maxDiscountPerOrder?: number | null | undefined;
|
|
88
|
+
} | undefined;
|
|
29
89
|
}>;
|
|
30
90
|
export declare const UpdateTournamentConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
31
91
|
_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>]>;
|
|
32
|
-
|
|
92
|
+
name: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
93
|
+
tag: z.ZodOptional<z.ZodNativeEnum<typeof TournamentTag>>;
|
|
33
94
|
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>>;
|
|
34
95
|
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>>;
|
|
35
96
|
status: z.ZodOptional<z.ZodNativeEnum<typeof Status>>;
|
|
97
|
+
reward: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
98
|
+
type: z.ZodLiteral<TournamentRewardType.COUPON>;
|
|
99
|
+
couponNamePrefix: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
100
|
+
percentage: z.ZodNumber;
|
|
101
|
+
maxDiscountPerOrder: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
102
|
+
}, "strip", z.ZodTypeAny, {
|
|
103
|
+
type: TournamentRewardType.COUPON;
|
|
104
|
+
couponNamePrefix: string;
|
|
105
|
+
percentage: number;
|
|
106
|
+
maxDiscountPerOrder?: number | null | undefined;
|
|
107
|
+
}, {
|
|
108
|
+
type: TournamentRewardType.COUPON;
|
|
109
|
+
couponNamePrefix: string;
|
|
110
|
+
percentage: number;
|
|
111
|
+
maxDiscountPerOrder?: number | null | undefined;
|
|
112
|
+
}>, z.ZodObject<{
|
|
113
|
+
type: z.ZodLiteral<TournamentRewardType.FREE_DELIVERY>;
|
|
114
|
+
}, "strip", z.ZodTypeAny, {
|
|
115
|
+
type: TournamentRewardType.FREE_DELIVERY;
|
|
116
|
+
}, {
|
|
117
|
+
type: TournamentRewardType.FREE_DELIVERY;
|
|
118
|
+
}>]>>;
|
|
36
119
|
}, "strip", z.ZodTypeAny, {
|
|
37
120
|
_id: import("mongoose").Types.ObjectId;
|
|
38
121
|
status?: Status | undefined;
|
|
122
|
+
name?: string | undefined;
|
|
39
123
|
startDate?: Date | undefined;
|
|
40
124
|
endDate?: Date | undefined;
|
|
41
|
-
tag?:
|
|
125
|
+
tag?: TournamentTag | undefined;
|
|
126
|
+
reward?: {
|
|
127
|
+
type: TournamentRewardType.FREE_DELIVERY;
|
|
128
|
+
} | {
|
|
129
|
+
type: TournamentRewardType.COUPON;
|
|
130
|
+
couponNamePrefix: string;
|
|
131
|
+
percentage: number;
|
|
132
|
+
maxDiscountPerOrder?: number | null | undefined;
|
|
133
|
+
} | undefined;
|
|
42
134
|
}, {
|
|
43
135
|
_id: string | import("mongoose").Types.ObjectId;
|
|
44
136
|
status?: Status | undefined;
|
|
137
|
+
name?: string | undefined;
|
|
45
138
|
startDate?: string | Date | undefined;
|
|
46
139
|
endDate?: string | Date | undefined;
|
|
47
|
-
tag?:
|
|
140
|
+
tag?: TournamentTag | undefined;
|
|
141
|
+
reward?: {
|
|
142
|
+
type: TournamentRewardType.FREE_DELIVERY;
|
|
143
|
+
} | {
|
|
144
|
+
type: TournamentRewardType.COUPON;
|
|
145
|
+
couponNamePrefix: string;
|
|
146
|
+
percentage: number;
|
|
147
|
+
maxDiscountPerOrder?: number | null | undefined;
|
|
148
|
+
} | undefined;
|
|
48
149
|
}>, {
|
|
49
150
|
_id: import("mongoose").Types.ObjectId;
|
|
50
151
|
status?: Status | undefined;
|
|
152
|
+
name?: string | undefined;
|
|
51
153
|
startDate?: Date | undefined;
|
|
52
154
|
endDate?: Date | undefined;
|
|
53
|
-
tag?:
|
|
155
|
+
tag?: TournamentTag | undefined;
|
|
156
|
+
reward?: {
|
|
157
|
+
type: TournamentRewardType.FREE_DELIVERY;
|
|
158
|
+
} | {
|
|
159
|
+
type: TournamentRewardType.COUPON;
|
|
160
|
+
couponNamePrefix: string;
|
|
161
|
+
percentage: number;
|
|
162
|
+
maxDiscountPerOrder?: number | null | undefined;
|
|
163
|
+
} | undefined;
|
|
54
164
|
}, {
|
|
55
165
|
_id: string | import("mongoose").Types.ObjectId;
|
|
56
166
|
status?: Status | undefined;
|
|
167
|
+
name?: string | undefined;
|
|
57
168
|
startDate?: string | Date | undefined;
|
|
58
169
|
endDate?: string | Date | undefined;
|
|
59
|
-
tag?:
|
|
170
|
+
tag?: TournamentTag | undefined;
|
|
171
|
+
reward?: {
|
|
172
|
+
type: TournamentRewardType.FREE_DELIVERY;
|
|
173
|
+
} | {
|
|
174
|
+
type: TournamentRewardType.COUPON;
|
|
175
|
+
couponNamePrefix: string;
|
|
176
|
+
percentage: number;
|
|
177
|
+
maxDiscountPerOrder?: number | null | undefined;
|
|
178
|
+
} | undefined;
|
|
60
179
|
}>;
|
|
61
180
|
export declare const TournamentConfigSchema: z.ZodObject<{
|
|
62
|
-
_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>]
|
|
63
|
-
|
|
181
|
+
_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
|
+
name: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
183
|
+
tag: z.ZodDefault<z.ZodNativeEnum<typeof TournamentTag>>;
|
|
64
184
|
startDate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
65
185
|
endDate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
66
186
|
status: z.ZodNativeEnum<typeof Status>;
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
187
|
+
reward: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
188
|
+
type: z.ZodLiteral<TournamentRewardType.COUPON>;
|
|
189
|
+
couponNamePrefix: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
190
|
+
percentage: z.ZodOptional<z.ZodNumber>;
|
|
191
|
+
maxDiscountPerOrder: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
71
192
|
}, "strip", z.ZodTypeAny, {
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
193
|
+
type: TournamentRewardType.COUPON;
|
|
194
|
+
maxDiscountPerOrder?: number | null | undefined;
|
|
195
|
+
couponNamePrefix?: string | undefined;
|
|
196
|
+
percentage?: number | undefined;
|
|
75
197
|
}, {
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
additionalTag: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
83
|
-
stage: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
84
|
-
team1: z.ZodObject<{
|
|
85
|
-
teamId: 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>]>;
|
|
86
|
-
name: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
87
|
-
}, "strip", z.ZodTypeAny, {
|
|
88
|
-
name: string;
|
|
89
|
-
teamId: import("mongoose").Types.ObjectId;
|
|
90
|
-
}, {
|
|
91
|
-
name: string;
|
|
92
|
-
teamId: string | import("mongoose").Types.ObjectId;
|
|
93
|
-
}>;
|
|
94
|
-
team2: z.ZodObject<{
|
|
95
|
-
teamId: 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>]>;
|
|
96
|
-
name: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
97
|
-
}, "strip", z.ZodTypeAny, {
|
|
98
|
-
name: string;
|
|
99
|
-
teamId: import("mongoose").Types.ObjectId;
|
|
100
|
-
}, {
|
|
101
|
-
name: string;
|
|
102
|
-
teamId: string | import("mongoose").Types.ObjectId;
|
|
103
|
-
}>;
|
|
104
|
-
score: z.ZodObject<{
|
|
105
|
-
team1: z.ZodNullable<z.ZodNumber>;
|
|
106
|
-
team2: z.ZodNullable<z.ZodNumber>;
|
|
107
|
-
}, "strip", z.ZodTypeAny, {
|
|
108
|
-
team1: number | null;
|
|
109
|
-
team2: number | null;
|
|
110
|
-
}, {
|
|
111
|
-
team1: number | null;
|
|
112
|
-
team2: number | null;
|
|
113
|
-
}>;
|
|
114
|
-
winnerId: z.ZodOptional<z.ZodNullable<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>]>>>;
|
|
115
|
-
startingDate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
116
|
-
endDate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
198
|
+
type: TournamentRewardType.COUPON;
|
|
199
|
+
maxDiscountPerOrder?: number | null | undefined;
|
|
200
|
+
couponNamePrefix?: string | undefined;
|
|
201
|
+
percentage?: number | undefined;
|
|
202
|
+
}>, z.ZodObject<{
|
|
203
|
+
type: z.ZodLiteral<TournamentRewardType.FREE_DELIVERY>;
|
|
117
204
|
}, "strip", z.ZodTypeAny, {
|
|
118
|
-
|
|
119
|
-
team1: {
|
|
120
|
-
name: string;
|
|
121
|
-
teamId: import("mongoose").Types.ObjectId;
|
|
122
|
-
};
|
|
123
|
-
team2: {
|
|
124
|
-
name: string;
|
|
125
|
-
teamId: import("mongoose").Types.ObjectId;
|
|
126
|
-
};
|
|
127
|
-
score: {
|
|
128
|
-
team1: number | null;
|
|
129
|
-
team2: number | null;
|
|
130
|
-
};
|
|
131
|
-
stage: string;
|
|
132
|
-
endDate?: Date | null | undefined;
|
|
133
|
-
startingDate?: Date | null | undefined;
|
|
134
|
-
additionalTag?: string | undefined;
|
|
135
|
-
winnerId?: import("mongoose").Types.ObjectId | null | undefined;
|
|
205
|
+
type: TournamentRewardType.FREE_DELIVERY;
|
|
136
206
|
}, {
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
name: string;
|
|
140
|
-
teamId: string | import("mongoose").Types.ObjectId;
|
|
141
|
-
};
|
|
142
|
-
team2: {
|
|
143
|
-
name: string;
|
|
144
|
-
teamId: string | import("mongoose").Types.ObjectId;
|
|
145
|
-
};
|
|
146
|
-
score: {
|
|
147
|
-
team1: number | null;
|
|
148
|
-
team2: number | null;
|
|
149
|
-
};
|
|
150
|
-
stage: string;
|
|
151
|
-
endDate?: Date | null | undefined;
|
|
152
|
-
startingDate?: Date | null | undefined;
|
|
153
|
-
additionalTag?: string | undefined;
|
|
154
|
-
winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
|
|
155
|
-
}>, "many">>;
|
|
207
|
+
type: TournamentRewardType.FREE_DELIVERY;
|
|
208
|
+
}>]>>;
|
|
156
209
|
createdAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
157
210
|
updatedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
158
211
|
}, "strip", z.ZodTypeAny, {
|
|
159
212
|
status: Status;
|
|
160
|
-
|
|
161
|
-
tag:
|
|
162
|
-
|
|
163
|
-
_id: import("mongoose").Types.ObjectId;
|
|
164
|
-
team1: {
|
|
165
|
-
name: string;
|
|
166
|
-
teamId: import("mongoose").Types.ObjectId;
|
|
167
|
-
};
|
|
168
|
-
team2: {
|
|
169
|
-
name: string;
|
|
170
|
-
teamId: import("mongoose").Types.ObjectId;
|
|
171
|
-
};
|
|
172
|
-
score: {
|
|
173
|
-
team1: number | null;
|
|
174
|
-
team2: number | null;
|
|
175
|
-
};
|
|
176
|
-
stage: string;
|
|
177
|
-
endDate?: Date | null | undefined;
|
|
178
|
-
startingDate?: Date | null | undefined;
|
|
179
|
-
additionalTag?: string | undefined;
|
|
180
|
-
winnerId?: import("mongoose").Types.ObjectId | null | undefined;
|
|
181
|
-
}[];
|
|
182
|
-
teams: {
|
|
183
|
-
name: string;
|
|
184
|
-
_id: import("mongoose").Types.ObjectId;
|
|
185
|
-
picture?: string | null | undefined;
|
|
186
|
-
}[];
|
|
213
|
+
name: string;
|
|
214
|
+
tag: TournamentTag;
|
|
215
|
+
_id?: import("mongoose").Types.ObjectId | undefined;
|
|
187
216
|
createdAt?: Date | null | undefined;
|
|
188
217
|
startDate?: Date | null | undefined;
|
|
189
218
|
endDate?: Date | null | undefined;
|
|
190
219
|
updatedAt?: Date | null | undefined;
|
|
220
|
+
reward?: {
|
|
221
|
+
type: TournamentRewardType.FREE_DELIVERY;
|
|
222
|
+
} | {
|
|
223
|
+
type: TournamentRewardType.COUPON;
|
|
224
|
+
maxDiscountPerOrder?: number | null | undefined;
|
|
225
|
+
couponNamePrefix?: string | undefined;
|
|
226
|
+
percentage?: number | undefined;
|
|
227
|
+
} | undefined;
|
|
191
228
|
}, {
|
|
192
229
|
status: Status;
|
|
193
|
-
|
|
194
|
-
|
|
230
|
+
name: string;
|
|
231
|
+
_id?: string | import("mongoose").Types.ObjectId | undefined;
|
|
195
232
|
createdAt?: Date | null | undefined;
|
|
196
233
|
startDate?: Date | null | undefined;
|
|
197
234
|
endDate?: Date | null | undefined;
|
|
198
235
|
updatedAt?: Date | null | undefined;
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
}
|
|
236
|
+
tag?: TournamentTag | undefined;
|
|
237
|
+
reward?: {
|
|
238
|
+
type: TournamentRewardType.FREE_DELIVERY;
|
|
239
|
+
} | {
|
|
240
|
+
type: TournamentRewardType.COUPON;
|
|
241
|
+
maxDiscountPerOrder?: number | null | undefined;
|
|
242
|
+
couponNamePrefix?: string | undefined;
|
|
243
|
+
percentage?: number | undefined;
|
|
244
|
+
} | undefined;
|
|
245
|
+
}>;
|
|
246
|
+
export declare const TournamentConfigListItemSchema: z.ZodObject<{
|
|
247
|
+
_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
|
+
name: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
249
|
+
tag: z.ZodDefault<z.ZodNativeEnum<typeof TournamentTag>>;
|
|
250
|
+
startDate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
251
|
+
endDate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
252
|
+
status: z.ZodNativeEnum<typeof Status>;
|
|
253
|
+
createdAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
254
|
+
updatedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
255
|
+
} & {
|
|
256
|
+
reward: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
257
|
+
type: z.ZodLiteral<TournamentRewardType.COUPON>;
|
|
258
|
+
percentage: z.ZodOptional<z.ZodNumber>;
|
|
259
|
+
maxDiscountPerOrder: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
260
|
+
}, "strip", z.ZodTypeAny, {
|
|
261
|
+
type: TournamentRewardType.COUPON;
|
|
262
|
+
maxDiscountPerOrder?: number | null | undefined;
|
|
263
|
+
percentage?: number | undefined;
|
|
264
|
+
}, {
|
|
265
|
+
type: TournamentRewardType.COUPON;
|
|
266
|
+
maxDiscountPerOrder?: number | null | undefined;
|
|
267
|
+
percentage?: number | undefined;
|
|
268
|
+
}>, z.ZodObject<{
|
|
269
|
+
type: z.ZodLiteral<TournamentRewardType.FREE_DELIVERY>;
|
|
270
|
+
}, "strip", z.ZodTypeAny, {
|
|
271
|
+
type: TournamentRewardType.FREE_DELIVERY;
|
|
272
|
+
}, {
|
|
273
|
+
type: TournamentRewardType.FREE_DELIVERY;
|
|
274
|
+
}>]>>;
|
|
275
|
+
}, "strip", z.ZodTypeAny, {
|
|
276
|
+
status: Status;
|
|
277
|
+
name: string;
|
|
278
|
+
tag: TournamentTag;
|
|
279
|
+
_id?: import("mongoose").Types.ObjectId | undefined;
|
|
280
|
+
createdAt?: Date | null | undefined;
|
|
281
|
+
startDate?: Date | null | undefined;
|
|
282
|
+
endDate?: Date | null | undefined;
|
|
283
|
+
updatedAt?: Date | null | undefined;
|
|
284
|
+
reward?: {
|
|
285
|
+
type: TournamentRewardType.FREE_DELIVERY;
|
|
286
|
+
} | {
|
|
287
|
+
type: TournamentRewardType.COUPON;
|
|
288
|
+
maxDiscountPerOrder?: number | null | undefined;
|
|
289
|
+
percentage?: number | undefined;
|
|
290
|
+
} | undefined;
|
|
291
|
+
}, {
|
|
292
|
+
status: Status;
|
|
293
|
+
name: string;
|
|
294
|
+
_id?: string | import("mongoose").Types.ObjectId | undefined;
|
|
295
|
+
createdAt?: Date | null | undefined;
|
|
296
|
+
startDate?: Date | null | undefined;
|
|
297
|
+
endDate?: Date | null | undefined;
|
|
298
|
+
updatedAt?: Date | null | undefined;
|
|
299
|
+
tag?: TournamentTag | undefined;
|
|
300
|
+
reward?: {
|
|
301
|
+
type: TournamentRewardType.FREE_DELIVERY;
|
|
302
|
+
} | {
|
|
303
|
+
type: TournamentRewardType.COUPON;
|
|
304
|
+
maxDiscountPerOrder?: number | null | undefined;
|
|
305
|
+
percentage?: number | undefined;
|
|
306
|
+
} | undefined;
|
|
224
307
|
}>;
|
|
225
308
|
export declare const TournamentConfigResponseSchema: z.ZodObject<{
|
|
226
309
|
success: z.ZodBoolean;
|
|
@@ -244,105 +327,57 @@ export declare const TournamentConfigResponseSchema: z.ZodObject<{
|
|
|
244
327
|
}>>;
|
|
245
328
|
documents: z.ZodArray<z.ZodType<{
|
|
246
329
|
status: Status;
|
|
247
|
-
|
|
248
|
-
|
|
330
|
+
name: string;
|
|
331
|
+
_id?: string | import("mongoose").Types.ObjectId | undefined;
|
|
249
332
|
createdAt?: Date | null | undefined;
|
|
250
333
|
startDate?: Date | null | undefined;
|
|
251
334
|
endDate?: Date | null | undefined;
|
|
252
335
|
updatedAt?: Date | null | undefined;
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
};
|
|
263
|
-
score: {
|
|
264
|
-
team1: number | null;
|
|
265
|
-
team2: number | null;
|
|
266
|
-
};
|
|
267
|
-
stage: string;
|
|
268
|
-
endDate?: Date | null | undefined;
|
|
269
|
-
startingDate?: Date | null | undefined;
|
|
270
|
-
additionalTag?: string | undefined;
|
|
271
|
-
winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
|
|
272
|
-
}[] | undefined;
|
|
273
|
-
teams?: {
|
|
274
|
-
name: string;
|
|
275
|
-
_id: string | import("mongoose").Types.ObjectId;
|
|
276
|
-
picture?: string | null | undefined;
|
|
277
|
-
}[] | undefined;
|
|
336
|
+
tag?: TournamentTag | undefined;
|
|
337
|
+
reward?: {
|
|
338
|
+
type: TournamentRewardType.FREE_DELIVERY;
|
|
339
|
+
} | {
|
|
340
|
+
type: TournamentRewardType.COUPON;
|
|
341
|
+
maxDiscountPerOrder?: number | null | undefined;
|
|
342
|
+
couponNamePrefix?: string | undefined;
|
|
343
|
+
percentage?: number | undefined;
|
|
344
|
+
} | undefined;
|
|
278
345
|
}, z.ZodTypeDef, {
|
|
279
346
|
status: Status;
|
|
280
|
-
|
|
281
|
-
|
|
347
|
+
name: string;
|
|
348
|
+
_id?: string | import("mongoose").Types.ObjectId | undefined;
|
|
282
349
|
createdAt?: Date | null | undefined;
|
|
283
350
|
startDate?: Date | null | undefined;
|
|
284
351
|
endDate?: Date | null | undefined;
|
|
285
352
|
updatedAt?: Date | null | undefined;
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
};
|
|
296
|
-
score: {
|
|
297
|
-
team1: number | null;
|
|
298
|
-
team2: number | null;
|
|
299
|
-
};
|
|
300
|
-
stage: string;
|
|
301
|
-
endDate?: Date | null | undefined;
|
|
302
|
-
startingDate?: Date | null | undefined;
|
|
303
|
-
additionalTag?: string | undefined;
|
|
304
|
-
winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
|
|
305
|
-
}[] | undefined;
|
|
306
|
-
teams?: {
|
|
307
|
-
name: string;
|
|
308
|
-
_id: string | import("mongoose").Types.ObjectId;
|
|
309
|
-
picture?: string | null | undefined;
|
|
310
|
-
}[] | undefined;
|
|
353
|
+
tag?: TournamentTag | undefined;
|
|
354
|
+
reward?: {
|
|
355
|
+
type: TournamentRewardType.FREE_DELIVERY;
|
|
356
|
+
} | {
|
|
357
|
+
type: TournamentRewardType.COUPON;
|
|
358
|
+
maxDiscountPerOrder?: number | null | undefined;
|
|
359
|
+
couponNamePrefix?: string | undefined;
|
|
360
|
+
percentage?: number | undefined;
|
|
361
|
+
} | undefined;
|
|
311
362
|
}>, "many">;
|
|
312
363
|
}, "strip", z.ZodTypeAny, {
|
|
313
364
|
documents: {
|
|
314
365
|
status: Status;
|
|
315
|
-
|
|
316
|
-
|
|
366
|
+
name: string;
|
|
367
|
+
_id?: string | import("mongoose").Types.ObjectId | undefined;
|
|
317
368
|
createdAt?: Date | null | undefined;
|
|
318
369
|
startDate?: Date | null | undefined;
|
|
319
370
|
endDate?: Date | null | undefined;
|
|
320
371
|
updatedAt?: Date | null | undefined;
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
};
|
|
331
|
-
score: {
|
|
332
|
-
team1: number | null;
|
|
333
|
-
team2: number | null;
|
|
334
|
-
};
|
|
335
|
-
stage: string;
|
|
336
|
-
endDate?: Date | null | undefined;
|
|
337
|
-
startingDate?: Date | null | undefined;
|
|
338
|
-
additionalTag?: string | undefined;
|
|
339
|
-
winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
|
|
340
|
-
}[] | undefined;
|
|
341
|
-
teams?: {
|
|
342
|
-
name: string;
|
|
343
|
-
_id: string | import("mongoose").Types.ObjectId;
|
|
344
|
-
picture?: string | null | undefined;
|
|
345
|
-
}[] | undefined;
|
|
372
|
+
tag?: TournamentTag | undefined;
|
|
373
|
+
reward?: {
|
|
374
|
+
type: TournamentRewardType.FREE_DELIVERY;
|
|
375
|
+
} | {
|
|
376
|
+
type: TournamentRewardType.COUPON;
|
|
377
|
+
maxDiscountPerOrder?: number | null | undefined;
|
|
378
|
+
couponNamePrefix?: string | undefined;
|
|
379
|
+
percentage?: number | undefined;
|
|
380
|
+
} | undefined;
|
|
346
381
|
}[];
|
|
347
382
|
metadata?: {
|
|
348
383
|
page: number;
|
|
@@ -353,37 +388,21 @@ export declare const TournamentConfigResponseSchema: z.ZodObject<{
|
|
|
353
388
|
}, {
|
|
354
389
|
documents: {
|
|
355
390
|
status: Status;
|
|
356
|
-
|
|
357
|
-
|
|
391
|
+
name: string;
|
|
392
|
+
_id?: string | import("mongoose").Types.ObjectId | undefined;
|
|
358
393
|
createdAt?: Date | null | undefined;
|
|
359
394
|
startDate?: Date | null | undefined;
|
|
360
395
|
endDate?: Date | null | undefined;
|
|
361
396
|
updatedAt?: Date | null | undefined;
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
};
|
|
372
|
-
score: {
|
|
373
|
-
team1: number | null;
|
|
374
|
-
team2: number | null;
|
|
375
|
-
};
|
|
376
|
-
stage: string;
|
|
377
|
-
endDate?: Date | null | undefined;
|
|
378
|
-
startingDate?: Date | null | undefined;
|
|
379
|
-
additionalTag?: string | undefined;
|
|
380
|
-
winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
|
|
381
|
-
}[] | undefined;
|
|
382
|
-
teams?: {
|
|
383
|
-
name: string;
|
|
384
|
-
_id: string | import("mongoose").Types.ObjectId;
|
|
385
|
-
picture?: string | null | undefined;
|
|
386
|
-
}[] | undefined;
|
|
397
|
+
tag?: TournamentTag | undefined;
|
|
398
|
+
reward?: {
|
|
399
|
+
type: TournamentRewardType.FREE_DELIVERY;
|
|
400
|
+
} | {
|
|
401
|
+
type: TournamentRewardType.COUPON;
|
|
402
|
+
maxDiscountPerOrder?: number | null | undefined;
|
|
403
|
+
couponNamePrefix?: string | undefined;
|
|
404
|
+
percentage?: number | undefined;
|
|
405
|
+
} | undefined;
|
|
387
406
|
}[];
|
|
388
407
|
metadata?: {
|
|
389
408
|
page: number;
|
|
@@ -393,141 +412,77 @@ export declare const TournamentConfigResponseSchema: z.ZodObject<{
|
|
|
393
412
|
} | undefined;
|
|
394
413
|
}>, z.ZodType<{
|
|
395
414
|
status: Status;
|
|
396
|
-
|
|
397
|
-
|
|
415
|
+
name: string;
|
|
416
|
+
_id?: string | import("mongoose").Types.ObjectId | undefined;
|
|
398
417
|
createdAt?: Date | null | undefined;
|
|
399
418
|
startDate?: Date | null | undefined;
|
|
400
419
|
endDate?: Date | null | undefined;
|
|
401
420
|
updatedAt?: Date | null | undefined;
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
};
|
|
412
|
-
score: {
|
|
413
|
-
team1: number | null;
|
|
414
|
-
team2: number | null;
|
|
415
|
-
};
|
|
416
|
-
stage: string;
|
|
417
|
-
endDate?: Date | null | undefined;
|
|
418
|
-
startingDate?: Date | null | undefined;
|
|
419
|
-
additionalTag?: string | undefined;
|
|
420
|
-
winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
|
|
421
|
-
}[] | undefined;
|
|
422
|
-
teams?: {
|
|
423
|
-
name: string;
|
|
424
|
-
_id: string | import("mongoose").Types.ObjectId;
|
|
425
|
-
picture?: string | null | undefined;
|
|
426
|
-
}[] | undefined;
|
|
421
|
+
tag?: TournamentTag | undefined;
|
|
422
|
+
reward?: {
|
|
423
|
+
type: TournamentRewardType.FREE_DELIVERY;
|
|
424
|
+
} | {
|
|
425
|
+
type: TournamentRewardType.COUPON;
|
|
426
|
+
maxDiscountPerOrder?: number | null | undefined;
|
|
427
|
+
couponNamePrefix?: string | undefined;
|
|
428
|
+
percentage?: number | undefined;
|
|
429
|
+
} | undefined;
|
|
427
430
|
}, z.ZodTypeDef, {
|
|
428
431
|
status: Status;
|
|
429
|
-
|
|
430
|
-
|
|
432
|
+
name: string;
|
|
433
|
+
_id?: string | import("mongoose").Types.ObjectId | undefined;
|
|
431
434
|
createdAt?: Date | null | undefined;
|
|
432
435
|
startDate?: Date | null | undefined;
|
|
433
436
|
endDate?: Date | null | undefined;
|
|
434
437
|
updatedAt?: Date | null | undefined;
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
};
|
|
445
|
-
score: {
|
|
446
|
-
team1: number | null;
|
|
447
|
-
team2: number | null;
|
|
448
|
-
};
|
|
449
|
-
stage: string;
|
|
450
|
-
endDate?: Date | null | undefined;
|
|
451
|
-
startingDate?: Date | null | undefined;
|
|
452
|
-
additionalTag?: string | undefined;
|
|
453
|
-
winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
|
|
454
|
-
}[] | undefined;
|
|
455
|
-
teams?: {
|
|
456
|
-
name: string;
|
|
457
|
-
_id: string | import("mongoose").Types.ObjectId;
|
|
458
|
-
picture?: string | null | undefined;
|
|
459
|
-
}[] | undefined;
|
|
438
|
+
tag?: TournamentTag | undefined;
|
|
439
|
+
reward?: {
|
|
440
|
+
type: TournamentRewardType.FREE_DELIVERY;
|
|
441
|
+
} | {
|
|
442
|
+
type: TournamentRewardType.COUPON;
|
|
443
|
+
maxDiscountPerOrder?: number | null | undefined;
|
|
444
|
+
couponNamePrefix?: string | undefined;
|
|
445
|
+
percentage?: number | undefined;
|
|
446
|
+
} | undefined;
|
|
460
447
|
}>]>>;
|
|
461
448
|
}, "strip", z.ZodTypeAny, {
|
|
462
449
|
message: string;
|
|
463
450
|
success: boolean;
|
|
464
451
|
data?: {
|
|
465
452
|
status: Status;
|
|
466
|
-
|
|
467
|
-
|
|
453
|
+
name: string;
|
|
454
|
+
_id?: string | import("mongoose").Types.ObjectId | undefined;
|
|
468
455
|
createdAt?: Date | null | undefined;
|
|
469
456
|
startDate?: Date | null | undefined;
|
|
470
457
|
endDate?: Date | null | undefined;
|
|
471
458
|
updatedAt?: Date | null | undefined;
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
};
|
|
482
|
-
score: {
|
|
483
|
-
team1: number | null;
|
|
484
|
-
team2: number | null;
|
|
485
|
-
};
|
|
486
|
-
stage: string;
|
|
487
|
-
endDate?: Date | null | undefined;
|
|
488
|
-
startingDate?: Date | null | undefined;
|
|
489
|
-
additionalTag?: string | undefined;
|
|
490
|
-
winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
|
|
491
|
-
}[] | undefined;
|
|
492
|
-
teams?: {
|
|
493
|
-
name: string;
|
|
494
|
-
_id: string | import("mongoose").Types.ObjectId;
|
|
495
|
-
picture?: string | null | undefined;
|
|
496
|
-
}[] | undefined;
|
|
459
|
+
tag?: TournamentTag | undefined;
|
|
460
|
+
reward?: {
|
|
461
|
+
type: TournamentRewardType.FREE_DELIVERY;
|
|
462
|
+
} | {
|
|
463
|
+
type: TournamentRewardType.COUPON;
|
|
464
|
+
maxDiscountPerOrder?: number | null | undefined;
|
|
465
|
+
couponNamePrefix?: string | undefined;
|
|
466
|
+
percentage?: number | undefined;
|
|
467
|
+
} | undefined;
|
|
497
468
|
} | {
|
|
498
469
|
documents: {
|
|
499
470
|
status: Status;
|
|
500
|
-
|
|
501
|
-
|
|
471
|
+
name: string;
|
|
472
|
+
_id?: string | import("mongoose").Types.ObjectId | undefined;
|
|
502
473
|
createdAt?: Date | null | undefined;
|
|
503
474
|
startDate?: Date | null | undefined;
|
|
504
475
|
endDate?: Date | null | undefined;
|
|
505
476
|
updatedAt?: Date | null | undefined;
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
};
|
|
516
|
-
score: {
|
|
517
|
-
team1: number | null;
|
|
518
|
-
team2: number | null;
|
|
519
|
-
};
|
|
520
|
-
stage: string;
|
|
521
|
-
endDate?: Date | null | undefined;
|
|
522
|
-
startingDate?: Date | null | undefined;
|
|
523
|
-
additionalTag?: string | undefined;
|
|
524
|
-
winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
|
|
525
|
-
}[] | undefined;
|
|
526
|
-
teams?: {
|
|
527
|
-
name: string;
|
|
528
|
-
_id: string | import("mongoose").Types.ObjectId;
|
|
529
|
-
picture?: string | null | undefined;
|
|
530
|
-
}[] | undefined;
|
|
477
|
+
tag?: TournamentTag | undefined;
|
|
478
|
+
reward?: {
|
|
479
|
+
type: TournamentRewardType.FREE_DELIVERY;
|
|
480
|
+
} | {
|
|
481
|
+
type: TournamentRewardType.COUPON;
|
|
482
|
+
maxDiscountPerOrder?: number | null | undefined;
|
|
483
|
+
couponNamePrefix?: string | undefined;
|
|
484
|
+
percentage?: number | undefined;
|
|
485
|
+
} | undefined;
|
|
531
486
|
}[];
|
|
532
487
|
metadata?: {
|
|
533
488
|
page: number;
|
|
@@ -541,71 +496,39 @@ export declare const TournamentConfigResponseSchema: z.ZodObject<{
|
|
|
541
496
|
success: boolean;
|
|
542
497
|
data?: {
|
|
543
498
|
status: Status;
|
|
544
|
-
|
|
545
|
-
|
|
499
|
+
name: string;
|
|
500
|
+
_id?: string | import("mongoose").Types.ObjectId | undefined;
|
|
546
501
|
createdAt?: Date | null | undefined;
|
|
547
502
|
startDate?: Date | null | undefined;
|
|
548
503
|
endDate?: Date | null | undefined;
|
|
549
504
|
updatedAt?: Date | null | undefined;
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
};
|
|
560
|
-
score: {
|
|
561
|
-
team1: number | null;
|
|
562
|
-
team2: number | null;
|
|
563
|
-
};
|
|
564
|
-
stage: string;
|
|
565
|
-
endDate?: Date | null | undefined;
|
|
566
|
-
startingDate?: Date | null | undefined;
|
|
567
|
-
additionalTag?: string | undefined;
|
|
568
|
-
winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
|
|
569
|
-
}[] | undefined;
|
|
570
|
-
teams?: {
|
|
571
|
-
name: string;
|
|
572
|
-
_id: string | import("mongoose").Types.ObjectId;
|
|
573
|
-
picture?: string | null | undefined;
|
|
574
|
-
}[] | undefined;
|
|
505
|
+
tag?: TournamentTag | undefined;
|
|
506
|
+
reward?: {
|
|
507
|
+
type: TournamentRewardType.FREE_DELIVERY;
|
|
508
|
+
} | {
|
|
509
|
+
type: TournamentRewardType.COUPON;
|
|
510
|
+
maxDiscountPerOrder?: number | null | undefined;
|
|
511
|
+
couponNamePrefix?: string | undefined;
|
|
512
|
+
percentage?: number | undefined;
|
|
513
|
+
} | undefined;
|
|
575
514
|
} | {
|
|
576
515
|
documents: {
|
|
577
516
|
status: Status;
|
|
578
|
-
|
|
579
|
-
|
|
517
|
+
name: string;
|
|
518
|
+
_id?: string | import("mongoose").Types.ObjectId | undefined;
|
|
580
519
|
createdAt?: Date | null | undefined;
|
|
581
520
|
startDate?: Date | null | undefined;
|
|
582
521
|
endDate?: Date | null | undefined;
|
|
583
522
|
updatedAt?: Date | null | undefined;
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
};
|
|
594
|
-
score: {
|
|
595
|
-
team1: number | null;
|
|
596
|
-
team2: number | null;
|
|
597
|
-
};
|
|
598
|
-
stage: string;
|
|
599
|
-
endDate?: Date | null | undefined;
|
|
600
|
-
startingDate?: Date | null | undefined;
|
|
601
|
-
additionalTag?: string | undefined;
|
|
602
|
-
winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
|
|
603
|
-
}[] | undefined;
|
|
604
|
-
teams?: {
|
|
605
|
-
name: string;
|
|
606
|
-
_id: string | import("mongoose").Types.ObjectId;
|
|
607
|
-
picture?: string | null | undefined;
|
|
608
|
-
}[] | undefined;
|
|
523
|
+
tag?: TournamentTag | undefined;
|
|
524
|
+
reward?: {
|
|
525
|
+
type: TournamentRewardType.FREE_DELIVERY;
|
|
526
|
+
} | {
|
|
527
|
+
type: TournamentRewardType.COUPON;
|
|
528
|
+
maxDiscountPerOrder?: number | null | undefined;
|
|
529
|
+
couponNamePrefix?: string | undefined;
|
|
530
|
+
percentage?: number | undefined;
|
|
531
|
+
} | undefined;
|
|
609
532
|
}[];
|
|
610
533
|
metadata?: {
|
|
611
534
|
page: number;
|
|
@@ -637,105 +560,54 @@ export declare const TournamentConfigListResponseSchema: z.ZodObject<{
|
|
|
637
560
|
}>>;
|
|
638
561
|
documents: z.ZodArray<z.ZodType<{
|
|
639
562
|
status: Status;
|
|
640
|
-
|
|
641
|
-
|
|
563
|
+
name: string;
|
|
564
|
+
_id?: string | import("mongoose").Types.ObjectId | undefined;
|
|
642
565
|
createdAt?: Date | null | undefined;
|
|
643
566
|
startDate?: Date | null | undefined;
|
|
644
567
|
endDate?: Date | null | undefined;
|
|
645
568
|
updatedAt?: Date | null | undefined;
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
teamId: string | import("mongoose").Types.ObjectId;
|
|
655
|
-
};
|
|
656
|
-
score: {
|
|
657
|
-
team1: number | null;
|
|
658
|
-
team2: number | null;
|
|
659
|
-
};
|
|
660
|
-
stage: string;
|
|
661
|
-
endDate?: Date | null | undefined;
|
|
662
|
-
startingDate?: Date | null | undefined;
|
|
663
|
-
additionalTag?: string | undefined;
|
|
664
|
-
winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
|
|
665
|
-
}[] | undefined;
|
|
666
|
-
teams?: {
|
|
667
|
-
name: string;
|
|
668
|
-
_id: string | import("mongoose").Types.ObjectId;
|
|
669
|
-
picture?: string | null | undefined;
|
|
670
|
-
}[] | undefined;
|
|
569
|
+
tag?: TournamentTag | undefined;
|
|
570
|
+
reward?: {
|
|
571
|
+
type: TournamentRewardType.FREE_DELIVERY;
|
|
572
|
+
} | {
|
|
573
|
+
type: TournamentRewardType.COUPON;
|
|
574
|
+
maxDiscountPerOrder?: number | null | undefined;
|
|
575
|
+
percentage?: number | undefined;
|
|
576
|
+
} | undefined;
|
|
671
577
|
}[], z.ZodTypeDef, {
|
|
672
578
|
status: Status;
|
|
673
|
-
|
|
674
|
-
|
|
579
|
+
name: string;
|
|
580
|
+
_id?: string | import("mongoose").Types.ObjectId | undefined;
|
|
675
581
|
createdAt?: Date | null | undefined;
|
|
676
582
|
startDate?: Date | null | undefined;
|
|
677
583
|
endDate?: Date | null | undefined;
|
|
678
584
|
updatedAt?: Date | null | undefined;
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
teamId: string | import("mongoose").Types.ObjectId;
|
|
688
|
-
};
|
|
689
|
-
score: {
|
|
690
|
-
team1: number | null;
|
|
691
|
-
team2: number | null;
|
|
692
|
-
};
|
|
693
|
-
stage: string;
|
|
694
|
-
endDate?: Date | null | undefined;
|
|
695
|
-
startingDate?: Date | null | undefined;
|
|
696
|
-
additionalTag?: string | undefined;
|
|
697
|
-
winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
|
|
698
|
-
}[] | undefined;
|
|
699
|
-
teams?: {
|
|
700
|
-
name: string;
|
|
701
|
-
_id: string | import("mongoose").Types.ObjectId;
|
|
702
|
-
picture?: string | null | undefined;
|
|
703
|
-
}[] | undefined;
|
|
585
|
+
tag?: TournamentTag | undefined;
|
|
586
|
+
reward?: {
|
|
587
|
+
type: TournamentRewardType.FREE_DELIVERY;
|
|
588
|
+
} | {
|
|
589
|
+
type: TournamentRewardType.COUPON;
|
|
590
|
+
maxDiscountPerOrder?: number | null | undefined;
|
|
591
|
+
percentage?: number | undefined;
|
|
592
|
+
} | undefined;
|
|
704
593
|
}[]>, "many">;
|
|
705
594
|
}, "strip", z.ZodTypeAny, {
|
|
706
595
|
documents: {
|
|
707
596
|
status: Status;
|
|
708
|
-
|
|
709
|
-
|
|
597
|
+
name: string;
|
|
598
|
+
_id?: string | import("mongoose").Types.ObjectId | undefined;
|
|
710
599
|
createdAt?: Date | null | undefined;
|
|
711
600
|
startDate?: Date | null | undefined;
|
|
712
601
|
endDate?: Date | null | undefined;
|
|
713
602
|
updatedAt?: Date | null | undefined;
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
teamId: string | import("mongoose").Types.ObjectId;
|
|
723
|
-
};
|
|
724
|
-
score: {
|
|
725
|
-
team1: number | null;
|
|
726
|
-
team2: number | null;
|
|
727
|
-
};
|
|
728
|
-
stage: string;
|
|
729
|
-
endDate?: Date | null | undefined;
|
|
730
|
-
startingDate?: Date | null | undefined;
|
|
731
|
-
additionalTag?: string | undefined;
|
|
732
|
-
winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
|
|
733
|
-
}[] | undefined;
|
|
734
|
-
teams?: {
|
|
735
|
-
name: string;
|
|
736
|
-
_id: string | import("mongoose").Types.ObjectId;
|
|
737
|
-
picture?: string | null | undefined;
|
|
738
|
-
}[] | undefined;
|
|
603
|
+
tag?: TournamentTag | undefined;
|
|
604
|
+
reward?: {
|
|
605
|
+
type: TournamentRewardType.FREE_DELIVERY;
|
|
606
|
+
} | {
|
|
607
|
+
type: TournamentRewardType.COUPON;
|
|
608
|
+
maxDiscountPerOrder?: number | null | undefined;
|
|
609
|
+
percentage?: number | undefined;
|
|
610
|
+
} | undefined;
|
|
739
611
|
}[][];
|
|
740
612
|
metadata?: {
|
|
741
613
|
page: number;
|
|
@@ -746,37 +618,20 @@ export declare const TournamentConfigListResponseSchema: z.ZodObject<{
|
|
|
746
618
|
}, {
|
|
747
619
|
documents: {
|
|
748
620
|
status: Status;
|
|
749
|
-
|
|
750
|
-
|
|
621
|
+
name: string;
|
|
622
|
+
_id?: string | import("mongoose").Types.ObjectId | undefined;
|
|
751
623
|
createdAt?: Date | null | undefined;
|
|
752
624
|
startDate?: Date | null | undefined;
|
|
753
625
|
endDate?: Date | null | undefined;
|
|
754
626
|
updatedAt?: Date | null | undefined;
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
teamId: string | import("mongoose").Types.ObjectId;
|
|
764
|
-
};
|
|
765
|
-
score: {
|
|
766
|
-
team1: number | null;
|
|
767
|
-
team2: number | null;
|
|
768
|
-
};
|
|
769
|
-
stage: string;
|
|
770
|
-
endDate?: Date | null | undefined;
|
|
771
|
-
startingDate?: Date | null | undefined;
|
|
772
|
-
additionalTag?: string | undefined;
|
|
773
|
-
winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
|
|
774
|
-
}[] | undefined;
|
|
775
|
-
teams?: {
|
|
776
|
-
name: string;
|
|
777
|
-
_id: string | import("mongoose").Types.ObjectId;
|
|
778
|
-
picture?: string | null | undefined;
|
|
779
|
-
}[] | undefined;
|
|
627
|
+
tag?: TournamentTag | undefined;
|
|
628
|
+
reward?: {
|
|
629
|
+
type: TournamentRewardType.FREE_DELIVERY;
|
|
630
|
+
} | {
|
|
631
|
+
type: TournamentRewardType.COUPON;
|
|
632
|
+
maxDiscountPerOrder?: number | null | undefined;
|
|
633
|
+
percentage?: number | undefined;
|
|
634
|
+
} | undefined;
|
|
780
635
|
}[][];
|
|
781
636
|
metadata?: {
|
|
782
637
|
page: number;
|
|
@@ -786,141 +641,73 @@ export declare const TournamentConfigListResponseSchema: z.ZodObject<{
|
|
|
786
641
|
} | undefined;
|
|
787
642
|
}>, z.ZodType<{
|
|
788
643
|
status: Status;
|
|
789
|
-
|
|
790
|
-
|
|
644
|
+
name: string;
|
|
645
|
+
_id?: string | import("mongoose").Types.ObjectId | undefined;
|
|
791
646
|
createdAt?: Date | null | undefined;
|
|
792
647
|
startDate?: Date | null | undefined;
|
|
793
648
|
endDate?: Date | null | undefined;
|
|
794
649
|
updatedAt?: Date | null | undefined;
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
teamId: string | import("mongoose").Types.ObjectId;
|
|
804
|
-
};
|
|
805
|
-
score: {
|
|
806
|
-
team1: number | null;
|
|
807
|
-
team2: number | null;
|
|
808
|
-
};
|
|
809
|
-
stage: string;
|
|
810
|
-
endDate?: Date | null | undefined;
|
|
811
|
-
startingDate?: Date | null | undefined;
|
|
812
|
-
additionalTag?: string | undefined;
|
|
813
|
-
winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
|
|
814
|
-
}[] | undefined;
|
|
815
|
-
teams?: {
|
|
816
|
-
name: string;
|
|
817
|
-
_id: string | import("mongoose").Types.ObjectId;
|
|
818
|
-
picture?: string | null | undefined;
|
|
819
|
-
}[] | undefined;
|
|
650
|
+
tag?: TournamentTag | undefined;
|
|
651
|
+
reward?: {
|
|
652
|
+
type: TournamentRewardType.FREE_DELIVERY;
|
|
653
|
+
} | {
|
|
654
|
+
type: TournamentRewardType.COUPON;
|
|
655
|
+
maxDiscountPerOrder?: number | null | undefined;
|
|
656
|
+
percentage?: number | undefined;
|
|
657
|
+
} | undefined;
|
|
820
658
|
}[], z.ZodTypeDef, {
|
|
821
659
|
status: Status;
|
|
822
|
-
|
|
823
|
-
|
|
660
|
+
name: string;
|
|
661
|
+
_id?: string | import("mongoose").Types.ObjectId | undefined;
|
|
824
662
|
createdAt?: Date | null | undefined;
|
|
825
663
|
startDate?: Date | null | undefined;
|
|
826
664
|
endDate?: Date | null | undefined;
|
|
827
665
|
updatedAt?: Date | null | undefined;
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
teamId: string | import("mongoose").Types.ObjectId;
|
|
837
|
-
};
|
|
838
|
-
score: {
|
|
839
|
-
team1: number | null;
|
|
840
|
-
team2: number | null;
|
|
841
|
-
};
|
|
842
|
-
stage: string;
|
|
843
|
-
endDate?: Date | null | undefined;
|
|
844
|
-
startingDate?: Date | null | undefined;
|
|
845
|
-
additionalTag?: string | undefined;
|
|
846
|
-
winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
|
|
847
|
-
}[] | undefined;
|
|
848
|
-
teams?: {
|
|
849
|
-
name: string;
|
|
850
|
-
_id: string | import("mongoose").Types.ObjectId;
|
|
851
|
-
picture?: string | null | undefined;
|
|
852
|
-
}[] | undefined;
|
|
666
|
+
tag?: TournamentTag | undefined;
|
|
667
|
+
reward?: {
|
|
668
|
+
type: TournamentRewardType.FREE_DELIVERY;
|
|
669
|
+
} | {
|
|
670
|
+
type: TournamentRewardType.COUPON;
|
|
671
|
+
maxDiscountPerOrder?: number | null | undefined;
|
|
672
|
+
percentage?: number | undefined;
|
|
673
|
+
} | undefined;
|
|
853
674
|
}[]>]>>;
|
|
854
675
|
}, "strip", z.ZodTypeAny, {
|
|
855
676
|
message: string;
|
|
856
677
|
success: boolean;
|
|
857
678
|
data?: {
|
|
858
679
|
status: Status;
|
|
859
|
-
|
|
860
|
-
|
|
680
|
+
name: string;
|
|
681
|
+
_id?: string | import("mongoose").Types.ObjectId | undefined;
|
|
861
682
|
createdAt?: Date | null | undefined;
|
|
862
683
|
startDate?: Date | null | undefined;
|
|
863
684
|
endDate?: Date | null | undefined;
|
|
864
685
|
updatedAt?: Date | null | undefined;
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
teamId: string | import("mongoose").Types.ObjectId;
|
|
874
|
-
};
|
|
875
|
-
score: {
|
|
876
|
-
team1: number | null;
|
|
877
|
-
team2: number | null;
|
|
878
|
-
};
|
|
879
|
-
stage: string;
|
|
880
|
-
endDate?: Date | null | undefined;
|
|
881
|
-
startingDate?: Date | null | undefined;
|
|
882
|
-
additionalTag?: string | undefined;
|
|
883
|
-
winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
|
|
884
|
-
}[] | undefined;
|
|
885
|
-
teams?: {
|
|
886
|
-
name: string;
|
|
887
|
-
_id: string | import("mongoose").Types.ObjectId;
|
|
888
|
-
picture?: string | null | undefined;
|
|
889
|
-
}[] | undefined;
|
|
686
|
+
tag?: TournamentTag | undefined;
|
|
687
|
+
reward?: {
|
|
688
|
+
type: TournamentRewardType.FREE_DELIVERY;
|
|
689
|
+
} | {
|
|
690
|
+
type: TournamentRewardType.COUPON;
|
|
691
|
+
maxDiscountPerOrder?: number | null | undefined;
|
|
692
|
+
percentage?: number | undefined;
|
|
693
|
+
} | undefined;
|
|
890
694
|
}[] | {
|
|
891
695
|
documents: {
|
|
892
696
|
status: Status;
|
|
893
|
-
|
|
894
|
-
|
|
697
|
+
name: string;
|
|
698
|
+
_id?: string | import("mongoose").Types.ObjectId | undefined;
|
|
895
699
|
createdAt?: Date | null | undefined;
|
|
896
700
|
startDate?: Date | null | undefined;
|
|
897
701
|
endDate?: Date | null | undefined;
|
|
898
702
|
updatedAt?: Date | null | undefined;
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
teamId: string | import("mongoose").Types.ObjectId;
|
|
908
|
-
};
|
|
909
|
-
score: {
|
|
910
|
-
team1: number | null;
|
|
911
|
-
team2: number | null;
|
|
912
|
-
};
|
|
913
|
-
stage: string;
|
|
914
|
-
endDate?: Date | null | undefined;
|
|
915
|
-
startingDate?: Date | null | undefined;
|
|
916
|
-
additionalTag?: string | undefined;
|
|
917
|
-
winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
|
|
918
|
-
}[] | undefined;
|
|
919
|
-
teams?: {
|
|
920
|
-
name: string;
|
|
921
|
-
_id: string | import("mongoose").Types.ObjectId;
|
|
922
|
-
picture?: string | null | undefined;
|
|
923
|
-
}[] | undefined;
|
|
703
|
+
tag?: TournamentTag | undefined;
|
|
704
|
+
reward?: {
|
|
705
|
+
type: TournamentRewardType.FREE_DELIVERY;
|
|
706
|
+
} | {
|
|
707
|
+
type: TournamentRewardType.COUPON;
|
|
708
|
+
maxDiscountPerOrder?: number | null | undefined;
|
|
709
|
+
percentage?: number | undefined;
|
|
710
|
+
} | undefined;
|
|
924
711
|
}[][];
|
|
925
712
|
metadata?: {
|
|
926
713
|
page: number;
|
|
@@ -934,71 +721,37 @@ export declare const TournamentConfigListResponseSchema: z.ZodObject<{
|
|
|
934
721
|
success: boolean;
|
|
935
722
|
data?: {
|
|
936
723
|
status: Status;
|
|
937
|
-
|
|
938
|
-
|
|
724
|
+
name: string;
|
|
725
|
+
_id?: string | import("mongoose").Types.ObjectId | undefined;
|
|
939
726
|
createdAt?: Date | null | undefined;
|
|
940
727
|
startDate?: Date | null | undefined;
|
|
941
728
|
endDate?: Date | null | undefined;
|
|
942
729
|
updatedAt?: Date | null | undefined;
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
teamId: string | import("mongoose").Types.ObjectId;
|
|
952
|
-
};
|
|
953
|
-
score: {
|
|
954
|
-
team1: number | null;
|
|
955
|
-
team2: number | null;
|
|
956
|
-
};
|
|
957
|
-
stage: string;
|
|
958
|
-
endDate?: Date | null | undefined;
|
|
959
|
-
startingDate?: Date | null | undefined;
|
|
960
|
-
additionalTag?: string | undefined;
|
|
961
|
-
winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
|
|
962
|
-
}[] | undefined;
|
|
963
|
-
teams?: {
|
|
964
|
-
name: string;
|
|
965
|
-
_id: string | import("mongoose").Types.ObjectId;
|
|
966
|
-
picture?: string | null | undefined;
|
|
967
|
-
}[] | undefined;
|
|
730
|
+
tag?: TournamentTag | undefined;
|
|
731
|
+
reward?: {
|
|
732
|
+
type: TournamentRewardType.FREE_DELIVERY;
|
|
733
|
+
} | {
|
|
734
|
+
type: TournamentRewardType.COUPON;
|
|
735
|
+
maxDiscountPerOrder?: number | null | undefined;
|
|
736
|
+
percentage?: number | undefined;
|
|
737
|
+
} | undefined;
|
|
968
738
|
}[] | {
|
|
969
739
|
documents: {
|
|
970
740
|
status: Status;
|
|
971
|
-
|
|
972
|
-
|
|
741
|
+
name: string;
|
|
742
|
+
_id?: string | import("mongoose").Types.ObjectId | undefined;
|
|
973
743
|
createdAt?: Date | null | undefined;
|
|
974
744
|
startDate?: Date | null | undefined;
|
|
975
745
|
endDate?: Date | null | undefined;
|
|
976
746
|
updatedAt?: Date | null | undefined;
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
teamId: string | import("mongoose").Types.ObjectId;
|
|
986
|
-
};
|
|
987
|
-
score: {
|
|
988
|
-
team1: number | null;
|
|
989
|
-
team2: number | null;
|
|
990
|
-
};
|
|
991
|
-
stage: string;
|
|
992
|
-
endDate?: Date | null | undefined;
|
|
993
|
-
startingDate?: Date | null | undefined;
|
|
994
|
-
additionalTag?: string | undefined;
|
|
995
|
-
winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
|
|
996
|
-
}[] | undefined;
|
|
997
|
-
teams?: {
|
|
998
|
-
name: string;
|
|
999
|
-
_id: string | import("mongoose").Types.ObjectId;
|
|
1000
|
-
picture?: string | null | undefined;
|
|
1001
|
-
}[] | undefined;
|
|
747
|
+
tag?: TournamentTag | undefined;
|
|
748
|
+
reward?: {
|
|
749
|
+
type: TournamentRewardType.FREE_DELIVERY;
|
|
750
|
+
} | {
|
|
751
|
+
type: TournamentRewardType.COUPON;
|
|
752
|
+
maxDiscountPerOrder?: number | null | undefined;
|
|
753
|
+
percentage?: number | undefined;
|
|
754
|
+
} | undefined;
|
|
1002
755
|
}[][];
|
|
1003
756
|
metadata?: {
|
|
1004
757
|
page: number;
|
|
@@ -1011,4 +764,5 @@ export declare const TournamentConfigListResponseSchema: z.ZodObject<{
|
|
|
1011
764
|
export type CreateTournamentConfigInputDTO = DTO<typeof CreateTournamentConfigSchema>;
|
|
1012
765
|
export type UpdateTournamentConfigInputDTO = DTO<typeof UpdateTournamentConfigSchema>;
|
|
1013
766
|
export type TournamentConfigOutputDTO = DTO<typeof TournamentConfigSchema>;
|
|
767
|
+
export type TournamentConfigListItemOutputDTO = DTO<typeof TournamentConfigListItemSchema>;
|
|
1014
768
|
//# sourceMappingURL=config.validation.d.ts.map
|