@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
package/dist/types/index.d.ts
CHANGED
|
@@ -7527,37 +7527,26 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
|
|
|
7527
7527
|
meta: object;
|
|
7528
7528
|
}>;
|
|
7529
7529
|
getActive: import("@trpc/server").TRPCQueryProcedure<{
|
|
7530
|
-
input:
|
|
7530
|
+
input: {
|
|
7531
|
+
latitude?: number | undefined;
|
|
7532
|
+
longitude?: number | undefined;
|
|
7533
|
+
};
|
|
7531
7534
|
output: {
|
|
7532
7535
|
message: string;
|
|
7533
7536
|
success: boolean;
|
|
7534
7537
|
data?: {
|
|
7535
|
-
status: import("@lyxa.ai/core/dist/utilities/enum").LimitedTimeOfferCampaignStatus;
|
|
7536
7538
|
_id: string | import("mongoose").Types.ObjectId;
|
|
7537
|
-
campaignNumber: number;
|
|
7538
|
-
createdAt?: Date | null | undefined;
|
|
7539
|
-
startDate?: Date | null | undefined;
|
|
7540
|
-
endDate?: Date | null | undefined;
|
|
7541
|
-
updatedAt?: Date | null | undefined;
|
|
7542
7539
|
title?: string | undefined;
|
|
7543
|
-
|
|
7544
|
-
|
|
7545
|
-
|
|
7546
|
-
archivedAt?: Date | null | undefined;
|
|
7540
|
+
subtitle?: string | undefined;
|
|
7541
|
+
startTime?: Date | null | undefined;
|
|
7542
|
+
endTime?: Date | null | undefined;
|
|
7547
7543
|
} | {
|
|
7548
7544
|
documents: ({
|
|
7549
|
-
status: import("@lyxa.ai/core/dist/utilities/enum").LimitedTimeOfferCampaignStatus;
|
|
7550
7545
|
_id: string | import("mongoose").Types.ObjectId;
|
|
7551
|
-
campaignNumber: number;
|
|
7552
|
-
createdAt?: Date | null | undefined;
|
|
7553
|
-
startDate?: Date | null | undefined;
|
|
7554
|
-
endDate?: Date | null | undefined;
|
|
7555
|
-
updatedAt?: Date | null | undefined;
|
|
7556
7546
|
title?: string | undefined;
|
|
7557
|
-
|
|
7558
|
-
|
|
7559
|
-
|
|
7560
|
-
archivedAt?: Date | null | undefined;
|
|
7547
|
+
subtitle?: string | undefined;
|
|
7548
|
+
startTime?: Date | null | undefined;
|
|
7549
|
+
endTime?: Date | null | undefined;
|
|
7561
7550
|
} | null)[];
|
|
7562
7551
|
metadata?: {
|
|
7563
7552
|
page: number;
|
|
@@ -7975,81 +7964,58 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
|
|
|
7975
7964
|
}, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
|
|
7976
7965
|
create: import("@trpc/server").TRPCMutationProcedure<{
|
|
7977
7966
|
input: {
|
|
7967
|
+
name: string;
|
|
7978
7968
|
startDate: string | Date;
|
|
7979
7969
|
endDate: string | Date;
|
|
7980
|
-
tag:
|
|
7970
|
+
tag: import("./modules/tournament/tournament.types").TournamentTag;
|
|
7981
7971
|
status?: import("@lyxa.ai/core/dist/utilities/enum").Status | undefined;
|
|
7972
|
+
reward?: {
|
|
7973
|
+
type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.FREE_DELIVERY;
|
|
7974
|
+
} | {
|
|
7975
|
+
type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.COUPON;
|
|
7976
|
+
couponNamePrefix: string;
|
|
7977
|
+
percentage: number;
|
|
7978
|
+
maxDiscountPerOrder?: number | null | undefined;
|
|
7979
|
+
} | undefined;
|
|
7982
7980
|
};
|
|
7983
7981
|
output: {
|
|
7984
7982
|
message: string;
|
|
7985
7983
|
success: boolean;
|
|
7986
7984
|
data?: {
|
|
7987
7985
|
status: import("@lyxa.ai/core/dist/utilities/enum").Status;
|
|
7988
|
-
|
|
7989
|
-
|
|
7986
|
+
name: string;
|
|
7987
|
+
_id?: string | import("mongoose").Types.ObjectId | undefined;
|
|
7990
7988
|
createdAt?: Date | null | undefined;
|
|
7991
7989
|
startDate?: Date | null | undefined;
|
|
7992
7990
|
endDate?: Date | null | undefined;
|
|
7993
7991
|
updatedAt?: Date | null | undefined;
|
|
7994
|
-
|
|
7995
|
-
|
|
7996
|
-
|
|
7997
|
-
|
|
7998
|
-
|
|
7999
|
-
|
|
8000
|
-
|
|
8001
|
-
|
|
8002
|
-
|
|
8003
|
-
};
|
|
8004
|
-
score: {
|
|
8005
|
-
team1: number | null;
|
|
8006
|
-
team2: number | null;
|
|
8007
|
-
};
|
|
8008
|
-
stage: string;
|
|
8009
|
-
endDate?: Date | null | undefined;
|
|
8010
|
-
startingDate?: Date | null | undefined;
|
|
8011
|
-
additionalTag?: string | undefined;
|
|
8012
|
-
winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
|
|
8013
|
-
}[] | undefined;
|
|
8014
|
-
teams?: {
|
|
8015
|
-
name: string;
|
|
8016
|
-
_id: string | import("mongoose").Types.ObjectId;
|
|
8017
|
-
picture?: string | null | undefined;
|
|
8018
|
-
}[] | undefined;
|
|
7992
|
+
tag?: import("./modules/tournament/tournament.types").TournamentTag | undefined;
|
|
7993
|
+
reward?: {
|
|
7994
|
+
type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.FREE_DELIVERY;
|
|
7995
|
+
} | {
|
|
7996
|
+
type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.COUPON;
|
|
7997
|
+
maxDiscountPerOrder?: number | null | undefined;
|
|
7998
|
+
couponNamePrefix?: string | undefined;
|
|
7999
|
+
percentage?: number | undefined;
|
|
8000
|
+
} | undefined;
|
|
8019
8001
|
} | {
|
|
8020
8002
|
documents: {
|
|
8021
8003
|
status: import("@lyxa.ai/core/dist/utilities/enum").Status;
|
|
8022
|
-
|
|
8023
|
-
|
|
8004
|
+
name: string;
|
|
8005
|
+
_id?: string | import("mongoose").Types.ObjectId | undefined;
|
|
8024
8006
|
createdAt?: Date | null | undefined;
|
|
8025
8007
|
startDate?: Date | null | undefined;
|
|
8026
8008
|
endDate?: Date | null | undefined;
|
|
8027
8009
|
updatedAt?: Date | null | undefined;
|
|
8028
|
-
|
|
8029
|
-
|
|
8030
|
-
|
|
8031
|
-
|
|
8032
|
-
|
|
8033
|
-
|
|
8034
|
-
|
|
8035
|
-
|
|
8036
|
-
|
|
8037
|
-
};
|
|
8038
|
-
score: {
|
|
8039
|
-
team1: number | null;
|
|
8040
|
-
team2: number | null;
|
|
8041
|
-
};
|
|
8042
|
-
stage: string;
|
|
8043
|
-
endDate?: Date | null | undefined;
|
|
8044
|
-
startingDate?: Date | null | undefined;
|
|
8045
|
-
additionalTag?: string | undefined;
|
|
8046
|
-
winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
|
|
8047
|
-
}[] | undefined;
|
|
8048
|
-
teams?: {
|
|
8049
|
-
name: string;
|
|
8050
|
-
_id: string | import("mongoose").Types.ObjectId;
|
|
8051
|
-
picture?: string | null | undefined;
|
|
8052
|
-
}[] | undefined;
|
|
8010
|
+
tag?: import("./modules/tournament/tournament.types").TournamentTag | undefined;
|
|
8011
|
+
reward?: {
|
|
8012
|
+
type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.FREE_DELIVERY;
|
|
8013
|
+
} | {
|
|
8014
|
+
type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.COUPON;
|
|
8015
|
+
maxDiscountPerOrder?: number | null | undefined;
|
|
8016
|
+
couponNamePrefix?: string | undefined;
|
|
8017
|
+
percentage?: number | undefined;
|
|
8018
|
+
} | undefined;
|
|
8053
8019
|
}[];
|
|
8054
8020
|
metadata?: {
|
|
8055
8021
|
page: number;
|
|
@@ -8068,71 +8034,37 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
|
|
|
8068
8034
|
success: boolean;
|
|
8069
8035
|
data?: {
|
|
8070
8036
|
status: import("@lyxa.ai/core/dist/utilities/enum").Status;
|
|
8071
|
-
|
|
8072
|
-
|
|
8037
|
+
name: string;
|
|
8038
|
+
_id?: string | import("mongoose").Types.ObjectId | undefined;
|
|
8073
8039
|
createdAt?: Date | null | undefined;
|
|
8074
8040
|
startDate?: Date | null | undefined;
|
|
8075
8041
|
endDate?: Date | null | undefined;
|
|
8076
8042
|
updatedAt?: Date | null | undefined;
|
|
8077
|
-
|
|
8078
|
-
|
|
8079
|
-
|
|
8080
|
-
|
|
8081
|
-
|
|
8082
|
-
|
|
8083
|
-
|
|
8084
|
-
|
|
8085
|
-
teamId: string | import("mongoose").Types.ObjectId;
|
|
8086
|
-
};
|
|
8087
|
-
score: {
|
|
8088
|
-
team1: number | null;
|
|
8089
|
-
team2: number | null;
|
|
8090
|
-
};
|
|
8091
|
-
stage: string;
|
|
8092
|
-
endDate?: Date | null | undefined;
|
|
8093
|
-
startingDate?: Date | null | undefined;
|
|
8094
|
-
additionalTag?: string | undefined;
|
|
8095
|
-
winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
|
|
8096
|
-
}[] | undefined;
|
|
8097
|
-
teams?: {
|
|
8098
|
-
name: string;
|
|
8099
|
-
_id: string | import("mongoose").Types.ObjectId;
|
|
8100
|
-
picture?: string | null | undefined;
|
|
8101
|
-
}[] | undefined;
|
|
8043
|
+
tag?: import("./modules/tournament/tournament.types").TournamentTag | undefined;
|
|
8044
|
+
reward?: {
|
|
8045
|
+
type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.FREE_DELIVERY;
|
|
8046
|
+
} | {
|
|
8047
|
+
type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.COUPON;
|
|
8048
|
+
maxDiscountPerOrder?: number | null | undefined;
|
|
8049
|
+
percentage?: number | undefined;
|
|
8050
|
+
} | undefined;
|
|
8102
8051
|
}[] | {
|
|
8103
8052
|
documents: {
|
|
8104
8053
|
status: import("@lyxa.ai/core/dist/utilities/enum").Status;
|
|
8105
|
-
|
|
8106
|
-
|
|
8054
|
+
name: string;
|
|
8055
|
+
_id?: string | import("mongoose").Types.ObjectId | undefined;
|
|
8107
8056
|
createdAt?: Date | null | undefined;
|
|
8108
8057
|
startDate?: Date | null | undefined;
|
|
8109
8058
|
endDate?: Date | null | undefined;
|
|
8110
8059
|
updatedAt?: Date | null | undefined;
|
|
8111
|
-
|
|
8112
|
-
|
|
8113
|
-
|
|
8114
|
-
|
|
8115
|
-
|
|
8116
|
-
|
|
8117
|
-
|
|
8118
|
-
|
|
8119
|
-
teamId: string | import("mongoose").Types.ObjectId;
|
|
8120
|
-
};
|
|
8121
|
-
score: {
|
|
8122
|
-
team1: number | null;
|
|
8123
|
-
team2: number | null;
|
|
8124
|
-
};
|
|
8125
|
-
stage: string;
|
|
8126
|
-
endDate?: Date | null | undefined;
|
|
8127
|
-
startingDate?: Date | null | undefined;
|
|
8128
|
-
additionalTag?: string | undefined;
|
|
8129
|
-
winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
|
|
8130
|
-
}[] | undefined;
|
|
8131
|
-
teams?: {
|
|
8132
|
-
name: string;
|
|
8133
|
-
_id: string | import("mongoose").Types.ObjectId;
|
|
8134
|
-
picture?: string | null | undefined;
|
|
8135
|
-
}[] | undefined;
|
|
8060
|
+
tag?: import("./modules/tournament/tournament.types").TournamentTag | undefined;
|
|
8061
|
+
reward?: {
|
|
8062
|
+
type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.FREE_DELIVERY;
|
|
8063
|
+
} | {
|
|
8064
|
+
type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.COUPON;
|
|
8065
|
+
maxDiscountPerOrder?: number | null | undefined;
|
|
8066
|
+
percentage?: number | undefined;
|
|
8067
|
+
} | undefined;
|
|
8136
8068
|
}[][];
|
|
8137
8069
|
metadata?: {
|
|
8138
8070
|
page: number;
|
|
@@ -8153,71 +8085,39 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
|
|
|
8153
8085
|
success: boolean;
|
|
8154
8086
|
data?: {
|
|
8155
8087
|
status: import("@lyxa.ai/core/dist/utilities/enum").Status;
|
|
8156
|
-
|
|
8157
|
-
|
|
8088
|
+
name: string;
|
|
8089
|
+
_id?: string | import("mongoose").Types.ObjectId | undefined;
|
|
8158
8090
|
createdAt?: Date | null | undefined;
|
|
8159
8091
|
startDate?: Date | null | undefined;
|
|
8160
8092
|
endDate?: Date | null | undefined;
|
|
8161
8093
|
updatedAt?: Date | null | undefined;
|
|
8162
|
-
|
|
8163
|
-
|
|
8164
|
-
|
|
8165
|
-
|
|
8166
|
-
|
|
8167
|
-
|
|
8168
|
-
|
|
8169
|
-
|
|
8170
|
-
|
|
8171
|
-
};
|
|
8172
|
-
score: {
|
|
8173
|
-
team1: number | null;
|
|
8174
|
-
team2: number | null;
|
|
8175
|
-
};
|
|
8176
|
-
stage: string;
|
|
8177
|
-
endDate?: Date | null | undefined;
|
|
8178
|
-
startingDate?: Date | null | undefined;
|
|
8179
|
-
additionalTag?: string | undefined;
|
|
8180
|
-
winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
|
|
8181
|
-
}[] | undefined;
|
|
8182
|
-
teams?: {
|
|
8183
|
-
name: string;
|
|
8184
|
-
_id: string | import("mongoose").Types.ObjectId;
|
|
8185
|
-
picture?: string | null | undefined;
|
|
8186
|
-
}[] | undefined;
|
|
8094
|
+
tag?: import("./modules/tournament/tournament.types").TournamentTag | undefined;
|
|
8095
|
+
reward?: {
|
|
8096
|
+
type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.FREE_DELIVERY;
|
|
8097
|
+
} | {
|
|
8098
|
+
type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.COUPON;
|
|
8099
|
+
maxDiscountPerOrder?: number | null | undefined;
|
|
8100
|
+
couponNamePrefix?: string | undefined;
|
|
8101
|
+
percentage?: number | undefined;
|
|
8102
|
+
} | undefined;
|
|
8187
8103
|
} | {
|
|
8188
8104
|
documents: {
|
|
8189
8105
|
status: import("@lyxa.ai/core/dist/utilities/enum").Status;
|
|
8190
|
-
|
|
8191
|
-
|
|
8106
|
+
name: string;
|
|
8107
|
+
_id?: string | import("mongoose").Types.ObjectId | undefined;
|
|
8192
8108
|
createdAt?: Date | null | undefined;
|
|
8193
8109
|
startDate?: Date | null | undefined;
|
|
8194
8110
|
endDate?: Date | null | undefined;
|
|
8195
8111
|
updatedAt?: Date | null | undefined;
|
|
8196
|
-
|
|
8197
|
-
|
|
8198
|
-
|
|
8199
|
-
|
|
8200
|
-
|
|
8201
|
-
|
|
8202
|
-
|
|
8203
|
-
|
|
8204
|
-
|
|
8205
|
-
};
|
|
8206
|
-
score: {
|
|
8207
|
-
team1: number | null;
|
|
8208
|
-
team2: number | null;
|
|
8209
|
-
};
|
|
8210
|
-
stage: string;
|
|
8211
|
-
endDate?: Date | null | undefined;
|
|
8212
|
-
startingDate?: Date | null | undefined;
|
|
8213
|
-
additionalTag?: string | undefined;
|
|
8214
|
-
winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
|
|
8215
|
-
}[] | undefined;
|
|
8216
|
-
teams?: {
|
|
8217
|
-
name: string;
|
|
8218
|
-
_id: string | import("mongoose").Types.ObjectId;
|
|
8219
|
-
picture?: string | null | undefined;
|
|
8220
|
-
}[] | undefined;
|
|
8112
|
+
tag?: import("./modules/tournament/tournament.types").TournamentTag | undefined;
|
|
8113
|
+
reward?: {
|
|
8114
|
+
type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.FREE_DELIVERY;
|
|
8115
|
+
} | {
|
|
8116
|
+
type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.COUPON;
|
|
8117
|
+
maxDiscountPerOrder?: number | null | undefined;
|
|
8118
|
+
couponNamePrefix?: string | undefined;
|
|
8119
|
+
percentage?: number | undefined;
|
|
8120
|
+
} | undefined;
|
|
8221
8121
|
}[];
|
|
8222
8122
|
metadata?: {
|
|
8223
8123
|
page: number;
|
|
@@ -8233,80 +8133,57 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
|
|
|
8233
8133
|
input: {
|
|
8234
8134
|
_id: string | import("mongoose").Types.ObjectId;
|
|
8235
8135
|
status?: import("@lyxa.ai/core/dist/utilities/enum").Status | undefined;
|
|
8136
|
+
name?: string | undefined;
|
|
8236
8137
|
startDate?: string | Date | undefined;
|
|
8237
8138
|
endDate?: string | Date | undefined;
|
|
8238
|
-
tag?:
|
|
8139
|
+
tag?: import("./modules/tournament/tournament.types").TournamentTag | undefined;
|
|
8140
|
+
reward?: {
|
|
8141
|
+
type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.FREE_DELIVERY;
|
|
8142
|
+
} | {
|
|
8143
|
+
type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.COUPON;
|
|
8144
|
+
couponNamePrefix: string;
|
|
8145
|
+
percentage: number;
|
|
8146
|
+
maxDiscountPerOrder?: number | null | undefined;
|
|
8147
|
+
} | undefined;
|
|
8239
8148
|
};
|
|
8240
8149
|
output: {
|
|
8241
8150
|
message: string;
|
|
8242
8151
|
success: boolean;
|
|
8243
8152
|
data?: {
|
|
8244
8153
|
status: import("@lyxa.ai/core/dist/utilities/enum").Status;
|
|
8245
|
-
|
|
8246
|
-
|
|
8154
|
+
name: string;
|
|
8155
|
+
_id?: string | import("mongoose").Types.ObjectId | undefined;
|
|
8247
8156
|
createdAt?: Date | null | undefined;
|
|
8248
8157
|
startDate?: Date | null | undefined;
|
|
8249
8158
|
endDate?: Date | null | undefined;
|
|
8250
8159
|
updatedAt?: Date | null | undefined;
|
|
8251
|
-
|
|
8252
|
-
|
|
8253
|
-
|
|
8254
|
-
|
|
8255
|
-
|
|
8256
|
-
|
|
8257
|
-
|
|
8258
|
-
|
|
8259
|
-
|
|
8260
|
-
};
|
|
8261
|
-
score: {
|
|
8262
|
-
team1: number | null;
|
|
8263
|
-
team2: number | null;
|
|
8264
|
-
};
|
|
8265
|
-
stage: string;
|
|
8266
|
-
endDate?: Date | null | undefined;
|
|
8267
|
-
startingDate?: Date | null | undefined;
|
|
8268
|
-
additionalTag?: string | undefined;
|
|
8269
|
-
winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
|
|
8270
|
-
}[] | undefined;
|
|
8271
|
-
teams?: {
|
|
8272
|
-
name: string;
|
|
8273
|
-
_id: string | import("mongoose").Types.ObjectId;
|
|
8274
|
-
picture?: string | null | undefined;
|
|
8275
|
-
}[] | undefined;
|
|
8160
|
+
tag?: import("./modules/tournament/tournament.types").TournamentTag | undefined;
|
|
8161
|
+
reward?: {
|
|
8162
|
+
type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.FREE_DELIVERY;
|
|
8163
|
+
} | {
|
|
8164
|
+
type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.COUPON;
|
|
8165
|
+
maxDiscountPerOrder?: number | null | undefined;
|
|
8166
|
+
couponNamePrefix?: string | undefined;
|
|
8167
|
+
percentage?: number | undefined;
|
|
8168
|
+
} | undefined;
|
|
8276
8169
|
} | {
|
|
8277
8170
|
documents: {
|
|
8278
8171
|
status: import("@lyxa.ai/core/dist/utilities/enum").Status;
|
|
8279
|
-
|
|
8280
|
-
|
|
8172
|
+
name: string;
|
|
8173
|
+
_id?: string | import("mongoose").Types.ObjectId | undefined;
|
|
8281
8174
|
createdAt?: Date | null | undefined;
|
|
8282
8175
|
startDate?: Date | null | undefined;
|
|
8283
8176
|
endDate?: Date | null | undefined;
|
|
8284
8177
|
updatedAt?: Date | null | undefined;
|
|
8285
|
-
|
|
8286
|
-
|
|
8287
|
-
|
|
8288
|
-
|
|
8289
|
-
|
|
8290
|
-
|
|
8291
|
-
|
|
8292
|
-
|
|
8293
|
-
|
|
8294
|
-
};
|
|
8295
|
-
score: {
|
|
8296
|
-
team1: number | null;
|
|
8297
|
-
team2: number | null;
|
|
8298
|
-
};
|
|
8299
|
-
stage: string;
|
|
8300
|
-
endDate?: Date | null | undefined;
|
|
8301
|
-
startingDate?: Date | null | undefined;
|
|
8302
|
-
additionalTag?: string | undefined;
|
|
8303
|
-
winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
|
|
8304
|
-
}[] | undefined;
|
|
8305
|
-
teams?: {
|
|
8306
|
-
name: string;
|
|
8307
|
-
_id: string | import("mongoose").Types.ObjectId;
|
|
8308
|
-
picture?: string | null | undefined;
|
|
8309
|
-
}[] | undefined;
|
|
8178
|
+
tag?: import("./modules/tournament/tournament.types").TournamentTag | undefined;
|
|
8179
|
+
reward?: {
|
|
8180
|
+
type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.FREE_DELIVERY;
|
|
8181
|
+
} | {
|
|
8182
|
+
type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.COUPON;
|
|
8183
|
+
maxDiscountPerOrder?: number | null | undefined;
|
|
8184
|
+
couponNamePrefix?: string | undefined;
|
|
8185
|
+
percentage?: number | undefined;
|
|
8186
|
+
} | undefined;
|
|
8310
8187
|
}[];
|
|
8311
8188
|
metadata?: {
|
|
8312
8189
|
page: number;
|
|
@@ -8348,71 +8225,39 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
|
|
|
8348
8225
|
success: boolean;
|
|
8349
8226
|
data?: {
|
|
8350
8227
|
status: import("@lyxa.ai/core/dist/utilities/enum").Status;
|
|
8351
|
-
|
|
8352
|
-
|
|
8228
|
+
name: string;
|
|
8229
|
+
_id?: string | import("mongoose").Types.ObjectId | undefined;
|
|
8353
8230
|
createdAt?: Date | null | undefined;
|
|
8354
8231
|
startDate?: Date | null | undefined;
|
|
8355
8232
|
endDate?: Date | null | undefined;
|
|
8356
8233
|
updatedAt?: Date | null | undefined;
|
|
8357
|
-
|
|
8358
|
-
|
|
8359
|
-
|
|
8360
|
-
|
|
8361
|
-
|
|
8362
|
-
|
|
8363
|
-
|
|
8364
|
-
|
|
8365
|
-
|
|
8366
|
-
};
|
|
8367
|
-
score: {
|
|
8368
|
-
team1: number | null;
|
|
8369
|
-
team2: number | null;
|
|
8370
|
-
};
|
|
8371
|
-
stage: string;
|
|
8372
|
-
endDate?: Date | null | undefined;
|
|
8373
|
-
startingDate?: Date | null | undefined;
|
|
8374
|
-
additionalTag?: string | undefined;
|
|
8375
|
-
winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
|
|
8376
|
-
}[] | undefined;
|
|
8377
|
-
teams?: {
|
|
8378
|
-
name: string;
|
|
8379
|
-
_id: string | import("mongoose").Types.ObjectId;
|
|
8380
|
-
picture?: string | null | undefined;
|
|
8381
|
-
}[] | undefined;
|
|
8234
|
+
tag?: import("./modules/tournament/tournament.types").TournamentTag | undefined;
|
|
8235
|
+
reward?: {
|
|
8236
|
+
type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.FREE_DELIVERY;
|
|
8237
|
+
} | {
|
|
8238
|
+
type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.COUPON;
|
|
8239
|
+
maxDiscountPerOrder?: number | null | undefined;
|
|
8240
|
+
couponNamePrefix?: string | undefined;
|
|
8241
|
+
percentage?: number | undefined;
|
|
8242
|
+
} | undefined;
|
|
8382
8243
|
} | {
|
|
8383
8244
|
documents: {
|
|
8384
8245
|
status: import("@lyxa.ai/core/dist/utilities/enum").Status;
|
|
8385
|
-
|
|
8386
|
-
|
|
8246
|
+
name: string;
|
|
8247
|
+
_id?: string | import("mongoose").Types.ObjectId | undefined;
|
|
8387
8248
|
createdAt?: Date | null | undefined;
|
|
8388
8249
|
startDate?: Date | null | undefined;
|
|
8389
8250
|
endDate?: Date | null | undefined;
|
|
8390
8251
|
updatedAt?: Date | null | undefined;
|
|
8391
|
-
|
|
8392
|
-
|
|
8393
|
-
|
|
8394
|
-
|
|
8395
|
-
|
|
8396
|
-
|
|
8397
|
-
|
|
8398
|
-
|
|
8399
|
-
|
|
8400
|
-
};
|
|
8401
|
-
score: {
|
|
8402
|
-
team1: number | null;
|
|
8403
|
-
team2: number | null;
|
|
8404
|
-
};
|
|
8405
|
-
stage: string;
|
|
8406
|
-
endDate?: Date | null | undefined;
|
|
8407
|
-
startingDate?: Date | null | undefined;
|
|
8408
|
-
additionalTag?: string | undefined;
|
|
8409
|
-
winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
|
|
8410
|
-
}[] | undefined;
|
|
8411
|
-
teams?: {
|
|
8412
|
-
name: string;
|
|
8413
|
-
_id: string | import("mongoose").Types.ObjectId;
|
|
8414
|
-
picture?: string | null | undefined;
|
|
8415
|
-
}[] | undefined;
|
|
8252
|
+
tag?: import("./modules/tournament/tournament.types").TournamentTag | undefined;
|
|
8253
|
+
reward?: {
|
|
8254
|
+
type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.FREE_DELIVERY;
|
|
8255
|
+
} | {
|
|
8256
|
+
type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.COUPON;
|
|
8257
|
+
maxDiscountPerOrder?: number | null | undefined;
|
|
8258
|
+
couponNamePrefix?: string | undefined;
|
|
8259
|
+
percentage?: number | undefined;
|
|
8260
|
+
} | undefined;
|
|
8416
8261
|
}[];
|
|
8417
8262
|
metadata?: {
|
|
8418
8263
|
page: number;
|
|
@@ -8467,8 +8312,8 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
|
|
|
8467
8312
|
}>;
|
|
8468
8313
|
getMatches: import("@trpc/server").TRPCQueryProcedure<{
|
|
8469
8314
|
input: {
|
|
8470
|
-
filter: "completed" | "upcoming";
|
|
8471
8315
|
tournamentId: string | import("mongoose").Types.ObjectId;
|
|
8316
|
+
filter?: import("./modules/tournament/tournament.types").MatchStatus | undefined;
|
|
8472
8317
|
};
|
|
8473
8318
|
output: {
|
|
8474
8319
|
message: string;
|
|
@@ -8482,10 +8327,12 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
|
|
|
8482
8327
|
team1: {
|
|
8483
8328
|
name: string;
|
|
8484
8329
|
teamId: string | import("mongoose").Types.ObjectId;
|
|
8330
|
+
picture?: string | undefined;
|
|
8485
8331
|
};
|
|
8486
8332
|
team2: {
|
|
8487
8333
|
name: string;
|
|
8488
8334
|
teamId: string | import("mongoose").Types.ObjectId;
|
|
8335
|
+
picture?: string | undefined;
|
|
8489
8336
|
};
|
|
8490
8337
|
score: {
|
|
8491
8338
|
team1: number | null;
|
|
@@ -8500,10 +8347,11 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
|
|
|
8500
8347
|
succeeded: boolean | null;
|
|
8501
8348
|
} | null;
|
|
8502
8349
|
canPredict: boolean;
|
|
8350
|
+
matchStatus: import("./modules/tournament/tournament.types").MatchStatus;
|
|
8503
8351
|
endDate?: Date | null | undefined;
|
|
8504
|
-
startingDate?: Date | null | undefined;
|
|
8505
8352
|
additionalTag?: string | undefined;
|
|
8506
8353
|
winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
|
|
8354
|
+
startingDate?: Date | null | undefined;
|
|
8507
8355
|
}[];
|
|
8508
8356
|
startDate?: Date | null | undefined;
|
|
8509
8357
|
endDate?: Date | null | undefined;
|
|
@@ -8517,10 +8365,12 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
|
|
|
8517
8365
|
team1: {
|
|
8518
8366
|
name: string;
|
|
8519
8367
|
teamId: string | import("mongoose").Types.ObjectId;
|
|
8368
|
+
picture?: string | undefined;
|
|
8520
8369
|
};
|
|
8521
8370
|
team2: {
|
|
8522
8371
|
name: string;
|
|
8523
8372
|
teamId: string | import("mongoose").Types.ObjectId;
|
|
8373
|
+
picture?: string | undefined;
|
|
8524
8374
|
};
|
|
8525
8375
|
score: {
|
|
8526
8376
|
team1: number | null;
|
|
@@ -8535,10 +8385,11 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
|
|
|
8535
8385
|
succeeded: boolean | null;
|
|
8536
8386
|
} | null;
|
|
8537
8387
|
canPredict: boolean;
|
|
8388
|
+
matchStatus: import("./modules/tournament/tournament.types").MatchStatus;
|
|
8538
8389
|
endDate?: Date | null | undefined;
|
|
8539
|
-
startingDate?: Date | null | undefined;
|
|
8540
8390
|
additionalTag?: string | undefined;
|
|
8541
8391
|
winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
|
|
8392
|
+
startingDate?: Date | null | undefined;
|
|
8542
8393
|
}[];
|
|
8543
8394
|
startDate?: Date | null | undefined;
|
|
8544
8395
|
endDate?: Date | null | undefined;
|
|
@@ -8575,9 +8426,9 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
|
|
|
8575
8426
|
tournamentId: string | import("mongoose").Types.ObjectId;
|
|
8576
8427
|
matches: {
|
|
8577
8428
|
stage: string;
|
|
8429
|
+
startingDate: string | Date;
|
|
8578
8430
|
team1Id: string | import("mongoose").Types.ObjectId;
|
|
8579
8431
|
team2Id: string | import("mongoose").Types.ObjectId;
|
|
8580
|
-
startingDate: string | Date;
|
|
8581
8432
|
endDate?: string | Date | undefined;
|
|
8582
8433
|
additionalTag?: string | undefined;
|
|
8583
8434
|
}[];
|
|
@@ -8587,71 +8438,39 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
|
|
|
8587
8438
|
success: boolean;
|
|
8588
8439
|
data?: {
|
|
8589
8440
|
status: import("@lyxa.ai/core/dist/utilities/enum").Status;
|
|
8590
|
-
|
|
8591
|
-
|
|
8441
|
+
name: string;
|
|
8442
|
+
_id?: string | import("mongoose").Types.ObjectId | undefined;
|
|
8592
8443
|
createdAt?: Date | null | undefined;
|
|
8593
8444
|
startDate?: Date | null | undefined;
|
|
8594
8445
|
endDate?: Date | null | undefined;
|
|
8595
8446
|
updatedAt?: Date | null | undefined;
|
|
8596
|
-
|
|
8597
|
-
|
|
8598
|
-
|
|
8599
|
-
|
|
8600
|
-
|
|
8601
|
-
|
|
8602
|
-
|
|
8603
|
-
|
|
8604
|
-
|
|
8605
|
-
};
|
|
8606
|
-
score: {
|
|
8607
|
-
team1: number | null;
|
|
8608
|
-
team2: number | null;
|
|
8609
|
-
};
|
|
8610
|
-
stage: string;
|
|
8611
|
-
endDate?: Date | null | undefined;
|
|
8612
|
-
startingDate?: Date | null | undefined;
|
|
8613
|
-
additionalTag?: string | undefined;
|
|
8614
|
-
winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
|
|
8615
|
-
}[] | undefined;
|
|
8616
|
-
teams?: {
|
|
8617
|
-
name: string;
|
|
8618
|
-
_id: string | import("mongoose").Types.ObjectId;
|
|
8619
|
-
picture?: string | null | undefined;
|
|
8620
|
-
}[] | undefined;
|
|
8447
|
+
tag?: import("./modules/tournament/tournament.types").TournamentTag | undefined;
|
|
8448
|
+
reward?: {
|
|
8449
|
+
type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.FREE_DELIVERY;
|
|
8450
|
+
} | {
|
|
8451
|
+
type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.COUPON;
|
|
8452
|
+
maxDiscountPerOrder?: number | null | undefined;
|
|
8453
|
+
couponNamePrefix?: string | undefined;
|
|
8454
|
+
percentage?: number | undefined;
|
|
8455
|
+
} | undefined;
|
|
8621
8456
|
} | {
|
|
8622
8457
|
documents: {
|
|
8623
8458
|
status: import("@lyxa.ai/core/dist/utilities/enum").Status;
|
|
8624
|
-
|
|
8625
|
-
|
|
8459
|
+
name: string;
|
|
8460
|
+
_id?: string | import("mongoose").Types.ObjectId | undefined;
|
|
8626
8461
|
createdAt?: Date | null | undefined;
|
|
8627
8462
|
startDate?: Date | null | undefined;
|
|
8628
8463
|
endDate?: Date | null | undefined;
|
|
8629
8464
|
updatedAt?: Date | null | undefined;
|
|
8630
|
-
|
|
8631
|
-
|
|
8632
|
-
|
|
8633
|
-
|
|
8634
|
-
|
|
8635
|
-
|
|
8636
|
-
|
|
8637
|
-
|
|
8638
|
-
|
|
8639
|
-
};
|
|
8640
|
-
score: {
|
|
8641
|
-
team1: number | null;
|
|
8642
|
-
team2: number | null;
|
|
8643
|
-
};
|
|
8644
|
-
stage: string;
|
|
8645
|
-
endDate?: Date | null | undefined;
|
|
8646
|
-
startingDate?: Date | null | undefined;
|
|
8647
|
-
additionalTag?: string | undefined;
|
|
8648
|
-
winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
|
|
8649
|
-
}[] | undefined;
|
|
8650
|
-
teams?: {
|
|
8651
|
-
name: string;
|
|
8652
|
-
_id: string | import("mongoose").Types.ObjectId;
|
|
8653
|
-
picture?: string | null | undefined;
|
|
8654
|
-
}[] | undefined;
|
|
8465
|
+
tag?: import("./modules/tournament/tournament.types").TournamentTag | undefined;
|
|
8466
|
+
reward?: {
|
|
8467
|
+
type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.FREE_DELIVERY;
|
|
8468
|
+
} | {
|
|
8469
|
+
type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.COUPON;
|
|
8470
|
+
maxDiscountPerOrder?: number | null | undefined;
|
|
8471
|
+
couponNamePrefix?: string | undefined;
|
|
8472
|
+
percentage?: number | undefined;
|
|
8473
|
+
} | undefined;
|
|
8655
8474
|
}[];
|
|
8656
8475
|
metadata?: {
|
|
8657
8476
|
page: number;
|
|
@@ -8675,10 +8494,12 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
|
|
|
8675
8494
|
team1: {
|
|
8676
8495
|
name: string;
|
|
8677
8496
|
teamId: string | import("mongoose").Types.ObjectId;
|
|
8497
|
+
picture?: string | undefined;
|
|
8678
8498
|
};
|
|
8679
8499
|
team2: {
|
|
8680
8500
|
name: string;
|
|
8681
8501
|
teamId: string | import("mongoose").Types.ObjectId;
|
|
8502
|
+
picture?: string | undefined;
|
|
8682
8503
|
};
|
|
8683
8504
|
score: {
|
|
8684
8505
|
team1: number | null;
|
|
@@ -8686,9 +8507,9 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
|
|
|
8686
8507
|
};
|
|
8687
8508
|
stage: string;
|
|
8688
8509
|
endDate?: Date | null | undefined;
|
|
8689
|
-
startingDate?: Date | null | undefined;
|
|
8690
8510
|
additionalTag?: string | undefined;
|
|
8691
8511
|
winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
|
|
8512
|
+
startingDate?: Date | null | undefined;
|
|
8692
8513
|
prediction?: {
|
|
8693
8514
|
score: {
|
|
8694
8515
|
team1: number | null;
|
|
@@ -8702,10 +8523,12 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
|
|
|
8702
8523
|
team1: {
|
|
8703
8524
|
name: string;
|
|
8704
8525
|
teamId: string | import("mongoose").Types.ObjectId;
|
|
8526
|
+
picture?: string | undefined;
|
|
8705
8527
|
};
|
|
8706
8528
|
team2: {
|
|
8707
8529
|
name: string;
|
|
8708
8530
|
teamId: string | import("mongoose").Types.ObjectId;
|
|
8531
|
+
picture?: string | undefined;
|
|
8709
8532
|
};
|
|
8710
8533
|
score: {
|
|
8711
8534
|
team1: number | null;
|
|
@@ -8713,9 +8536,9 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
|
|
|
8713
8536
|
};
|
|
8714
8537
|
stage: string;
|
|
8715
8538
|
endDate?: Date | null | undefined;
|
|
8716
|
-
startingDate?: Date | null | undefined;
|
|
8717
8539
|
additionalTag?: string | undefined;
|
|
8718
8540
|
winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
|
|
8541
|
+
startingDate?: Date | null | undefined;
|
|
8719
8542
|
prediction?: {
|
|
8720
8543
|
score: {
|
|
8721
8544
|
team1: number | null;
|
|
@@ -8747,10 +8570,12 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
|
|
|
8747
8570
|
team1: {
|
|
8748
8571
|
name: string;
|
|
8749
8572
|
teamId: string | import("mongoose").Types.ObjectId;
|
|
8573
|
+
picture?: string | undefined;
|
|
8750
8574
|
};
|
|
8751
8575
|
team2: {
|
|
8752
8576
|
name: string;
|
|
8753
8577
|
teamId: string | import("mongoose").Types.ObjectId;
|
|
8578
|
+
picture?: string | undefined;
|
|
8754
8579
|
};
|
|
8755
8580
|
score: {
|
|
8756
8581
|
team1: number | null;
|
|
@@ -8758,84 +8583,9 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
|
|
|
8758
8583
|
};
|
|
8759
8584
|
stage: string;
|
|
8760
8585
|
endDate?: Date | null | undefined;
|
|
8761
|
-
startingDate?: Date | null | undefined;
|
|
8762
8586
|
additionalTag?: string | undefined;
|
|
8763
8587
|
winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
|
|
8764
|
-
prediction?: {
|
|
8765
|
-
score: {
|
|
8766
|
-
team1: number | null;
|
|
8767
|
-
team2: number | null;
|
|
8768
|
-
};
|
|
8769
|
-
succeeded?: boolean | null | undefined;
|
|
8770
|
-
} | null | undefined;
|
|
8771
|
-
} | {
|
|
8772
|
-
documents: {
|
|
8773
|
-
_id: string | import("mongoose").Types.ObjectId;
|
|
8774
|
-
team1: {
|
|
8775
|
-
name: string;
|
|
8776
|
-
teamId: string | import("mongoose").Types.ObjectId;
|
|
8777
|
-
};
|
|
8778
|
-
team2: {
|
|
8779
|
-
name: string;
|
|
8780
|
-
teamId: string | import("mongoose").Types.ObjectId;
|
|
8781
|
-
};
|
|
8782
|
-
score: {
|
|
8783
|
-
team1: number | null;
|
|
8784
|
-
team2: number | null;
|
|
8785
|
-
};
|
|
8786
|
-
stage: string;
|
|
8787
|
-
endDate?: Date | null | undefined;
|
|
8788
|
-
startingDate?: Date | null | undefined;
|
|
8789
|
-
additionalTag?: string | undefined;
|
|
8790
|
-
winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
|
|
8791
|
-
prediction?: {
|
|
8792
|
-
score: {
|
|
8793
|
-
team1: number | null;
|
|
8794
|
-
team2: number | null;
|
|
8795
|
-
};
|
|
8796
|
-
succeeded?: boolean | null | undefined;
|
|
8797
|
-
} | null | undefined;
|
|
8798
|
-
}[];
|
|
8799
|
-
metadata?: {
|
|
8800
|
-
page: number;
|
|
8801
|
-
size: number;
|
|
8802
|
-
totalElements: number;
|
|
8803
|
-
totalPages: number;
|
|
8804
|
-
} | undefined;
|
|
8805
|
-
} | undefined;
|
|
8806
|
-
};
|
|
8807
|
-
meta: object;
|
|
8808
|
-
}>;
|
|
8809
|
-
updateScore: import("@trpc/server").TRPCMutationProcedure<{
|
|
8810
|
-
input: {
|
|
8811
|
-
tournamentId: string | import("mongoose").Types.ObjectId;
|
|
8812
|
-
matchId: string | import("mongoose").Types.ObjectId;
|
|
8813
|
-
team1Score: number;
|
|
8814
|
-
team2Score: number;
|
|
8815
|
-
winnerId?: string | import("mongoose").Types.ObjectId | undefined;
|
|
8816
|
-
};
|
|
8817
|
-
output: {
|
|
8818
|
-
message: string;
|
|
8819
|
-
success: boolean;
|
|
8820
|
-
data?: {
|
|
8821
|
-
_id: string | import("mongoose").Types.ObjectId;
|
|
8822
|
-
team1: {
|
|
8823
|
-
name: string;
|
|
8824
|
-
teamId: string | import("mongoose").Types.ObjectId;
|
|
8825
|
-
};
|
|
8826
|
-
team2: {
|
|
8827
|
-
name: string;
|
|
8828
|
-
teamId: string | import("mongoose").Types.ObjectId;
|
|
8829
|
-
};
|
|
8830
|
-
score: {
|
|
8831
|
-
team1: number | null;
|
|
8832
|
-
team2: number | null;
|
|
8833
|
-
};
|
|
8834
|
-
stage: string;
|
|
8835
|
-
endDate?: Date | null | undefined;
|
|
8836
8588
|
startingDate?: Date | null | undefined;
|
|
8837
|
-
additionalTag?: string | undefined;
|
|
8838
|
-
winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
|
|
8839
8589
|
prediction?: {
|
|
8840
8590
|
score: {
|
|
8841
8591
|
team1: number | null;
|
|
@@ -8849,10 +8599,12 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
|
|
|
8849
8599
|
team1: {
|
|
8850
8600
|
name: string;
|
|
8851
8601
|
teamId: string | import("mongoose").Types.ObjectId;
|
|
8602
|
+
picture?: string | undefined;
|
|
8852
8603
|
};
|
|
8853
8604
|
team2: {
|
|
8854
8605
|
name: string;
|
|
8855
8606
|
teamId: string | import("mongoose").Types.ObjectId;
|
|
8607
|
+
picture?: string | undefined;
|
|
8856
8608
|
};
|
|
8857
8609
|
score: {
|
|
8858
8610
|
team1: number | null;
|
|
@@ -8860,9 +8612,9 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
|
|
|
8860
8612
|
};
|
|
8861
8613
|
stage: string;
|
|
8862
8614
|
endDate?: Date | null | undefined;
|
|
8863
|
-
startingDate?: Date | null | undefined;
|
|
8864
8615
|
additionalTag?: string | undefined;
|
|
8865
8616
|
winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
|
|
8617
|
+
startingDate?: Date | null | undefined;
|
|
8866
8618
|
prediction?: {
|
|
8867
8619
|
score: {
|
|
8868
8620
|
team1: number | null;
|
|
@@ -8885,8 +8637,10 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
|
|
|
8885
8637
|
input: {
|
|
8886
8638
|
tournamentId: string | import("mongoose").Types.ObjectId;
|
|
8887
8639
|
matchId: string | import("mongoose").Types.ObjectId;
|
|
8888
|
-
|
|
8889
|
-
|
|
8640
|
+
finalScore?: {
|
|
8641
|
+
team1: number;
|
|
8642
|
+
team2: number;
|
|
8643
|
+
} | undefined;
|
|
8890
8644
|
};
|
|
8891
8645
|
output: {
|
|
8892
8646
|
message: string;
|
|
@@ -8896,10 +8650,12 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
|
|
|
8896
8650
|
team1: {
|
|
8897
8651
|
name: string;
|
|
8898
8652
|
teamId: string | import("mongoose").Types.ObjectId;
|
|
8653
|
+
picture?: string | undefined;
|
|
8899
8654
|
};
|
|
8900
8655
|
team2: {
|
|
8901
8656
|
name: string;
|
|
8902
8657
|
teamId: string | import("mongoose").Types.ObjectId;
|
|
8658
|
+
picture?: string | undefined;
|
|
8903
8659
|
};
|
|
8904
8660
|
score: {
|
|
8905
8661
|
team1: number | null;
|
|
@@ -8907,9 +8663,9 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
|
|
|
8907
8663
|
};
|
|
8908
8664
|
stage: string;
|
|
8909
8665
|
endDate?: Date | null | undefined;
|
|
8910
|
-
startingDate?: Date | null | undefined;
|
|
8911
8666
|
additionalTag?: string | undefined;
|
|
8912
8667
|
winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
|
|
8668
|
+
startingDate?: Date | null | undefined;
|
|
8913
8669
|
prediction?: {
|
|
8914
8670
|
score: {
|
|
8915
8671
|
team1: number | null;
|
|
@@ -8923,10 +8679,12 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
|
|
|
8923
8679
|
team1: {
|
|
8924
8680
|
name: string;
|
|
8925
8681
|
teamId: string | import("mongoose").Types.ObjectId;
|
|
8682
|
+
picture?: string | undefined;
|
|
8926
8683
|
};
|
|
8927
8684
|
team2: {
|
|
8928
8685
|
name: string;
|
|
8929
8686
|
teamId: string | import("mongoose").Types.ObjectId;
|
|
8687
|
+
picture?: string | undefined;
|
|
8930
8688
|
};
|
|
8931
8689
|
score: {
|
|
8932
8690
|
team1: number | null;
|
|
@@ -8934,9 +8692,9 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
|
|
|
8934
8692
|
};
|
|
8935
8693
|
stage: string;
|
|
8936
8694
|
endDate?: Date | null | undefined;
|
|
8937
|
-
startingDate?: Date | null | undefined;
|
|
8938
8695
|
additionalTag?: string | undefined;
|
|
8939
8696
|
winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
|
|
8697
|
+
startingDate?: Date | null | undefined;
|
|
8940
8698
|
prediction?: {
|
|
8941
8699
|
score: {
|
|
8942
8700
|
team1: number | null;
|
|
@@ -8965,71 +8723,39 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
|
|
|
8965
8723
|
success: boolean;
|
|
8966
8724
|
data?: {
|
|
8967
8725
|
status: import("@lyxa.ai/core/dist/utilities/enum").Status;
|
|
8968
|
-
|
|
8969
|
-
|
|
8726
|
+
name: string;
|
|
8727
|
+
_id?: string | import("mongoose").Types.ObjectId | undefined;
|
|
8970
8728
|
createdAt?: Date | null | undefined;
|
|
8971
8729
|
startDate?: Date | null | undefined;
|
|
8972
8730
|
endDate?: Date | null | undefined;
|
|
8973
8731
|
updatedAt?: Date | null | undefined;
|
|
8974
|
-
|
|
8975
|
-
|
|
8976
|
-
|
|
8977
|
-
|
|
8978
|
-
|
|
8979
|
-
|
|
8980
|
-
|
|
8981
|
-
|
|
8982
|
-
|
|
8983
|
-
};
|
|
8984
|
-
score: {
|
|
8985
|
-
team1: number | null;
|
|
8986
|
-
team2: number | null;
|
|
8987
|
-
};
|
|
8988
|
-
stage: string;
|
|
8989
|
-
endDate?: Date | null | undefined;
|
|
8990
|
-
startingDate?: Date | null | undefined;
|
|
8991
|
-
additionalTag?: string | undefined;
|
|
8992
|
-
winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
|
|
8993
|
-
}[] | undefined;
|
|
8994
|
-
teams?: {
|
|
8995
|
-
name: string;
|
|
8996
|
-
_id: string | import("mongoose").Types.ObjectId;
|
|
8997
|
-
picture?: string | null | undefined;
|
|
8998
|
-
}[] | undefined;
|
|
8732
|
+
tag?: import("./modules/tournament/tournament.types").TournamentTag | undefined;
|
|
8733
|
+
reward?: {
|
|
8734
|
+
type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.FREE_DELIVERY;
|
|
8735
|
+
} | {
|
|
8736
|
+
type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.COUPON;
|
|
8737
|
+
maxDiscountPerOrder?: number | null | undefined;
|
|
8738
|
+
couponNamePrefix?: string | undefined;
|
|
8739
|
+
percentage?: number | undefined;
|
|
8740
|
+
} | undefined;
|
|
8999
8741
|
} | {
|
|
9000
8742
|
documents: {
|
|
9001
8743
|
status: import("@lyxa.ai/core/dist/utilities/enum").Status;
|
|
9002
|
-
|
|
9003
|
-
|
|
8744
|
+
name: string;
|
|
8745
|
+
_id?: string | import("mongoose").Types.ObjectId | undefined;
|
|
9004
8746
|
createdAt?: Date | null | undefined;
|
|
9005
8747
|
startDate?: Date | null | undefined;
|
|
9006
8748
|
endDate?: Date | null | undefined;
|
|
9007
8749
|
updatedAt?: Date | null | undefined;
|
|
9008
|
-
|
|
9009
|
-
|
|
9010
|
-
|
|
9011
|
-
|
|
9012
|
-
|
|
9013
|
-
|
|
9014
|
-
|
|
9015
|
-
|
|
9016
|
-
|
|
9017
|
-
};
|
|
9018
|
-
score: {
|
|
9019
|
-
team1: number | null;
|
|
9020
|
-
team2: number | null;
|
|
9021
|
-
};
|
|
9022
|
-
stage: string;
|
|
9023
|
-
endDate?: Date | null | undefined;
|
|
9024
|
-
startingDate?: Date | null | undefined;
|
|
9025
|
-
additionalTag?: string | undefined;
|
|
9026
|
-
winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
|
|
9027
|
-
}[] | undefined;
|
|
9028
|
-
teams?: {
|
|
9029
|
-
name: string;
|
|
9030
|
-
_id: string | import("mongoose").Types.ObjectId;
|
|
9031
|
-
picture?: string | null | undefined;
|
|
9032
|
-
}[] | undefined;
|
|
8750
|
+
tag?: import("./modules/tournament/tournament.types").TournamentTag | undefined;
|
|
8751
|
+
reward?: {
|
|
8752
|
+
type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.FREE_DELIVERY;
|
|
8753
|
+
} | {
|
|
8754
|
+
type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.COUPON;
|
|
8755
|
+
maxDiscountPerOrder?: number | null | undefined;
|
|
8756
|
+
couponNamePrefix?: string | undefined;
|
|
8757
|
+
percentage?: number | undefined;
|
|
8758
|
+
} | undefined;
|
|
9033
8759
|
}[];
|
|
9034
8760
|
metadata?: {
|
|
9035
8761
|
page: number;
|
|
@@ -9060,22 +8786,22 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
|
|
|
9060
8786
|
}, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
|
|
9061
8787
|
join: import("@trpc/server").TRPCMutationProcedure<{
|
|
9062
8788
|
input: {
|
|
9063
|
-
teamId: string | import("mongoose").Types.ObjectId;
|
|
9064
8789
|
tournamentId: string | import("mongoose").Types.ObjectId;
|
|
8790
|
+
teamId: string | import("mongoose").Types.ObjectId;
|
|
9065
8791
|
};
|
|
9066
8792
|
output: {
|
|
9067
8793
|
message: string;
|
|
9068
8794
|
success: boolean;
|
|
9069
8795
|
data?: {
|
|
9070
8796
|
_id: string | import("mongoose").Types.ObjectId;
|
|
9071
|
-
teamId: string | import("mongoose").Types.ObjectId;
|
|
9072
8797
|
tournamentId: string | import("mongoose").Types.ObjectId;
|
|
8798
|
+
teamId: string | import("mongoose").Types.ObjectId;
|
|
9073
8799
|
createdAt?: Date | null | undefined;
|
|
9074
8800
|
} | {
|
|
9075
8801
|
documents: {
|
|
9076
8802
|
_id: string | import("mongoose").Types.ObjectId;
|
|
9077
|
-
teamId: string | import("mongoose").Types.ObjectId;
|
|
9078
8803
|
tournamentId: string | import("mongoose").Types.ObjectId;
|
|
8804
|
+
teamId: string | import("mongoose").Types.ObjectId;
|
|
9079
8805
|
createdAt?: Date | null | undefined;
|
|
9080
8806
|
}[];
|
|
9081
8807
|
metadata?: {
|
|
@@ -9098,39 +8824,39 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
|
|
|
9098
8824
|
data?: {
|
|
9099
8825
|
_id: string | import("mongoose").Types.ObjectId;
|
|
9100
8826
|
userId: string | import("mongoose").Types.ObjectId;
|
|
9101
|
-
teamId: string | import("mongoose").Types.ObjectId;
|
|
9102
8827
|
tournamentId: string | import("mongoose").Types.ObjectId;
|
|
8828
|
+
teamId: string | import("mongoose").Types.ObjectId;
|
|
9103
8829
|
createdAt?: Date | null | undefined;
|
|
9104
8830
|
updatedAt?: Date | null | undefined;
|
|
9105
8831
|
predictions?: {
|
|
9106
8832
|
_id: string | import("mongoose").Types.ObjectId;
|
|
8833
|
+
matchId: string | import("mongoose").Types.ObjectId;
|
|
9107
8834
|
score: {
|
|
9108
8835
|
team1: number | null;
|
|
9109
8836
|
team2: number | null;
|
|
9110
8837
|
};
|
|
9111
|
-
matchId: string | import("mongoose").Types.ObjectId;
|
|
9112
8838
|
coupon?: string | import("mongoose").Types.ObjectId | undefined;
|
|
9113
|
-
succeeded?: boolean | null | undefined;
|
|
9114
8839
|
predictionTime?: Date | null | undefined;
|
|
8840
|
+
succeeded?: boolean | null | undefined;
|
|
9115
8841
|
}[] | undefined;
|
|
9116
8842
|
}[] | {
|
|
9117
8843
|
documents: {
|
|
9118
8844
|
_id: string | import("mongoose").Types.ObjectId;
|
|
9119
8845
|
userId: string | import("mongoose").Types.ObjectId;
|
|
9120
|
-
teamId: string | import("mongoose").Types.ObjectId;
|
|
9121
8846
|
tournamentId: string | import("mongoose").Types.ObjectId;
|
|
8847
|
+
teamId: string | import("mongoose").Types.ObjectId;
|
|
9122
8848
|
createdAt?: Date | null | undefined;
|
|
9123
8849
|
updatedAt?: Date | null | undefined;
|
|
9124
8850
|
predictions?: {
|
|
9125
8851
|
_id: string | import("mongoose").Types.ObjectId;
|
|
8852
|
+
matchId: string | import("mongoose").Types.ObjectId;
|
|
9126
8853
|
score: {
|
|
9127
8854
|
team1: number | null;
|
|
9128
8855
|
team2: number | null;
|
|
9129
8856
|
};
|
|
9130
|
-
matchId: string | import("mongoose").Types.ObjectId;
|
|
9131
8857
|
coupon?: string | import("mongoose").Types.ObjectId | undefined;
|
|
9132
|
-
succeeded?: boolean | null | undefined;
|
|
9133
8858
|
predictionTime?: Date | null | undefined;
|
|
8859
|
+
succeeded?: boolean | null | undefined;
|
|
9134
8860
|
}[] | undefined;
|
|
9135
8861
|
}[][];
|
|
9136
8862
|
metadata?: {
|
|
@@ -9162,31 +8888,31 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
|
|
|
9162
8888
|
}, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
|
|
9163
8889
|
create: import("@trpc/server").TRPCMutationProcedure<{
|
|
9164
8890
|
input: {
|
|
8891
|
+
tournamentId: string | import("mongoose").Types.ObjectId;
|
|
8892
|
+
matchId: string | import("mongoose").Types.ObjectId;
|
|
9165
8893
|
score: {
|
|
9166
8894
|
team1: number;
|
|
9167
8895
|
team2: number;
|
|
9168
8896
|
};
|
|
9169
|
-
tournamentId: string | import("mongoose").Types.ObjectId;
|
|
9170
|
-
matchId: string | import("mongoose").Types.ObjectId;
|
|
9171
8897
|
};
|
|
9172
8898
|
output: {
|
|
9173
8899
|
message: string;
|
|
9174
8900
|
success: boolean;
|
|
9175
8901
|
data?: {
|
|
9176
8902
|
_id: string | import("mongoose").Types.ObjectId;
|
|
8903
|
+
matchId: string | import("mongoose").Types.ObjectId;
|
|
9177
8904
|
score: {
|
|
9178
8905
|
team1: number | null;
|
|
9179
8906
|
team2: number | null;
|
|
9180
8907
|
};
|
|
9181
|
-
matchId: string | import("mongoose").Types.ObjectId;
|
|
9182
8908
|
} | {
|
|
9183
8909
|
documents: {
|
|
9184
8910
|
_id: string | import("mongoose").Types.ObjectId;
|
|
8911
|
+
matchId: string | import("mongoose").Types.ObjectId;
|
|
9185
8912
|
score: {
|
|
9186
8913
|
team1: number | null;
|
|
9187
8914
|
team2: number | null;
|
|
9188
8915
|
};
|
|
9189
|
-
matchId: string | import("mongoose").Types.ObjectId;
|
|
9190
8916
|
}[];
|
|
9191
8917
|
metadata?: {
|
|
9192
8918
|
page: number;
|
|
@@ -9200,31 +8926,31 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
|
|
|
9200
8926
|
}>;
|
|
9201
8927
|
edit: import("@trpc/server").TRPCMutationProcedure<{
|
|
9202
8928
|
input: {
|
|
8929
|
+
tournamentId: string | import("mongoose").Types.ObjectId;
|
|
8930
|
+
matchId: string | import("mongoose").Types.ObjectId;
|
|
9203
8931
|
score: {
|
|
9204
8932
|
team1: number;
|
|
9205
8933
|
team2: number;
|
|
9206
8934
|
};
|
|
9207
|
-
tournamentId: string | import("mongoose").Types.ObjectId;
|
|
9208
|
-
matchId: string | import("mongoose").Types.ObjectId;
|
|
9209
8935
|
};
|
|
9210
8936
|
output: {
|
|
9211
8937
|
message: string;
|
|
9212
8938
|
success: boolean;
|
|
9213
8939
|
data?: {
|
|
9214
8940
|
_id: string | import("mongoose").Types.ObjectId;
|
|
8941
|
+
matchId: string | import("mongoose").Types.ObjectId;
|
|
9215
8942
|
score: {
|
|
9216
8943
|
team1: number | null;
|
|
9217
8944
|
team2: number | null;
|
|
9218
8945
|
};
|
|
9219
|
-
matchId: string | import("mongoose").Types.ObjectId;
|
|
9220
8946
|
} | {
|
|
9221
8947
|
documents: {
|
|
9222
8948
|
_id: string | import("mongoose").Types.ObjectId;
|
|
8949
|
+
matchId: string | import("mongoose").Types.ObjectId;
|
|
9223
8950
|
score: {
|
|
9224
8951
|
team1: number | null;
|
|
9225
8952
|
team2: number | null;
|
|
9226
8953
|
};
|
|
9227
|
-
matchId: string | import("mongoose").Types.ObjectId;
|
|
9228
8954
|
}[];
|
|
9229
8955
|
metadata?: {
|
|
9230
8956
|
page: number;
|
|
@@ -9246,23 +8972,23 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
|
|
|
9246
8972
|
success: boolean;
|
|
9247
8973
|
data?: {
|
|
9248
8974
|
_id: string | import("mongoose").Types.ObjectId;
|
|
8975
|
+
matchId: string | import("mongoose").Types.ObjectId;
|
|
9249
8976
|
score: {
|
|
9250
8977
|
team1: number | null;
|
|
9251
8978
|
team2: number | null;
|
|
9252
8979
|
};
|
|
9253
|
-
matchId: string | import("mongoose").Types.ObjectId;
|
|
9254
|
-
succeeded?: boolean | null | undefined;
|
|
9255
8980
|
predictionTime?: Date | null | undefined;
|
|
8981
|
+
succeeded?: boolean | null | undefined;
|
|
9256
8982
|
} | {
|
|
9257
8983
|
documents: ({
|
|
9258
8984
|
_id: string | import("mongoose").Types.ObjectId;
|
|
8985
|
+
matchId: string | import("mongoose").Types.ObjectId;
|
|
9259
8986
|
score: {
|
|
9260
8987
|
team1: number | null;
|
|
9261
8988
|
team2: number | null;
|
|
9262
8989
|
};
|
|
9263
|
-
matchId: string | import("mongoose").Types.ObjectId;
|
|
9264
|
-
succeeded?: boolean | null | undefined;
|
|
9265
8990
|
predictionTime?: Date | null | undefined;
|
|
8991
|
+
succeeded?: boolean | null | undefined;
|
|
9266
8992
|
} | null)[];
|
|
9267
8993
|
metadata?: {
|
|
9268
8994
|
page: number;
|
|
@@ -9275,6 +9001,234 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
|
|
|
9275
9001
|
meta: object;
|
|
9276
9002
|
}>;
|
|
9277
9003
|
}>>;
|
|
9004
|
+
statistics: import("@trpc/server").TRPCBuiltRouter<{
|
|
9005
|
+
ctx: import("@lyxa.ai/core/dist/libraries/trpc/context").LyxaHTTPContext;
|
|
9006
|
+
meta: object;
|
|
9007
|
+
errorShape: {
|
|
9008
|
+
message: string;
|
|
9009
|
+
data: {
|
|
9010
|
+
stack: undefined;
|
|
9011
|
+
path: undefined;
|
|
9012
|
+
code: import("@trpc/server").TRPC_ERROR_CODE_KEY;
|
|
9013
|
+
httpStatus: number;
|
|
9014
|
+
};
|
|
9015
|
+
stack: undefined;
|
|
9016
|
+
code: import("@trpc/server").TRPC_ERROR_CODE_NUMBER;
|
|
9017
|
+
};
|
|
9018
|
+
transformer: false;
|
|
9019
|
+
}, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
|
|
9020
|
+
getActiveByUser: import("@trpc/server").TRPCQueryProcedure<{
|
|
9021
|
+
input: {
|
|
9022
|
+
userId: string | import("mongoose").Types.ObjectId;
|
|
9023
|
+
};
|
|
9024
|
+
output: {
|
|
9025
|
+
message: string;
|
|
9026
|
+
success: boolean;
|
|
9027
|
+
data?: {
|
|
9028
|
+
name: string;
|
|
9029
|
+
joinedAt: Date | null;
|
|
9030
|
+
stats: {
|
|
9031
|
+
predictionsMade: number;
|
|
9032
|
+
correctPredictions: number;
|
|
9033
|
+
couponsWon: number;
|
|
9034
|
+
};
|
|
9035
|
+
matches: {
|
|
9036
|
+
date: string | null;
|
|
9037
|
+
coupon: string | null;
|
|
9038
|
+
id: string;
|
|
9039
|
+
result: "won" | "lost" | "pending" | null;
|
|
9040
|
+
teams: string;
|
|
9041
|
+
prediction: string | null;
|
|
9042
|
+
realScore: string | null;
|
|
9043
|
+
}[];
|
|
9044
|
+
selectedTeam: {
|
|
9045
|
+
name: string;
|
|
9046
|
+
flag: string | null;
|
|
9047
|
+
};
|
|
9048
|
+
} | {
|
|
9049
|
+
documents: ({
|
|
9050
|
+
name: string;
|
|
9051
|
+
joinedAt: Date | null;
|
|
9052
|
+
stats: {
|
|
9053
|
+
predictionsMade: number;
|
|
9054
|
+
correctPredictions: number;
|
|
9055
|
+
couponsWon: number;
|
|
9056
|
+
};
|
|
9057
|
+
matches: {
|
|
9058
|
+
date: string | null;
|
|
9059
|
+
coupon: string | null;
|
|
9060
|
+
id: string;
|
|
9061
|
+
result: "won" | "lost" | "pending" | null;
|
|
9062
|
+
teams: string;
|
|
9063
|
+
prediction: string | null;
|
|
9064
|
+
realScore: string | null;
|
|
9065
|
+
}[];
|
|
9066
|
+
selectedTeam: {
|
|
9067
|
+
name: string;
|
|
9068
|
+
flag: string | null;
|
|
9069
|
+
};
|
|
9070
|
+
} | null)[];
|
|
9071
|
+
metadata?: {
|
|
9072
|
+
page: number;
|
|
9073
|
+
size: number;
|
|
9074
|
+
totalElements: number;
|
|
9075
|
+
totalPages: number;
|
|
9076
|
+
} | undefined;
|
|
9077
|
+
} | null | undefined;
|
|
9078
|
+
};
|
|
9079
|
+
meta: object;
|
|
9080
|
+
}>;
|
|
9081
|
+
}>>;
|
|
9082
|
+
schedule: import("@trpc/server").TRPCBuiltRouter<{
|
|
9083
|
+
ctx: import("@lyxa.ai/core/dist/libraries/trpc/context").LyxaHTTPContext;
|
|
9084
|
+
meta: object;
|
|
9085
|
+
errorShape: {
|
|
9086
|
+
message: string;
|
|
9087
|
+
data: {
|
|
9088
|
+
stack: undefined;
|
|
9089
|
+
path: undefined;
|
|
9090
|
+
code: import("@trpc/server").TRPC_ERROR_CODE_KEY;
|
|
9091
|
+
httpStatus: number;
|
|
9092
|
+
};
|
|
9093
|
+
stack: undefined;
|
|
9094
|
+
code: import("@trpc/server").TRPC_ERROR_CODE_NUMBER;
|
|
9095
|
+
};
|
|
9096
|
+
transformer: false;
|
|
9097
|
+
}, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
|
|
9098
|
+
dispatch: import("@trpc/server").TRPCMutationProcedure<{
|
|
9099
|
+
input: void;
|
|
9100
|
+
output: {
|
|
9101
|
+
success: boolean;
|
|
9102
|
+
message: string;
|
|
9103
|
+
data: null | undefined;
|
|
9104
|
+
};
|
|
9105
|
+
meta: object;
|
|
9106
|
+
}>;
|
|
9107
|
+
}>>;
|
|
9108
|
+
score: import("@trpc/server").TRPCBuiltRouter<{
|
|
9109
|
+
ctx: import("@lyxa.ai/core/dist/libraries/trpc/context").LyxaHTTPContext;
|
|
9110
|
+
meta: object;
|
|
9111
|
+
errorShape: {
|
|
9112
|
+
message: string;
|
|
9113
|
+
data: {
|
|
9114
|
+
stack: undefined;
|
|
9115
|
+
path: undefined;
|
|
9116
|
+
code: import("@trpc/server").TRPC_ERROR_CODE_KEY;
|
|
9117
|
+
httpStatus: number;
|
|
9118
|
+
};
|
|
9119
|
+
stack: undefined;
|
|
9120
|
+
code: import("@trpc/server").TRPC_ERROR_CODE_NUMBER;
|
|
9121
|
+
};
|
|
9122
|
+
transformer: false;
|
|
9123
|
+
}, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
|
|
9124
|
+
updateMatchScore: import("@trpc/server").TRPCMutationProcedure<{
|
|
9125
|
+
input: {
|
|
9126
|
+
tournamentId: string | import("mongoose").Types.ObjectId;
|
|
9127
|
+
matchId: string | import("mongoose").Types.ObjectId;
|
|
9128
|
+
teams: {
|
|
9129
|
+
score: number;
|
|
9130
|
+
teamId: string | import("mongoose").Types.ObjectId;
|
|
9131
|
+
}[];
|
|
9132
|
+
};
|
|
9133
|
+
output: {
|
|
9134
|
+
message: string;
|
|
9135
|
+
success: boolean;
|
|
9136
|
+
data?: {
|
|
9137
|
+
_id: string | import("mongoose").Types.ObjectId;
|
|
9138
|
+
team1: {
|
|
9139
|
+
name: string;
|
|
9140
|
+
teamId: string | import("mongoose").Types.ObjectId;
|
|
9141
|
+
picture?: string | undefined;
|
|
9142
|
+
};
|
|
9143
|
+
team2: {
|
|
9144
|
+
name: string;
|
|
9145
|
+
teamId: string | import("mongoose").Types.ObjectId;
|
|
9146
|
+
picture?: string | undefined;
|
|
9147
|
+
};
|
|
9148
|
+
score: {
|
|
9149
|
+
team1: number | null;
|
|
9150
|
+
team2: number | null;
|
|
9151
|
+
};
|
|
9152
|
+
stage: string;
|
|
9153
|
+
endDate?: Date | null | undefined;
|
|
9154
|
+
additionalTag?: string | undefined;
|
|
9155
|
+
winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
|
|
9156
|
+
startingDate?: Date | null | undefined;
|
|
9157
|
+
prediction?: {
|
|
9158
|
+
score: {
|
|
9159
|
+
team1: number | null;
|
|
9160
|
+
team2: number | null;
|
|
9161
|
+
};
|
|
9162
|
+
succeeded?: boolean | null | undefined;
|
|
9163
|
+
} | null | undefined;
|
|
9164
|
+
} | {
|
|
9165
|
+
documents: {
|
|
9166
|
+
_id: string | import("mongoose").Types.ObjectId;
|
|
9167
|
+
team1: {
|
|
9168
|
+
name: string;
|
|
9169
|
+
teamId: string | import("mongoose").Types.ObjectId;
|
|
9170
|
+
picture?: string | undefined;
|
|
9171
|
+
};
|
|
9172
|
+
team2: {
|
|
9173
|
+
name: string;
|
|
9174
|
+
teamId: string | import("mongoose").Types.ObjectId;
|
|
9175
|
+
picture?: string | undefined;
|
|
9176
|
+
};
|
|
9177
|
+
score: {
|
|
9178
|
+
team1: number | null;
|
|
9179
|
+
team2: number | null;
|
|
9180
|
+
};
|
|
9181
|
+
stage: string;
|
|
9182
|
+
endDate?: Date | null | undefined;
|
|
9183
|
+
additionalTag?: string | undefined;
|
|
9184
|
+
winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
|
|
9185
|
+
startingDate?: Date | null | undefined;
|
|
9186
|
+
prediction?: {
|
|
9187
|
+
score: {
|
|
9188
|
+
team1: number | null;
|
|
9189
|
+
team2: number | null;
|
|
9190
|
+
};
|
|
9191
|
+
succeeded?: boolean | null | undefined;
|
|
9192
|
+
} | null | undefined;
|
|
9193
|
+
}[];
|
|
9194
|
+
metadata?: {
|
|
9195
|
+
page: number;
|
|
9196
|
+
size: number;
|
|
9197
|
+
totalElements: number;
|
|
9198
|
+
totalPages: number;
|
|
9199
|
+
} | undefined;
|
|
9200
|
+
} | undefined;
|
|
9201
|
+
};
|
|
9202
|
+
meta: object;
|
|
9203
|
+
}>;
|
|
9204
|
+
}>>;
|
|
9205
|
+
getActive: import("@trpc/server").TRPCQueryProcedure<{
|
|
9206
|
+
input: void;
|
|
9207
|
+
output: {
|
|
9208
|
+
message: string;
|
|
9209
|
+
success: boolean;
|
|
9210
|
+
data?: {
|
|
9211
|
+
name: string;
|
|
9212
|
+
tag: string;
|
|
9213
|
+
startDate?: Date | null | undefined;
|
|
9214
|
+
endDate?: Date | null | undefined;
|
|
9215
|
+
} | {
|
|
9216
|
+
documents: ({
|
|
9217
|
+
name: string;
|
|
9218
|
+
tag: string;
|
|
9219
|
+
startDate?: Date | null | undefined;
|
|
9220
|
+
endDate?: Date | null | undefined;
|
|
9221
|
+
} | null)[];
|
|
9222
|
+
metadata?: {
|
|
9223
|
+
page: number;
|
|
9224
|
+
size: number;
|
|
9225
|
+
totalElements: number;
|
|
9226
|
+
totalPages: number;
|
|
9227
|
+
} | undefined;
|
|
9228
|
+
} | null | undefined;
|
|
9229
|
+
};
|
|
9230
|
+
meta: object;
|
|
9231
|
+
}>;
|
|
9278
9232
|
}>>;
|
|
9279
9233
|
}>>;
|
|
9280
9234
|
export type MarketingMicroServiceRouter = typeof marketingMicroServiceRouter;
|