@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
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export declare const scheduleRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
2
|
+
ctx: import("@lyxa.ai/core/dist/libraries/trpc/context").LyxaHTTPContext;
|
|
3
|
+
meta: object;
|
|
4
|
+
errorShape: {
|
|
5
|
+
message: string;
|
|
6
|
+
data: {
|
|
7
|
+
stack: undefined;
|
|
8
|
+
path: undefined;
|
|
9
|
+
code: import("@trpc/server").TRPC_ERROR_CODE_KEY;
|
|
10
|
+
httpStatus: number;
|
|
11
|
+
};
|
|
12
|
+
stack: undefined;
|
|
13
|
+
code: import("@trpc/server").TRPC_ERROR_CODE_NUMBER;
|
|
14
|
+
};
|
|
15
|
+
transformer: false;
|
|
16
|
+
}, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
|
|
17
|
+
dispatch: import("@trpc/server").TRPCMutationProcedure<{
|
|
18
|
+
input: void;
|
|
19
|
+
output: {
|
|
20
|
+
success: boolean;
|
|
21
|
+
message: string;
|
|
22
|
+
data: null | undefined;
|
|
23
|
+
};
|
|
24
|
+
meta: object;
|
|
25
|
+
}>;
|
|
26
|
+
}>>;
|
|
27
|
+
//# sourceMappingURL=schedule.router.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schedule.router.d.ts","sourceRoot":"/","sources":["modules/tournament/schedule/schedule.router.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;GAQzB,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare class ScheduleService {
|
|
2
|
+
private configRepository;
|
|
3
|
+
private matchRepository;
|
|
4
|
+
private templateRepository;
|
|
5
|
+
private notificationService;
|
|
6
|
+
constructor();
|
|
7
|
+
dispatchPending(): Promise<void>;
|
|
8
|
+
}
|
|
9
|
+
export declare const scheduleDispatchService: ScheduleService;
|
|
10
|
+
//# sourceMappingURL=schedule.service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schedule.service.d.ts","sourceRoot":"/","sources":["modules/tournament/schedule/schedule.service.ts"],"names":[],"mappings":"AAMA,qBACa,eAAe;IACxB,OAAO,CAAC,gBAAgB,CAA6B;IACrD,OAAO,CAAC,eAAe,CAA4B;IACnD,OAAO,CAAC,kBAAkB,CAAiC;IAC3D,OAAO,CAAC,mBAAmB,CAAgC;;IAS9C,eAAe,IAAI,OAAO,CAAC,IAAI,CAAC;CAyBhD;AAED,eAAO,MAAM,uBAAuB,iBAAiC,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { mongoose } from '@typegoose/typegoose';
|
|
2
|
+
import { Tournament as Model } from '@lyxa.ai/core/dist/libraries/mongo/models';
|
|
3
|
+
export declare class ScoreRepository {
|
|
4
|
+
private model;
|
|
5
|
+
constructor();
|
|
6
|
+
findMatchInTournament(tournamentId: mongoose.Types.ObjectId, matchId: mongoose.Types.ObjectId): Promise<Model | null>;
|
|
7
|
+
updateMatchScore(tournamentId: mongoose.Types.ObjectId, matchId: mongoose.Types.ObjectId, score: {
|
|
8
|
+
team1: number;
|
|
9
|
+
team2: number;
|
|
10
|
+
}): Promise<Model | null>;
|
|
11
|
+
}
|
|
12
|
+
export declare const scoreRepository: ScoreRepository;
|
|
13
|
+
//# sourceMappingURL=score.repository.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"score.repository.d.ts","sourceRoot":"/","sources":["modules/tournament/score/score.repository.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,QAAQ,EAAC,MAAM,sBAAsB,CAAC;AAC9C,OAAO,EAAC,UAAU,IAAI,KAAK,EAAkB,MAAM,2CAA2C,CAAC;AAE/F,qBACa,eAAe;IACxB,OAAO,CAAC,KAAK,CAAyB;;IAMhC,qBAAqB,CAAC,YAAY,EAAE,QAAQ,CAAC,KAAK,CAAC,QAAQ,EAAE,OAAO,EAAE,QAAQ,CAAC,KAAK,CAAC,QAAQ,GAAG,OAAO,CAAC,KAAK,GAAG,IAAI,CAAC;IAMrH,gBAAgB,CAClB,YAAY,EAAE,QAAQ,CAAC,KAAK,CAAC,QAAQ,EACrC,OAAO,EAAE,QAAQ,CAAC,KAAK,CAAC,QAAQ,EAChC,KAAK,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,GACxC,OAAO,CAAC,KAAK,GAAG,IAAI,CAAC;CAS3B;AAED,eAAO,MAAM,eAAe,iBAAiC,CAAC"}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
export declare const scoreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
2
|
+
ctx: import("@lyxa.ai/core/dist/libraries/trpc/context").LyxaHTTPContext;
|
|
3
|
+
meta: object;
|
|
4
|
+
errorShape: {
|
|
5
|
+
message: string;
|
|
6
|
+
data: {
|
|
7
|
+
stack: undefined;
|
|
8
|
+
path: undefined;
|
|
9
|
+
code: import("@trpc/server").TRPC_ERROR_CODE_KEY;
|
|
10
|
+
httpStatus: number;
|
|
11
|
+
};
|
|
12
|
+
stack: undefined;
|
|
13
|
+
code: import("@trpc/server").TRPC_ERROR_CODE_NUMBER;
|
|
14
|
+
};
|
|
15
|
+
transformer: false;
|
|
16
|
+
}, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
|
|
17
|
+
updateMatchScore: import("@trpc/server").TRPCMutationProcedure<{
|
|
18
|
+
input: {
|
|
19
|
+
tournamentId: string | import("mongoose").Types.ObjectId;
|
|
20
|
+
matchId: string | import("mongoose").Types.ObjectId;
|
|
21
|
+
teams: {
|
|
22
|
+
score: number;
|
|
23
|
+
teamId: string | import("mongoose").Types.ObjectId;
|
|
24
|
+
}[];
|
|
25
|
+
};
|
|
26
|
+
output: {
|
|
27
|
+
message: string;
|
|
28
|
+
success: boolean;
|
|
29
|
+
data?: {
|
|
30
|
+
_id: string | import("mongoose").Types.ObjectId;
|
|
31
|
+
team1: {
|
|
32
|
+
name: string;
|
|
33
|
+
teamId: string | import("mongoose").Types.ObjectId;
|
|
34
|
+
picture?: string | undefined;
|
|
35
|
+
};
|
|
36
|
+
team2: {
|
|
37
|
+
name: string;
|
|
38
|
+
teamId: string | import("mongoose").Types.ObjectId;
|
|
39
|
+
picture?: string | undefined;
|
|
40
|
+
};
|
|
41
|
+
score: {
|
|
42
|
+
team1: number | null;
|
|
43
|
+
team2: number | null;
|
|
44
|
+
};
|
|
45
|
+
stage: string;
|
|
46
|
+
endDate?: Date | null | undefined;
|
|
47
|
+
additionalTag?: string | undefined;
|
|
48
|
+
winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
|
|
49
|
+
startingDate?: Date | null | undefined;
|
|
50
|
+
prediction?: {
|
|
51
|
+
score: {
|
|
52
|
+
team1: number | null;
|
|
53
|
+
team2: number | null;
|
|
54
|
+
};
|
|
55
|
+
succeeded?: boolean | null | undefined;
|
|
56
|
+
} | null | undefined;
|
|
57
|
+
} | {
|
|
58
|
+
documents: {
|
|
59
|
+
_id: string | import("mongoose").Types.ObjectId;
|
|
60
|
+
team1: {
|
|
61
|
+
name: string;
|
|
62
|
+
teamId: string | import("mongoose").Types.ObjectId;
|
|
63
|
+
picture?: string | undefined;
|
|
64
|
+
};
|
|
65
|
+
team2: {
|
|
66
|
+
name: string;
|
|
67
|
+
teamId: string | import("mongoose").Types.ObjectId;
|
|
68
|
+
picture?: string | undefined;
|
|
69
|
+
};
|
|
70
|
+
score: {
|
|
71
|
+
team1: number | null;
|
|
72
|
+
team2: number | null;
|
|
73
|
+
};
|
|
74
|
+
stage: string;
|
|
75
|
+
endDate?: Date | null | undefined;
|
|
76
|
+
additionalTag?: string | undefined;
|
|
77
|
+
winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
|
|
78
|
+
startingDate?: Date | null | undefined;
|
|
79
|
+
prediction?: {
|
|
80
|
+
score: {
|
|
81
|
+
team1: number | null;
|
|
82
|
+
team2: number | null;
|
|
83
|
+
};
|
|
84
|
+
succeeded?: boolean | null | undefined;
|
|
85
|
+
} | null | undefined;
|
|
86
|
+
}[];
|
|
87
|
+
metadata?: {
|
|
88
|
+
page: number;
|
|
89
|
+
size: number;
|
|
90
|
+
totalElements: number;
|
|
91
|
+
totalPages: number;
|
|
92
|
+
} | undefined;
|
|
93
|
+
} | undefined;
|
|
94
|
+
};
|
|
95
|
+
meta: object;
|
|
96
|
+
}>;
|
|
97
|
+
}>>;
|
|
98
|
+
//# sourceMappingURL=score.router.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"score.router.d.ts","sourceRoot":"/","sources":["modules/tournament/score/score.router.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAUtB,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { UpdateMatchScoreInputDTO } from './score.validation';
|
|
2
|
+
import { TournamentMatchOutputDTO } from '../match/match.validation';
|
|
3
|
+
export declare class ScoreService {
|
|
4
|
+
private repository;
|
|
5
|
+
constructor();
|
|
6
|
+
private getMatch;
|
|
7
|
+
private resolveScore;
|
|
8
|
+
private resolveWinner;
|
|
9
|
+
private extractUpdatedMatch;
|
|
10
|
+
updateMatchScore(input: UpdateMatchScoreInputDTO): Promise<TournamentMatchOutputDTO>;
|
|
11
|
+
}
|
|
12
|
+
export declare const scoreService: ScoreService;
|
|
13
|
+
//# sourceMappingURL=score.service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"score.service.d.ts","sourceRoot":"/","sources":["modules/tournament/score/score.service.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,wBAAwB,EAAE,MAAM,oBAAoB,CAAC;AAC9D,OAAO,EAAE,wBAAwB,EAAE,MAAM,2BAA2B,CAAC;AAErE,qBACa,YAAY;IACrB,OAAO,CAAC,UAAU,CAAkB;;YAMtB,QAAQ;IAQtB,OAAO,CAAC,YAAY;IAuBpB,OAAO,CAAC,aAAa;IASrB,OAAO,CAAC,mBAAmB;IASd,gBAAgB,CAAC,KAAK,EAAE,wBAAwB,GAAG,OAAO,CAAC,wBAAwB,CAAC;CASpG;AAED,eAAO,MAAM,YAAY,cAA8B,CAAC"}
|
|
@@ -0,0 +1,375 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { DTO } from '@lyxa.ai/core/dist/utilities/validation/global-validation';
|
|
3
|
+
export declare const UpdateMatchScoreSchema: z.ZodObject<{
|
|
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
|
+
matchId: 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
|
+
teams: z.ZodArray<z.ZodObject<{
|
|
7
|
+
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>]>;
|
|
8
|
+
score: z.ZodNumber;
|
|
9
|
+
}, "strip", z.ZodTypeAny, {
|
|
10
|
+
score: number;
|
|
11
|
+
teamId: import("mongoose").Types.ObjectId;
|
|
12
|
+
}, {
|
|
13
|
+
score: number;
|
|
14
|
+
teamId: string | import("mongoose").Types.ObjectId;
|
|
15
|
+
}>, "many">;
|
|
16
|
+
}, "strip", z.ZodTypeAny, {
|
|
17
|
+
tournamentId: import("mongoose").Types.ObjectId;
|
|
18
|
+
matchId: import("mongoose").Types.ObjectId;
|
|
19
|
+
teams: {
|
|
20
|
+
score: number;
|
|
21
|
+
teamId: import("mongoose").Types.ObjectId;
|
|
22
|
+
}[];
|
|
23
|
+
}, {
|
|
24
|
+
tournamentId: string | import("mongoose").Types.ObjectId;
|
|
25
|
+
matchId: string | import("mongoose").Types.ObjectId;
|
|
26
|
+
teams: {
|
|
27
|
+
score: number;
|
|
28
|
+
teamId: string | import("mongoose").Types.ObjectId;
|
|
29
|
+
}[];
|
|
30
|
+
}>;
|
|
31
|
+
export declare const ScoreResponseSchema: z.ZodObject<{
|
|
32
|
+
success: z.ZodBoolean;
|
|
33
|
+
message: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
34
|
+
data: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
35
|
+
metadata: z.ZodOptional<z.ZodObject<{
|
|
36
|
+
page: z.ZodNumber;
|
|
37
|
+
size: z.ZodNumber;
|
|
38
|
+
totalElements: z.ZodNumber;
|
|
39
|
+
totalPages: z.ZodNumber;
|
|
40
|
+
}, "strip", z.ZodTypeAny, {
|
|
41
|
+
page: number;
|
|
42
|
+
size: number;
|
|
43
|
+
totalElements: number;
|
|
44
|
+
totalPages: number;
|
|
45
|
+
}, {
|
|
46
|
+
page: number;
|
|
47
|
+
size: number;
|
|
48
|
+
totalElements: number;
|
|
49
|
+
totalPages: number;
|
|
50
|
+
}>>;
|
|
51
|
+
documents: z.ZodArray<z.ZodType<{
|
|
52
|
+
_id: string | import("mongoose").Types.ObjectId;
|
|
53
|
+
team1: {
|
|
54
|
+
name: string;
|
|
55
|
+
teamId: string | import("mongoose").Types.ObjectId;
|
|
56
|
+
picture?: string | undefined;
|
|
57
|
+
};
|
|
58
|
+
team2: {
|
|
59
|
+
name: string;
|
|
60
|
+
teamId: string | import("mongoose").Types.ObjectId;
|
|
61
|
+
picture?: string | undefined;
|
|
62
|
+
};
|
|
63
|
+
score: {
|
|
64
|
+
team1: number | null;
|
|
65
|
+
team2: number | null;
|
|
66
|
+
};
|
|
67
|
+
stage: string;
|
|
68
|
+
endDate?: Date | null | undefined;
|
|
69
|
+
additionalTag?: string | undefined;
|
|
70
|
+
winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
|
|
71
|
+
startingDate?: Date | null | undefined;
|
|
72
|
+
prediction?: {
|
|
73
|
+
score: {
|
|
74
|
+
team1: number | null;
|
|
75
|
+
team2: number | null;
|
|
76
|
+
};
|
|
77
|
+
succeeded?: boolean | null | undefined;
|
|
78
|
+
} | null | undefined;
|
|
79
|
+
}, z.ZodTypeDef, {
|
|
80
|
+
_id: string | import("mongoose").Types.ObjectId;
|
|
81
|
+
team1: {
|
|
82
|
+
name: string;
|
|
83
|
+
teamId: string | import("mongoose").Types.ObjectId;
|
|
84
|
+
picture?: string | undefined;
|
|
85
|
+
};
|
|
86
|
+
team2: {
|
|
87
|
+
name: string;
|
|
88
|
+
teamId: string | import("mongoose").Types.ObjectId;
|
|
89
|
+
picture?: string | undefined;
|
|
90
|
+
};
|
|
91
|
+
score: {
|
|
92
|
+
team1: number | null;
|
|
93
|
+
team2: number | null;
|
|
94
|
+
};
|
|
95
|
+
stage: string;
|
|
96
|
+
endDate?: Date | null | undefined;
|
|
97
|
+
additionalTag?: string | undefined;
|
|
98
|
+
winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
|
|
99
|
+
startingDate?: Date | null | undefined;
|
|
100
|
+
prediction?: {
|
|
101
|
+
score: {
|
|
102
|
+
team1: number | null;
|
|
103
|
+
team2: number | null;
|
|
104
|
+
};
|
|
105
|
+
succeeded?: boolean | null | undefined;
|
|
106
|
+
} | null | undefined;
|
|
107
|
+
}>, "many">;
|
|
108
|
+
}, "strip", z.ZodTypeAny, {
|
|
109
|
+
documents: {
|
|
110
|
+
_id: string | import("mongoose").Types.ObjectId;
|
|
111
|
+
team1: {
|
|
112
|
+
name: string;
|
|
113
|
+
teamId: string | import("mongoose").Types.ObjectId;
|
|
114
|
+
picture?: string | undefined;
|
|
115
|
+
};
|
|
116
|
+
team2: {
|
|
117
|
+
name: string;
|
|
118
|
+
teamId: string | import("mongoose").Types.ObjectId;
|
|
119
|
+
picture?: string | undefined;
|
|
120
|
+
};
|
|
121
|
+
score: {
|
|
122
|
+
team1: number | null;
|
|
123
|
+
team2: number | null;
|
|
124
|
+
};
|
|
125
|
+
stage: string;
|
|
126
|
+
endDate?: Date | null | undefined;
|
|
127
|
+
additionalTag?: string | undefined;
|
|
128
|
+
winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
|
|
129
|
+
startingDate?: Date | null | undefined;
|
|
130
|
+
prediction?: {
|
|
131
|
+
score: {
|
|
132
|
+
team1: number | null;
|
|
133
|
+
team2: number | null;
|
|
134
|
+
};
|
|
135
|
+
succeeded?: boolean | null | undefined;
|
|
136
|
+
} | null | undefined;
|
|
137
|
+
}[];
|
|
138
|
+
metadata?: {
|
|
139
|
+
page: number;
|
|
140
|
+
size: number;
|
|
141
|
+
totalElements: number;
|
|
142
|
+
totalPages: number;
|
|
143
|
+
} | undefined;
|
|
144
|
+
}, {
|
|
145
|
+
documents: {
|
|
146
|
+
_id: string | import("mongoose").Types.ObjectId;
|
|
147
|
+
team1: {
|
|
148
|
+
name: string;
|
|
149
|
+
teamId: string | import("mongoose").Types.ObjectId;
|
|
150
|
+
picture?: string | undefined;
|
|
151
|
+
};
|
|
152
|
+
team2: {
|
|
153
|
+
name: string;
|
|
154
|
+
teamId: string | import("mongoose").Types.ObjectId;
|
|
155
|
+
picture?: string | undefined;
|
|
156
|
+
};
|
|
157
|
+
score: {
|
|
158
|
+
team1: number | null;
|
|
159
|
+
team2: number | null;
|
|
160
|
+
};
|
|
161
|
+
stage: string;
|
|
162
|
+
endDate?: Date | null | undefined;
|
|
163
|
+
additionalTag?: string | undefined;
|
|
164
|
+
winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
|
|
165
|
+
startingDate?: Date | null | undefined;
|
|
166
|
+
prediction?: {
|
|
167
|
+
score: {
|
|
168
|
+
team1: number | null;
|
|
169
|
+
team2: number | null;
|
|
170
|
+
};
|
|
171
|
+
succeeded?: boolean | null | undefined;
|
|
172
|
+
} | null | undefined;
|
|
173
|
+
}[];
|
|
174
|
+
metadata?: {
|
|
175
|
+
page: number;
|
|
176
|
+
size: number;
|
|
177
|
+
totalElements: number;
|
|
178
|
+
totalPages: number;
|
|
179
|
+
} | undefined;
|
|
180
|
+
}>, z.ZodType<{
|
|
181
|
+
_id: string | import("mongoose").Types.ObjectId;
|
|
182
|
+
team1: {
|
|
183
|
+
name: string;
|
|
184
|
+
teamId: string | import("mongoose").Types.ObjectId;
|
|
185
|
+
picture?: string | undefined;
|
|
186
|
+
};
|
|
187
|
+
team2: {
|
|
188
|
+
name: string;
|
|
189
|
+
teamId: string | import("mongoose").Types.ObjectId;
|
|
190
|
+
picture?: string | undefined;
|
|
191
|
+
};
|
|
192
|
+
score: {
|
|
193
|
+
team1: number | null;
|
|
194
|
+
team2: number | null;
|
|
195
|
+
};
|
|
196
|
+
stage: string;
|
|
197
|
+
endDate?: Date | null | undefined;
|
|
198
|
+
additionalTag?: string | undefined;
|
|
199
|
+
winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
|
|
200
|
+
startingDate?: Date | null | undefined;
|
|
201
|
+
prediction?: {
|
|
202
|
+
score: {
|
|
203
|
+
team1: number | null;
|
|
204
|
+
team2: number | null;
|
|
205
|
+
};
|
|
206
|
+
succeeded?: boolean | null | undefined;
|
|
207
|
+
} | null | undefined;
|
|
208
|
+
}, z.ZodTypeDef, {
|
|
209
|
+
_id: string | import("mongoose").Types.ObjectId;
|
|
210
|
+
team1: {
|
|
211
|
+
name: string;
|
|
212
|
+
teamId: string | import("mongoose").Types.ObjectId;
|
|
213
|
+
picture?: string | undefined;
|
|
214
|
+
};
|
|
215
|
+
team2: {
|
|
216
|
+
name: string;
|
|
217
|
+
teamId: string | import("mongoose").Types.ObjectId;
|
|
218
|
+
picture?: string | undefined;
|
|
219
|
+
};
|
|
220
|
+
score: {
|
|
221
|
+
team1: number | null;
|
|
222
|
+
team2: number | null;
|
|
223
|
+
};
|
|
224
|
+
stage: string;
|
|
225
|
+
endDate?: Date | null | undefined;
|
|
226
|
+
additionalTag?: string | undefined;
|
|
227
|
+
winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
|
|
228
|
+
startingDate?: Date | null | undefined;
|
|
229
|
+
prediction?: {
|
|
230
|
+
score: {
|
|
231
|
+
team1: number | null;
|
|
232
|
+
team2: number | null;
|
|
233
|
+
};
|
|
234
|
+
succeeded?: boolean | null | undefined;
|
|
235
|
+
} | null | undefined;
|
|
236
|
+
}>]>>;
|
|
237
|
+
}, "strip", z.ZodTypeAny, {
|
|
238
|
+
message: string;
|
|
239
|
+
success: boolean;
|
|
240
|
+
data?: {
|
|
241
|
+
_id: string | import("mongoose").Types.ObjectId;
|
|
242
|
+
team1: {
|
|
243
|
+
name: string;
|
|
244
|
+
teamId: string | import("mongoose").Types.ObjectId;
|
|
245
|
+
picture?: string | undefined;
|
|
246
|
+
};
|
|
247
|
+
team2: {
|
|
248
|
+
name: string;
|
|
249
|
+
teamId: string | import("mongoose").Types.ObjectId;
|
|
250
|
+
picture?: string | undefined;
|
|
251
|
+
};
|
|
252
|
+
score: {
|
|
253
|
+
team1: number | null;
|
|
254
|
+
team2: number | null;
|
|
255
|
+
};
|
|
256
|
+
stage: string;
|
|
257
|
+
endDate?: Date | null | undefined;
|
|
258
|
+
additionalTag?: string | undefined;
|
|
259
|
+
winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
|
|
260
|
+
startingDate?: Date | null | undefined;
|
|
261
|
+
prediction?: {
|
|
262
|
+
score: {
|
|
263
|
+
team1: number | null;
|
|
264
|
+
team2: number | null;
|
|
265
|
+
};
|
|
266
|
+
succeeded?: boolean | null | undefined;
|
|
267
|
+
} | null | undefined;
|
|
268
|
+
} | {
|
|
269
|
+
documents: {
|
|
270
|
+
_id: string | import("mongoose").Types.ObjectId;
|
|
271
|
+
team1: {
|
|
272
|
+
name: string;
|
|
273
|
+
teamId: string | import("mongoose").Types.ObjectId;
|
|
274
|
+
picture?: string | undefined;
|
|
275
|
+
};
|
|
276
|
+
team2: {
|
|
277
|
+
name: string;
|
|
278
|
+
teamId: string | import("mongoose").Types.ObjectId;
|
|
279
|
+
picture?: string | undefined;
|
|
280
|
+
};
|
|
281
|
+
score: {
|
|
282
|
+
team1: number | null;
|
|
283
|
+
team2: number | null;
|
|
284
|
+
};
|
|
285
|
+
stage: string;
|
|
286
|
+
endDate?: Date | null | undefined;
|
|
287
|
+
additionalTag?: string | undefined;
|
|
288
|
+
winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
|
|
289
|
+
startingDate?: Date | null | undefined;
|
|
290
|
+
prediction?: {
|
|
291
|
+
score: {
|
|
292
|
+
team1: number | null;
|
|
293
|
+
team2: number | null;
|
|
294
|
+
};
|
|
295
|
+
succeeded?: boolean | null | undefined;
|
|
296
|
+
} | null | undefined;
|
|
297
|
+
}[];
|
|
298
|
+
metadata?: {
|
|
299
|
+
page: number;
|
|
300
|
+
size: number;
|
|
301
|
+
totalElements: number;
|
|
302
|
+
totalPages: number;
|
|
303
|
+
} | undefined;
|
|
304
|
+
} | undefined;
|
|
305
|
+
}, {
|
|
306
|
+
message: string;
|
|
307
|
+
success: boolean;
|
|
308
|
+
data?: {
|
|
309
|
+
_id: string | import("mongoose").Types.ObjectId;
|
|
310
|
+
team1: {
|
|
311
|
+
name: string;
|
|
312
|
+
teamId: string | import("mongoose").Types.ObjectId;
|
|
313
|
+
picture?: string | undefined;
|
|
314
|
+
};
|
|
315
|
+
team2: {
|
|
316
|
+
name: string;
|
|
317
|
+
teamId: string | import("mongoose").Types.ObjectId;
|
|
318
|
+
picture?: string | undefined;
|
|
319
|
+
};
|
|
320
|
+
score: {
|
|
321
|
+
team1: number | null;
|
|
322
|
+
team2: number | null;
|
|
323
|
+
};
|
|
324
|
+
stage: string;
|
|
325
|
+
endDate?: Date | null | undefined;
|
|
326
|
+
additionalTag?: string | undefined;
|
|
327
|
+
winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
|
|
328
|
+
startingDate?: Date | null | undefined;
|
|
329
|
+
prediction?: {
|
|
330
|
+
score: {
|
|
331
|
+
team1: number | null;
|
|
332
|
+
team2: number | null;
|
|
333
|
+
};
|
|
334
|
+
succeeded?: boolean | null | undefined;
|
|
335
|
+
} | null | undefined;
|
|
336
|
+
} | {
|
|
337
|
+
documents: {
|
|
338
|
+
_id: string | import("mongoose").Types.ObjectId;
|
|
339
|
+
team1: {
|
|
340
|
+
name: string;
|
|
341
|
+
teamId: string | import("mongoose").Types.ObjectId;
|
|
342
|
+
picture?: string | undefined;
|
|
343
|
+
};
|
|
344
|
+
team2: {
|
|
345
|
+
name: string;
|
|
346
|
+
teamId: string | import("mongoose").Types.ObjectId;
|
|
347
|
+
picture?: string | undefined;
|
|
348
|
+
};
|
|
349
|
+
score: {
|
|
350
|
+
team1: number | null;
|
|
351
|
+
team2: number | null;
|
|
352
|
+
};
|
|
353
|
+
stage: string;
|
|
354
|
+
endDate?: Date | null | undefined;
|
|
355
|
+
additionalTag?: string | undefined;
|
|
356
|
+
winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
|
|
357
|
+
startingDate?: Date | null | undefined;
|
|
358
|
+
prediction?: {
|
|
359
|
+
score: {
|
|
360
|
+
team1: number | null;
|
|
361
|
+
team2: number | null;
|
|
362
|
+
};
|
|
363
|
+
succeeded?: boolean | null | undefined;
|
|
364
|
+
} | null | undefined;
|
|
365
|
+
}[];
|
|
366
|
+
metadata?: {
|
|
367
|
+
page: number;
|
|
368
|
+
size: number;
|
|
369
|
+
totalElements: number;
|
|
370
|
+
totalPages: number;
|
|
371
|
+
} | undefined;
|
|
372
|
+
} | undefined;
|
|
373
|
+
}>;
|
|
374
|
+
export type UpdateMatchScoreInputDTO = DTO<typeof UpdateMatchScoreSchema>;
|
|
375
|
+
//# sourceMappingURL=score.validation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"score.validation.d.ts","sourceRoot":"/","sources":["modules/tournament/score/score.validation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,GAAG,EAAiB,MAAM,2DAA2D,CAAC;AAI/F,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;EAWjC,CAAC;AAEH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAA8C,CAAC;AAE/E,MAAM,MAAM,wBAAwB,GAAG,GAAG,CAAC,OAAO,sBAAsB,CAAC,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { TournamentParticipant, Tournament } from '@lyxa.ai/core/dist/libraries/mongo/models';
|
|
2
|
+
import { UserTournamentStatsOutputDTO } from './statistics.validation';
|
|
3
|
+
export declare class StatisticsBuilder {
|
|
4
|
+
static buildUserTournamentStats(participant: TournamentParticipant & {
|
|
5
|
+
createdAt?: Date;
|
|
6
|
+
}, tournament: Tournament, couponCodeMap: Map<string, string>): UserTournamentStatsOutputDTO;
|
|
7
|
+
private static formatScore;
|
|
8
|
+
private static resolveResult;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=statistics.builder.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"statistics.builder.d.ts","sourceRoot":"/","sources":["modules/tournament/statistics/statistics.builder.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,qBAAqB,EAAE,UAAU,EAAE,MAAM,2CAA2C,CAAC;AAC9F,OAAO,EAAE,4BAA4B,EAAE,MAAM,yBAAyB,CAAC;AAEvE,qBAAa,iBAAiB;IAC1B,MAAM,CAAC,wBAAwB,CAC3B,WAAW,EAAE,qBAAqB,GAAG;QAAE,SAAS,CAAC,EAAE,IAAI,CAAA;KAAE,EACzD,UAAU,EAAE,UAAU,EACtB,aAAa,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,GACnC,4BAA4B;IA0C/B,OAAO,CAAC,MAAM,CAAC,WAAW;IAK1B,OAAO,CAAC,MAAM,CAAC,aAAa;CAQ/B"}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { mongoose } from '@typegoose/typegoose';
|
|
2
|
+
export declare const statisticsRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
3
|
+
ctx: import("@lyxa.ai/core/dist/libraries/trpc/context").LyxaHTTPContext;
|
|
4
|
+
meta: object;
|
|
5
|
+
errorShape: {
|
|
6
|
+
message: string;
|
|
7
|
+
data: {
|
|
8
|
+
stack: undefined;
|
|
9
|
+
path: undefined;
|
|
10
|
+
code: import("@trpc/server").TRPC_ERROR_CODE_KEY;
|
|
11
|
+
httpStatus: number;
|
|
12
|
+
};
|
|
13
|
+
stack: undefined;
|
|
14
|
+
code: import("@trpc/server").TRPC_ERROR_CODE_NUMBER;
|
|
15
|
+
};
|
|
16
|
+
transformer: false;
|
|
17
|
+
}, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
|
|
18
|
+
getActiveByUser: import("@trpc/server").TRPCQueryProcedure<{
|
|
19
|
+
input: {
|
|
20
|
+
userId: string | mongoose.Types.ObjectId;
|
|
21
|
+
};
|
|
22
|
+
output: {
|
|
23
|
+
message: string;
|
|
24
|
+
success: boolean;
|
|
25
|
+
data?: {
|
|
26
|
+
name: string;
|
|
27
|
+
joinedAt: Date | null;
|
|
28
|
+
stats: {
|
|
29
|
+
predictionsMade: number;
|
|
30
|
+
correctPredictions: number;
|
|
31
|
+
couponsWon: number;
|
|
32
|
+
};
|
|
33
|
+
matches: {
|
|
34
|
+
date: string | null;
|
|
35
|
+
coupon: string | null;
|
|
36
|
+
id: string;
|
|
37
|
+
result: "won" | "lost" | "pending" | null;
|
|
38
|
+
teams: string;
|
|
39
|
+
prediction: string | null;
|
|
40
|
+
realScore: string | null;
|
|
41
|
+
}[];
|
|
42
|
+
selectedTeam: {
|
|
43
|
+
name: string;
|
|
44
|
+
flag: string | null;
|
|
45
|
+
};
|
|
46
|
+
} | {
|
|
47
|
+
documents: ({
|
|
48
|
+
name: string;
|
|
49
|
+
joinedAt: Date | null;
|
|
50
|
+
stats: {
|
|
51
|
+
predictionsMade: number;
|
|
52
|
+
correctPredictions: number;
|
|
53
|
+
couponsWon: number;
|
|
54
|
+
};
|
|
55
|
+
matches: {
|
|
56
|
+
date: string | null;
|
|
57
|
+
coupon: string | null;
|
|
58
|
+
id: string;
|
|
59
|
+
result: "won" | "lost" | "pending" | null;
|
|
60
|
+
teams: string;
|
|
61
|
+
prediction: string | null;
|
|
62
|
+
realScore: string | null;
|
|
63
|
+
}[];
|
|
64
|
+
selectedTeam: {
|
|
65
|
+
name: string;
|
|
66
|
+
flag: string | null;
|
|
67
|
+
};
|
|
68
|
+
} | null)[];
|
|
69
|
+
metadata?: {
|
|
70
|
+
page: number;
|
|
71
|
+
size: number;
|
|
72
|
+
totalElements: number;
|
|
73
|
+
totalPages: number;
|
|
74
|
+
} | undefined;
|
|
75
|
+
} | null | undefined;
|
|
76
|
+
};
|
|
77
|
+
meta: object;
|
|
78
|
+
}>;
|
|
79
|
+
}>>;
|
|
80
|
+
//# sourceMappingURL=statistics.router.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"statistics.router.d.ts","sourceRoot":"/","sources":["modules/tournament/statistics/statistics.router.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAShD,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAU3B,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { mongoose } from '@typegoose/typegoose';
|
|
2
|
+
import { UserTournamentStatsOutputDTO } from './statistics.validation';
|
|
3
|
+
export declare class StatisticsService {
|
|
4
|
+
private participantRepository;
|
|
5
|
+
private configRepository;
|
|
6
|
+
private rewardRepository;
|
|
7
|
+
constructor();
|
|
8
|
+
getActiveByUser(userId: mongoose.Types.ObjectId): Promise<UserTournamentStatsOutputDTO | null>;
|
|
9
|
+
}
|
|
10
|
+
export declare const statisticsService: StatisticsService;
|
|
11
|
+
//# sourceMappingURL=statistics.service.d.ts.map
|