@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 @@
|
|
|
1
|
+
{"version":3,"file":"statistics.service.d.ts","sourceRoot":"/","sources":["modules/tournament/statistics/statistics.service.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAKhD,OAAO,EAAE,4BAA4B,EAAE,MAAM,yBAAyB,CAAC;AAEvE,qBACa,iBAAiB;IAC1B,OAAO,CAAC,qBAAqB,CAAkC;IAC/D,OAAO,CAAC,gBAAgB,CAA6B;IACrD,OAAO,CAAC,gBAAgB,CAAmB;;IAQ9B,eAAe,CAAC,MAAM,EAAE,QAAQ,CAAC,KAAK,CAAC,QAAQ,GAAG,OAAO,CAAC,4BAA4B,GAAG,IAAI,CAAC;CAkB9G;AAED,eAAO,MAAM,iBAAiB,mBAAmC,CAAC"}
|
|
@@ -0,0 +1,404 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { DTO } from '@lyxa.ai/core/dist/utilities/validation/global-validation';
|
|
3
|
+
export declare const GetUserTournamentStatsSchema: z.ZodObject<{
|
|
4
|
+
userId: 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
|
+
}, "strip", z.ZodTypeAny, {
|
|
6
|
+
userId: import("mongoose").Types.ObjectId;
|
|
7
|
+
}, {
|
|
8
|
+
userId: string | import("mongoose").Types.ObjectId;
|
|
9
|
+
}>;
|
|
10
|
+
export declare const UserTournamentMatchViewSchema: z.ZodObject<{
|
|
11
|
+
id: z.ZodString;
|
|
12
|
+
teams: z.ZodString;
|
|
13
|
+
date: z.ZodNullable<z.ZodString>;
|
|
14
|
+
prediction: z.ZodNullable<z.ZodString>;
|
|
15
|
+
realScore: z.ZodNullable<z.ZodString>;
|
|
16
|
+
result: z.ZodNullable<z.ZodEnum<["won", "lost", "pending"]>>;
|
|
17
|
+
coupon: z.ZodNullable<z.ZodString>;
|
|
18
|
+
}, "strip", z.ZodTypeAny, {
|
|
19
|
+
date: string | null;
|
|
20
|
+
coupon: string | null;
|
|
21
|
+
id: string;
|
|
22
|
+
result: "won" | "lost" | "pending" | null;
|
|
23
|
+
teams: string;
|
|
24
|
+
prediction: string | null;
|
|
25
|
+
realScore: string | null;
|
|
26
|
+
}, {
|
|
27
|
+
date: string | null;
|
|
28
|
+
coupon: string | null;
|
|
29
|
+
id: string;
|
|
30
|
+
result: "won" | "lost" | "pending" | null;
|
|
31
|
+
teams: string;
|
|
32
|
+
prediction: string | null;
|
|
33
|
+
realScore: string | null;
|
|
34
|
+
}>;
|
|
35
|
+
export declare const UserTournamentStatsSchema: z.ZodNullable<z.ZodObject<{
|
|
36
|
+
name: z.ZodString;
|
|
37
|
+
joinedAt: z.ZodNullable<z.ZodDate>;
|
|
38
|
+
selectedTeam: z.ZodObject<{
|
|
39
|
+
name: z.ZodString;
|
|
40
|
+
flag: z.ZodNullable<z.ZodString>;
|
|
41
|
+
}, "strip", z.ZodTypeAny, {
|
|
42
|
+
name: string;
|
|
43
|
+
flag: string | null;
|
|
44
|
+
}, {
|
|
45
|
+
name: string;
|
|
46
|
+
flag: string | null;
|
|
47
|
+
}>;
|
|
48
|
+
stats: z.ZodObject<{
|
|
49
|
+
predictionsMade: z.ZodNumber;
|
|
50
|
+
correctPredictions: z.ZodNumber;
|
|
51
|
+
couponsWon: z.ZodNumber;
|
|
52
|
+
}, "strip", z.ZodTypeAny, {
|
|
53
|
+
predictionsMade: number;
|
|
54
|
+
correctPredictions: number;
|
|
55
|
+
couponsWon: number;
|
|
56
|
+
}, {
|
|
57
|
+
predictionsMade: number;
|
|
58
|
+
correctPredictions: number;
|
|
59
|
+
couponsWon: number;
|
|
60
|
+
}>;
|
|
61
|
+
matches: z.ZodArray<z.ZodObject<{
|
|
62
|
+
id: z.ZodString;
|
|
63
|
+
teams: z.ZodString;
|
|
64
|
+
date: z.ZodNullable<z.ZodString>;
|
|
65
|
+
prediction: z.ZodNullable<z.ZodString>;
|
|
66
|
+
realScore: z.ZodNullable<z.ZodString>;
|
|
67
|
+
result: z.ZodNullable<z.ZodEnum<["won", "lost", "pending"]>>;
|
|
68
|
+
coupon: z.ZodNullable<z.ZodString>;
|
|
69
|
+
}, "strip", z.ZodTypeAny, {
|
|
70
|
+
date: string | null;
|
|
71
|
+
coupon: string | null;
|
|
72
|
+
id: string;
|
|
73
|
+
result: "won" | "lost" | "pending" | null;
|
|
74
|
+
teams: string;
|
|
75
|
+
prediction: string | null;
|
|
76
|
+
realScore: string | null;
|
|
77
|
+
}, {
|
|
78
|
+
date: string | null;
|
|
79
|
+
coupon: string | null;
|
|
80
|
+
id: string;
|
|
81
|
+
result: "won" | "lost" | "pending" | null;
|
|
82
|
+
teams: string;
|
|
83
|
+
prediction: string | null;
|
|
84
|
+
realScore: string | null;
|
|
85
|
+
}>, "many">;
|
|
86
|
+
}, "strip", z.ZodTypeAny, {
|
|
87
|
+
name: string;
|
|
88
|
+
joinedAt: Date | null;
|
|
89
|
+
stats: {
|
|
90
|
+
predictionsMade: number;
|
|
91
|
+
correctPredictions: number;
|
|
92
|
+
couponsWon: number;
|
|
93
|
+
};
|
|
94
|
+
matches: {
|
|
95
|
+
date: string | null;
|
|
96
|
+
coupon: string | null;
|
|
97
|
+
id: string;
|
|
98
|
+
result: "won" | "lost" | "pending" | null;
|
|
99
|
+
teams: string;
|
|
100
|
+
prediction: string | null;
|
|
101
|
+
realScore: string | null;
|
|
102
|
+
}[];
|
|
103
|
+
selectedTeam: {
|
|
104
|
+
name: string;
|
|
105
|
+
flag: string | null;
|
|
106
|
+
};
|
|
107
|
+
}, {
|
|
108
|
+
name: string;
|
|
109
|
+
joinedAt: Date | null;
|
|
110
|
+
stats: {
|
|
111
|
+
predictionsMade: number;
|
|
112
|
+
correctPredictions: number;
|
|
113
|
+
couponsWon: number;
|
|
114
|
+
};
|
|
115
|
+
matches: {
|
|
116
|
+
date: string | null;
|
|
117
|
+
coupon: string | null;
|
|
118
|
+
id: string;
|
|
119
|
+
result: "won" | "lost" | "pending" | null;
|
|
120
|
+
teams: string;
|
|
121
|
+
prediction: string | null;
|
|
122
|
+
realScore: string | null;
|
|
123
|
+
}[];
|
|
124
|
+
selectedTeam: {
|
|
125
|
+
name: string;
|
|
126
|
+
flag: string | null;
|
|
127
|
+
};
|
|
128
|
+
}>>;
|
|
129
|
+
export declare const UserTournamentStatsResponseSchema: z.ZodObject<{
|
|
130
|
+
success: z.ZodBoolean;
|
|
131
|
+
message: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
132
|
+
data: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
133
|
+
metadata: z.ZodOptional<z.ZodObject<{
|
|
134
|
+
page: z.ZodNumber;
|
|
135
|
+
size: z.ZodNumber;
|
|
136
|
+
totalElements: z.ZodNumber;
|
|
137
|
+
totalPages: z.ZodNumber;
|
|
138
|
+
}, "strip", z.ZodTypeAny, {
|
|
139
|
+
page: number;
|
|
140
|
+
size: number;
|
|
141
|
+
totalElements: number;
|
|
142
|
+
totalPages: number;
|
|
143
|
+
}, {
|
|
144
|
+
page: number;
|
|
145
|
+
size: number;
|
|
146
|
+
totalElements: number;
|
|
147
|
+
totalPages: number;
|
|
148
|
+
}>>;
|
|
149
|
+
documents: z.ZodArray<z.ZodType<{
|
|
150
|
+
name: string;
|
|
151
|
+
joinedAt: Date | null;
|
|
152
|
+
stats: {
|
|
153
|
+
predictionsMade: number;
|
|
154
|
+
correctPredictions: number;
|
|
155
|
+
couponsWon: number;
|
|
156
|
+
};
|
|
157
|
+
matches: {
|
|
158
|
+
date: string | null;
|
|
159
|
+
coupon: string | null;
|
|
160
|
+
id: string;
|
|
161
|
+
result: "won" | "lost" | "pending" | null;
|
|
162
|
+
teams: string;
|
|
163
|
+
prediction: string | null;
|
|
164
|
+
realScore: string | null;
|
|
165
|
+
}[];
|
|
166
|
+
selectedTeam: {
|
|
167
|
+
name: string;
|
|
168
|
+
flag: string | null;
|
|
169
|
+
};
|
|
170
|
+
} | null, z.ZodTypeDef, {
|
|
171
|
+
name: string;
|
|
172
|
+
joinedAt: Date | null;
|
|
173
|
+
stats: {
|
|
174
|
+
predictionsMade: number;
|
|
175
|
+
correctPredictions: number;
|
|
176
|
+
couponsWon: number;
|
|
177
|
+
};
|
|
178
|
+
matches: {
|
|
179
|
+
date: string | null;
|
|
180
|
+
coupon: string | null;
|
|
181
|
+
id: string;
|
|
182
|
+
result: "won" | "lost" | "pending" | null;
|
|
183
|
+
teams: string;
|
|
184
|
+
prediction: string | null;
|
|
185
|
+
realScore: string | null;
|
|
186
|
+
}[];
|
|
187
|
+
selectedTeam: {
|
|
188
|
+
name: string;
|
|
189
|
+
flag: string | null;
|
|
190
|
+
};
|
|
191
|
+
} | null>, "many">;
|
|
192
|
+
}, "strip", z.ZodTypeAny, {
|
|
193
|
+
documents: ({
|
|
194
|
+
name: string;
|
|
195
|
+
joinedAt: Date | null;
|
|
196
|
+
stats: {
|
|
197
|
+
predictionsMade: number;
|
|
198
|
+
correctPredictions: number;
|
|
199
|
+
couponsWon: number;
|
|
200
|
+
};
|
|
201
|
+
matches: {
|
|
202
|
+
date: string | null;
|
|
203
|
+
coupon: string | null;
|
|
204
|
+
id: string;
|
|
205
|
+
result: "won" | "lost" | "pending" | null;
|
|
206
|
+
teams: string;
|
|
207
|
+
prediction: string | null;
|
|
208
|
+
realScore: string | null;
|
|
209
|
+
}[];
|
|
210
|
+
selectedTeam: {
|
|
211
|
+
name: string;
|
|
212
|
+
flag: string | null;
|
|
213
|
+
};
|
|
214
|
+
} | null)[];
|
|
215
|
+
metadata?: {
|
|
216
|
+
page: number;
|
|
217
|
+
size: number;
|
|
218
|
+
totalElements: number;
|
|
219
|
+
totalPages: number;
|
|
220
|
+
} | undefined;
|
|
221
|
+
}, {
|
|
222
|
+
documents: ({
|
|
223
|
+
name: string;
|
|
224
|
+
joinedAt: Date | null;
|
|
225
|
+
stats: {
|
|
226
|
+
predictionsMade: number;
|
|
227
|
+
correctPredictions: number;
|
|
228
|
+
couponsWon: number;
|
|
229
|
+
};
|
|
230
|
+
matches: {
|
|
231
|
+
date: string | null;
|
|
232
|
+
coupon: string | null;
|
|
233
|
+
id: string;
|
|
234
|
+
result: "won" | "lost" | "pending" | null;
|
|
235
|
+
teams: string;
|
|
236
|
+
prediction: string | null;
|
|
237
|
+
realScore: string | null;
|
|
238
|
+
}[];
|
|
239
|
+
selectedTeam: {
|
|
240
|
+
name: string;
|
|
241
|
+
flag: string | null;
|
|
242
|
+
};
|
|
243
|
+
} | null)[];
|
|
244
|
+
metadata?: {
|
|
245
|
+
page: number;
|
|
246
|
+
size: number;
|
|
247
|
+
totalElements: number;
|
|
248
|
+
totalPages: number;
|
|
249
|
+
} | undefined;
|
|
250
|
+
}>, z.ZodType<{
|
|
251
|
+
name: string;
|
|
252
|
+
joinedAt: Date | null;
|
|
253
|
+
stats: {
|
|
254
|
+
predictionsMade: number;
|
|
255
|
+
correctPredictions: number;
|
|
256
|
+
couponsWon: number;
|
|
257
|
+
};
|
|
258
|
+
matches: {
|
|
259
|
+
date: string | null;
|
|
260
|
+
coupon: string | null;
|
|
261
|
+
id: string;
|
|
262
|
+
result: "won" | "lost" | "pending" | null;
|
|
263
|
+
teams: string;
|
|
264
|
+
prediction: string | null;
|
|
265
|
+
realScore: string | null;
|
|
266
|
+
}[];
|
|
267
|
+
selectedTeam: {
|
|
268
|
+
name: string;
|
|
269
|
+
flag: string | null;
|
|
270
|
+
};
|
|
271
|
+
} | null, z.ZodTypeDef, {
|
|
272
|
+
name: string;
|
|
273
|
+
joinedAt: Date | null;
|
|
274
|
+
stats: {
|
|
275
|
+
predictionsMade: number;
|
|
276
|
+
correctPredictions: number;
|
|
277
|
+
couponsWon: number;
|
|
278
|
+
};
|
|
279
|
+
matches: {
|
|
280
|
+
date: string | null;
|
|
281
|
+
coupon: string | null;
|
|
282
|
+
id: string;
|
|
283
|
+
result: "won" | "lost" | "pending" | null;
|
|
284
|
+
teams: string;
|
|
285
|
+
prediction: string | null;
|
|
286
|
+
realScore: string | null;
|
|
287
|
+
}[];
|
|
288
|
+
selectedTeam: {
|
|
289
|
+
name: string;
|
|
290
|
+
flag: string | null;
|
|
291
|
+
};
|
|
292
|
+
} | null>]>>;
|
|
293
|
+
}, "strip", z.ZodTypeAny, {
|
|
294
|
+
message: string;
|
|
295
|
+
success: boolean;
|
|
296
|
+
data?: {
|
|
297
|
+
name: string;
|
|
298
|
+
joinedAt: Date | null;
|
|
299
|
+
stats: {
|
|
300
|
+
predictionsMade: number;
|
|
301
|
+
correctPredictions: number;
|
|
302
|
+
couponsWon: number;
|
|
303
|
+
};
|
|
304
|
+
matches: {
|
|
305
|
+
date: string | null;
|
|
306
|
+
coupon: string | null;
|
|
307
|
+
id: string;
|
|
308
|
+
result: "won" | "lost" | "pending" | null;
|
|
309
|
+
teams: string;
|
|
310
|
+
prediction: string | null;
|
|
311
|
+
realScore: string | null;
|
|
312
|
+
}[];
|
|
313
|
+
selectedTeam: {
|
|
314
|
+
name: string;
|
|
315
|
+
flag: string | null;
|
|
316
|
+
};
|
|
317
|
+
} | {
|
|
318
|
+
documents: ({
|
|
319
|
+
name: string;
|
|
320
|
+
joinedAt: Date | null;
|
|
321
|
+
stats: {
|
|
322
|
+
predictionsMade: number;
|
|
323
|
+
correctPredictions: number;
|
|
324
|
+
couponsWon: number;
|
|
325
|
+
};
|
|
326
|
+
matches: {
|
|
327
|
+
date: string | null;
|
|
328
|
+
coupon: string | null;
|
|
329
|
+
id: string;
|
|
330
|
+
result: "won" | "lost" | "pending" | null;
|
|
331
|
+
teams: string;
|
|
332
|
+
prediction: string | null;
|
|
333
|
+
realScore: string | null;
|
|
334
|
+
}[];
|
|
335
|
+
selectedTeam: {
|
|
336
|
+
name: string;
|
|
337
|
+
flag: string | null;
|
|
338
|
+
};
|
|
339
|
+
} | null)[];
|
|
340
|
+
metadata?: {
|
|
341
|
+
page: number;
|
|
342
|
+
size: number;
|
|
343
|
+
totalElements: number;
|
|
344
|
+
totalPages: number;
|
|
345
|
+
} | undefined;
|
|
346
|
+
} | null | undefined;
|
|
347
|
+
}, {
|
|
348
|
+
message: string;
|
|
349
|
+
success: boolean;
|
|
350
|
+
data?: {
|
|
351
|
+
name: string;
|
|
352
|
+
joinedAt: Date | null;
|
|
353
|
+
stats: {
|
|
354
|
+
predictionsMade: number;
|
|
355
|
+
correctPredictions: number;
|
|
356
|
+
couponsWon: number;
|
|
357
|
+
};
|
|
358
|
+
matches: {
|
|
359
|
+
date: string | null;
|
|
360
|
+
coupon: string | null;
|
|
361
|
+
id: string;
|
|
362
|
+
result: "won" | "lost" | "pending" | null;
|
|
363
|
+
teams: string;
|
|
364
|
+
prediction: string | null;
|
|
365
|
+
realScore: string | null;
|
|
366
|
+
}[];
|
|
367
|
+
selectedTeam: {
|
|
368
|
+
name: string;
|
|
369
|
+
flag: string | null;
|
|
370
|
+
};
|
|
371
|
+
} | {
|
|
372
|
+
documents: ({
|
|
373
|
+
name: string;
|
|
374
|
+
joinedAt: Date | null;
|
|
375
|
+
stats: {
|
|
376
|
+
predictionsMade: number;
|
|
377
|
+
correctPredictions: number;
|
|
378
|
+
couponsWon: number;
|
|
379
|
+
};
|
|
380
|
+
matches: {
|
|
381
|
+
date: string | null;
|
|
382
|
+
coupon: string | null;
|
|
383
|
+
id: string;
|
|
384
|
+
result: "won" | "lost" | "pending" | null;
|
|
385
|
+
teams: string;
|
|
386
|
+
prediction: string | null;
|
|
387
|
+
realScore: string | null;
|
|
388
|
+
}[];
|
|
389
|
+
selectedTeam: {
|
|
390
|
+
name: string;
|
|
391
|
+
flag: string | null;
|
|
392
|
+
};
|
|
393
|
+
} | null)[];
|
|
394
|
+
metadata?: {
|
|
395
|
+
page: number;
|
|
396
|
+
size: number;
|
|
397
|
+
totalElements: number;
|
|
398
|
+
totalPages: number;
|
|
399
|
+
} | undefined;
|
|
400
|
+
} | null | undefined;
|
|
401
|
+
}>;
|
|
402
|
+
export type GetUserTournamentStatsInputDTO = DTO<typeof GetUserTournamentStatsSchema>;
|
|
403
|
+
export type UserTournamentStatsOutputDTO = DTO<typeof UserTournamentStatsSchema>;
|
|
404
|
+
//# sourceMappingURL=statistics.validation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"statistics.validation.d.ts","sourceRoot":"/","sources":["modules/tournament/statistics/statistics.validation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,GAAG,EAAiB,MAAM,2DAA2D,CAAC;AAG/F,eAAO,MAAM,4BAA4B;;;;;;EAEvC,CAAC;AAEH,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;EAQxC,CAAC;AAEH,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAe1B,CAAC;AAEb,eAAO,MAAM,iCAAiC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAkD,CAAC;AAEjG,MAAM,MAAM,8BAA8B,GAAG,GAAG,CAAC,OAAO,4BAA4B,CAAC,CAAC;AACtF,MAAM,MAAM,4BAA4B,GAAG,GAAG,CAAC,OAAO,yBAAyB,CAAC,CAAC"}
|
|
@@ -28,71 +28,39 @@ export declare const teamRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
28
28
|
success: boolean;
|
|
29
29
|
data?: {
|
|
30
30
|
status: import("@lyxa.ai/core/dist/utilities/enum").Status;
|
|
31
|
-
|
|
32
|
-
|
|
31
|
+
name: string;
|
|
32
|
+
_id?: string | mongoose.Types.ObjectId | undefined;
|
|
33
33
|
createdAt?: Date | null | undefined;
|
|
34
34
|
startDate?: Date | null | undefined;
|
|
35
35
|
endDate?: Date | null | undefined;
|
|
36
36
|
updatedAt?: Date | null | undefined;
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
};
|
|
47
|
-
score: {
|
|
48
|
-
team1: number | null;
|
|
49
|
-
team2: number | null;
|
|
50
|
-
};
|
|
51
|
-
stage: string;
|
|
52
|
-
endDate?: Date | null | undefined;
|
|
53
|
-
startingDate?: Date | null | undefined;
|
|
54
|
-
additionalTag?: string | undefined;
|
|
55
|
-
winnerId?: string | mongoose.Types.ObjectId | null | undefined;
|
|
56
|
-
}[] | undefined;
|
|
57
|
-
teams?: {
|
|
58
|
-
name: string;
|
|
59
|
-
_id: string | mongoose.Types.ObjectId;
|
|
60
|
-
picture?: string | null | undefined;
|
|
61
|
-
}[] | undefined;
|
|
37
|
+
tag?: import("../tournament.types").TournamentTag | undefined;
|
|
38
|
+
reward?: {
|
|
39
|
+
type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.FREE_DELIVERY;
|
|
40
|
+
} | {
|
|
41
|
+
type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.COUPON;
|
|
42
|
+
maxDiscountPerOrder?: number | null | undefined;
|
|
43
|
+
couponNamePrefix?: string | undefined;
|
|
44
|
+
percentage?: number | undefined;
|
|
45
|
+
} | undefined;
|
|
62
46
|
} | {
|
|
63
47
|
documents: {
|
|
64
48
|
status: import("@lyxa.ai/core/dist/utilities/enum").Status;
|
|
65
|
-
|
|
66
|
-
|
|
49
|
+
name: string;
|
|
50
|
+
_id?: string | mongoose.Types.ObjectId | undefined;
|
|
67
51
|
createdAt?: Date | null | undefined;
|
|
68
52
|
startDate?: Date | null | undefined;
|
|
69
53
|
endDate?: Date | null | undefined;
|
|
70
54
|
updatedAt?: Date | null | undefined;
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
};
|
|
81
|
-
score: {
|
|
82
|
-
team1: number | null;
|
|
83
|
-
team2: number | null;
|
|
84
|
-
};
|
|
85
|
-
stage: string;
|
|
86
|
-
endDate?: Date | null | undefined;
|
|
87
|
-
startingDate?: Date | null | undefined;
|
|
88
|
-
additionalTag?: string | undefined;
|
|
89
|
-
winnerId?: string | mongoose.Types.ObjectId | null | undefined;
|
|
90
|
-
}[] | undefined;
|
|
91
|
-
teams?: {
|
|
92
|
-
name: string;
|
|
93
|
-
_id: string | mongoose.Types.ObjectId;
|
|
94
|
-
picture?: string | null | undefined;
|
|
95
|
-
}[] | undefined;
|
|
55
|
+
tag?: import("../tournament.types").TournamentTag | undefined;
|
|
56
|
+
reward?: {
|
|
57
|
+
type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.FREE_DELIVERY;
|
|
58
|
+
} | {
|
|
59
|
+
type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.COUPON;
|
|
60
|
+
maxDiscountPerOrder?: number | null | undefined;
|
|
61
|
+
couponNamePrefix?: string | undefined;
|
|
62
|
+
percentage?: number | undefined;
|
|
63
|
+
} | undefined;
|
|
96
64
|
}[];
|
|
97
65
|
metadata?: {
|
|
98
66
|
page: number;
|
|
@@ -147,8 +115,8 @@ export declare const teamRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
147
115
|
}>;
|
|
148
116
|
getMatches: import("@trpc/server").TRPCQueryProcedure<{
|
|
149
117
|
input: {
|
|
150
|
-
filter: "completed" | "upcoming";
|
|
151
118
|
tournamentId: string | mongoose.Types.ObjectId;
|
|
119
|
+
filter?: import("../tournament.types").MatchStatus | undefined;
|
|
152
120
|
};
|
|
153
121
|
output: {
|
|
154
122
|
message: string;
|
|
@@ -162,10 +130,12 @@ export declare const teamRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
162
130
|
team1: {
|
|
163
131
|
name: string;
|
|
164
132
|
teamId: string | mongoose.Types.ObjectId;
|
|
133
|
+
picture?: string | undefined;
|
|
165
134
|
};
|
|
166
135
|
team2: {
|
|
167
136
|
name: string;
|
|
168
137
|
teamId: string | mongoose.Types.ObjectId;
|
|
138
|
+
picture?: string | undefined;
|
|
169
139
|
};
|
|
170
140
|
score: {
|
|
171
141
|
team1: number | null;
|
|
@@ -180,10 +150,11 @@ export declare const teamRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
180
150
|
succeeded: boolean | null;
|
|
181
151
|
} | null;
|
|
182
152
|
canPredict: boolean;
|
|
153
|
+
matchStatus: import("../tournament.types").MatchStatus;
|
|
183
154
|
endDate?: Date | null | undefined;
|
|
184
|
-
startingDate?: Date | null | undefined;
|
|
185
155
|
additionalTag?: string | undefined;
|
|
186
156
|
winnerId?: string | mongoose.Types.ObjectId | null | undefined;
|
|
157
|
+
startingDate?: Date | null | undefined;
|
|
187
158
|
}[];
|
|
188
159
|
startDate?: Date | null | undefined;
|
|
189
160
|
endDate?: Date | null | undefined;
|
|
@@ -197,10 +168,12 @@ export declare const teamRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
197
168
|
team1: {
|
|
198
169
|
name: string;
|
|
199
170
|
teamId: string | mongoose.Types.ObjectId;
|
|
171
|
+
picture?: string | undefined;
|
|
200
172
|
};
|
|
201
173
|
team2: {
|
|
202
174
|
name: string;
|
|
203
175
|
teamId: string | mongoose.Types.ObjectId;
|
|
176
|
+
picture?: string | undefined;
|
|
204
177
|
};
|
|
205
178
|
score: {
|
|
206
179
|
team1: number | null;
|
|
@@ -215,10 +188,11 @@ export declare const teamRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
215
188
|
succeeded: boolean | null;
|
|
216
189
|
} | null;
|
|
217
190
|
canPredict: boolean;
|
|
191
|
+
matchStatus: import("../tournament.types").MatchStatus;
|
|
218
192
|
endDate?: Date | null | undefined;
|
|
219
|
-
startingDate?: Date | null | undefined;
|
|
220
193
|
additionalTag?: string | undefined;
|
|
221
194
|
winnerId?: string | mongoose.Types.ObjectId | null | undefined;
|
|
195
|
+
startingDate?: Date | null | undefined;
|
|
222
196
|
}[];
|
|
223
197
|
startDate?: Date | null | undefined;
|
|
224
198
|
endDate?: Date | null | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"team.router.d.ts","sourceRoot":"/","sources":["modules/tournament/team/team.router.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAgBhD,eAAO,MAAM,UAAU
|
|
1
|
+
{"version":3,"file":"team.router.d.ts","sourceRoot":"/","sources":["modules/tournament/team/team.router.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAgBhD,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BrB,CAAC"}
|
|
@@ -6,6 +6,7 @@ export declare class TeamService {
|
|
|
6
6
|
private participantService;
|
|
7
7
|
constructor();
|
|
8
8
|
private filterMatchesByTeam;
|
|
9
|
+
private getMatchStatus;
|
|
9
10
|
private applyStatusFilter;
|
|
10
11
|
add(input: AddTournamentTeamsInputDTO): Promise<TournamentConfigOutputDTO>;
|
|
11
12
|
getAll(tournamentId: mongoose.Types.ObjectId): Promise<TournamentWithTeamsOutputDTO>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"team.service.d.ts","sourceRoot":"/","sources":["modules/tournament/team/team.service.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAEhD,OAAO,EACH,0BAA0B,EAC1B,sBAAsB,EAEtB,8BAA8B,EAC9B,4BAA4B,EAC/B,MAAM,mBAAmB,CAAC;AAI3B,OAAO,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAC;
|
|
1
|
+
{"version":3,"file":"team.service.d.ts","sourceRoot":"/","sources":["modules/tournament/team/team.service.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAEhD,OAAO,EACH,0BAA0B,EAC1B,sBAAsB,EAEtB,8BAA8B,EAC9B,4BAA4B,EAC/B,MAAM,mBAAmB,CAAC;AAI3B,OAAO,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAC;AAKxE,qBACa,WAAW;IACpB,OAAO,CAAC,UAAU,CAA2B;IAC7C,OAAO,CAAC,kBAAkB,CAAqB;;IAO/C,OAAO,CAAC,mBAAmB;IAM3B,OAAO,CAAC,cAAc;IAMtB,OAAO,CAAC,iBAAiB;IAYZ,GAAG,CAAC,KAAK,EAAE,0BAA0B,GAAG,OAAO,CAAC,yBAAyB,CAAC;IAU1E,MAAM,CAAC,YAAY,EAAE,QAAQ,CAAC,KAAK,CAAC,QAAQ,GAAG,OAAO,CAAC,4BAA4B,CAAC;IAcpF,UAAU,CAAC,MAAM,EAAE,QAAQ,CAAC,KAAK,CAAC,QAAQ,EAAE,KAAK,EAAE,sBAAsB,GAAG,OAAO,CAAC,8BAA8B,CAAC;CAwCnI;AAED,eAAO,MAAM,WAAW,aAA6B,CAAC"}
|