@lyxa.ai/marketing 1.0.47 → 1.0.49
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib/event/event-initializations.d.ts.map +1 -1
- package/dist/lib/event/event-initializations.js +2 -0
- package/dist/lib/event/event-initializations.js.map +1 -1
- package/dist/lib/index.d.ts +1102 -28
- package/dist/lib/index.d.ts.map +1 -1
- package/dist/lib/index.js +3 -1
- package/dist/lib/index.js.map +1 -1
- package/dist/lib/modules/coupon/routers/coupon.router.d.ts +4 -0
- package/dist/lib/modules/coupon/routers/coupon.router.d.ts.map +1 -1
- package/dist/lib/modules/coupon/services/coupon.service.d.ts +2 -2
- package/dist/lib/modules/coupon/services/coupon.service.d.ts.map +1 -1
- package/dist/lib/modules/coupon/services/coupon.service.js +1 -1
- package/dist/lib/modules/coupon/services/coupon.service.js.map +1 -1
- package/dist/lib/modules/coupon/services/custom-coupon.service.d.ts +2 -0
- package/dist/lib/modules/coupon/services/custom-coupon.service.d.ts.map +1 -1
- package/dist/lib/modules/coupon/services/custom-coupon.service.js +1 -1
- package/dist/lib/modules/coupon/services/custom-coupon.service.js.map +1 -1
- package/dist/lib/modules/coupon/services/global-coupon.service.d.ts +1 -1
- package/dist/lib/modules/coupon/services/global-coupon.service.d.ts.map +1 -1
- package/dist/lib/modules/coupon/services/global-coupon.service.js +18 -10
- package/dist/lib/modules/coupon/services/global-coupon.service.js.map +1 -1
- package/dist/lib/modules/coupon/services/helper.service.d.ts +2 -1
- package/dist/lib/modules/coupon/services/helper.service.d.ts.map +1 -1
- package/dist/lib/modules/coupon/services/helper.service.js +9 -1
- package/dist/lib/modules/coupon/services/helper.service.js.map +1 -1
- package/dist/lib/modules/coupon/services/individual-store-coupon.service.d.ts +2 -0
- package/dist/lib/modules/coupon/services/individual-store-coupon.service.d.ts.map +1 -1
- package/dist/lib/modules/coupon/services/individual-store-coupon.service.js +2 -2
- package/dist/lib/modules/coupon/services/individual-store-coupon.service.js.map +1 -1
- package/dist/lib/modules/coupon/services/individual-user-coupon.service.d.ts.map +1 -1
- package/dist/lib/modules/coupon/services/individual-user-coupon.service.js +8 -0
- package/dist/lib/modules/coupon/services/individual-user-coupon.service.js.map +1 -1
- package/dist/lib/modules/coupon/services/patterns/repository/CouponRepository.d.ts.map +1 -1
- package/dist/lib/modules/coupon/services/patterns/repository/CouponRepository.js +20 -1
- package/dist/lib/modules/coupon/services/patterns/repository/CouponRepository.js.map +1 -1
- package/dist/lib/modules/coupon/services/referral-code-coupon.service.d.ts.map +1 -1
- package/dist/lib/modules/coupon/services/referral-code-coupon.service.js +1 -1
- package/dist/lib/modules/coupon/services/referral-code-coupon.service.js.map +1 -1
- package/dist/lib/modules/coupon/services/referral-reward-coupon.service.d.ts +1 -1
- package/dist/lib/modules/coupon/services/referral-reward-coupon.service.d.ts.map +1 -1
- package/dist/lib/modules/coupon/services/referral-reward-coupon.service.js +23 -15
- package/dist/lib/modules/coupon/services/referral-reward-coupon.service.js.map +1 -1
- package/dist/lib/modules/coupon/services/shops-categories-coupon.service.d.ts +2 -0
- package/dist/lib/modules/coupon/services/shops-categories-coupon.service.d.ts.map +1 -1
- package/dist/lib/modules/coupon/services/shops-categories-coupon.service.js +2 -2
- package/dist/lib/modules/coupon/services/shops-categories-coupon.service.js.map +1 -1
- package/dist/lib/modules/coupon/validations/coupon.validation.d.ts +13 -0
- package/dist/lib/modules/coupon/validations/coupon.validation.d.ts.map +1 -1
- package/dist/lib/modules/coupon/validations/coupon.validation.js +1 -0
- package/dist/lib/modules/coupon/validations/coupon.validation.js.map +1 -1
- package/dist/lib/modules/limited-time-offer/campaign/campaign.router.d.ts +10 -21
- package/dist/lib/modules/limited-time-offer/campaign/campaign.router.d.ts.map +1 -1
- package/dist/lib/modules/limited-time-offer/campaign/campaign.router.js +5 -4
- package/dist/lib/modules/limited-time-offer/campaign/campaign.router.js.map +1 -1
- package/dist/lib/modules/limited-time-offer/campaign/limited-time-offer-campaign.validation.d.ts +154 -0
- package/dist/lib/modules/limited-time-offer/campaign/limited-time-offer-campaign.validation.d.ts.map +1 -1
- package/dist/lib/modules/limited-time-offer/campaign/limited-time-offer-campaign.validation.js +13 -1
- package/dist/lib/modules/limited-time-offer/campaign/limited-time-offer-campaign.validation.js.map +1 -1
- package/dist/lib/modules/limited-time-offer/campaign/services/limited-time-offer-campaign.service.d.ts +8 -2
- package/dist/lib/modules/limited-time-offer/campaign/services/limited-time-offer-campaign.service.d.ts.map +1 -1
- package/dist/lib/modules/limited-time-offer/campaign/services/limited-time-offer-campaign.service.js +11 -2
- package/dist/lib/modules/limited-time-offer/campaign/services/limited-time-offer-campaign.service.js.map +1 -1
- package/dist/lib/modules/limited-time-offer/limited-time-offer.router.d.ts +16 -27
- package/dist/lib/modules/limited-time-offer/limited-time-offer.router.d.ts.map +1 -1
- package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.router.d.ts +6 -6
- package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.validation.d.ts +30 -30
- package/dist/lib/modules/marketing/services/marketing.service.d.ts.map +1 -1
- package/dist/lib/modules/marketing/services/marketing.service.js +8 -2
- package/dist/lib/modules/marketing/services/marketing.service.js.map +1 -1
- package/dist/lib/modules/marketing/services/synchronize-product-marketing.service.d.ts +2 -0
- package/dist/lib/modules/marketing/services/synchronize-product-marketing.service.d.ts.map +1 -1
- package/dist/lib/modules/marketing/services/synchronize-product-marketing.service.js +14 -0
- package/dist/lib/modules/marketing/services/synchronize-product-marketing.service.js.map +1 -1
- package/dist/lib/modules/marketing/validations/buy1-get1-marketing.validation.d.ts +18 -18
- package/dist/lib/modules/marketing/validations/discount-marketing.validation.d.ts +30 -30
- package/dist/lib/modules/marketing/validations/featured-marketing.validation.d.ts +6 -6
- package/dist/lib/modules/marketing/validations/free-delivery-marketing.validation.d.ts +4 -4
- package/dist/lib/modules/marketing/validations/marketing.validation.d.ts +2 -2
- package/dist/lib/modules/marketing/validations/product-marketing.validation.d.ts +5 -5
- package/dist/lib/modules/marketing/validations/punch-marketing.validation.d.ts +4 -4
- package/dist/lib/modules/punch-marketing-history/routers/punch-marketing-history.router.d.ts +1 -1
- package/dist/lib/modules/punch-marketing-history/validations/punch-marketing-history.validation.d.ts +2 -2
- package/dist/lib/modules/tournament/config/config.builder.d.ts +5 -0
- package/dist/lib/modules/tournament/config/config.builder.d.ts.map +1 -0
- package/dist/lib/modules/tournament/config/config.builder.js +23 -0
- package/dist/lib/modules/tournament/config/config.builder.js.map +1 -0
- package/dist/lib/modules/tournament/config/config.repository.d.ts +14 -0
- package/dist/lib/modules/tournament/config/config.repository.d.ts.map +1 -0
- package/dist/lib/modules/tournament/config/config.repository.js +83 -0
- package/dist/lib/modules/tournament/config/config.repository.js.map +1 -0
- package/dist/lib/modules/tournament/config/config.router.d.ts +251 -0
- package/dist/lib/modules/tournament/config/config.router.d.ts.map +1 -0
- package/dist/lib/modules/tournament/config/config.router.js +40 -0
- package/dist/lib/modules/tournament/config/config.router.js.map +1 -0
- package/dist/lib/modules/tournament/config/config.service.d.ts +14 -0
- package/dist/lib/modules/tournament/config/config.service.d.ts.map +1 -0
- package/dist/lib/modules/tournament/config/config.service.js +101 -0
- package/dist/lib/modules/tournament/config/config.service.js.map +1 -0
- package/dist/lib/modules/tournament/config/config.validation.d.ts +767 -0
- package/dist/lib/modules/tournament/config/config.validation.d.ts.map +1 -0
- package/dist/lib/modules/tournament/config/config.validation.js +85 -0
- package/dist/lib/modules/tournament/config/config.validation.js.map +1 -0
- package/dist/lib/modules/tournament/match/events/evaluate-predictions.consumer.d.ts +2 -0
- package/dist/lib/modules/tournament/match/events/evaluate-predictions.consumer.d.ts.map +1 -0
- package/dist/lib/modules/tournament/match/events/evaluate-predictions.consumer.js +20 -0
- package/dist/lib/modules/tournament/match/events/evaluate-predictions.consumer.js.map +1 -0
- package/dist/lib/modules/tournament/match/events/evaluate-predictions.event.d.ts +15 -0
- package/dist/lib/modules/tournament/match/events/evaluate-predictions.event.d.ts.map +1 -0
- package/dist/lib/modules/tournament/match/events/evaluate-predictions.event.js +12 -0
- package/dist/lib/modules/tournament/match/events/evaluate-predictions.event.js.map +1 -0
- package/dist/lib/modules/tournament/match/events/match-ended.consumer.d.ts +2 -0
- package/dist/lib/modules/tournament/match/events/match-ended.consumer.d.ts.map +1 -0
- package/dist/lib/modules/tournament/match/events/match-ended.consumer.js +15 -0
- package/dist/lib/modules/tournament/match/events/match-ended.consumer.js.map +1 -0
- package/dist/lib/modules/tournament/match/events/match-ended.event.d.ts +14 -0
- package/dist/lib/modules/tournament/match/events/match-ended.event.d.ts.map +1 -0
- package/dist/lib/modules/tournament/match/events/match-ended.event.js +12 -0
- package/dist/lib/modules/tournament/match/events/match-ended.event.js.map +1 -0
- package/dist/lib/modules/tournament/match/match.builder.d.ts +41 -0
- package/dist/lib/modules/tournament/match/match.builder.d.ts.map +1 -0
- package/dist/lib/modules/tournament/match/match.builder.js +42 -0
- package/dist/lib/modules/tournament/match/match.builder.js.map +1 -0
- package/dist/lib/modules/tournament/match/match.repository.d.ts +13 -0
- package/dist/lib/modules/tournament/match/match.repository.d.ts.map +1 -0
- package/dist/lib/modules/tournament/match/match.repository.js +84 -0
- package/dist/lib/modules/tournament/match/match.repository.js.map +1 -0
- package/dist/lib/modules/tournament/match/match.router.d.ts +352 -0
- package/dist/lib/modules/tournament/match/match.router.d.ts.map +1 -0
- package/dist/lib/modules/tournament/match/match.router.js +49 -0
- package/dist/lib/modules/tournament/match/match.router.js.map +1 -0
- package/dist/lib/modules/tournament/match/match.service.d.ts +19 -0
- package/dist/lib/modules/tournament/match/match.service.d.ts.map +1 -0
- package/dist/lib/modules/tournament/match/match.service.js +149 -0
- package/dist/lib/modules/tournament/match/match.service.js.map +1 -0
- package/dist/lib/modules/tournament/match/match.validation.d.ts +892 -0
- package/dist/lib/modules/tournament/match/match.validation.d.ts.map +1 -0
- package/dist/lib/modules/tournament/match/match.validation.js +76 -0
- package/dist/lib/modules/tournament/match/match.validation.js.map +1 -0
- package/dist/lib/modules/tournament/notification/jobs/notification.producer.d.ts +13 -0
- package/dist/lib/modules/tournament/notification/jobs/notification.producer.d.ts.map +1 -0
- package/dist/lib/modules/tournament/notification/jobs/notification.producer.js +28 -0
- package/dist/lib/modules/tournament/notification/jobs/notification.producer.js.map +1 -0
- package/dist/lib/modules/tournament/notification/jobs/notification.worker.d.ts +7 -0
- package/dist/lib/modules/tournament/notification/jobs/notification.worker.d.ts.map +1 -0
- package/dist/lib/modules/tournament/notification/jobs/notification.worker.js +76 -0
- package/dist/lib/modules/tournament/notification/jobs/notification.worker.js.map +1 -0
- package/dist/lib/modules/tournament/notification/notification.scheduler.service.d.ts +10 -0
- package/dist/lib/modules/tournament/notification/notification.scheduler.service.d.ts.map +1 -0
- package/dist/lib/modules/tournament/notification/notification.scheduler.service.js +86 -0
- package/dist/lib/modules/tournament/notification/notification.scheduler.service.js.map +1 -0
- package/dist/lib/modules/tournament/notification/notification.service.d.ts +12 -0
- package/dist/lib/modules/tournament/notification/notification.service.d.ts.map +1 -0
- package/dist/lib/modules/tournament/notification/notification.service.js +106 -0
- package/dist/lib/modules/tournament/notification/notification.service.js.map +1 -0
- package/dist/lib/modules/tournament/participant/participant.repository.d.ts +12 -0
- package/dist/lib/modules/tournament/participant/participant.repository.d.ts.map +1 -0
- package/dist/lib/modules/tournament/participant/participant.repository.js +73 -0
- package/dist/lib/modules/tournament/participant/participant.repository.js.map +1 -0
- package/dist/lib/modules/tournament/participant/participant.router.d.ts +104 -0
- package/dist/lib/modules/tournament/participant/participant.router.d.ts.map +1 -0
- package/dist/lib/modules/tournament/participant/participant.router.js +28 -0
- package/dist/lib/modules/tournament/participant/participant.router.js.map +1 -0
- package/dist/lib/modules/tournament/participant/participant.service.d.ts +14 -0
- package/dist/lib/modules/tournament/participant/participant.service.d.ts.map +1 -0
- package/dist/lib/modules/tournament/participant/participant.service.js +103 -0
- package/dist/lib/modules/tournament/participant/participant.service.js.map +1 -0
- package/dist/lib/modules/tournament/participant/participant.validation.d.ts +719 -0
- package/dist/lib/modules/tournament/participant/participant.validation.d.ts.map +1 -0
- package/dist/lib/modules/tournament/participant/participant.validation.js +44 -0
- package/dist/lib/modules/tournament/participant/participant.validation.js.map +1 -0
- package/dist/lib/modules/tournament/prediction/prediction.builder.d.ts +14 -0
- package/dist/lib/modules/tournament/prediction/prediction.builder.d.ts.map +1 -0
- package/dist/lib/modules/tournament/prediction/prediction.builder.js +23 -0
- package/dist/lib/modules/tournament/prediction/prediction.builder.js.map +1 -0
- package/dist/lib/modules/tournament/prediction/prediction.repository.d.ts +14 -0
- package/dist/lib/modules/tournament/prediction/prediction.repository.d.ts.map +1 -0
- package/dist/lib/modules/tournament/prediction/prediction.repository.js +91 -0
- package/dist/lib/modules/tournament/prediction/prediction.repository.js.map +1 -0
- package/dist/lib/modules/tournament/prediction/prediction.router.d.ts +133 -0
- package/dist/lib/modules/tournament/prediction/prediction.router.d.ts.map +1 -0
- package/dist/lib/modules/tournament/prediction/prediction.router.js +36 -0
- package/dist/lib/modules/tournament/prediction/prediction.router.js.map +1 -0
- package/dist/lib/modules/tournament/prediction/prediction.service.d.ts +25 -0
- package/dist/lib/modules/tournament/prediction/prediction.service.d.ts.map +1 -0
- package/dist/lib/modules/tournament/prediction/prediction.service.js +142 -0
- package/dist/lib/modules/tournament/prediction/prediction.service.js.map +1 -0
- package/dist/lib/modules/tournament/prediction/prediction.validation.d.ts +575 -0
- package/dist/lib/modules/tournament/prediction/prediction.validation.d.ts.map +1 -0
- package/dist/lib/modules/tournament/prediction/prediction.validation.js +46 -0
- package/dist/lib/modules/tournament/prediction/prediction.validation.js.map +1 -0
- package/dist/lib/modules/tournament/reward/handlers/coupon-reward.handler.d.ts +11 -0
- package/dist/lib/modules/tournament/reward/handlers/coupon-reward.handler.d.ts.map +1 -0
- package/dist/lib/modules/tournament/reward/handlers/coupon-reward.handler.js +81 -0
- package/dist/lib/modules/tournament/reward/handlers/coupon-reward.handler.js.map +1 -0
- package/dist/lib/modules/tournament/reward/reward.builder.d.ts +6 -0
- package/dist/lib/modules/tournament/reward/reward.builder.d.ts.map +1 -0
- package/dist/lib/modules/tournament/reward/reward.builder.js +43 -0
- package/dist/lib/modules/tournament/reward/reward.builder.js.map +1 -0
- package/dist/lib/modules/tournament/reward/reward.factory.d.ts +6 -0
- package/dist/lib/modules/tournament/reward/reward.factory.d.ts.map +1 -0
- package/dist/lib/modules/tournament/reward/reward.factory.js +21 -0
- package/dist/lib/modules/tournament/reward/reward.factory.js.map +1 -0
- package/dist/lib/modules/tournament/reward/reward.interface.d.ts +5 -0
- package/dist/lib/modules/tournament/reward/reward.interface.d.ts.map +1 -0
- package/dist/lib/modules/tournament/reward/reward.interface.js +3 -0
- package/dist/lib/modules/tournament/reward/reward.interface.js.map +1 -0
- package/dist/lib/modules/tournament/reward/reward.service.d.ts +6 -0
- package/dist/lib/modules/tournament/reward/reward.service.d.ts.map +1 -0
- package/dist/lib/modules/tournament/reward/reward.service.js +56 -0
- package/dist/lib/modules/tournament/reward/reward.service.js.map +1 -0
- package/dist/lib/modules/tournament/reward/reward.types.d.ts +11 -0
- package/dist/lib/modules/tournament/reward/reward.types.d.ts.map +1 -0
- package/dist/lib/modules/tournament/reward/reward.types.js +8 -0
- package/dist/lib/modules/tournament/reward/reward.types.js.map +1 -0
- package/dist/lib/modules/tournament/score/score.repository.d.ts +6 -0
- package/dist/lib/modules/tournament/score/score.repository.d.ts.map +1 -0
- package/dist/lib/modules/tournament/score/score.repository.js +60 -0
- package/dist/lib/modules/tournament/score/score.repository.js.map +1 -0
- package/dist/lib/modules/tournament/score/score.service.d.ts +6 -0
- package/dist/lib/modules/tournament/score/score.service.d.ts.map +1 -0
- package/dist/lib/modules/tournament/score/score.service.js +60 -0
- package/dist/lib/modules/tournament/score/score.service.js.map +1 -0
- package/dist/lib/modules/tournament/team/team.builder.d.ts +19 -0
- package/dist/lib/modules/tournament/team/team.builder.d.ts.map +1 -0
- package/dist/lib/modules/tournament/team/team.builder.js +18 -0
- package/dist/lib/modules/tournament/team/team.builder.js.map +1 -0
- package/dist/lib/modules/tournament/team/team.repository.d.ts +11 -0
- package/dist/lib/modules/tournament/team/team.repository.d.ts.map +1 -0
- package/dist/lib/modules/tournament/team/team.repository.js +71 -0
- package/dist/lib/modules/tournament/team/team.repository.js.map +1 -0
- package/dist/lib/modules/tournament/team/team.router.d.ts +205 -0
- package/dist/lib/modules/tournament/team/team.router.d.ts.map +1 -0
- package/dist/lib/modules/tournament/team/team.router.js +36 -0
- package/dist/lib/modules/tournament/team/team.router.js.map +1 -0
- package/dist/lib/modules/tournament/team/team.service.d.ts +15 -0
- package/dist/lib/modules/tournament/team/team.service.d.ts.map +1 -0
- package/dist/lib/modules/tournament/team/team.service.js +137 -0
- package/dist/lib/modules/tournament/team/team.service.js.map +1 -0
- package/dist/lib/modules/tournament/team/team.validation.d.ts +986 -0
- package/dist/lib/modules/tournament/team/team.validation.d.ts.map +1 -0
- package/dist/lib/modules/tournament/team/team.validation.js +55 -0
- package/dist/lib/modules/tournament/team/team.validation.js.map +1 -0
- package/dist/lib/modules/tournament/tournament.router.d.ts +1082 -0
- package/dist/lib/modules/tournament/tournament.router.d.ts.map +1 -0
- package/dist/lib/modules/tournament/tournament.router.js +25 -0
- package/dist/lib/modules/tournament/tournament.router.js.map +1 -0
- package/dist/lib/modules/tournament/tournament.service.d.ts +8 -0
- package/dist/lib/modules/tournament/tournament.service.d.ts.map +1 -0
- package/dist/lib/modules/tournament/tournament.service.js +63 -0
- package/dist/lib/modules/tournament/tournament.service.js.map +1 -0
- package/dist/lib/modules/tournament/tournament.validation.d.ts +133 -0
- package/dist/lib/modules/tournament/tournament.validation.d.ts.map +1 -0
- package/dist/lib/modules/tournament/tournament.validation.js +14 -0
- package/dist/lib/modules/tournament/tournament.validation.js.map +1 -0
- package/dist/types/event/event-initializations.d.ts.map +1 -1
- package/dist/types/events/event-initializations.d.ts +2 -0
- package/dist/types/events/event-initializations.d.ts.map +1 -0
- package/dist/types/index.d.ts +1102 -28
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/modules/coupon/routers/coupon.router.d.ts +4 -0
- package/dist/types/modules/coupon/routers/coupon.router.d.ts.map +1 -1
- package/dist/types/modules/coupon/services/coupon.service.d.ts +2 -2
- package/dist/types/modules/coupon/services/coupon.service.d.ts.map +1 -1
- package/dist/types/modules/coupon/services/custom-coupon.service.d.ts +2 -0
- package/dist/types/modules/coupon/services/custom-coupon.service.d.ts.map +1 -1
- package/dist/types/modules/coupon/services/global-coupon.service.d.ts +1 -1
- package/dist/types/modules/coupon/services/global-coupon.service.d.ts.map +1 -1
- package/dist/types/modules/coupon/services/helper.service.d.ts +2 -1
- package/dist/types/modules/coupon/services/helper.service.d.ts.map +1 -1
- package/dist/types/modules/coupon/services/individual-store-coupon.service.d.ts +2 -0
- package/dist/types/modules/coupon/services/individual-store-coupon.service.d.ts.map +1 -1
- package/dist/types/modules/coupon/services/individual-user-coupon.service.d.ts.map +1 -1
- package/dist/types/modules/coupon/services/patterns/repository/CouponRepository.d.ts.map +1 -1
- package/dist/types/modules/coupon/services/referral-code-coupon.service.d.ts.map +1 -1
- package/dist/types/modules/coupon/services/referral-reward-coupon.service.d.ts +1 -1
- package/dist/types/modules/coupon/services/referral-reward-coupon.service.d.ts.map +1 -1
- package/dist/types/modules/coupon/services/shops-categories-coupon.service.d.ts +2 -0
- package/dist/types/modules/coupon/services/shops-categories-coupon.service.d.ts.map +1 -1
- package/dist/types/modules/coupon/validations/coupon.validation.d.ts +13 -0
- package/dist/types/modules/coupon/validations/coupon.validation.d.ts.map +1 -1
- package/dist/types/modules/limited-time-offer/campaign/campaign.router.d.ts +10 -21
- package/dist/types/modules/limited-time-offer/campaign/campaign.router.d.ts.map +1 -1
- package/dist/types/modules/limited-time-offer/campaign/limited-time-offer-campaign.validation.d.ts +154 -0
- package/dist/types/modules/limited-time-offer/campaign/limited-time-offer-campaign.validation.d.ts.map +1 -1
- package/dist/types/modules/limited-time-offer/campaign/services/limited-time-offer-campaign.service.d.ts +8 -2
- package/dist/types/modules/limited-time-offer/campaign/services/limited-time-offer-campaign.service.d.ts.map +1 -1
- package/dist/types/modules/limited-time-offer/limited-time-offer.router.d.ts +16 -27
- package/dist/types/modules/limited-time-offer/limited-time-offer.router.d.ts.map +1 -1
- package/dist/types/modules/limited-time-offer/participant/limited-time-offer-participant.router.d.ts +6 -6
- package/dist/types/modules/limited-time-offer/participant/limited-time-offer-participant.validation.d.ts +30 -30
- package/dist/types/modules/marketing/services/marketing.service.d.ts.map +1 -1
- package/dist/types/modules/marketing/services/synchronize-product-marketing.service.d.ts +2 -0
- package/dist/types/modules/marketing/services/synchronize-product-marketing.service.d.ts.map +1 -1
- package/dist/types/modules/marketing/validations/buy1-get1-marketing.validation.d.ts +18 -18
- package/dist/types/modules/marketing/validations/discount-marketing.validation.d.ts +30 -30
- package/dist/types/modules/marketing/validations/featured-marketing.validation.d.ts +6 -6
- package/dist/types/modules/marketing/validations/free-delivery-marketing.validation.d.ts +4 -4
- package/dist/types/modules/marketing/validations/marketing.validation.d.ts +2 -2
- package/dist/types/modules/marketing/validations/product-marketing.validation.d.ts +5 -5
- package/dist/types/modules/marketing/validations/punch-marketing.validation.d.ts +4 -4
- package/dist/types/modules/punch-marketing-history/routers/punch-marketing-history.router.d.ts +1 -1
- package/dist/types/modules/punch-marketing-history/validations/punch-marketing-history.validation.d.ts +2 -2
- package/dist/types/modules/tournament/config/config.builder.d.ts +5 -0
- package/dist/types/modules/tournament/config/config.builder.d.ts.map +1 -0
- package/dist/types/modules/tournament/config/config.repository.d.ts +14 -0
- package/dist/types/modules/tournament/config/config.repository.d.ts.map +1 -0
- package/dist/types/modules/tournament/config/config.router.d.ts +251 -0
- package/dist/types/modules/tournament/config/config.router.d.ts.map +1 -0
- package/dist/types/modules/tournament/config/config.service.d.ts +14 -0
- package/dist/types/modules/tournament/config/config.service.d.ts.map +1 -0
- package/dist/types/modules/tournament/config/config.validation.d.ts +767 -0
- package/dist/types/modules/tournament/config/config.validation.d.ts.map +1 -0
- package/dist/types/modules/tournament/config/tournament-config.validation.d.ts +201 -0
- package/dist/types/modules/tournament/config/tournament-config.validation.d.ts.map +1 -0
- package/dist/types/modules/tournament/match/events/evaluate-predictions.consumer.d.ts +2 -0
- package/dist/types/modules/tournament/match/events/evaluate-predictions.consumer.d.ts.map +1 -0
- package/dist/types/modules/tournament/match/events/evaluate-predictions.event.d.ts +15 -0
- package/dist/types/modules/tournament/match/events/evaluate-predictions.event.d.ts.map +1 -0
- package/dist/types/modules/tournament/match/events/match-ended.consumer.d.ts +2 -0
- package/dist/types/modules/tournament/match/events/match-ended.consumer.d.ts.map +1 -0
- package/dist/types/modules/tournament/match/events/match-ended.event.d.ts +14 -0
- package/dist/types/modules/tournament/match/events/match-ended.event.d.ts.map +1 -0
- package/dist/types/modules/tournament/match/match.builder.d.ts +41 -0
- package/dist/types/modules/tournament/match/match.builder.d.ts.map +1 -0
- package/dist/types/modules/tournament/match/match.repository.d.ts +13 -0
- package/dist/types/modules/tournament/match/match.repository.d.ts.map +1 -0
- package/dist/types/modules/tournament/match/match.router.d.ts +352 -0
- package/dist/types/modules/tournament/match/match.router.d.ts.map +1 -0
- package/dist/types/modules/tournament/match/match.service.d.ts +19 -0
- package/dist/types/modules/tournament/match/match.service.d.ts.map +1 -0
- package/dist/types/modules/tournament/match/match.validation.d.ts +892 -0
- package/dist/types/modules/tournament/match/match.validation.d.ts.map +1 -0
- package/dist/types/modules/tournament/notification/jobs/notification.producer.d.ts +13 -0
- package/dist/types/modules/tournament/notification/jobs/notification.producer.d.ts.map +1 -0
- package/dist/types/modules/tournament/notification/jobs/notification.worker.d.ts +7 -0
- package/dist/types/modules/tournament/notification/jobs/notification.worker.d.ts.map +1 -0
- package/dist/types/modules/tournament/notification/notification.scheduler.service.d.ts +10 -0
- package/dist/types/modules/tournament/notification/notification.scheduler.service.d.ts.map +1 -0
- package/dist/types/modules/tournament/notification/notification.service.d.ts +12 -0
- package/dist/types/modules/tournament/notification/notification.service.d.ts.map +1 -0
- package/dist/types/modules/tournament/participant/participant.repository.d.ts +12 -0
- package/dist/types/modules/tournament/participant/participant.repository.d.ts.map +1 -0
- package/dist/types/modules/tournament/participant/participant.router.d.ts +104 -0
- package/dist/types/modules/tournament/participant/participant.router.d.ts.map +1 -0
- package/dist/types/modules/tournament/participant/participant.service.d.ts +14 -0
- package/dist/types/modules/tournament/participant/participant.service.d.ts.map +1 -0
- package/dist/types/modules/tournament/participant/participant.validation.d.ts +719 -0
- package/dist/types/modules/tournament/participant/participant.validation.d.ts.map +1 -0
- package/dist/types/modules/tournament/prediction/prediction.builder.d.ts +14 -0
- package/dist/types/modules/tournament/prediction/prediction.builder.d.ts.map +1 -0
- package/dist/types/modules/tournament/prediction/prediction.repository.d.ts +14 -0
- package/dist/types/modules/tournament/prediction/prediction.repository.d.ts.map +1 -0
- package/dist/types/modules/tournament/prediction/prediction.router.d.ts +133 -0
- package/dist/types/modules/tournament/prediction/prediction.router.d.ts.map +1 -0
- package/dist/types/modules/tournament/prediction/prediction.service.d.ts +25 -0
- package/dist/types/modules/tournament/prediction/prediction.service.d.ts.map +1 -0
- package/dist/types/modules/tournament/prediction/prediction.validation.d.ts +575 -0
- package/dist/types/modules/tournament/prediction/prediction.validation.d.ts.map +1 -0
- package/dist/types/modules/tournament/reward/handlers/coupon-reward.handler.d.ts +11 -0
- package/dist/types/modules/tournament/reward/handlers/coupon-reward.handler.d.ts.map +1 -0
- package/dist/types/modules/tournament/reward/reward.builder.d.ts +6 -0
- package/dist/types/modules/tournament/reward/reward.builder.d.ts.map +1 -0
- package/dist/types/modules/tournament/reward/reward.factory.d.ts +6 -0
- package/dist/types/modules/tournament/reward/reward.factory.d.ts.map +1 -0
- package/dist/types/modules/tournament/reward/reward.interface.d.ts +5 -0
- package/dist/types/modules/tournament/reward/reward.interface.d.ts.map +1 -0
- package/dist/types/modules/tournament/reward/reward.service.d.ts +6 -0
- package/dist/types/modules/tournament/reward/reward.service.d.ts.map +1 -0
- package/dist/types/modules/tournament/reward/reward.types.d.ts +11 -0
- package/dist/types/modules/tournament/reward/reward.types.d.ts.map +1 -0
- package/dist/types/modules/tournament/score/score.repository.d.ts +6 -0
- package/dist/types/modules/tournament/score/score.repository.d.ts.map +1 -0
- package/dist/types/modules/tournament/score/score.service.d.ts +6 -0
- package/dist/types/modules/tournament/score/score.service.d.ts.map +1 -0
- package/dist/types/modules/tournament/team/team.builder.d.ts +19 -0
- package/dist/types/modules/tournament/team/team.builder.d.ts.map +1 -0
- package/dist/types/modules/tournament/team/team.repository.d.ts +11 -0
- package/dist/types/modules/tournament/team/team.repository.d.ts.map +1 -0
- package/dist/types/modules/tournament/team/team.router.d.ts +205 -0
- package/dist/types/modules/tournament/team/team.router.d.ts.map +1 -0
- package/dist/types/modules/tournament/team/team.service.d.ts +15 -0
- package/dist/types/modules/tournament/team/team.service.d.ts.map +1 -0
- package/dist/types/modules/tournament/team/team.validation.d.ts +986 -0
- package/dist/types/modules/tournament/team/team.validation.d.ts.map +1 -0
- package/dist/types/modules/tournament/tournament.router.d.ts +1082 -0
- package/dist/types/modules/tournament/tournament.router.d.ts.map +1 -0
- package/dist/types/modules/tournament/tournament.service.d.ts +8 -0
- package/dist/types/modules/tournament/tournament.service.d.ts.map +1 -0
- package/dist/types/modules/tournament/tournament.validation.d.ts +133 -0
- package/dist/types/modules/tournament/tournament.validation.d.ts.map +1 -0
- package/package.json +3 -3
- package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.service.d.ts +0 -1
- package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.service.d.ts.map +0 -1
- package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.service.js +0 -2
- package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.service.js.map +0 -1
|
@@ -29,9 +29,9 @@ declare const FeaturedMarketingValidationSchema: z.ZodObject<{
|
|
|
29
29
|
end?: Date | undefined;
|
|
30
30
|
};
|
|
31
31
|
shop: import("mongoose").Types.ObjectId;
|
|
32
|
-
marketingType: MarketingType.FEATURED;
|
|
33
32
|
isAppliedByCompany: boolean;
|
|
34
33
|
pausedAt: Date | null;
|
|
34
|
+
marketingType: MarketingType.FEATURED;
|
|
35
35
|
amount: number;
|
|
36
36
|
admin?: import("mongoose").Types.ObjectId | null | undefined;
|
|
37
37
|
}, {
|
|
@@ -40,8 +40,8 @@ declare const FeaturedMarketingValidationSchema: z.ZodObject<{
|
|
|
40
40
|
end?: string | Date | undefined;
|
|
41
41
|
};
|
|
42
42
|
shop: string | import("mongoose").Types.ObjectId;
|
|
43
|
-
marketingType: MarketingType.FEATURED;
|
|
44
43
|
isAppliedByCompany: boolean;
|
|
44
|
+
marketingType: MarketingType.FEATURED;
|
|
45
45
|
amount: number;
|
|
46
46
|
status?: import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus | undefined;
|
|
47
47
|
admin?: string | import("mongoose").Types.ObjectId | null | undefined;
|
|
@@ -192,9 +192,9 @@ declare const FeaturedMarketingValidationSchemaRefined: z.ZodEffects<z.ZodObject
|
|
|
192
192
|
end?: Date | undefined;
|
|
193
193
|
};
|
|
194
194
|
shop: import("mongoose").Types.ObjectId;
|
|
195
|
-
marketingType: MarketingType.FEATURED;
|
|
196
195
|
isAppliedByCompany: boolean;
|
|
197
196
|
pausedAt: Date | null;
|
|
197
|
+
marketingType: MarketingType.FEATURED;
|
|
198
198
|
amount: number;
|
|
199
199
|
admin?: import("mongoose").Types.ObjectId | null | undefined;
|
|
200
200
|
}, {
|
|
@@ -203,8 +203,8 @@ declare const FeaturedMarketingValidationSchemaRefined: z.ZodEffects<z.ZodObject
|
|
|
203
203
|
end?: string | Date | undefined;
|
|
204
204
|
};
|
|
205
205
|
shop: string | import("mongoose").Types.ObjectId;
|
|
206
|
-
marketingType: MarketingType.FEATURED;
|
|
207
206
|
isAppliedByCompany: boolean;
|
|
207
|
+
marketingType: MarketingType.FEATURED;
|
|
208
208
|
amount: number;
|
|
209
209
|
status?: import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus | undefined;
|
|
210
210
|
admin?: string | import("mongoose").Types.ObjectId | null | undefined;
|
|
@@ -216,9 +216,9 @@ declare const FeaturedMarketingValidationSchemaRefined: z.ZodEffects<z.ZodObject
|
|
|
216
216
|
end?: Date | undefined;
|
|
217
217
|
};
|
|
218
218
|
shop: import("mongoose").Types.ObjectId;
|
|
219
|
-
marketingType: MarketingType.FEATURED;
|
|
220
219
|
isAppliedByCompany: boolean;
|
|
221
220
|
pausedAt: Date | null;
|
|
221
|
+
marketingType: MarketingType.FEATURED;
|
|
222
222
|
amount: number;
|
|
223
223
|
admin?: import("mongoose").Types.ObjectId | null | undefined;
|
|
224
224
|
}, {
|
|
@@ -227,8 +227,8 @@ declare const FeaturedMarketingValidationSchemaRefined: z.ZodEffects<z.ZodObject
|
|
|
227
227
|
end?: string | Date | undefined;
|
|
228
228
|
};
|
|
229
229
|
shop: string | import("mongoose").Types.ObjectId;
|
|
230
|
-
marketingType: MarketingType.FEATURED;
|
|
231
230
|
isAppliedByCompany: boolean;
|
|
231
|
+
marketingType: MarketingType.FEATURED;
|
|
232
232
|
amount: number;
|
|
233
233
|
status?: import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus | undefined;
|
|
234
234
|
admin?: string | import("mongoose").Types.ObjectId | null | undefined;
|
|
@@ -93,9 +93,9 @@ declare const FreeDeliveryMarketingValidationSchema: z.ZodEffects<z.ZodObject<{
|
|
|
93
93
|
spendLimit: number;
|
|
94
94
|
isSpendLimitEnabled: boolean;
|
|
95
95
|
shop: import("mongoose").Types.ObjectId;
|
|
96
|
-
marketingType: MarketingType.FREE_DELIVERY;
|
|
97
96
|
isAppliedByCompany: boolean;
|
|
98
97
|
pausedAt: Date | null;
|
|
98
|
+
marketingType: MarketingType.FREE_DELIVERY;
|
|
99
99
|
admin?: import("mongoose").Types.ObjectId | null | undefined;
|
|
100
100
|
}, {
|
|
101
101
|
duration: {
|
|
@@ -103,8 +103,8 @@ declare const FreeDeliveryMarketingValidationSchema: z.ZodEffects<z.ZodObject<{
|
|
|
103
103
|
end?: string | Date | undefined;
|
|
104
104
|
};
|
|
105
105
|
shop: string | import("mongoose").Types.ObjectId;
|
|
106
|
-
marketingType: MarketingType.FREE_DELIVERY;
|
|
107
106
|
isAppliedByCompany: boolean;
|
|
107
|
+
marketingType: MarketingType.FREE_DELIVERY;
|
|
108
108
|
status?: import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus | undefined;
|
|
109
109
|
spendLimit?: number | undefined;
|
|
110
110
|
isSpendLimitEnabled?: boolean | undefined;
|
|
@@ -119,9 +119,9 @@ declare const FreeDeliveryMarketingValidationSchema: z.ZodEffects<z.ZodObject<{
|
|
|
119
119
|
spendLimit: number;
|
|
120
120
|
isSpendLimitEnabled: boolean;
|
|
121
121
|
shop: import("mongoose").Types.ObjectId;
|
|
122
|
-
marketingType: MarketingType.FREE_DELIVERY;
|
|
123
122
|
isAppliedByCompany: boolean;
|
|
124
123
|
pausedAt: Date | null;
|
|
124
|
+
marketingType: MarketingType.FREE_DELIVERY;
|
|
125
125
|
admin?: import("mongoose").Types.ObjectId | null | undefined;
|
|
126
126
|
}, {
|
|
127
127
|
duration: {
|
|
@@ -129,8 +129,8 @@ declare const FreeDeliveryMarketingValidationSchema: z.ZodEffects<z.ZodObject<{
|
|
|
129
129
|
end?: string | Date | undefined;
|
|
130
130
|
};
|
|
131
131
|
shop: string | import("mongoose").Types.ObjectId;
|
|
132
|
-
marketingType: MarketingType.FREE_DELIVERY;
|
|
133
132
|
isAppliedByCompany: boolean;
|
|
133
|
+
marketingType: MarketingType.FREE_DELIVERY;
|
|
134
134
|
status?: import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus | undefined;
|
|
135
135
|
spendLimit?: number | undefined;
|
|
136
136
|
isSpendLimitEnabled?: boolean | undefined;
|
|
@@ -49,9 +49,9 @@ declare const MarketingValidationSchema: z.ZodObject<{
|
|
|
49
49
|
end?: Date | undefined;
|
|
50
50
|
};
|
|
51
51
|
shop: import("mongoose").Types.ObjectId;
|
|
52
|
-
marketingType: MarketingType;
|
|
53
52
|
isAppliedByCompany: boolean;
|
|
54
53
|
pausedAt: Date | null;
|
|
54
|
+
marketingType: MarketingType;
|
|
55
55
|
admin?: import("mongoose").Types.ObjectId | null | undefined;
|
|
56
56
|
}, {
|
|
57
57
|
duration: {
|
|
@@ -59,8 +59,8 @@ declare const MarketingValidationSchema: z.ZodObject<{
|
|
|
59
59
|
end?: string | Date | undefined;
|
|
60
60
|
};
|
|
61
61
|
shop: string | import("mongoose").Types.ObjectId;
|
|
62
|
-
marketingType: MarketingType;
|
|
63
62
|
isAppliedByCompany: boolean;
|
|
63
|
+
marketingType: MarketingType;
|
|
64
64
|
status?: MarketingStatus | undefined;
|
|
65
65
|
admin?: string | import("mongoose").Types.ObjectId | null | undefined;
|
|
66
66
|
pausedAt?: string | Date | null | undefined;
|
|
@@ -192,14 +192,14 @@ export declare const BatchCreateProductMarketingsInputSchema: z.ZodObject<{
|
|
|
192
192
|
}, "strip", z.ZodTypeAny, {
|
|
193
193
|
shop: import("mongoose").Types.ObjectId;
|
|
194
194
|
categories: import("mongoose").Types.ObjectId[];
|
|
195
|
+
isEntireMenu: boolean;
|
|
195
196
|
products: {
|
|
196
197
|
product: import("mongoose").Types.ObjectId;
|
|
197
198
|
value?: number | undefined;
|
|
198
199
|
valueType?: ValueType | null | undefined;
|
|
199
200
|
}[];
|
|
200
|
-
marketingId: import("mongoose").Types.ObjectId;
|
|
201
201
|
isBuy1Get1: boolean;
|
|
202
|
-
|
|
202
|
+
marketingId: import("mongoose").Types.ObjectId;
|
|
203
203
|
value?: number | undefined;
|
|
204
204
|
valueType?: ValueType | undefined;
|
|
205
205
|
isAppliedByCompany?: boolean | undefined;
|
|
@@ -207,18 +207,18 @@ export declare const BatchCreateProductMarketingsInputSchema: z.ZodObject<{
|
|
|
207
207
|
categoryValueType?: ValueType | undefined;
|
|
208
208
|
}, {
|
|
209
209
|
shop: string | import("mongoose").Types.ObjectId;
|
|
210
|
-
marketingId: string | import("mongoose").Types.ObjectId;
|
|
211
|
-
isBuy1Get1: boolean;
|
|
212
210
|
isEntireMenu: boolean;
|
|
211
|
+
isBuy1Get1: boolean;
|
|
212
|
+
marketingId: string | import("mongoose").Types.ObjectId;
|
|
213
213
|
value?: number | undefined;
|
|
214
214
|
valueType?: ValueType | undefined;
|
|
215
215
|
categories?: (string | import("mongoose").Types.ObjectId)[] | undefined;
|
|
216
|
+
isAppliedByCompany?: boolean | undefined;
|
|
216
217
|
products?: {
|
|
217
218
|
product: string | import("mongoose").Types.ObjectId;
|
|
218
219
|
value?: number | undefined;
|
|
219
220
|
valueType?: ValueType | null | undefined;
|
|
220
221
|
}[] | undefined;
|
|
221
|
-
isAppliedByCompany?: boolean | undefined;
|
|
222
222
|
categoryValue?: number | undefined;
|
|
223
223
|
categoryValueType?: ValueType | undefined;
|
|
224
224
|
}>;
|
|
@@ -107,9 +107,9 @@ declare const PunchMarketingValidationSchema: z.ZodEffects<z.ZodObject<{
|
|
|
107
107
|
end?: Date | undefined;
|
|
108
108
|
};
|
|
109
109
|
shop: import("mongoose").Types.ObjectId;
|
|
110
|
-
marketingType: MarketingType.PUNCH_MARKETING;
|
|
111
110
|
isAppliedByCompany: boolean;
|
|
112
111
|
pausedAt: Date | null;
|
|
112
|
+
marketingType: MarketingType.PUNCH_MARKETING;
|
|
113
113
|
minimumOrderValue: number;
|
|
114
114
|
couponValueType: ValueType;
|
|
115
115
|
couponValue: number;
|
|
@@ -123,8 +123,8 @@ declare const PunchMarketingValidationSchema: z.ZodEffects<z.ZodObject<{
|
|
|
123
123
|
end?: string | Date | undefined;
|
|
124
124
|
};
|
|
125
125
|
shop: string | import("mongoose").Types.ObjectId;
|
|
126
|
-
marketingType: MarketingType.PUNCH_MARKETING;
|
|
127
126
|
isAppliedByCompany: boolean;
|
|
127
|
+
marketingType: MarketingType.PUNCH_MARKETING;
|
|
128
128
|
minimumOrderValue: number;
|
|
129
129
|
couponValueType: ValueType;
|
|
130
130
|
couponValue: number;
|
|
@@ -141,9 +141,9 @@ declare const PunchMarketingValidationSchema: z.ZodEffects<z.ZodObject<{
|
|
|
141
141
|
end?: Date | undefined;
|
|
142
142
|
};
|
|
143
143
|
shop: import("mongoose").Types.ObjectId;
|
|
144
|
-
marketingType: MarketingType.PUNCH_MARKETING;
|
|
145
144
|
isAppliedByCompany: boolean;
|
|
146
145
|
pausedAt: Date | null;
|
|
146
|
+
marketingType: MarketingType.PUNCH_MARKETING;
|
|
147
147
|
minimumOrderValue: number;
|
|
148
148
|
couponValueType: ValueType;
|
|
149
149
|
couponValue: number;
|
|
@@ -157,8 +157,8 @@ declare const PunchMarketingValidationSchema: z.ZodEffects<z.ZodObject<{
|
|
|
157
157
|
end?: string | Date | undefined;
|
|
158
158
|
};
|
|
159
159
|
shop: string | import("mongoose").Types.ObjectId;
|
|
160
|
-
marketingType: MarketingType.PUNCH_MARKETING;
|
|
161
160
|
isAppliedByCompany: boolean;
|
|
161
|
+
marketingType: MarketingType.PUNCH_MARKETING;
|
|
162
162
|
minimumOrderValue: number;
|
|
163
163
|
couponValueType: ValueType;
|
|
164
164
|
couponValue: number;
|
package/dist/types/modules/punch-marketing-history/routers/punch-marketing-history.router.d.ts
CHANGED
|
@@ -18,8 +18,8 @@ export declare const punchMarketingHistoryRouter: import("@trpc/server").TRPCBui
|
|
|
18
18
|
input: {
|
|
19
19
|
user: string | import("mongoose").Types.ObjectId;
|
|
20
20
|
shop: string | import("mongoose").Types.ObjectId;
|
|
21
|
-
minimumOrderValue: number;
|
|
22
21
|
marketing: string | import("mongoose").Types.ObjectId;
|
|
22
|
+
minimumOrderValue: number;
|
|
23
23
|
targetOrder: number;
|
|
24
24
|
couponValueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
25
25
|
couponValue: number;
|
|
@@ -22,8 +22,8 @@ declare const PunchMarketingHistoryValidationSchema: z.ZodObject<{
|
|
|
22
22
|
}, "strict", z.ZodTypeAny, {
|
|
23
23
|
user: import("mongoose").Types.ObjectId;
|
|
24
24
|
shop: import("mongoose").Types.ObjectId;
|
|
25
|
-
minimumOrderValue: number;
|
|
26
25
|
marketing: import("mongoose").Types.ObjectId;
|
|
26
|
+
minimumOrderValue: number;
|
|
27
27
|
targetOrder: number;
|
|
28
28
|
couponValueType: ValueType;
|
|
29
29
|
couponValue: number;
|
|
@@ -37,8 +37,8 @@ declare const PunchMarketingHistoryValidationSchema: z.ZodObject<{
|
|
|
37
37
|
}, {
|
|
38
38
|
user: string | import("mongoose").Types.ObjectId;
|
|
39
39
|
shop: string | import("mongoose").Types.ObjectId;
|
|
40
|
-
minimumOrderValue: number;
|
|
41
40
|
marketing: string | import("mongoose").Types.ObjectId;
|
|
41
|
+
minimumOrderValue: number;
|
|
42
42
|
targetOrder: number;
|
|
43
43
|
couponValueType: ValueType;
|
|
44
44
|
couponValue: number;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config.builder.d.ts","sourceRoot":"/","sources":["modules/tournament/config/config.builder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,8BAA8B,EAAE,MAAM,qBAAqB,CAAC;AAErE,qBAAa,uBAAuB;IAChC,MAAM,CAAC,WAAW,CAAC,KAAK,EAAE,8BAA8B,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;CAUrF"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { mongoose } from '@typegoose/typegoose';
|
|
2
|
+
import { Tournament as Model } from '@lyxa.ai/core/dist/libraries/mongo/models';
|
|
3
|
+
export declare class TournamentConfigRepository {
|
|
4
|
+
private model;
|
|
5
|
+
constructor();
|
|
6
|
+
findActive(): Promise<Pick<Model, 'name' | 'tag' | 'startDate' | 'endDate'> | null>;
|
|
7
|
+
existsByTag(tag: string): Promise<boolean>;
|
|
8
|
+
create(input: object): Promise<Model>;
|
|
9
|
+
findById(id: mongoose.Types.ObjectId): Promise<Model | null>;
|
|
10
|
+
findAll(): Promise<Model[]>;
|
|
11
|
+
updateById(id: mongoose.Types.ObjectId, updates: object): Promise<Model | null>;
|
|
12
|
+
}
|
|
13
|
+
export declare const tournamentConfigRepository: TournamentConfigRepository;
|
|
14
|
+
//# sourceMappingURL=config.repository.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config.repository.d.ts","sourceRoot":"/","sources":["modules/tournament/config/config.repository.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EAAE,UAAU,IAAI,KAAK,EAAmB,MAAM,2CAA2C,CAAC;AAGjG,qBACa,0BAA0B;IACtC,OAAO,CAAC,KAAK,CAAyB;;IAMhC,UAAU,IAAI,OAAO,CAAC,IAAI,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,GAAG,WAAW,GAAG,SAAS,CAAC,GAAG,IAAI,CAAC;IAMnF,WAAW,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAI1C,MAAM,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,KAAK,CAAC;IAKrC,QAAQ,CAAC,EAAE,EAAE,QAAQ,CAAC,KAAK,CAAC,QAAQ,GAAG,OAAO,CAAC,KAAK,GAAG,IAAI,CAAC;IAI5D,OAAO,IAAI,OAAO,CAAC,KAAK,EAAE,CAAC;IAI3B,UAAU,CAAC,EAAE,EAAE,QAAQ,CAAC,KAAK,CAAC,QAAQ,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,KAAK,GAAG,IAAI,CAAC;CAIrF;AAED,eAAO,MAAM,0BAA0B,4BAA4C,CAAC"}
|
|
@@ -0,0 +1,251 @@
|
|
|
1
|
+
export declare const configRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
2
|
+
ctx: import("@lyxa.ai/core/dist/libraries/trpc/context").LyxaHTTPContext;
|
|
3
|
+
meta: object;
|
|
4
|
+
errorShape: {
|
|
5
|
+
message: string;
|
|
6
|
+
data: {
|
|
7
|
+
stack: undefined;
|
|
8
|
+
path: undefined;
|
|
9
|
+
code: import("@trpc/server").TRPC_ERROR_CODE_KEY;
|
|
10
|
+
httpStatus: number;
|
|
11
|
+
};
|
|
12
|
+
stack: undefined;
|
|
13
|
+
code: import("@trpc/server").TRPC_ERROR_CODE_NUMBER;
|
|
14
|
+
};
|
|
15
|
+
transformer: false;
|
|
16
|
+
}, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
|
|
17
|
+
create: import("@trpc/server").TRPCMutationProcedure<{
|
|
18
|
+
input: {
|
|
19
|
+
name: string;
|
|
20
|
+
startDate: string | Date;
|
|
21
|
+
endDate: string | Date;
|
|
22
|
+
tag: string;
|
|
23
|
+
status?: import("@lyxa.ai/core/dist/utilities/enum").Status | undefined;
|
|
24
|
+
reward?: {
|
|
25
|
+
type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.FREE_DELIVERY;
|
|
26
|
+
} | {
|
|
27
|
+
type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.COUPON;
|
|
28
|
+
couponNamePrefix: string;
|
|
29
|
+
percentage: number;
|
|
30
|
+
maxDiscountPerOrder?: number | null | undefined;
|
|
31
|
+
} | undefined;
|
|
32
|
+
};
|
|
33
|
+
output: {
|
|
34
|
+
message: string;
|
|
35
|
+
success: boolean;
|
|
36
|
+
data?: {
|
|
37
|
+
status: import("@lyxa.ai/core/dist/utilities/enum").Status;
|
|
38
|
+
name: string;
|
|
39
|
+
tag: string;
|
|
40
|
+
_id?: string | import("mongoose").Types.ObjectId | undefined;
|
|
41
|
+
createdAt?: Date | null | undefined;
|
|
42
|
+
startDate?: Date | null | undefined;
|
|
43
|
+
endDate?: Date | null | undefined;
|
|
44
|
+
updatedAt?: Date | null | undefined;
|
|
45
|
+
reward?: {
|
|
46
|
+
type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.FREE_DELIVERY;
|
|
47
|
+
} | {
|
|
48
|
+
type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.COUPON;
|
|
49
|
+
maxDiscountPerOrder?: number | null | undefined;
|
|
50
|
+
couponNamePrefix?: string | undefined;
|
|
51
|
+
percentage?: number | undefined;
|
|
52
|
+
} | undefined;
|
|
53
|
+
} | {
|
|
54
|
+
documents: {
|
|
55
|
+
status: import("@lyxa.ai/core/dist/utilities/enum").Status;
|
|
56
|
+
name: string;
|
|
57
|
+
tag: string;
|
|
58
|
+
_id?: string | import("mongoose").Types.ObjectId | undefined;
|
|
59
|
+
createdAt?: Date | null | undefined;
|
|
60
|
+
startDate?: Date | null | undefined;
|
|
61
|
+
endDate?: Date | null | undefined;
|
|
62
|
+
updatedAt?: Date | null | undefined;
|
|
63
|
+
reward?: {
|
|
64
|
+
type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.FREE_DELIVERY;
|
|
65
|
+
} | {
|
|
66
|
+
type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.COUPON;
|
|
67
|
+
maxDiscountPerOrder?: number | null | undefined;
|
|
68
|
+
couponNamePrefix?: string | undefined;
|
|
69
|
+
percentage?: number | undefined;
|
|
70
|
+
} | undefined;
|
|
71
|
+
}[];
|
|
72
|
+
metadata?: {
|
|
73
|
+
page: number;
|
|
74
|
+
size: number;
|
|
75
|
+
totalElements: number;
|
|
76
|
+
totalPages: number;
|
|
77
|
+
} | undefined;
|
|
78
|
+
} | undefined;
|
|
79
|
+
};
|
|
80
|
+
meta: object;
|
|
81
|
+
}>;
|
|
82
|
+
getAll: import("@trpc/server").TRPCQueryProcedure<{
|
|
83
|
+
input: void;
|
|
84
|
+
output: {
|
|
85
|
+
message: string;
|
|
86
|
+
success: boolean;
|
|
87
|
+
data?: {
|
|
88
|
+
status: import("@lyxa.ai/core/dist/utilities/enum").Status;
|
|
89
|
+
name: string;
|
|
90
|
+
tag: string;
|
|
91
|
+
_id?: string | import("mongoose").Types.ObjectId | undefined;
|
|
92
|
+
createdAt?: Date | null | undefined;
|
|
93
|
+
startDate?: Date | null | undefined;
|
|
94
|
+
endDate?: Date | null | undefined;
|
|
95
|
+
updatedAt?: Date | null | undefined;
|
|
96
|
+
reward?: {
|
|
97
|
+
type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.FREE_DELIVERY;
|
|
98
|
+
} | {
|
|
99
|
+
type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.COUPON;
|
|
100
|
+
maxDiscountPerOrder?: number | null | undefined;
|
|
101
|
+
percentage?: number | undefined;
|
|
102
|
+
} | undefined;
|
|
103
|
+
}[] | {
|
|
104
|
+
documents: {
|
|
105
|
+
status: import("@lyxa.ai/core/dist/utilities/enum").Status;
|
|
106
|
+
name: string;
|
|
107
|
+
tag: string;
|
|
108
|
+
_id?: string | import("mongoose").Types.ObjectId | undefined;
|
|
109
|
+
createdAt?: Date | null | undefined;
|
|
110
|
+
startDate?: Date | null | undefined;
|
|
111
|
+
endDate?: Date | null | undefined;
|
|
112
|
+
updatedAt?: Date | null | undefined;
|
|
113
|
+
reward?: {
|
|
114
|
+
type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.FREE_DELIVERY;
|
|
115
|
+
} | {
|
|
116
|
+
type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.COUPON;
|
|
117
|
+
maxDiscountPerOrder?: number | null | undefined;
|
|
118
|
+
percentage?: number | undefined;
|
|
119
|
+
} | undefined;
|
|
120
|
+
}[][];
|
|
121
|
+
metadata?: {
|
|
122
|
+
page: number;
|
|
123
|
+
size: number;
|
|
124
|
+
totalElements: number;
|
|
125
|
+
totalPages: number;
|
|
126
|
+
} | undefined;
|
|
127
|
+
} | undefined;
|
|
128
|
+
};
|
|
129
|
+
meta: object;
|
|
130
|
+
}>;
|
|
131
|
+
getById: import("@trpc/server").TRPCQueryProcedure<{
|
|
132
|
+
input: {
|
|
133
|
+
tournamentId: string | import("mongoose").Types.ObjectId;
|
|
134
|
+
};
|
|
135
|
+
output: {
|
|
136
|
+
message: string;
|
|
137
|
+
success: boolean;
|
|
138
|
+
data?: {
|
|
139
|
+
status: import("@lyxa.ai/core/dist/utilities/enum").Status;
|
|
140
|
+
name: string;
|
|
141
|
+
tag: string;
|
|
142
|
+
_id?: string | import("mongoose").Types.ObjectId | undefined;
|
|
143
|
+
createdAt?: Date | null | undefined;
|
|
144
|
+
startDate?: Date | null | undefined;
|
|
145
|
+
endDate?: Date | null | undefined;
|
|
146
|
+
updatedAt?: Date | null | undefined;
|
|
147
|
+
reward?: {
|
|
148
|
+
type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.FREE_DELIVERY;
|
|
149
|
+
} | {
|
|
150
|
+
type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.COUPON;
|
|
151
|
+
maxDiscountPerOrder?: number | null | undefined;
|
|
152
|
+
couponNamePrefix?: string | undefined;
|
|
153
|
+
percentage?: number | undefined;
|
|
154
|
+
} | undefined;
|
|
155
|
+
} | {
|
|
156
|
+
documents: {
|
|
157
|
+
status: import("@lyxa.ai/core/dist/utilities/enum").Status;
|
|
158
|
+
name: string;
|
|
159
|
+
tag: string;
|
|
160
|
+
_id?: string | import("mongoose").Types.ObjectId | undefined;
|
|
161
|
+
createdAt?: Date | null | undefined;
|
|
162
|
+
startDate?: Date | null | undefined;
|
|
163
|
+
endDate?: Date | null | undefined;
|
|
164
|
+
updatedAt?: Date | null | undefined;
|
|
165
|
+
reward?: {
|
|
166
|
+
type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.FREE_DELIVERY;
|
|
167
|
+
} | {
|
|
168
|
+
type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.COUPON;
|
|
169
|
+
maxDiscountPerOrder?: number | null | undefined;
|
|
170
|
+
couponNamePrefix?: string | undefined;
|
|
171
|
+
percentage?: number | undefined;
|
|
172
|
+
} | undefined;
|
|
173
|
+
}[];
|
|
174
|
+
metadata?: {
|
|
175
|
+
page: number;
|
|
176
|
+
size: number;
|
|
177
|
+
totalElements: number;
|
|
178
|
+
totalPages: number;
|
|
179
|
+
} | undefined;
|
|
180
|
+
} | undefined;
|
|
181
|
+
};
|
|
182
|
+
meta: object;
|
|
183
|
+
}>;
|
|
184
|
+
update: import("@trpc/server").TRPCMutationProcedure<{
|
|
185
|
+
input: {
|
|
186
|
+
_id: string | import("mongoose").Types.ObjectId;
|
|
187
|
+
status?: import("@lyxa.ai/core/dist/utilities/enum").Status | undefined;
|
|
188
|
+
name?: string | undefined;
|
|
189
|
+
startDate?: string | Date | undefined;
|
|
190
|
+
endDate?: string | Date | undefined;
|
|
191
|
+
tag?: string | undefined;
|
|
192
|
+
reward?: {
|
|
193
|
+
type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.FREE_DELIVERY;
|
|
194
|
+
} | {
|
|
195
|
+
type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.COUPON;
|
|
196
|
+
couponNamePrefix: string;
|
|
197
|
+
percentage: number;
|
|
198
|
+
maxDiscountPerOrder?: number | null | undefined;
|
|
199
|
+
} | undefined;
|
|
200
|
+
};
|
|
201
|
+
output: {
|
|
202
|
+
message: string;
|
|
203
|
+
success: boolean;
|
|
204
|
+
data?: {
|
|
205
|
+
status: import("@lyxa.ai/core/dist/utilities/enum").Status;
|
|
206
|
+
name: string;
|
|
207
|
+
tag: string;
|
|
208
|
+
_id?: string | import("mongoose").Types.ObjectId | undefined;
|
|
209
|
+
createdAt?: Date | null | undefined;
|
|
210
|
+
startDate?: Date | null | undefined;
|
|
211
|
+
endDate?: Date | null | undefined;
|
|
212
|
+
updatedAt?: Date | null | undefined;
|
|
213
|
+
reward?: {
|
|
214
|
+
type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.FREE_DELIVERY;
|
|
215
|
+
} | {
|
|
216
|
+
type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.COUPON;
|
|
217
|
+
maxDiscountPerOrder?: number | null | undefined;
|
|
218
|
+
couponNamePrefix?: string | undefined;
|
|
219
|
+
percentage?: number | undefined;
|
|
220
|
+
} | undefined;
|
|
221
|
+
} | {
|
|
222
|
+
documents: {
|
|
223
|
+
status: import("@lyxa.ai/core/dist/utilities/enum").Status;
|
|
224
|
+
name: string;
|
|
225
|
+
tag: string;
|
|
226
|
+
_id?: string | import("mongoose").Types.ObjectId | undefined;
|
|
227
|
+
createdAt?: Date | null | undefined;
|
|
228
|
+
startDate?: Date | null | undefined;
|
|
229
|
+
endDate?: Date | null | undefined;
|
|
230
|
+
updatedAt?: Date | null | undefined;
|
|
231
|
+
reward?: {
|
|
232
|
+
type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.FREE_DELIVERY;
|
|
233
|
+
} | {
|
|
234
|
+
type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.COUPON;
|
|
235
|
+
maxDiscountPerOrder?: number | null | undefined;
|
|
236
|
+
couponNamePrefix?: string | undefined;
|
|
237
|
+
percentage?: number | undefined;
|
|
238
|
+
} | undefined;
|
|
239
|
+
}[];
|
|
240
|
+
metadata?: {
|
|
241
|
+
page: number;
|
|
242
|
+
size: number;
|
|
243
|
+
totalElements: number;
|
|
244
|
+
totalPages: number;
|
|
245
|
+
} | undefined;
|
|
246
|
+
} | undefined;
|
|
247
|
+
};
|
|
248
|
+
meta: object;
|
|
249
|
+
}>;
|
|
250
|
+
}>>;
|
|
251
|
+
//# sourceMappingURL=config.router.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config.router.d.ts","sourceRoot":"/","sources":["modules/tournament/config/config.router.ts"],"names":[],"mappings":"AAeA,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCvB,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { mongoose } from '@typegoose/typegoose';
|
|
2
|
+
import { CreateTournamentConfigInputDTO, TournamentConfigListItemOutputDTO, TournamentConfigOutputDTO, UpdateTournamentConfigInputDTO } from './config.validation';
|
|
3
|
+
export declare class TournamentConfigService {
|
|
4
|
+
private repository;
|
|
5
|
+
constructor();
|
|
6
|
+
private ensureTagUnique;
|
|
7
|
+
private validateDates;
|
|
8
|
+
create(input: CreateTournamentConfigInputDTO): Promise<TournamentConfigOutputDTO>;
|
|
9
|
+
getAll(): Promise<TournamentConfigListItemOutputDTO[]>;
|
|
10
|
+
getById(id: mongoose.Types.ObjectId): Promise<TournamentConfigOutputDTO>;
|
|
11
|
+
update(input: UpdateTournamentConfigInputDTO): Promise<TournamentConfigOutputDTO>;
|
|
12
|
+
}
|
|
13
|
+
export declare const tournamentConfigService: TournamentConfigService;
|
|
14
|
+
//# sourceMappingURL=config.service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config.service.d.ts","sourceRoot":"/","sources":["modules/tournament/config/config.service.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,QAAQ,EAAC,MAAM,sBAAsB,CAAC;AAE9C,OAAO,EACH,8BAA8B,EAC9B,iCAAiC,EACjC,yBAAyB,EACzB,8BAA8B,EACjC,MAAM,qBAAqB,CAAC;AAI7B,qBACa,uBAAuB;IAChC,OAAO,CAAC,UAAU,CAA6B;;YAMjC,eAAe;IAO7B,OAAO,CAAC,aAAa;IAIR,MAAM,CAAC,KAAK,EAAE,8BAA8B,GAAG,OAAO,CAAC,yBAAyB,CAAC;IAKjF,MAAM,IAAI,OAAO,CAAC,iCAAiC,EAAE,CAAC;IAItD,OAAO,CAAC,EAAE,EAAE,QAAQ,CAAC,KAAK,CAAC,QAAQ,GAAG,OAAO,CAAC,yBAAyB,CAAC;IAMxE,MAAM,CAAC,KAAK,EAAE,8BAA8B,GAAG,OAAO,CAAC,yBAAyB,CAAC;CAejG;AAED,eAAO,MAAM,uBAAuB,yBAAyC,CAAC"}
|