@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
|
@@ -19,9 +19,9 @@ export declare const matchRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
19
19
|
tournamentId: string | import("mongoose").Types.ObjectId;
|
|
20
20
|
matches: {
|
|
21
21
|
stage: string;
|
|
22
|
+
startingDate: string | Date;
|
|
22
23
|
team1Id: string | import("mongoose").Types.ObjectId;
|
|
23
24
|
team2Id: string | import("mongoose").Types.ObjectId;
|
|
24
|
-
startingDate: string | Date;
|
|
25
25
|
endDate?: string | Date | undefined;
|
|
26
26
|
additionalTag?: string | undefined;
|
|
27
27
|
}[];
|
|
@@ -31,71 +31,39 @@ export declare const matchRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
31
31
|
success: boolean;
|
|
32
32
|
data?: {
|
|
33
33
|
status: import("@lyxa.ai/core/dist/utilities/enum").Status;
|
|
34
|
-
|
|
35
|
-
|
|
34
|
+
name: string;
|
|
35
|
+
_id?: string | import("mongoose").Types.ObjectId | undefined;
|
|
36
36
|
createdAt?: Date | null | undefined;
|
|
37
37
|
startDate?: Date | null | undefined;
|
|
38
38
|
endDate?: Date | null | undefined;
|
|
39
39
|
updatedAt?: Date | null | undefined;
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
};
|
|
50
|
-
score: {
|
|
51
|
-
team1: number | null;
|
|
52
|
-
team2: number | null;
|
|
53
|
-
};
|
|
54
|
-
stage: string;
|
|
55
|
-
endDate?: Date | null | undefined;
|
|
56
|
-
startingDate?: Date | null | undefined;
|
|
57
|
-
additionalTag?: string | undefined;
|
|
58
|
-
winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
|
|
59
|
-
}[] | undefined;
|
|
60
|
-
teams?: {
|
|
61
|
-
name: string;
|
|
62
|
-
_id: string | import("mongoose").Types.ObjectId;
|
|
63
|
-
picture?: string | null | undefined;
|
|
64
|
-
}[] | undefined;
|
|
40
|
+
tag?: import("../tournament.types").TournamentTag | undefined;
|
|
41
|
+
reward?: {
|
|
42
|
+
type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.FREE_DELIVERY;
|
|
43
|
+
} | {
|
|
44
|
+
type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.COUPON;
|
|
45
|
+
maxDiscountPerOrder?: number | null | undefined;
|
|
46
|
+
couponNamePrefix?: string | undefined;
|
|
47
|
+
percentage?: number | undefined;
|
|
48
|
+
} | undefined;
|
|
65
49
|
} | {
|
|
66
50
|
documents: {
|
|
67
51
|
status: import("@lyxa.ai/core/dist/utilities/enum").Status;
|
|
68
|
-
|
|
69
|
-
|
|
52
|
+
name: string;
|
|
53
|
+
_id?: string | import("mongoose").Types.ObjectId | undefined;
|
|
70
54
|
createdAt?: Date | null | undefined;
|
|
71
55
|
startDate?: Date | null | undefined;
|
|
72
56
|
endDate?: Date | null | undefined;
|
|
73
57
|
updatedAt?: Date | null | undefined;
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
};
|
|
84
|
-
score: {
|
|
85
|
-
team1: number | null;
|
|
86
|
-
team2: number | null;
|
|
87
|
-
};
|
|
88
|
-
stage: string;
|
|
89
|
-
endDate?: Date | null | undefined;
|
|
90
|
-
startingDate?: Date | null | undefined;
|
|
91
|
-
additionalTag?: string | undefined;
|
|
92
|
-
winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
|
|
93
|
-
}[] | undefined;
|
|
94
|
-
teams?: {
|
|
95
|
-
name: string;
|
|
96
|
-
_id: string | import("mongoose").Types.ObjectId;
|
|
97
|
-
picture?: string | null | undefined;
|
|
98
|
-
}[] | undefined;
|
|
58
|
+
tag?: import("../tournament.types").TournamentTag | undefined;
|
|
59
|
+
reward?: {
|
|
60
|
+
type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.FREE_DELIVERY;
|
|
61
|
+
} | {
|
|
62
|
+
type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.COUPON;
|
|
63
|
+
maxDiscountPerOrder?: number | null | undefined;
|
|
64
|
+
couponNamePrefix?: string | undefined;
|
|
65
|
+
percentage?: number | undefined;
|
|
66
|
+
} | undefined;
|
|
99
67
|
}[];
|
|
100
68
|
metadata?: {
|
|
101
69
|
page: number;
|
|
@@ -119,10 +87,12 @@ export declare const matchRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
119
87
|
team1: {
|
|
120
88
|
name: string;
|
|
121
89
|
teamId: string | import("mongoose").Types.ObjectId;
|
|
90
|
+
picture?: string | undefined;
|
|
122
91
|
};
|
|
123
92
|
team2: {
|
|
124
93
|
name: string;
|
|
125
94
|
teamId: string | import("mongoose").Types.ObjectId;
|
|
95
|
+
picture?: string | undefined;
|
|
126
96
|
};
|
|
127
97
|
score: {
|
|
128
98
|
team1: number | null;
|
|
@@ -130,9 +100,9 @@ export declare const matchRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
130
100
|
};
|
|
131
101
|
stage: string;
|
|
132
102
|
endDate?: Date | null | undefined;
|
|
133
|
-
startingDate?: Date | null | undefined;
|
|
134
103
|
additionalTag?: string | undefined;
|
|
135
104
|
winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
|
|
105
|
+
startingDate?: Date | null | undefined;
|
|
136
106
|
prediction?: {
|
|
137
107
|
score: {
|
|
138
108
|
team1: number | null;
|
|
@@ -146,10 +116,12 @@ export declare const matchRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
146
116
|
team1: {
|
|
147
117
|
name: string;
|
|
148
118
|
teamId: string | import("mongoose").Types.ObjectId;
|
|
119
|
+
picture?: string | undefined;
|
|
149
120
|
};
|
|
150
121
|
team2: {
|
|
151
122
|
name: string;
|
|
152
123
|
teamId: string | import("mongoose").Types.ObjectId;
|
|
124
|
+
picture?: string | undefined;
|
|
153
125
|
};
|
|
154
126
|
score: {
|
|
155
127
|
team1: number | null;
|
|
@@ -157,9 +129,9 @@ export declare const matchRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
157
129
|
};
|
|
158
130
|
stage: string;
|
|
159
131
|
endDate?: Date | null | undefined;
|
|
160
|
-
startingDate?: Date | null | undefined;
|
|
161
132
|
additionalTag?: string | undefined;
|
|
162
133
|
winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
|
|
134
|
+
startingDate?: Date | null | undefined;
|
|
163
135
|
prediction?: {
|
|
164
136
|
score: {
|
|
165
137
|
team1: number | null;
|
|
@@ -191,10 +163,12 @@ export declare const matchRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
191
163
|
team1: {
|
|
192
164
|
name: string;
|
|
193
165
|
teamId: string | import("mongoose").Types.ObjectId;
|
|
166
|
+
picture?: string | undefined;
|
|
194
167
|
};
|
|
195
168
|
team2: {
|
|
196
169
|
name: string;
|
|
197
170
|
teamId: string | import("mongoose").Types.ObjectId;
|
|
171
|
+
picture?: string | undefined;
|
|
198
172
|
};
|
|
199
173
|
score: {
|
|
200
174
|
team1: number | null;
|
|
@@ -202,84 +176,9 @@ export declare const matchRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
202
176
|
};
|
|
203
177
|
stage: string;
|
|
204
178
|
endDate?: Date | null | undefined;
|
|
205
|
-
startingDate?: Date | null | undefined;
|
|
206
179
|
additionalTag?: string | undefined;
|
|
207
180
|
winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
|
|
208
|
-
prediction?: {
|
|
209
|
-
score: {
|
|
210
|
-
team1: number | null;
|
|
211
|
-
team2: number | null;
|
|
212
|
-
};
|
|
213
|
-
succeeded?: boolean | null | undefined;
|
|
214
|
-
} | null | undefined;
|
|
215
|
-
} | {
|
|
216
|
-
documents: {
|
|
217
|
-
_id: string | import("mongoose").Types.ObjectId;
|
|
218
|
-
team1: {
|
|
219
|
-
name: string;
|
|
220
|
-
teamId: string | import("mongoose").Types.ObjectId;
|
|
221
|
-
};
|
|
222
|
-
team2: {
|
|
223
|
-
name: string;
|
|
224
|
-
teamId: string | import("mongoose").Types.ObjectId;
|
|
225
|
-
};
|
|
226
|
-
score: {
|
|
227
|
-
team1: number | null;
|
|
228
|
-
team2: number | null;
|
|
229
|
-
};
|
|
230
|
-
stage: string;
|
|
231
|
-
endDate?: Date | null | undefined;
|
|
232
|
-
startingDate?: Date | null | undefined;
|
|
233
|
-
additionalTag?: string | undefined;
|
|
234
|
-
winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
|
|
235
|
-
prediction?: {
|
|
236
|
-
score: {
|
|
237
|
-
team1: number | null;
|
|
238
|
-
team2: number | null;
|
|
239
|
-
};
|
|
240
|
-
succeeded?: boolean | null | undefined;
|
|
241
|
-
} | null | undefined;
|
|
242
|
-
}[];
|
|
243
|
-
metadata?: {
|
|
244
|
-
page: number;
|
|
245
|
-
size: number;
|
|
246
|
-
totalElements: number;
|
|
247
|
-
totalPages: number;
|
|
248
|
-
} | undefined;
|
|
249
|
-
} | undefined;
|
|
250
|
-
};
|
|
251
|
-
meta: object;
|
|
252
|
-
}>;
|
|
253
|
-
updateScore: import("@trpc/server").TRPCMutationProcedure<{
|
|
254
|
-
input: {
|
|
255
|
-
tournamentId: string | import("mongoose").Types.ObjectId;
|
|
256
|
-
matchId: string | import("mongoose").Types.ObjectId;
|
|
257
|
-
team1Score: number;
|
|
258
|
-
team2Score: number;
|
|
259
|
-
winnerId?: string | import("mongoose").Types.ObjectId | undefined;
|
|
260
|
-
};
|
|
261
|
-
output: {
|
|
262
|
-
message: string;
|
|
263
|
-
success: boolean;
|
|
264
|
-
data?: {
|
|
265
|
-
_id: string | import("mongoose").Types.ObjectId;
|
|
266
|
-
team1: {
|
|
267
|
-
name: string;
|
|
268
|
-
teamId: string | import("mongoose").Types.ObjectId;
|
|
269
|
-
};
|
|
270
|
-
team2: {
|
|
271
|
-
name: string;
|
|
272
|
-
teamId: string | import("mongoose").Types.ObjectId;
|
|
273
|
-
};
|
|
274
|
-
score: {
|
|
275
|
-
team1: number | null;
|
|
276
|
-
team2: number | null;
|
|
277
|
-
};
|
|
278
|
-
stage: string;
|
|
279
|
-
endDate?: Date | null | undefined;
|
|
280
181
|
startingDate?: Date | null | undefined;
|
|
281
|
-
additionalTag?: string | undefined;
|
|
282
|
-
winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
|
|
283
182
|
prediction?: {
|
|
284
183
|
score: {
|
|
285
184
|
team1: number | null;
|
|
@@ -293,10 +192,12 @@ export declare const matchRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
293
192
|
team1: {
|
|
294
193
|
name: string;
|
|
295
194
|
teamId: string | import("mongoose").Types.ObjectId;
|
|
195
|
+
picture?: string | undefined;
|
|
296
196
|
};
|
|
297
197
|
team2: {
|
|
298
198
|
name: string;
|
|
299
199
|
teamId: string | import("mongoose").Types.ObjectId;
|
|
200
|
+
picture?: string | undefined;
|
|
300
201
|
};
|
|
301
202
|
score: {
|
|
302
203
|
team1: number | null;
|
|
@@ -304,9 +205,9 @@ export declare const matchRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
304
205
|
};
|
|
305
206
|
stage: string;
|
|
306
207
|
endDate?: Date | null | undefined;
|
|
307
|
-
startingDate?: Date | null | undefined;
|
|
308
208
|
additionalTag?: string | undefined;
|
|
309
209
|
winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
|
|
210
|
+
startingDate?: Date | null | undefined;
|
|
310
211
|
prediction?: {
|
|
311
212
|
score: {
|
|
312
213
|
team1: number | null;
|
|
@@ -329,8 +230,10 @@ export declare const matchRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
329
230
|
input: {
|
|
330
231
|
tournamentId: string | import("mongoose").Types.ObjectId;
|
|
331
232
|
matchId: string | import("mongoose").Types.ObjectId;
|
|
332
|
-
|
|
333
|
-
|
|
233
|
+
finalScore?: {
|
|
234
|
+
team1: number;
|
|
235
|
+
team2: number;
|
|
236
|
+
} | undefined;
|
|
334
237
|
};
|
|
335
238
|
output: {
|
|
336
239
|
message: string;
|
|
@@ -340,10 +243,12 @@ export declare const matchRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
340
243
|
team1: {
|
|
341
244
|
name: string;
|
|
342
245
|
teamId: string | import("mongoose").Types.ObjectId;
|
|
246
|
+
picture?: string | undefined;
|
|
343
247
|
};
|
|
344
248
|
team2: {
|
|
345
249
|
name: string;
|
|
346
250
|
teamId: string | import("mongoose").Types.ObjectId;
|
|
251
|
+
picture?: string | undefined;
|
|
347
252
|
};
|
|
348
253
|
score: {
|
|
349
254
|
team1: number | null;
|
|
@@ -351,9 +256,9 @@ export declare const matchRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
351
256
|
};
|
|
352
257
|
stage: string;
|
|
353
258
|
endDate?: Date | null | undefined;
|
|
354
|
-
startingDate?: Date | null | undefined;
|
|
355
259
|
additionalTag?: string | undefined;
|
|
356
260
|
winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
|
|
261
|
+
startingDate?: Date | null | undefined;
|
|
357
262
|
prediction?: {
|
|
358
263
|
score: {
|
|
359
264
|
team1: number | null;
|
|
@@ -367,10 +272,12 @@ export declare const matchRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
367
272
|
team1: {
|
|
368
273
|
name: string;
|
|
369
274
|
teamId: string | import("mongoose").Types.ObjectId;
|
|
275
|
+
picture?: string | undefined;
|
|
370
276
|
};
|
|
371
277
|
team2: {
|
|
372
278
|
name: string;
|
|
373
279
|
teamId: string | import("mongoose").Types.ObjectId;
|
|
280
|
+
picture?: string | undefined;
|
|
374
281
|
};
|
|
375
282
|
score: {
|
|
376
283
|
team1: number | null;
|
|
@@ -378,9 +285,9 @@ export declare const matchRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
378
285
|
};
|
|
379
286
|
stage: string;
|
|
380
287
|
endDate?: Date | null | undefined;
|
|
381
|
-
startingDate?: Date | null | undefined;
|
|
382
288
|
additionalTag?: string | undefined;
|
|
383
289
|
winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
|
|
290
|
+
startingDate?: Date | null | undefined;
|
|
384
291
|
prediction?: {
|
|
385
292
|
score: {
|
|
386
293
|
team1: number | null;
|
|
@@ -409,71 +316,39 @@ export declare const matchRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
409
316
|
success: boolean;
|
|
410
317
|
data?: {
|
|
411
318
|
status: import("@lyxa.ai/core/dist/utilities/enum").Status;
|
|
412
|
-
|
|
413
|
-
|
|
319
|
+
name: string;
|
|
320
|
+
_id?: string | import("mongoose").Types.ObjectId | undefined;
|
|
414
321
|
createdAt?: Date | null | undefined;
|
|
415
322
|
startDate?: Date | null | undefined;
|
|
416
323
|
endDate?: Date | null | undefined;
|
|
417
324
|
updatedAt?: Date | null | undefined;
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
};
|
|
428
|
-
score: {
|
|
429
|
-
team1: number | null;
|
|
430
|
-
team2: number | null;
|
|
431
|
-
};
|
|
432
|
-
stage: string;
|
|
433
|
-
endDate?: Date | null | undefined;
|
|
434
|
-
startingDate?: Date | null | undefined;
|
|
435
|
-
additionalTag?: string | undefined;
|
|
436
|
-
winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
|
|
437
|
-
}[] | undefined;
|
|
438
|
-
teams?: {
|
|
439
|
-
name: string;
|
|
440
|
-
_id: string | import("mongoose").Types.ObjectId;
|
|
441
|
-
picture?: string | null | undefined;
|
|
442
|
-
}[] | undefined;
|
|
325
|
+
tag?: import("../tournament.types").TournamentTag | undefined;
|
|
326
|
+
reward?: {
|
|
327
|
+
type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.FREE_DELIVERY;
|
|
328
|
+
} | {
|
|
329
|
+
type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.COUPON;
|
|
330
|
+
maxDiscountPerOrder?: number | null | undefined;
|
|
331
|
+
couponNamePrefix?: string | undefined;
|
|
332
|
+
percentage?: number | undefined;
|
|
333
|
+
} | undefined;
|
|
443
334
|
} | {
|
|
444
335
|
documents: {
|
|
445
336
|
status: import("@lyxa.ai/core/dist/utilities/enum").Status;
|
|
446
|
-
|
|
447
|
-
|
|
337
|
+
name: string;
|
|
338
|
+
_id?: string | import("mongoose").Types.ObjectId | undefined;
|
|
448
339
|
createdAt?: Date | null | undefined;
|
|
449
340
|
startDate?: Date | null | undefined;
|
|
450
341
|
endDate?: Date | null | undefined;
|
|
451
342
|
updatedAt?: Date | null | undefined;
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
};
|
|
462
|
-
score: {
|
|
463
|
-
team1: number | null;
|
|
464
|
-
team2: number | null;
|
|
465
|
-
};
|
|
466
|
-
stage: string;
|
|
467
|
-
endDate?: Date | null | undefined;
|
|
468
|
-
startingDate?: Date | null | undefined;
|
|
469
|
-
additionalTag?: string | undefined;
|
|
470
|
-
winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
|
|
471
|
-
}[] | undefined;
|
|
472
|
-
teams?: {
|
|
473
|
-
name: string;
|
|
474
|
-
_id: string | import("mongoose").Types.ObjectId;
|
|
475
|
-
picture?: string | null | undefined;
|
|
476
|
-
}[] | undefined;
|
|
343
|
+
tag?: import("../tournament.types").TournamentTag | undefined;
|
|
344
|
+
reward?: {
|
|
345
|
+
type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.FREE_DELIVERY;
|
|
346
|
+
} | {
|
|
347
|
+
type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.COUPON;
|
|
348
|
+
maxDiscountPerOrder?: number | null | undefined;
|
|
349
|
+
couponNamePrefix?: string | undefined;
|
|
350
|
+
percentage?: number | undefined;
|
|
351
|
+
} | undefined;
|
|
477
352
|
}[];
|
|
478
353
|
metadata?: {
|
|
479
354
|
page: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"match.router.d.ts","sourceRoot":"/","sources":["modules/tournament/match/match.router.ts"],"names":[],"mappings":"AAiBA,eAAO,MAAM,WAAW
|
|
1
|
+
{"version":3,"file":"match.router.d.ts","sourceRoot":"/","sources":["modules/tournament/match/match.router.ts"],"names":[],"mappings":"AAiBA,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkDtB,CAAC"}
|
|
@@ -31,13 +31,6 @@ exports.matchRouter = (0, trpc_1.createTRPCRouter)({
|
|
|
31
31
|
const result = await match_service_1.matchService.start(input);
|
|
32
32
|
return (0, response_1.response)('Match started successfully', result);
|
|
33
33
|
})),
|
|
34
|
-
updateScore: (0, auth_2.createAuthenticatedProcedure)({ entityTypes: [auth_1.AuthEntityType.CRM] })
|
|
35
|
-
.input(match_validation_1.UpdateMatchScoreSchema)
|
|
36
|
-
.output(match_validation_1.TournamentMatchResponseSchema)
|
|
37
|
-
.mutation(async ({ input }) => error_handler_1.ErrorHandler.wrapAsync(async () => {
|
|
38
|
-
const result = await match_service_1.matchService.updateScore(input);
|
|
39
|
-
return (0, response_1.response)('Match score updated successfully', result);
|
|
40
|
-
})),
|
|
41
34
|
end: (0, auth_2.createAuthenticatedProcedure)({ entityTypes: [auth_1.AuthEntityType.CRM] })
|
|
42
35
|
.input(match_validation_1.EndTournamentMatchSchema)
|
|
43
36
|
.output(match_validation_1.TournamentMatchResponseSchema)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"match.router.js","sourceRoot":"/","sources":["modules/tournament/match/match.router.ts"],"names":[],"mappings":";;;AAAA,4DAAsF;AACtF,4DAAmE;AACnE,6EAAkG;AAClG,8EAA0E;AAC1E,oEAAiE;AACjE,mDAA0D;AAC1D,yDAQ4B;AAC5B,mEAA6E;AAEhE,QAAA,WAAW,GAAG,IAAA,uBAAgB,EAAC;IAC3C,GAAG,EAAE,IAAA,mCAA4B,EAAC,EAAE,WAAW,EAAE,CAAC,qBAAc,CAAC,GAAG,CAAC,EAAE,CAAC;SACtE,KAAK,CAAC,6CAA0B,CAAC;SACjC,MAAM,CAAC,kDAA8B,CAAC;SACtC,QAAQ,CAAC,KAAK,EAAE,EAAE,KAAK,EAAE,EAAE,EAAE,CAC7B,4BAAY,CAAC,SAAS,CAAC,KAAK,IAAI,EAAE;QACjC,MAAM,MAAM,GAAG,MAAM,4BAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;QACxC,OAAO,IAAA,mBAAQ,EAAC,4BAA4B,EAAE,MAAM,CAAC,CAAC;IACvD,CAAC,CAAC,CACF;IAEF,MAAM,EAAE,sBAAe;SACrB,KAAK,CAAC,6CAA0B,CAAC;SACjC,MAAM,CAAC,oDAAiC,CAAC;SACzC,KAAK,CAAC,KAAK,EAAE,EAAE,KAAK,EAAE,EAAE,EAAE,CAC1B,4BAAY,CAAC,SAAS,CAAC,KAAK,IAAI,EAAE;QACjC,MAAM,MAAM,GAAG,MAAM,4BAAO,CAAC,MAAM,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC;QACxD,OAAO,IAAA,mBAAQ,EAAC,8BAA8B,EAAE,MAAM,CAAC,CAAC;IACzD,CAAC,CAAC,CACF;IAEF,KAAK,EAAE,IAAA,mCAA4B,EAAC,EAAE,WAAW,EAAE,CAAC,qBAAc,CAAC,GAAG,CAAC,EAAE,CAAC;SACxE,KAAK,CAAC,6CAA0B,CAAC;SACjC,MAAM,CAAC,gDAA6B,CAAC;SACrC,QAAQ,CAAC,KAAK,EAAE,EAAE,KAAK,EAAE,EAAE,EAAE,CAC7B,4BAAY,CAAC,SAAS,CAAC,KAAK,IAAI,EAAE;QACjC,MAAM,MAAM,GAAG,MAAM,4BAAO,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;QAC1C,OAAO,IAAA,mBAAQ,EAAC,4BAA4B,EAAE,MAAM,CAAC,CAAC;IACvD,CAAC,CAAC,CACF;IAEF,
|
|
1
|
+
{"version":3,"file":"match.router.js","sourceRoot":"/","sources":["modules/tournament/match/match.router.ts"],"names":[],"mappings":";;;AAAA,4DAAsF;AACtF,4DAAmE;AACnE,6EAAkG;AAClG,8EAA0E;AAC1E,oEAAiE;AACjE,mDAA0D;AAC1D,yDAQ4B;AAC5B,mEAA6E;AAEhE,QAAA,WAAW,GAAG,IAAA,uBAAgB,EAAC;IAC3C,GAAG,EAAE,IAAA,mCAA4B,EAAC,EAAE,WAAW,EAAE,CAAC,qBAAc,CAAC,GAAG,CAAC,EAAE,CAAC;SACtE,KAAK,CAAC,6CAA0B,CAAC;SACjC,MAAM,CAAC,kDAA8B,CAAC;SACtC,QAAQ,CAAC,KAAK,EAAE,EAAE,KAAK,EAAE,EAAE,EAAE,CAC7B,4BAAY,CAAC,SAAS,CAAC,KAAK,IAAI,EAAE;QACjC,MAAM,MAAM,GAAG,MAAM,4BAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;QACxC,OAAO,IAAA,mBAAQ,EAAC,4BAA4B,EAAE,MAAM,CAAC,CAAC;IACvD,CAAC,CAAC,CACF;IAEF,MAAM,EAAE,sBAAe;SACrB,KAAK,CAAC,6CAA0B,CAAC;SACjC,MAAM,CAAC,oDAAiC,CAAC;SACzC,KAAK,CAAC,KAAK,EAAE,EAAE,KAAK,EAAE,EAAE,EAAE,CAC1B,4BAAY,CAAC,SAAS,CAAC,KAAK,IAAI,EAAE;QACjC,MAAM,MAAM,GAAG,MAAM,4BAAO,CAAC,MAAM,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC;QACxD,OAAO,IAAA,mBAAQ,EAAC,8BAA8B,EAAE,MAAM,CAAC,CAAC;IACzD,CAAC,CAAC,CACF;IAEF,KAAK,EAAE,IAAA,mCAA4B,EAAC,EAAE,WAAW,EAAE,CAAC,qBAAc,CAAC,GAAG,CAAC,EAAE,CAAC;SACxE,KAAK,CAAC,6CAA0B,CAAC;SACjC,MAAM,CAAC,gDAA6B,CAAC;SACrC,QAAQ,CAAC,KAAK,EAAE,EAAE,KAAK,EAAE,EAAE,EAAE,CAC7B,4BAAY,CAAC,SAAS,CAAC,KAAK,IAAI,EAAE;QACjC,MAAM,MAAM,GAAG,MAAM,4BAAO,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;QAC1C,OAAO,IAAA,mBAAQ,EAAC,4BAA4B,EAAE,MAAM,CAAC,CAAC;IACvD,CAAC,CAAC,CACF;IAEF,GAAG,EAAE,IAAA,mCAA4B,EAAC,EAAE,WAAW,EAAE,CAAC,qBAAc,CAAC,GAAG,CAAC,EAAE,CAAC;SACtE,KAAK,CAAC,2CAAwB,CAAC;SAC/B,MAAM,CAAC,gDAA6B,CAAC;SACrC,QAAQ,CAAC,KAAK,EAAE,EAAE,KAAK,EAAE,EAAE,EAAE,CAC7B,4BAAY,CAAC,SAAS,CAAC,KAAK,IAAI,EAAE;QACjC,MAAM,MAAM,GAAG,MAAM,4BAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;QACxC,OAAO,IAAA,mBAAQ,EAAC,0BAA0B,EAAE,MAAM,CAAC,CAAC;IACrD,CAAC,CAAC,CACF;IAEF,MAAM,EAAE,IAAA,mCAA4B,EAAC,EAAE,WAAW,EAAE,CAAC,qBAAc,CAAC,GAAG,CAAC,EAAE,CAAC;SACzE,KAAK,CAAC,2CAAwB,CAAC,IAAI,CAAC,EAAE,YAAY,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC;SAC3E,MAAM,CAAC,kDAA8B,CAAC;SACtC,QAAQ,CAAC,KAAK,EAAE,EAAE,KAAK,EAAE,EAAE,EAAE,CAC7B,4BAAY,CAAC,SAAS,CAAC,KAAK,IAAI,EAAE;QACjC,MAAM,MAAM,GAAG,MAAM,4BAAO,CAAC,MAAM,CAAC,KAAK,CAAC,YAAY,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC;QACvE,OAAO,IAAA,mBAAQ,EAAC,4BAA4B,EAAE,MAAM,CAAC,CAAC;IACvD,CAAC,CAAC,CACF;CACF,CAAC,CAAC","sourcesContent":["import { createTRPCRouter, publicProcedure } from '@lyxa.ai/core/dist/libraries/trpc';\nimport { AuthEntityType } from '@lyxa.ai/core/dist/libraries/auth';\nimport { createAuthenticatedProcedure } from '@lyxa.ai/core/dist/libraries/trpc/middlewares/auth';\nimport { ErrorHandler } from '@lyxa.ai/core/dist/utilities/error-handler';\nimport { response } from '@lyxa.ai/core/dist/utilities/response';\nimport { matchService as service } from './match.service';\nimport {\n\tAddTournamentMatchesSchema,\n\tEndTournamentMatchSchema,\n\tGetTournamentMatchesSchema,\n\tStartTournamentMatchSchema,\n\tTournamentMatchListResponseSchema,\n\tTournamentMatchResponseSchema,\n\tUpdateMatchScoreSchema,\n} from './match.validation';\nimport { TournamentConfigResponseSchema } from '../config/config.validation';\n\nexport const matchRouter = createTRPCRouter({\n\tadd: createAuthenticatedProcedure({ entityTypes: [AuthEntityType.CRM] })\n\t\t.input(AddTournamentMatchesSchema)\n\t\t.output(TournamentConfigResponseSchema)\n\t\t.mutation(async ({ input }) =>\n\t\t\tErrorHandler.wrapAsync(async () => {\n\t\t\t\tconst result = await service.add(input);\n\t\t\t\treturn response('Matches added successfully', result);\n\t\t\t})\n\t\t),\n\n\tgetAll: publicProcedure\n\t\t.input(GetTournamentMatchesSchema)\n\t\t.output(TournamentMatchListResponseSchema)\n\t\t.query(async ({ input }) =>\n\t\t\tErrorHandler.wrapAsync(async () => {\n\t\t\t\tconst result = await service.getAll(input.tournamentId);\n\t\t\t\treturn response('Matches fetched successfully', result);\n\t\t\t})\n\t\t),\n\n\tstart: createAuthenticatedProcedure({ entityTypes: [AuthEntityType.CRM] })\n\t\t.input(StartTournamentMatchSchema)\n\t\t.output(TournamentMatchResponseSchema)\n\t\t.mutation(async ({ input }) =>\n\t\t\tErrorHandler.wrapAsync(async () => {\n\t\t\t\tconst result = await service.start(input);\n\t\t\t\treturn response('Match started successfully', result);\n\t\t\t})\n\t\t),\n\n\tend: createAuthenticatedProcedure({ entityTypes: [AuthEntityType.CRM] })\n\t\t.input(EndTournamentMatchSchema)\n\t\t.output(TournamentMatchResponseSchema)\n\t\t.mutation(async ({ input }) =>\n\t\t\tErrorHandler.wrapAsync(async () => {\n\t\t\t\tconst result = await service.end(input);\n\t\t\t\treturn response('Match ended successfully', result);\n\t\t\t})\n\t\t),\n\n\tdelete: createAuthenticatedProcedure({ entityTypes: [AuthEntityType.CRM] })\n\t\t.input(EndTournamentMatchSchema.pick({ tournamentId: true, matchId: true }))\n\t\t.output(TournamentConfigResponseSchema)\n\t\t.mutation(async ({ input }) =>\n\t\t\tErrorHandler.wrapAsync(async () => {\n\t\t\t\tconst result = await service.delete(input.tournamentId, input.matchId);\n\t\t\t\treturn response('Match deleted successfully', result);\n\t\t\t})\n\t\t),\n});\n"]}
|
|
@@ -1,27 +1,16 @@
|
|
|
1
1
|
import { mongoose } from '@typegoose/typegoose';
|
|
2
|
-
import { AddTournamentMatchesInputDTO, EndTournamentMatchInputDTO, StartTournamentMatchInputDTO, TournamentMatchOutputDTO
|
|
2
|
+
import { AddTournamentMatchesInputDTO, EndTournamentMatchInputDTO, StartTournamentMatchInputDTO, TournamentMatchOutputDTO } from './match.validation';
|
|
3
3
|
import { TournamentConfigOutputDTO } from '../config/config.validation';
|
|
4
4
|
export declare class MatchService {
|
|
5
5
|
private repository;
|
|
6
|
-
private notificationScheduler;
|
|
7
|
-
private notificationService;
|
|
8
|
-
private participantService;
|
|
9
|
-
private predictionRepository;
|
|
10
|
-
private rewardService;
|
|
11
6
|
constructor();
|
|
12
7
|
private getTournament;
|
|
13
8
|
private getMatch;
|
|
14
|
-
private validateWinner;
|
|
15
9
|
private resolveMatchTeams;
|
|
16
10
|
private applyMatchUpdate;
|
|
17
|
-
handleMatchEnded(tournamentId: mongoose.Types.ObjectId, matchId: mongoose.Types.ObjectId, finalScore: {
|
|
18
|
-
team1: number;
|
|
19
|
-
team2: number;
|
|
20
|
-
}): Promise<void>;
|
|
21
11
|
add(input: AddTournamentMatchesInputDTO): Promise<TournamentConfigOutputDTO>;
|
|
22
12
|
getAll(tournamentId: mongoose.Types.ObjectId): Promise<TournamentMatchOutputDTO[]>;
|
|
23
13
|
start(input: StartTournamentMatchInputDTO): Promise<TournamentMatchOutputDTO>;
|
|
24
|
-
updateScore(input: UpdateMatchScoreInputDTO): Promise<TournamentMatchOutputDTO>;
|
|
25
14
|
end(input: EndTournamentMatchInputDTO): Promise<TournamentMatchOutputDTO>;
|
|
26
15
|
delete(tournamentId: mongoose.Types.ObjectId, matchId: mongoose.Types.ObjectId): Promise<TournamentConfigOutputDTO>;
|
|
27
16
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"match.service.d.ts","sourceRoot":"/","sources":["modules/tournament/match/match.service.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"match.service.d.ts","sourceRoot":"/","sources":["modules/tournament/match/match.service.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,QAAQ,EAAC,MAAM,sBAAsB,CAAC;AAG9C,OAAO,EACH,4BAA4B,EAC5B,0BAA0B,EAC1B,4BAA4B,EAC5B,wBAAwB,EAC3B,MAAM,oBAAoB,CAAC;AAG5B,OAAO,EAAC,yBAAyB,EAAC,MAAM,6BAA6B,CAAC;AAKtE,qBACa,YAAY;IACrB,OAAO,CAAC,UAAU,CAA4B;;YAMhC,aAAa;IAM3B,OAAO,CAAC,QAAQ;IAMhB,OAAO,CAAC,iBAAiB;YAQX,gBAAgB;IAYjB,GAAG,CAAC,KAAK,EAAE,4BAA4B,GAAG,OAAO,CAAC,yBAAyB,CAAC;IAc5E,MAAM,CAAC,YAAY,EAAE,QAAQ,CAAC,KAAK,CAAC,QAAQ,GAAG,OAAO,CAAC,wBAAwB,EAAE,CAAC;IAKlF,KAAK,CAAC,KAAK,EAAE,4BAA4B,GAAG,OAAO,CAAC,wBAAwB,CAAC;IAS7E,GAAG,CAAC,KAAK,EAAE,0BAA0B,GAAG,OAAO,CAAC,wBAAwB,CAAC;IAsBzE,MAAM,CAAC,YAAY,EAAE,QAAQ,CAAC,KAAK,CAAC,QAAQ,EAAE,OAAO,EAAE,QAAQ,CAAC,KAAK,CAAC,QAAQ,GAAG,OAAO,CAAC,yBAAyB,CAAC;CAMnI;AAED,eAAO,MAAM,YAAY,cAA8B,CAAC"}
|