@lyxa.ai/marketing 1.0.51 → 1.0.53
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/index.d.ts +323 -77
- package/dist/lib/index.d.ts.map +1 -1
- package/dist/lib/index.js +1 -1
- package/dist/lib/index.js.map +1 -1
- package/dist/lib/modules/coupon/routers/coupon.router.d.ts.map +1 -1
- package/dist/lib/modules/coupon/routers/coupon.router.js +1 -1
- package/dist/lib/modules/coupon/routers/coupon.router.js.map +1 -1
- package/dist/lib/modules/coupon/services/patterns/repository/CouponMetricsRepository.d.ts.map +1 -1
- package/dist/lib/modules/coupon/services/patterns/repository/CouponMetricsRepository.js +16 -3
- package/dist/lib/modules/coupon/services/patterns/repository/CouponMetricsRepository.js.map +1 -1
- package/dist/lib/modules/coupon/validations/all-coupons.validation.d.ts +1117 -285
- package/dist/lib/modules/coupon/validations/all-coupons.validation.d.ts.map +1 -1
- package/dist/lib/modules/coupon/validations/all-coupons.validation.js +16 -2
- package/dist/lib/modules/coupon/validations/all-coupons.validation.js.map +1 -1
- package/dist/lib/modules/coupon/validations/index.d.ts +0 -1
- package/dist/lib/modules/coupon/validations/index.d.ts.map +1 -1
- package/dist/lib/modules/coupon/validations/index.js +0 -1
- package/dist/lib/modules/coupon/validations/index.js.map +1 -1
- package/dist/lib/modules/limited-time-offer/campaign/campaign.router.d.ts +32 -32
- package/dist/lib/modules/limited-time-offer/campaign/campaign.router.js +9 -9
- package/dist/lib/modules/limited-time-offer/campaign/campaign.router.js.map +1 -1
- package/dist/lib/modules/limited-time-offer/campaign/jobs/limited-time-offer-campaign.worker.d.ts +0 -1
- package/dist/lib/modules/limited-time-offer/campaign/jobs/limited-time-offer-campaign.worker.d.ts.map +1 -1
- package/dist/lib/modules/limited-time-offer/campaign/jobs/limited-time-offer-campaign.worker.js +2 -5
- package/dist/lib/modules/limited-time-offer/campaign/jobs/limited-time-offer-campaign.worker.js.map +1 -1
- package/dist/lib/modules/limited-time-offer/campaign/limited-time-offer-campaign.builder.d.ts +1 -0
- package/dist/lib/modules/limited-time-offer/campaign/limited-time-offer-campaign.builder.d.ts.map +1 -1
- package/dist/lib/modules/limited-time-offer/campaign/limited-time-offer-campaign.builder.js +2 -0
- package/dist/lib/modules/limited-time-offer/campaign/limited-time-offer-campaign.builder.js.map +1 -1
- package/dist/lib/modules/limited-time-offer/campaign/limited-time-offer-campaign.validation.d.ts +19 -6
- 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 +3 -2
- 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 +3 -9
- 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 +4 -7
- 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/config/limited-time-offer-config.service.d.ts +1 -0
- package/dist/lib/modules/limited-time-offer/config/limited-time-offer-config.service.d.ts.map +1 -1
- package/dist/lib/modules/limited-time-offer/config/limited-time-offer-config.service.js +15 -0
- package/dist/lib/modules/limited-time-offer/config/limited-time-offer-config.service.js.map +1 -1
- package/dist/lib/modules/limited-time-offer/limited-time-offer.router.d.ts +96 -50
- package/dist/lib/modules/limited-time-offer/limited-time-offer.router.d.ts.map +1 -1
- package/dist/lib/modules/limited-time-offer/limited-time-offer.router.js +23 -0
- package/dist/lib/modules/limited-time-offer/limited-time-offer.router.js.map +1 -1
- package/dist/lib/modules/limited-time-offer/limited-time-offer.service.d.ts +18 -0
- package/dist/lib/modules/limited-time-offer/limited-time-offer.service.d.ts.map +1 -0
- package/dist/lib/modules/limited-time-offer/limited-time-offer.service.js +78 -0
- package/dist/lib/modules/limited-time-offer/limited-time-offer.service.js.map +1 -0
- package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.repository.d.ts +12 -0
- package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.repository.d.ts.map +1 -1
- package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.repository.js +68 -0
- package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.repository.js.map +1 -1
- package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.router.d.ts +22 -18
- package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.router.d.ts.map +1 -1
- package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.service.d.ts +1 -0
- package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.service.d.ts.map +1 -0
- package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.service.js +2 -0
- package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.service.js.map +1 -0
- package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.validation.d.ts +88 -83
- package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.validation.d.ts.map +1 -1
- package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.validation.js +3 -2
- package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.validation.js.map +1 -1
- package/dist/lib/modules/limited-time-offer/participant/services/limited-time-offer-participant.service.d.ts +10 -1
- package/dist/lib/modules/limited-time-offer/participant/services/limited-time-offer-participant.service.d.ts.map +1 -1
- package/dist/lib/modules/limited-time-offer/participant/services/limited-time-offer-participant.service.js +68 -22
- package/dist/lib/modules/limited-time-offer/participant/services/limited-time-offer-participant.service.js.map +1 -1
- package/dist/lib/modules/marketing/validations/product-marketing.validation.d.ts +2 -2
- 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.map +1 -1
- package/dist/lib/modules/tournament/config/config.builder.js +4 -0
- package/dist/lib/modules/tournament/config/config.builder.js.map +1 -1
- package/dist/lib/modules/tournament/config/config.repository.d.ts +8 -2
- package/dist/lib/modules/tournament/config/config.repository.d.ts.map +1 -1
- package/dist/lib/modules/tournament/config/config.repository.js +30 -1
- package/dist/lib/modules/tournament/config/config.repository.js.map +1 -1
- package/dist/lib/modules/tournament/config/config.router.d.ts +102 -12
- package/dist/lib/modules/tournament/config/config.router.d.ts.map +1 -1
- package/dist/lib/modules/tournament/config/config.types.d.ts +15 -0
- package/dist/lib/modules/tournament/config/config.types.d.ts.map +1 -0
- package/dist/lib/modules/tournament/config/config.types.js +3 -0
- package/dist/lib/modules/tournament/config/config.types.js.map +1 -0
- package/dist/lib/modules/tournament/config/config.validation.d.ts +431 -52
- package/dist/lib/modules/tournament/config/config.validation.d.ts.map +1 -1
- package/dist/lib/modules/tournament/config/config.validation.js +20 -6
- package/dist/lib/modules/tournament/config/config.validation.js.map +1 -1
- package/dist/lib/modules/tournament/integration/integration.factory.d.ts +4 -0
- package/dist/lib/modules/tournament/integration/integration.factory.d.ts.map +1 -0
- package/dist/lib/modules/tournament/integration/integration.factory.js +18 -0
- package/dist/lib/modules/tournament/integration/integration.factory.js.map +1 -0
- package/dist/lib/modules/tournament/integration/interfaces/ITournamentService.d.ts +36 -0
- package/dist/lib/modules/tournament/integration/interfaces/ITournamentService.d.ts.map +1 -0
- package/dist/lib/modules/tournament/integration/interfaces/ITournamentService.js +3 -0
- package/dist/lib/modules/tournament/integration/interfaces/ITournamentService.js.map +1 -0
- package/dist/lib/modules/tournament/integration/providers/api-football/api-football.provider.d.ts +14 -0
- package/dist/lib/modules/tournament/integration/providers/api-football/api-football.provider.d.ts.map +1 -0
- package/dist/lib/modules/tournament/integration/providers/api-football/api-football.provider.js +92 -0
- package/dist/lib/modules/tournament/integration/providers/api-football/api-football.provider.js.map +1 -0
- package/dist/lib/modules/tournament/integration/providers/api-football/api-football.types.d.ts +51 -0
- package/dist/lib/modules/tournament/integration/providers/api-football/api-football.types.d.ts.map +1 -0
- package/dist/lib/modules/tournament/integration/providers/api-football/api-football.types.js +3 -0
- package/dist/lib/modules/tournament/integration/providers/api-football/api-football.types.js.map +1 -0
- package/dist/lib/modules/tournament/integration/providers/api-football/index.d.ts +3 -0
- package/dist/lib/modules/tournament/integration/providers/api-football/index.d.ts.map +1 -0
- package/dist/lib/modules/tournament/integration/providers/api-football/index.js +19 -0
- package/dist/lib/modules/tournament/integration/providers/api-football/index.js.map +1 -0
- package/dist/lib/modules/tournament/integration/providers/index.d.ts +3 -0
- package/dist/lib/modules/tournament/integration/providers/index.d.ts.map +1 -0
- package/dist/lib/modules/tournament/integration/providers/index.js +19 -0
- package/dist/lib/modules/tournament/integration/providers/index.js.map +1 -0
- package/dist/lib/modules/tournament/integration/providers/mock.provider.d.ts +7 -0
- package/dist/lib/modules/tournament/integration/providers/mock.provider.d.ts.map +1 -0
- package/dist/lib/modules/tournament/integration/providers/mock.provider.js +22 -0
- package/dist/lib/modules/tournament/integration/providers/mock.provider.js.map +1 -0
- package/dist/lib/modules/tournament/integration/tournamentService.d.ts +9 -0
- package/dist/lib/modules/tournament/integration/tournamentService.d.ts.map +1 -0
- package/dist/lib/modules/tournament/integration/tournamentService.js +20 -0
- package/dist/lib/modules/tournament/integration/tournamentService.js.map +1 -0
- package/dist/lib/modules/tournament/match/events/evaluate-predictions.consumer.d.ts.map +1 -1
- package/dist/lib/modules/tournament/match/events/evaluate-predictions.consumer.js +50 -11
- package/dist/lib/modules/tournament/match/events/evaluate-predictions.consumer.js.map +1 -1
- package/dist/lib/modules/tournament/match/events/evaluate-predictions.event.d.ts +7 -3
- package/dist/lib/modules/tournament/match/events/evaluate-predictions.event.d.ts.map +1 -1
- package/dist/lib/modules/tournament/match/events/evaluate-predictions.event.js +1 -1
- package/dist/lib/modules/tournament/match/events/evaluate-predictions.event.js.map +1 -1
- package/dist/lib/modules/tournament/match/events/match-evaluation.orchestrator.d.ts +14 -0
- package/dist/lib/modules/tournament/match/events/match-evaluation.orchestrator.d.ts.map +1 -0
- package/dist/lib/modules/tournament/{notification/jobs/notification.worker.js → match/events/match-evaluation.orchestrator.js} +31 -27
- package/dist/lib/modules/tournament/match/events/match-evaluation.orchestrator.js.map +1 -0
- package/dist/lib/modules/tournament/match/match.builder.d.ts +13 -34
- package/dist/lib/modules/tournament/match/match.builder.d.ts.map +1 -1
- package/dist/lib/modules/tournament/match/match.builder.js +31 -10
- package/dist/lib/modules/tournament/match/match.builder.js.map +1 -1
- package/dist/lib/modules/tournament/match/match.repository.d.ts +1 -1
- package/dist/lib/modules/tournament/match/match.repository.d.ts.map +1 -1
- package/dist/lib/modules/tournament/match/match.repository.js.map +1 -1
- package/dist/lib/modules/tournament/match/match.router.d.ts +40 -4
- package/dist/lib/modules/tournament/match/match.router.d.ts.map +1 -1
- package/dist/lib/modules/tournament/match/match.service.d.ts +3 -0
- package/dist/lib/modules/tournament/match/match.service.d.ts.map +1 -1
- package/dist/lib/modules/tournament/match/match.service.js +15 -12
- package/dist/lib/modules/tournament/match/match.service.js.map +1 -1
- package/dist/lib/modules/tournament/match/match.types.d.ts +51 -0
- package/dist/lib/modules/tournament/match/match.types.d.ts.map +1 -0
- package/dist/lib/modules/tournament/match/match.types.js +3 -0
- package/dist/lib/modules/tournament/match/match.types.js.map +1 -0
- package/dist/lib/modules/tournament/notification/notification-template.repository.d.ts +2 -1
- package/dist/lib/modules/tournament/notification/notification-template.repository.d.ts.map +1 -1
- package/dist/lib/modules/tournament/notification/notification-template.repository.js +2 -1
- package/dist/lib/modules/tournament/notification/notification-template.repository.js.map +1 -1
- package/dist/lib/modules/tournament/notification/notification.builder.d.ts +30 -0
- package/dist/lib/modules/tournament/notification/notification.builder.d.ts.map +1 -0
- package/dist/lib/modules/tournament/notification/notification.builder.js +35 -0
- package/dist/lib/modules/tournament/notification/notification.builder.js.map +1 -0
- package/dist/lib/modules/tournament/notification/notification.config.d.ts +10 -9
- package/dist/lib/modules/tournament/notification/notification.config.d.ts.map +1 -1
- package/dist/lib/modules/tournament/notification/notification.config.js +0 -12
- package/dist/lib/modules/tournament/notification/notification.config.js.map +1 -1
- package/dist/lib/modules/tournament/notification/notification.service.d.ts +5 -3
- package/dist/lib/modules/tournament/notification/notification.service.d.ts.map +1 -1
- package/dist/lib/modules/tournament/notification/notification.service.js +23 -15
- package/dist/lib/modules/tournament/notification/notification.service.js.map +1 -1
- package/dist/lib/modules/tournament/participant/participant.builder.d.ts +12 -0
- package/dist/lib/modules/tournament/participant/participant.builder.d.ts.map +1 -0
- package/dist/lib/modules/tournament/participant/participant.builder.js +17 -0
- package/dist/lib/modules/tournament/participant/participant.builder.js.map +1 -0
- package/dist/lib/modules/tournament/participant/participant.repository.d.ts +8 -7
- package/dist/lib/modules/tournament/participant/participant.repository.d.ts.map +1 -1
- package/dist/lib/modules/tournament/participant/participant.repository.js +12 -2
- package/dist/lib/modules/tournament/participant/participant.repository.js.map +1 -1
- package/dist/lib/modules/tournament/participant/participant.service.d.ts +1 -0
- package/dist/lib/modules/tournament/participant/participant.service.d.ts.map +1 -1
- package/dist/lib/modules/tournament/participant/participant.service.js +15 -17
- package/dist/lib/modules/tournament/participant/participant.service.js.map +1 -1
- package/dist/lib/modules/tournament/prediction/prediction.builder.d.ts +3 -9
- package/dist/lib/modules/tournament/prediction/prediction.builder.d.ts.map +1 -1
- package/dist/lib/modules/tournament/prediction/prediction.builder.js.map +1 -1
- package/dist/lib/modules/tournament/prediction/prediction.repository.d.ts +11 -3
- package/dist/lib/modules/tournament/prediction/prediction.repository.d.ts.map +1 -1
- package/dist/lib/modules/tournament/prediction/prediction.repository.js +47 -0
- package/dist/lib/modules/tournament/prediction/prediction.repository.js.map +1 -1
- package/dist/lib/modules/tournament/prediction/prediction.service.d.ts +1 -1
- package/dist/lib/modules/tournament/prediction/prediction.service.d.ts.map +1 -1
- package/dist/lib/modules/tournament/prediction/prediction.service.js +16 -26
- package/dist/lib/modules/tournament/prediction/prediction.service.js.map +1 -1
- package/dist/lib/modules/tournament/prediction/prediction.types.d.ts +17 -0
- package/dist/lib/modules/tournament/prediction/prediction.types.d.ts.map +1 -0
- package/dist/lib/modules/tournament/prediction/prediction.types.js +3 -0
- package/dist/lib/modules/tournament/prediction/prediction.types.js.map +1 -0
- package/dist/lib/modules/tournament/reward/handlers/coupon-reward.handler.d.ts +8 -5
- package/dist/lib/modules/tournament/reward/handlers/coupon-reward.handler.d.ts.map +1 -1
- package/dist/lib/modules/tournament/reward/handlers/coupon-reward.handler.js +58 -16
- package/dist/lib/modules/tournament/reward/handlers/coupon-reward.handler.js.map +1 -1
- package/dist/lib/modules/tournament/reward/reward.builder.d.ts +5 -2
- package/dist/lib/modules/tournament/reward/reward.builder.d.ts.map +1 -1
- package/dist/lib/modules/tournament/reward/reward.builder.js +44 -28
- package/dist/lib/modules/tournament/reward/reward.builder.js.map +1 -1
- package/dist/lib/modules/tournament/reward/reward.factory.d.ts +1 -1
- package/dist/lib/modules/tournament/reward/reward.factory.d.ts.map +1 -1
- package/dist/lib/modules/tournament/reward/reward.factory.js.map +1 -1
- package/dist/lib/modules/tournament/reward/reward.interface.d.ts +2 -2
- package/dist/lib/modules/tournament/reward/reward.interface.d.ts.map +1 -1
- package/dist/lib/modules/tournament/reward/reward.interface.js.map +1 -1
- package/dist/lib/modules/tournament/reward/reward.service.d.ts +1 -1
- package/dist/lib/modules/tournament/reward/reward.service.d.ts.map +1 -1
- package/dist/lib/modules/tournament/reward/reward.service.js +1 -1
- package/dist/lib/modules/tournament/reward/reward.service.js.map +1 -1
- package/dist/lib/modules/tournament/reward/reward.types.d.ts +35 -2
- package/dist/lib/modules/tournament/reward/reward.types.d.ts.map +1 -1
- package/dist/lib/modules/tournament/reward/reward.types.js.map +1 -1
- package/dist/lib/modules/tournament/schedule/schedule.router.d.ts.map +1 -1
- package/dist/lib/modules/tournament/schedule/schedule.router.js +1 -3
- package/dist/lib/modules/tournament/schedule/schedule.router.js.map +1 -1
- package/dist/lib/modules/tournament/schedule/schedule.service.d.ts +3 -0
- package/dist/lib/modules/tournament/schedule/schedule.service.d.ts.map +1 -1
- package/dist/lib/modules/tournament/schedule/schedule.service.js +30 -1
- package/dist/lib/modules/tournament/schedule/schedule.service.js.map +1 -1
- package/dist/lib/modules/tournament/score/score.repository.d.ts +13 -0
- package/dist/lib/modules/tournament/score/score.repository.d.ts.map +1 -1
- package/dist/lib/modules/tournament/score/score.repository.js +20 -0
- package/dist/lib/modules/tournament/score/score.repository.js.map +1 -1
- package/dist/lib/modules/tournament/score/score.service.d.ts +3 -0
- package/dist/lib/modules/tournament/score/score.service.d.ts.map +1 -1
- package/dist/lib/modules/tournament/score/score.service.js +3 -0
- package/dist/lib/modules/tournament/score/score.service.js.map +1 -1
- package/dist/lib/modules/tournament/statistics/statistics.builder.d.ts +5 -0
- package/dist/lib/modules/tournament/statistics/statistics.builder.d.ts.map +1 -1
- package/dist/lib/modules/tournament/statistics/statistics.builder.js +47 -28
- package/dist/lib/modules/tournament/statistics/statistics.builder.js.map +1 -1
- package/dist/lib/modules/tournament/statistics/statistics.router.d.ts +4 -2
- package/dist/lib/modules/tournament/statistics/statistics.router.d.ts.map +1 -1
- package/dist/lib/modules/tournament/statistics/statistics.service.js +4 -4
- package/dist/lib/modules/tournament/statistics/statistics.service.js.map +1 -1
- package/dist/lib/modules/tournament/statistics/statistics.validation.d.ts +32 -14
- package/dist/lib/modules/tournament/statistics/statistics.validation.d.ts.map +1 -1
- package/dist/lib/modules/tournament/statistics/statistics.validation.js +2 -1
- package/dist/lib/modules/tournament/statistics/statistics.validation.js.map +1 -1
- package/dist/lib/modules/tournament/sync/sync.repository.d.ts +11 -0
- package/dist/lib/modules/tournament/sync/sync.repository.d.ts.map +1 -0
- package/dist/lib/modules/tournament/{notification/notification.scheduler.service.js → sync/sync.repository.js} +22 -28
- package/dist/lib/modules/tournament/sync/sync.repository.js.map +1 -0
- package/dist/lib/modules/tournament/sync/sync.router.d.ts +27 -0
- package/dist/lib/modules/tournament/sync/sync.router.d.ts.map +1 -0
- package/dist/lib/modules/tournament/sync/sync.router.js +15 -0
- package/dist/lib/modules/tournament/sync/sync.router.js.map +1 -0
- package/dist/lib/modules/tournament/sync/sync.service.d.ts +9 -0
- package/dist/lib/modules/tournament/sync/sync.service.d.ts.map +1 -0
- package/dist/lib/modules/tournament/sync/sync.service.js +117 -0
- package/dist/lib/modules/tournament/sync/sync.service.js.map +1 -0
- package/dist/lib/modules/tournament/team/team.builder.d.ts +4 -0
- package/dist/lib/modules/tournament/team/team.builder.d.ts.map +1 -1
- package/dist/lib/modules/tournament/team/team.builder.js +6 -0
- package/dist/lib/modules/tournament/team/team.builder.js.map +1 -1
- package/dist/lib/modules/tournament/team/team.repository.d.ts +3 -0
- package/dist/lib/modules/tournament/team/team.repository.d.ts.map +1 -1
- package/dist/lib/modules/tournament/team/team.repository.js +6 -0
- package/dist/lib/modules/tournament/team/team.repository.js.map +1 -1
- package/dist/lib/modules/tournament/team/team.router.d.ts +24 -6
- package/dist/lib/modules/tournament/team/team.router.d.ts.map +1 -1
- package/dist/lib/modules/tournament/team/team.router.js +1 -1
- package/dist/lib/modules/tournament/team/team.router.js.map +1 -1
- package/dist/lib/modules/tournament/team/team.service.d.ts +2 -1
- package/dist/lib/modules/tournament/team/team.service.d.ts.map +1 -1
- package/dist/lib/modules/tournament/team/team.service.js +26 -23
- package/dist/lib/modules/tournament/team/team.service.js.map +1 -1
- package/dist/lib/modules/tournament/team/team.validation.d.ts +23 -24
- package/dist/lib/modules/tournament/team/team.validation.d.ts.map +1 -1
- package/dist/lib/modules/tournament/team/team.validation.js +3 -4
- package/dist/lib/modules/tournament/team/team.validation.js.map +1 -1
- package/dist/lib/modules/tournament/tournament.builder.d.ts +11 -0
- package/dist/lib/modules/tournament/tournament.builder.d.ts.map +1 -0
- package/dist/lib/modules/tournament/tournament.builder.js +34 -0
- package/dist/lib/modules/tournament/tournament.builder.js.map +1 -0
- package/dist/lib/modules/tournament/tournament.router.d.ts +226 -26
- package/dist/lib/modules/tournament/tournament.router.d.ts.map +1 -1
- package/dist/lib/modules/tournament/tournament.router.js +2 -0
- package/dist/lib/modules/tournament/tournament.router.js.map +1 -1
- package/dist/lib/modules/tournament/tournament.service.d.ts.map +1 -1
- package/dist/lib/modules/tournament/tournament.service.js +3 -10
- package/dist/lib/modules/tournament/tournament.service.js.map +1 -1
- package/dist/lib/modules/tournament/tournament.types.d.ts +0 -3
- package/dist/lib/modules/tournament/tournament.types.d.ts.map +1 -1
- package/dist/lib/modules/tournament/tournament.types.js +1 -5
- package/dist/lib/modules/tournament/tournament.types.js.map +1 -1
- package/dist/lib/modules/tournament/tournament.utils.d.ts +4 -0
- package/dist/lib/modules/tournament/tournament.utils.d.ts.map +1 -1
- package/dist/lib/modules/tournament/tournament.utils.js +8 -1
- package/dist/lib/modules/tournament/tournament.utils.js.map +1 -1
- package/dist/lib/modules/tournament/tournament.validation.d.ts +205 -1
- package/dist/lib/modules/tournament/tournament.validation.d.ts.map +1 -1
- package/dist/lib/modules/tournament/tournament.validation.js +23 -2
- package/dist/lib/modules/tournament/tournament.validation.js.map +1 -1
- package/dist/types/index.d.ts +323 -77
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/modules/coupon/routers/coupon.router.d.ts.map +1 -1
- package/dist/types/modules/coupon/services/patterns/repository/CouponMetricsRepository.d.ts.map +1 -1
- package/dist/types/modules/coupon/validations/all-coupons.validation.d.ts +1117 -285
- package/dist/types/modules/coupon/validations/all-coupons.validation.d.ts.map +1 -1
- package/dist/types/modules/coupon/validations/index.d.ts +0 -1
- package/dist/types/modules/coupon/validations/index.d.ts.map +1 -1
- package/dist/types/modules/limited-time-offer/campaign/campaign.router.d.ts +34 -32
- package/dist/types/modules/limited-time-offer/campaign/campaign.router.d.ts.map +1 -1
- package/dist/types/modules/limited-time-offer/campaign/jobs/limited-time-offer-campaign.worker.d.ts +0 -1
- package/dist/types/modules/limited-time-offer/campaign/jobs/limited-time-offer-campaign.worker.d.ts.map +1 -1
- package/dist/types/modules/limited-time-offer/campaign/limited-time-offer-campaign.builder.d.ts +1 -0
- package/dist/types/modules/limited-time-offer/campaign/limited-time-offer-campaign.builder.d.ts.map +1 -1
- package/dist/types/modules/limited-time-offer/campaign/limited-time-offer-campaign.validation.d.ts +19 -6
- 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 +3 -9
- 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/config/limited-time-offer-config.service.d.ts +1 -0
- package/dist/types/modules/limited-time-offer/config/limited-time-offer-config.service.d.ts.map +1 -1
- package/dist/types/modules/limited-time-offer/limited-time-offer.router.d.ts +96 -50
- package/dist/types/modules/limited-time-offer/limited-time-offer.router.d.ts.map +1 -1
- package/dist/types/modules/limited-time-offer/limited-time-offer.service.d.ts +23 -0
- package/dist/types/modules/limited-time-offer/limited-time-offer.service.d.ts.map +1 -0
- package/dist/types/modules/limited-time-offer/participant/limited-time-offer-participant.repository.d.ts +12 -0
- package/dist/types/modules/limited-time-offer/participant/limited-time-offer-participant.repository.d.ts.map +1 -1
- package/dist/types/modules/limited-time-offer/participant/limited-time-offer-participant.router.d.ts +22 -18
- package/dist/types/modules/limited-time-offer/participant/limited-time-offer-participant.router.d.ts.map +1 -1
- package/dist/types/modules/limited-time-offer/participant/limited-time-offer-participant.validation.d.ts +88 -83
- package/dist/types/modules/limited-time-offer/participant/limited-time-offer-participant.validation.d.ts.map +1 -1
- package/dist/types/modules/limited-time-offer/participant/services/limited-time-offer-participant.service.d.ts +20 -1
- package/dist/types/modules/limited-time-offer/participant/services/limited-time-offer-participant.service.d.ts.map +1 -1
- package/dist/types/modules/marketing/validations/product-marketing.validation.d.ts +2 -2
- 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.map +1 -1
- package/dist/types/modules/tournament/config/config.repository.d.ts +8 -2
- package/dist/types/modules/tournament/config/config.repository.d.ts.map +1 -1
- package/dist/types/modules/tournament/config/config.router.d.ts +102 -12
- package/dist/types/modules/tournament/config/config.router.d.ts.map +1 -1
- package/dist/types/modules/tournament/config/config.types.d.ts +15 -0
- package/dist/types/modules/tournament/config/config.types.d.ts.map +1 -0
- package/dist/types/modules/tournament/config/config.validation.d.ts +431 -52
- package/dist/types/modules/tournament/config/config.validation.d.ts.map +1 -1
- package/dist/types/modules/tournament/integration/integration.factory.d.ts +4 -0
- package/dist/types/modules/tournament/integration/integration.factory.d.ts.map +1 -0
- package/dist/types/modules/tournament/integration/interfaces/ITournamentService.d.ts +36 -0
- package/dist/types/modules/tournament/integration/interfaces/ITournamentService.d.ts.map +1 -0
- package/dist/types/modules/tournament/integration/providers/api-football/api-football.provider.d.ts +14 -0
- package/dist/types/modules/tournament/integration/providers/api-football/api-football.provider.d.ts.map +1 -0
- package/dist/types/modules/tournament/integration/providers/api-football/api-football.types.d.ts +51 -0
- package/dist/types/modules/tournament/integration/providers/api-football/api-football.types.d.ts.map +1 -0
- package/dist/types/modules/tournament/integration/providers/api-football/index.d.ts +3 -0
- package/dist/types/modules/tournament/integration/providers/api-football/index.d.ts.map +1 -0
- package/dist/types/modules/tournament/integration/providers/index.d.ts +3 -0
- package/dist/types/modules/tournament/integration/providers/index.d.ts.map +1 -0
- package/dist/types/modules/tournament/integration/providers/mock.provider.d.ts +7 -0
- package/dist/types/modules/tournament/integration/providers/mock.provider.d.ts.map +1 -0
- package/dist/types/modules/tournament/integration/tournamentService.d.ts +9 -0
- package/dist/types/modules/tournament/integration/tournamentService.d.ts.map +1 -0
- package/dist/types/modules/tournament/match/events/evaluate-predictions.consumer.d.ts.map +1 -1
- package/dist/types/modules/tournament/match/events/evaluate-predictions.event.d.ts +7 -3
- package/dist/types/modules/tournament/match/events/evaluate-predictions.event.d.ts.map +1 -1
- package/dist/types/modules/tournament/match/events/match-evaluation.orchestrator.d.ts +14 -0
- package/dist/types/modules/tournament/match/events/match-evaluation.orchestrator.d.ts.map +1 -0
- package/dist/types/modules/tournament/match/match.builder.d.ts +13 -34
- package/dist/types/modules/tournament/match/match.builder.d.ts.map +1 -1
- package/dist/types/modules/tournament/match/match.repository.d.ts +1 -1
- package/dist/types/modules/tournament/match/match.repository.d.ts.map +1 -1
- package/dist/types/modules/tournament/match/match.router.d.ts +40 -4
- package/dist/types/modules/tournament/match/match.router.d.ts.map +1 -1
- package/dist/types/modules/tournament/match/match.service.d.ts +3 -0
- package/dist/types/modules/tournament/match/match.service.d.ts.map +1 -1
- package/dist/types/modules/tournament/match/match.types.d.ts +51 -0
- package/dist/types/modules/tournament/match/match.types.d.ts.map +1 -0
- package/dist/types/modules/tournament/notification/notification-template.repository.d.ts +2 -1
- package/dist/types/modules/tournament/notification/notification-template.repository.d.ts.map +1 -1
- package/dist/types/modules/tournament/notification/notification.builder.d.ts +30 -0
- package/dist/types/modules/tournament/notification/notification.builder.d.ts.map +1 -0
- package/dist/types/modules/tournament/notification/notification.config.d.ts +10 -9
- package/dist/types/modules/tournament/notification/notification.config.d.ts.map +1 -1
- package/dist/types/modules/tournament/notification/notification.service.d.ts +5 -3
- package/dist/types/modules/tournament/notification/notification.service.d.ts.map +1 -1
- package/dist/types/modules/tournament/participant/participant.builder.d.ts +12 -0
- package/dist/types/modules/tournament/participant/participant.builder.d.ts.map +1 -0
- package/dist/types/modules/tournament/participant/participant.repository.d.ts +8 -7
- package/dist/types/modules/tournament/participant/participant.repository.d.ts.map +1 -1
- package/dist/types/modules/tournament/participant/participant.service.d.ts +1 -0
- package/dist/types/modules/tournament/participant/participant.service.d.ts.map +1 -1
- package/dist/types/modules/tournament/prediction/prediction.builder.d.ts +3 -9
- package/dist/types/modules/tournament/prediction/prediction.builder.d.ts.map +1 -1
- package/dist/types/modules/tournament/prediction/prediction.repository.d.ts +11 -3
- package/dist/types/modules/tournament/prediction/prediction.repository.d.ts.map +1 -1
- package/dist/types/modules/tournament/prediction/prediction.service.d.ts +1 -1
- package/dist/types/modules/tournament/prediction/prediction.service.d.ts.map +1 -1
- package/dist/types/modules/tournament/prediction/prediction.types.d.ts +17 -0
- package/dist/types/modules/tournament/prediction/prediction.types.d.ts.map +1 -0
- package/dist/types/modules/tournament/reward/handlers/coupon-reward.handler.d.ts +8 -5
- package/dist/types/modules/tournament/reward/handlers/coupon-reward.handler.d.ts.map +1 -1
- package/dist/types/modules/tournament/reward/reward.builder.d.ts +5 -2
- package/dist/types/modules/tournament/reward/reward.builder.d.ts.map +1 -1
- package/dist/types/modules/tournament/reward/reward.factory.d.ts +1 -1
- package/dist/types/modules/tournament/reward/reward.factory.d.ts.map +1 -1
- package/dist/types/modules/tournament/reward/reward.interface.d.ts +2 -2
- package/dist/types/modules/tournament/reward/reward.interface.d.ts.map +1 -1
- package/dist/types/modules/tournament/reward/reward.service.d.ts +1 -1
- package/dist/types/modules/tournament/reward/reward.service.d.ts.map +1 -1
- package/dist/types/modules/tournament/reward/reward.types.d.ts +35 -2
- package/dist/types/modules/tournament/reward/reward.types.d.ts.map +1 -1
- package/dist/types/modules/tournament/schedule/schedule.router.d.ts.map +1 -1
- package/dist/types/modules/tournament/schedule/schedule.service.d.ts +3 -0
- package/dist/types/modules/tournament/schedule/schedule.service.d.ts.map +1 -1
- package/dist/types/modules/tournament/score/score.repository.d.ts +13 -0
- package/dist/types/modules/tournament/score/score.repository.d.ts.map +1 -1
- package/dist/types/modules/tournament/score/score.service.d.ts +3 -0
- package/dist/types/modules/tournament/score/score.service.d.ts.map +1 -1
- package/dist/types/modules/tournament/statistics/statistics.builder.d.ts +5 -0
- package/dist/types/modules/tournament/statistics/statistics.builder.d.ts.map +1 -1
- package/dist/types/modules/tournament/statistics/statistics.router.d.ts +4 -2
- package/dist/types/modules/tournament/statistics/statistics.router.d.ts.map +1 -1
- package/dist/types/modules/tournament/statistics/statistics.validation.d.ts +32 -14
- package/dist/types/modules/tournament/statistics/statistics.validation.d.ts.map +1 -1
- package/dist/types/modules/tournament/sync/sync.repository.d.ts +11 -0
- package/dist/types/modules/tournament/sync/sync.repository.d.ts.map +1 -0
- package/dist/types/modules/tournament/sync/sync.router.d.ts +27 -0
- package/dist/types/modules/tournament/sync/sync.router.d.ts.map +1 -0
- package/dist/types/modules/tournament/sync/sync.service.d.ts +9 -0
- package/dist/types/modules/tournament/sync/sync.service.d.ts.map +1 -0
- package/dist/types/modules/tournament/team/team.builder.d.ts +4 -0
- package/dist/types/modules/tournament/team/team.builder.d.ts.map +1 -1
- package/dist/types/modules/tournament/team/team.repository.d.ts +3 -0
- package/dist/types/modules/tournament/team/team.repository.d.ts.map +1 -1
- package/dist/types/modules/tournament/team/team.router.d.ts +24 -6
- package/dist/types/modules/tournament/team/team.router.d.ts.map +1 -1
- package/dist/types/modules/tournament/team/team.service.d.ts +2 -1
- package/dist/types/modules/tournament/team/team.service.d.ts.map +1 -1
- package/dist/types/modules/tournament/team/team.validation.d.ts +23 -24
- package/dist/types/modules/tournament/team/team.validation.d.ts.map +1 -1
- package/dist/types/modules/tournament/tournament.builder.d.ts +11 -0
- package/dist/types/modules/tournament/tournament.builder.d.ts.map +1 -0
- package/dist/types/modules/tournament/tournament.router.d.ts +226 -26
- package/dist/types/modules/tournament/tournament.router.d.ts.map +1 -1
- package/dist/types/modules/tournament/tournament.service.d.ts.map +1 -1
- package/dist/types/modules/tournament/tournament.types.d.ts +0 -3
- package/dist/types/modules/tournament/tournament.types.d.ts.map +1 -1
- package/dist/types/modules/tournament/tournament.utils.d.ts +4 -0
- package/dist/types/modules/tournament/tournament.utils.d.ts.map +1 -1
- package/dist/types/modules/tournament/tournament.validation.d.ts +205 -1
- package/dist/types/modules/tournament/tournament.validation.d.ts.map +1 -1
- package/package.json +3 -3
- package/dist/lib/modules/tournament/match/events/match-ended.consumer.d.ts +0 -2
- package/dist/lib/modules/tournament/match/events/match-ended.consumer.d.ts.map +0 -1
- package/dist/lib/modules/tournament/match/events/match-ended.consumer.js +0 -15
- package/dist/lib/modules/tournament/match/events/match-ended.consumer.js.map +0 -1
- package/dist/lib/modules/tournament/match/events/match-ended.event.d.ts +0 -14
- package/dist/lib/modules/tournament/match/events/match-ended.event.d.ts.map +0 -1
- package/dist/lib/modules/tournament/match/events/match-ended.event.js +0 -12
- package/dist/lib/modules/tournament/match/events/match-ended.event.js.map +0 -1
- package/dist/lib/modules/tournament/notification/jobs/notification.producer.d.ts +0 -10
- package/dist/lib/modules/tournament/notification/jobs/notification.producer.d.ts.map +0 -1
- package/dist/lib/modules/tournament/notification/jobs/notification.producer.js +0 -23
- package/dist/lib/modules/tournament/notification/jobs/notification.producer.js.map +0 -1
- package/dist/lib/modules/tournament/notification/jobs/notification.worker.d.ts +0 -9
- package/dist/lib/modules/tournament/notification/jobs/notification.worker.d.ts.map +0 -1
- package/dist/lib/modules/tournament/notification/jobs/notification.worker.js.map +0 -1
- package/dist/lib/modules/tournament/notification/notification.schedule.config.d.ts +0 -10
- package/dist/lib/modules/tournament/notification/notification.schedule.config.d.ts.map +0 -1
- package/dist/lib/modules/tournament/notification/notification.schedule.config.js +0 -15
- package/dist/lib/modules/tournament/notification/notification.schedule.config.js.map +0 -1
- package/dist/lib/modules/tournament/notification/notification.scheduler.service.d.ts +0 -10
- package/dist/lib/modules/tournament/notification/notification.scheduler.service.d.ts.map +0 -1
- package/dist/lib/modules/tournament/notification/notification.scheduler.service.js.map +0 -1
- package/dist/types/events/event-initializations.d.ts +0 -2
- package/dist/types/events/event-initializations.d.ts.map +0 -1
- package/dist/types/modules/tournament/config/tournament-config.validation.d.ts +0 -201
- package/dist/types/modules/tournament/config/tournament-config.validation.d.ts.map +0 -1
- package/dist/types/modules/tournament/match/events/match-ended.consumer.d.ts +0 -2
- package/dist/types/modules/tournament/match/events/match-ended.consumer.d.ts.map +0 -1
- package/dist/types/modules/tournament/match/events/match-ended.event.d.ts +0 -14
- package/dist/types/modules/tournament/match/events/match-ended.event.d.ts.map +0 -1
- package/dist/types/modules/tournament/notification/jobs/notification.producer.d.ts +0 -10
- package/dist/types/modules/tournament/notification/jobs/notification.producer.d.ts.map +0 -1
- package/dist/types/modules/tournament/notification/jobs/notification.worker.d.ts +0 -9
- package/dist/types/modules/tournament/notification/jobs/notification.worker.d.ts.map +0 -1
- package/dist/types/modules/tournament/notification/notification.schedule.config.d.ts +0 -10
- package/dist/types/modules/tournament/notification/notification.schedule.config.d.ts.map +0 -1
- package/dist/types/modules/tournament/notification/notification.scheduler.service.d.ts +0 -10
- package/dist/types/modules/tournament/notification/notification.scheduler.service.d.ts.map +0 -1
|
@@ -36,16 +36,25 @@ export declare const tournamentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
36
36
|
name: string;
|
|
37
37
|
startDate: string | Date;
|
|
38
38
|
endDate: string | Date;
|
|
39
|
-
tag:
|
|
39
|
+
tag: string;
|
|
40
40
|
status?: import("@lyxa.ai/core/dist/utilities/enum").Status | undefined;
|
|
41
41
|
reward?: {
|
|
42
42
|
type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.FREE_DELIVERY;
|
|
43
43
|
} | {
|
|
44
44
|
type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.COUPON;
|
|
45
|
+
maxDiscountPerOrder: number;
|
|
45
46
|
couponNamePrefix: string;
|
|
46
47
|
percentage: number;
|
|
47
|
-
maxDiscountPerOrder?: number | null | undefined;
|
|
48
48
|
} | undefined;
|
|
49
|
+
notificationTemplates?: Partial<Record<import("@lyxa.ai/core/dist/utilities/enum").TournamentNotificationTag, {
|
|
50
|
+
title: string;
|
|
51
|
+
body: string;
|
|
52
|
+
}>> | undefined;
|
|
53
|
+
scheduledNotifications?: {
|
|
54
|
+
type: import("@lyxa.ai/core/dist/utilities/enum").TournamentNotificationTag;
|
|
55
|
+
durationMins: number;
|
|
56
|
+
target: import("@lyxa.ai/core/dist/utilities/enum").TournamentScheduledNotificationTarget;
|
|
57
|
+
}[] | undefined;
|
|
49
58
|
};
|
|
50
59
|
output: {
|
|
51
60
|
message: string;
|
|
@@ -53,12 +62,12 @@ export declare const tournamentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
53
62
|
data?: {
|
|
54
63
|
status: import("@lyxa.ai/core/dist/utilities/enum").Status;
|
|
55
64
|
name: string;
|
|
65
|
+
tag: string;
|
|
56
66
|
_id?: string | mongoose.Types.ObjectId | undefined;
|
|
57
67
|
createdAt?: Date | null | undefined;
|
|
58
68
|
startDate?: Date | null | undefined;
|
|
59
69
|
endDate?: Date | null | undefined;
|
|
60
70
|
updatedAt?: Date | null | undefined;
|
|
61
|
-
tag?: import("./tournament.types").TournamentTag | undefined;
|
|
62
71
|
reward?: {
|
|
63
72
|
type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.FREE_DELIVERY;
|
|
64
73
|
} | {
|
|
@@ -67,16 +76,25 @@ export declare const tournamentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
67
76
|
couponNamePrefix?: string | undefined;
|
|
68
77
|
percentage?: number | undefined;
|
|
69
78
|
} | undefined;
|
|
79
|
+
notificationTemplates?: Partial<Record<import("@lyxa.ai/core/dist/utilities/enum").TournamentNotificationTag, {
|
|
80
|
+
title: string;
|
|
81
|
+
body: string;
|
|
82
|
+
}>> | undefined;
|
|
83
|
+
scheduledNotifications?: {
|
|
84
|
+
type: import("@lyxa.ai/core/dist/utilities/enum").TournamentNotificationTag;
|
|
85
|
+
durationMins: number;
|
|
86
|
+
target: import("@lyxa.ai/core/dist/utilities/enum").TournamentScheduledNotificationTarget;
|
|
87
|
+
}[] | undefined;
|
|
70
88
|
} | {
|
|
71
89
|
documents: {
|
|
72
90
|
status: import("@lyxa.ai/core/dist/utilities/enum").Status;
|
|
73
91
|
name: string;
|
|
92
|
+
tag: string;
|
|
74
93
|
_id?: string | mongoose.Types.ObjectId | undefined;
|
|
75
94
|
createdAt?: Date | null | undefined;
|
|
76
95
|
startDate?: Date | null | undefined;
|
|
77
96
|
endDate?: Date | null | undefined;
|
|
78
97
|
updatedAt?: Date | null | undefined;
|
|
79
|
-
tag?: import("./tournament.types").TournamentTag | undefined;
|
|
80
98
|
reward?: {
|
|
81
99
|
type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.FREE_DELIVERY;
|
|
82
100
|
} | {
|
|
@@ -85,6 +103,15 @@ export declare const tournamentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
85
103
|
couponNamePrefix?: string | undefined;
|
|
86
104
|
percentage?: number | undefined;
|
|
87
105
|
} | undefined;
|
|
106
|
+
notificationTemplates?: Partial<Record<import("@lyxa.ai/core/dist/utilities/enum").TournamentNotificationTag, {
|
|
107
|
+
title: string;
|
|
108
|
+
body: string;
|
|
109
|
+
}>> | undefined;
|
|
110
|
+
scheduledNotifications?: {
|
|
111
|
+
type: import("@lyxa.ai/core/dist/utilities/enum").TournamentNotificationTag;
|
|
112
|
+
durationMins: number;
|
|
113
|
+
target: import("@lyxa.ai/core/dist/utilities/enum").TournamentScheduledNotificationTarget;
|
|
114
|
+
}[] | undefined;
|
|
88
115
|
}[];
|
|
89
116
|
metadata?: {
|
|
90
117
|
page: number;
|
|
@@ -104,12 +131,12 @@ export declare const tournamentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
104
131
|
data?: {
|
|
105
132
|
status: import("@lyxa.ai/core/dist/utilities/enum").Status;
|
|
106
133
|
name: string;
|
|
134
|
+
tag: string;
|
|
107
135
|
_id?: string | mongoose.Types.ObjectId | undefined;
|
|
108
136
|
createdAt?: Date | null | undefined;
|
|
109
137
|
startDate?: Date | null | undefined;
|
|
110
138
|
endDate?: Date | null | undefined;
|
|
111
139
|
updatedAt?: Date | null | undefined;
|
|
112
|
-
tag?: import("./tournament.types").TournamentTag | undefined;
|
|
113
140
|
reward?: {
|
|
114
141
|
type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.FREE_DELIVERY;
|
|
115
142
|
} | {
|
|
@@ -117,16 +144,25 @@ export declare const tournamentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
117
144
|
maxDiscountPerOrder?: number | null | undefined;
|
|
118
145
|
percentage?: number | undefined;
|
|
119
146
|
} | undefined;
|
|
147
|
+
notificationTemplates?: Partial<Record<import("@lyxa.ai/core/dist/utilities/enum").TournamentNotificationTag, {
|
|
148
|
+
title: string;
|
|
149
|
+
body: string;
|
|
150
|
+
}>> | undefined;
|
|
151
|
+
scheduledNotifications?: {
|
|
152
|
+
type: import("@lyxa.ai/core/dist/utilities/enum").TournamentNotificationTag;
|
|
153
|
+
durationMins: number;
|
|
154
|
+
target: import("@lyxa.ai/core/dist/utilities/enum").TournamentScheduledNotificationTarget;
|
|
155
|
+
}[] | undefined;
|
|
120
156
|
}[] | {
|
|
121
157
|
documents: {
|
|
122
158
|
status: import("@lyxa.ai/core/dist/utilities/enum").Status;
|
|
123
159
|
name: string;
|
|
160
|
+
tag: string;
|
|
124
161
|
_id?: string | mongoose.Types.ObjectId | undefined;
|
|
125
162
|
createdAt?: Date | null | undefined;
|
|
126
163
|
startDate?: Date | null | undefined;
|
|
127
164
|
endDate?: Date | null | undefined;
|
|
128
165
|
updatedAt?: Date | null | undefined;
|
|
129
|
-
tag?: import("./tournament.types").TournamentTag | undefined;
|
|
130
166
|
reward?: {
|
|
131
167
|
type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.FREE_DELIVERY;
|
|
132
168
|
} | {
|
|
@@ -134,6 +170,15 @@ export declare const tournamentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
134
170
|
maxDiscountPerOrder?: number | null | undefined;
|
|
135
171
|
percentage?: number | undefined;
|
|
136
172
|
} | undefined;
|
|
173
|
+
notificationTemplates?: Partial<Record<import("@lyxa.ai/core/dist/utilities/enum").TournamentNotificationTag, {
|
|
174
|
+
title: string;
|
|
175
|
+
body: string;
|
|
176
|
+
}>> | undefined;
|
|
177
|
+
scheduledNotifications?: {
|
|
178
|
+
type: import("@lyxa.ai/core/dist/utilities/enum").TournamentNotificationTag;
|
|
179
|
+
durationMins: number;
|
|
180
|
+
target: import("@lyxa.ai/core/dist/utilities/enum").TournamentScheduledNotificationTarget;
|
|
181
|
+
}[] | undefined;
|
|
137
182
|
}[][];
|
|
138
183
|
metadata?: {
|
|
139
184
|
page: number;
|
|
@@ -155,12 +200,12 @@ export declare const tournamentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
155
200
|
data?: {
|
|
156
201
|
status: import("@lyxa.ai/core/dist/utilities/enum").Status;
|
|
157
202
|
name: string;
|
|
203
|
+
tag: string;
|
|
158
204
|
_id?: string | mongoose.Types.ObjectId | undefined;
|
|
159
205
|
createdAt?: Date | null | undefined;
|
|
160
206
|
startDate?: Date | null | undefined;
|
|
161
207
|
endDate?: Date | null | undefined;
|
|
162
208
|
updatedAt?: Date | null | undefined;
|
|
163
|
-
tag?: import("./tournament.types").TournamentTag | undefined;
|
|
164
209
|
reward?: {
|
|
165
210
|
type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.FREE_DELIVERY;
|
|
166
211
|
} | {
|
|
@@ -169,16 +214,25 @@ export declare const tournamentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
169
214
|
couponNamePrefix?: string | undefined;
|
|
170
215
|
percentage?: number | undefined;
|
|
171
216
|
} | undefined;
|
|
217
|
+
notificationTemplates?: Partial<Record<import("@lyxa.ai/core/dist/utilities/enum").TournamentNotificationTag, {
|
|
218
|
+
title: string;
|
|
219
|
+
body: string;
|
|
220
|
+
}>> | undefined;
|
|
221
|
+
scheduledNotifications?: {
|
|
222
|
+
type: import("@lyxa.ai/core/dist/utilities/enum").TournamentNotificationTag;
|
|
223
|
+
durationMins: number;
|
|
224
|
+
target: import("@lyxa.ai/core/dist/utilities/enum").TournamentScheduledNotificationTarget;
|
|
225
|
+
}[] | undefined;
|
|
172
226
|
} | {
|
|
173
227
|
documents: {
|
|
174
228
|
status: import("@lyxa.ai/core/dist/utilities/enum").Status;
|
|
175
229
|
name: string;
|
|
230
|
+
tag: string;
|
|
176
231
|
_id?: string | mongoose.Types.ObjectId | undefined;
|
|
177
232
|
createdAt?: Date | null | undefined;
|
|
178
233
|
startDate?: Date | null | undefined;
|
|
179
234
|
endDate?: Date | null | undefined;
|
|
180
235
|
updatedAt?: Date | null | undefined;
|
|
181
|
-
tag?: import("./tournament.types").TournamentTag | undefined;
|
|
182
236
|
reward?: {
|
|
183
237
|
type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.FREE_DELIVERY;
|
|
184
238
|
} | {
|
|
@@ -187,6 +241,15 @@ export declare const tournamentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
187
241
|
couponNamePrefix?: string | undefined;
|
|
188
242
|
percentage?: number | undefined;
|
|
189
243
|
} | undefined;
|
|
244
|
+
notificationTemplates?: Partial<Record<import("@lyxa.ai/core/dist/utilities/enum").TournamentNotificationTag, {
|
|
245
|
+
title: string;
|
|
246
|
+
body: string;
|
|
247
|
+
}>> | undefined;
|
|
248
|
+
scheduledNotifications?: {
|
|
249
|
+
type: import("@lyxa.ai/core/dist/utilities/enum").TournamentNotificationTag;
|
|
250
|
+
durationMins: number;
|
|
251
|
+
target: import("@lyxa.ai/core/dist/utilities/enum").TournamentScheduledNotificationTarget;
|
|
252
|
+
}[] | undefined;
|
|
190
253
|
}[];
|
|
191
254
|
metadata?: {
|
|
192
255
|
page: number;
|
|
@@ -205,15 +268,24 @@ export declare const tournamentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
205
268
|
name?: string | undefined;
|
|
206
269
|
startDate?: string | Date | undefined;
|
|
207
270
|
endDate?: string | Date | undefined;
|
|
208
|
-
tag?:
|
|
271
|
+
tag?: string | undefined;
|
|
209
272
|
reward?: {
|
|
210
273
|
type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.FREE_DELIVERY;
|
|
211
274
|
} | {
|
|
212
275
|
type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.COUPON;
|
|
276
|
+
maxDiscountPerOrder: number;
|
|
213
277
|
couponNamePrefix: string;
|
|
214
278
|
percentage: number;
|
|
215
|
-
maxDiscountPerOrder?: number | null | undefined;
|
|
216
279
|
} | undefined;
|
|
280
|
+
notificationTemplates?: Partial<Record<import("@lyxa.ai/core/dist/utilities/enum").TournamentNotificationTag, {
|
|
281
|
+
title: string;
|
|
282
|
+
body: string;
|
|
283
|
+
}>> | undefined;
|
|
284
|
+
scheduledNotifications?: {
|
|
285
|
+
type: import("@lyxa.ai/core/dist/utilities/enum").TournamentNotificationTag;
|
|
286
|
+
durationMins: number;
|
|
287
|
+
target: import("@lyxa.ai/core/dist/utilities/enum").TournamentScheduledNotificationTarget;
|
|
288
|
+
}[] | undefined;
|
|
217
289
|
};
|
|
218
290
|
output: {
|
|
219
291
|
message: string;
|
|
@@ -221,12 +293,12 @@ export declare const tournamentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
221
293
|
data?: {
|
|
222
294
|
status: import("@lyxa.ai/core/dist/utilities/enum").Status;
|
|
223
295
|
name: string;
|
|
296
|
+
tag: string;
|
|
224
297
|
_id?: string | mongoose.Types.ObjectId | undefined;
|
|
225
298
|
createdAt?: Date | null | undefined;
|
|
226
299
|
startDate?: Date | null | undefined;
|
|
227
300
|
endDate?: Date | null | undefined;
|
|
228
301
|
updatedAt?: Date | null | undefined;
|
|
229
|
-
tag?: import("./tournament.types").TournamentTag | undefined;
|
|
230
302
|
reward?: {
|
|
231
303
|
type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.FREE_DELIVERY;
|
|
232
304
|
} | {
|
|
@@ -235,16 +307,25 @@ export declare const tournamentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
235
307
|
couponNamePrefix?: string | undefined;
|
|
236
308
|
percentage?: number | undefined;
|
|
237
309
|
} | undefined;
|
|
310
|
+
notificationTemplates?: Partial<Record<import("@lyxa.ai/core/dist/utilities/enum").TournamentNotificationTag, {
|
|
311
|
+
title: string;
|
|
312
|
+
body: string;
|
|
313
|
+
}>> | undefined;
|
|
314
|
+
scheduledNotifications?: {
|
|
315
|
+
type: import("@lyxa.ai/core/dist/utilities/enum").TournamentNotificationTag;
|
|
316
|
+
durationMins: number;
|
|
317
|
+
target: import("@lyxa.ai/core/dist/utilities/enum").TournamentScheduledNotificationTarget;
|
|
318
|
+
}[] | undefined;
|
|
238
319
|
} | {
|
|
239
320
|
documents: {
|
|
240
321
|
status: import("@lyxa.ai/core/dist/utilities/enum").Status;
|
|
241
322
|
name: string;
|
|
323
|
+
tag: string;
|
|
242
324
|
_id?: string | mongoose.Types.ObjectId | undefined;
|
|
243
325
|
createdAt?: Date | null | undefined;
|
|
244
326
|
startDate?: Date | null | undefined;
|
|
245
327
|
endDate?: Date | null | undefined;
|
|
246
328
|
updatedAt?: Date | null | undefined;
|
|
247
|
-
tag?: import("./tournament.types").TournamentTag | undefined;
|
|
248
329
|
reward?: {
|
|
249
330
|
type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.FREE_DELIVERY;
|
|
250
331
|
} | {
|
|
@@ -253,6 +334,15 @@ export declare const tournamentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
253
334
|
couponNamePrefix?: string | undefined;
|
|
254
335
|
percentage?: number | undefined;
|
|
255
336
|
} | undefined;
|
|
337
|
+
notificationTemplates?: Partial<Record<import("@lyxa.ai/core/dist/utilities/enum").TournamentNotificationTag, {
|
|
338
|
+
title: string;
|
|
339
|
+
body: string;
|
|
340
|
+
}>> | undefined;
|
|
341
|
+
scheduledNotifications?: {
|
|
342
|
+
type: import("@lyxa.ai/core/dist/utilities/enum").TournamentNotificationTag;
|
|
343
|
+
durationMins: number;
|
|
344
|
+
target: import("@lyxa.ai/core/dist/utilities/enum").TournamentScheduledNotificationTarget;
|
|
345
|
+
}[] | undefined;
|
|
256
346
|
}[];
|
|
257
347
|
metadata?: {
|
|
258
348
|
page: number;
|
|
@@ -295,12 +385,12 @@ export declare const tournamentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
295
385
|
data?: {
|
|
296
386
|
status: import("@lyxa.ai/core/dist/utilities/enum").Status;
|
|
297
387
|
name: string;
|
|
388
|
+
tag: string;
|
|
298
389
|
_id?: string | mongoose.Types.ObjectId | undefined;
|
|
299
390
|
createdAt?: Date | null | undefined;
|
|
300
391
|
startDate?: Date | null | undefined;
|
|
301
392
|
endDate?: Date | null | undefined;
|
|
302
393
|
updatedAt?: Date | null | undefined;
|
|
303
|
-
tag?: import("./tournament.types").TournamentTag | undefined;
|
|
304
394
|
reward?: {
|
|
305
395
|
type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.FREE_DELIVERY;
|
|
306
396
|
} | {
|
|
@@ -309,16 +399,25 @@ export declare const tournamentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
309
399
|
couponNamePrefix?: string | undefined;
|
|
310
400
|
percentage?: number | undefined;
|
|
311
401
|
} | undefined;
|
|
402
|
+
notificationTemplates?: Partial<Record<import("@lyxa.ai/core/dist/utilities/enum").TournamentNotificationTag, {
|
|
403
|
+
title: string;
|
|
404
|
+
body: string;
|
|
405
|
+
}>> | undefined;
|
|
406
|
+
scheduledNotifications?: {
|
|
407
|
+
type: import("@lyxa.ai/core/dist/utilities/enum").TournamentNotificationTag;
|
|
408
|
+
durationMins: number;
|
|
409
|
+
target: import("@lyxa.ai/core/dist/utilities/enum").TournamentScheduledNotificationTarget;
|
|
410
|
+
}[] | undefined;
|
|
312
411
|
} | {
|
|
313
412
|
documents: {
|
|
314
413
|
status: import("@lyxa.ai/core/dist/utilities/enum").Status;
|
|
315
414
|
name: string;
|
|
415
|
+
tag: string;
|
|
316
416
|
_id?: string | mongoose.Types.ObjectId | undefined;
|
|
317
417
|
createdAt?: Date | null | undefined;
|
|
318
418
|
startDate?: Date | null | undefined;
|
|
319
419
|
endDate?: Date | null | undefined;
|
|
320
420
|
updatedAt?: Date | null | undefined;
|
|
321
|
-
tag?: import("./tournament.types").TournamentTag | undefined;
|
|
322
421
|
reward?: {
|
|
323
422
|
type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.FREE_DELIVERY;
|
|
324
423
|
} | {
|
|
@@ -327,6 +426,15 @@ export declare const tournamentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
327
426
|
couponNamePrefix?: string | undefined;
|
|
328
427
|
percentage?: number | undefined;
|
|
329
428
|
} | undefined;
|
|
429
|
+
notificationTemplates?: Partial<Record<import("@lyxa.ai/core/dist/utilities/enum").TournamentNotificationTag, {
|
|
430
|
+
title: string;
|
|
431
|
+
body: string;
|
|
432
|
+
}>> | undefined;
|
|
433
|
+
scheduledNotifications?: {
|
|
434
|
+
type: import("@lyxa.ai/core/dist/utilities/enum").TournamentNotificationTag;
|
|
435
|
+
durationMins: number;
|
|
436
|
+
target: import("@lyxa.ai/core/dist/utilities/enum").TournamentScheduledNotificationTarget;
|
|
437
|
+
}[] | undefined;
|
|
330
438
|
}[];
|
|
331
439
|
metadata?: {
|
|
332
440
|
page: number;
|
|
@@ -340,7 +448,7 @@ export declare const tournamentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
340
448
|
}>;
|
|
341
449
|
getAll: import("@trpc/server").TRPCQueryProcedure<{
|
|
342
450
|
input: {
|
|
343
|
-
tournamentId
|
|
451
|
+
tournamentId?: string | mongoose.Types.ObjectId | undefined;
|
|
344
452
|
};
|
|
345
453
|
output: {
|
|
346
454
|
message: string;
|
|
@@ -382,7 +490,7 @@ export declare const tournamentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
382
490
|
getMatches: import("@trpc/server").TRPCQueryProcedure<{
|
|
383
491
|
input: {
|
|
384
492
|
tournamentId: string | mongoose.Types.ObjectId;
|
|
385
|
-
filter?: import("
|
|
493
|
+
filter?: import("@lyxa.ai/core/dist/utilities/enum").TournamentMatchStatus | undefined;
|
|
386
494
|
};
|
|
387
495
|
output: {
|
|
388
496
|
message: string;
|
|
@@ -408,7 +516,7 @@ export declare const tournamentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
408
516
|
team2: number | null;
|
|
409
517
|
};
|
|
410
518
|
stage: string;
|
|
411
|
-
matchStatus: import("
|
|
519
|
+
matchStatus: import("@lyxa.ai/core/dist/utilities/enum").TournamentMatchStatus;
|
|
412
520
|
prediction: {
|
|
413
521
|
score: {
|
|
414
522
|
team1: number | null;
|
|
@@ -446,7 +554,7 @@ export declare const tournamentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
446
554
|
team2: number | null;
|
|
447
555
|
};
|
|
448
556
|
stage: string;
|
|
449
|
-
matchStatus: import("
|
|
557
|
+
matchStatus: import("@lyxa.ai/core/dist/utilities/enum").TournamentMatchStatus;
|
|
450
558
|
prediction: {
|
|
451
559
|
score: {
|
|
452
560
|
team1: number | null;
|
|
@@ -508,12 +616,12 @@ export declare const tournamentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
508
616
|
data?: {
|
|
509
617
|
status: import("@lyxa.ai/core/dist/utilities/enum").Status;
|
|
510
618
|
name: string;
|
|
619
|
+
tag: string;
|
|
511
620
|
_id?: string | mongoose.Types.ObjectId | undefined;
|
|
512
621
|
createdAt?: Date | null | undefined;
|
|
513
622
|
startDate?: Date | null | undefined;
|
|
514
623
|
endDate?: Date | null | undefined;
|
|
515
624
|
updatedAt?: Date | null | undefined;
|
|
516
|
-
tag?: import("./tournament.types").TournamentTag | undefined;
|
|
517
625
|
reward?: {
|
|
518
626
|
type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.FREE_DELIVERY;
|
|
519
627
|
} | {
|
|
@@ -522,16 +630,25 @@ export declare const tournamentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
522
630
|
couponNamePrefix?: string | undefined;
|
|
523
631
|
percentage?: number | undefined;
|
|
524
632
|
} | undefined;
|
|
633
|
+
notificationTemplates?: Partial<Record<import("@lyxa.ai/core/dist/utilities/enum").TournamentNotificationTag, {
|
|
634
|
+
title: string;
|
|
635
|
+
body: string;
|
|
636
|
+
}>> | undefined;
|
|
637
|
+
scheduledNotifications?: {
|
|
638
|
+
type: import("@lyxa.ai/core/dist/utilities/enum").TournamentNotificationTag;
|
|
639
|
+
durationMins: number;
|
|
640
|
+
target: import("@lyxa.ai/core/dist/utilities/enum").TournamentScheduledNotificationTarget;
|
|
641
|
+
}[] | undefined;
|
|
525
642
|
} | {
|
|
526
643
|
documents: {
|
|
527
644
|
status: import("@lyxa.ai/core/dist/utilities/enum").Status;
|
|
528
645
|
name: string;
|
|
646
|
+
tag: string;
|
|
529
647
|
_id?: string | mongoose.Types.ObjectId | undefined;
|
|
530
648
|
createdAt?: Date | null | undefined;
|
|
531
649
|
startDate?: Date | null | undefined;
|
|
532
650
|
endDate?: Date | null | undefined;
|
|
533
651
|
updatedAt?: Date | null | undefined;
|
|
534
|
-
tag?: import("./tournament.types").TournamentTag | undefined;
|
|
535
652
|
reward?: {
|
|
536
653
|
type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.FREE_DELIVERY;
|
|
537
654
|
} | {
|
|
@@ -540,6 +657,15 @@ export declare const tournamentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
540
657
|
couponNamePrefix?: string | undefined;
|
|
541
658
|
percentage?: number | undefined;
|
|
542
659
|
} | undefined;
|
|
660
|
+
notificationTemplates?: Partial<Record<import("@lyxa.ai/core/dist/utilities/enum").TournamentNotificationTag, {
|
|
661
|
+
title: string;
|
|
662
|
+
body: string;
|
|
663
|
+
}>> | undefined;
|
|
664
|
+
scheduledNotifications?: {
|
|
665
|
+
type: import("@lyxa.ai/core/dist/utilities/enum").TournamentNotificationTag;
|
|
666
|
+
durationMins: number;
|
|
667
|
+
target: import("@lyxa.ai/core/dist/utilities/enum").TournamentScheduledNotificationTarget;
|
|
668
|
+
}[] | undefined;
|
|
543
669
|
}[];
|
|
544
670
|
metadata?: {
|
|
545
671
|
page: number;
|
|
@@ -793,12 +919,12 @@ export declare const tournamentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
793
919
|
data?: {
|
|
794
920
|
status: import("@lyxa.ai/core/dist/utilities/enum").Status;
|
|
795
921
|
name: string;
|
|
922
|
+
tag: string;
|
|
796
923
|
_id?: string | mongoose.Types.ObjectId | undefined;
|
|
797
924
|
createdAt?: Date | null | undefined;
|
|
798
925
|
startDate?: Date | null | undefined;
|
|
799
926
|
endDate?: Date | null | undefined;
|
|
800
927
|
updatedAt?: Date | null | undefined;
|
|
801
|
-
tag?: import("./tournament.types").TournamentTag | undefined;
|
|
802
928
|
reward?: {
|
|
803
929
|
type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.FREE_DELIVERY;
|
|
804
930
|
} | {
|
|
@@ -807,16 +933,25 @@ export declare const tournamentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
807
933
|
couponNamePrefix?: string | undefined;
|
|
808
934
|
percentage?: number | undefined;
|
|
809
935
|
} | undefined;
|
|
936
|
+
notificationTemplates?: Partial<Record<import("@lyxa.ai/core/dist/utilities/enum").TournamentNotificationTag, {
|
|
937
|
+
title: string;
|
|
938
|
+
body: string;
|
|
939
|
+
}>> | undefined;
|
|
940
|
+
scheduledNotifications?: {
|
|
941
|
+
type: import("@lyxa.ai/core/dist/utilities/enum").TournamentNotificationTag;
|
|
942
|
+
durationMins: number;
|
|
943
|
+
target: import("@lyxa.ai/core/dist/utilities/enum").TournamentScheduledNotificationTarget;
|
|
944
|
+
}[] | undefined;
|
|
810
945
|
} | {
|
|
811
946
|
documents: {
|
|
812
947
|
status: import("@lyxa.ai/core/dist/utilities/enum").Status;
|
|
813
948
|
name: string;
|
|
949
|
+
tag: string;
|
|
814
950
|
_id?: string | mongoose.Types.ObjectId | undefined;
|
|
815
951
|
createdAt?: Date | null | undefined;
|
|
816
952
|
startDate?: Date | null | undefined;
|
|
817
953
|
endDate?: Date | null | undefined;
|
|
818
954
|
updatedAt?: Date | null | undefined;
|
|
819
|
-
tag?: import("./tournament.types").TournamentTag | undefined;
|
|
820
955
|
reward?: {
|
|
821
956
|
type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.FREE_DELIVERY;
|
|
822
957
|
} | {
|
|
@@ -825,6 +960,15 @@ export declare const tournamentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
825
960
|
couponNamePrefix?: string | undefined;
|
|
826
961
|
percentage?: number | undefined;
|
|
827
962
|
} | undefined;
|
|
963
|
+
notificationTemplates?: Partial<Record<import("@lyxa.ai/core/dist/utilities/enum").TournamentNotificationTag, {
|
|
964
|
+
title: string;
|
|
965
|
+
body: string;
|
|
966
|
+
}>> | undefined;
|
|
967
|
+
scheduledNotifications?: {
|
|
968
|
+
type: import("@lyxa.ai/core/dist/utilities/enum").TournamentNotificationTag;
|
|
969
|
+
durationMins: number;
|
|
970
|
+
target: import("@lyxa.ai/core/dist/utilities/enum").TournamentScheduledNotificationTarget;
|
|
971
|
+
}[] | undefined;
|
|
828
972
|
}[];
|
|
829
973
|
metadata?: {
|
|
830
974
|
page: number;
|
|
@@ -1130,13 +1274,14 @@ export declare const tournamentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1130
1274
|
id: string;
|
|
1131
1275
|
result: "won" | "lost" | "pending" | null;
|
|
1132
1276
|
teams: string;
|
|
1277
|
+
stage: string;
|
|
1133
1278
|
prediction: string | null;
|
|
1134
1279
|
realScore: string | null;
|
|
1135
1280
|
}[];
|
|
1136
1281
|
selectedTeam: {
|
|
1137
1282
|
name: string;
|
|
1138
1283
|
flag: string | null;
|
|
1139
|
-
};
|
|
1284
|
+
} | null;
|
|
1140
1285
|
} | {
|
|
1141
1286
|
documents: ({
|
|
1142
1287
|
name: string;
|
|
@@ -1152,13 +1297,14 @@ export declare const tournamentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1152
1297
|
id: string;
|
|
1153
1298
|
result: "won" | "lost" | "pending" | null;
|
|
1154
1299
|
teams: string;
|
|
1300
|
+
stage: string;
|
|
1155
1301
|
prediction: string | null;
|
|
1156
1302
|
realScore: string | null;
|
|
1157
1303
|
}[];
|
|
1158
1304
|
selectedTeam: {
|
|
1159
1305
|
name: string;
|
|
1160
1306
|
flag: string | null;
|
|
1161
|
-
};
|
|
1307
|
+
} | null;
|
|
1162
1308
|
} | null)[];
|
|
1163
1309
|
metadata?: {
|
|
1164
1310
|
page: number;
|
|
@@ -1294,6 +1440,32 @@ export declare const tournamentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1294
1440
|
meta: object;
|
|
1295
1441
|
}>;
|
|
1296
1442
|
}>>;
|
|
1443
|
+
sync: import("@trpc/server").TRPCBuiltRouter<{
|
|
1444
|
+
ctx: import("@lyxa.ai/core/dist/libraries/trpc/context").LyxaHTTPContext;
|
|
1445
|
+
meta: object;
|
|
1446
|
+
errorShape: {
|
|
1447
|
+
message: string;
|
|
1448
|
+
data: {
|
|
1449
|
+
stack: undefined;
|
|
1450
|
+
path: undefined;
|
|
1451
|
+
code: import("@trpc/server").TRPC_ERROR_CODE_KEY;
|
|
1452
|
+
httpStatus: number;
|
|
1453
|
+
};
|
|
1454
|
+
stack: undefined;
|
|
1455
|
+
code: import("@trpc/server").TRPC_ERROR_CODE_NUMBER;
|
|
1456
|
+
};
|
|
1457
|
+
transformer: false;
|
|
1458
|
+
}, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
|
|
1459
|
+
syncLiveScores: import("@trpc/server").TRPCMutationProcedure<{
|
|
1460
|
+
input: void;
|
|
1461
|
+
output: {
|
|
1462
|
+
success: boolean;
|
|
1463
|
+
message: string;
|
|
1464
|
+
data: null | undefined;
|
|
1465
|
+
};
|
|
1466
|
+
meta: object;
|
|
1467
|
+
}>;
|
|
1468
|
+
}>>;
|
|
1297
1469
|
getActive: import("@trpc/server").TRPCQueryProcedure<{
|
|
1298
1470
|
input: void;
|
|
1299
1471
|
output: {
|
|
@@ -1301,17 +1473,45 @@ export declare const tournamentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1301
1473
|
success: boolean;
|
|
1302
1474
|
data?: {
|
|
1303
1475
|
name: string;
|
|
1476
|
+
_id: string | mongoose.Types.ObjectId;
|
|
1304
1477
|
tag: string;
|
|
1305
|
-
|
|
1478
|
+
selectedTeam: {
|
|
1479
|
+
name: string;
|
|
1480
|
+
_id: string | mongoose.Types.ObjectId;
|
|
1481
|
+
picture?: string | undefined;
|
|
1482
|
+
} | null;
|
|
1483
|
+
userStatus: import("@lyxa.ai/core/dist/utilities/enum").TournamentParticipantStatus;
|
|
1306
1484
|
startDate?: Date | null | undefined;
|
|
1307
1485
|
endDate?: Date | null | undefined;
|
|
1486
|
+
reward?: {
|
|
1487
|
+
type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.COUPON;
|
|
1488
|
+
maxDiscountPerOrder?: number | null | undefined;
|
|
1489
|
+
couponNamePrefix?: string | undefined;
|
|
1490
|
+
percentage?: number | undefined;
|
|
1491
|
+
} | {
|
|
1492
|
+
type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.FREE_DELIVERY;
|
|
1493
|
+
} | undefined;
|
|
1308
1494
|
} | {
|
|
1309
1495
|
documents: ({
|
|
1310
1496
|
name: string;
|
|
1497
|
+
_id: string | mongoose.Types.ObjectId;
|
|
1311
1498
|
tag: string;
|
|
1312
|
-
|
|
1499
|
+
selectedTeam: {
|
|
1500
|
+
name: string;
|
|
1501
|
+
_id: string | mongoose.Types.ObjectId;
|
|
1502
|
+
picture?: string | undefined;
|
|
1503
|
+
} | null;
|
|
1504
|
+
userStatus: import("@lyxa.ai/core/dist/utilities/enum").TournamentParticipantStatus;
|
|
1313
1505
|
startDate?: Date | null | undefined;
|
|
1314
1506
|
endDate?: Date | null | undefined;
|
|
1507
|
+
reward?: {
|
|
1508
|
+
type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.COUPON;
|
|
1509
|
+
maxDiscountPerOrder?: number | null | undefined;
|
|
1510
|
+
couponNamePrefix?: string | undefined;
|
|
1511
|
+
percentage?: number | undefined;
|
|
1512
|
+
} | {
|
|
1513
|
+
type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.FREE_DELIVERY;
|
|
1514
|
+
} | undefined;
|
|
1315
1515
|
} | null)[];
|
|
1316
1516
|
metadata?: {
|
|
1317
1517
|
page: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tournament.router.d.ts","sourceRoot":"/","sources":["modules/tournament/tournament.router.ts"],"names":[],"mappings":"AAKA,OAAO,EAAC,QAAQ,EAAC,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"tournament.router.d.ts","sourceRoot":"/","sources":["modules/tournament/tournament.router.ts"],"names":[],"mappings":"AAKA,OAAO,EAAC,QAAQ,EAAC,MAAM,sBAAsB,CAAC;AAa9C,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmB3B,CAAC"}
|
|
@@ -15,6 +15,7 @@ const prediction_router_1 = require("./prediction/prediction.router");
|
|
|
15
15
|
const statistics_router_1 = require("./statistics/statistics.router");
|
|
16
16
|
const schedule_router_1 = require("./schedule/schedule.router");
|
|
17
17
|
const score_router_1 = require("./score/score.router");
|
|
18
|
+
const sync_router_1 = require("./sync/sync.router");
|
|
18
19
|
const tournament_validation_1 = require("./tournament.validation");
|
|
19
20
|
const tournament_service_1 = require("./tournament.service");
|
|
20
21
|
exports.tournamentRouter = (0, trpc_1.createTRPCRouter)({
|
|
@@ -26,6 +27,7 @@ exports.tournamentRouter = (0, trpc_1.createTRPCRouter)({
|
|
|
26
27
|
statistics: statistics_router_1.statisticsRouter,
|
|
27
28
|
schedule: schedule_router_1.scheduleRouter,
|
|
28
29
|
score: score_router_1.scoreRouter,
|
|
30
|
+
sync: sync_router_1.syncRouter,
|
|
29
31
|
getActive: (0, auth_2.createAuthenticatedProcedure)({ entityTypes: [auth_1.AuthEntityType.USER] })
|
|
30
32
|
.output(tournament_validation_1.ActiveTournamentResponseSchema)
|
|
31
33
|
.query(({ ctx }) => error_handler_1.ErrorHandler.wrapAsync(async () => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tournament.router.js","sourceRoot":"/","sources":["modules/tournament/tournament.router.ts"],"names":[],"mappings":";;;AAAA,4DAAmE;AACnE,4DAAiE;AACjE,6EAAgG;AAChG,8EAAwE;AACxE,oEAA+D;AAC/D,oDAA8C;AAC9C,0DAAoD;AACpD,oDAA8C;AAC9C,uDAAiD;AACjD,yEAAmE;AACnE,sEAAgE;AAChE,sEAAgE;AAChE,gEAA0D;AAC1D,uDAAiD;AACjD,mEAAuE;AACvE,6DAAkE;AAErD,QAAA,gBAAgB,GAAG,IAAA,uBAAgB,EAAC;IAChD,MAAM,EAAE,4BAAY;IACpB,IAAI,EAAE,wBAAU;IAChB,KAAK,EAAE,0BAAW;IAClB,WAAW,EAAE,sCAAiB;IAC9B,UAAU,EAAE,oCAAgB;IAC5B,UAAU,EAAE,oCAAgB;IAC5B,QAAQ,EAAE,gCAAc;IACxB,KAAK,EAAE,0BAAW;
|
|
1
|
+
{"version":3,"file":"tournament.router.js","sourceRoot":"/","sources":["modules/tournament/tournament.router.ts"],"names":[],"mappings":";;;AAAA,4DAAmE;AACnE,4DAAiE;AACjE,6EAAgG;AAChG,8EAAwE;AACxE,oEAA+D;AAC/D,oDAA8C;AAC9C,0DAAoD;AACpD,oDAA8C;AAC9C,uDAAiD;AACjD,yEAAmE;AACnE,sEAAgE;AAChE,sEAAgE;AAChE,gEAA0D;AAC1D,uDAAiD;AACjD,oDAA8C;AAC9C,mEAAuE;AACvE,6DAAkE;AAErD,QAAA,gBAAgB,GAAG,IAAA,uBAAgB,EAAC;IAChD,MAAM,EAAE,4BAAY;IACpB,IAAI,EAAE,wBAAU;IAChB,KAAK,EAAE,0BAAW;IAClB,WAAW,EAAE,sCAAiB;IAC9B,UAAU,EAAE,oCAAgB;IAC5B,UAAU,EAAE,oCAAgB;IAC5B,QAAQ,EAAE,gCAAc;IACxB,KAAK,EAAE,0BAAW;IAClB,IAAI,EAAE,wBAAU;IAEhB,SAAS,EAAE,IAAA,mCAA4B,EAAC,EAAE,WAAW,EAAE,CAAC,qBAAc,CAAC,IAAI,CAAC,EAAE,CAAC;SAC7E,MAAM,CAAC,sDAA8B,CAAC;SACtC,KAAK,CAAC,CAAC,EAAE,GAAG,EAAE,EAAE,EAAE,CAClB,4BAAY,CAAC,SAAS,CAAC,KAAK,IAAI,EAAE;QACjC,MAAM,MAAM,GAAG,MAAM,sCAAO,CAAC,SAAS,CAAC,IAAI,oBAAQ,CAAC,KAAK,CAAC,QAAQ,CAAC,GAAG,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,CAAC;QACpF,OAAO,IAAA,mBAAQ,EAAC,wCAAwC,EAAE,MAAM,CAAC,CAAC;IACnE,CAAC,CAAC,CACF;CACF,CAAC,CAAC","sourcesContent":["import {createTRPCRouter} from '@lyxa.ai/core/dist/libraries/trpc';\nimport {AuthEntityType} from '@lyxa.ai/core/dist/libraries/auth';\nimport {createAuthenticatedProcedure} from '@lyxa.ai/core/dist/libraries/trpc/middlewares/auth';\nimport {ErrorHandler} from '@lyxa.ai/core/dist/utilities/error-handler';\nimport {response} from '@lyxa.ai/core/dist/utilities/response';\nimport {mongoose} from '@typegoose/typegoose';\nimport {configRouter} from './config/config.router';\nimport {teamRouter} from './team/team.router';\nimport {matchRouter} from './match/match.router';\nimport {participantRouter} from './participant/participant.router';\nimport {predictionRouter} from './prediction/prediction.router';\nimport {statisticsRouter} from './statistics/statistics.router';\nimport {scheduleRouter} from './schedule/schedule.router';\nimport {scoreRouter} from './score/score.router';\nimport {syncRouter} from './sync/sync.router';\nimport {ActiveTournamentResponseSchema} from './tournament.validation';\nimport {tournamentService as service} from './tournament.service';\n\nexport const tournamentRouter = createTRPCRouter({\n\tconfig: configRouter,\n\tteam: teamRouter,\n\tmatch: matchRouter,\n\tparticipant: participantRouter,\n\tprediction: predictionRouter,\n\tstatistics: statisticsRouter,\n\tschedule: scheduleRouter,\n\tscore: scoreRouter,\n\tsync: syncRouter,\n\n\tgetActive: createAuthenticatedProcedure({ entityTypes: [AuthEntityType.USER] })\n\t\t.output(ActiveTournamentResponseSchema)\n\t\t.query(({ ctx }) =>\n\t\t\tErrorHandler.wrapAsync(async () => {\n\t\t\t\tconst result = await service.getActive(new mongoose.Types.ObjectId(ctx.entity?.id));\n\t\t\t\treturn response('Active tournament fetched successfully', result);\n\t\t\t})\n\t\t),\n});\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tournament.service.d.ts","sourceRoot":"/","sources":["modules/tournament/tournament.service.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EAAE,yBAAyB,EAAE,MAAM,yBAAyB,CAAC;AAKpE,qBACa,iBAAiB;IAC7B,OAAO,CAAC,UAAU,CAA6B;IAC/C,OAAO,CAAC,qBAAqB,CAAkC;;IAOlD,SAAS,CAAC,MAAM,EAAE,QAAQ,CAAC,KAAK,CAAC,QAAQ,GAAG,OAAO,CAAC,yBAAyB,GAAG,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"tournament.service.d.ts","sourceRoot":"/","sources":["modules/tournament/tournament.service.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EAAE,yBAAyB,EAAE,MAAM,yBAAyB,CAAC;AAKpE,qBACa,iBAAiB;IAC7B,OAAO,CAAC,UAAU,CAA6B;IAC/C,OAAO,CAAC,qBAAqB,CAAkC;;IAOlD,SAAS,CAAC,MAAM,EAAE,QAAQ,CAAC,KAAK,CAAC,QAAQ,GAAG,OAAO,CAAC,yBAAyB,GAAG,IAAI,CAAC;CAOlG;AAED,eAAO,MAAM,iBAAiB,mBAAmC,CAAC"}
|