@lyxa.ai/marketing 1.0.47 → 1.0.49
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 +1102 -28
- 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 +4 -0
- package/dist/lib/modules/coupon/routers/coupon.router.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 +1 -1
- 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 +18 -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 +9 -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 +8 -0
- package/dist/lib/modules/coupon/services/individual-user-coupon.service.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 +23 -15
- 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 +13 -0
- package/dist/lib/modules/coupon/validations/coupon.validation.d.ts.map +1 -1
- package/dist/lib/modules/coupon/validations/coupon.validation.js +1 -0
- package/dist/lib/modules/coupon/validations/coupon.validation.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 +16 -27
- package/dist/lib/modules/limited-time-offer/limited-time-offer.router.d.ts.map +1 -1
- 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 +18 -18
- package/dist/lib/modules/marketing/validations/discount-marketing.validation.d.ts +30 -30
- 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 +5 -5
- 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 +23 -0
- package/dist/lib/modules/tournament/config/config.builder.js.map +1 -0
- package/dist/lib/modules/tournament/config/config.repository.d.ts +14 -0
- package/dist/lib/modules/tournament/config/config.repository.d.ts.map +1 -0
- package/dist/lib/modules/tournament/config/config.repository.js +83 -0
- package/dist/lib/modules/tournament/config/config.repository.js.map +1 -0
- package/dist/lib/modules/tournament/config/config.router.d.ts +251 -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 +767 -0
- package/dist/lib/modules/tournament/config/config.validation.d.ts.map +1 -0
- package/dist/lib/modules/tournament/config/config.validation.js +85 -0
- package/dist/lib/modules/tournament/config/config.validation.js.map +1 -0
- 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 +20 -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/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 +41 -0
- package/dist/lib/modules/tournament/match/match.builder.d.ts.map +1 -0
- package/dist/lib/modules/tournament/match/match.builder.js +42 -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 +352 -0
- package/dist/lib/modules/tournament/match/match.router.d.ts.map +1 -0
- package/dist/lib/modules/tournament/match/match.router.js +49 -0
- package/dist/lib/modules/tournament/match/match.router.js.map +1 -0
- package/dist/lib/modules/tournament/match/match.service.d.ts +19 -0
- package/dist/lib/modules/tournament/match/match.service.d.ts.map +1 -0
- package/dist/lib/modules/tournament/match/match.service.js +149 -0
- package/dist/lib/modules/tournament/match/match.service.js.map +1 -0
- package/dist/lib/modules/tournament/match/match.validation.d.ts +892 -0
- package/dist/lib/modules/tournament/match/match.validation.d.ts.map +1 -0
- package/dist/lib/modules/tournament/match/match.validation.js +76 -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 +12 -0
- package/dist/lib/modules/tournament/notification/notification.service.d.ts.map +1 -0
- package/dist/lib/modules/tournament/notification/notification.service.js +106 -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 +14 -0
- package/dist/lib/modules/tournament/prediction/prediction.repository.d.ts.map +1 -0
- package/dist/lib/modules/tournament/prediction/prediction.repository.js +91 -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 +25 -0
- package/dist/lib/modules/tournament/prediction/prediction.service.d.ts.map +1 -0
- package/dist/lib/modules/tournament/prediction/prediction.service.js +142 -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 +11 -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 +81 -0
- package/dist/lib/modules/tournament/reward/handlers/coupon-reward.handler.js.map +1 -0
- 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 +43 -0
- package/dist/lib/modules/tournament/reward/reward.builder.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/score/score.repository.d.ts +6 -0
- package/dist/lib/modules/tournament/score/score.repository.d.ts.map +1 -0
- package/dist/lib/modules/tournament/score/score.repository.js +60 -0
- package/dist/lib/modules/tournament/score/score.repository.js.map +1 -0
- package/dist/lib/modules/tournament/score/score.service.d.ts +6 -0
- package/dist/lib/modules/tournament/score/score.service.d.ts.map +1 -0
- package/dist/lib/modules/tournament/score/score.service.js +60 -0
- package/dist/lib/modules/tournament/score/score.service.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 +205 -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 +1082 -0
- package/dist/lib/modules/tournament/tournament.router.d.ts.map +1 -0
- package/dist/lib/modules/tournament/tournament.router.js +25 -0
- package/dist/lib/modules/tournament/tournament.router.js.map +1 -0
- 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.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/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 +1102 -28
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/modules/coupon/routers/coupon.router.d.ts +4 -0
- package/dist/types/modules/coupon/routers/coupon.router.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/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/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 +13 -0
- package/dist/types/modules/coupon/validations/coupon.validation.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 +16 -27
- package/dist/types/modules/limited-time-offer/limited-time-offer.router.d.ts.map +1 -1
- 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 +18 -18
- package/dist/types/modules/marketing/validations/discount-marketing.validation.d.ts +30 -30
- 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 +5 -5
- 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 +14 -0
- package/dist/types/modules/tournament/config/config.repository.d.ts.map +1 -0
- package/dist/types/modules/tournament/config/config.router.d.ts +251 -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 +767 -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/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/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 +41 -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 +352 -0
- package/dist/types/modules/tournament/match/match.router.d.ts.map +1 -0
- package/dist/types/modules/tournament/match/match.service.d.ts +19 -0
- package/dist/types/modules/tournament/match/match.service.d.ts.map +1 -0
- package/dist/types/modules/tournament/match/match.validation.d.ts +892 -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 +12 -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 +14 -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 +25 -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 +11 -0
- package/dist/types/modules/tournament/reward/handlers/coupon-reward.handler.d.ts.map +1 -0
- 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.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/score/score.repository.d.ts +6 -0
- package/dist/types/modules/tournament/score/score.repository.d.ts.map +1 -0
- package/dist/types/modules/tournament/score/score.service.d.ts +6 -0
- package/dist/types/modules/tournament/score/score.service.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 +205 -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 +1082 -0
- package/dist/types/modules/tournament/tournament.router.d.ts.map +1 -0
- 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.validation.d.ts +133 -0
- package/dist/types/modules/tournament/tournament.validation.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;
|
|
@@ -6481,8 +6485,8 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
|
|
|
6481
6485
|
input: {
|
|
6482
6486
|
user: string | import("mongoose").Types.ObjectId;
|
|
6483
6487
|
shop: string | import("mongoose").Types.ObjectId;
|
|
6484
|
-
minimumOrderValue: number;
|
|
6485
6488
|
marketing: string | import("mongoose").Types.ObjectId;
|
|
6489
|
+
minimumOrderValue: number;
|
|
6486
6490
|
targetOrder: number;
|
|
6487
6491
|
couponValueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
6488
6492
|
couponValue: number;
|
|
@@ -7523,37 +7527,26 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
|
|
|
7523
7527
|
meta: object;
|
|
7524
7528
|
}>;
|
|
7525
7529
|
getActive: import("@trpc/server").TRPCQueryProcedure<{
|
|
7526
|
-
input:
|
|
7530
|
+
input: {
|
|
7531
|
+
latitude?: number | undefined;
|
|
7532
|
+
longitude?: number | undefined;
|
|
7533
|
+
};
|
|
7527
7534
|
output: {
|
|
7528
7535
|
message: string;
|
|
7529
7536
|
success: boolean;
|
|
7530
7537
|
data?: {
|
|
7531
|
-
status: import("@lyxa.ai/core/dist/utilities/enum").LimitedTimeOfferCampaignStatus;
|
|
7532
7538
|
_id: string | import("mongoose").Types.ObjectId;
|
|
7533
|
-
campaignNumber: number;
|
|
7534
|
-
createdAt?: Date | null | undefined;
|
|
7535
|
-
startDate?: Date | null | undefined;
|
|
7536
|
-
endDate?: Date | null | undefined;
|
|
7537
|
-
updatedAt?: Date | null | undefined;
|
|
7538
7539
|
title?: string | undefined;
|
|
7539
|
-
|
|
7540
|
-
|
|
7541
|
-
|
|
7542
|
-
archivedAt?: Date | null | undefined;
|
|
7540
|
+
subtitle?: string | undefined;
|
|
7541
|
+
startTime?: Date | null | undefined;
|
|
7542
|
+
endTime?: Date | null | undefined;
|
|
7543
7543
|
} | {
|
|
7544
7544
|
documents: ({
|
|
7545
|
-
status: import("@lyxa.ai/core/dist/utilities/enum").LimitedTimeOfferCampaignStatus;
|
|
7546
7545
|
_id: string | import("mongoose").Types.ObjectId;
|
|
7547
|
-
campaignNumber: number;
|
|
7548
|
-
createdAt?: Date | null | undefined;
|
|
7549
|
-
startDate?: Date | null | undefined;
|
|
7550
|
-
endDate?: Date | null | undefined;
|
|
7551
|
-
updatedAt?: Date | null | undefined;
|
|
7552
7546
|
title?: string | undefined;
|
|
7553
|
-
|
|
7554
|
-
|
|
7555
|
-
|
|
7556
|
-
archivedAt?: Date | null | undefined;
|
|
7547
|
+
subtitle?: string | undefined;
|
|
7548
|
+
startTime?: Date | null | undefined;
|
|
7549
|
+
endTime?: Date | null | undefined;
|
|
7557
7550
|
} | null)[];
|
|
7558
7551
|
metadata?: {
|
|
7559
7552
|
page: number;
|
|
@@ -7741,8 +7734,8 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
|
|
|
7741
7734
|
data?: {
|
|
7742
7735
|
_id: string | import("mongoose").Types.ObjectId;
|
|
7743
7736
|
shop: string | import("mongoose").Types.ObjectId;
|
|
7744
|
-
joinedAt: Date;
|
|
7745
7737
|
isEntireMenu: boolean;
|
|
7738
|
+
joinedAt: Date;
|
|
7746
7739
|
campaign: string | import("mongoose").Types.ObjectId;
|
|
7747
7740
|
isOrderCapacityEnabled: boolean;
|
|
7748
7741
|
isWithdrawn: boolean;
|
|
@@ -7757,8 +7750,8 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
|
|
|
7757
7750
|
documents: {
|
|
7758
7751
|
_id: string | import("mongoose").Types.ObjectId;
|
|
7759
7752
|
shop: string | import("mongoose").Types.ObjectId;
|
|
7760
|
-
joinedAt: Date;
|
|
7761
7753
|
isEntireMenu: boolean;
|
|
7754
|
+
joinedAt: Date;
|
|
7762
7755
|
campaign: string | import("mongoose").Types.ObjectId;
|
|
7763
7756
|
isOrderCapacityEnabled: boolean;
|
|
7764
7757
|
isWithdrawn: boolean;
|
|
@@ -7795,8 +7788,8 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
|
|
|
7795
7788
|
data?: {
|
|
7796
7789
|
_id: string | import("mongoose").Types.ObjectId;
|
|
7797
7790
|
shop: string | import("mongoose").Types.ObjectId;
|
|
7798
|
-
joinedAt: Date;
|
|
7799
7791
|
isEntireMenu: boolean;
|
|
7792
|
+
joinedAt: Date;
|
|
7800
7793
|
campaign: string | import("mongoose").Types.ObjectId;
|
|
7801
7794
|
isOrderCapacityEnabled: boolean;
|
|
7802
7795
|
isWithdrawn: boolean;
|
|
@@ -7811,8 +7804,8 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
|
|
|
7811
7804
|
documents: {
|
|
7812
7805
|
_id: string | import("mongoose").Types.ObjectId;
|
|
7813
7806
|
shop: string | import("mongoose").Types.ObjectId;
|
|
7814
|
-
joinedAt: Date;
|
|
7815
7807
|
isEntireMenu: boolean;
|
|
7808
|
+
joinedAt: Date;
|
|
7816
7809
|
campaign: string | import("mongoose").Types.ObjectId;
|
|
7817
7810
|
isOrderCapacityEnabled: boolean;
|
|
7818
7811
|
isWithdrawn: boolean;
|
|
@@ -7859,8 +7852,8 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
|
|
|
7859
7852
|
maxDiscountCaps?: number[] | undefined;
|
|
7860
7853
|
} | undefined;
|
|
7861
7854
|
participant?: {
|
|
7862
|
-
joinedAt: Date;
|
|
7863
7855
|
isEntireMenu: boolean;
|
|
7856
|
+
joinedAt: Date;
|
|
7864
7857
|
isOrderCapacityEnabled: boolean;
|
|
7865
7858
|
productIds?: (string | import("mongoose").Types.ObjectId)[] | undefined;
|
|
7866
7859
|
marketingId?: string | import("mongoose").Types.ObjectId | undefined;
|
|
@@ -7881,8 +7874,8 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
|
|
|
7881
7874
|
maxDiscountCaps?: number[] | undefined;
|
|
7882
7875
|
} | undefined;
|
|
7883
7876
|
participant?: {
|
|
7884
|
-
joinedAt: Date;
|
|
7885
7877
|
isEntireMenu: boolean;
|
|
7878
|
+
joinedAt: Date;
|
|
7886
7879
|
isOrderCapacityEnabled: boolean;
|
|
7887
7880
|
productIds?: (string | import("mongoose").Types.ObjectId)[] | undefined;
|
|
7888
7881
|
marketingId?: string | import("mongoose").Types.ObjectId | undefined;
|
|
@@ -7937,6 +7930,1087 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
|
|
|
7937
7930
|
}>;
|
|
7938
7931
|
}>>;
|
|
7939
7932
|
}>>;
|
|
7933
|
+
tournamentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
7934
|
+
ctx: import("@lyxa.ai/core/dist/libraries/trpc/context").LyxaHTTPContext;
|
|
7935
|
+
meta: object;
|
|
7936
|
+
errorShape: {
|
|
7937
|
+
message: string;
|
|
7938
|
+
data: {
|
|
7939
|
+
stack: undefined;
|
|
7940
|
+
path: undefined;
|
|
7941
|
+
code: import("@trpc/server").TRPC_ERROR_CODE_KEY;
|
|
7942
|
+
httpStatus: number;
|
|
7943
|
+
};
|
|
7944
|
+
stack: undefined;
|
|
7945
|
+
code: import("@trpc/server").TRPC_ERROR_CODE_NUMBER;
|
|
7946
|
+
};
|
|
7947
|
+
transformer: false;
|
|
7948
|
+
}, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
|
|
7949
|
+
config: import("@trpc/server").TRPCBuiltRouter<{
|
|
7950
|
+
ctx: import("@lyxa.ai/core/dist/libraries/trpc/context").LyxaHTTPContext;
|
|
7951
|
+
meta: object;
|
|
7952
|
+
errorShape: {
|
|
7953
|
+
message: string;
|
|
7954
|
+
data: {
|
|
7955
|
+
stack: undefined;
|
|
7956
|
+
path: undefined;
|
|
7957
|
+
code: import("@trpc/server").TRPC_ERROR_CODE_KEY;
|
|
7958
|
+
httpStatus: number;
|
|
7959
|
+
};
|
|
7960
|
+
stack: undefined;
|
|
7961
|
+
code: import("@trpc/server").TRPC_ERROR_CODE_NUMBER;
|
|
7962
|
+
};
|
|
7963
|
+
transformer: false;
|
|
7964
|
+
}, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
|
|
7965
|
+
create: import("@trpc/server").TRPCMutationProcedure<{
|
|
7966
|
+
input: {
|
|
7967
|
+
name: string;
|
|
7968
|
+
startDate: string | Date;
|
|
7969
|
+
endDate: string | Date;
|
|
7970
|
+
tag: string;
|
|
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;
|
|
7980
|
+
};
|
|
7981
|
+
output: {
|
|
7982
|
+
message: string;
|
|
7983
|
+
success: boolean;
|
|
7984
|
+
data?: {
|
|
7985
|
+
status: import("@lyxa.ai/core/dist/utilities/enum").Status;
|
|
7986
|
+
name: string;
|
|
7987
|
+
tag: string;
|
|
7988
|
+
_id?: string | import("mongoose").Types.ObjectId | undefined;
|
|
7989
|
+
createdAt?: Date | null | undefined;
|
|
7990
|
+
startDate?: Date | null | undefined;
|
|
7991
|
+
endDate?: Date | null | undefined;
|
|
7992
|
+
updatedAt?: Date | null | 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;
|
|
8001
|
+
} | {
|
|
8002
|
+
documents: {
|
|
8003
|
+
status: import("@lyxa.ai/core/dist/utilities/enum").Status;
|
|
8004
|
+
name: string;
|
|
8005
|
+
tag: string;
|
|
8006
|
+
_id?: string | import("mongoose").Types.ObjectId | undefined;
|
|
8007
|
+
createdAt?: Date | null | undefined;
|
|
8008
|
+
startDate?: Date | null | undefined;
|
|
8009
|
+
endDate?: Date | null | undefined;
|
|
8010
|
+
updatedAt?: Date | null | 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;
|
|
8019
|
+
}[];
|
|
8020
|
+
metadata?: {
|
|
8021
|
+
page: number;
|
|
8022
|
+
size: number;
|
|
8023
|
+
totalElements: number;
|
|
8024
|
+
totalPages: number;
|
|
8025
|
+
} | undefined;
|
|
8026
|
+
} | undefined;
|
|
8027
|
+
};
|
|
8028
|
+
meta: object;
|
|
8029
|
+
}>;
|
|
8030
|
+
getAll: import("@trpc/server").TRPCQueryProcedure<{
|
|
8031
|
+
input: void;
|
|
8032
|
+
output: {
|
|
8033
|
+
message: string;
|
|
8034
|
+
success: boolean;
|
|
8035
|
+
data?: {
|
|
8036
|
+
status: import("@lyxa.ai/core/dist/utilities/enum").Status;
|
|
8037
|
+
name: string;
|
|
8038
|
+
tag: string;
|
|
8039
|
+
_id?: string | import("mongoose").Types.ObjectId | undefined;
|
|
8040
|
+
createdAt?: Date | null | undefined;
|
|
8041
|
+
startDate?: Date | null | undefined;
|
|
8042
|
+
endDate?: Date | null | undefined;
|
|
8043
|
+
updatedAt?: Date | null | 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;
|
|
8051
|
+
}[] | {
|
|
8052
|
+
documents: {
|
|
8053
|
+
status: import("@lyxa.ai/core/dist/utilities/enum").Status;
|
|
8054
|
+
name: string;
|
|
8055
|
+
tag: string;
|
|
8056
|
+
_id?: string | import("mongoose").Types.ObjectId | undefined;
|
|
8057
|
+
createdAt?: Date | null | undefined;
|
|
8058
|
+
startDate?: Date | null | undefined;
|
|
8059
|
+
endDate?: Date | null | undefined;
|
|
8060
|
+
updatedAt?: Date | null | 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;
|
|
8068
|
+
}[][];
|
|
8069
|
+
metadata?: {
|
|
8070
|
+
page: number;
|
|
8071
|
+
size: number;
|
|
8072
|
+
totalElements: number;
|
|
8073
|
+
totalPages: number;
|
|
8074
|
+
} | undefined;
|
|
8075
|
+
} | undefined;
|
|
8076
|
+
};
|
|
8077
|
+
meta: object;
|
|
8078
|
+
}>;
|
|
8079
|
+
getById: import("@trpc/server").TRPCQueryProcedure<{
|
|
8080
|
+
input: {
|
|
8081
|
+
tournamentId: string | import("mongoose").Types.ObjectId;
|
|
8082
|
+
};
|
|
8083
|
+
output: {
|
|
8084
|
+
message: string;
|
|
8085
|
+
success: boolean;
|
|
8086
|
+
data?: {
|
|
8087
|
+
status: import("@lyxa.ai/core/dist/utilities/enum").Status;
|
|
8088
|
+
name: string;
|
|
8089
|
+
tag: string;
|
|
8090
|
+
_id?: string | import("mongoose").Types.ObjectId | undefined;
|
|
8091
|
+
createdAt?: Date | null | undefined;
|
|
8092
|
+
startDate?: Date | null | undefined;
|
|
8093
|
+
endDate?: Date | null | undefined;
|
|
8094
|
+
updatedAt?: Date | null | 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;
|
|
8103
|
+
} | {
|
|
8104
|
+
documents: {
|
|
8105
|
+
status: import("@lyxa.ai/core/dist/utilities/enum").Status;
|
|
8106
|
+
name: string;
|
|
8107
|
+
tag: string;
|
|
8108
|
+
_id?: string | import("mongoose").Types.ObjectId | undefined;
|
|
8109
|
+
createdAt?: Date | null | undefined;
|
|
8110
|
+
startDate?: Date | null | undefined;
|
|
8111
|
+
endDate?: Date | null | undefined;
|
|
8112
|
+
updatedAt?: Date | null | 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;
|
|
8121
|
+
}[];
|
|
8122
|
+
metadata?: {
|
|
8123
|
+
page: number;
|
|
8124
|
+
size: number;
|
|
8125
|
+
totalElements: number;
|
|
8126
|
+
totalPages: number;
|
|
8127
|
+
} | undefined;
|
|
8128
|
+
} | undefined;
|
|
8129
|
+
};
|
|
8130
|
+
meta: object;
|
|
8131
|
+
}>;
|
|
8132
|
+
update: import("@trpc/server").TRPCMutationProcedure<{
|
|
8133
|
+
input: {
|
|
8134
|
+
_id: string | import("mongoose").Types.ObjectId;
|
|
8135
|
+
status?: import("@lyxa.ai/core/dist/utilities/enum").Status | undefined;
|
|
8136
|
+
name?: string | undefined;
|
|
8137
|
+
startDate?: string | Date | undefined;
|
|
8138
|
+
endDate?: string | Date | undefined;
|
|
8139
|
+
tag?: string | 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;
|
|
8148
|
+
};
|
|
8149
|
+
output: {
|
|
8150
|
+
message: string;
|
|
8151
|
+
success: boolean;
|
|
8152
|
+
data?: {
|
|
8153
|
+
status: import("@lyxa.ai/core/dist/utilities/enum").Status;
|
|
8154
|
+
name: string;
|
|
8155
|
+
tag: string;
|
|
8156
|
+
_id?: string | import("mongoose").Types.ObjectId | undefined;
|
|
8157
|
+
createdAt?: Date | null | undefined;
|
|
8158
|
+
startDate?: Date | null | undefined;
|
|
8159
|
+
endDate?: Date | null | undefined;
|
|
8160
|
+
updatedAt?: Date | null | 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;
|
|
8169
|
+
} | {
|
|
8170
|
+
documents: {
|
|
8171
|
+
status: import("@lyxa.ai/core/dist/utilities/enum").Status;
|
|
8172
|
+
name: string;
|
|
8173
|
+
tag: string;
|
|
8174
|
+
_id?: string | import("mongoose").Types.ObjectId | undefined;
|
|
8175
|
+
createdAt?: Date | null | undefined;
|
|
8176
|
+
startDate?: Date | null | undefined;
|
|
8177
|
+
endDate?: Date | null | undefined;
|
|
8178
|
+
updatedAt?: Date | null | 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;
|
|
8187
|
+
}[];
|
|
8188
|
+
metadata?: {
|
|
8189
|
+
page: number;
|
|
8190
|
+
size: number;
|
|
8191
|
+
totalElements: number;
|
|
8192
|
+
totalPages: number;
|
|
8193
|
+
} | undefined;
|
|
8194
|
+
} | undefined;
|
|
8195
|
+
};
|
|
8196
|
+
meta: object;
|
|
8197
|
+
}>;
|
|
8198
|
+
}>>;
|
|
8199
|
+
team: import("@trpc/server").TRPCBuiltRouter<{
|
|
8200
|
+
ctx: import("@lyxa.ai/core/dist/libraries/trpc/context").LyxaHTTPContext;
|
|
8201
|
+
meta: object;
|
|
8202
|
+
errorShape: {
|
|
8203
|
+
message: string;
|
|
8204
|
+
data: {
|
|
8205
|
+
stack: undefined;
|
|
8206
|
+
path: undefined;
|
|
8207
|
+
code: import("@trpc/server").TRPC_ERROR_CODE_KEY;
|
|
8208
|
+
httpStatus: number;
|
|
8209
|
+
};
|
|
8210
|
+
stack: undefined;
|
|
8211
|
+
code: import("@trpc/server").TRPC_ERROR_CODE_NUMBER;
|
|
8212
|
+
};
|
|
8213
|
+
transformer: false;
|
|
8214
|
+
}, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
|
|
8215
|
+
add: import("@trpc/server").TRPCMutationProcedure<{
|
|
8216
|
+
input: {
|
|
8217
|
+
tournamentId: string | import("mongoose").Types.ObjectId;
|
|
8218
|
+
teams: {
|
|
8219
|
+
name: string;
|
|
8220
|
+
picture?: string | undefined;
|
|
8221
|
+
}[];
|
|
8222
|
+
};
|
|
8223
|
+
output: {
|
|
8224
|
+
message: string;
|
|
8225
|
+
success: boolean;
|
|
8226
|
+
data?: {
|
|
8227
|
+
status: import("@lyxa.ai/core/dist/utilities/enum").Status;
|
|
8228
|
+
name: string;
|
|
8229
|
+
tag: string;
|
|
8230
|
+
_id?: string | import("mongoose").Types.ObjectId | undefined;
|
|
8231
|
+
createdAt?: Date | null | undefined;
|
|
8232
|
+
startDate?: Date | null | undefined;
|
|
8233
|
+
endDate?: Date | null | undefined;
|
|
8234
|
+
updatedAt?: Date | null | 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;
|
|
8243
|
+
} | {
|
|
8244
|
+
documents: {
|
|
8245
|
+
status: import("@lyxa.ai/core/dist/utilities/enum").Status;
|
|
8246
|
+
name: string;
|
|
8247
|
+
tag: string;
|
|
8248
|
+
_id?: string | import("mongoose").Types.ObjectId | undefined;
|
|
8249
|
+
createdAt?: Date | null | undefined;
|
|
8250
|
+
startDate?: Date | null | undefined;
|
|
8251
|
+
endDate?: Date | null | undefined;
|
|
8252
|
+
updatedAt?: Date | null | 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;
|
|
8261
|
+
}[];
|
|
8262
|
+
metadata?: {
|
|
8263
|
+
page: number;
|
|
8264
|
+
size: number;
|
|
8265
|
+
totalElements: number;
|
|
8266
|
+
totalPages: number;
|
|
8267
|
+
} | undefined;
|
|
8268
|
+
} | undefined;
|
|
8269
|
+
};
|
|
8270
|
+
meta: object;
|
|
8271
|
+
}>;
|
|
8272
|
+
getAll: import("@trpc/server").TRPCQueryProcedure<{
|
|
8273
|
+
input: {
|
|
8274
|
+
tournamentId: string | import("mongoose").Types.ObjectId;
|
|
8275
|
+
};
|
|
8276
|
+
output: {
|
|
8277
|
+
message: string;
|
|
8278
|
+
success: boolean;
|
|
8279
|
+
data?: {
|
|
8280
|
+
status: import("@lyxa.ai/core/dist/utilities/enum").Status;
|
|
8281
|
+
tag: string;
|
|
8282
|
+
tournamentId: string | import("mongoose").Types.ObjectId;
|
|
8283
|
+
teams: {
|
|
8284
|
+
name: string;
|
|
8285
|
+
_id: string | import("mongoose").Types.ObjectId;
|
|
8286
|
+
picture?: string | undefined;
|
|
8287
|
+
}[];
|
|
8288
|
+
startDate?: Date | null | undefined;
|
|
8289
|
+
endDate?: Date | null | undefined;
|
|
8290
|
+
} | {
|
|
8291
|
+
documents: {
|
|
8292
|
+
status: import("@lyxa.ai/core/dist/utilities/enum").Status;
|
|
8293
|
+
tag: string;
|
|
8294
|
+
tournamentId: string | import("mongoose").Types.ObjectId;
|
|
8295
|
+
teams: {
|
|
8296
|
+
name: string;
|
|
8297
|
+
_id: string | import("mongoose").Types.ObjectId;
|
|
8298
|
+
picture?: string | undefined;
|
|
8299
|
+
}[];
|
|
8300
|
+
startDate?: Date | null | undefined;
|
|
8301
|
+
endDate?: Date | null | undefined;
|
|
8302
|
+
}[];
|
|
8303
|
+
metadata?: {
|
|
8304
|
+
page: number;
|
|
8305
|
+
size: number;
|
|
8306
|
+
totalElements: number;
|
|
8307
|
+
totalPages: number;
|
|
8308
|
+
} | undefined;
|
|
8309
|
+
} | undefined;
|
|
8310
|
+
};
|
|
8311
|
+
meta: object;
|
|
8312
|
+
}>;
|
|
8313
|
+
getMatches: import("@trpc/server").TRPCQueryProcedure<{
|
|
8314
|
+
input: {
|
|
8315
|
+
filter: "completed" | "upcoming";
|
|
8316
|
+
tournamentId: string | import("mongoose").Types.ObjectId;
|
|
8317
|
+
};
|
|
8318
|
+
output: {
|
|
8319
|
+
message: string;
|
|
8320
|
+
success: boolean;
|
|
8321
|
+
data?: {
|
|
8322
|
+
status: import("@lyxa.ai/core/dist/utilities/enum").Status;
|
|
8323
|
+
tag: string;
|
|
8324
|
+
tournamentId: string | import("mongoose").Types.ObjectId;
|
|
8325
|
+
matches: {
|
|
8326
|
+
_id: string | import("mongoose").Types.ObjectId;
|
|
8327
|
+
team1: {
|
|
8328
|
+
name: string;
|
|
8329
|
+
teamId: string | import("mongoose").Types.ObjectId;
|
|
8330
|
+
};
|
|
8331
|
+
team2: {
|
|
8332
|
+
name: string;
|
|
8333
|
+
teamId: string | import("mongoose").Types.ObjectId;
|
|
8334
|
+
};
|
|
8335
|
+
score: {
|
|
8336
|
+
team1: number | null;
|
|
8337
|
+
team2: number | null;
|
|
8338
|
+
};
|
|
8339
|
+
stage: string;
|
|
8340
|
+
prediction: {
|
|
8341
|
+
score: {
|
|
8342
|
+
team1: number | null;
|
|
8343
|
+
team2: number | null;
|
|
8344
|
+
};
|
|
8345
|
+
succeeded: boolean | null;
|
|
8346
|
+
} | null;
|
|
8347
|
+
canPredict: boolean;
|
|
8348
|
+
endDate?: Date | null | undefined;
|
|
8349
|
+
additionalTag?: string | undefined;
|
|
8350
|
+
winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
|
|
8351
|
+
startingDate?: Date | null | undefined;
|
|
8352
|
+
}[];
|
|
8353
|
+
startDate?: Date | null | undefined;
|
|
8354
|
+
endDate?: Date | null | undefined;
|
|
8355
|
+
} | {
|
|
8356
|
+
documents: {
|
|
8357
|
+
status: import("@lyxa.ai/core/dist/utilities/enum").Status;
|
|
8358
|
+
tag: string;
|
|
8359
|
+
tournamentId: string | import("mongoose").Types.ObjectId;
|
|
8360
|
+
matches: {
|
|
8361
|
+
_id: string | import("mongoose").Types.ObjectId;
|
|
8362
|
+
team1: {
|
|
8363
|
+
name: string;
|
|
8364
|
+
teamId: string | import("mongoose").Types.ObjectId;
|
|
8365
|
+
};
|
|
8366
|
+
team2: {
|
|
8367
|
+
name: string;
|
|
8368
|
+
teamId: string | import("mongoose").Types.ObjectId;
|
|
8369
|
+
};
|
|
8370
|
+
score: {
|
|
8371
|
+
team1: number | null;
|
|
8372
|
+
team2: number | null;
|
|
8373
|
+
};
|
|
8374
|
+
stage: string;
|
|
8375
|
+
prediction: {
|
|
8376
|
+
score: {
|
|
8377
|
+
team1: number | null;
|
|
8378
|
+
team2: number | null;
|
|
8379
|
+
};
|
|
8380
|
+
succeeded: boolean | null;
|
|
8381
|
+
} | null;
|
|
8382
|
+
canPredict: boolean;
|
|
8383
|
+
endDate?: Date | null | undefined;
|
|
8384
|
+
additionalTag?: string | undefined;
|
|
8385
|
+
winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
|
|
8386
|
+
startingDate?: Date | null | undefined;
|
|
8387
|
+
}[];
|
|
8388
|
+
startDate?: Date | null | undefined;
|
|
8389
|
+
endDate?: Date | null | undefined;
|
|
8390
|
+
}[];
|
|
8391
|
+
metadata?: {
|
|
8392
|
+
page: number;
|
|
8393
|
+
size: number;
|
|
8394
|
+
totalElements: number;
|
|
8395
|
+
totalPages: number;
|
|
8396
|
+
} | undefined;
|
|
8397
|
+
} | undefined;
|
|
8398
|
+
};
|
|
8399
|
+
meta: object;
|
|
8400
|
+
}>;
|
|
8401
|
+
}>>;
|
|
8402
|
+
match: import("@trpc/server").TRPCBuiltRouter<{
|
|
8403
|
+
ctx: import("@lyxa.ai/core/dist/libraries/trpc/context").LyxaHTTPContext;
|
|
8404
|
+
meta: object;
|
|
8405
|
+
errorShape: {
|
|
8406
|
+
message: string;
|
|
8407
|
+
data: {
|
|
8408
|
+
stack: undefined;
|
|
8409
|
+
path: undefined;
|
|
8410
|
+
code: import("@trpc/server").TRPC_ERROR_CODE_KEY;
|
|
8411
|
+
httpStatus: number;
|
|
8412
|
+
};
|
|
8413
|
+
stack: undefined;
|
|
8414
|
+
code: import("@trpc/server").TRPC_ERROR_CODE_NUMBER;
|
|
8415
|
+
};
|
|
8416
|
+
transformer: false;
|
|
8417
|
+
}, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
|
|
8418
|
+
add: import("@trpc/server").TRPCMutationProcedure<{
|
|
8419
|
+
input: {
|
|
8420
|
+
tournamentId: string | import("mongoose").Types.ObjectId;
|
|
8421
|
+
matches: {
|
|
8422
|
+
stage: string;
|
|
8423
|
+
startingDate: string | Date;
|
|
8424
|
+
team1Id: string | import("mongoose").Types.ObjectId;
|
|
8425
|
+
team2Id: string | import("mongoose").Types.ObjectId;
|
|
8426
|
+
endDate?: string | Date | undefined;
|
|
8427
|
+
additionalTag?: string | undefined;
|
|
8428
|
+
}[];
|
|
8429
|
+
};
|
|
8430
|
+
output: {
|
|
8431
|
+
message: string;
|
|
8432
|
+
success: boolean;
|
|
8433
|
+
data?: {
|
|
8434
|
+
status: import("@lyxa.ai/core/dist/utilities/enum").Status;
|
|
8435
|
+
name: string;
|
|
8436
|
+
tag: string;
|
|
8437
|
+
_id?: string | import("mongoose").Types.ObjectId | undefined;
|
|
8438
|
+
createdAt?: Date | null | undefined;
|
|
8439
|
+
startDate?: Date | null | undefined;
|
|
8440
|
+
endDate?: Date | null | undefined;
|
|
8441
|
+
updatedAt?: Date | null | undefined;
|
|
8442
|
+
reward?: {
|
|
8443
|
+
type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.FREE_DELIVERY;
|
|
8444
|
+
} | {
|
|
8445
|
+
type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.COUPON;
|
|
8446
|
+
maxDiscountPerOrder?: number | null | undefined;
|
|
8447
|
+
couponNamePrefix?: string | undefined;
|
|
8448
|
+
percentage?: number | undefined;
|
|
8449
|
+
} | undefined;
|
|
8450
|
+
} | {
|
|
8451
|
+
documents: {
|
|
8452
|
+
status: import("@lyxa.ai/core/dist/utilities/enum").Status;
|
|
8453
|
+
name: string;
|
|
8454
|
+
tag: string;
|
|
8455
|
+
_id?: string | import("mongoose").Types.ObjectId | undefined;
|
|
8456
|
+
createdAt?: Date | null | undefined;
|
|
8457
|
+
startDate?: Date | null | undefined;
|
|
8458
|
+
endDate?: Date | null | undefined;
|
|
8459
|
+
updatedAt?: Date | null | undefined;
|
|
8460
|
+
reward?: {
|
|
8461
|
+
type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.FREE_DELIVERY;
|
|
8462
|
+
} | {
|
|
8463
|
+
type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.COUPON;
|
|
8464
|
+
maxDiscountPerOrder?: number | null | undefined;
|
|
8465
|
+
couponNamePrefix?: string | undefined;
|
|
8466
|
+
percentage?: number | undefined;
|
|
8467
|
+
} | undefined;
|
|
8468
|
+
}[];
|
|
8469
|
+
metadata?: {
|
|
8470
|
+
page: number;
|
|
8471
|
+
size: number;
|
|
8472
|
+
totalElements: number;
|
|
8473
|
+
totalPages: number;
|
|
8474
|
+
} | undefined;
|
|
8475
|
+
} | undefined;
|
|
8476
|
+
};
|
|
8477
|
+
meta: object;
|
|
8478
|
+
}>;
|
|
8479
|
+
getAll: import("@trpc/server").TRPCQueryProcedure<{
|
|
8480
|
+
input: {
|
|
8481
|
+
tournamentId: string | import("mongoose").Types.ObjectId;
|
|
8482
|
+
};
|
|
8483
|
+
output: {
|
|
8484
|
+
message: string;
|
|
8485
|
+
success: boolean;
|
|
8486
|
+
data?: {
|
|
8487
|
+
_id: string | import("mongoose").Types.ObjectId;
|
|
8488
|
+
team1: {
|
|
8489
|
+
name: string;
|
|
8490
|
+
teamId: string | import("mongoose").Types.ObjectId;
|
|
8491
|
+
};
|
|
8492
|
+
team2: {
|
|
8493
|
+
name: string;
|
|
8494
|
+
teamId: string | import("mongoose").Types.ObjectId;
|
|
8495
|
+
};
|
|
8496
|
+
score: {
|
|
8497
|
+
team1: number | null;
|
|
8498
|
+
team2: number | null;
|
|
8499
|
+
};
|
|
8500
|
+
stage: string;
|
|
8501
|
+
endDate?: Date | null | undefined;
|
|
8502
|
+
additionalTag?: string | undefined;
|
|
8503
|
+
winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
|
|
8504
|
+
startingDate?: Date | null | undefined;
|
|
8505
|
+
prediction?: {
|
|
8506
|
+
score: {
|
|
8507
|
+
team1: number | null;
|
|
8508
|
+
team2: number | null;
|
|
8509
|
+
};
|
|
8510
|
+
succeeded?: boolean | null | undefined;
|
|
8511
|
+
} | null | undefined;
|
|
8512
|
+
}[] | {
|
|
8513
|
+
documents: {
|
|
8514
|
+
_id: string | import("mongoose").Types.ObjectId;
|
|
8515
|
+
team1: {
|
|
8516
|
+
name: string;
|
|
8517
|
+
teamId: string | import("mongoose").Types.ObjectId;
|
|
8518
|
+
};
|
|
8519
|
+
team2: {
|
|
8520
|
+
name: string;
|
|
8521
|
+
teamId: string | import("mongoose").Types.ObjectId;
|
|
8522
|
+
};
|
|
8523
|
+
score: {
|
|
8524
|
+
team1: number | null;
|
|
8525
|
+
team2: number | null;
|
|
8526
|
+
};
|
|
8527
|
+
stage: string;
|
|
8528
|
+
endDate?: Date | null | undefined;
|
|
8529
|
+
additionalTag?: string | undefined;
|
|
8530
|
+
winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
|
|
8531
|
+
startingDate?: Date | null | undefined;
|
|
8532
|
+
prediction?: {
|
|
8533
|
+
score: {
|
|
8534
|
+
team1: number | null;
|
|
8535
|
+
team2: number | null;
|
|
8536
|
+
};
|
|
8537
|
+
succeeded?: boolean | null | undefined;
|
|
8538
|
+
} | null | undefined;
|
|
8539
|
+
}[][];
|
|
8540
|
+
metadata?: {
|
|
8541
|
+
page: number;
|
|
8542
|
+
size: number;
|
|
8543
|
+
totalElements: number;
|
|
8544
|
+
totalPages: number;
|
|
8545
|
+
} | undefined;
|
|
8546
|
+
} | undefined;
|
|
8547
|
+
};
|
|
8548
|
+
meta: object;
|
|
8549
|
+
}>;
|
|
8550
|
+
start: import("@trpc/server").TRPCMutationProcedure<{
|
|
8551
|
+
input: {
|
|
8552
|
+
tournamentId: string | import("mongoose").Types.ObjectId;
|
|
8553
|
+
matchId: string | import("mongoose").Types.ObjectId;
|
|
8554
|
+
};
|
|
8555
|
+
output: {
|
|
8556
|
+
message: string;
|
|
8557
|
+
success: boolean;
|
|
8558
|
+
data?: {
|
|
8559
|
+
_id: string | import("mongoose").Types.ObjectId;
|
|
8560
|
+
team1: {
|
|
8561
|
+
name: string;
|
|
8562
|
+
teamId: string | import("mongoose").Types.ObjectId;
|
|
8563
|
+
};
|
|
8564
|
+
team2: {
|
|
8565
|
+
name: string;
|
|
8566
|
+
teamId: string | import("mongoose").Types.ObjectId;
|
|
8567
|
+
};
|
|
8568
|
+
score: {
|
|
8569
|
+
team1: number | null;
|
|
8570
|
+
team2: number | null;
|
|
8571
|
+
};
|
|
8572
|
+
stage: string;
|
|
8573
|
+
endDate?: Date | null | undefined;
|
|
8574
|
+
additionalTag?: string | undefined;
|
|
8575
|
+
winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
|
|
8576
|
+
startingDate?: Date | null | undefined;
|
|
8577
|
+
prediction?: {
|
|
8578
|
+
score: {
|
|
8579
|
+
team1: number | null;
|
|
8580
|
+
team2: number | null;
|
|
8581
|
+
};
|
|
8582
|
+
succeeded?: boolean | null | undefined;
|
|
8583
|
+
} | null | undefined;
|
|
8584
|
+
} | {
|
|
8585
|
+
documents: {
|
|
8586
|
+
_id: string | import("mongoose").Types.ObjectId;
|
|
8587
|
+
team1: {
|
|
8588
|
+
name: string;
|
|
8589
|
+
teamId: string | import("mongoose").Types.ObjectId;
|
|
8590
|
+
};
|
|
8591
|
+
team2: {
|
|
8592
|
+
name: string;
|
|
8593
|
+
teamId: string | import("mongoose").Types.ObjectId;
|
|
8594
|
+
};
|
|
8595
|
+
score: {
|
|
8596
|
+
team1: number | null;
|
|
8597
|
+
team2: number | null;
|
|
8598
|
+
};
|
|
8599
|
+
stage: string;
|
|
8600
|
+
endDate?: Date | null | undefined;
|
|
8601
|
+
additionalTag?: string | undefined;
|
|
8602
|
+
winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
|
|
8603
|
+
startingDate?: Date | null | undefined;
|
|
8604
|
+
prediction?: {
|
|
8605
|
+
score: {
|
|
8606
|
+
team1: number | null;
|
|
8607
|
+
team2: number | null;
|
|
8608
|
+
};
|
|
8609
|
+
succeeded?: boolean | null | undefined;
|
|
8610
|
+
} | null | undefined;
|
|
8611
|
+
}[];
|
|
8612
|
+
metadata?: {
|
|
8613
|
+
page: number;
|
|
8614
|
+
size: number;
|
|
8615
|
+
totalElements: number;
|
|
8616
|
+
totalPages: number;
|
|
8617
|
+
} | undefined;
|
|
8618
|
+
} | undefined;
|
|
8619
|
+
};
|
|
8620
|
+
meta: object;
|
|
8621
|
+
}>;
|
|
8622
|
+
end: import("@trpc/server").TRPCMutationProcedure<{
|
|
8623
|
+
input: {
|
|
8624
|
+
tournamentId: string | import("mongoose").Types.ObjectId;
|
|
8625
|
+
matchId: string | import("mongoose").Types.ObjectId;
|
|
8626
|
+
finalScore?: {
|
|
8627
|
+
team1: number;
|
|
8628
|
+
team2: number;
|
|
8629
|
+
} | undefined;
|
|
8630
|
+
};
|
|
8631
|
+
output: {
|
|
8632
|
+
message: string;
|
|
8633
|
+
success: boolean;
|
|
8634
|
+
data?: {
|
|
8635
|
+
_id: string | import("mongoose").Types.ObjectId;
|
|
8636
|
+
team1: {
|
|
8637
|
+
name: string;
|
|
8638
|
+
teamId: string | import("mongoose").Types.ObjectId;
|
|
8639
|
+
};
|
|
8640
|
+
team2: {
|
|
8641
|
+
name: string;
|
|
8642
|
+
teamId: string | import("mongoose").Types.ObjectId;
|
|
8643
|
+
};
|
|
8644
|
+
score: {
|
|
8645
|
+
team1: number | null;
|
|
8646
|
+
team2: number | null;
|
|
8647
|
+
};
|
|
8648
|
+
stage: string;
|
|
8649
|
+
endDate?: Date | null | undefined;
|
|
8650
|
+
additionalTag?: string | undefined;
|
|
8651
|
+
winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
|
|
8652
|
+
startingDate?: Date | null | undefined;
|
|
8653
|
+
prediction?: {
|
|
8654
|
+
score: {
|
|
8655
|
+
team1: number | null;
|
|
8656
|
+
team2: number | null;
|
|
8657
|
+
};
|
|
8658
|
+
succeeded?: boolean | null | undefined;
|
|
8659
|
+
} | null | undefined;
|
|
8660
|
+
} | {
|
|
8661
|
+
documents: {
|
|
8662
|
+
_id: string | import("mongoose").Types.ObjectId;
|
|
8663
|
+
team1: {
|
|
8664
|
+
name: string;
|
|
8665
|
+
teamId: string | import("mongoose").Types.ObjectId;
|
|
8666
|
+
};
|
|
8667
|
+
team2: {
|
|
8668
|
+
name: string;
|
|
8669
|
+
teamId: string | import("mongoose").Types.ObjectId;
|
|
8670
|
+
};
|
|
8671
|
+
score: {
|
|
8672
|
+
team1: number | null;
|
|
8673
|
+
team2: number | null;
|
|
8674
|
+
};
|
|
8675
|
+
stage: string;
|
|
8676
|
+
endDate?: Date | null | undefined;
|
|
8677
|
+
additionalTag?: string | undefined;
|
|
8678
|
+
winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
|
|
8679
|
+
startingDate?: Date | null | undefined;
|
|
8680
|
+
prediction?: {
|
|
8681
|
+
score: {
|
|
8682
|
+
team1: number | null;
|
|
8683
|
+
team2: number | null;
|
|
8684
|
+
};
|
|
8685
|
+
succeeded?: boolean | null | undefined;
|
|
8686
|
+
} | null | undefined;
|
|
8687
|
+
}[];
|
|
8688
|
+
metadata?: {
|
|
8689
|
+
page: number;
|
|
8690
|
+
size: number;
|
|
8691
|
+
totalElements: number;
|
|
8692
|
+
totalPages: number;
|
|
8693
|
+
} | undefined;
|
|
8694
|
+
} | undefined;
|
|
8695
|
+
};
|
|
8696
|
+
meta: object;
|
|
8697
|
+
}>;
|
|
8698
|
+
delete: import("@trpc/server").TRPCMutationProcedure<{
|
|
8699
|
+
input: {
|
|
8700
|
+
tournamentId: string | import("mongoose").Types.ObjectId;
|
|
8701
|
+
matchId: string | import("mongoose").Types.ObjectId;
|
|
8702
|
+
};
|
|
8703
|
+
output: {
|
|
8704
|
+
message: string;
|
|
8705
|
+
success: boolean;
|
|
8706
|
+
data?: {
|
|
8707
|
+
status: import("@lyxa.ai/core/dist/utilities/enum").Status;
|
|
8708
|
+
name: string;
|
|
8709
|
+
tag: string;
|
|
8710
|
+
_id?: string | import("mongoose").Types.ObjectId | undefined;
|
|
8711
|
+
createdAt?: Date | null | undefined;
|
|
8712
|
+
startDate?: Date | null | undefined;
|
|
8713
|
+
endDate?: Date | null | undefined;
|
|
8714
|
+
updatedAt?: Date | null | undefined;
|
|
8715
|
+
reward?: {
|
|
8716
|
+
type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.FREE_DELIVERY;
|
|
8717
|
+
} | {
|
|
8718
|
+
type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.COUPON;
|
|
8719
|
+
maxDiscountPerOrder?: number | null | undefined;
|
|
8720
|
+
couponNamePrefix?: string | undefined;
|
|
8721
|
+
percentage?: number | undefined;
|
|
8722
|
+
} | undefined;
|
|
8723
|
+
} | {
|
|
8724
|
+
documents: {
|
|
8725
|
+
status: import("@lyxa.ai/core/dist/utilities/enum").Status;
|
|
8726
|
+
name: string;
|
|
8727
|
+
tag: string;
|
|
8728
|
+
_id?: string | import("mongoose").Types.ObjectId | undefined;
|
|
8729
|
+
createdAt?: Date | null | undefined;
|
|
8730
|
+
startDate?: Date | null | undefined;
|
|
8731
|
+
endDate?: Date | null | undefined;
|
|
8732
|
+
updatedAt?: Date | null | 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;
|
|
8741
|
+
}[];
|
|
8742
|
+
metadata?: {
|
|
8743
|
+
page: number;
|
|
8744
|
+
size: number;
|
|
8745
|
+
totalElements: number;
|
|
8746
|
+
totalPages: number;
|
|
8747
|
+
} | undefined;
|
|
8748
|
+
} | undefined;
|
|
8749
|
+
};
|
|
8750
|
+
meta: object;
|
|
8751
|
+
}>;
|
|
8752
|
+
}>>;
|
|
8753
|
+
participant: import("@trpc/server").TRPCBuiltRouter<{
|
|
8754
|
+
ctx: import("@lyxa.ai/core/dist/libraries/trpc/context").LyxaHTTPContext;
|
|
8755
|
+
meta: object;
|
|
8756
|
+
errorShape: {
|
|
8757
|
+
message: string;
|
|
8758
|
+
data: {
|
|
8759
|
+
stack: undefined;
|
|
8760
|
+
path: undefined;
|
|
8761
|
+
code: import("@trpc/server").TRPC_ERROR_CODE_KEY;
|
|
8762
|
+
httpStatus: number;
|
|
8763
|
+
};
|
|
8764
|
+
stack: undefined;
|
|
8765
|
+
code: import("@trpc/server").TRPC_ERROR_CODE_NUMBER;
|
|
8766
|
+
};
|
|
8767
|
+
transformer: false;
|
|
8768
|
+
}, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
|
|
8769
|
+
join: import("@trpc/server").TRPCMutationProcedure<{
|
|
8770
|
+
input: {
|
|
8771
|
+
tournamentId: string | import("mongoose").Types.ObjectId;
|
|
8772
|
+
teamId: string | import("mongoose").Types.ObjectId;
|
|
8773
|
+
};
|
|
8774
|
+
output: {
|
|
8775
|
+
message: string;
|
|
8776
|
+
success: boolean;
|
|
8777
|
+
data?: {
|
|
8778
|
+
_id: string | import("mongoose").Types.ObjectId;
|
|
8779
|
+
tournamentId: string | import("mongoose").Types.ObjectId;
|
|
8780
|
+
teamId: string | import("mongoose").Types.ObjectId;
|
|
8781
|
+
createdAt?: Date | null | undefined;
|
|
8782
|
+
} | {
|
|
8783
|
+
documents: {
|
|
8784
|
+
_id: string | import("mongoose").Types.ObjectId;
|
|
8785
|
+
tournamentId: string | import("mongoose").Types.ObjectId;
|
|
8786
|
+
teamId: string | import("mongoose").Types.ObjectId;
|
|
8787
|
+
createdAt?: Date | null | undefined;
|
|
8788
|
+
}[];
|
|
8789
|
+
metadata?: {
|
|
8790
|
+
page: number;
|
|
8791
|
+
size: number;
|
|
8792
|
+
totalElements: number;
|
|
8793
|
+
totalPages: number;
|
|
8794
|
+
} | undefined;
|
|
8795
|
+
} | undefined;
|
|
8796
|
+
};
|
|
8797
|
+
meta: object;
|
|
8798
|
+
}>;
|
|
8799
|
+
getAll: import("@trpc/server").TRPCQueryProcedure<{
|
|
8800
|
+
input: {
|
|
8801
|
+
tournamentId: string | import("mongoose").Types.ObjectId;
|
|
8802
|
+
};
|
|
8803
|
+
output: {
|
|
8804
|
+
message: string;
|
|
8805
|
+
success: boolean;
|
|
8806
|
+
data?: {
|
|
8807
|
+
_id: string | import("mongoose").Types.ObjectId;
|
|
8808
|
+
userId: string | import("mongoose").Types.ObjectId;
|
|
8809
|
+
tournamentId: string | import("mongoose").Types.ObjectId;
|
|
8810
|
+
teamId: string | import("mongoose").Types.ObjectId;
|
|
8811
|
+
createdAt?: Date | null | undefined;
|
|
8812
|
+
updatedAt?: Date | null | undefined;
|
|
8813
|
+
predictions?: {
|
|
8814
|
+
_id: string | import("mongoose").Types.ObjectId;
|
|
8815
|
+
matchId: string | import("mongoose").Types.ObjectId;
|
|
8816
|
+
score: {
|
|
8817
|
+
team1: number | null;
|
|
8818
|
+
team2: number | null;
|
|
8819
|
+
};
|
|
8820
|
+
coupon?: string | import("mongoose").Types.ObjectId | undefined;
|
|
8821
|
+
predictionTime?: Date | null | undefined;
|
|
8822
|
+
succeeded?: boolean | null | undefined;
|
|
8823
|
+
}[] | undefined;
|
|
8824
|
+
}[] | {
|
|
8825
|
+
documents: {
|
|
8826
|
+
_id: string | import("mongoose").Types.ObjectId;
|
|
8827
|
+
userId: string | import("mongoose").Types.ObjectId;
|
|
8828
|
+
tournamentId: string | import("mongoose").Types.ObjectId;
|
|
8829
|
+
teamId: string | import("mongoose").Types.ObjectId;
|
|
8830
|
+
createdAt?: Date | null | undefined;
|
|
8831
|
+
updatedAt?: Date | null | undefined;
|
|
8832
|
+
predictions?: {
|
|
8833
|
+
_id: string | import("mongoose").Types.ObjectId;
|
|
8834
|
+
matchId: string | import("mongoose").Types.ObjectId;
|
|
8835
|
+
score: {
|
|
8836
|
+
team1: number | null;
|
|
8837
|
+
team2: number | null;
|
|
8838
|
+
};
|
|
8839
|
+
coupon?: string | import("mongoose").Types.ObjectId | undefined;
|
|
8840
|
+
predictionTime?: Date | null | undefined;
|
|
8841
|
+
succeeded?: boolean | null | undefined;
|
|
8842
|
+
}[] | undefined;
|
|
8843
|
+
}[][];
|
|
8844
|
+
metadata?: {
|
|
8845
|
+
page: number;
|
|
8846
|
+
size: number;
|
|
8847
|
+
totalElements: number;
|
|
8848
|
+
totalPages: number;
|
|
8849
|
+
} | undefined;
|
|
8850
|
+
} | undefined;
|
|
8851
|
+
};
|
|
8852
|
+
meta: object;
|
|
8853
|
+
}>;
|
|
8854
|
+
}>>;
|
|
8855
|
+
prediction: import("@trpc/server").TRPCBuiltRouter<{
|
|
8856
|
+
ctx: import("@lyxa.ai/core/dist/libraries/trpc/context").LyxaHTTPContext;
|
|
8857
|
+
meta: object;
|
|
8858
|
+
errorShape: {
|
|
8859
|
+
message: string;
|
|
8860
|
+
data: {
|
|
8861
|
+
stack: undefined;
|
|
8862
|
+
path: undefined;
|
|
8863
|
+
code: import("@trpc/server").TRPC_ERROR_CODE_KEY;
|
|
8864
|
+
httpStatus: number;
|
|
8865
|
+
};
|
|
8866
|
+
stack: undefined;
|
|
8867
|
+
code: import("@trpc/server").TRPC_ERROR_CODE_NUMBER;
|
|
8868
|
+
};
|
|
8869
|
+
transformer: false;
|
|
8870
|
+
}, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
|
|
8871
|
+
create: import("@trpc/server").TRPCMutationProcedure<{
|
|
8872
|
+
input: {
|
|
8873
|
+
tournamentId: string | import("mongoose").Types.ObjectId;
|
|
8874
|
+
matchId: string | import("mongoose").Types.ObjectId;
|
|
8875
|
+
score: {
|
|
8876
|
+
team1: number;
|
|
8877
|
+
team2: number;
|
|
8878
|
+
};
|
|
8879
|
+
};
|
|
8880
|
+
output: {
|
|
8881
|
+
message: string;
|
|
8882
|
+
success: boolean;
|
|
8883
|
+
data?: {
|
|
8884
|
+
_id: string | import("mongoose").Types.ObjectId;
|
|
8885
|
+
matchId: string | import("mongoose").Types.ObjectId;
|
|
8886
|
+
score: {
|
|
8887
|
+
team1: number | null;
|
|
8888
|
+
team2: number | null;
|
|
8889
|
+
};
|
|
8890
|
+
} | {
|
|
8891
|
+
documents: {
|
|
8892
|
+
_id: string | import("mongoose").Types.ObjectId;
|
|
8893
|
+
matchId: string | import("mongoose").Types.ObjectId;
|
|
8894
|
+
score: {
|
|
8895
|
+
team1: number | null;
|
|
8896
|
+
team2: number | null;
|
|
8897
|
+
};
|
|
8898
|
+
}[];
|
|
8899
|
+
metadata?: {
|
|
8900
|
+
page: number;
|
|
8901
|
+
size: number;
|
|
8902
|
+
totalElements: number;
|
|
8903
|
+
totalPages: number;
|
|
8904
|
+
} | undefined;
|
|
8905
|
+
} | undefined;
|
|
8906
|
+
};
|
|
8907
|
+
meta: object;
|
|
8908
|
+
}>;
|
|
8909
|
+
edit: import("@trpc/server").TRPCMutationProcedure<{
|
|
8910
|
+
input: {
|
|
8911
|
+
tournamentId: string | import("mongoose").Types.ObjectId;
|
|
8912
|
+
matchId: string | import("mongoose").Types.ObjectId;
|
|
8913
|
+
score: {
|
|
8914
|
+
team1: number;
|
|
8915
|
+
team2: number;
|
|
8916
|
+
};
|
|
8917
|
+
};
|
|
8918
|
+
output: {
|
|
8919
|
+
message: string;
|
|
8920
|
+
success: boolean;
|
|
8921
|
+
data?: {
|
|
8922
|
+
_id: string | import("mongoose").Types.ObjectId;
|
|
8923
|
+
matchId: string | import("mongoose").Types.ObjectId;
|
|
8924
|
+
score: {
|
|
8925
|
+
team1: number | null;
|
|
8926
|
+
team2: number | null;
|
|
8927
|
+
};
|
|
8928
|
+
} | {
|
|
8929
|
+
documents: {
|
|
8930
|
+
_id: string | import("mongoose").Types.ObjectId;
|
|
8931
|
+
matchId: string | import("mongoose").Types.ObjectId;
|
|
8932
|
+
score: {
|
|
8933
|
+
team1: number | null;
|
|
8934
|
+
team2: number | null;
|
|
8935
|
+
};
|
|
8936
|
+
}[];
|
|
8937
|
+
metadata?: {
|
|
8938
|
+
page: number;
|
|
8939
|
+
size: number;
|
|
8940
|
+
totalElements: number;
|
|
8941
|
+
totalPages: number;
|
|
8942
|
+
} | undefined;
|
|
8943
|
+
} | undefined;
|
|
8944
|
+
};
|
|
8945
|
+
meta: object;
|
|
8946
|
+
}>;
|
|
8947
|
+
get: import("@trpc/server").TRPCQueryProcedure<{
|
|
8948
|
+
input: {
|
|
8949
|
+
tournamentId: string | import("mongoose").Types.ObjectId;
|
|
8950
|
+
matchId: string | import("mongoose").Types.ObjectId;
|
|
8951
|
+
};
|
|
8952
|
+
output: {
|
|
8953
|
+
message: string;
|
|
8954
|
+
success: boolean;
|
|
8955
|
+
data?: {
|
|
8956
|
+
_id: string | import("mongoose").Types.ObjectId;
|
|
8957
|
+
matchId: string | import("mongoose").Types.ObjectId;
|
|
8958
|
+
score: {
|
|
8959
|
+
team1: number | null;
|
|
8960
|
+
team2: number | null;
|
|
8961
|
+
};
|
|
8962
|
+
predictionTime?: Date | null | undefined;
|
|
8963
|
+
succeeded?: boolean | null | undefined;
|
|
8964
|
+
} | {
|
|
8965
|
+
documents: ({
|
|
8966
|
+
_id: string | import("mongoose").Types.ObjectId;
|
|
8967
|
+
matchId: string | import("mongoose").Types.ObjectId;
|
|
8968
|
+
score: {
|
|
8969
|
+
team1: number | null;
|
|
8970
|
+
team2: number | null;
|
|
8971
|
+
};
|
|
8972
|
+
predictionTime?: Date | null | undefined;
|
|
8973
|
+
succeeded?: boolean | null | undefined;
|
|
8974
|
+
} | null)[];
|
|
8975
|
+
metadata?: {
|
|
8976
|
+
page: number;
|
|
8977
|
+
size: number;
|
|
8978
|
+
totalElements: number;
|
|
8979
|
+
totalPages: number;
|
|
8980
|
+
} | undefined;
|
|
8981
|
+
} | null | undefined;
|
|
8982
|
+
};
|
|
8983
|
+
meta: object;
|
|
8984
|
+
}>;
|
|
8985
|
+
}>>;
|
|
8986
|
+
getActive: import("@trpc/server").TRPCQueryProcedure<{
|
|
8987
|
+
input: void;
|
|
8988
|
+
output: {
|
|
8989
|
+
message: string;
|
|
8990
|
+
success: boolean;
|
|
8991
|
+
data?: {
|
|
8992
|
+
name: string;
|
|
8993
|
+
tag: string;
|
|
8994
|
+
startDate?: Date | null | undefined;
|
|
8995
|
+
endDate?: Date | null | undefined;
|
|
8996
|
+
} | {
|
|
8997
|
+
documents: ({
|
|
8998
|
+
name: string;
|
|
8999
|
+
tag: string;
|
|
9000
|
+
startDate?: Date | null | undefined;
|
|
9001
|
+
endDate?: Date | null | undefined;
|
|
9002
|
+
} | null)[];
|
|
9003
|
+
metadata?: {
|
|
9004
|
+
page: number;
|
|
9005
|
+
size: number;
|
|
9006
|
+
totalElements: number;
|
|
9007
|
+
totalPages: number;
|
|
9008
|
+
} | undefined;
|
|
9009
|
+
} | null | undefined;
|
|
9010
|
+
};
|
|
9011
|
+
meta: object;
|
|
9012
|
+
}>;
|
|
9013
|
+
}>>;
|
|
7940
9014
|
}>>;
|
|
7941
9015
|
export type MarketingMicroServiceRouter = typeof marketingMicroServiceRouter;
|
|
7942
9016
|
export {};
|