@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
|
@@ -4,11 +4,11 @@ export declare const JoinTournamentSchema: z.ZodObject<{
|
|
|
4
4
|
tournamentId: 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>]>;
|
|
5
5
|
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>]>;
|
|
6
6
|
}, "strip", z.ZodTypeAny, {
|
|
7
|
-
teamId: import("mongoose").Types.ObjectId;
|
|
8
7
|
tournamentId: import("mongoose").Types.ObjectId;
|
|
8
|
+
teamId: import("mongoose").Types.ObjectId;
|
|
9
9
|
}, {
|
|
10
|
-
teamId: string | import("mongoose").Types.ObjectId;
|
|
11
10
|
tournamentId: string | import("mongoose").Types.ObjectId;
|
|
11
|
+
teamId: string | import("mongoose").Types.ObjectId;
|
|
12
12
|
}>;
|
|
13
13
|
export declare const GetTournamentParticipantsSchema: z.ZodObject<{
|
|
14
14
|
tournamentId: 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>]>;
|
|
@@ -40,62 +40,62 @@ export declare const TournamentParticipantSchema: z.ZodObject<{
|
|
|
40
40
|
coupon: 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>]>>;
|
|
41
41
|
}, "strip", z.ZodTypeAny, {
|
|
42
42
|
_id: import("mongoose").Types.ObjectId;
|
|
43
|
+
matchId: import("mongoose").Types.ObjectId;
|
|
43
44
|
score: {
|
|
44
45
|
team1: number | null;
|
|
45
46
|
team2: number | null;
|
|
46
47
|
};
|
|
47
|
-
matchId: import("mongoose").Types.ObjectId;
|
|
48
48
|
coupon?: import("mongoose").Types.ObjectId | undefined;
|
|
49
|
-
succeeded?: boolean | null | undefined;
|
|
50
49
|
predictionTime?: Date | null | undefined;
|
|
50
|
+
succeeded?: boolean | null | undefined;
|
|
51
51
|
}, {
|
|
52
52
|
_id: string | import("mongoose").Types.ObjectId;
|
|
53
|
+
matchId: string | import("mongoose").Types.ObjectId;
|
|
53
54
|
score: {
|
|
54
55
|
team1: number | null;
|
|
55
56
|
team2: number | null;
|
|
56
57
|
};
|
|
57
|
-
matchId: string | import("mongoose").Types.ObjectId;
|
|
58
58
|
coupon?: string | import("mongoose").Types.ObjectId | undefined;
|
|
59
|
-
succeeded?: boolean | null | undefined;
|
|
60
59
|
predictionTime?: Date | null | undefined;
|
|
60
|
+
succeeded?: boolean | null | undefined;
|
|
61
61
|
}>, "many">>;
|
|
62
62
|
createdAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
63
63
|
updatedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
64
64
|
}, "strip", z.ZodTypeAny, {
|
|
65
65
|
_id: import("mongoose").Types.ObjectId;
|
|
66
66
|
userId: import("mongoose").Types.ObjectId;
|
|
67
|
-
teamId: import("mongoose").Types.ObjectId;
|
|
68
67
|
tournamentId: import("mongoose").Types.ObjectId;
|
|
68
|
+
teamId: import("mongoose").Types.ObjectId;
|
|
69
69
|
predictions: {
|
|
70
70
|
_id: import("mongoose").Types.ObjectId;
|
|
71
|
+
matchId: import("mongoose").Types.ObjectId;
|
|
71
72
|
score: {
|
|
72
73
|
team1: number | null;
|
|
73
74
|
team2: number | null;
|
|
74
75
|
};
|
|
75
|
-
matchId: import("mongoose").Types.ObjectId;
|
|
76
76
|
coupon?: import("mongoose").Types.ObjectId | undefined;
|
|
77
|
-
succeeded?: boolean | null | undefined;
|
|
78
77
|
predictionTime?: Date | null | undefined;
|
|
78
|
+
succeeded?: boolean | null | undefined;
|
|
79
79
|
}[];
|
|
80
80
|
createdAt?: Date | null | undefined;
|
|
81
81
|
updatedAt?: Date | null | undefined;
|
|
82
82
|
}, {
|
|
83
83
|
_id: string | import("mongoose").Types.ObjectId;
|
|
84
84
|
userId: string | import("mongoose").Types.ObjectId;
|
|
85
|
-
teamId: string | import("mongoose").Types.ObjectId;
|
|
86
85
|
tournamentId: string | import("mongoose").Types.ObjectId;
|
|
86
|
+
teamId: string | import("mongoose").Types.ObjectId;
|
|
87
87
|
createdAt?: Date | null | undefined;
|
|
88
88
|
updatedAt?: Date | null | undefined;
|
|
89
89
|
predictions?: {
|
|
90
90
|
_id: string | import("mongoose").Types.ObjectId;
|
|
91
|
+
matchId: string | import("mongoose").Types.ObjectId;
|
|
91
92
|
score: {
|
|
92
93
|
team1: number | null;
|
|
93
94
|
team2: number | null;
|
|
94
95
|
};
|
|
95
|
-
matchId: string | import("mongoose").Types.ObjectId;
|
|
96
96
|
coupon?: string | import("mongoose").Types.ObjectId | undefined;
|
|
97
|
-
succeeded?: boolean | null | undefined;
|
|
98
97
|
predictionTime?: Date | null | undefined;
|
|
98
|
+
succeeded?: boolean | null | undefined;
|
|
99
99
|
}[] | undefined;
|
|
100
100
|
}>;
|
|
101
101
|
export declare const JoinTournamentParticipantSchema: z.ZodObject<{
|
|
@@ -105,13 +105,13 @@ export declare const JoinTournamentParticipantSchema: z.ZodObject<{
|
|
|
105
105
|
createdAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
106
106
|
}, "strip", z.ZodTypeAny, {
|
|
107
107
|
_id: import("mongoose").Types.ObjectId;
|
|
108
|
-
teamId: import("mongoose").Types.ObjectId;
|
|
109
108
|
tournamentId: import("mongoose").Types.ObjectId;
|
|
109
|
+
teamId: import("mongoose").Types.ObjectId;
|
|
110
110
|
createdAt?: Date | null | undefined;
|
|
111
111
|
}, {
|
|
112
112
|
_id: string | import("mongoose").Types.ObjectId;
|
|
113
|
-
teamId: string | import("mongoose").Types.ObjectId;
|
|
114
113
|
tournamentId: string | import("mongoose").Types.ObjectId;
|
|
114
|
+
teamId: string | import("mongoose").Types.ObjectId;
|
|
115
115
|
createdAt?: Date | null | undefined;
|
|
116
116
|
}>;
|
|
117
117
|
export declare const JoinTournamentResponseSchema: z.ZodObject<{
|
|
@@ -136,20 +136,20 @@ export declare const JoinTournamentResponseSchema: z.ZodObject<{
|
|
|
136
136
|
}>>;
|
|
137
137
|
documents: z.ZodArray<z.ZodType<{
|
|
138
138
|
_id: string | import("mongoose").Types.ObjectId;
|
|
139
|
-
teamId: string | import("mongoose").Types.ObjectId;
|
|
140
139
|
tournamentId: string | import("mongoose").Types.ObjectId;
|
|
140
|
+
teamId: string | import("mongoose").Types.ObjectId;
|
|
141
141
|
createdAt?: Date | null | undefined;
|
|
142
142
|
}, z.ZodTypeDef, {
|
|
143
143
|
_id: string | import("mongoose").Types.ObjectId;
|
|
144
|
-
teamId: string | import("mongoose").Types.ObjectId;
|
|
145
144
|
tournamentId: string | import("mongoose").Types.ObjectId;
|
|
145
|
+
teamId: string | import("mongoose").Types.ObjectId;
|
|
146
146
|
createdAt?: Date | null | undefined;
|
|
147
147
|
}>, "many">;
|
|
148
148
|
}, "strip", z.ZodTypeAny, {
|
|
149
149
|
documents: {
|
|
150
150
|
_id: string | import("mongoose").Types.ObjectId;
|
|
151
|
-
teamId: string | import("mongoose").Types.ObjectId;
|
|
152
151
|
tournamentId: string | import("mongoose").Types.ObjectId;
|
|
152
|
+
teamId: string | import("mongoose").Types.ObjectId;
|
|
153
153
|
createdAt?: Date | null | undefined;
|
|
154
154
|
}[];
|
|
155
155
|
metadata?: {
|
|
@@ -161,8 +161,8 @@ export declare const JoinTournamentResponseSchema: z.ZodObject<{
|
|
|
161
161
|
}, {
|
|
162
162
|
documents: {
|
|
163
163
|
_id: string | import("mongoose").Types.ObjectId;
|
|
164
|
-
teamId: string | import("mongoose").Types.ObjectId;
|
|
165
164
|
tournamentId: string | import("mongoose").Types.ObjectId;
|
|
165
|
+
teamId: string | import("mongoose").Types.ObjectId;
|
|
166
166
|
createdAt?: Date | null | undefined;
|
|
167
167
|
}[];
|
|
168
168
|
metadata?: {
|
|
@@ -173,13 +173,13 @@ export declare const JoinTournamentResponseSchema: z.ZodObject<{
|
|
|
173
173
|
} | undefined;
|
|
174
174
|
}>, z.ZodType<{
|
|
175
175
|
_id: string | import("mongoose").Types.ObjectId;
|
|
176
|
-
teamId: string | import("mongoose").Types.ObjectId;
|
|
177
176
|
tournamentId: string | import("mongoose").Types.ObjectId;
|
|
177
|
+
teamId: string | import("mongoose").Types.ObjectId;
|
|
178
178
|
createdAt?: Date | null | undefined;
|
|
179
179
|
}, z.ZodTypeDef, {
|
|
180
180
|
_id: string | import("mongoose").Types.ObjectId;
|
|
181
|
-
teamId: string | import("mongoose").Types.ObjectId;
|
|
182
181
|
tournamentId: string | import("mongoose").Types.ObjectId;
|
|
182
|
+
teamId: string | import("mongoose").Types.ObjectId;
|
|
183
183
|
createdAt?: Date | null | undefined;
|
|
184
184
|
}>]>>;
|
|
185
185
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -187,14 +187,14 @@ export declare const JoinTournamentResponseSchema: z.ZodObject<{
|
|
|
187
187
|
success: boolean;
|
|
188
188
|
data?: {
|
|
189
189
|
_id: string | import("mongoose").Types.ObjectId;
|
|
190
|
-
teamId: string | import("mongoose").Types.ObjectId;
|
|
191
190
|
tournamentId: string | import("mongoose").Types.ObjectId;
|
|
191
|
+
teamId: string | import("mongoose").Types.ObjectId;
|
|
192
192
|
createdAt?: Date | null | undefined;
|
|
193
193
|
} | {
|
|
194
194
|
documents: {
|
|
195
195
|
_id: string | import("mongoose").Types.ObjectId;
|
|
196
|
-
teamId: string | import("mongoose").Types.ObjectId;
|
|
197
196
|
tournamentId: string | import("mongoose").Types.ObjectId;
|
|
197
|
+
teamId: string | import("mongoose").Types.ObjectId;
|
|
198
198
|
createdAt?: Date | null | undefined;
|
|
199
199
|
}[];
|
|
200
200
|
metadata?: {
|
|
@@ -209,14 +209,14 @@ export declare const JoinTournamentResponseSchema: z.ZodObject<{
|
|
|
209
209
|
success: boolean;
|
|
210
210
|
data?: {
|
|
211
211
|
_id: string | import("mongoose").Types.ObjectId;
|
|
212
|
-
teamId: string | import("mongoose").Types.ObjectId;
|
|
213
212
|
tournamentId: string | import("mongoose").Types.ObjectId;
|
|
213
|
+
teamId: string | import("mongoose").Types.ObjectId;
|
|
214
214
|
createdAt?: Date | null | undefined;
|
|
215
215
|
} | {
|
|
216
216
|
documents: {
|
|
217
217
|
_id: string | import("mongoose").Types.ObjectId;
|
|
218
|
-
teamId: string | import("mongoose").Types.ObjectId;
|
|
219
218
|
tournamentId: string | import("mongoose").Types.ObjectId;
|
|
219
|
+
teamId: string | import("mongoose").Types.ObjectId;
|
|
220
220
|
createdAt?: Date | null | undefined;
|
|
221
221
|
}[];
|
|
222
222
|
metadata?: {
|
|
@@ -250,58 +250,58 @@ export declare const TournamentParticipantResponseSchema: z.ZodObject<{
|
|
|
250
250
|
documents: z.ZodArray<z.ZodType<{
|
|
251
251
|
_id: string | import("mongoose").Types.ObjectId;
|
|
252
252
|
userId: string | import("mongoose").Types.ObjectId;
|
|
253
|
-
teamId: string | import("mongoose").Types.ObjectId;
|
|
254
253
|
tournamentId: string | import("mongoose").Types.ObjectId;
|
|
254
|
+
teamId: string | import("mongoose").Types.ObjectId;
|
|
255
255
|
createdAt?: Date | null | undefined;
|
|
256
256
|
updatedAt?: Date | null | undefined;
|
|
257
257
|
predictions?: {
|
|
258
258
|
_id: string | import("mongoose").Types.ObjectId;
|
|
259
|
+
matchId: string | import("mongoose").Types.ObjectId;
|
|
259
260
|
score: {
|
|
260
261
|
team1: number | null;
|
|
261
262
|
team2: number | null;
|
|
262
263
|
};
|
|
263
|
-
matchId: string | import("mongoose").Types.ObjectId;
|
|
264
264
|
coupon?: string | import("mongoose").Types.ObjectId | undefined;
|
|
265
|
-
succeeded?: boolean | null | undefined;
|
|
266
265
|
predictionTime?: Date | null | undefined;
|
|
266
|
+
succeeded?: boolean | null | undefined;
|
|
267
267
|
}[] | undefined;
|
|
268
268
|
}, z.ZodTypeDef, {
|
|
269
269
|
_id: string | import("mongoose").Types.ObjectId;
|
|
270
270
|
userId: string | import("mongoose").Types.ObjectId;
|
|
271
|
-
teamId: string | import("mongoose").Types.ObjectId;
|
|
272
271
|
tournamentId: string | import("mongoose").Types.ObjectId;
|
|
272
|
+
teamId: string | import("mongoose").Types.ObjectId;
|
|
273
273
|
createdAt?: Date | null | undefined;
|
|
274
274
|
updatedAt?: Date | null | undefined;
|
|
275
275
|
predictions?: {
|
|
276
276
|
_id: string | import("mongoose").Types.ObjectId;
|
|
277
|
+
matchId: string | import("mongoose").Types.ObjectId;
|
|
277
278
|
score: {
|
|
278
279
|
team1: number | null;
|
|
279
280
|
team2: number | null;
|
|
280
281
|
};
|
|
281
|
-
matchId: string | import("mongoose").Types.ObjectId;
|
|
282
282
|
coupon?: string | import("mongoose").Types.ObjectId | undefined;
|
|
283
|
-
succeeded?: boolean | null | undefined;
|
|
284
283
|
predictionTime?: Date | null | undefined;
|
|
284
|
+
succeeded?: boolean | null | undefined;
|
|
285
285
|
}[] | undefined;
|
|
286
286
|
}>, "many">;
|
|
287
287
|
}, "strip", z.ZodTypeAny, {
|
|
288
288
|
documents: {
|
|
289
289
|
_id: string | import("mongoose").Types.ObjectId;
|
|
290
290
|
userId: string | import("mongoose").Types.ObjectId;
|
|
291
|
-
teamId: string | import("mongoose").Types.ObjectId;
|
|
292
291
|
tournamentId: string | import("mongoose").Types.ObjectId;
|
|
292
|
+
teamId: string | import("mongoose").Types.ObjectId;
|
|
293
293
|
createdAt?: Date | null | undefined;
|
|
294
294
|
updatedAt?: Date | null | undefined;
|
|
295
295
|
predictions?: {
|
|
296
296
|
_id: string | import("mongoose").Types.ObjectId;
|
|
297
|
+
matchId: string | import("mongoose").Types.ObjectId;
|
|
297
298
|
score: {
|
|
298
299
|
team1: number | null;
|
|
299
300
|
team2: number | null;
|
|
300
301
|
};
|
|
301
|
-
matchId: string | import("mongoose").Types.ObjectId;
|
|
302
302
|
coupon?: string | import("mongoose").Types.ObjectId | undefined;
|
|
303
|
-
succeeded?: boolean | null | undefined;
|
|
304
303
|
predictionTime?: Date | null | undefined;
|
|
304
|
+
succeeded?: boolean | null | undefined;
|
|
305
305
|
}[] | undefined;
|
|
306
306
|
}[];
|
|
307
307
|
metadata?: {
|
|
@@ -314,20 +314,20 @@ export declare const TournamentParticipantResponseSchema: z.ZodObject<{
|
|
|
314
314
|
documents: {
|
|
315
315
|
_id: string | import("mongoose").Types.ObjectId;
|
|
316
316
|
userId: string | import("mongoose").Types.ObjectId;
|
|
317
|
-
teamId: string | import("mongoose").Types.ObjectId;
|
|
318
317
|
tournamentId: string | import("mongoose").Types.ObjectId;
|
|
318
|
+
teamId: string | import("mongoose").Types.ObjectId;
|
|
319
319
|
createdAt?: Date | null | undefined;
|
|
320
320
|
updatedAt?: Date | null | undefined;
|
|
321
321
|
predictions?: {
|
|
322
322
|
_id: string | import("mongoose").Types.ObjectId;
|
|
323
|
+
matchId: string | import("mongoose").Types.ObjectId;
|
|
323
324
|
score: {
|
|
324
325
|
team1: number | null;
|
|
325
326
|
team2: number | null;
|
|
326
327
|
};
|
|
327
|
-
matchId: string | import("mongoose").Types.ObjectId;
|
|
328
328
|
coupon?: string | import("mongoose").Types.ObjectId | undefined;
|
|
329
|
-
succeeded?: boolean | null | undefined;
|
|
330
329
|
predictionTime?: Date | null | undefined;
|
|
330
|
+
succeeded?: boolean | null | undefined;
|
|
331
331
|
}[] | undefined;
|
|
332
332
|
}[];
|
|
333
333
|
metadata?: {
|
|
@@ -339,38 +339,38 @@ export declare const TournamentParticipantResponseSchema: z.ZodObject<{
|
|
|
339
339
|
}>, z.ZodType<{
|
|
340
340
|
_id: string | import("mongoose").Types.ObjectId;
|
|
341
341
|
userId: string | import("mongoose").Types.ObjectId;
|
|
342
|
-
teamId: string | import("mongoose").Types.ObjectId;
|
|
343
342
|
tournamentId: string | import("mongoose").Types.ObjectId;
|
|
343
|
+
teamId: string | import("mongoose").Types.ObjectId;
|
|
344
344
|
createdAt?: Date | null | undefined;
|
|
345
345
|
updatedAt?: Date | null | undefined;
|
|
346
346
|
predictions?: {
|
|
347
347
|
_id: string | import("mongoose").Types.ObjectId;
|
|
348
|
+
matchId: string | import("mongoose").Types.ObjectId;
|
|
348
349
|
score: {
|
|
349
350
|
team1: number | null;
|
|
350
351
|
team2: number | null;
|
|
351
352
|
};
|
|
352
|
-
matchId: string | import("mongoose").Types.ObjectId;
|
|
353
353
|
coupon?: string | import("mongoose").Types.ObjectId | undefined;
|
|
354
|
-
succeeded?: boolean | null | undefined;
|
|
355
354
|
predictionTime?: Date | null | undefined;
|
|
355
|
+
succeeded?: boolean | null | undefined;
|
|
356
356
|
}[] | undefined;
|
|
357
357
|
}, z.ZodTypeDef, {
|
|
358
358
|
_id: string | import("mongoose").Types.ObjectId;
|
|
359
359
|
userId: string | import("mongoose").Types.ObjectId;
|
|
360
|
-
teamId: string | import("mongoose").Types.ObjectId;
|
|
361
360
|
tournamentId: string | import("mongoose").Types.ObjectId;
|
|
361
|
+
teamId: string | import("mongoose").Types.ObjectId;
|
|
362
362
|
createdAt?: Date | null | undefined;
|
|
363
363
|
updatedAt?: Date | null | undefined;
|
|
364
364
|
predictions?: {
|
|
365
365
|
_id: string | import("mongoose").Types.ObjectId;
|
|
366
|
+
matchId: string | import("mongoose").Types.ObjectId;
|
|
366
367
|
score: {
|
|
367
368
|
team1: number | null;
|
|
368
369
|
team2: number | null;
|
|
369
370
|
};
|
|
370
|
-
matchId: string | import("mongoose").Types.ObjectId;
|
|
371
371
|
coupon?: string | import("mongoose").Types.ObjectId | undefined;
|
|
372
|
-
succeeded?: boolean | null | undefined;
|
|
373
372
|
predictionTime?: Date | null | undefined;
|
|
373
|
+
succeeded?: boolean | null | undefined;
|
|
374
374
|
}[] | undefined;
|
|
375
375
|
}>]>>;
|
|
376
376
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -379,39 +379,39 @@ export declare const TournamentParticipantResponseSchema: z.ZodObject<{
|
|
|
379
379
|
data?: {
|
|
380
380
|
_id: string | import("mongoose").Types.ObjectId;
|
|
381
381
|
userId: string | import("mongoose").Types.ObjectId;
|
|
382
|
-
teamId: string | import("mongoose").Types.ObjectId;
|
|
383
382
|
tournamentId: string | import("mongoose").Types.ObjectId;
|
|
383
|
+
teamId: string | import("mongoose").Types.ObjectId;
|
|
384
384
|
createdAt?: Date | null | undefined;
|
|
385
385
|
updatedAt?: Date | null | undefined;
|
|
386
386
|
predictions?: {
|
|
387
387
|
_id: string | import("mongoose").Types.ObjectId;
|
|
388
|
+
matchId: string | import("mongoose").Types.ObjectId;
|
|
388
389
|
score: {
|
|
389
390
|
team1: number | null;
|
|
390
391
|
team2: number | null;
|
|
391
392
|
};
|
|
392
|
-
matchId: string | import("mongoose").Types.ObjectId;
|
|
393
393
|
coupon?: string | import("mongoose").Types.ObjectId | undefined;
|
|
394
|
-
succeeded?: boolean | null | undefined;
|
|
395
394
|
predictionTime?: Date | null | undefined;
|
|
395
|
+
succeeded?: boolean | null | undefined;
|
|
396
396
|
}[] | undefined;
|
|
397
397
|
} | {
|
|
398
398
|
documents: {
|
|
399
399
|
_id: string | import("mongoose").Types.ObjectId;
|
|
400
400
|
userId: string | import("mongoose").Types.ObjectId;
|
|
401
|
-
teamId: string | import("mongoose").Types.ObjectId;
|
|
402
401
|
tournamentId: string | import("mongoose").Types.ObjectId;
|
|
402
|
+
teamId: string | import("mongoose").Types.ObjectId;
|
|
403
403
|
createdAt?: Date | null | undefined;
|
|
404
404
|
updatedAt?: Date | null | undefined;
|
|
405
405
|
predictions?: {
|
|
406
406
|
_id: string | import("mongoose").Types.ObjectId;
|
|
407
|
+
matchId: string | import("mongoose").Types.ObjectId;
|
|
407
408
|
score: {
|
|
408
409
|
team1: number | null;
|
|
409
410
|
team2: number | null;
|
|
410
411
|
};
|
|
411
|
-
matchId: string | import("mongoose").Types.ObjectId;
|
|
412
412
|
coupon?: string | import("mongoose").Types.ObjectId | undefined;
|
|
413
|
-
succeeded?: boolean | null | undefined;
|
|
414
413
|
predictionTime?: Date | null | undefined;
|
|
414
|
+
succeeded?: boolean | null | undefined;
|
|
415
415
|
}[] | undefined;
|
|
416
416
|
}[];
|
|
417
417
|
metadata?: {
|
|
@@ -427,39 +427,39 @@ export declare const TournamentParticipantResponseSchema: z.ZodObject<{
|
|
|
427
427
|
data?: {
|
|
428
428
|
_id: string | import("mongoose").Types.ObjectId;
|
|
429
429
|
userId: string | import("mongoose").Types.ObjectId;
|
|
430
|
-
teamId: string | import("mongoose").Types.ObjectId;
|
|
431
430
|
tournamentId: string | import("mongoose").Types.ObjectId;
|
|
431
|
+
teamId: string | import("mongoose").Types.ObjectId;
|
|
432
432
|
createdAt?: Date | null | undefined;
|
|
433
433
|
updatedAt?: Date | null | undefined;
|
|
434
434
|
predictions?: {
|
|
435
435
|
_id: string | import("mongoose").Types.ObjectId;
|
|
436
|
+
matchId: string | import("mongoose").Types.ObjectId;
|
|
436
437
|
score: {
|
|
437
438
|
team1: number | null;
|
|
438
439
|
team2: number | null;
|
|
439
440
|
};
|
|
440
|
-
matchId: string | import("mongoose").Types.ObjectId;
|
|
441
441
|
coupon?: string | import("mongoose").Types.ObjectId | undefined;
|
|
442
|
-
succeeded?: boolean | null | undefined;
|
|
443
442
|
predictionTime?: Date | null | undefined;
|
|
443
|
+
succeeded?: boolean | null | undefined;
|
|
444
444
|
}[] | undefined;
|
|
445
445
|
} | {
|
|
446
446
|
documents: {
|
|
447
447
|
_id: string | import("mongoose").Types.ObjectId;
|
|
448
448
|
userId: string | import("mongoose").Types.ObjectId;
|
|
449
|
-
teamId: string | import("mongoose").Types.ObjectId;
|
|
450
449
|
tournamentId: string | import("mongoose").Types.ObjectId;
|
|
450
|
+
teamId: string | import("mongoose").Types.ObjectId;
|
|
451
451
|
createdAt?: Date | null | undefined;
|
|
452
452
|
updatedAt?: Date | null | undefined;
|
|
453
453
|
predictions?: {
|
|
454
454
|
_id: string | import("mongoose").Types.ObjectId;
|
|
455
|
+
matchId: string | import("mongoose").Types.ObjectId;
|
|
455
456
|
score: {
|
|
456
457
|
team1: number | null;
|
|
457
458
|
team2: number | null;
|
|
458
459
|
};
|
|
459
|
-
matchId: string | import("mongoose").Types.ObjectId;
|
|
460
460
|
coupon?: string | import("mongoose").Types.ObjectId | undefined;
|
|
461
|
-
succeeded?: boolean | null | undefined;
|
|
462
461
|
predictionTime?: Date | null | undefined;
|
|
462
|
+
succeeded?: boolean | null | undefined;
|
|
463
463
|
}[] | undefined;
|
|
464
464
|
}[];
|
|
465
465
|
metadata?: {
|
|
@@ -493,58 +493,58 @@ export declare const TournamentParticipantListResponseSchema: z.ZodObject<{
|
|
|
493
493
|
documents: z.ZodArray<z.ZodType<{
|
|
494
494
|
_id: string | import("mongoose").Types.ObjectId;
|
|
495
495
|
userId: string | import("mongoose").Types.ObjectId;
|
|
496
|
-
teamId: string | import("mongoose").Types.ObjectId;
|
|
497
496
|
tournamentId: string | import("mongoose").Types.ObjectId;
|
|
497
|
+
teamId: string | import("mongoose").Types.ObjectId;
|
|
498
498
|
createdAt?: Date | null | undefined;
|
|
499
499
|
updatedAt?: Date | null | undefined;
|
|
500
500
|
predictions?: {
|
|
501
501
|
_id: string | import("mongoose").Types.ObjectId;
|
|
502
|
+
matchId: string | import("mongoose").Types.ObjectId;
|
|
502
503
|
score: {
|
|
503
504
|
team1: number | null;
|
|
504
505
|
team2: number | null;
|
|
505
506
|
};
|
|
506
|
-
matchId: string | import("mongoose").Types.ObjectId;
|
|
507
507
|
coupon?: string | import("mongoose").Types.ObjectId | undefined;
|
|
508
|
-
succeeded?: boolean | null | undefined;
|
|
509
508
|
predictionTime?: Date | null | undefined;
|
|
509
|
+
succeeded?: boolean | null | undefined;
|
|
510
510
|
}[] | undefined;
|
|
511
511
|
}[], z.ZodTypeDef, {
|
|
512
512
|
_id: string | import("mongoose").Types.ObjectId;
|
|
513
513
|
userId: string | import("mongoose").Types.ObjectId;
|
|
514
|
-
teamId: string | import("mongoose").Types.ObjectId;
|
|
515
514
|
tournamentId: string | import("mongoose").Types.ObjectId;
|
|
515
|
+
teamId: string | import("mongoose").Types.ObjectId;
|
|
516
516
|
createdAt?: Date | null | undefined;
|
|
517
517
|
updatedAt?: Date | null | undefined;
|
|
518
518
|
predictions?: {
|
|
519
519
|
_id: string | import("mongoose").Types.ObjectId;
|
|
520
|
+
matchId: string | import("mongoose").Types.ObjectId;
|
|
520
521
|
score: {
|
|
521
522
|
team1: number | null;
|
|
522
523
|
team2: number | null;
|
|
523
524
|
};
|
|
524
|
-
matchId: string | import("mongoose").Types.ObjectId;
|
|
525
525
|
coupon?: string | import("mongoose").Types.ObjectId | undefined;
|
|
526
|
-
succeeded?: boolean | null | undefined;
|
|
527
526
|
predictionTime?: Date | null | undefined;
|
|
527
|
+
succeeded?: boolean | null | undefined;
|
|
528
528
|
}[] | undefined;
|
|
529
529
|
}[]>, "many">;
|
|
530
530
|
}, "strip", z.ZodTypeAny, {
|
|
531
531
|
documents: {
|
|
532
532
|
_id: string | import("mongoose").Types.ObjectId;
|
|
533
533
|
userId: string | import("mongoose").Types.ObjectId;
|
|
534
|
-
teamId: string | import("mongoose").Types.ObjectId;
|
|
535
534
|
tournamentId: string | import("mongoose").Types.ObjectId;
|
|
535
|
+
teamId: string | import("mongoose").Types.ObjectId;
|
|
536
536
|
createdAt?: Date | null | undefined;
|
|
537
537
|
updatedAt?: Date | null | undefined;
|
|
538
538
|
predictions?: {
|
|
539
539
|
_id: string | import("mongoose").Types.ObjectId;
|
|
540
|
+
matchId: string | import("mongoose").Types.ObjectId;
|
|
540
541
|
score: {
|
|
541
542
|
team1: number | null;
|
|
542
543
|
team2: number | null;
|
|
543
544
|
};
|
|
544
|
-
matchId: string | import("mongoose").Types.ObjectId;
|
|
545
545
|
coupon?: string | import("mongoose").Types.ObjectId | undefined;
|
|
546
|
-
succeeded?: boolean | null | undefined;
|
|
547
546
|
predictionTime?: Date | null | undefined;
|
|
547
|
+
succeeded?: boolean | null | undefined;
|
|
548
548
|
}[] | undefined;
|
|
549
549
|
}[][];
|
|
550
550
|
metadata?: {
|
|
@@ -557,20 +557,20 @@ export declare const TournamentParticipantListResponseSchema: z.ZodObject<{
|
|
|
557
557
|
documents: {
|
|
558
558
|
_id: string | import("mongoose").Types.ObjectId;
|
|
559
559
|
userId: string | import("mongoose").Types.ObjectId;
|
|
560
|
-
teamId: string | import("mongoose").Types.ObjectId;
|
|
561
560
|
tournamentId: string | import("mongoose").Types.ObjectId;
|
|
561
|
+
teamId: string | import("mongoose").Types.ObjectId;
|
|
562
562
|
createdAt?: Date | null | undefined;
|
|
563
563
|
updatedAt?: Date | null | undefined;
|
|
564
564
|
predictions?: {
|
|
565
565
|
_id: string | import("mongoose").Types.ObjectId;
|
|
566
|
+
matchId: string | import("mongoose").Types.ObjectId;
|
|
566
567
|
score: {
|
|
567
568
|
team1: number | null;
|
|
568
569
|
team2: number | null;
|
|
569
570
|
};
|
|
570
|
-
matchId: string | import("mongoose").Types.ObjectId;
|
|
571
571
|
coupon?: string | import("mongoose").Types.ObjectId | undefined;
|
|
572
|
-
succeeded?: boolean | null | undefined;
|
|
573
572
|
predictionTime?: Date | null | undefined;
|
|
573
|
+
succeeded?: boolean | null | undefined;
|
|
574
574
|
}[] | undefined;
|
|
575
575
|
}[][];
|
|
576
576
|
metadata?: {
|
|
@@ -582,38 +582,38 @@ export declare const TournamentParticipantListResponseSchema: z.ZodObject<{
|
|
|
582
582
|
}>, z.ZodType<{
|
|
583
583
|
_id: string | import("mongoose").Types.ObjectId;
|
|
584
584
|
userId: string | import("mongoose").Types.ObjectId;
|
|
585
|
-
teamId: string | import("mongoose").Types.ObjectId;
|
|
586
585
|
tournamentId: string | import("mongoose").Types.ObjectId;
|
|
586
|
+
teamId: string | import("mongoose").Types.ObjectId;
|
|
587
587
|
createdAt?: Date | null | undefined;
|
|
588
588
|
updatedAt?: Date | null | undefined;
|
|
589
589
|
predictions?: {
|
|
590
590
|
_id: string | import("mongoose").Types.ObjectId;
|
|
591
|
+
matchId: string | import("mongoose").Types.ObjectId;
|
|
591
592
|
score: {
|
|
592
593
|
team1: number | null;
|
|
593
594
|
team2: number | null;
|
|
594
595
|
};
|
|
595
|
-
matchId: string | import("mongoose").Types.ObjectId;
|
|
596
596
|
coupon?: string | import("mongoose").Types.ObjectId | undefined;
|
|
597
|
-
succeeded?: boolean | null | undefined;
|
|
598
597
|
predictionTime?: Date | null | undefined;
|
|
598
|
+
succeeded?: boolean | null | undefined;
|
|
599
599
|
}[] | undefined;
|
|
600
600
|
}[], z.ZodTypeDef, {
|
|
601
601
|
_id: string | import("mongoose").Types.ObjectId;
|
|
602
602
|
userId: string | import("mongoose").Types.ObjectId;
|
|
603
|
-
teamId: string | import("mongoose").Types.ObjectId;
|
|
604
603
|
tournamentId: string | import("mongoose").Types.ObjectId;
|
|
604
|
+
teamId: string | import("mongoose").Types.ObjectId;
|
|
605
605
|
createdAt?: Date | null | undefined;
|
|
606
606
|
updatedAt?: Date | null | undefined;
|
|
607
607
|
predictions?: {
|
|
608
608
|
_id: string | import("mongoose").Types.ObjectId;
|
|
609
|
+
matchId: string | import("mongoose").Types.ObjectId;
|
|
609
610
|
score: {
|
|
610
611
|
team1: number | null;
|
|
611
612
|
team2: number | null;
|
|
612
613
|
};
|
|
613
|
-
matchId: string | import("mongoose").Types.ObjectId;
|
|
614
614
|
coupon?: string | import("mongoose").Types.ObjectId | undefined;
|
|
615
|
-
succeeded?: boolean | null | undefined;
|
|
616
615
|
predictionTime?: Date | null | undefined;
|
|
616
|
+
succeeded?: boolean | null | undefined;
|
|
617
617
|
}[] | undefined;
|
|
618
618
|
}[]>]>>;
|
|
619
619
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -622,39 +622,39 @@ export declare const TournamentParticipantListResponseSchema: z.ZodObject<{
|
|
|
622
622
|
data?: {
|
|
623
623
|
_id: string | import("mongoose").Types.ObjectId;
|
|
624
624
|
userId: string | import("mongoose").Types.ObjectId;
|
|
625
|
-
teamId: string | import("mongoose").Types.ObjectId;
|
|
626
625
|
tournamentId: string | import("mongoose").Types.ObjectId;
|
|
626
|
+
teamId: string | import("mongoose").Types.ObjectId;
|
|
627
627
|
createdAt?: Date | null | undefined;
|
|
628
628
|
updatedAt?: Date | null | undefined;
|
|
629
629
|
predictions?: {
|
|
630
630
|
_id: string | import("mongoose").Types.ObjectId;
|
|
631
|
+
matchId: string | import("mongoose").Types.ObjectId;
|
|
631
632
|
score: {
|
|
632
633
|
team1: number | null;
|
|
633
634
|
team2: number | null;
|
|
634
635
|
};
|
|
635
|
-
matchId: string | import("mongoose").Types.ObjectId;
|
|
636
636
|
coupon?: string | import("mongoose").Types.ObjectId | undefined;
|
|
637
|
-
succeeded?: boolean | null | undefined;
|
|
638
637
|
predictionTime?: Date | null | undefined;
|
|
638
|
+
succeeded?: boolean | null | undefined;
|
|
639
639
|
}[] | undefined;
|
|
640
640
|
}[] | {
|
|
641
641
|
documents: {
|
|
642
642
|
_id: string | import("mongoose").Types.ObjectId;
|
|
643
643
|
userId: string | import("mongoose").Types.ObjectId;
|
|
644
|
-
teamId: string | import("mongoose").Types.ObjectId;
|
|
645
644
|
tournamentId: string | import("mongoose").Types.ObjectId;
|
|
645
|
+
teamId: string | import("mongoose").Types.ObjectId;
|
|
646
646
|
createdAt?: Date | null | undefined;
|
|
647
647
|
updatedAt?: Date | null | undefined;
|
|
648
648
|
predictions?: {
|
|
649
649
|
_id: string | import("mongoose").Types.ObjectId;
|
|
650
|
+
matchId: string | import("mongoose").Types.ObjectId;
|
|
650
651
|
score: {
|
|
651
652
|
team1: number | null;
|
|
652
653
|
team2: number | null;
|
|
653
654
|
};
|
|
654
|
-
matchId: string | import("mongoose").Types.ObjectId;
|
|
655
655
|
coupon?: string | import("mongoose").Types.ObjectId | undefined;
|
|
656
|
-
succeeded?: boolean | null | undefined;
|
|
657
656
|
predictionTime?: Date | null | undefined;
|
|
657
|
+
succeeded?: boolean | null | undefined;
|
|
658
658
|
}[] | undefined;
|
|
659
659
|
}[][];
|
|
660
660
|
metadata?: {
|
|
@@ -670,39 +670,39 @@ export declare const TournamentParticipantListResponseSchema: z.ZodObject<{
|
|
|
670
670
|
data?: {
|
|
671
671
|
_id: string | import("mongoose").Types.ObjectId;
|
|
672
672
|
userId: string | import("mongoose").Types.ObjectId;
|
|
673
|
-
teamId: string | import("mongoose").Types.ObjectId;
|
|
674
673
|
tournamentId: string | import("mongoose").Types.ObjectId;
|
|
674
|
+
teamId: string | import("mongoose").Types.ObjectId;
|
|
675
675
|
createdAt?: Date | null | undefined;
|
|
676
676
|
updatedAt?: Date | null | undefined;
|
|
677
677
|
predictions?: {
|
|
678
678
|
_id: string | import("mongoose").Types.ObjectId;
|
|
679
|
+
matchId: string | import("mongoose").Types.ObjectId;
|
|
679
680
|
score: {
|
|
680
681
|
team1: number | null;
|
|
681
682
|
team2: number | null;
|
|
682
683
|
};
|
|
683
|
-
matchId: string | import("mongoose").Types.ObjectId;
|
|
684
684
|
coupon?: string | import("mongoose").Types.ObjectId | undefined;
|
|
685
|
-
succeeded?: boolean | null | undefined;
|
|
686
685
|
predictionTime?: Date | null | undefined;
|
|
686
|
+
succeeded?: boolean | null | undefined;
|
|
687
687
|
}[] | undefined;
|
|
688
688
|
}[] | {
|
|
689
689
|
documents: {
|
|
690
690
|
_id: string | import("mongoose").Types.ObjectId;
|
|
691
691
|
userId: string | import("mongoose").Types.ObjectId;
|
|
692
|
-
teamId: string | import("mongoose").Types.ObjectId;
|
|
693
692
|
tournamentId: string | import("mongoose").Types.ObjectId;
|
|
693
|
+
teamId: string | import("mongoose").Types.ObjectId;
|
|
694
694
|
createdAt?: Date | null | undefined;
|
|
695
695
|
updatedAt?: Date | null | undefined;
|
|
696
696
|
predictions?: {
|
|
697
697
|
_id: string | import("mongoose").Types.ObjectId;
|
|
698
|
+
matchId: string | import("mongoose").Types.ObjectId;
|
|
698
699
|
score: {
|
|
699
700
|
team1: number | null;
|
|
700
701
|
team2: number | null;
|
|
701
702
|
};
|
|
702
|
-
matchId: string | import("mongoose").Types.ObjectId;
|
|
703
703
|
coupon?: string | import("mongoose").Types.ObjectId | undefined;
|
|
704
|
-
succeeded?: boolean | null | undefined;
|
|
705
704
|
predictionTime?: Date | null | undefined;
|
|
705
|
+
succeeded?: boolean | null | undefined;
|
|
706
706
|
}[] | undefined;
|
|
707
707
|
}[][];
|
|
708
708
|
metadata?: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prediction.builder.d.ts","sourceRoot":"/","sources":["modules/tournament/prediction/prediction.builder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"prediction.builder.d.ts","sourceRoot":"/","sources":["modules/tournament/prediction/prediction.builder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAG9D,UAAU,oBAAoB;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACjB;AAED,qBAAa,iBAAiB;IAC1B,MAAM,CAAC,eAAe,CAAC,OAAO,EAAE,QAAQ,CAAC,KAAK,CAAC,QAAQ,EAAE,KAAK,EAAE,oBAAoB,GAAG,IAAI,CAAC,mBAAmB,EAAE,KAAK,CAAC,GAAG;QAAE,GAAG,EAAE,QAAQ,CAAC,KAAK,CAAC,QAAQ,CAAA;KAAE;IAU1J,MAAM,CAAC,gBAAgB,CAAC,KAAK,EAAE,oBAAoB,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;CAMhF"}
|
|
@@ -2,20 +2,21 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.PredictionBuilder = void 0;
|
|
4
4
|
const typegoose_1 = require("@typegoose/typegoose");
|
|
5
|
+
const tournament_utils_1 = require("../tournament.utils");
|
|
5
6
|
class PredictionBuilder {
|
|
6
7
|
static buildPrediction(matchId, score) {
|
|
7
8
|
return {
|
|
8
9
|
_id: new typegoose_1.mongoose.Types.ObjectId(),
|
|
9
10
|
matchId,
|
|
10
11
|
score,
|
|
11
|
-
predictionTime:
|
|
12
|
+
predictionTime: (0, tournament_utils_1.utcNow)(),
|
|
12
13
|
succeeded: null,
|
|
13
14
|
};
|
|
14
15
|
}
|
|
15
16
|
static buildScoreUpdate(score) {
|
|
16
17
|
return {
|
|
17
18
|
'predictions.$.score': score,
|
|
18
|
-
'predictions.$.predictionTime':
|
|
19
|
+
'predictions.$.predictionTime': (0, tournament_utils_1.utcNow)(),
|
|
19
20
|
};
|
|
20
21
|
}
|
|
21
22
|
}
|