@lyxa.ai/marketing 1.0.46 → 1.0.48
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.d.ts.map +1 -1
- package/dist/lib/event/event-initializations.js +2 -0
- package/dist/lib/event/event-initializations.js.map +1 -1
- package/dist/lib/index.d.ts +1414 -13
- package/dist/lib/index.d.ts.map +1 -1
- package/dist/lib/index.js +3 -1
- package/dist/lib/index.js.map +1 -1
- package/dist/lib/modules/coupon/routers/coupon.router.d.ts +72 -6
- package/dist/lib/modules/coupon/routers/coupon.router.d.ts.map +1 -1
- package/dist/lib/modules/coupon/routers/coupon.router.js +12 -3
- package/dist/lib/modules/coupon/routers/coupon.router.js.map +1 -1
- package/dist/lib/modules/coupon/services/coupon.service.d.ts +1 -0
- package/dist/lib/modules/coupon/services/coupon.service.d.ts.map +1 -1
- package/dist/lib/modules/coupon/services/coupon.service.js +102 -4
- package/dist/lib/modules/coupon/services/coupon.service.js.map +1 -1
- package/dist/lib/modules/coupon/services/custom-coupon.service.d.ts +2 -0
- package/dist/lib/modules/coupon/services/custom-coupon.service.d.ts.map +1 -1
- package/dist/lib/modules/coupon/services/custom-coupon.service.js +1 -1
- package/dist/lib/modules/coupon/services/custom-coupon.service.js.map +1 -1
- package/dist/lib/modules/coupon/services/global-coupon.service.d.ts +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 +16 -10
- package/dist/lib/modules/coupon/services/global-coupon.service.js.map +1 -1
- package/dist/lib/modules/coupon/services/helper.service.d.ts +2 -1
- package/dist/lib/modules/coupon/services/helper.service.d.ts.map +1 -1
- package/dist/lib/modules/coupon/services/helper.service.js +7 -1
- package/dist/lib/modules/coupon/services/helper.service.js.map +1 -1
- package/dist/lib/modules/coupon/services/individual-store-coupon.service.d.ts +2 -0
- package/dist/lib/modules/coupon/services/individual-store-coupon.service.d.ts.map +1 -1
- package/dist/lib/modules/coupon/services/individual-store-coupon.service.js +2 -2
- package/dist/lib/modules/coupon/services/individual-store-coupon.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 +6 -0
- package/dist/lib/modules/coupon/services/individual-user-coupon.service.js.map +1 -1
- package/dist/lib/modules/coupon/services/patterns/repository/CouponMetricsRepository.d.ts +10 -4
- package/dist/lib/modules/coupon/services/patterns/repository/CouponMetricsRepository.d.ts.map +1 -1
- package/dist/lib/modules/coupon/services/patterns/repository/CouponMetricsRepository.js +88 -9
- package/dist/lib/modules/coupon/services/patterns/repository/CouponMetricsRepository.js.map +1 -1
- package/dist/lib/modules/coupon/services/patterns/repository/CouponRepository.d.ts.map +1 -1
- package/dist/lib/modules/coupon/services/patterns/repository/CouponRepository.js +20 -1
- package/dist/lib/modules/coupon/services/patterns/repository/CouponRepository.js.map +1 -1
- package/dist/lib/modules/coupon/services/referral-code-coupon.service.d.ts.map +1 -1
- package/dist/lib/modules/coupon/services/referral-code-coupon.service.js +1 -1
- package/dist/lib/modules/coupon/services/referral-code-coupon.service.js.map +1 -1
- package/dist/lib/modules/coupon/services/referral-reward-coupon.service.d.ts +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 +36 -19
- package/dist/lib/modules/coupon/services/referral-reward-coupon.service.js.map +1 -1
- package/dist/lib/modules/coupon/services/shops-categories-coupon.service.d.ts +2 -0
- package/dist/lib/modules/coupon/services/shops-categories-coupon.service.d.ts.map +1 -1
- package/dist/lib/modules/coupon/services/shops-categories-coupon.service.js +2 -2
- package/dist/lib/modules/coupon/services/shops-categories-coupon.service.js.map +1 -1
- package/dist/lib/modules/coupon/validations/coupon.validation.d.ts +359 -34
- package/dist/lib/modules/coupon/validations/coupon.validation.d.ts.map +1 -1
- package/dist/lib/modules/coupon/validations/coupon.validation.js +16 -3
- package/dist/lib/modules/coupon/validations/coupon.validation.js.map +1 -1
- package/dist/lib/modules/limited-time-offer/limited-time-offer.router.d.ts +6 -6
- package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.router.d.ts +6 -6
- package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.validation.d.ts +30 -30
- package/dist/lib/modules/marketing/services/marketing.service.d.ts.map +1 -1
- package/dist/lib/modules/marketing/services/marketing.service.js +8 -2
- package/dist/lib/modules/marketing/services/marketing.service.js.map +1 -1
- package/dist/lib/modules/marketing/services/synchronize-product-marketing.service.d.ts +2 -0
- package/dist/lib/modules/marketing/services/synchronize-product-marketing.service.d.ts.map +1 -1
- package/dist/lib/modules/marketing/services/synchronize-product-marketing.service.js +14 -0
- package/dist/lib/modules/marketing/services/synchronize-product-marketing.service.js.map +1 -1
- package/dist/lib/modules/marketing/validations/buy1-get1-marketing.validation.d.ts +24 -24
- package/dist/lib/modules/marketing/validations/discount-marketing.validation.d.ts +36 -36
- package/dist/lib/modules/marketing/validations/featured-marketing.validation.d.ts +6 -6
- package/dist/lib/modules/marketing/validations/free-delivery-marketing.validation.d.ts +4 -4
- package/dist/lib/modules/marketing/validations/marketing.validation.d.ts +2 -2
- package/dist/lib/modules/marketing/validations/product-marketing.validation.d.ts +7 -7
- package/dist/lib/modules/marketing/validations/punch-marketing.validation.d.ts +4 -4
- package/dist/lib/modules/punch-marketing-history/routers/punch-marketing-history.router.d.ts +1 -1
- package/dist/lib/modules/punch-marketing-history/validations/punch-marketing-history.validation.d.ts +2 -2
- package/dist/lib/modules/tournament/config/config.builder.d.ts +5 -0
- package/dist/lib/modules/tournament/config/config.builder.d.ts.map +1 -0
- package/dist/lib/modules/tournament/config/config.builder.js +19 -0
- package/dist/lib/modules/tournament/config/config.builder.js.map +1 -0
- package/dist/lib/modules/tournament/config/config.repository.d.ts +13 -0
- package/dist/lib/modules/tournament/config/config.repository.d.ts.map +1 -0
- package/dist/lib/modules/tournament/config/config.repository.js +77 -0
- package/dist/lib/modules/tournament/config/config.repository.js.map +1 -0
- package/dist/lib/modules/tournament/config/config.router.d.ts +363 -0
- package/dist/lib/modules/tournament/config/config.router.d.ts.map +1 -0
- package/dist/lib/modules/tournament/config/config.router.js +40 -0
- package/dist/lib/modules/tournament/config/config.router.js.map +1 -0
- package/dist/lib/modules/tournament/config/config.service.d.ts +14 -0
- package/dist/lib/modules/tournament/config/config.service.d.ts.map +1 -0
- package/dist/lib/modules/tournament/config/config.service.js +101 -0
- package/dist/lib/modules/tournament/config/config.service.js.map +1 -0
- package/dist/lib/modules/tournament/config/config.validation.d.ts +1014 -0
- package/dist/lib/modules/tournament/config/config.validation.d.ts.map +1 -0
- package/dist/lib/modules/tournament/config/config.validation.js +70 -0
- package/dist/lib/modules/tournament/config/config.validation.js.map +1 -0
- package/dist/lib/modules/tournament/match/events/match-ended.consumer.d.ts +2 -0
- package/dist/lib/modules/tournament/match/events/match-ended.consumer.d.ts.map +1 -0
- package/dist/lib/modules/tournament/match/events/match-ended.consumer.js +15 -0
- package/dist/lib/modules/tournament/match/events/match-ended.consumer.js.map +1 -0
- package/dist/lib/modules/tournament/match/events/match-ended.event.d.ts +14 -0
- package/dist/lib/modules/tournament/match/events/match-ended.event.d.ts.map +1 -0
- package/dist/lib/modules/tournament/match/events/match-ended.event.js +12 -0
- package/dist/lib/modules/tournament/match/events/match-ended.event.js.map +1 -0
- package/dist/lib/modules/tournament/match/match.builder.d.ts +38 -0
- package/dist/lib/modules/tournament/match/match.builder.d.ts.map +1 -0
- package/dist/lib/modules/tournament/match/match.builder.js +37 -0
- package/dist/lib/modules/tournament/match/match.builder.js.map +1 -0
- package/dist/lib/modules/tournament/match/match.repository.d.ts +13 -0
- package/dist/lib/modules/tournament/match/match.repository.d.ts.map +1 -0
- package/dist/lib/modules/tournament/match/match.repository.js +84 -0
- package/dist/lib/modules/tournament/match/match.repository.js.map +1 -0
- package/dist/lib/modules/tournament/match/match.router.d.ts +489 -0
- package/dist/lib/modules/tournament/match/match.router.d.ts.map +1 -0
- package/dist/lib/modules/tournament/match/match.router.js +56 -0
- package/dist/lib/modules/tournament/match/match.router.js.map +1 -0
- package/dist/lib/modules/tournament/match/match.service.d.ts +29 -0
- package/dist/lib/modules/tournament/match/match.service.d.ts.map +1 -0
- package/dist/lib/modules/tournament/match/match.service.js +193 -0
- package/dist/lib/modules/tournament/match/match.service.js.map +1 -0
- package/dist/lib/modules/tournament/match/match.validation.d.ts +880 -0
- package/dist/lib/modules/tournament/match/match.validation.d.ts.map +1 -0
- package/dist/lib/modules/tournament/match/match.validation.js +74 -0
- package/dist/lib/modules/tournament/match/match.validation.js.map +1 -0
- package/dist/lib/modules/tournament/notification/jobs/notification.producer.d.ts +13 -0
- package/dist/lib/modules/tournament/notification/jobs/notification.producer.d.ts.map +1 -0
- package/dist/lib/modules/tournament/notification/jobs/notification.producer.js +28 -0
- package/dist/lib/modules/tournament/notification/jobs/notification.producer.js.map +1 -0
- package/dist/lib/modules/tournament/notification/jobs/notification.worker.d.ts +7 -0
- package/dist/lib/modules/tournament/notification/jobs/notification.worker.d.ts.map +1 -0
- package/dist/lib/modules/tournament/notification/jobs/notification.worker.js +76 -0
- package/dist/lib/modules/tournament/notification/jobs/notification.worker.js.map +1 -0
- package/dist/lib/modules/tournament/notification/notification.scheduler.service.d.ts +10 -0
- package/dist/lib/modules/tournament/notification/notification.scheduler.service.d.ts.map +1 -0
- package/dist/lib/modules/tournament/notification/notification.scheduler.service.js +86 -0
- package/dist/lib/modules/tournament/notification/notification.scheduler.service.js.map +1 -0
- package/dist/lib/modules/tournament/notification/notification.service.d.ts +11 -0
- package/dist/lib/modules/tournament/notification/notification.service.d.ts.map +1 -0
- package/dist/lib/modules/tournament/notification/notification.service.js +101 -0
- package/dist/lib/modules/tournament/notification/notification.service.js.map +1 -0
- package/dist/lib/modules/tournament/participant/participant.repository.d.ts +12 -0
- package/dist/lib/modules/tournament/participant/participant.repository.d.ts.map +1 -0
- package/dist/lib/modules/tournament/participant/participant.repository.js +73 -0
- package/dist/lib/modules/tournament/participant/participant.repository.js.map +1 -0
- package/dist/lib/modules/tournament/participant/participant.router.d.ts +104 -0
- package/dist/lib/modules/tournament/participant/participant.router.d.ts.map +1 -0
- package/dist/lib/modules/tournament/participant/participant.router.js +28 -0
- package/dist/lib/modules/tournament/participant/participant.router.js.map +1 -0
- package/dist/lib/modules/tournament/participant/participant.service.d.ts +14 -0
- package/dist/lib/modules/tournament/participant/participant.service.d.ts.map +1 -0
- package/dist/lib/modules/tournament/participant/participant.service.js +103 -0
- package/dist/lib/modules/tournament/participant/participant.service.js.map +1 -0
- package/dist/lib/modules/tournament/participant/participant.validation.d.ts +719 -0
- package/dist/lib/modules/tournament/participant/participant.validation.d.ts.map +1 -0
- package/dist/lib/modules/tournament/participant/participant.validation.js +44 -0
- package/dist/lib/modules/tournament/participant/participant.validation.js.map +1 -0
- package/dist/lib/modules/tournament/prediction/prediction.builder.d.ts +14 -0
- package/dist/lib/modules/tournament/prediction/prediction.builder.d.ts.map +1 -0
- package/dist/lib/modules/tournament/prediction/prediction.builder.js +23 -0
- package/dist/lib/modules/tournament/prediction/prediction.builder.js.map +1 -0
- package/dist/lib/modules/tournament/prediction/prediction.repository.d.ts +11 -0
- package/dist/lib/modules/tournament/prediction/prediction.repository.d.ts.map +1 -0
- package/dist/lib/modules/tournament/prediction/prediction.repository.js +73 -0
- package/dist/lib/modules/tournament/prediction/prediction.repository.js.map +1 -0
- package/dist/lib/modules/tournament/prediction/prediction.router.d.ts +133 -0
- package/dist/lib/modules/tournament/prediction/prediction.router.d.ts.map +1 -0
- package/dist/lib/modules/tournament/prediction/prediction.router.js +36 -0
- package/dist/lib/modules/tournament/prediction/prediction.router.js.map +1 -0
- package/dist/lib/modules/tournament/prediction/prediction.service.d.ts +17 -0
- package/dist/lib/modules/tournament/prediction/prediction.service.d.ts.map +1 -0
- package/dist/lib/modules/tournament/prediction/prediction.service.js +125 -0
- package/dist/lib/modules/tournament/prediction/prediction.service.js.map +1 -0
- package/dist/lib/modules/tournament/prediction/prediction.validation.d.ts +575 -0
- package/dist/lib/modules/tournament/prediction/prediction.validation.d.ts.map +1 -0
- package/dist/lib/modules/tournament/prediction/prediction.validation.js +46 -0
- package/dist/lib/modules/tournament/prediction/prediction.validation.js.map +1 -0
- package/dist/lib/modules/tournament/reward/handlers/coupon-reward.handler.d.ts +8 -0
- package/dist/lib/modules/tournament/reward/handlers/coupon-reward.handler.d.ts.map +1 -0
- package/dist/lib/modules/tournament/reward/handlers/coupon-reward.handler.js +65 -0
- package/dist/lib/modules/tournament/reward/handlers/coupon-reward.handler.js.map +1 -0
- package/dist/lib/modules/tournament/reward/reward.factory.d.ts +6 -0
- package/dist/lib/modules/tournament/reward/reward.factory.d.ts.map +1 -0
- package/dist/lib/modules/tournament/reward/reward.factory.js +21 -0
- package/dist/lib/modules/tournament/reward/reward.factory.js.map +1 -0
- package/dist/lib/modules/tournament/reward/reward.interface.d.ts +5 -0
- package/dist/lib/modules/tournament/reward/reward.interface.d.ts.map +1 -0
- package/dist/lib/modules/tournament/reward/reward.interface.js +3 -0
- package/dist/lib/modules/tournament/reward/reward.interface.js.map +1 -0
- package/dist/lib/modules/tournament/reward/reward.service.d.ts +6 -0
- package/dist/lib/modules/tournament/reward/reward.service.d.ts.map +1 -0
- package/dist/lib/modules/tournament/reward/reward.service.js +56 -0
- package/dist/lib/modules/tournament/reward/reward.service.js.map +1 -0
- package/dist/lib/modules/tournament/reward/reward.types.d.ts +11 -0
- package/dist/lib/modules/tournament/reward/reward.types.d.ts.map +1 -0
- package/dist/lib/modules/tournament/reward/reward.types.js +8 -0
- package/dist/lib/modules/tournament/reward/reward.types.js.map +1 -0
- package/dist/lib/modules/tournament/team/team.builder.d.ts +19 -0
- package/dist/lib/modules/tournament/team/team.builder.d.ts.map +1 -0
- package/dist/lib/modules/tournament/team/team.builder.js +18 -0
- package/dist/lib/modules/tournament/team/team.builder.js.map +1 -0
- package/dist/lib/modules/tournament/team/team.repository.d.ts +11 -0
- package/dist/lib/modules/tournament/team/team.repository.d.ts.map +1 -0
- package/dist/lib/modules/tournament/team/team.repository.js +71 -0
- package/dist/lib/modules/tournament/team/team.repository.js.map +1 -0
- package/dist/lib/modules/tournament/team/team.router.d.ts +237 -0
- package/dist/lib/modules/tournament/team/team.router.d.ts.map +1 -0
- package/dist/lib/modules/tournament/team/team.router.js +36 -0
- package/dist/lib/modules/tournament/team/team.router.js.map +1 -0
- package/dist/lib/modules/tournament/team/team.service.d.ts +15 -0
- package/dist/lib/modules/tournament/team/team.service.d.ts.map +1 -0
- package/dist/lib/modules/tournament/team/team.service.js +137 -0
- package/dist/lib/modules/tournament/team/team.service.js.map +1 -0
- package/dist/lib/modules/tournament/team/team.validation.d.ts +986 -0
- package/dist/lib/modules/tournament/team/team.validation.d.ts.map +1 -0
- package/dist/lib/modules/tournament/team/team.validation.js +55 -0
- package/dist/lib/modules/tournament/team/team.validation.js.map +1 -0
- package/dist/lib/modules/tournament/tournament.router.d.ts +1336 -0
- package/dist/lib/modules/tournament/tournament.router.d.ts.map +1 -0
- package/dist/lib/modules/tournament/tournament.router.js +17 -0
- package/dist/lib/modules/tournament/tournament.router.js.map +1 -0
- package/dist/types/event/event-initializations.d.ts.map +1 -1
- package/dist/types/events/event-initializations.d.ts +2 -0
- package/dist/types/events/event-initializations.d.ts.map +1 -0
- package/dist/types/index.d.ts +1414 -13
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/modules/coupon/routers/coupon.router.d.ts +72 -6
- package/dist/types/modules/coupon/routers/coupon.router.d.ts.map +1 -1
- package/dist/types/modules/coupon/services/coupon.service.d.ts +1 -0
- package/dist/types/modules/coupon/services/coupon.service.d.ts.map +1 -1
- package/dist/types/modules/coupon/services/custom-coupon.service.d.ts +2 -0
- package/dist/types/modules/coupon/services/custom-coupon.service.d.ts.map +1 -1
- package/dist/types/modules/coupon/services/global-coupon.service.d.ts +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 +2 -1
- package/dist/types/modules/coupon/services/helper.service.d.ts.map +1 -1
- package/dist/types/modules/coupon/services/individual-store-coupon.service.d.ts +2 -0
- package/dist/types/modules/coupon/services/individual-store-coupon.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/patterns/repository/CouponMetricsRepository.d.ts +10 -4
- package/dist/types/modules/coupon/services/patterns/repository/CouponMetricsRepository.d.ts.map +1 -1
- package/dist/types/modules/coupon/services/patterns/repository/CouponRepository.d.ts.map +1 -1
- package/dist/types/modules/coupon/services/referral-code-coupon.service.d.ts.map +1 -1
- package/dist/types/modules/coupon/services/referral-reward-coupon.service.d.ts +1 -1
- package/dist/types/modules/coupon/services/referral-reward-coupon.service.d.ts.map +1 -1
- package/dist/types/modules/coupon/services/shops-categories-coupon.service.d.ts +2 -0
- package/dist/types/modules/coupon/services/shops-categories-coupon.service.d.ts.map +1 -1
- package/dist/types/modules/coupon/validations/coupon.validation.d.ts +359 -34
- package/dist/types/modules/coupon/validations/coupon.validation.d.ts.map +1 -1
- package/dist/types/modules/limited-time-offer/limited-time-offer.router.d.ts +6 -6
- package/dist/types/modules/limited-time-offer/participant/limited-time-offer-participant.router.d.ts +6 -6
- package/dist/types/modules/limited-time-offer/participant/limited-time-offer-participant.validation.d.ts +30 -30
- package/dist/types/modules/marketing/services/marketing.service.d.ts.map +1 -1
- package/dist/types/modules/marketing/services/synchronize-product-marketing.service.d.ts +2 -0
- package/dist/types/modules/marketing/services/synchronize-product-marketing.service.d.ts.map +1 -1
- package/dist/types/modules/marketing/validations/buy1-get1-marketing.validation.d.ts +24 -24
- package/dist/types/modules/marketing/validations/discount-marketing.validation.d.ts +36 -36
- package/dist/types/modules/marketing/validations/featured-marketing.validation.d.ts +6 -6
- package/dist/types/modules/marketing/validations/free-delivery-marketing.validation.d.ts +4 -4
- package/dist/types/modules/marketing/validations/marketing.validation.d.ts +2 -2
- package/dist/types/modules/marketing/validations/product-marketing.validation.d.ts +7 -7
- package/dist/types/modules/marketing/validations/punch-marketing.validation.d.ts +4 -4
- package/dist/types/modules/punch-marketing-history/routers/punch-marketing-history.router.d.ts +1 -1
- package/dist/types/modules/punch-marketing-history/validations/punch-marketing-history.validation.d.ts +2 -2
- package/dist/types/modules/tournament/config/config.builder.d.ts +5 -0
- package/dist/types/modules/tournament/config/config.builder.d.ts.map +1 -0
- package/dist/types/modules/tournament/config/config.repository.d.ts +13 -0
- package/dist/types/modules/tournament/config/config.repository.d.ts.map +1 -0
- package/dist/types/modules/tournament/config/config.router.d.ts +363 -0
- package/dist/types/modules/tournament/config/config.router.d.ts.map +1 -0
- package/dist/types/modules/tournament/config/config.service.d.ts +14 -0
- package/dist/types/modules/tournament/config/config.service.d.ts.map +1 -0
- package/dist/types/modules/tournament/config/config.validation.d.ts +1014 -0
- package/dist/types/modules/tournament/config/config.validation.d.ts.map +1 -0
- package/dist/types/modules/tournament/config/tournament-config.validation.d.ts +201 -0
- package/dist/types/modules/tournament/config/tournament-config.validation.d.ts.map +1 -0
- package/dist/types/modules/tournament/match/events/match-ended.consumer.d.ts +2 -0
- package/dist/types/modules/tournament/match/events/match-ended.consumer.d.ts.map +1 -0
- package/dist/types/modules/tournament/match/events/match-ended.event.d.ts +14 -0
- package/dist/types/modules/tournament/match/events/match-ended.event.d.ts.map +1 -0
- package/dist/types/modules/tournament/match/match.builder.d.ts +38 -0
- package/dist/types/modules/tournament/match/match.builder.d.ts.map +1 -0
- package/dist/types/modules/tournament/match/match.repository.d.ts +13 -0
- package/dist/types/modules/tournament/match/match.repository.d.ts.map +1 -0
- package/dist/types/modules/tournament/match/match.router.d.ts +489 -0
- package/dist/types/modules/tournament/match/match.router.d.ts.map +1 -0
- package/dist/types/modules/tournament/match/match.service.d.ts +29 -0
- package/dist/types/modules/tournament/match/match.service.d.ts.map +1 -0
- package/dist/types/modules/tournament/match/match.validation.d.ts +880 -0
- package/dist/types/modules/tournament/match/match.validation.d.ts.map +1 -0
- package/dist/types/modules/tournament/notification/jobs/notification.producer.d.ts +13 -0
- package/dist/types/modules/tournament/notification/jobs/notification.producer.d.ts.map +1 -0
- package/dist/types/modules/tournament/notification/jobs/notification.worker.d.ts +7 -0
- package/dist/types/modules/tournament/notification/jobs/notification.worker.d.ts.map +1 -0
- package/dist/types/modules/tournament/notification/notification.scheduler.service.d.ts +10 -0
- package/dist/types/modules/tournament/notification/notification.scheduler.service.d.ts.map +1 -0
- package/dist/types/modules/tournament/notification/notification.service.d.ts +11 -0
- package/dist/types/modules/tournament/notification/notification.service.d.ts.map +1 -0
- package/dist/types/modules/tournament/participant/participant.repository.d.ts +12 -0
- package/dist/types/modules/tournament/participant/participant.repository.d.ts.map +1 -0
- package/dist/types/modules/tournament/participant/participant.router.d.ts +104 -0
- package/dist/types/modules/tournament/participant/participant.router.d.ts.map +1 -0
- package/dist/types/modules/tournament/participant/participant.service.d.ts +14 -0
- package/dist/types/modules/tournament/participant/participant.service.d.ts.map +1 -0
- package/dist/types/modules/tournament/participant/participant.validation.d.ts +719 -0
- package/dist/types/modules/tournament/participant/participant.validation.d.ts.map +1 -0
- package/dist/types/modules/tournament/prediction/prediction.builder.d.ts +14 -0
- package/dist/types/modules/tournament/prediction/prediction.builder.d.ts.map +1 -0
- package/dist/types/modules/tournament/prediction/prediction.repository.d.ts +11 -0
- package/dist/types/modules/tournament/prediction/prediction.repository.d.ts.map +1 -0
- package/dist/types/modules/tournament/prediction/prediction.router.d.ts +133 -0
- package/dist/types/modules/tournament/prediction/prediction.router.d.ts.map +1 -0
- package/dist/types/modules/tournament/prediction/prediction.service.d.ts +17 -0
- package/dist/types/modules/tournament/prediction/prediction.service.d.ts.map +1 -0
- package/dist/types/modules/tournament/prediction/prediction.validation.d.ts +575 -0
- package/dist/types/modules/tournament/prediction/prediction.validation.d.ts.map +1 -0
- package/dist/types/modules/tournament/reward/handlers/coupon-reward.handler.d.ts +8 -0
- package/dist/types/modules/tournament/reward/handlers/coupon-reward.handler.d.ts.map +1 -0
- package/dist/types/modules/tournament/reward/reward.factory.d.ts +6 -0
- package/dist/types/modules/tournament/reward/reward.factory.d.ts.map +1 -0
- package/dist/types/modules/tournament/reward/reward.interface.d.ts +5 -0
- package/dist/types/modules/tournament/reward/reward.interface.d.ts.map +1 -0
- package/dist/types/modules/tournament/reward/reward.service.d.ts +6 -0
- package/dist/types/modules/tournament/reward/reward.service.d.ts.map +1 -0
- package/dist/types/modules/tournament/reward/reward.types.d.ts +11 -0
- package/dist/types/modules/tournament/reward/reward.types.d.ts.map +1 -0
- package/dist/types/modules/tournament/team/team.builder.d.ts +19 -0
- package/dist/types/modules/tournament/team/team.builder.d.ts.map +1 -0
- package/dist/types/modules/tournament/team/team.repository.d.ts +11 -0
- package/dist/types/modules/tournament/team/team.repository.d.ts.map +1 -0
- package/dist/types/modules/tournament/team/team.router.d.ts +237 -0
- package/dist/types/modules/tournament/team/team.router.d.ts.map +1 -0
- package/dist/types/modules/tournament/team/team.service.d.ts +15 -0
- package/dist/types/modules/tournament/team/team.service.d.ts.map +1 -0
- package/dist/types/modules/tournament/team/team.validation.d.ts +986 -0
- package/dist/types/modules/tournament/team/team.validation.d.ts.map +1 -0
- package/dist/types/modules/tournament/tournament.router.d.ts +1336 -0
- package/dist/types/modules/tournament/tournament.router.d.ts.map +1 -0
- package/package.json +3 -3
- package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.service.d.ts +0 -1
- package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.service.d.ts.map +0 -1
- package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.service.js +0 -2
- package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.service.js.map +0 -1
package/dist/lib/index.d.ts
CHANGED
|
@@ -6098,6 +6098,7 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
|
|
|
6098
6098
|
secondaryVendorCut?: number | undefined;
|
|
6099
6099
|
} | undefined;
|
|
6100
6100
|
couponDetails?: Record<string, unknown> | undefined;
|
|
6101
|
+
couponInfo?: Record<string, unknown> | undefined;
|
|
6101
6102
|
} | {
|
|
6102
6103
|
documents: {
|
|
6103
6104
|
message?: string | undefined;
|
|
@@ -6115,6 +6116,7 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
|
|
|
6115
6116
|
secondaryVendorCut?: number | undefined;
|
|
6116
6117
|
} | undefined;
|
|
6117
6118
|
couponDetails?: Record<string, unknown> | undefined;
|
|
6119
|
+
couponInfo?: Record<string, unknown> | undefined;
|
|
6118
6120
|
}[];
|
|
6119
6121
|
metadata?: {
|
|
6120
6122
|
page: number;
|
|
@@ -6155,6 +6157,7 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
|
|
|
6155
6157
|
secondaryVendorCut?: number | undefined;
|
|
6156
6158
|
} | undefined;
|
|
6157
6159
|
couponDetails?: Record<string, unknown> | undefined;
|
|
6160
|
+
couponInfo?: Record<string, unknown> | undefined;
|
|
6158
6161
|
} | {
|
|
6159
6162
|
documents: {
|
|
6160
6163
|
message?: string | undefined;
|
|
@@ -6172,6 +6175,7 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
|
|
|
6172
6175
|
secondaryVendorCut?: number | undefined;
|
|
6173
6176
|
} | undefined;
|
|
6174
6177
|
couponDetails?: Record<string, unknown> | undefined;
|
|
6178
|
+
couponInfo?: Record<string, unknown> | undefined;
|
|
6175
6179
|
}[];
|
|
6176
6180
|
metadata?: {
|
|
6177
6181
|
page: number;
|
|
@@ -6364,9 +6368,29 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
|
|
|
6364
6368
|
itemType?: import("@lyxa.ai/core/dist/utilities/enum").ItemType | undefined;
|
|
6365
6369
|
};
|
|
6366
6370
|
output: {
|
|
6367
|
-
success: boolean;
|
|
6368
6371
|
message: string;
|
|
6369
|
-
|
|
6372
|
+
success: boolean;
|
|
6373
|
+
data?: {
|
|
6374
|
+
categories: string[];
|
|
6375
|
+
series: {
|
|
6376
|
+
name: string;
|
|
6377
|
+
data: number[];
|
|
6378
|
+
}[];
|
|
6379
|
+
} | {
|
|
6380
|
+
documents: {
|
|
6381
|
+
categories: string[];
|
|
6382
|
+
series: {
|
|
6383
|
+
name: string;
|
|
6384
|
+
data: number[];
|
|
6385
|
+
}[];
|
|
6386
|
+
}[];
|
|
6387
|
+
metadata?: {
|
|
6388
|
+
page: number;
|
|
6389
|
+
size: number;
|
|
6390
|
+
totalElements: number;
|
|
6391
|
+
totalPages: number;
|
|
6392
|
+
} | undefined;
|
|
6393
|
+
} | undefined;
|
|
6370
6394
|
};
|
|
6371
6395
|
meta: object;
|
|
6372
6396
|
}>;
|
|
@@ -6378,9 +6402,29 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
|
|
|
6378
6402
|
itemType?: import("@lyxa.ai/core/dist/utilities/enum").ItemType | undefined;
|
|
6379
6403
|
};
|
|
6380
6404
|
output: {
|
|
6381
|
-
success: boolean;
|
|
6382
6405
|
message: string;
|
|
6383
|
-
|
|
6406
|
+
success: boolean;
|
|
6407
|
+
data?: {
|
|
6408
|
+
categories: string[];
|
|
6409
|
+
series: {
|
|
6410
|
+
name: string;
|
|
6411
|
+
data: number[];
|
|
6412
|
+
}[];
|
|
6413
|
+
} | {
|
|
6414
|
+
documents: {
|
|
6415
|
+
categories: string[];
|
|
6416
|
+
series: {
|
|
6417
|
+
name: string;
|
|
6418
|
+
data: number[];
|
|
6419
|
+
}[];
|
|
6420
|
+
}[];
|
|
6421
|
+
metadata?: {
|
|
6422
|
+
page: number;
|
|
6423
|
+
size: number;
|
|
6424
|
+
totalElements: number;
|
|
6425
|
+
totalPages: number;
|
|
6426
|
+
} | undefined;
|
|
6427
|
+
} | undefined;
|
|
6384
6428
|
};
|
|
6385
6429
|
meta: object;
|
|
6386
6430
|
}>;
|
|
@@ -6392,9 +6436,31 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
|
|
|
6392
6436
|
itemType?: import("@lyxa.ai/core/dist/utilities/enum").ItemType | undefined;
|
|
6393
6437
|
};
|
|
6394
6438
|
output: {
|
|
6395
|
-
success: boolean;
|
|
6396
6439
|
message: string;
|
|
6397
|
-
|
|
6440
|
+
success: boolean;
|
|
6441
|
+
data?: {
|
|
6442
|
+
categories: string[];
|
|
6443
|
+
series: {
|
|
6444
|
+
name: string;
|
|
6445
|
+
data: number[];
|
|
6446
|
+
}[];
|
|
6447
|
+
totalProfit?: number | undefined;
|
|
6448
|
+
} | {
|
|
6449
|
+
documents: {
|
|
6450
|
+
categories: string[];
|
|
6451
|
+
series: {
|
|
6452
|
+
name: string;
|
|
6453
|
+
data: number[];
|
|
6454
|
+
}[];
|
|
6455
|
+
totalProfit?: number | undefined;
|
|
6456
|
+
}[];
|
|
6457
|
+
metadata?: {
|
|
6458
|
+
page: number;
|
|
6459
|
+
size: number;
|
|
6460
|
+
totalElements: number;
|
|
6461
|
+
totalPages: number;
|
|
6462
|
+
} | undefined;
|
|
6463
|
+
} | undefined;
|
|
6398
6464
|
};
|
|
6399
6465
|
meta: object;
|
|
6400
6466
|
}>;
|
|
@@ -6419,8 +6485,8 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
|
|
|
6419
6485
|
input: {
|
|
6420
6486
|
user: string | import("mongoose").Types.ObjectId;
|
|
6421
6487
|
shop: string | import("mongoose").Types.ObjectId;
|
|
6422
|
-
minimumOrderValue: number;
|
|
6423
6488
|
marketing: string | import("mongoose").Types.ObjectId;
|
|
6489
|
+
minimumOrderValue: number;
|
|
6424
6490
|
targetOrder: number;
|
|
6425
6491
|
couponValueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
6426
6492
|
couponValue: number;
|
|
@@ -7679,8 +7745,8 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
|
|
|
7679
7745
|
data?: {
|
|
7680
7746
|
_id: string | import("mongoose").Types.ObjectId;
|
|
7681
7747
|
shop: string | import("mongoose").Types.ObjectId;
|
|
7682
|
-
joinedAt: Date;
|
|
7683
7748
|
isEntireMenu: boolean;
|
|
7749
|
+
joinedAt: Date;
|
|
7684
7750
|
campaign: string | import("mongoose").Types.ObjectId;
|
|
7685
7751
|
isOrderCapacityEnabled: boolean;
|
|
7686
7752
|
isWithdrawn: boolean;
|
|
@@ -7695,8 +7761,8 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
|
|
|
7695
7761
|
documents: {
|
|
7696
7762
|
_id: string | import("mongoose").Types.ObjectId;
|
|
7697
7763
|
shop: string | import("mongoose").Types.ObjectId;
|
|
7698
|
-
joinedAt: Date;
|
|
7699
7764
|
isEntireMenu: boolean;
|
|
7765
|
+
joinedAt: Date;
|
|
7700
7766
|
campaign: string | import("mongoose").Types.ObjectId;
|
|
7701
7767
|
isOrderCapacityEnabled: boolean;
|
|
7702
7768
|
isWithdrawn: boolean;
|
|
@@ -7733,8 +7799,8 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
|
|
|
7733
7799
|
data?: {
|
|
7734
7800
|
_id: string | import("mongoose").Types.ObjectId;
|
|
7735
7801
|
shop: string | import("mongoose").Types.ObjectId;
|
|
7736
|
-
joinedAt: Date;
|
|
7737
7802
|
isEntireMenu: boolean;
|
|
7803
|
+
joinedAt: Date;
|
|
7738
7804
|
campaign: string | import("mongoose").Types.ObjectId;
|
|
7739
7805
|
isOrderCapacityEnabled: boolean;
|
|
7740
7806
|
isWithdrawn: boolean;
|
|
@@ -7749,8 +7815,8 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
|
|
|
7749
7815
|
documents: {
|
|
7750
7816
|
_id: string | import("mongoose").Types.ObjectId;
|
|
7751
7817
|
shop: string | import("mongoose").Types.ObjectId;
|
|
7752
|
-
joinedAt: Date;
|
|
7753
7818
|
isEntireMenu: boolean;
|
|
7819
|
+
joinedAt: Date;
|
|
7754
7820
|
campaign: string | import("mongoose").Types.ObjectId;
|
|
7755
7821
|
isOrderCapacityEnabled: boolean;
|
|
7756
7822
|
isWithdrawn: boolean;
|
|
@@ -7797,8 +7863,8 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
|
|
|
7797
7863
|
maxDiscountCaps?: number[] | undefined;
|
|
7798
7864
|
} | undefined;
|
|
7799
7865
|
participant?: {
|
|
7800
|
-
joinedAt: Date;
|
|
7801
7866
|
isEntireMenu: boolean;
|
|
7867
|
+
joinedAt: Date;
|
|
7802
7868
|
isOrderCapacityEnabled: boolean;
|
|
7803
7869
|
productIds?: (string | import("mongoose").Types.ObjectId)[] | undefined;
|
|
7804
7870
|
marketingId?: string | import("mongoose").Types.ObjectId | undefined;
|
|
@@ -7819,8 +7885,8 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
|
|
|
7819
7885
|
maxDiscountCaps?: number[] | undefined;
|
|
7820
7886
|
} | undefined;
|
|
7821
7887
|
participant?: {
|
|
7822
|
-
joinedAt: Date;
|
|
7823
7888
|
isEntireMenu: boolean;
|
|
7889
|
+
joinedAt: Date;
|
|
7824
7890
|
isOrderCapacityEnabled: boolean;
|
|
7825
7891
|
productIds?: (string | import("mongoose").Types.ObjectId)[] | undefined;
|
|
7826
7892
|
marketingId?: string | import("mongoose").Types.ObjectId | undefined;
|
|
@@ -7875,6 +7941,1341 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
|
|
|
7875
7941
|
}>;
|
|
7876
7942
|
}>>;
|
|
7877
7943
|
}>>;
|
|
7944
|
+
tournamentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
7945
|
+
ctx: import("@lyxa.ai/core/dist/libraries/trpc/context").LyxaHTTPContext;
|
|
7946
|
+
meta: object;
|
|
7947
|
+
errorShape: {
|
|
7948
|
+
message: string;
|
|
7949
|
+
data: {
|
|
7950
|
+
stack: undefined;
|
|
7951
|
+
path: undefined;
|
|
7952
|
+
code: import("@trpc/server").TRPC_ERROR_CODE_KEY;
|
|
7953
|
+
httpStatus: number;
|
|
7954
|
+
};
|
|
7955
|
+
stack: undefined;
|
|
7956
|
+
code: import("@trpc/server").TRPC_ERROR_CODE_NUMBER;
|
|
7957
|
+
};
|
|
7958
|
+
transformer: false;
|
|
7959
|
+
}, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
|
|
7960
|
+
config: import("@trpc/server").TRPCBuiltRouter<{
|
|
7961
|
+
ctx: import("@lyxa.ai/core/dist/libraries/trpc/context").LyxaHTTPContext;
|
|
7962
|
+
meta: object;
|
|
7963
|
+
errorShape: {
|
|
7964
|
+
message: string;
|
|
7965
|
+
data: {
|
|
7966
|
+
stack: undefined;
|
|
7967
|
+
path: undefined;
|
|
7968
|
+
code: import("@trpc/server").TRPC_ERROR_CODE_KEY;
|
|
7969
|
+
httpStatus: number;
|
|
7970
|
+
};
|
|
7971
|
+
stack: undefined;
|
|
7972
|
+
code: import("@trpc/server").TRPC_ERROR_CODE_NUMBER;
|
|
7973
|
+
};
|
|
7974
|
+
transformer: false;
|
|
7975
|
+
}, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
|
|
7976
|
+
create: import("@trpc/server").TRPCMutationProcedure<{
|
|
7977
|
+
input: {
|
|
7978
|
+
startDate: string | Date;
|
|
7979
|
+
endDate: string | Date;
|
|
7980
|
+
tag: string;
|
|
7981
|
+
status?: import("@lyxa.ai/core/dist/utilities/enum").Status | undefined;
|
|
7982
|
+
};
|
|
7983
|
+
output: {
|
|
7984
|
+
message: string;
|
|
7985
|
+
success: boolean;
|
|
7986
|
+
data?: {
|
|
7987
|
+
status: import("@lyxa.ai/core/dist/utilities/enum").Status;
|
|
7988
|
+
_id: string | import("mongoose").Types.ObjectId;
|
|
7989
|
+
tag: string;
|
|
7990
|
+
createdAt?: Date | null | undefined;
|
|
7991
|
+
startDate?: Date | null | undefined;
|
|
7992
|
+
endDate?: Date | null | undefined;
|
|
7993
|
+
updatedAt?: Date | null | undefined;
|
|
7994
|
+
matches?: {
|
|
7995
|
+
_id: string | import("mongoose").Types.ObjectId;
|
|
7996
|
+
team1: {
|
|
7997
|
+
name: string;
|
|
7998
|
+
teamId: string | import("mongoose").Types.ObjectId;
|
|
7999
|
+
};
|
|
8000
|
+
team2: {
|
|
8001
|
+
name: string;
|
|
8002
|
+
teamId: string | import("mongoose").Types.ObjectId;
|
|
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;
|
|
8019
|
+
} | {
|
|
8020
|
+
documents: {
|
|
8021
|
+
status: import("@lyxa.ai/core/dist/utilities/enum").Status;
|
|
8022
|
+
_id: string | import("mongoose").Types.ObjectId;
|
|
8023
|
+
tag: string;
|
|
8024
|
+
createdAt?: Date | null | undefined;
|
|
8025
|
+
startDate?: Date | null | undefined;
|
|
8026
|
+
endDate?: Date | null | undefined;
|
|
8027
|
+
updatedAt?: Date | null | undefined;
|
|
8028
|
+
matches?: {
|
|
8029
|
+
_id: string | import("mongoose").Types.ObjectId;
|
|
8030
|
+
team1: {
|
|
8031
|
+
name: string;
|
|
8032
|
+
teamId: string | import("mongoose").Types.ObjectId;
|
|
8033
|
+
};
|
|
8034
|
+
team2: {
|
|
8035
|
+
name: string;
|
|
8036
|
+
teamId: string | import("mongoose").Types.ObjectId;
|
|
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;
|
|
8053
|
+
}[];
|
|
8054
|
+
metadata?: {
|
|
8055
|
+
page: number;
|
|
8056
|
+
size: number;
|
|
8057
|
+
totalElements: number;
|
|
8058
|
+
totalPages: number;
|
|
8059
|
+
} | undefined;
|
|
8060
|
+
} | undefined;
|
|
8061
|
+
};
|
|
8062
|
+
meta: object;
|
|
8063
|
+
}>;
|
|
8064
|
+
getAll: import("@trpc/server").TRPCQueryProcedure<{
|
|
8065
|
+
input: void;
|
|
8066
|
+
output: {
|
|
8067
|
+
message: string;
|
|
8068
|
+
success: boolean;
|
|
8069
|
+
data?: {
|
|
8070
|
+
status: import("@lyxa.ai/core/dist/utilities/enum").Status;
|
|
8071
|
+
_id: string | import("mongoose").Types.ObjectId;
|
|
8072
|
+
tag: string;
|
|
8073
|
+
createdAt?: Date | null | undefined;
|
|
8074
|
+
startDate?: Date | null | undefined;
|
|
8075
|
+
endDate?: Date | null | undefined;
|
|
8076
|
+
updatedAt?: Date | null | undefined;
|
|
8077
|
+
matches?: {
|
|
8078
|
+
_id: string | import("mongoose").Types.ObjectId;
|
|
8079
|
+
team1: {
|
|
8080
|
+
name: string;
|
|
8081
|
+
teamId: string | import("mongoose").Types.ObjectId;
|
|
8082
|
+
};
|
|
8083
|
+
team2: {
|
|
8084
|
+
name: string;
|
|
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;
|
|
8102
|
+
}[] | {
|
|
8103
|
+
documents: {
|
|
8104
|
+
status: import("@lyxa.ai/core/dist/utilities/enum").Status;
|
|
8105
|
+
_id: string | import("mongoose").Types.ObjectId;
|
|
8106
|
+
tag: string;
|
|
8107
|
+
createdAt?: Date | null | undefined;
|
|
8108
|
+
startDate?: Date | null | undefined;
|
|
8109
|
+
endDate?: Date | null | undefined;
|
|
8110
|
+
updatedAt?: Date | null | undefined;
|
|
8111
|
+
matches?: {
|
|
8112
|
+
_id: string | import("mongoose").Types.ObjectId;
|
|
8113
|
+
team1: {
|
|
8114
|
+
name: string;
|
|
8115
|
+
teamId: string | import("mongoose").Types.ObjectId;
|
|
8116
|
+
};
|
|
8117
|
+
team2: {
|
|
8118
|
+
name: string;
|
|
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;
|
|
8136
|
+
}[][];
|
|
8137
|
+
metadata?: {
|
|
8138
|
+
page: number;
|
|
8139
|
+
size: number;
|
|
8140
|
+
totalElements: number;
|
|
8141
|
+
totalPages: number;
|
|
8142
|
+
} | undefined;
|
|
8143
|
+
} | undefined;
|
|
8144
|
+
};
|
|
8145
|
+
meta: object;
|
|
8146
|
+
}>;
|
|
8147
|
+
getById: import("@trpc/server").TRPCQueryProcedure<{
|
|
8148
|
+
input: {
|
|
8149
|
+
tournamentId: string | import("mongoose").Types.ObjectId;
|
|
8150
|
+
};
|
|
8151
|
+
output: {
|
|
8152
|
+
message: string;
|
|
8153
|
+
success: boolean;
|
|
8154
|
+
data?: {
|
|
8155
|
+
status: import("@lyxa.ai/core/dist/utilities/enum").Status;
|
|
8156
|
+
_id: string | import("mongoose").Types.ObjectId;
|
|
8157
|
+
tag: string;
|
|
8158
|
+
createdAt?: Date | null | undefined;
|
|
8159
|
+
startDate?: Date | null | undefined;
|
|
8160
|
+
endDate?: Date | null | undefined;
|
|
8161
|
+
updatedAt?: Date | null | undefined;
|
|
8162
|
+
matches?: {
|
|
8163
|
+
_id: string | import("mongoose").Types.ObjectId;
|
|
8164
|
+
team1: {
|
|
8165
|
+
name: string;
|
|
8166
|
+
teamId: string | import("mongoose").Types.ObjectId;
|
|
8167
|
+
};
|
|
8168
|
+
team2: {
|
|
8169
|
+
name: string;
|
|
8170
|
+
teamId: string | import("mongoose").Types.ObjectId;
|
|
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;
|
|
8187
|
+
} | {
|
|
8188
|
+
documents: {
|
|
8189
|
+
status: import("@lyxa.ai/core/dist/utilities/enum").Status;
|
|
8190
|
+
_id: string | import("mongoose").Types.ObjectId;
|
|
8191
|
+
tag: string;
|
|
8192
|
+
createdAt?: Date | null | undefined;
|
|
8193
|
+
startDate?: Date | null | undefined;
|
|
8194
|
+
endDate?: Date | null | undefined;
|
|
8195
|
+
updatedAt?: Date | null | undefined;
|
|
8196
|
+
matches?: {
|
|
8197
|
+
_id: string | import("mongoose").Types.ObjectId;
|
|
8198
|
+
team1: {
|
|
8199
|
+
name: string;
|
|
8200
|
+
teamId: string | import("mongoose").Types.ObjectId;
|
|
8201
|
+
};
|
|
8202
|
+
team2: {
|
|
8203
|
+
name: string;
|
|
8204
|
+
teamId: string | import("mongoose").Types.ObjectId;
|
|
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;
|
|
8221
|
+
}[];
|
|
8222
|
+
metadata?: {
|
|
8223
|
+
page: number;
|
|
8224
|
+
size: number;
|
|
8225
|
+
totalElements: number;
|
|
8226
|
+
totalPages: number;
|
|
8227
|
+
} | undefined;
|
|
8228
|
+
} | undefined;
|
|
8229
|
+
};
|
|
8230
|
+
meta: object;
|
|
8231
|
+
}>;
|
|
8232
|
+
update: import("@trpc/server").TRPCMutationProcedure<{
|
|
8233
|
+
input: {
|
|
8234
|
+
_id: string | import("mongoose").Types.ObjectId;
|
|
8235
|
+
status?: import("@lyxa.ai/core/dist/utilities/enum").Status | undefined;
|
|
8236
|
+
startDate?: string | Date | undefined;
|
|
8237
|
+
endDate?: string | Date | undefined;
|
|
8238
|
+
tag?: string | undefined;
|
|
8239
|
+
};
|
|
8240
|
+
output: {
|
|
8241
|
+
message: string;
|
|
8242
|
+
success: boolean;
|
|
8243
|
+
data?: {
|
|
8244
|
+
status: import("@lyxa.ai/core/dist/utilities/enum").Status;
|
|
8245
|
+
_id: string | import("mongoose").Types.ObjectId;
|
|
8246
|
+
tag: string;
|
|
8247
|
+
createdAt?: Date | null | undefined;
|
|
8248
|
+
startDate?: Date | null | undefined;
|
|
8249
|
+
endDate?: Date | null | undefined;
|
|
8250
|
+
updatedAt?: Date | null | undefined;
|
|
8251
|
+
matches?: {
|
|
8252
|
+
_id: string | import("mongoose").Types.ObjectId;
|
|
8253
|
+
team1: {
|
|
8254
|
+
name: string;
|
|
8255
|
+
teamId: string | import("mongoose").Types.ObjectId;
|
|
8256
|
+
};
|
|
8257
|
+
team2: {
|
|
8258
|
+
name: string;
|
|
8259
|
+
teamId: string | import("mongoose").Types.ObjectId;
|
|
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;
|
|
8276
|
+
} | {
|
|
8277
|
+
documents: {
|
|
8278
|
+
status: import("@lyxa.ai/core/dist/utilities/enum").Status;
|
|
8279
|
+
_id: string | import("mongoose").Types.ObjectId;
|
|
8280
|
+
tag: string;
|
|
8281
|
+
createdAt?: Date | null | undefined;
|
|
8282
|
+
startDate?: Date | null | undefined;
|
|
8283
|
+
endDate?: Date | null | undefined;
|
|
8284
|
+
updatedAt?: Date | null | undefined;
|
|
8285
|
+
matches?: {
|
|
8286
|
+
_id: string | import("mongoose").Types.ObjectId;
|
|
8287
|
+
team1: {
|
|
8288
|
+
name: string;
|
|
8289
|
+
teamId: string | import("mongoose").Types.ObjectId;
|
|
8290
|
+
};
|
|
8291
|
+
team2: {
|
|
8292
|
+
name: string;
|
|
8293
|
+
teamId: string | import("mongoose").Types.ObjectId;
|
|
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;
|
|
8310
|
+
}[];
|
|
8311
|
+
metadata?: {
|
|
8312
|
+
page: number;
|
|
8313
|
+
size: number;
|
|
8314
|
+
totalElements: number;
|
|
8315
|
+
totalPages: number;
|
|
8316
|
+
} | undefined;
|
|
8317
|
+
} | undefined;
|
|
8318
|
+
};
|
|
8319
|
+
meta: object;
|
|
8320
|
+
}>;
|
|
8321
|
+
}>>;
|
|
8322
|
+
team: import("@trpc/server").TRPCBuiltRouter<{
|
|
8323
|
+
ctx: import("@lyxa.ai/core/dist/libraries/trpc/context").LyxaHTTPContext;
|
|
8324
|
+
meta: object;
|
|
8325
|
+
errorShape: {
|
|
8326
|
+
message: string;
|
|
8327
|
+
data: {
|
|
8328
|
+
stack: undefined;
|
|
8329
|
+
path: undefined;
|
|
8330
|
+
code: import("@trpc/server").TRPC_ERROR_CODE_KEY;
|
|
8331
|
+
httpStatus: number;
|
|
8332
|
+
};
|
|
8333
|
+
stack: undefined;
|
|
8334
|
+
code: import("@trpc/server").TRPC_ERROR_CODE_NUMBER;
|
|
8335
|
+
};
|
|
8336
|
+
transformer: false;
|
|
8337
|
+
}, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
|
|
8338
|
+
add: import("@trpc/server").TRPCMutationProcedure<{
|
|
8339
|
+
input: {
|
|
8340
|
+
tournamentId: string | import("mongoose").Types.ObjectId;
|
|
8341
|
+
teams: {
|
|
8342
|
+
name: string;
|
|
8343
|
+
picture?: string | undefined;
|
|
8344
|
+
}[];
|
|
8345
|
+
};
|
|
8346
|
+
output: {
|
|
8347
|
+
message: string;
|
|
8348
|
+
success: boolean;
|
|
8349
|
+
data?: {
|
|
8350
|
+
status: import("@lyxa.ai/core/dist/utilities/enum").Status;
|
|
8351
|
+
_id: string | import("mongoose").Types.ObjectId;
|
|
8352
|
+
tag: string;
|
|
8353
|
+
createdAt?: Date | null | undefined;
|
|
8354
|
+
startDate?: Date | null | undefined;
|
|
8355
|
+
endDate?: Date | null | undefined;
|
|
8356
|
+
updatedAt?: Date | null | undefined;
|
|
8357
|
+
matches?: {
|
|
8358
|
+
_id: string | import("mongoose").Types.ObjectId;
|
|
8359
|
+
team1: {
|
|
8360
|
+
name: string;
|
|
8361
|
+
teamId: string | import("mongoose").Types.ObjectId;
|
|
8362
|
+
};
|
|
8363
|
+
team2: {
|
|
8364
|
+
name: string;
|
|
8365
|
+
teamId: string | import("mongoose").Types.ObjectId;
|
|
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;
|
|
8382
|
+
} | {
|
|
8383
|
+
documents: {
|
|
8384
|
+
status: import("@lyxa.ai/core/dist/utilities/enum").Status;
|
|
8385
|
+
_id: string | import("mongoose").Types.ObjectId;
|
|
8386
|
+
tag: string;
|
|
8387
|
+
createdAt?: Date | null | undefined;
|
|
8388
|
+
startDate?: Date | null | undefined;
|
|
8389
|
+
endDate?: Date | null | undefined;
|
|
8390
|
+
updatedAt?: Date | null | undefined;
|
|
8391
|
+
matches?: {
|
|
8392
|
+
_id: string | import("mongoose").Types.ObjectId;
|
|
8393
|
+
team1: {
|
|
8394
|
+
name: string;
|
|
8395
|
+
teamId: string | import("mongoose").Types.ObjectId;
|
|
8396
|
+
};
|
|
8397
|
+
team2: {
|
|
8398
|
+
name: string;
|
|
8399
|
+
teamId: string | import("mongoose").Types.ObjectId;
|
|
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;
|
|
8416
|
+
}[];
|
|
8417
|
+
metadata?: {
|
|
8418
|
+
page: number;
|
|
8419
|
+
size: number;
|
|
8420
|
+
totalElements: number;
|
|
8421
|
+
totalPages: number;
|
|
8422
|
+
} | undefined;
|
|
8423
|
+
} | undefined;
|
|
8424
|
+
};
|
|
8425
|
+
meta: object;
|
|
8426
|
+
}>;
|
|
8427
|
+
getAll: import("@trpc/server").TRPCQueryProcedure<{
|
|
8428
|
+
input: {
|
|
8429
|
+
tournamentId: string | import("mongoose").Types.ObjectId;
|
|
8430
|
+
};
|
|
8431
|
+
output: {
|
|
8432
|
+
message: string;
|
|
8433
|
+
success: boolean;
|
|
8434
|
+
data?: {
|
|
8435
|
+
status: import("@lyxa.ai/core/dist/utilities/enum").Status;
|
|
8436
|
+
tag: string;
|
|
8437
|
+
tournamentId: string | import("mongoose").Types.ObjectId;
|
|
8438
|
+
teams: {
|
|
8439
|
+
name: string;
|
|
8440
|
+
_id: string | import("mongoose").Types.ObjectId;
|
|
8441
|
+
picture?: string | undefined;
|
|
8442
|
+
}[];
|
|
8443
|
+
startDate?: Date | null | undefined;
|
|
8444
|
+
endDate?: Date | null | undefined;
|
|
8445
|
+
} | {
|
|
8446
|
+
documents: {
|
|
8447
|
+
status: import("@lyxa.ai/core/dist/utilities/enum").Status;
|
|
8448
|
+
tag: string;
|
|
8449
|
+
tournamentId: string | import("mongoose").Types.ObjectId;
|
|
8450
|
+
teams: {
|
|
8451
|
+
name: string;
|
|
8452
|
+
_id: string | import("mongoose").Types.ObjectId;
|
|
8453
|
+
picture?: string | undefined;
|
|
8454
|
+
}[];
|
|
8455
|
+
startDate?: Date | null | undefined;
|
|
8456
|
+
endDate?: Date | null | undefined;
|
|
8457
|
+
}[];
|
|
8458
|
+
metadata?: {
|
|
8459
|
+
page: number;
|
|
8460
|
+
size: number;
|
|
8461
|
+
totalElements: number;
|
|
8462
|
+
totalPages: number;
|
|
8463
|
+
} | undefined;
|
|
8464
|
+
} | undefined;
|
|
8465
|
+
};
|
|
8466
|
+
meta: object;
|
|
8467
|
+
}>;
|
|
8468
|
+
getMatches: import("@trpc/server").TRPCQueryProcedure<{
|
|
8469
|
+
input: {
|
|
8470
|
+
filter: "completed" | "upcoming";
|
|
8471
|
+
tournamentId: string | import("mongoose").Types.ObjectId;
|
|
8472
|
+
};
|
|
8473
|
+
output: {
|
|
8474
|
+
message: string;
|
|
8475
|
+
success: boolean;
|
|
8476
|
+
data?: {
|
|
8477
|
+
status: import("@lyxa.ai/core/dist/utilities/enum").Status;
|
|
8478
|
+
tag: string;
|
|
8479
|
+
tournamentId: string | import("mongoose").Types.ObjectId;
|
|
8480
|
+
matches: {
|
|
8481
|
+
_id: string | import("mongoose").Types.ObjectId;
|
|
8482
|
+
team1: {
|
|
8483
|
+
name: string;
|
|
8484
|
+
teamId: string | import("mongoose").Types.ObjectId;
|
|
8485
|
+
};
|
|
8486
|
+
team2: {
|
|
8487
|
+
name: string;
|
|
8488
|
+
teamId: string | import("mongoose").Types.ObjectId;
|
|
8489
|
+
};
|
|
8490
|
+
score: {
|
|
8491
|
+
team1: number | null;
|
|
8492
|
+
team2: number | null;
|
|
8493
|
+
};
|
|
8494
|
+
stage: string;
|
|
8495
|
+
prediction: {
|
|
8496
|
+
score: {
|
|
8497
|
+
team1: number | null;
|
|
8498
|
+
team2: number | null;
|
|
8499
|
+
};
|
|
8500
|
+
succeeded: boolean | null;
|
|
8501
|
+
} | null;
|
|
8502
|
+
canPredict: boolean;
|
|
8503
|
+
endDate?: Date | null | undefined;
|
|
8504
|
+
startingDate?: Date | null | undefined;
|
|
8505
|
+
additionalTag?: string | undefined;
|
|
8506
|
+
winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
|
|
8507
|
+
}[];
|
|
8508
|
+
startDate?: Date | null | undefined;
|
|
8509
|
+
endDate?: Date | null | undefined;
|
|
8510
|
+
} | {
|
|
8511
|
+
documents: {
|
|
8512
|
+
status: import("@lyxa.ai/core/dist/utilities/enum").Status;
|
|
8513
|
+
tag: string;
|
|
8514
|
+
tournamentId: string | import("mongoose").Types.ObjectId;
|
|
8515
|
+
matches: {
|
|
8516
|
+
_id: string | import("mongoose").Types.ObjectId;
|
|
8517
|
+
team1: {
|
|
8518
|
+
name: string;
|
|
8519
|
+
teamId: string | import("mongoose").Types.ObjectId;
|
|
8520
|
+
};
|
|
8521
|
+
team2: {
|
|
8522
|
+
name: string;
|
|
8523
|
+
teamId: string | import("mongoose").Types.ObjectId;
|
|
8524
|
+
};
|
|
8525
|
+
score: {
|
|
8526
|
+
team1: number | null;
|
|
8527
|
+
team2: number | null;
|
|
8528
|
+
};
|
|
8529
|
+
stage: string;
|
|
8530
|
+
prediction: {
|
|
8531
|
+
score: {
|
|
8532
|
+
team1: number | null;
|
|
8533
|
+
team2: number | null;
|
|
8534
|
+
};
|
|
8535
|
+
succeeded: boolean | null;
|
|
8536
|
+
} | null;
|
|
8537
|
+
canPredict: boolean;
|
|
8538
|
+
endDate?: Date | null | undefined;
|
|
8539
|
+
startingDate?: Date | null | undefined;
|
|
8540
|
+
additionalTag?: string | undefined;
|
|
8541
|
+
winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
|
|
8542
|
+
}[];
|
|
8543
|
+
startDate?: Date | null | undefined;
|
|
8544
|
+
endDate?: Date | null | undefined;
|
|
8545
|
+
}[];
|
|
8546
|
+
metadata?: {
|
|
8547
|
+
page: number;
|
|
8548
|
+
size: number;
|
|
8549
|
+
totalElements: number;
|
|
8550
|
+
totalPages: number;
|
|
8551
|
+
} | undefined;
|
|
8552
|
+
} | undefined;
|
|
8553
|
+
};
|
|
8554
|
+
meta: object;
|
|
8555
|
+
}>;
|
|
8556
|
+
}>>;
|
|
8557
|
+
match: import("@trpc/server").TRPCBuiltRouter<{
|
|
8558
|
+
ctx: import("@lyxa.ai/core/dist/libraries/trpc/context").LyxaHTTPContext;
|
|
8559
|
+
meta: object;
|
|
8560
|
+
errorShape: {
|
|
8561
|
+
message: string;
|
|
8562
|
+
data: {
|
|
8563
|
+
stack: undefined;
|
|
8564
|
+
path: undefined;
|
|
8565
|
+
code: import("@trpc/server").TRPC_ERROR_CODE_KEY;
|
|
8566
|
+
httpStatus: number;
|
|
8567
|
+
};
|
|
8568
|
+
stack: undefined;
|
|
8569
|
+
code: import("@trpc/server").TRPC_ERROR_CODE_NUMBER;
|
|
8570
|
+
};
|
|
8571
|
+
transformer: false;
|
|
8572
|
+
}, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
|
|
8573
|
+
add: import("@trpc/server").TRPCMutationProcedure<{
|
|
8574
|
+
input: {
|
|
8575
|
+
tournamentId: string | import("mongoose").Types.ObjectId;
|
|
8576
|
+
matches: {
|
|
8577
|
+
stage: string;
|
|
8578
|
+
team1Id: string | import("mongoose").Types.ObjectId;
|
|
8579
|
+
team2Id: string | import("mongoose").Types.ObjectId;
|
|
8580
|
+
startingDate: string | Date;
|
|
8581
|
+
endDate?: string | Date | undefined;
|
|
8582
|
+
additionalTag?: string | undefined;
|
|
8583
|
+
}[];
|
|
8584
|
+
};
|
|
8585
|
+
output: {
|
|
8586
|
+
message: string;
|
|
8587
|
+
success: boolean;
|
|
8588
|
+
data?: {
|
|
8589
|
+
status: import("@lyxa.ai/core/dist/utilities/enum").Status;
|
|
8590
|
+
_id: string | import("mongoose").Types.ObjectId;
|
|
8591
|
+
tag: string;
|
|
8592
|
+
createdAt?: Date | null | undefined;
|
|
8593
|
+
startDate?: Date | null | undefined;
|
|
8594
|
+
endDate?: Date | null | undefined;
|
|
8595
|
+
updatedAt?: Date | null | undefined;
|
|
8596
|
+
matches?: {
|
|
8597
|
+
_id: string | import("mongoose").Types.ObjectId;
|
|
8598
|
+
team1: {
|
|
8599
|
+
name: string;
|
|
8600
|
+
teamId: string | import("mongoose").Types.ObjectId;
|
|
8601
|
+
};
|
|
8602
|
+
team2: {
|
|
8603
|
+
name: string;
|
|
8604
|
+
teamId: string | import("mongoose").Types.ObjectId;
|
|
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;
|
|
8621
|
+
} | {
|
|
8622
|
+
documents: {
|
|
8623
|
+
status: import("@lyxa.ai/core/dist/utilities/enum").Status;
|
|
8624
|
+
_id: string | import("mongoose").Types.ObjectId;
|
|
8625
|
+
tag: string;
|
|
8626
|
+
createdAt?: Date | null | undefined;
|
|
8627
|
+
startDate?: Date | null | undefined;
|
|
8628
|
+
endDate?: Date | null | undefined;
|
|
8629
|
+
updatedAt?: Date | null | undefined;
|
|
8630
|
+
matches?: {
|
|
8631
|
+
_id: string | import("mongoose").Types.ObjectId;
|
|
8632
|
+
team1: {
|
|
8633
|
+
name: string;
|
|
8634
|
+
teamId: string | import("mongoose").Types.ObjectId;
|
|
8635
|
+
};
|
|
8636
|
+
team2: {
|
|
8637
|
+
name: string;
|
|
8638
|
+
teamId: string | import("mongoose").Types.ObjectId;
|
|
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;
|
|
8655
|
+
}[];
|
|
8656
|
+
metadata?: {
|
|
8657
|
+
page: number;
|
|
8658
|
+
size: number;
|
|
8659
|
+
totalElements: number;
|
|
8660
|
+
totalPages: number;
|
|
8661
|
+
} | undefined;
|
|
8662
|
+
} | undefined;
|
|
8663
|
+
};
|
|
8664
|
+
meta: object;
|
|
8665
|
+
}>;
|
|
8666
|
+
getAll: import("@trpc/server").TRPCQueryProcedure<{
|
|
8667
|
+
input: {
|
|
8668
|
+
tournamentId: string | import("mongoose").Types.ObjectId;
|
|
8669
|
+
};
|
|
8670
|
+
output: {
|
|
8671
|
+
message: string;
|
|
8672
|
+
success: boolean;
|
|
8673
|
+
data?: {
|
|
8674
|
+
_id: string | import("mongoose").Types.ObjectId;
|
|
8675
|
+
team1: {
|
|
8676
|
+
name: string;
|
|
8677
|
+
teamId: string | import("mongoose").Types.ObjectId;
|
|
8678
|
+
};
|
|
8679
|
+
team2: {
|
|
8680
|
+
name: string;
|
|
8681
|
+
teamId: string | import("mongoose").Types.ObjectId;
|
|
8682
|
+
};
|
|
8683
|
+
score: {
|
|
8684
|
+
team1: number | null;
|
|
8685
|
+
team2: number | null;
|
|
8686
|
+
};
|
|
8687
|
+
stage: string;
|
|
8688
|
+
endDate?: Date | null | undefined;
|
|
8689
|
+
startingDate?: Date | null | undefined;
|
|
8690
|
+
additionalTag?: string | undefined;
|
|
8691
|
+
winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
|
|
8692
|
+
prediction?: {
|
|
8693
|
+
score: {
|
|
8694
|
+
team1: number | null;
|
|
8695
|
+
team2: number | null;
|
|
8696
|
+
};
|
|
8697
|
+
succeeded?: boolean | null | undefined;
|
|
8698
|
+
} | null | undefined;
|
|
8699
|
+
}[] | {
|
|
8700
|
+
documents: {
|
|
8701
|
+
_id: string | import("mongoose").Types.ObjectId;
|
|
8702
|
+
team1: {
|
|
8703
|
+
name: string;
|
|
8704
|
+
teamId: string | import("mongoose").Types.ObjectId;
|
|
8705
|
+
};
|
|
8706
|
+
team2: {
|
|
8707
|
+
name: string;
|
|
8708
|
+
teamId: string | import("mongoose").Types.ObjectId;
|
|
8709
|
+
};
|
|
8710
|
+
score: {
|
|
8711
|
+
team1: number | null;
|
|
8712
|
+
team2: number | null;
|
|
8713
|
+
};
|
|
8714
|
+
stage: string;
|
|
8715
|
+
endDate?: Date | null | undefined;
|
|
8716
|
+
startingDate?: Date | null | undefined;
|
|
8717
|
+
additionalTag?: string | undefined;
|
|
8718
|
+
winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
|
|
8719
|
+
prediction?: {
|
|
8720
|
+
score: {
|
|
8721
|
+
team1: number | null;
|
|
8722
|
+
team2: number | null;
|
|
8723
|
+
};
|
|
8724
|
+
succeeded?: boolean | null | undefined;
|
|
8725
|
+
} | null | undefined;
|
|
8726
|
+
}[][];
|
|
8727
|
+
metadata?: {
|
|
8728
|
+
page: number;
|
|
8729
|
+
size: number;
|
|
8730
|
+
totalElements: number;
|
|
8731
|
+
totalPages: number;
|
|
8732
|
+
} | undefined;
|
|
8733
|
+
} | undefined;
|
|
8734
|
+
};
|
|
8735
|
+
meta: object;
|
|
8736
|
+
}>;
|
|
8737
|
+
start: import("@trpc/server").TRPCMutationProcedure<{
|
|
8738
|
+
input: {
|
|
8739
|
+
tournamentId: string | import("mongoose").Types.ObjectId;
|
|
8740
|
+
matchId: string | import("mongoose").Types.ObjectId;
|
|
8741
|
+
};
|
|
8742
|
+
output: {
|
|
8743
|
+
message: string;
|
|
8744
|
+
success: boolean;
|
|
8745
|
+
data?: {
|
|
8746
|
+
_id: string | import("mongoose").Types.ObjectId;
|
|
8747
|
+
team1: {
|
|
8748
|
+
name: string;
|
|
8749
|
+
teamId: string | import("mongoose").Types.ObjectId;
|
|
8750
|
+
};
|
|
8751
|
+
team2: {
|
|
8752
|
+
name: string;
|
|
8753
|
+
teamId: string | import("mongoose").Types.ObjectId;
|
|
8754
|
+
};
|
|
8755
|
+
score: {
|
|
8756
|
+
team1: number | null;
|
|
8757
|
+
team2: number | null;
|
|
8758
|
+
};
|
|
8759
|
+
stage: string;
|
|
8760
|
+
endDate?: Date | null | undefined;
|
|
8761
|
+
startingDate?: Date | null | undefined;
|
|
8762
|
+
additionalTag?: string | undefined;
|
|
8763
|
+
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
|
+
startingDate?: Date | null | undefined;
|
|
8837
|
+
additionalTag?: string | undefined;
|
|
8838
|
+
winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
|
|
8839
|
+
prediction?: {
|
|
8840
|
+
score: {
|
|
8841
|
+
team1: number | null;
|
|
8842
|
+
team2: number | null;
|
|
8843
|
+
};
|
|
8844
|
+
succeeded?: boolean | null | undefined;
|
|
8845
|
+
} | null | undefined;
|
|
8846
|
+
} | {
|
|
8847
|
+
documents: {
|
|
8848
|
+
_id: string | import("mongoose").Types.ObjectId;
|
|
8849
|
+
team1: {
|
|
8850
|
+
name: string;
|
|
8851
|
+
teamId: string | import("mongoose").Types.ObjectId;
|
|
8852
|
+
};
|
|
8853
|
+
team2: {
|
|
8854
|
+
name: string;
|
|
8855
|
+
teamId: string | import("mongoose").Types.ObjectId;
|
|
8856
|
+
};
|
|
8857
|
+
score: {
|
|
8858
|
+
team1: number | null;
|
|
8859
|
+
team2: number | null;
|
|
8860
|
+
};
|
|
8861
|
+
stage: string;
|
|
8862
|
+
endDate?: Date | null | undefined;
|
|
8863
|
+
startingDate?: Date | null | undefined;
|
|
8864
|
+
additionalTag?: string | undefined;
|
|
8865
|
+
winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
|
|
8866
|
+
prediction?: {
|
|
8867
|
+
score: {
|
|
8868
|
+
team1: number | null;
|
|
8869
|
+
team2: number | null;
|
|
8870
|
+
};
|
|
8871
|
+
succeeded?: boolean | null | undefined;
|
|
8872
|
+
} | null | undefined;
|
|
8873
|
+
}[];
|
|
8874
|
+
metadata?: {
|
|
8875
|
+
page: number;
|
|
8876
|
+
size: number;
|
|
8877
|
+
totalElements: number;
|
|
8878
|
+
totalPages: number;
|
|
8879
|
+
} | undefined;
|
|
8880
|
+
} | undefined;
|
|
8881
|
+
};
|
|
8882
|
+
meta: object;
|
|
8883
|
+
}>;
|
|
8884
|
+
end: import("@trpc/server").TRPCMutationProcedure<{
|
|
8885
|
+
input: {
|
|
8886
|
+
tournamentId: string | import("mongoose").Types.ObjectId;
|
|
8887
|
+
matchId: string | import("mongoose").Types.ObjectId;
|
|
8888
|
+
endDate?: string | Date | undefined;
|
|
8889
|
+
winnerId?: string | import("mongoose").Types.ObjectId | undefined;
|
|
8890
|
+
};
|
|
8891
|
+
output: {
|
|
8892
|
+
message: string;
|
|
8893
|
+
success: boolean;
|
|
8894
|
+
data?: {
|
|
8895
|
+
_id: string | import("mongoose").Types.ObjectId;
|
|
8896
|
+
team1: {
|
|
8897
|
+
name: string;
|
|
8898
|
+
teamId: string | import("mongoose").Types.ObjectId;
|
|
8899
|
+
};
|
|
8900
|
+
team2: {
|
|
8901
|
+
name: string;
|
|
8902
|
+
teamId: string | import("mongoose").Types.ObjectId;
|
|
8903
|
+
};
|
|
8904
|
+
score: {
|
|
8905
|
+
team1: number | null;
|
|
8906
|
+
team2: number | null;
|
|
8907
|
+
};
|
|
8908
|
+
stage: string;
|
|
8909
|
+
endDate?: Date | null | undefined;
|
|
8910
|
+
startingDate?: Date | null | undefined;
|
|
8911
|
+
additionalTag?: string | undefined;
|
|
8912
|
+
winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
|
|
8913
|
+
prediction?: {
|
|
8914
|
+
score: {
|
|
8915
|
+
team1: number | null;
|
|
8916
|
+
team2: number | null;
|
|
8917
|
+
};
|
|
8918
|
+
succeeded?: boolean | null | undefined;
|
|
8919
|
+
} | null | undefined;
|
|
8920
|
+
} | {
|
|
8921
|
+
documents: {
|
|
8922
|
+
_id: string | import("mongoose").Types.ObjectId;
|
|
8923
|
+
team1: {
|
|
8924
|
+
name: string;
|
|
8925
|
+
teamId: string | import("mongoose").Types.ObjectId;
|
|
8926
|
+
};
|
|
8927
|
+
team2: {
|
|
8928
|
+
name: string;
|
|
8929
|
+
teamId: string | import("mongoose").Types.ObjectId;
|
|
8930
|
+
};
|
|
8931
|
+
score: {
|
|
8932
|
+
team1: number | null;
|
|
8933
|
+
team2: number | null;
|
|
8934
|
+
};
|
|
8935
|
+
stage: string;
|
|
8936
|
+
endDate?: Date | null | undefined;
|
|
8937
|
+
startingDate?: Date | null | undefined;
|
|
8938
|
+
additionalTag?: string | undefined;
|
|
8939
|
+
winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
|
|
8940
|
+
prediction?: {
|
|
8941
|
+
score: {
|
|
8942
|
+
team1: number | null;
|
|
8943
|
+
team2: number | null;
|
|
8944
|
+
};
|
|
8945
|
+
succeeded?: boolean | null | undefined;
|
|
8946
|
+
} | null | undefined;
|
|
8947
|
+
}[];
|
|
8948
|
+
metadata?: {
|
|
8949
|
+
page: number;
|
|
8950
|
+
size: number;
|
|
8951
|
+
totalElements: number;
|
|
8952
|
+
totalPages: number;
|
|
8953
|
+
} | undefined;
|
|
8954
|
+
} | undefined;
|
|
8955
|
+
};
|
|
8956
|
+
meta: object;
|
|
8957
|
+
}>;
|
|
8958
|
+
delete: import("@trpc/server").TRPCMutationProcedure<{
|
|
8959
|
+
input: {
|
|
8960
|
+
tournamentId: string | import("mongoose").Types.ObjectId;
|
|
8961
|
+
matchId: string | import("mongoose").Types.ObjectId;
|
|
8962
|
+
};
|
|
8963
|
+
output: {
|
|
8964
|
+
message: string;
|
|
8965
|
+
success: boolean;
|
|
8966
|
+
data?: {
|
|
8967
|
+
status: import("@lyxa.ai/core/dist/utilities/enum").Status;
|
|
8968
|
+
_id: string | import("mongoose").Types.ObjectId;
|
|
8969
|
+
tag: string;
|
|
8970
|
+
createdAt?: Date | null | undefined;
|
|
8971
|
+
startDate?: Date | null | undefined;
|
|
8972
|
+
endDate?: Date | null | undefined;
|
|
8973
|
+
updatedAt?: Date | null | undefined;
|
|
8974
|
+
matches?: {
|
|
8975
|
+
_id: string | import("mongoose").Types.ObjectId;
|
|
8976
|
+
team1: {
|
|
8977
|
+
name: string;
|
|
8978
|
+
teamId: string | import("mongoose").Types.ObjectId;
|
|
8979
|
+
};
|
|
8980
|
+
team2: {
|
|
8981
|
+
name: string;
|
|
8982
|
+
teamId: string | import("mongoose").Types.ObjectId;
|
|
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;
|
|
8999
|
+
} | {
|
|
9000
|
+
documents: {
|
|
9001
|
+
status: import("@lyxa.ai/core/dist/utilities/enum").Status;
|
|
9002
|
+
_id: string | import("mongoose").Types.ObjectId;
|
|
9003
|
+
tag: string;
|
|
9004
|
+
createdAt?: Date | null | undefined;
|
|
9005
|
+
startDate?: Date | null | undefined;
|
|
9006
|
+
endDate?: Date | null | undefined;
|
|
9007
|
+
updatedAt?: Date | null | undefined;
|
|
9008
|
+
matches?: {
|
|
9009
|
+
_id: string | import("mongoose").Types.ObjectId;
|
|
9010
|
+
team1: {
|
|
9011
|
+
name: string;
|
|
9012
|
+
teamId: string | import("mongoose").Types.ObjectId;
|
|
9013
|
+
};
|
|
9014
|
+
team2: {
|
|
9015
|
+
name: string;
|
|
9016
|
+
teamId: string | import("mongoose").Types.ObjectId;
|
|
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;
|
|
9033
|
+
}[];
|
|
9034
|
+
metadata?: {
|
|
9035
|
+
page: number;
|
|
9036
|
+
size: number;
|
|
9037
|
+
totalElements: number;
|
|
9038
|
+
totalPages: number;
|
|
9039
|
+
} | undefined;
|
|
9040
|
+
} | undefined;
|
|
9041
|
+
};
|
|
9042
|
+
meta: object;
|
|
9043
|
+
}>;
|
|
9044
|
+
}>>;
|
|
9045
|
+
participant: import("@trpc/server").TRPCBuiltRouter<{
|
|
9046
|
+
ctx: import("@lyxa.ai/core/dist/libraries/trpc/context").LyxaHTTPContext;
|
|
9047
|
+
meta: object;
|
|
9048
|
+
errorShape: {
|
|
9049
|
+
message: string;
|
|
9050
|
+
data: {
|
|
9051
|
+
stack: undefined;
|
|
9052
|
+
path: undefined;
|
|
9053
|
+
code: import("@trpc/server").TRPC_ERROR_CODE_KEY;
|
|
9054
|
+
httpStatus: number;
|
|
9055
|
+
};
|
|
9056
|
+
stack: undefined;
|
|
9057
|
+
code: import("@trpc/server").TRPC_ERROR_CODE_NUMBER;
|
|
9058
|
+
};
|
|
9059
|
+
transformer: false;
|
|
9060
|
+
}, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
|
|
9061
|
+
join: import("@trpc/server").TRPCMutationProcedure<{
|
|
9062
|
+
input: {
|
|
9063
|
+
teamId: string | import("mongoose").Types.ObjectId;
|
|
9064
|
+
tournamentId: string | import("mongoose").Types.ObjectId;
|
|
9065
|
+
};
|
|
9066
|
+
output: {
|
|
9067
|
+
message: string;
|
|
9068
|
+
success: boolean;
|
|
9069
|
+
data?: {
|
|
9070
|
+
_id: string | import("mongoose").Types.ObjectId;
|
|
9071
|
+
teamId: string | import("mongoose").Types.ObjectId;
|
|
9072
|
+
tournamentId: string | import("mongoose").Types.ObjectId;
|
|
9073
|
+
createdAt?: Date | null | undefined;
|
|
9074
|
+
} | {
|
|
9075
|
+
documents: {
|
|
9076
|
+
_id: string | import("mongoose").Types.ObjectId;
|
|
9077
|
+
teamId: string | import("mongoose").Types.ObjectId;
|
|
9078
|
+
tournamentId: string | import("mongoose").Types.ObjectId;
|
|
9079
|
+
createdAt?: Date | null | undefined;
|
|
9080
|
+
}[];
|
|
9081
|
+
metadata?: {
|
|
9082
|
+
page: number;
|
|
9083
|
+
size: number;
|
|
9084
|
+
totalElements: number;
|
|
9085
|
+
totalPages: number;
|
|
9086
|
+
} | undefined;
|
|
9087
|
+
} | undefined;
|
|
9088
|
+
};
|
|
9089
|
+
meta: object;
|
|
9090
|
+
}>;
|
|
9091
|
+
getAll: import("@trpc/server").TRPCQueryProcedure<{
|
|
9092
|
+
input: {
|
|
9093
|
+
tournamentId: string | import("mongoose").Types.ObjectId;
|
|
9094
|
+
};
|
|
9095
|
+
output: {
|
|
9096
|
+
message: string;
|
|
9097
|
+
success: boolean;
|
|
9098
|
+
data?: {
|
|
9099
|
+
_id: string | import("mongoose").Types.ObjectId;
|
|
9100
|
+
userId: string | import("mongoose").Types.ObjectId;
|
|
9101
|
+
teamId: string | import("mongoose").Types.ObjectId;
|
|
9102
|
+
tournamentId: string | import("mongoose").Types.ObjectId;
|
|
9103
|
+
createdAt?: Date | null | undefined;
|
|
9104
|
+
updatedAt?: Date | null | undefined;
|
|
9105
|
+
predictions?: {
|
|
9106
|
+
_id: string | import("mongoose").Types.ObjectId;
|
|
9107
|
+
score: {
|
|
9108
|
+
team1: number | null;
|
|
9109
|
+
team2: number | null;
|
|
9110
|
+
};
|
|
9111
|
+
matchId: string | import("mongoose").Types.ObjectId;
|
|
9112
|
+
coupon?: string | import("mongoose").Types.ObjectId | undefined;
|
|
9113
|
+
succeeded?: boolean | null | undefined;
|
|
9114
|
+
predictionTime?: Date | null | undefined;
|
|
9115
|
+
}[] | undefined;
|
|
9116
|
+
}[] | {
|
|
9117
|
+
documents: {
|
|
9118
|
+
_id: string | import("mongoose").Types.ObjectId;
|
|
9119
|
+
userId: string | import("mongoose").Types.ObjectId;
|
|
9120
|
+
teamId: string | import("mongoose").Types.ObjectId;
|
|
9121
|
+
tournamentId: string | import("mongoose").Types.ObjectId;
|
|
9122
|
+
createdAt?: Date | null | undefined;
|
|
9123
|
+
updatedAt?: Date | null | undefined;
|
|
9124
|
+
predictions?: {
|
|
9125
|
+
_id: string | import("mongoose").Types.ObjectId;
|
|
9126
|
+
score: {
|
|
9127
|
+
team1: number | null;
|
|
9128
|
+
team2: number | null;
|
|
9129
|
+
};
|
|
9130
|
+
matchId: string | import("mongoose").Types.ObjectId;
|
|
9131
|
+
coupon?: string | import("mongoose").Types.ObjectId | undefined;
|
|
9132
|
+
succeeded?: boolean | null | undefined;
|
|
9133
|
+
predictionTime?: Date | null | undefined;
|
|
9134
|
+
}[] | undefined;
|
|
9135
|
+
}[][];
|
|
9136
|
+
metadata?: {
|
|
9137
|
+
page: number;
|
|
9138
|
+
size: number;
|
|
9139
|
+
totalElements: number;
|
|
9140
|
+
totalPages: number;
|
|
9141
|
+
} | undefined;
|
|
9142
|
+
} | undefined;
|
|
9143
|
+
};
|
|
9144
|
+
meta: object;
|
|
9145
|
+
}>;
|
|
9146
|
+
}>>;
|
|
9147
|
+
prediction: import("@trpc/server").TRPCBuiltRouter<{
|
|
9148
|
+
ctx: import("@lyxa.ai/core/dist/libraries/trpc/context").LyxaHTTPContext;
|
|
9149
|
+
meta: object;
|
|
9150
|
+
errorShape: {
|
|
9151
|
+
message: string;
|
|
9152
|
+
data: {
|
|
9153
|
+
stack: undefined;
|
|
9154
|
+
path: undefined;
|
|
9155
|
+
code: import("@trpc/server").TRPC_ERROR_CODE_KEY;
|
|
9156
|
+
httpStatus: number;
|
|
9157
|
+
};
|
|
9158
|
+
stack: undefined;
|
|
9159
|
+
code: import("@trpc/server").TRPC_ERROR_CODE_NUMBER;
|
|
9160
|
+
};
|
|
9161
|
+
transformer: false;
|
|
9162
|
+
}, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
|
|
9163
|
+
create: import("@trpc/server").TRPCMutationProcedure<{
|
|
9164
|
+
input: {
|
|
9165
|
+
score: {
|
|
9166
|
+
team1: number;
|
|
9167
|
+
team2: number;
|
|
9168
|
+
};
|
|
9169
|
+
tournamentId: string | import("mongoose").Types.ObjectId;
|
|
9170
|
+
matchId: string | import("mongoose").Types.ObjectId;
|
|
9171
|
+
};
|
|
9172
|
+
output: {
|
|
9173
|
+
message: string;
|
|
9174
|
+
success: boolean;
|
|
9175
|
+
data?: {
|
|
9176
|
+
_id: string | import("mongoose").Types.ObjectId;
|
|
9177
|
+
score: {
|
|
9178
|
+
team1: number | null;
|
|
9179
|
+
team2: number | null;
|
|
9180
|
+
};
|
|
9181
|
+
matchId: string | import("mongoose").Types.ObjectId;
|
|
9182
|
+
} | {
|
|
9183
|
+
documents: {
|
|
9184
|
+
_id: string | import("mongoose").Types.ObjectId;
|
|
9185
|
+
score: {
|
|
9186
|
+
team1: number | null;
|
|
9187
|
+
team2: number | null;
|
|
9188
|
+
};
|
|
9189
|
+
matchId: string | import("mongoose").Types.ObjectId;
|
|
9190
|
+
}[];
|
|
9191
|
+
metadata?: {
|
|
9192
|
+
page: number;
|
|
9193
|
+
size: number;
|
|
9194
|
+
totalElements: number;
|
|
9195
|
+
totalPages: number;
|
|
9196
|
+
} | undefined;
|
|
9197
|
+
} | undefined;
|
|
9198
|
+
};
|
|
9199
|
+
meta: object;
|
|
9200
|
+
}>;
|
|
9201
|
+
edit: import("@trpc/server").TRPCMutationProcedure<{
|
|
9202
|
+
input: {
|
|
9203
|
+
score: {
|
|
9204
|
+
team1: number;
|
|
9205
|
+
team2: number;
|
|
9206
|
+
};
|
|
9207
|
+
tournamentId: string | import("mongoose").Types.ObjectId;
|
|
9208
|
+
matchId: string | import("mongoose").Types.ObjectId;
|
|
9209
|
+
};
|
|
9210
|
+
output: {
|
|
9211
|
+
message: string;
|
|
9212
|
+
success: boolean;
|
|
9213
|
+
data?: {
|
|
9214
|
+
_id: string | import("mongoose").Types.ObjectId;
|
|
9215
|
+
score: {
|
|
9216
|
+
team1: number | null;
|
|
9217
|
+
team2: number | null;
|
|
9218
|
+
};
|
|
9219
|
+
matchId: string | import("mongoose").Types.ObjectId;
|
|
9220
|
+
} | {
|
|
9221
|
+
documents: {
|
|
9222
|
+
_id: string | import("mongoose").Types.ObjectId;
|
|
9223
|
+
score: {
|
|
9224
|
+
team1: number | null;
|
|
9225
|
+
team2: number | null;
|
|
9226
|
+
};
|
|
9227
|
+
matchId: string | import("mongoose").Types.ObjectId;
|
|
9228
|
+
}[];
|
|
9229
|
+
metadata?: {
|
|
9230
|
+
page: number;
|
|
9231
|
+
size: number;
|
|
9232
|
+
totalElements: number;
|
|
9233
|
+
totalPages: number;
|
|
9234
|
+
} | undefined;
|
|
9235
|
+
} | undefined;
|
|
9236
|
+
};
|
|
9237
|
+
meta: object;
|
|
9238
|
+
}>;
|
|
9239
|
+
get: import("@trpc/server").TRPCQueryProcedure<{
|
|
9240
|
+
input: {
|
|
9241
|
+
tournamentId: string | import("mongoose").Types.ObjectId;
|
|
9242
|
+
matchId: string | import("mongoose").Types.ObjectId;
|
|
9243
|
+
};
|
|
9244
|
+
output: {
|
|
9245
|
+
message: string;
|
|
9246
|
+
success: boolean;
|
|
9247
|
+
data?: {
|
|
9248
|
+
_id: string | import("mongoose").Types.ObjectId;
|
|
9249
|
+
score: {
|
|
9250
|
+
team1: number | null;
|
|
9251
|
+
team2: number | null;
|
|
9252
|
+
};
|
|
9253
|
+
matchId: string | import("mongoose").Types.ObjectId;
|
|
9254
|
+
succeeded?: boolean | null | undefined;
|
|
9255
|
+
predictionTime?: Date | null | undefined;
|
|
9256
|
+
} | {
|
|
9257
|
+
documents: ({
|
|
9258
|
+
_id: string | import("mongoose").Types.ObjectId;
|
|
9259
|
+
score: {
|
|
9260
|
+
team1: number | null;
|
|
9261
|
+
team2: number | null;
|
|
9262
|
+
};
|
|
9263
|
+
matchId: string | import("mongoose").Types.ObjectId;
|
|
9264
|
+
succeeded?: boolean | null | undefined;
|
|
9265
|
+
predictionTime?: Date | null | undefined;
|
|
9266
|
+
} | null)[];
|
|
9267
|
+
metadata?: {
|
|
9268
|
+
page: number;
|
|
9269
|
+
size: number;
|
|
9270
|
+
totalElements: number;
|
|
9271
|
+
totalPages: number;
|
|
9272
|
+
} | undefined;
|
|
9273
|
+
} | null | undefined;
|
|
9274
|
+
};
|
|
9275
|
+
meta: object;
|
|
9276
|
+
}>;
|
|
9277
|
+
}>>;
|
|
9278
|
+
}>>;
|
|
7878
9279
|
}>>;
|
|
7879
9280
|
export type MarketingMicroServiceRouter = typeof marketingMicroServiceRouter;
|
|
7880
9281
|
export {};
|