@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
package/dist/types/index.d.ts
CHANGED
|
@@ -6485,8 +6485,8 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
|
|
|
6485
6485
|
input: {
|
|
6486
6486
|
user: string | import("mongoose").Types.ObjectId;
|
|
6487
6487
|
shop: string | import("mongoose").Types.ObjectId;
|
|
6488
|
-
marketing: string | import("mongoose").Types.ObjectId;
|
|
6489
6488
|
minimumOrderValue: number;
|
|
6489
|
+
marketing: string | import("mongoose").Types.ObjectId;
|
|
6490
6490
|
targetOrder: number;
|
|
6491
6491
|
couponValueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
6492
6492
|
couponValue: number;
|
|
@@ -7299,6 +7299,48 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
|
|
|
7299
7299
|
};
|
|
7300
7300
|
transformer: false;
|
|
7301
7301
|
}, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
|
|
7302
|
+
getActive: import("@trpc/server").TRPCQueryProcedure<{
|
|
7303
|
+
input: {
|
|
7304
|
+
latitude: number;
|
|
7305
|
+
longitude: number;
|
|
7306
|
+
};
|
|
7307
|
+
output: {
|
|
7308
|
+
message: string;
|
|
7309
|
+
success: boolean;
|
|
7310
|
+
data?: {
|
|
7311
|
+
_id: string | import("mongoose").Types.ObjectId;
|
|
7312
|
+
title?: string | undefined;
|
|
7313
|
+
subtitle?: string | undefined;
|
|
7314
|
+
startTime?: Date | null | undefined;
|
|
7315
|
+
endTime?: Date | null | undefined;
|
|
7316
|
+
} | {
|
|
7317
|
+
documents: ({
|
|
7318
|
+
_id: string | import("mongoose").Types.ObjectId;
|
|
7319
|
+
title?: string | undefined;
|
|
7320
|
+
subtitle?: string | undefined;
|
|
7321
|
+
startTime?: Date | null | undefined;
|
|
7322
|
+
endTime?: Date | null | undefined;
|
|
7323
|
+
} | null)[];
|
|
7324
|
+
metadata?: {
|
|
7325
|
+
page: number;
|
|
7326
|
+
size: number;
|
|
7327
|
+
totalElements: number;
|
|
7328
|
+
totalPages: number;
|
|
7329
|
+
} | undefined;
|
|
7330
|
+
} | null | undefined;
|
|
7331
|
+
};
|
|
7332
|
+
meta: object;
|
|
7333
|
+
}>;
|
|
7334
|
+
cancel: import("@trpc/server").TRPCMutationProcedure<{
|
|
7335
|
+
input: {
|
|
7336
|
+
campaignId: string | import("mongoose").Types.ObjectId;
|
|
7337
|
+
};
|
|
7338
|
+
output: {
|
|
7339
|
+
message: string;
|
|
7340
|
+
success: boolean;
|
|
7341
|
+
};
|
|
7342
|
+
meta: object;
|
|
7343
|
+
}>;
|
|
7302
7344
|
config: import("@trpc/server").TRPCBuiltRouter<{
|
|
7303
7345
|
ctx: import("@lyxa.ai/core/dist/libraries/trpc/context").LyxaHTTPContext;
|
|
7304
7346
|
meta: object;
|
|
@@ -7526,38 +7568,6 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
|
|
|
7526
7568
|
};
|
|
7527
7569
|
meta: object;
|
|
7528
7570
|
}>;
|
|
7529
|
-
getActive: import("@trpc/server").TRPCQueryProcedure<{
|
|
7530
|
-
input: {
|
|
7531
|
-
latitude?: number | undefined;
|
|
7532
|
-
longitude?: number | undefined;
|
|
7533
|
-
};
|
|
7534
|
-
output: {
|
|
7535
|
-
message: string;
|
|
7536
|
-
success: boolean;
|
|
7537
|
-
data?: {
|
|
7538
|
-
_id: string | import("mongoose").Types.ObjectId;
|
|
7539
|
-
title?: string | undefined;
|
|
7540
|
-
subtitle?: string | undefined;
|
|
7541
|
-
startTime?: Date | null | undefined;
|
|
7542
|
-
endTime?: Date | null | undefined;
|
|
7543
|
-
} | {
|
|
7544
|
-
documents: ({
|
|
7545
|
-
_id: string | import("mongoose").Types.ObjectId;
|
|
7546
|
-
title?: string | undefined;
|
|
7547
|
-
subtitle?: string | undefined;
|
|
7548
|
-
startTime?: Date | null | undefined;
|
|
7549
|
-
endTime?: Date | null | undefined;
|
|
7550
|
-
} | null)[];
|
|
7551
|
-
metadata?: {
|
|
7552
|
-
page: number;
|
|
7553
|
-
size: number;
|
|
7554
|
-
totalElements: number;
|
|
7555
|
-
totalPages: number;
|
|
7556
|
-
} | undefined;
|
|
7557
|
-
} | null | undefined;
|
|
7558
|
-
};
|
|
7559
|
-
meta: object;
|
|
7560
|
-
}>;
|
|
7561
7571
|
getById: import("@trpc/server").TRPCQueryProcedure<{
|
|
7562
7572
|
input: {
|
|
7563
7573
|
campaignId: string | import("mongoose").Types.ObjectId;
|
|
@@ -7692,6 +7702,38 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
|
|
|
7692
7702
|
};
|
|
7693
7703
|
meta: object;
|
|
7694
7704
|
}>;
|
|
7705
|
+
getActive: import("@trpc/server").TRPCQueryProcedure<{
|
|
7706
|
+
input: {
|
|
7707
|
+
latitude: number;
|
|
7708
|
+
longitude: number;
|
|
7709
|
+
};
|
|
7710
|
+
output: {
|
|
7711
|
+
message: string;
|
|
7712
|
+
success: boolean;
|
|
7713
|
+
data?: {
|
|
7714
|
+
_id: string | import("mongoose").Types.ObjectId;
|
|
7715
|
+
title?: string | undefined;
|
|
7716
|
+
subtitle?: string | undefined;
|
|
7717
|
+
startTime?: Date | null | undefined;
|
|
7718
|
+
endTime?: Date | null | undefined;
|
|
7719
|
+
} | {
|
|
7720
|
+
documents: ({
|
|
7721
|
+
_id: string | import("mongoose").Types.ObjectId;
|
|
7722
|
+
title?: string | undefined;
|
|
7723
|
+
subtitle?: string | undefined;
|
|
7724
|
+
startTime?: Date | null | undefined;
|
|
7725
|
+
endTime?: Date | null | undefined;
|
|
7726
|
+
} | null)[];
|
|
7727
|
+
metadata?: {
|
|
7728
|
+
page: number;
|
|
7729
|
+
size: number;
|
|
7730
|
+
totalElements: number;
|
|
7731
|
+
totalPages: number;
|
|
7732
|
+
} | undefined;
|
|
7733
|
+
} | null | undefined;
|
|
7734
|
+
};
|
|
7735
|
+
meta: object;
|
|
7736
|
+
}>;
|
|
7695
7737
|
cancel: import("@trpc/server").TRPCMutationProcedure<{
|
|
7696
7738
|
input: {
|
|
7697
7739
|
campaignId: string | import("mongoose").Types.ObjectId;
|
|
@@ -7727,6 +7769,7 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
|
|
|
7727
7769
|
isOrderCapacityEnabled: boolean;
|
|
7728
7770
|
products?: (string | import("mongoose").Types.ObjectId)[] | undefined;
|
|
7729
7771
|
maxOrderCapacity?: number | undefined;
|
|
7772
|
+
shopCategories?: (string | import("mongoose").Types.ObjectId)[] | undefined;
|
|
7730
7773
|
};
|
|
7731
7774
|
output: {
|
|
7732
7775
|
message: string;
|
|
@@ -7781,6 +7824,7 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
|
|
|
7781
7824
|
isOrderCapacityEnabled: boolean;
|
|
7782
7825
|
products?: (string | import("mongoose").Types.ObjectId)[] | undefined;
|
|
7783
7826
|
maxOrderCapacity?: number | undefined;
|
|
7827
|
+
shopCategories?: (string | import("mongoose").Types.ObjectId)[] | undefined;
|
|
7784
7828
|
};
|
|
7785
7829
|
output: {
|
|
7786
7830
|
message: string;
|
|
@@ -7842,15 +7886,6 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
|
|
|
7842
7886
|
success: boolean;
|
|
7843
7887
|
data?: {
|
|
7844
7888
|
campaignState: import("./modules/limited-time-offer/participant/limited-time-offer-participant.validation").LtoCardState;
|
|
7845
|
-
campaign?: {
|
|
7846
|
-
_id: string | import("mongoose").Types.ObjectId;
|
|
7847
|
-
startDate?: Date | null | undefined;
|
|
7848
|
-
endDate?: Date | null | undefined;
|
|
7849
|
-
title?: string | undefined;
|
|
7850
|
-
subTitle?: string | undefined;
|
|
7851
|
-
discountOptions?: number[] | undefined;
|
|
7852
|
-
maxDiscountCaps?: number[] | undefined;
|
|
7853
|
-
} | undefined;
|
|
7854
7889
|
participant?: {
|
|
7855
7890
|
isEntireMenu: boolean;
|
|
7856
7891
|
joinedAt: Date;
|
|
@@ -7861,18 +7896,18 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
|
|
|
7861
7896
|
maxDiscountCap?: number | undefined;
|
|
7862
7897
|
maxOrderCapacity?: number | undefined;
|
|
7863
7898
|
} | undefined;
|
|
7899
|
+
campaign?: {
|
|
7900
|
+
_id: string | import("mongoose").Types.ObjectId;
|
|
7901
|
+
startDate?: Date | null | undefined;
|
|
7902
|
+
endDate?: Date | null | undefined;
|
|
7903
|
+
title?: string | undefined;
|
|
7904
|
+
subTitle?: string | undefined;
|
|
7905
|
+
discountOptions?: number[] | undefined;
|
|
7906
|
+
maxDiscountCaps?: number[] | undefined;
|
|
7907
|
+
} | undefined;
|
|
7864
7908
|
} | {
|
|
7865
7909
|
documents: {
|
|
7866
7910
|
campaignState: import("./modules/limited-time-offer/participant/limited-time-offer-participant.validation").LtoCardState;
|
|
7867
|
-
campaign?: {
|
|
7868
|
-
_id: string | import("mongoose").Types.ObjectId;
|
|
7869
|
-
startDate?: Date | null | undefined;
|
|
7870
|
-
endDate?: Date | null | undefined;
|
|
7871
|
-
title?: string | undefined;
|
|
7872
|
-
subTitle?: string | undefined;
|
|
7873
|
-
discountOptions?: number[] | undefined;
|
|
7874
|
-
maxDiscountCaps?: number[] | undefined;
|
|
7875
|
-
} | undefined;
|
|
7876
7911
|
participant?: {
|
|
7877
7912
|
isEntireMenu: boolean;
|
|
7878
7913
|
joinedAt: Date;
|
|
@@ -7883,6 +7918,15 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
|
|
|
7883
7918
|
maxDiscountCap?: number | undefined;
|
|
7884
7919
|
maxOrderCapacity?: number | undefined;
|
|
7885
7920
|
} | undefined;
|
|
7921
|
+
campaign?: {
|
|
7922
|
+
_id: string | import("mongoose").Types.ObjectId;
|
|
7923
|
+
startDate?: Date | null | undefined;
|
|
7924
|
+
endDate?: Date | null | undefined;
|
|
7925
|
+
title?: string | undefined;
|
|
7926
|
+
subTitle?: string | undefined;
|
|
7927
|
+
discountOptions?: number[] | undefined;
|
|
7928
|
+
maxDiscountCaps?: number[] | undefined;
|
|
7929
|
+
} | undefined;
|
|
7886
7930
|
}[];
|
|
7887
7931
|
metadata?: {
|
|
7888
7932
|
page: number;
|
|
@@ -7905,6 +7949,7 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
|
|
|
7905
7949
|
message: string;
|
|
7906
7950
|
success: boolean;
|
|
7907
7951
|
data?: {
|
|
7952
|
+
shopId: string | import("mongoose").Types.ObjectId;
|
|
7908
7953
|
joinedAt: Date;
|
|
7909
7954
|
shopName: string | null;
|
|
7910
7955
|
shopPhoto?: string | null | undefined;
|
|
@@ -7912,6 +7957,7 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
|
|
|
7912
7957
|
maxDiscountCap?: number | undefined;
|
|
7913
7958
|
} | {
|
|
7914
7959
|
documents: {
|
|
7960
|
+
shopId: string | import("mongoose").Types.ObjectId;
|
|
7915
7961
|
joinedAt: Date;
|
|
7916
7962
|
shopName: string | null;
|
|
7917
7963
|
shopPhoto?: string | null | undefined;
|
|
@@ -7967,16 +8013,25 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
|
|
|
7967
8013
|
name: string;
|
|
7968
8014
|
startDate: string | Date;
|
|
7969
8015
|
endDate: string | Date;
|
|
7970
|
-
tag:
|
|
8016
|
+
tag: string;
|
|
7971
8017
|
status?: import("@lyxa.ai/core/dist/utilities/enum").Status | undefined;
|
|
7972
8018
|
reward?: {
|
|
7973
8019
|
type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.FREE_DELIVERY;
|
|
7974
8020
|
} | {
|
|
7975
8021
|
type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.COUPON;
|
|
8022
|
+
maxDiscountPerOrder: number;
|
|
7976
8023
|
couponNamePrefix: string;
|
|
7977
8024
|
percentage: number;
|
|
7978
|
-
maxDiscountPerOrder?: number | null | undefined;
|
|
7979
8025
|
} | undefined;
|
|
8026
|
+
notificationTemplates?: Partial<Record<import("@lyxa.ai/core/dist/utilities/enum").TournamentNotificationTag, {
|
|
8027
|
+
title: string;
|
|
8028
|
+
body: string;
|
|
8029
|
+
}>> | undefined;
|
|
8030
|
+
scheduledNotifications?: {
|
|
8031
|
+
type: import("@lyxa.ai/core/dist/utilities/enum").TournamentNotificationTag;
|
|
8032
|
+
durationMins: number;
|
|
8033
|
+
target: import("@lyxa.ai/core/dist/utilities/enum").TournamentScheduledNotificationTarget;
|
|
8034
|
+
}[] | undefined;
|
|
7980
8035
|
};
|
|
7981
8036
|
output: {
|
|
7982
8037
|
message: string;
|
|
@@ -7984,12 +8039,12 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
|
|
|
7984
8039
|
data?: {
|
|
7985
8040
|
status: import("@lyxa.ai/core/dist/utilities/enum").Status;
|
|
7986
8041
|
name: string;
|
|
8042
|
+
tag: string;
|
|
7987
8043
|
_id?: string | import("mongoose").Types.ObjectId | undefined;
|
|
7988
8044
|
createdAt?: Date | null | undefined;
|
|
7989
8045
|
startDate?: Date | null | undefined;
|
|
7990
8046
|
endDate?: Date | null | undefined;
|
|
7991
8047
|
updatedAt?: Date | null | undefined;
|
|
7992
|
-
tag?: import("./modules/tournament/tournament.types").TournamentTag | undefined;
|
|
7993
8048
|
reward?: {
|
|
7994
8049
|
type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.FREE_DELIVERY;
|
|
7995
8050
|
} | {
|
|
@@ -7998,16 +8053,25 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
|
|
|
7998
8053
|
couponNamePrefix?: string | undefined;
|
|
7999
8054
|
percentage?: number | undefined;
|
|
8000
8055
|
} | undefined;
|
|
8056
|
+
notificationTemplates?: Partial<Record<import("@lyxa.ai/core/dist/utilities/enum").TournamentNotificationTag, {
|
|
8057
|
+
title: string;
|
|
8058
|
+
body: string;
|
|
8059
|
+
}>> | undefined;
|
|
8060
|
+
scheduledNotifications?: {
|
|
8061
|
+
type: import("@lyxa.ai/core/dist/utilities/enum").TournamentNotificationTag;
|
|
8062
|
+
durationMins: number;
|
|
8063
|
+
target: import("@lyxa.ai/core/dist/utilities/enum").TournamentScheduledNotificationTarget;
|
|
8064
|
+
}[] | undefined;
|
|
8001
8065
|
} | {
|
|
8002
8066
|
documents: {
|
|
8003
8067
|
status: import("@lyxa.ai/core/dist/utilities/enum").Status;
|
|
8004
8068
|
name: string;
|
|
8069
|
+
tag: string;
|
|
8005
8070
|
_id?: string | import("mongoose").Types.ObjectId | undefined;
|
|
8006
8071
|
createdAt?: Date | null | undefined;
|
|
8007
8072
|
startDate?: Date | null | undefined;
|
|
8008
8073
|
endDate?: Date | null | undefined;
|
|
8009
8074
|
updatedAt?: Date | null | undefined;
|
|
8010
|
-
tag?: import("./modules/tournament/tournament.types").TournamentTag | undefined;
|
|
8011
8075
|
reward?: {
|
|
8012
8076
|
type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.FREE_DELIVERY;
|
|
8013
8077
|
} | {
|
|
@@ -8016,6 +8080,15 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
|
|
|
8016
8080
|
couponNamePrefix?: string | undefined;
|
|
8017
8081
|
percentage?: number | undefined;
|
|
8018
8082
|
} | undefined;
|
|
8083
|
+
notificationTemplates?: Partial<Record<import("@lyxa.ai/core/dist/utilities/enum").TournamentNotificationTag, {
|
|
8084
|
+
title: string;
|
|
8085
|
+
body: string;
|
|
8086
|
+
}>> | undefined;
|
|
8087
|
+
scheduledNotifications?: {
|
|
8088
|
+
type: import("@lyxa.ai/core/dist/utilities/enum").TournamentNotificationTag;
|
|
8089
|
+
durationMins: number;
|
|
8090
|
+
target: import("@lyxa.ai/core/dist/utilities/enum").TournamentScheduledNotificationTarget;
|
|
8091
|
+
}[] | undefined;
|
|
8019
8092
|
}[];
|
|
8020
8093
|
metadata?: {
|
|
8021
8094
|
page: number;
|
|
@@ -8035,12 +8108,12 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
|
|
|
8035
8108
|
data?: {
|
|
8036
8109
|
status: import("@lyxa.ai/core/dist/utilities/enum").Status;
|
|
8037
8110
|
name: string;
|
|
8111
|
+
tag: string;
|
|
8038
8112
|
_id?: string | import("mongoose").Types.ObjectId | undefined;
|
|
8039
8113
|
createdAt?: Date | null | undefined;
|
|
8040
8114
|
startDate?: Date | null | undefined;
|
|
8041
8115
|
endDate?: Date | null | undefined;
|
|
8042
8116
|
updatedAt?: Date | null | undefined;
|
|
8043
|
-
tag?: import("./modules/tournament/tournament.types").TournamentTag | undefined;
|
|
8044
8117
|
reward?: {
|
|
8045
8118
|
type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.FREE_DELIVERY;
|
|
8046
8119
|
} | {
|
|
@@ -8048,16 +8121,25 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
|
|
|
8048
8121
|
maxDiscountPerOrder?: number | null | undefined;
|
|
8049
8122
|
percentage?: number | undefined;
|
|
8050
8123
|
} | undefined;
|
|
8124
|
+
notificationTemplates?: Partial<Record<import("@lyxa.ai/core/dist/utilities/enum").TournamentNotificationTag, {
|
|
8125
|
+
title: string;
|
|
8126
|
+
body: string;
|
|
8127
|
+
}>> | undefined;
|
|
8128
|
+
scheduledNotifications?: {
|
|
8129
|
+
type: import("@lyxa.ai/core/dist/utilities/enum").TournamentNotificationTag;
|
|
8130
|
+
durationMins: number;
|
|
8131
|
+
target: import("@lyxa.ai/core/dist/utilities/enum").TournamentScheduledNotificationTarget;
|
|
8132
|
+
}[] | undefined;
|
|
8051
8133
|
}[] | {
|
|
8052
8134
|
documents: {
|
|
8053
8135
|
status: import("@lyxa.ai/core/dist/utilities/enum").Status;
|
|
8054
8136
|
name: string;
|
|
8137
|
+
tag: string;
|
|
8055
8138
|
_id?: string | import("mongoose").Types.ObjectId | undefined;
|
|
8056
8139
|
createdAt?: Date | null | undefined;
|
|
8057
8140
|
startDate?: Date | null | undefined;
|
|
8058
8141
|
endDate?: Date | null | undefined;
|
|
8059
8142
|
updatedAt?: Date | null | undefined;
|
|
8060
|
-
tag?: import("./modules/tournament/tournament.types").TournamentTag | undefined;
|
|
8061
8143
|
reward?: {
|
|
8062
8144
|
type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.FREE_DELIVERY;
|
|
8063
8145
|
} | {
|
|
@@ -8065,6 +8147,15 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
|
|
|
8065
8147
|
maxDiscountPerOrder?: number | null | undefined;
|
|
8066
8148
|
percentage?: number | undefined;
|
|
8067
8149
|
} | undefined;
|
|
8150
|
+
notificationTemplates?: Partial<Record<import("@lyxa.ai/core/dist/utilities/enum").TournamentNotificationTag, {
|
|
8151
|
+
title: string;
|
|
8152
|
+
body: string;
|
|
8153
|
+
}>> | undefined;
|
|
8154
|
+
scheduledNotifications?: {
|
|
8155
|
+
type: import("@lyxa.ai/core/dist/utilities/enum").TournamentNotificationTag;
|
|
8156
|
+
durationMins: number;
|
|
8157
|
+
target: import("@lyxa.ai/core/dist/utilities/enum").TournamentScheduledNotificationTarget;
|
|
8158
|
+
}[] | undefined;
|
|
8068
8159
|
}[][];
|
|
8069
8160
|
metadata?: {
|
|
8070
8161
|
page: number;
|
|
@@ -8086,12 +8177,12 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
|
|
|
8086
8177
|
data?: {
|
|
8087
8178
|
status: import("@lyxa.ai/core/dist/utilities/enum").Status;
|
|
8088
8179
|
name: string;
|
|
8180
|
+
tag: string;
|
|
8089
8181
|
_id?: string | import("mongoose").Types.ObjectId | undefined;
|
|
8090
8182
|
createdAt?: Date | null | undefined;
|
|
8091
8183
|
startDate?: Date | null | undefined;
|
|
8092
8184
|
endDate?: Date | null | undefined;
|
|
8093
8185
|
updatedAt?: Date | null | undefined;
|
|
8094
|
-
tag?: import("./modules/tournament/tournament.types").TournamentTag | undefined;
|
|
8095
8186
|
reward?: {
|
|
8096
8187
|
type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.FREE_DELIVERY;
|
|
8097
8188
|
} | {
|
|
@@ -8100,16 +8191,25 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
|
|
|
8100
8191
|
couponNamePrefix?: string | undefined;
|
|
8101
8192
|
percentage?: number | undefined;
|
|
8102
8193
|
} | undefined;
|
|
8194
|
+
notificationTemplates?: Partial<Record<import("@lyxa.ai/core/dist/utilities/enum").TournamentNotificationTag, {
|
|
8195
|
+
title: string;
|
|
8196
|
+
body: string;
|
|
8197
|
+
}>> | undefined;
|
|
8198
|
+
scheduledNotifications?: {
|
|
8199
|
+
type: import("@lyxa.ai/core/dist/utilities/enum").TournamentNotificationTag;
|
|
8200
|
+
durationMins: number;
|
|
8201
|
+
target: import("@lyxa.ai/core/dist/utilities/enum").TournamentScheduledNotificationTarget;
|
|
8202
|
+
}[] | undefined;
|
|
8103
8203
|
} | {
|
|
8104
8204
|
documents: {
|
|
8105
8205
|
status: import("@lyxa.ai/core/dist/utilities/enum").Status;
|
|
8106
8206
|
name: string;
|
|
8207
|
+
tag: string;
|
|
8107
8208
|
_id?: string | import("mongoose").Types.ObjectId | undefined;
|
|
8108
8209
|
createdAt?: Date | null | undefined;
|
|
8109
8210
|
startDate?: Date | null | undefined;
|
|
8110
8211
|
endDate?: Date | null | undefined;
|
|
8111
8212
|
updatedAt?: Date | null | undefined;
|
|
8112
|
-
tag?: import("./modules/tournament/tournament.types").TournamentTag | undefined;
|
|
8113
8213
|
reward?: {
|
|
8114
8214
|
type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.FREE_DELIVERY;
|
|
8115
8215
|
} | {
|
|
@@ -8118,6 +8218,15 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
|
|
|
8118
8218
|
couponNamePrefix?: string | undefined;
|
|
8119
8219
|
percentage?: number | undefined;
|
|
8120
8220
|
} | undefined;
|
|
8221
|
+
notificationTemplates?: Partial<Record<import("@lyxa.ai/core/dist/utilities/enum").TournamentNotificationTag, {
|
|
8222
|
+
title: string;
|
|
8223
|
+
body: string;
|
|
8224
|
+
}>> | undefined;
|
|
8225
|
+
scheduledNotifications?: {
|
|
8226
|
+
type: import("@lyxa.ai/core/dist/utilities/enum").TournamentNotificationTag;
|
|
8227
|
+
durationMins: number;
|
|
8228
|
+
target: import("@lyxa.ai/core/dist/utilities/enum").TournamentScheduledNotificationTarget;
|
|
8229
|
+
}[] | undefined;
|
|
8121
8230
|
}[];
|
|
8122
8231
|
metadata?: {
|
|
8123
8232
|
page: number;
|
|
@@ -8136,15 +8245,24 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
|
|
|
8136
8245
|
name?: string | undefined;
|
|
8137
8246
|
startDate?: string | Date | undefined;
|
|
8138
8247
|
endDate?: string | Date | undefined;
|
|
8139
|
-
tag?:
|
|
8248
|
+
tag?: string | undefined;
|
|
8140
8249
|
reward?: {
|
|
8141
8250
|
type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.FREE_DELIVERY;
|
|
8142
8251
|
} | {
|
|
8143
8252
|
type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.COUPON;
|
|
8253
|
+
maxDiscountPerOrder: number;
|
|
8144
8254
|
couponNamePrefix: string;
|
|
8145
8255
|
percentage: number;
|
|
8146
|
-
maxDiscountPerOrder?: number | null | undefined;
|
|
8147
8256
|
} | undefined;
|
|
8257
|
+
notificationTemplates?: Partial<Record<import("@lyxa.ai/core/dist/utilities/enum").TournamentNotificationTag, {
|
|
8258
|
+
title: string;
|
|
8259
|
+
body: string;
|
|
8260
|
+
}>> | undefined;
|
|
8261
|
+
scheduledNotifications?: {
|
|
8262
|
+
type: import("@lyxa.ai/core/dist/utilities/enum").TournamentNotificationTag;
|
|
8263
|
+
durationMins: number;
|
|
8264
|
+
target: import("@lyxa.ai/core/dist/utilities/enum").TournamentScheduledNotificationTarget;
|
|
8265
|
+
}[] | undefined;
|
|
8148
8266
|
};
|
|
8149
8267
|
output: {
|
|
8150
8268
|
message: string;
|
|
@@ -8152,12 +8270,12 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
|
|
|
8152
8270
|
data?: {
|
|
8153
8271
|
status: import("@lyxa.ai/core/dist/utilities/enum").Status;
|
|
8154
8272
|
name: string;
|
|
8273
|
+
tag: string;
|
|
8155
8274
|
_id?: string | import("mongoose").Types.ObjectId | undefined;
|
|
8156
8275
|
createdAt?: Date | null | undefined;
|
|
8157
8276
|
startDate?: Date | null | undefined;
|
|
8158
8277
|
endDate?: Date | null | undefined;
|
|
8159
8278
|
updatedAt?: Date | null | undefined;
|
|
8160
|
-
tag?: import("./modules/tournament/tournament.types").TournamentTag | undefined;
|
|
8161
8279
|
reward?: {
|
|
8162
8280
|
type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.FREE_DELIVERY;
|
|
8163
8281
|
} | {
|
|
@@ -8166,16 +8284,25 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
|
|
|
8166
8284
|
couponNamePrefix?: string | undefined;
|
|
8167
8285
|
percentage?: number | undefined;
|
|
8168
8286
|
} | undefined;
|
|
8287
|
+
notificationTemplates?: Partial<Record<import("@lyxa.ai/core/dist/utilities/enum").TournamentNotificationTag, {
|
|
8288
|
+
title: string;
|
|
8289
|
+
body: string;
|
|
8290
|
+
}>> | undefined;
|
|
8291
|
+
scheduledNotifications?: {
|
|
8292
|
+
type: import("@lyxa.ai/core/dist/utilities/enum").TournamentNotificationTag;
|
|
8293
|
+
durationMins: number;
|
|
8294
|
+
target: import("@lyxa.ai/core/dist/utilities/enum").TournamentScheduledNotificationTarget;
|
|
8295
|
+
}[] | undefined;
|
|
8169
8296
|
} | {
|
|
8170
8297
|
documents: {
|
|
8171
8298
|
status: import("@lyxa.ai/core/dist/utilities/enum").Status;
|
|
8172
8299
|
name: string;
|
|
8300
|
+
tag: string;
|
|
8173
8301
|
_id?: string | import("mongoose").Types.ObjectId | undefined;
|
|
8174
8302
|
createdAt?: Date | null | undefined;
|
|
8175
8303
|
startDate?: Date | null | undefined;
|
|
8176
8304
|
endDate?: Date | null | undefined;
|
|
8177
8305
|
updatedAt?: Date | null | undefined;
|
|
8178
|
-
tag?: import("./modules/tournament/tournament.types").TournamentTag | undefined;
|
|
8179
8306
|
reward?: {
|
|
8180
8307
|
type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.FREE_DELIVERY;
|
|
8181
8308
|
} | {
|
|
@@ -8184,6 +8311,15 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
|
|
|
8184
8311
|
couponNamePrefix?: string | undefined;
|
|
8185
8312
|
percentage?: number | undefined;
|
|
8186
8313
|
} | undefined;
|
|
8314
|
+
notificationTemplates?: Partial<Record<import("@lyxa.ai/core/dist/utilities/enum").TournamentNotificationTag, {
|
|
8315
|
+
title: string;
|
|
8316
|
+
body: string;
|
|
8317
|
+
}>> | undefined;
|
|
8318
|
+
scheduledNotifications?: {
|
|
8319
|
+
type: import("@lyxa.ai/core/dist/utilities/enum").TournamentNotificationTag;
|
|
8320
|
+
durationMins: number;
|
|
8321
|
+
target: import("@lyxa.ai/core/dist/utilities/enum").TournamentScheduledNotificationTarget;
|
|
8322
|
+
}[] | undefined;
|
|
8187
8323
|
}[];
|
|
8188
8324
|
metadata?: {
|
|
8189
8325
|
page: number;
|
|
@@ -8226,12 +8362,12 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
|
|
|
8226
8362
|
data?: {
|
|
8227
8363
|
status: import("@lyxa.ai/core/dist/utilities/enum").Status;
|
|
8228
8364
|
name: string;
|
|
8365
|
+
tag: string;
|
|
8229
8366
|
_id?: string | import("mongoose").Types.ObjectId | undefined;
|
|
8230
8367
|
createdAt?: Date | null | undefined;
|
|
8231
8368
|
startDate?: Date | null | undefined;
|
|
8232
8369
|
endDate?: Date | null | undefined;
|
|
8233
8370
|
updatedAt?: Date | null | undefined;
|
|
8234
|
-
tag?: import("./modules/tournament/tournament.types").TournamentTag | undefined;
|
|
8235
8371
|
reward?: {
|
|
8236
8372
|
type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.FREE_DELIVERY;
|
|
8237
8373
|
} | {
|
|
@@ -8240,16 +8376,25 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
|
|
|
8240
8376
|
couponNamePrefix?: string | undefined;
|
|
8241
8377
|
percentage?: number | undefined;
|
|
8242
8378
|
} | undefined;
|
|
8379
|
+
notificationTemplates?: Partial<Record<import("@lyxa.ai/core/dist/utilities/enum").TournamentNotificationTag, {
|
|
8380
|
+
title: string;
|
|
8381
|
+
body: string;
|
|
8382
|
+
}>> | undefined;
|
|
8383
|
+
scheduledNotifications?: {
|
|
8384
|
+
type: import("@lyxa.ai/core/dist/utilities/enum").TournamentNotificationTag;
|
|
8385
|
+
durationMins: number;
|
|
8386
|
+
target: import("@lyxa.ai/core/dist/utilities/enum").TournamentScheduledNotificationTarget;
|
|
8387
|
+
}[] | undefined;
|
|
8243
8388
|
} | {
|
|
8244
8389
|
documents: {
|
|
8245
8390
|
status: import("@lyxa.ai/core/dist/utilities/enum").Status;
|
|
8246
8391
|
name: string;
|
|
8392
|
+
tag: string;
|
|
8247
8393
|
_id?: string | import("mongoose").Types.ObjectId | undefined;
|
|
8248
8394
|
createdAt?: Date | null | undefined;
|
|
8249
8395
|
startDate?: Date | null | undefined;
|
|
8250
8396
|
endDate?: Date | null | undefined;
|
|
8251
8397
|
updatedAt?: Date | null | undefined;
|
|
8252
|
-
tag?: import("./modules/tournament/tournament.types").TournamentTag | undefined;
|
|
8253
8398
|
reward?: {
|
|
8254
8399
|
type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.FREE_DELIVERY;
|
|
8255
8400
|
} | {
|
|
@@ -8258,6 +8403,15 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
|
|
|
8258
8403
|
couponNamePrefix?: string | undefined;
|
|
8259
8404
|
percentage?: number | undefined;
|
|
8260
8405
|
} | undefined;
|
|
8406
|
+
notificationTemplates?: Partial<Record<import("@lyxa.ai/core/dist/utilities/enum").TournamentNotificationTag, {
|
|
8407
|
+
title: string;
|
|
8408
|
+
body: string;
|
|
8409
|
+
}>> | undefined;
|
|
8410
|
+
scheduledNotifications?: {
|
|
8411
|
+
type: import("@lyxa.ai/core/dist/utilities/enum").TournamentNotificationTag;
|
|
8412
|
+
durationMins: number;
|
|
8413
|
+
target: import("@lyxa.ai/core/dist/utilities/enum").TournamentScheduledNotificationTarget;
|
|
8414
|
+
}[] | undefined;
|
|
8261
8415
|
}[];
|
|
8262
8416
|
metadata?: {
|
|
8263
8417
|
page: number;
|
|
@@ -8271,7 +8425,7 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
|
|
|
8271
8425
|
}>;
|
|
8272
8426
|
getAll: import("@trpc/server").TRPCQueryProcedure<{
|
|
8273
8427
|
input: {
|
|
8274
|
-
tournamentId
|
|
8428
|
+
tournamentId?: string | import("mongoose").Types.ObjectId | undefined;
|
|
8275
8429
|
};
|
|
8276
8430
|
output: {
|
|
8277
8431
|
message: string;
|
|
@@ -8313,7 +8467,7 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
|
|
|
8313
8467
|
getMatches: import("@trpc/server").TRPCQueryProcedure<{
|
|
8314
8468
|
input: {
|
|
8315
8469
|
tournamentId: string | import("mongoose").Types.ObjectId;
|
|
8316
|
-
filter?: import("
|
|
8470
|
+
filter?: import("@lyxa.ai/core/dist/utilities/enum").TournamentMatchStatus | undefined;
|
|
8317
8471
|
};
|
|
8318
8472
|
output: {
|
|
8319
8473
|
message: string;
|
|
@@ -8339,7 +8493,7 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
|
|
|
8339
8493
|
team2: number | null;
|
|
8340
8494
|
};
|
|
8341
8495
|
stage: string;
|
|
8342
|
-
matchStatus: import("
|
|
8496
|
+
matchStatus: import("@lyxa.ai/core/dist/utilities/enum").TournamentMatchStatus;
|
|
8343
8497
|
prediction: {
|
|
8344
8498
|
score: {
|
|
8345
8499
|
team1: number | null;
|
|
@@ -8377,7 +8531,7 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
|
|
|
8377
8531
|
team2: number | null;
|
|
8378
8532
|
};
|
|
8379
8533
|
stage: string;
|
|
8380
|
-
matchStatus: import("
|
|
8534
|
+
matchStatus: import("@lyxa.ai/core/dist/utilities/enum").TournamentMatchStatus;
|
|
8381
8535
|
prediction: {
|
|
8382
8536
|
score: {
|
|
8383
8537
|
team1: number | null;
|
|
@@ -8439,12 +8593,12 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
|
|
|
8439
8593
|
data?: {
|
|
8440
8594
|
status: import("@lyxa.ai/core/dist/utilities/enum").Status;
|
|
8441
8595
|
name: string;
|
|
8596
|
+
tag: string;
|
|
8442
8597
|
_id?: string | import("mongoose").Types.ObjectId | undefined;
|
|
8443
8598
|
createdAt?: Date | null | undefined;
|
|
8444
8599
|
startDate?: Date | null | undefined;
|
|
8445
8600
|
endDate?: Date | null | undefined;
|
|
8446
8601
|
updatedAt?: Date | null | undefined;
|
|
8447
|
-
tag?: import("./modules/tournament/tournament.types").TournamentTag | undefined;
|
|
8448
8602
|
reward?: {
|
|
8449
8603
|
type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.FREE_DELIVERY;
|
|
8450
8604
|
} | {
|
|
@@ -8453,16 +8607,25 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
|
|
|
8453
8607
|
couponNamePrefix?: string | undefined;
|
|
8454
8608
|
percentage?: number | undefined;
|
|
8455
8609
|
} | undefined;
|
|
8610
|
+
notificationTemplates?: Partial<Record<import("@lyxa.ai/core/dist/utilities/enum").TournamentNotificationTag, {
|
|
8611
|
+
title: string;
|
|
8612
|
+
body: string;
|
|
8613
|
+
}>> | undefined;
|
|
8614
|
+
scheduledNotifications?: {
|
|
8615
|
+
type: import("@lyxa.ai/core/dist/utilities/enum").TournamentNotificationTag;
|
|
8616
|
+
durationMins: number;
|
|
8617
|
+
target: import("@lyxa.ai/core/dist/utilities/enum").TournamentScheduledNotificationTarget;
|
|
8618
|
+
}[] | undefined;
|
|
8456
8619
|
} | {
|
|
8457
8620
|
documents: {
|
|
8458
8621
|
status: import("@lyxa.ai/core/dist/utilities/enum").Status;
|
|
8459
8622
|
name: string;
|
|
8623
|
+
tag: string;
|
|
8460
8624
|
_id?: string | import("mongoose").Types.ObjectId | undefined;
|
|
8461
8625
|
createdAt?: Date | null | undefined;
|
|
8462
8626
|
startDate?: Date | null | undefined;
|
|
8463
8627
|
endDate?: Date | null | undefined;
|
|
8464
8628
|
updatedAt?: Date | null | undefined;
|
|
8465
|
-
tag?: import("./modules/tournament/tournament.types").TournamentTag | undefined;
|
|
8466
8629
|
reward?: {
|
|
8467
8630
|
type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.FREE_DELIVERY;
|
|
8468
8631
|
} | {
|
|
@@ -8471,6 +8634,15 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
|
|
|
8471
8634
|
couponNamePrefix?: string | undefined;
|
|
8472
8635
|
percentage?: number | undefined;
|
|
8473
8636
|
} | undefined;
|
|
8637
|
+
notificationTemplates?: Partial<Record<import("@lyxa.ai/core/dist/utilities/enum").TournamentNotificationTag, {
|
|
8638
|
+
title: string;
|
|
8639
|
+
body: string;
|
|
8640
|
+
}>> | undefined;
|
|
8641
|
+
scheduledNotifications?: {
|
|
8642
|
+
type: import("@lyxa.ai/core/dist/utilities/enum").TournamentNotificationTag;
|
|
8643
|
+
durationMins: number;
|
|
8644
|
+
target: import("@lyxa.ai/core/dist/utilities/enum").TournamentScheduledNotificationTarget;
|
|
8645
|
+
}[] | undefined;
|
|
8474
8646
|
}[];
|
|
8475
8647
|
metadata?: {
|
|
8476
8648
|
page: number;
|
|
@@ -8724,12 +8896,12 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
|
|
|
8724
8896
|
data?: {
|
|
8725
8897
|
status: import("@lyxa.ai/core/dist/utilities/enum").Status;
|
|
8726
8898
|
name: string;
|
|
8899
|
+
tag: string;
|
|
8727
8900
|
_id?: string | import("mongoose").Types.ObjectId | undefined;
|
|
8728
8901
|
createdAt?: Date | null | undefined;
|
|
8729
8902
|
startDate?: Date | null | undefined;
|
|
8730
8903
|
endDate?: Date | null | undefined;
|
|
8731
8904
|
updatedAt?: Date | null | undefined;
|
|
8732
|
-
tag?: import("./modules/tournament/tournament.types").TournamentTag | undefined;
|
|
8733
8905
|
reward?: {
|
|
8734
8906
|
type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.FREE_DELIVERY;
|
|
8735
8907
|
} | {
|
|
@@ -8738,16 +8910,25 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
|
|
|
8738
8910
|
couponNamePrefix?: string | undefined;
|
|
8739
8911
|
percentage?: number | undefined;
|
|
8740
8912
|
} | undefined;
|
|
8913
|
+
notificationTemplates?: Partial<Record<import("@lyxa.ai/core/dist/utilities/enum").TournamentNotificationTag, {
|
|
8914
|
+
title: string;
|
|
8915
|
+
body: string;
|
|
8916
|
+
}>> | undefined;
|
|
8917
|
+
scheduledNotifications?: {
|
|
8918
|
+
type: import("@lyxa.ai/core/dist/utilities/enum").TournamentNotificationTag;
|
|
8919
|
+
durationMins: number;
|
|
8920
|
+
target: import("@lyxa.ai/core/dist/utilities/enum").TournamentScheduledNotificationTarget;
|
|
8921
|
+
}[] | undefined;
|
|
8741
8922
|
} | {
|
|
8742
8923
|
documents: {
|
|
8743
8924
|
status: import("@lyxa.ai/core/dist/utilities/enum").Status;
|
|
8744
8925
|
name: string;
|
|
8926
|
+
tag: string;
|
|
8745
8927
|
_id?: string | import("mongoose").Types.ObjectId | undefined;
|
|
8746
8928
|
createdAt?: Date | null | undefined;
|
|
8747
8929
|
startDate?: Date | null | undefined;
|
|
8748
8930
|
endDate?: Date | null | undefined;
|
|
8749
8931
|
updatedAt?: Date | null | undefined;
|
|
8750
|
-
tag?: import("./modules/tournament/tournament.types").TournamentTag | undefined;
|
|
8751
8932
|
reward?: {
|
|
8752
8933
|
type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.FREE_DELIVERY;
|
|
8753
8934
|
} | {
|
|
@@ -8756,6 +8937,15 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
|
|
|
8756
8937
|
couponNamePrefix?: string | undefined;
|
|
8757
8938
|
percentage?: number | undefined;
|
|
8758
8939
|
} | undefined;
|
|
8940
|
+
notificationTemplates?: Partial<Record<import("@lyxa.ai/core/dist/utilities/enum").TournamentNotificationTag, {
|
|
8941
|
+
title: string;
|
|
8942
|
+
body: string;
|
|
8943
|
+
}>> | undefined;
|
|
8944
|
+
scheduledNotifications?: {
|
|
8945
|
+
type: import("@lyxa.ai/core/dist/utilities/enum").TournamentNotificationTag;
|
|
8946
|
+
durationMins: number;
|
|
8947
|
+
target: import("@lyxa.ai/core/dist/utilities/enum").TournamentScheduledNotificationTarget;
|
|
8948
|
+
}[] | undefined;
|
|
8759
8949
|
}[];
|
|
8760
8950
|
metadata?: {
|
|
8761
8951
|
page: number;
|
|
@@ -9061,13 +9251,14 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
|
|
|
9061
9251
|
id: string;
|
|
9062
9252
|
result: "won" | "lost" | "pending" | null;
|
|
9063
9253
|
teams: string;
|
|
9254
|
+
stage: string;
|
|
9064
9255
|
prediction: string | null;
|
|
9065
9256
|
realScore: string | null;
|
|
9066
9257
|
}[];
|
|
9067
9258
|
selectedTeam: {
|
|
9068
9259
|
name: string;
|
|
9069
9260
|
flag: string | null;
|
|
9070
|
-
};
|
|
9261
|
+
} | null;
|
|
9071
9262
|
} | {
|
|
9072
9263
|
documents: ({
|
|
9073
9264
|
name: string;
|
|
@@ -9083,13 +9274,14 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
|
|
|
9083
9274
|
id: string;
|
|
9084
9275
|
result: "won" | "lost" | "pending" | null;
|
|
9085
9276
|
teams: string;
|
|
9277
|
+
stage: string;
|
|
9086
9278
|
prediction: string | null;
|
|
9087
9279
|
realScore: string | null;
|
|
9088
9280
|
}[];
|
|
9089
9281
|
selectedTeam: {
|
|
9090
9282
|
name: string;
|
|
9091
9283
|
flag: string | null;
|
|
9092
|
-
};
|
|
9284
|
+
} | null;
|
|
9093
9285
|
} | null)[];
|
|
9094
9286
|
metadata?: {
|
|
9095
9287
|
page: number;
|
|
@@ -9225,6 +9417,32 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
|
|
|
9225
9417
|
meta: object;
|
|
9226
9418
|
}>;
|
|
9227
9419
|
}>>;
|
|
9420
|
+
sync: import("@trpc/server").TRPCBuiltRouter<{
|
|
9421
|
+
ctx: import("@lyxa.ai/core/dist/libraries/trpc/context").LyxaHTTPContext;
|
|
9422
|
+
meta: object;
|
|
9423
|
+
errorShape: {
|
|
9424
|
+
message: string;
|
|
9425
|
+
data: {
|
|
9426
|
+
stack: undefined;
|
|
9427
|
+
path: undefined;
|
|
9428
|
+
code: import("@trpc/server").TRPC_ERROR_CODE_KEY;
|
|
9429
|
+
httpStatus: number;
|
|
9430
|
+
};
|
|
9431
|
+
stack: undefined;
|
|
9432
|
+
code: import("@trpc/server").TRPC_ERROR_CODE_NUMBER;
|
|
9433
|
+
};
|
|
9434
|
+
transformer: false;
|
|
9435
|
+
}, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
|
|
9436
|
+
syncLiveScores: import("@trpc/server").TRPCMutationProcedure<{
|
|
9437
|
+
input: void;
|
|
9438
|
+
output: {
|
|
9439
|
+
success: boolean;
|
|
9440
|
+
message: string;
|
|
9441
|
+
data: null | undefined;
|
|
9442
|
+
};
|
|
9443
|
+
meta: object;
|
|
9444
|
+
}>;
|
|
9445
|
+
}>>;
|
|
9228
9446
|
getActive: import("@trpc/server").TRPCQueryProcedure<{
|
|
9229
9447
|
input: void;
|
|
9230
9448
|
output: {
|
|
@@ -9232,17 +9450,45 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
|
|
|
9232
9450
|
success: boolean;
|
|
9233
9451
|
data?: {
|
|
9234
9452
|
name: string;
|
|
9453
|
+
_id: string | import("mongoose").Types.ObjectId;
|
|
9235
9454
|
tag: string;
|
|
9236
|
-
|
|
9455
|
+
selectedTeam: {
|
|
9456
|
+
name: string;
|
|
9457
|
+
_id: string | import("mongoose").Types.ObjectId;
|
|
9458
|
+
picture?: string | undefined;
|
|
9459
|
+
} | null;
|
|
9460
|
+
userStatus: import("@lyxa.ai/core/dist/utilities/enum").TournamentParticipantStatus;
|
|
9237
9461
|
startDate?: Date | null | undefined;
|
|
9238
9462
|
endDate?: Date | null | undefined;
|
|
9463
|
+
reward?: {
|
|
9464
|
+
type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.COUPON;
|
|
9465
|
+
maxDiscountPerOrder?: number | null | undefined;
|
|
9466
|
+
couponNamePrefix?: string | undefined;
|
|
9467
|
+
percentage?: number | undefined;
|
|
9468
|
+
} | {
|
|
9469
|
+
type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.FREE_DELIVERY;
|
|
9470
|
+
} | undefined;
|
|
9239
9471
|
} | {
|
|
9240
9472
|
documents: ({
|
|
9241
9473
|
name: string;
|
|
9474
|
+
_id: string | import("mongoose").Types.ObjectId;
|
|
9242
9475
|
tag: string;
|
|
9243
|
-
|
|
9476
|
+
selectedTeam: {
|
|
9477
|
+
name: string;
|
|
9478
|
+
_id: string | import("mongoose").Types.ObjectId;
|
|
9479
|
+
picture?: string | undefined;
|
|
9480
|
+
} | null;
|
|
9481
|
+
userStatus: import("@lyxa.ai/core/dist/utilities/enum").TournamentParticipantStatus;
|
|
9244
9482
|
startDate?: Date | null | undefined;
|
|
9245
9483
|
endDate?: Date | null | undefined;
|
|
9484
|
+
reward?: {
|
|
9485
|
+
type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.COUPON;
|
|
9486
|
+
maxDiscountPerOrder?: number | null | undefined;
|
|
9487
|
+
couponNamePrefix?: string | undefined;
|
|
9488
|
+
percentage?: number | undefined;
|
|
9489
|
+
} | {
|
|
9490
|
+
type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.FREE_DELIVERY;
|
|
9491
|
+
} | undefined;
|
|
9246
9492
|
} | null)[];
|
|
9247
9493
|
metadata?: {
|
|
9248
9494
|
page: number;
|