@lyxa.ai/marketing 1.0.47 → 1.0.48
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib/event/event-initializations.d.ts.map +1 -1
- package/dist/lib/event/event-initializations.js +2 -0
- package/dist/lib/event/event-initializations.js.map +1 -1
- package/dist/lib/index.d.ts +1346 -7
- 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.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 +16 -10
- package/dist/lib/modules/coupon/services/global-coupon.service.js.map +1 -1
- package/dist/lib/modules/coupon/services/helper.service.d.ts +2 -1
- package/dist/lib/modules/coupon/services/helper.service.d.ts.map +1 -1
- package/dist/lib/modules/coupon/services/helper.service.js +7 -1
- package/dist/lib/modules/coupon/services/helper.service.js.map +1 -1
- package/dist/lib/modules/coupon/services/individual-store-coupon.service.d.ts +2 -0
- package/dist/lib/modules/coupon/services/individual-store-coupon.service.d.ts.map +1 -1
- package/dist/lib/modules/coupon/services/individual-store-coupon.service.js +2 -2
- package/dist/lib/modules/coupon/services/individual-store-coupon.service.js.map +1 -1
- package/dist/lib/modules/coupon/services/individual-user-coupon.service.d.ts.map +1 -1
- package/dist/lib/modules/coupon/services/individual-user-coupon.service.js +6 -0
- package/dist/lib/modules/coupon/services/individual-user-coupon.service.js.map +1 -1
- package/dist/lib/modules/coupon/services/patterns/repository/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 +21 -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/limited-time-offer.router.d.ts +6 -6
- package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.router.d.ts +6 -6
- package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.validation.d.ts +30 -30
- package/dist/lib/modules/marketing/services/marketing.service.d.ts.map +1 -1
- package/dist/lib/modules/marketing/services/marketing.service.js +8 -2
- package/dist/lib/modules/marketing/services/marketing.service.js.map +1 -1
- package/dist/lib/modules/marketing/services/synchronize-product-marketing.service.d.ts +2 -0
- package/dist/lib/modules/marketing/services/synchronize-product-marketing.service.d.ts.map +1 -1
- package/dist/lib/modules/marketing/services/synchronize-product-marketing.service.js +14 -0
- package/dist/lib/modules/marketing/services/synchronize-product-marketing.service.js.map +1 -1
- package/dist/lib/modules/marketing/validations/buy1-get1-marketing.validation.d.ts +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 +19 -0
- package/dist/lib/modules/tournament/config/config.builder.js.map +1 -0
- package/dist/lib/modules/tournament/config/config.repository.d.ts +13 -0
- package/dist/lib/modules/tournament/config/config.repository.d.ts.map +1 -0
- package/dist/lib/modules/tournament/config/config.repository.js +77 -0
- package/dist/lib/modules/tournament/config/config.repository.js.map +1 -0
- package/dist/lib/modules/tournament/config/config.router.d.ts +363 -0
- package/dist/lib/modules/tournament/config/config.router.d.ts.map +1 -0
- package/dist/lib/modules/tournament/config/config.router.js +40 -0
- package/dist/lib/modules/tournament/config/config.router.js.map +1 -0
- package/dist/lib/modules/tournament/config/config.service.d.ts +14 -0
- package/dist/lib/modules/tournament/config/config.service.d.ts.map +1 -0
- package/dist/lib/modules/tournament/config/config.service.js +101 -0
- package/dist/lib/modules/tournament/config/config.service.js.map +1 -0
- package/dist/lib/modules/tournament/config/config.validation.d.ts +1014 -0
- package/dist/lib/modules/tournament/config/config.validation.d.ts.map +1 -0
- package/dist/lib/modules/tournament/config/config.validation.js +70 -0
- package/dist/lib/modules/tournament/config/config.validation.js.map +1 -0
- package/dist/lib/modules/tournament/match/events/match-ended.consumer.d.ts +2 -0
- package/dist/lib/modules/tournament/match/events/match-ended.consumer.d.ts.map +1 -0
- package/dist/lib/modules/tournament/match/events/match-ended.consumer.js +15 -0
- package/dist/lib/modules/tournament/match/events/match-ended.consumer.js.map +1 -0
- package/dist/lib/modules/tournament/match/events/match-ended.event.d.ts +14 -0
- package/dist/lib/modules/tournament/match/events/match-ended.event.d.ts.map +1 -0
- package/dist/lib/modules/tournament/match/events/match-ended.event.js +12 -0
- package/dist/lib/modules/tournament/match/events/match-ended.event.js.map +1 -0
- package/dist/lib/modules/tournament/match/match.builder.d.ts +38 -0
- package/dist/lib/modules/tournament/match/match.builder.d.ts.map +1 -0
- package/dist/lib/modules/tournament/match/match.builder.js +37 -0
- package/dist/lib/modules/tournament/match/match.builder.js.map +1 -0
- package/dist/lib/modules/tournament/match/match.repository.d.ts +13 -0
- package/dist/lib/modules/tournament/match/match.repository.d.ts.map +1 -0
- package/dist/lib/modules/tournament/match/match.repository.js +84 -0
- package/dist/lib/modules/tournament/match/match.repository.js.map +1 -0
- package/dist/lib/modules/tournament/match/match.router.d.ts +489 -0
- package/dist/lib/modules/tournament/match/match.router.d.ts.map +1 -0
- package/dist/lib/modules/tournament/match/match.router.js +56 -0
- package/dist/lib/modules/tournament/match/match.router.js.map +1 -0
- package/dist/lib/modules/tournament/match/match.service.d.ts +29 -0
- package/dist/lib/modules/tournament/match/match.service.d.ts.map +1 -0
- package/dist/lib/modules/tournament/match/match.service.js +193 -0
- package/dist/lib/modules/tournament/match/match.service.js.map +1 -0
- package/dist/lib/modules/tournament/match/match.validation.d.ts +880 -0
- package/dist/lib/modules/tournament/match/match.validation.d.ts.map +1 -0
- package/dist/lib/modules/tournament/match/match.validation.js +74 -0
- package/dist/lib/modules/tournament/match/match.validation.js.map +1 -0
- package/dist/lib/modules/tournament/notification/jobs/notification.producer.d.ts +13 -0
- package/dist/lib/modules/tournament/notification/jobs/notification.producer.d.ts.map +1 -0
- package/dist/lib/modules/tournament/notification/jobs/notification.producer.js +28 -0
- package/dist/lib/modules/tournament/notification/jobs/notification.producer.js.map +1 -0
- package/dist/lib/modules/tournament/notification/jobs/notification.worker.d.ts +7 -0
- package/dist/lib/modules/tournament/notification/jobs/notification.worker.d.ts.map +1 -0
- package/dist/lib/modules/tournament/notification/jobs/notification.worker.js +76 -0
- package/dist/lib/modules/tournament/notification/jobs/notification.worker.js.map +1 -0
- package/dist/lib/modules/tournament/notification/notification.scheduler.service.d.ts +10 -0
- package/dist/lib/modules/tournament/notification/notification.scheduler.service.d.ts.map +1 -0
- package/dist/lib/modules/tournament/notification/notification.scheduler.service.js +86 -0
- package/dist/lib/modules/tournament/notification/notification.scheduler.service.js.map +1 -0
- package/dist/lib/modules/tournament/notification/notification.service.d.ts +11 -0
- package/dist/lib/modules/tournament/notification/notification.service.d.ts.map +1 -0
- package/dist/lib/modules/tournament/notification/notification.service.js +101 -0
- package/dist/lib/modules/tournament/notification/notification.service.js.map +1 -0
- package/dist/lib/modules/tournament/participant/participant.repository.d.ts +12 -0
- package/dist/lib/modules/tournament/participant/participant.repository.d.ts.map +1 -0
- package/dist/lib/modules/tournament/participant/participant.repository.js +73 -0
- package/dist/lib/modules/tournament/participant/participant.repository.js.map +1 -0
- package/dist/lib/modules/tournament/participant/participant.router.d.ts +104 -0
- package/dist/lib/modules/tournament/participant/participant.router.d.ts.map +1 -0
- package/dist/lib/modules/tournament/participant/participant.router.js +28 -0
- package/dist/lib/modules/tournament/participant/participant.router.js.map +1 -0
- package/dist/lib/modules/tournament/participant/participant.service.d.ts +14 -0
- package/dist/lib/modules/tournament/participant/participant.service.d.ts.map +1 -0
- package/dist/lib/modules/tournament/participant/participant.service.js +103 -0
- package/dist/lib/modules/tournament/participant/participant.service.js.map +1 -0
- package/dist/lib/modules/tournament/participant/participant.validation.d.ts +719 -0
- package/dist/lib/modules/tournament/participant/participant.validation.d.ts.map +1 -0
- package/dist/lib/modules/tournament/participant/participant.validation.js +44 -0
- package/dist/lib/modules/tournament/participant/participant.validation.js.map +1 -0
- package/dist/lib/modules/tournament/prediction/prediction.builder.d.ts +14 -0
- package/dist/lib/modules/tournament/prediction/prediction.builder.d.ts.map +1 -0
- package/dist/lib/modules/tournament/prediction/prediction.builder.js +23 -0
- package/dist/lib/modules/tournament/prediction/prediction.builder.js.map +1 -0
- package/dist/lib/modules/tournament/prediction/prediction.repository.d.ts +11 -0
- package/dist/lib/modules/tournament/prediction/prediction.repository.d.ts.map +1 -0
- package/dist/lib/modules/tournament/prediction/prediction.repository.js +73 -0
- package/dist/lib/modules/tournament/prediction/prediction.repository.js.map +1 -0
- package/dist/lib/modules/tournament/prediction/prediction.router.d.ts +133 -0
- package/dist/lib/modules/tournament/prediction/prediction.router.d.ts.map +1 -0
- package/dist/lib/modules/tournament/prediction/prediction.router.js +36 -0
- package/dist/lib/modules/tournament/prediction/prediction.router.js.map +1 -0
- package/dist/lib/modules/tournament/prediction/prediction.service.d.ts +17 -0
- package/dist/lib/modules/tournament/prediction/prediction.service.d.ts.map +1 -0
- package/dist/lib/modules/tournament/prediction/prediction.service.js +125 -0
- package/dist/lib/modules/tournament/prediction/prediction.service.js.map +1 -0
- package/dist/lib/modules/tournament/prediction/prediction.validation.d.ts +575 -0
- package/dist/lib/modules/tournament/prediction/prediction.validation.d.ts.map +1 -0
- package/dist/lib/modules/tournament/prediction/prediction.validation.js +46 -0
- package/dist/lib/modules/tournament/prediction/prediction.validation.js.map +1 -0
- package/dist/lib/modules/tournament/reward/handlers/coupon-reward.handler.d.ts +8 -0
- package/dist/lib/modules/tournament/reward/handlers/coupon-reward.handler.d.ts.map +1 -0
- package/dist/lib/modules/tournament/reward/handlers/coupon-reward.handler.js +65 -0
- package/dist/lib/modules/tournament/reward/handlers/coupon-reward.handler.js.map +1 -0
- package/dist/lib/modules/tournament/reward/reward.factory.d.ts +6 -0
- package/dist/lib/modules/tournament/reward/reward.factory.d.ts.map +1 -0
- package/dist/lib/modules/tournament/reward/reward.factory.js +21 -0
- package/dist/lib/modules/tournament/reward/reward.factory.js.map +1 -0
- package/dist/lib/modules/tournament/reward/reward.interface.d.ts +5 -0
- package/dist/lib/modules/tournament/reward/reward.interface.d.ts.map +1 -0
- package/dist/lib/modules/tournament/reward/reward.interface.js +3 -0
- package/dist/lib/modules/tournament/reward/reward.interface.js.map +1 -0
- package/dist/lib/modules/tournament/reward/reward.service.d.ts +6 -0
- package/dist/lib/modules/tournament/reward/reward.service.d.ts.map +1 -0
- package/dist/lib/modules/tournament/reward/reward.service.js +56 -0
- package/dist/lib/modules/tournament/reward/reward.service.js.map +1 -0
- package/dist/lib/modules/tournament/reward/reward.types.d.ts +11 -0
- package/dist/lib/modules/tournament/reward/reward.types.d.ts.map +1 -0
- package/dist/lib/modules/tournament/reward/reward.types.js +8 -0
- package/dist/lib/modules/tournament/reward/reward.types.js.map +1 -0
- package/dist/lib/modules/tournament/team/team.builder.d.ts +19 -0
- package/dist/lib/modules/tournament/team/team.builder.d.ts.map +1 -0
- package/dist/lib/modules/tournament/team/team.builder.js +18 -0
- package/dist/lib/modules/tournament/team/team.builder.js.map +1 -0
- package/dist/lib/modules/tournament/team/team.repository.d.ts +11 -0
- package/dist/lib/modules/tournament/team/team.repository.d.ts.map +1 -0
- package/dist/lib/modules/tournament/team/team.repository.js +71 -0
- package/dist/lib/modules/tournament/team/team.repository.js.map +1 -0
- package/dist/lib/modules/tournament/team/team.router.d.ts +237 -0
- package/dist/lib/modules/tournament/team/team.router.d.ts.map +1 -0
- package/dist/lib/modules/tournament/team/team.router.js +36 -0
- package/dist/lib/modules/tournament/team/team.router.js.map +1 -0
- package/dist/lib/modules/tournament/team/team.service.d.ts +15 -0
- package/dist/lib/modules/tournament/team/team.service.d.ts.map +1 -0
- package/dist/lib/modules/tournament/team/team.service.js +137 -0
- package/dist/lib/modules/tournament/team/team.service.js.map +1 -0
- package/dist/lib/modules/tournament/team/team.validation.d.ts +986 -0
- package/dist/lib/modules/tournament/team/team.validation.d.ts.map +1 -0
- package/dist/lib/modules/tournament/team/team.validation.js +55 -0
- package/dist/lib/modules/tournament/team/team.validation.js.map +1 -0
- package/dist/lib/modules/tournament/tournament.router.d.ts +1336 -0
- package/dist/lib/modules/tournament/tournament.router.d.ts.map +1 -0
- package/dist/lib/modules/tournament/tournament.router.js +17 -0
- package/dist/lib/modules/tournament/tournament.router.js.map +1 -0
- package/dist/types/event/event-initializations.d.ts.map +1 -1
- package/dist/types/events/event-initializations.d.ts +2 -0
- package/dist/types/events/event-initializations.d.ts.map +1 -0
- package/dist/types/index.d.ts +1346 -7
- 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/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/limited-time-offer.router.d.ts +6 -6
- package/dist/types/modules/limited-time-offer/participant/limited-time-offer-participant.router.d.ts +6 -6
- package/dist/types/modules/limited-time-offer/participant/limited-time-offer-participant.validation.d.ts +30 -30
- package/dist/types/modules/marketing/services/marketing.service.d.ts.map +1 -1
- package/dist/types/modules/marketing/services/synchronize-product-marketing.service.d.ts +2 -0
- package/dist/types/modules/marketing/services/synchronize-product-marketing.service.d.ts.map +1 -1
- package/dist/types/modules/marketing/validations/buy1-get1-marketing.validation.d.ts +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 +13 -0
- package/dist/types/modules/tournament/config/config.repository.d.ts.map +1 -0
- package/dist/types/modules/tournament/config/config.router.d.ts +363 -0
- package/dist/types/modules/tournament/config/config.router.d.ts.map +1 -0
- package/dist/types/modules/tournament/config/config.service.d.ts +14 -0
- package/dist/types/modules/tournament/config/config.service.d.ts.map +1 -0
- package/dist/types/modules/tournament/config/config.validation.d.ts +1014 -0
- package/dist/types/modules/tournament/config/config.validation.d.ts.map +1 -0
- package/dist/types/modules/tournament/config/tournament-config.validation.d.ts +201 -0
- package/dist/types/modules/tournament/config/tournament-config.validation.d.ts.map +1 -0
- package/dist/types/modules/tournament/match/events/match-ended.consumer.d.ts +2 -0
- package/dist/types/modules/tournament/match/events/match-ended.consumer.d.ts.map +1 -0
- package/dist/types/modules/tournament/match/events/match-ended.event.d.ts +14 -0
- package/dist/types/modules/tournament/match/events/match-ended.event.d.ts.map +1 -0
- package/dist/types/modules/tournament/match/match.builder.d.ts +38 -0
- package/dist/types/modules/tournament/match/match.builder.d.ts.map +1 -0
- package/dist/types/modules/tournament/match/match.repository.d.ts +13 -0
- package/dist/types/modules/tournament/match/match.repository.d.ts.map +1 -0
- package/dist/types/modules/tournament/match/match.router.d.ts +489 -0
- package/dist/types/modules/tournament/match/match.router.d.ts.map +1 -0
- package/dist/types/modules/tournament/match/match.service.d.ts +29 -0
- package/dist/types/modules/tournament/match/match.service.d.ts.map +1 -0
- package/dist/types/modules/tournament/match/match.validation.d.ts +880 -0
- package/dist/types/modules/tournament/match/match.validation.d.ts.map +1 -0
- package/dist/types/modules/tournament/notification/jobs/notification.producer.d.ts +13 -0
- package/dist/types/modules/tournament/notification/jobs/notification.producer.d.ts.map +1 -0
- package/dist/types/modules/tournament/notification/jobs/notification.worker.d.ts +7 -0
- package/dist/types/modules/tournament/notification/jobs/notification.worker.d.ts.map +1 -0
- package/dist/types/modules/tournament/notification/notification.scheduler.service.d.ts +10 -0
- package/dist/types/modules/tournament/notification/notification.scheduler.service.d.ts.map +1 -0
- package/dist/types/modules/tournament/notification/notification.service.d.ts +11 -0
- package/dist/types/modules/tournament/notification/notification.service.d.ts.map +1 -0
- package/dist/types/modules/tournament/participant/participant.repository.d.ts +12 -0
- package/dist/types/modules/tournament/participant/participant.repository.d.ts.map +1 -0
- package/dist/types/modules/tournament/participant/participant.router.d.ts +104 -0
- package/dist/types/modules/tournament/participant/participant.router.d.ts.map +1 -0
- package/dist/types/modules/tournament/participant/participant.service.d.ts +14 -0
- package/dist/types/modules/tournament/participant/participant.service.d.ts.map +1 -0
- package/dist/types/modules/tournament/participant/participant.validation.d.ts +719 -0
- package/dist/types/modules/tournament/participant/participant.validation.d.ts.map +1 -0
- package/dist/types/modules/tournament/prediction/prediction.builder.d.ts +14 -0
- package/dist/types/modules/tournament/prediction/prediction.builder.d.ts.map +1 -0
- package/dist/types/modules/tournament/prediction/prediction.repository.d.ts +11 -0
- package/dist/types/modules/tournament/prediction/prediction.repository.d.ts.map +1 -0
- package/dist/types/modules/tournament/prediction/prediction.router.d.ts +133 -0
- package/dist/types/modules/tournament/prediction/prediction.router.d.ts.map +1 -0
- package/dist/types/modules/tournament/prediction/prediction.service.d.ts +17 -0
- package/dist/types/modules/tournament/prediction/prediction.service.d.ts.map +1 -0
- package/dist/types/modules/tournament/prediction/prediction.validation.d.ts +575 -0
- package/dist/types/modules/tournament/prediction/prediction.validation.d.ts.map +1 -0
- package/dist/types/modules/tournament/reward/handlers/coupon-reward.handler.d.ts +8 -0
- package/dist/types/modules/tournament/reward/handlers/coupon-reward.handler.d.ts.map +1 -0
- package/dist/types/modules/tournament/reward/reward.factory.d.ts +6 -0
- package/dist/types/modules/tournament/reward/reward.factory.d.ts.map +1 -0
- package/dist/types/modules/tournament/reward/reward.interface.d.ts +5 -0
- package/dist/types/modules/tournament/reward/reward.interface.d.ts.map +1 -0
- package/dist/types/modules/tournament/reward/reward.service.d.ts +6 -0
- package/dist/types/modules/tournament/reward/reward.service.d.ts.map +1 -0
- package/dist/types/modules/tournament/reward/reward.types.d.ts +11 -0
- package/dist/types/modules/tournament/reward/reward.types.d.ts.map +1 -0
- package/dist/types/modules/tournament/team/team.builder.d.ts +19 -0
- package/dist/types/modules/tournament/team/team.builder.d.ts.map +1 -0
- package/dist/types/modules/tournament/team/team.repository.d.ts +11 -0
- package/dist/types/modules/tournament/team/team.repository.d.ts.map +1 -0
- package/dist/types/modules/tournament/team/team.router.d.ts +237 -0
- package/dist/types/modules/tournament/team/team.router.d.ts.map +1 -0
- package/dist/types/modules/tournament/team/team.service.d.ts +15 -0
- package/dist/types/modules/tournament/team/team.service.d.ts.map +1 -0
- package/dist/types/modules/tournament/team/team.validation.d.ts +986 -0
- package/dist/types/modules/tournament/team/team.validation.d.ts.map +1 -0
- package/dist/types/modules/tournament/tournament.router.d.ts +1336 -0
- package/dist/types/modules/tournament/tournament.router.d.ts.map +1 -0
- package/package.json +3 -3
- package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.service.d.ts +0 -1
- package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.service.d.ts.map +0 -1
- package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.service.js +0 -2
- package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.service.js.map +0 -1
|
@@ -62,6 +62,11 @@ declare const DiscountMarketingValidationSchema: z.ZodObject<{
|
|
|
62
62
|
isSpendLimitEnabled: boolean;
|
|
63
63
|
shop: import("mongoose").Types.ObjectId;
|
|
64
64
|
categories: import("mongoose").Types.ObjectId[];
|
|
65
|
+
isAppliedByCompany: boolean;
|
|
66
|
+
isEntireMenu: boolean;
|
|
67
|
+
isMaxDiscountPerOrderEnabled: boolean;
|
|
68
|
+
maxDiscountPerOrder: number;
|
|
69
|
+
pausedAt: Date | null;
|
|
65
70
|
products: {
|
|
66
71
|
product: import("mongoose").Types.ObjectId;
|
|
67
72
|
value?: number | undefined;
|
|
@@ -71,13 +76,8 @@ declare const DiscountMarketingValidationSchema: z.ZodObject<{
|
|
|
71
76
|
isBuy1Get1?: boolean | undefined;
|
|
72
77
|
}[];
|
|
73
78
|
marketingType: MarketingType.DISCOUNT;
|
|
74
|
-
isAppliedByCompany: boolean;
|
|
75
|
-
pausedAt: Date | null;
|
|
76
|
-
isEntireMenu: boolean;
|
|
77
79
|
excludeProducts: import("mongoose").Types.ObjectId[];
|
|
78
80
|
isOnlyForSubscriber: boolean;
|
|
79
|
-
maxDiscountPerOrder: number;
|
|
80
|
-
isMaxDiscountPerOrderEnabled: boolean;
|
|
81
81
|
value?: number | undefined;
|
|
82
82
|
valueType?: ValueType | undefined;
|
|
83
83
|
admin?: import("mongoose").Types.ObjectId | null | undefined;
|
|
@@ -89,8 +89,8 @@ declare const DiscountMarketingValidationSchema: z.ZodObject<{
|
|
|
89
89
|
end?: string | Date | undefined;
|
|
90
90
|
};
|
|
91
91
|
shop: string | import("mongoose").Types.ObjectId;
|
|
92
|
-
marketingType: MarketingType.DISCOUNT;
|
|
93
92
|
isAppliedByCompany: boolean;
|
|
93
|
+
marketingType: MarketingType.DISCOUNT;
|
|
94
94
|
value?: number | undefined;
|
|
95
95
|
status?: import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus | undefined;
|
|
96
96
|
valueType?: ValueType | undefined;
|
|
@@ -98,6 +98,10 @@ declare const DiscountMarketingValidationSchema: z.ZodObject<{
|
|
|
98
98
|
isSpendLimitEnabled?: boolean | undefined;
|
|
99
99
|
categories?: (string | import("mongoose").Types.ObjectId)[] | undefined;
|
|
100
100
|
admin?: string | import("mongoose").Types.ObjectId | null | undefined;
|
|
101
|
+
isEntireMenu?: boolean | undefined;
|
|
102
|
+
isMaxDiscountPerOrderEnabled?: boolean | undefined;
|
|
103
|
+
maxDiscountPerOrder?: number | undefined;
|
|
104
|
+
pausedAt?: string | Date | null | undefined;
|
|
101
105
|
products?: {
|
|
102
106
|
product: string | import("mongoose").Types.ObjectId;
|
|
103
107
|
value?: number | undefined;
|
|
@@ -106,14 +110,10 @@ declare const DiscountMarketingValidationSchema: z.ZodObject<{
|
|
|
106
110
|
marketing?: string | import("mongoose").Types.ObjectId | undefined;
|
|
107
111
|
isBuy1Get1?: boolean | undefined;
|
|
108
112
|
}[] | undefined;
|
|
109
|
-
pausedAt?: string | Date | null | undefined;
|
|
110
|
-
isEntireMenu?: boolean | undefined;
|
|
111
113
|
categoryValue?: number | undefined;
|
|
112
114
|
categoryValueType?: ValueType | undefined;
|
|
113
115
|
excludeProducts?: (string | import("mongoose").Types.ObjectId)[] | undefined;
|
|
114
116
|
isOnlyForSubscriber?: boolean | undefined;
|
|
115
|
-
maxDiscountPerOrder?: number | undefined;
|
|
116
|
-
isMaxDiscountPerOrderEnabled?: boolean | undefined;
|
|
117
117
|
}>, DiscountMarketingSchema: z.ZodObject<{
|
|
118
118
|
marketingType: z.ZodOptional<z.ZodLiteral<MarketingType.DISCOUNT>>;
|
|
119
119
|
categoryValueType: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ValueType>>>;
|
|
@@ -332,6 +332,11 @@ declare const DiscountMarketingValidationSchemaRefined: z.ZodEffects<z.ZodObject
|
|
|
332
332
|
isSpendLimitEnabled: boolean;
|
|
333
333
|
shop: import("mongoose").Types.ObjectId;
|
|
334
334
|
categories: import("mongoose").Types.ObjectId[];
|
|
335
|
+
isAppliedByCompany: boolean;
|
|
336
|
+
isEntireMenu: boolean;
|
|
337
|
+
isMaxDiscountPerOrderEnabled: boolean;
|
|
338
|
+
maxDiscountPerOrder: number;
|
|
339
|
+
pausedAt: Date | null;
|
|
335
340
|
products: {
|
|
336
341
|
product: import("mongoose").Types.ObjectId;
|
|
337
342
|
value?: number | undefined;
|
|
@@ -341,13 +346,8 @@ declare const DiscountMarketingValidationSchemaRefined: z.ZodEffects<z.ZodObject
|
|
|
341
346
|
isBuy1Get1?: boolean | undefined;
|
|
342
347
|
}[];
|
|
343
348
|
marketingType: MarketingType.DISCOUNT;
|
|
344
|
-
isAppliedByCompany: boolean;
|
|
345
|
-
pausedAt: Date | null;
|
|
346
|
-
isEntireMenu: boolean;
|
|
347
349
|
excludeProducts: import("mongoose").Types.ObjectId[];
|
|
348
350
|
isOnlyForSubscriber: boolean;
|
|
349
|
-
maxDiscountPerOrder: number;
|
|
350
|
-
isMaxDiscountPerOrderEnabled: boolean;
|
|
351
351
|
value?: number | undefined;
|
|
352
352
|
valueType?: ValueType | undefined;
|
|
353
353
|
admin?: import("mongoose").Types.ObjectId | null | undefined;
|
|
@@ -359,8 +359,8 @@ declare const DiscountMarketingValidationSchemaRefined: z.ZodEffects<z.ZodObject
|
|
|
359
359
|
end?: string | Date | undefined;
|
|
360
360
|
};
|
|
361
361
|
shop: string | import("mongoose").Types.ObjectId;
|
|
362
|
-
marketingType: MarketingType.DISCOUNT;
|
|
363
362
|
isAppliedByCompany: boolean;
|
|
363
|
+
marketingType: MarketingType.DISCOUNT;
|
|
364
364
|
value?: number | undefined;
|
|
365
365
|
status?: import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus | undefined;
|
|
366
366
|
valueType?: ValueType | undefined;
|
|
@@ -368,6 +368,10 @@ declare const DiscountMarketingValidationSchemaRefined: z.ZodEffects<z.ZodObject
|
|
|
368
368
|
isSpendLimitEnabled?: boolean | undefined;
|
|
369
369
|
categories?: (string | import("mongoose").Types.ObjectId)[] | undefined;
|
|
370
370
|
admin?: string | import("mongoose").Types.ObjectId | null | undefined;
|
|
371
|
+
isEntireMenu?: boolean | undefined;
|
|
372
|
+
isMaxDiscountPerOrderEnabled?: boolean | undefined;
|
|
373
|
+
maxDiscountPerOrder?: number | undefined;
|
|
374
|
+
pausedAt?: string | Date | null | undefined;
|
|
371
375
|
products?: {
|
|
372
376
|
product: string | import("mongoose").Types.ObjectId;
|
|
373
377
|
value?: number | undefined;
|
|
@@ -376,14 +380,10 @@ declare const DiscountMarketingValidationSchemaRefined: z.ZodEffects<z.ZodObject
|
|
|
376
380
|
marketing?: string | import("mongoose").Types.ObjectId | undefined;
|
|
377
381
|
isBuy1Get1?: boolean | undefined;
|
|
378
382
|
}[] | undefined;
|
|
379
|
-
pausedAt?: string | Date | null | undefined;
|
|
380
|
-
isEntireMenu?: boolean | undefined;
|
|
381
383
|
categoryValue?: number | undefined;
|
|
382
384
|
categoryValueType?: ValueType | undefined;
|
|
383
385
|
excludeProducts?: (string | import("mongoose").Types.ObjectId)[] | undefined;
|
|
384
386
|
isOnlyForSubscriber?: boolean | undefined;
|
|
385
|
-
maxDiscountPerOrder?: number | undefined;
|
|
386
|
-
isMaxDiscountPerOrderEnabled?: boolean | undefined;
|
|
387
387
|
}>, {
|
|
388
388
|
status: import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus;
|
|
389
389
|
duration: {
|
|
@@ -394,6 +394,11 @@ declare const DiscountMarketingValidationSchemaRefined: z.ZodEffects<z.ZodObject
|
|
|
394
394
|
isSpendLimitEnabled: boolean;
|
|
395
395
|
shop: import("mongoose").Types.ObjectId;
|
|
396
396
|
categories: import("mongoose").Types.ObjectId[];
|
|
397
|
+
isAppliedByCompany: boolean;
|
|
398
|
+
isEntireMenu: boolean;
|
|
399
|
+
isMaxDiscountPerOrderEnabled: boolean;
|
|
400
|
+
maxDiscountPerOrder: number;
|
|
401
|
+
pausedAt: Date | null;
|
|
397
402
|
products: {
|
|
398
403
|
product: import("mongoose").Types.ObjectId;
|
|
399
404
|
value?: number | undefined;
|
|
@@ -403,13 +408,8 @@ declare const DiscountMarketingValidationSchemaRefined: z.ZodEffects<z.ZodObject
|
|
|
403
408
|
isBuy1Get1?: boolean | undefined;
|
|
404
409
|
}[];
|
|
405
410
|
marketingType: MarketingType.DISCOUNT;
|
|
406
|
-
isAppliedByCompany: boolean;
|
|
407
|
-
pausedAt: Date | null;
|
|
408
|
-
isEntireMenu: boolean;
|
|
409
411
|
excludeProducts: import("mongoose").Types.ObjectId[];
|
|
410
412
|
isOnlyForSubscriber: boolean;
|
|
411
|
-
maxDiscountPerOrder: number;
|
|
412
|
-
isMaxDiscountPerOrderEnabled: boolean;
|
|
413
413
|
value?: number | undefined;
|
|
414
414
|
valueType?: ValueType | undefined;
|
|
415
415
|
admin?: import("mongoose").Types.ObjectId | null | undefined;
|
|
@@ -421,8 +421,8 @@ declare const DiscountMarketingValidationSchemaRefined: z.ZodEffects<z.ZodObject
|
|
|
421
421
|
end?: string | Date | undefined;
|
|
422
422
|
};
|
|
423
423
|
shop: string | import("mongoose").Types.ObjectId;
|
|
424
|
-
marketingType: MarketingType.DISCOUNT;
|
|
425
424
|
isAppliedByCompany: boolean;
|
|
425
|
+
marketingType: MarketingType.DISCOUNT;
|
|
426
426
|
value?: number | undefined;
|
|
427
427
|
status?: import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus | undefined;
|
|
428
428
|
valueType?: ValueType | undefined;
|
|
@@ -430,6 +430,10 @@ declare const DiscountMarketingValidationSchemaRefined: z.ZodEffects<z.ZodObject
|
|
|
430
430
|
isSpendLimitEnabled?: boolean | undefined;
|
|
431
431
|
categories?: (string | import("mongoose").Types.ObjectId)[] | undefined;
|
|
432
432
|
admin?: string | import("mongoose").Types.ObjectId | null | undefined;
|
|
433
|
+
isEntireMenu?: boolean | undefined;
|
|
434
|
+
isMaxDiscountPerOrderEnabled?: boolean | undefined;
|
|
435
|
+
maxDiscountPerOrder?: number | undefined;
|
|
436
|
+
pausedAt?: string | Date | null | undefined;
|
|
433
437
|
products?: {
|
|
434
438
|
product: string | import("mongoose").Types.ObjectId;
|
|
435
439
|
value?: number | undefined;
|
|
@@ -438,14 +442,10 @@ declare const DiscountMarketingValidationSchemaRefined: z.ZodEffects<z.ZodObject
|
|
|
438
442
|
marketing?: string | import("mongoose").Types.ObjectId | undefined;
|
|
439
443
|
isBuy1Get1?: boolean | undefined;
|
|
440
444
|
}[] | undefined;
|
|
441
|
-
pausedAt?: string | Date | null | undefined;
|
|
442
|
-
isEntireMenu?: boolean | undefined;
|
|
443
445
|
categoryValue?: number | undefined;
|
|
444
446
|
categoryValueType?: ValueType | undefined;
|
|
445
447
|
excludeProducts?: (string | import("mongoose").Types.ObjectId)[] | undefined;
|
|
446
448
|
isOnlyForSubscriber?: boolean | undefined;
|
|
447
|
-
maxDiscountPerOrder?: number | undefined;
|
|
448
|
-
isMaxDiscountPerOrderEnabled?: boolean | undefined;
|
|
449
449
|
}>;
|
|
450
450
|
declare const UpdateDiscountMarketingSchema: z.ZodEffects<z.ZodObject<{
|
|
451
451
|
[x: string]: z.ZodOptional<z.ZodTypeAny>;
|
|
@@ -26,9 +26,9 @@ declare const FeaturedMarketingValidationSchema: z.ZodObject<{
|
|
|
26
26
|
end?: Date | undefined;
|
|
27
27
|
};
|
|
28
28
|
shop: import("mongoose").Types.ObjectId;
|
|
29
|
-
marketingType: MarketingType.FEATURED;
|
|
30
29
|
isAppliedByCompany: boolean;
|
|
31
30
|
pausedAt: Date | null;
|
|
31
|
+
marketingType: MarketingType.FEATURED;
|
|
32
32
|
amount: number;
|
|
33
33
|
admin?: import("mongoose").Types.ObjectId | null | undefined;
|
|
34
34
|
}, {
|
|
@@ -37,8 +37,8 @@ declare const FeaturedMarketingValidationSchema: z.ZodObject<{
|
|
|
37
37
|
end?: string | Date | undefined;
|
|
38
38
|
};
|
|
39
39
|
shop: string | import("mongoose").Types.ObjectId;
|
|
40
|
-
marketingType: MarketingType.FEATURED;
|
|
41
40
|
isAppliedByCompany: boolean;
|
|
41
|
+
marketingType: MarketingType.FEATURED;
|
|
42
42
|
amount: number;
|
|
43
43
|
status?: import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus | undefined;
|
|
44
44
|
admin?: string | import("mongoose").Types.ObjectId | null | undefined;
|
|
@@ -189,9 +189,9 @@ declare const FeaturedMarketingValidationSchemaRefined: z.ZodEffects<z.ZodObject
|
|
|
189
189
|
end?: Date | undefined;
|
|
190
190
|
};
|
|
191
191
|
shop: import("mongoose").Types.ObjectId;
|
|
192
|
-
marketingType: MarketingType.FEATURED;
|
|
193
192
|
isAppliedByCompany: boolean;
|
|
194
193
|
pausedAt: Date | null;
|
|
194
|
+
marketingType: MarketingType.FEATURED;
|
|
195
195
|
amount: number;
|
|
196
196
|
admin?: import("mongoose").Types.ObjectId | null | undefined;
|
|
197
197
|
}, {
|
|
@@ -200,8 +200,8 @@ declare const FeaturedMarketingValidationSchemaRefined: z.ZodEffects<z.ZodObject
|
|
|
200
200
|
end?: string | Date | undefined;
|
|
201
201
|
};
|
|
202
202
|
shop: string | import("mongoose").Types.ObjectId;
|
|
203
|
-
marketingType: MarketingType.FEATURED;
|
|
204
203
|
isAppliedByCompany: boolean;
|
|
204
|
+
marketingType: MarketingType.FEATURED;
|
|
205
205
|
amount: number;
|
|
206
206
|
status?: import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus | undefined;
|
|
207
207
|
admin?: string | import("mongoose").Types.ObjectId | null | undefined;
|
|
@@ -213,9 +213,9 @@ declare const FeaturedMarketingValidationSchemaRefined: z.ZodEffects<z.ZodObject
|
|
|
213
213
|
end?: Date | undefined;
|
|
214
214
|
};
|
|
215
215
|
shop: import("mongoose").Types.ObjectId;
|
|
216
|
-
marketingType: MarketingType.FEATURED;
|
|
217
216
|
isAppliedByCompany: boolean;
|
|
218
217
|
pausedAt: Date | null;
|
|
218
|
+
marketingType: MarketingType.FEATURED;
|
|
219
219
|
amount: number;
|
|
220
220
|
admin?: import("mongoose").Types.ObjectId | null | undefined;
|
|
221
221
|
}, {
|
|
@@ -224,8 +224,8 @@ declare const FeaturedMarketingValidationSchemaRefined: z.ZodEffects<z.ZodObject
|
|
|
224
224
|
end?: string | Date | undefined;
|
|
225
225
|
};
|
|
226
226
|
shop: string | import("mongoose").Types.ObjectId;
|
|
227
|
-
marketingType: MarketingType.FEATURED;
|
|
228
227
|
isAppliedByCompany: boolean;
|
|
228
|
+
marketingType: MarketingType.FEATURED;
|
|
229
229
|
amount: number;
|
|
230
230
|
status?: import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus | undefined;
|
|
231
231
|
admin?: string | import("mongoose").Types.ObjectId | null | undefined;
|
|
@@ -90,9 +90,9 @@ declare const FreeDeliveryMarketingValidationSchema: z.ZodEffects<z.ZodObject<{
|
|
|
90
90
|
spendLimit: number;
|
|
91
91
|
isSpendLimitEnabled: boolean;
|
|
92
92
|
shop: import("mongoose").Types.ObjectId;
|
|
93
|
-
marketingType: MarketingType.FREE_DELIVERY;
|
|
94
93
|
isAppliedByCompany: boolean;
|
|
95
94
|
pausedAt: Date | null;
|
|
95
|
+
marketingType: MarketingType.FREE_DELIVERY;
|
|
96
96
|
admin?: import("mongoose").Types.ObjectId | null | undefined;
|
|
97
97
|
}, {
|
|
98
98
|
duration: {
|
|
@@ -100,8 +100,8 @@ declare const FreeDeliveryMarketingValidationSchema: z.ZodEffects<z.ZodObject<{
|
|
|
100
100
|
end?: string | Date | undefined;
|
|
101
101
|
};
|
|
102
102
|
shop: string | import("mongoose").Types.ObjectId;
|
|
103
|
-
marketingType: MarketingType.FREE_DELIVERY;
|
|
104
103
|
isAppliedByCompany: boolean;
|
|
104
|
+
marketingType: MarketingType.FREE_DELIVERY;
|
|
105
105
|
status?: import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus | undefined;
|
|
106
106
|
spendLimit?: number | undefined;
|
|
107
107
|
isSpendLimitEnabled?: boolean | undefined;
|
|
@@ -116,9 +116,9 @@ declare const FreeDeliveryMarketingValidationSchema: z.ZodEffects<z.ZodObject<{
|
|
|
116
116
|
spendLimit: number;
|
|
117
117
|
isSpendLimitEnabled: boolean;
|
|
118
118
|
shop: import("mongoose").Types.ObjectId;
|
|
119
|
-
marketingType: MarketingType.FREE_DELIVERY;
|
|
120
119
|
isAppliedByCompany: boolean;
|
|
121
120
|
pausedAt: Date | null;
|
|
121
|
+
marketingType: MarketingType.FREE_DELIVERY;
|
|
122
122
|
admin?: import("mongoose").Types.ObjectId | null | undefined;
|
|
123
123
|
}, {
|
|
124
124
|
duration: {
|
|
@@ -126,8 +126,8 @@ declare const FreeDeliveryMarketingValidationSchema: z.ZodEffects<z.ZodObject<{
|
|
|
126
126
|
end?: string | Date | undefined;
|
|
127
127
|
};
|
|
128
128
|
shop: string | import("mongoose").Types.ObjectId;
|
|
129
|
-
marketingType: MarketingType.FREE_DELIVERY;
|
|
130
129
|
isAppliedByCompany: boolean;
|
|
130
|
+
marketingType: MarketingType.FREE_DELIVERY;
|
|
131
131
|
status?: import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus | undefined;
|
|
132
132
|
spendLimit?: number | undefined;
|
|
133
133
|
isSpendLimitEnabled?: boolean | undefined;
|
|
@@ -43,9 +43,9 @@ declare const MarketingValidationSchema: z.ZodObject<{
|
|
|
43
43
|
end?: Date | undefined;
|
|
44
44
|
};
|
|
45
45
|
shop: import("mongoose").Types.ObjectId;
|
|
46
|
-
marketingType: MarketingType;
|
|
47
46
|
isAppliedByCompany: boolean;
|
|
48
47
|
pausedAt: Date | null;
|
|
48
|
+
marketingType: MarketingType;
|
|
49
49
|
admin?: import("mongoose").Types.ObjectId | null | undefined;
|
|
50
50
|
}, {
|
|
51
51
|
duration: {
|
|
@@ -53,8 +53,8 @@ declare const MarketingValidationSchema: z.ZodObject<{
|
|
|
53
53
|
end?: string | Date | undefined;
|
|
54
54
|
};
|
|
55
55
|
shop: string | import("mongoose").Types.ObjectId;
|
|
56
|
-
marketingType: MarketingType;
|
|
57
56
|
isAppliedByCompany: boolean;
|
|
57
|
+
marketingType: MarketingType;
|
|
58
58
|
status?: MarketingStatus | undefined;
|
|
59
59
|
admin?: string | import("mongoose").Types.ObjectId | null | undefined;
|
|
60
60
|
pausedAt?: string | Date | null | undefined;
|
|
@@ -186,14 +186,14 @@ export declare const BatchCreateProductMarketingsInputSchema: z.ZodObject<{
|
|
|
186
186
|
}, "strip", z.ZodTypeAny, {
|
|
187
187
|
shop: import("mongoose").Types.ObjectId;
|
|
188
188
|
categories: import("mongoose").Types.ObjectId[];
|
|
189
|
+
isEntireMenu: boolean;
|
|
189
190
|
products: {
|
|
190
191
|
product: import("mongoose").Types.ObjectId;
|
|
191
192
|
value?: number | undefined;
|
|
192
193
|
valueType?: ValueType | null | undefined;
|
|
193
194
|
}[];
|
|
194
|
-
marketingId: import("mongoose").Types.ObjectId;
|
|
195
195
|
isBuy1Get1: boolean;
|
|
196
|
-
|
|
196
|
+
marketingId: import("mongoose").Types.ObjectId;
|
|
197
197
|
value?: number | undefined;
|
|
198
198
|
valueType?: ValueType | undefined;
|
|
199
199
|
isAppliedByCompany?: boolean | undefined;
|
|
@@ -201,18 +201,18 @@ export declare const BatchCreateProductMarketingsInputSchema: z.ZodObject<{
|
|
|
201
201
|
categoryValueType?: ValueType | undefined;
|
|
202
202
|
}, {
|
|
203
203
|
shop: string | import("mongoose").Types.ObjectId;
|
|
204
|
-
marketingId: string | import("mongoose").Types.ObjectId;
|
|
205
|
-
isBuy1Get1: boolean;
|
|
206
204
|
isEntireMenu: boolean;
|
|
205
|
+
isBuy1Get1: boolean;
|
|
206
|
+
marketingId: string | import("mongoose").Types.ObjectId;
|
|
207
207
|
value?: number | undefined;
|
|
208
208
|
valueType?: ValueType | undefined;
|
|
209
209
|
categories?: (string | import("mongoose").Types.ObjectId)[] | undefined;
|
|
210
|
+
isAppliedByCompany?: boolean | undefined;
|
|
210
211
|
products?: {
|
|
211
212
|
product: string | import("mongoose").Types.ObjectId;
|
|
212
213
|
value?: number | undefined;
|
|
213
214
|
valueType?: ValueType | null | undefined;
|
|
214
215
|
}[] | undefined;
|
|
215
|
-
isAppliedByCompany?: boolean | undefined;
|
|
216
216
|
categoryValue?: number | undefined;
|
|
217
217
|
categoryValueType?: ValueType | undefined;
|
|
218
218
|
}>;
|
|
@@ -104,9 +104,9 @@ declare const PunchMarketingValidationSchema: z.ZodEffects<z.ZodObject<{
|
|
|
104
104
|
end?: Date | undefined;
|
|
105
105
|
};
|
|
106
106
|
shop: import("mongoose").Types.ObjectId;
|
|
107
|
-
marketingType: MarketingType.PUNCH_MARKETING;
|
|
108
107
|
isAppliedByCompany: boolean;
|
|
109
108
|
pausedAt: Date | null;
|
|
109
|
+
marketingType: MarketingType.PUNCH_MARKETING;
|
|
110
110
|
minimumOrderValue: number;
|
|
111
111
|
couponValueType: ValueType;
|
|
112
112
|
couponValue: number;
|
|
@@ -120,8 +120,8 @@ declare const PunchMarketingValidationSchema: z.ZodEffects<z.ZodObject<{
|
|
|
120
120
|
end?: string | Date | undefined;
|
|
121
121
|
};
|
|
122
122
|
shop: string | import("mongoose").Types.ObjectId;
|
|
123
|
-
marketingType: MarketingType.PUNCH_MARKETING;
|
|
124
123
|
isAppliedByCompany: boolean;
|
|
124
|
+
marketingType: MarketingType.PUNCH_MARKETING;
|
|
125
125
|
minimumOrderValue: number;
|
|
126
126
|
couponValueType: ValueType;
|
|
127
127
|
couponValue: number;
|
|
@@ -138,9 +138,9 @@ declare const PunchMarketingValidationSchema: z.ZodEffects<z.ZodObject<{
|
|
|
138
138
|
end?: Date | undefined;
|
|
139
139
|
};
|
|
140
140
|
shop: import("mongoose").Types.ObjectId;
|
|
141
|
-
marketingType: MarketingType.PUNCH_MARKETING;
|
|
142
141
|
isAppliedByCompany: boolean;
|
|
143
142
|
pausedAt: Date | null;
|
|
143
|
+
marketingType: MarketingType.PUNCH_MARKETING;
|
|
144
144
|
minimumOrderValue: number;
|
|
145
145
|
couponValueType: ValueType;
|
|
146
146
|
couponValue: number;
|
|
@@ -154,8 +154,8 @@ declare const PunchMarketingValidationSchema: z.ZodEffects<z.ZodObject<{
|
|
|
154
154
|
end?: string | Date | undefined;
|
|
155
155
|
};
|
|
156
156
|
shop: string | import("mongoose").Types.ObjectId;
|
|
157
|
-
marketingType: MarketingType.PUNCH_MARKETING;
|
|
158
157
|
isAppliedByCompany: boolean;
|
|
158
|
+
marketingType: MarketingType.PUNCH_MARKETING;
|
|
159
159
|
minimumOrderValue: number;
|
|
160
160
|
couponValueType: ValueType;
|
|
161
161
|
couponValue: number;
|
package/dist/lib/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;
|
package/dist/lib/modules/punch-marketing-history/validations/punch-marketing-history.validation.d.ts
CHANGED
|
@@ -19,8 +19,8 @@ declare const PunchMarketingHistoryValidationSchema: z.ZodObject<{
|
|
|
19
19
|
}, "strict", z.ZodTypeAny, {
|
|
20
20
|
user: import("mongoose").Types.ObjectId;
|
|
21
21
|
shop: import("mongoose").Types.ObjectId;
|
|
22
|
-
minimumOrderValue: number;
|
|
23
22
|
marketing: import("mongoose").Types.ObjectId;
|
|
23
|
+
minimumOrderValue: number;
|
|
24
24
|
targetOrder: number;
|
|
25
25
|
couponValueType: ValueType;
|
|
26
26
|
couponValue: number;
|
|
@@ -34,8 +34,8 @@ declare const PunchMarketingHistoryValidationSchema: z.ZodObject<{
|
|
|
34
34
|
}, {
|
|
35
35
|
user: string | import("mongoose").Types.ObjectId;
|
|
36
36
|
shop: string | import("mongoose").Types.ObjectId;
|
|
37
|
-
minimumOrderValue: number;
|
|
38
37
|
marketing: string | import("mongoose").Types.ObjectId;
|
|
38
|
+
minimumOrderValue: number;
|
|
39
39
|
targetOrder: number;
|
|
40
40
|
couponValueType: ValueType;
|
|
41
41
|
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;CAQrF"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TournamentConfigBuilder = void 0;
|
|
4
|
+
class TournamentConfigBuilder {
|
|
5
|
+
static buildUpdate(input) {
|
|
6
|
+
const updates = {};
|
|
7
|
+
if (input.tag !== undefined)
|
|
8
|
+
updates.tag = input.tag;
|
|
9
|
+
if (input.startDate !== undefined)
|
|
10
|
+
updates.startDate = input.startDate;
|
|
11
|
+
if (input.endDate !== undefined)
|
|
12
|
+
updates.endDate = input.endDate;
|
|
13
|
+
if (input.status !== undefined)
|
|
14
|
+
updates.status = input.status;
|
|
15
|
+
return updates;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
exports.TournamentConfigBuilder = TournamentConfigBuilder;
|
|
19
|
+
//# sourceMappingURL=config.builder.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config.builder.js","sourceRoot":"/","sources":["modules/tournament/config/config.builder.ts"],"names":[],"mappings":";;;AAEA,MAAa,uBAAuB;IAChC,MAAM,CAAC,WAAW,CAAC,KAAqC;QACpD,MAAM,OAAO,GAA4B,EAAE,CAAC;QAC5C,IAAI,KAAK,CAAC,GAAG,KAAK,SAAS;YAAE,OAAO,CAAC,GAAG,GAAG,KAAK,CAAC,GAAG,CAAC;QACrD,IAAI,KAAK,CAAC,SAAS,KAAK,SAAS;YAAE,OAAO,CAAC,SAAS,GAAG,KAAK,CAAC,SAAS,CAAC;QACvE,IAAI,KAAK,CAAC,OAAO,KAAK,SAAS;YAAE,OAAO,CAAC,OAAO,GAAG,KAAK,CAAC,OAAO,CAAC;QACjE,IAAI,KAAK,CAAC,MAAM,KAAK,SAAS;YAAE,OAAO,CAAC,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC;QAC9D,OAAO,OAAO,CAAC;IACnB,CAAC;CACJ;AATD,0DASC","sourcesContent":["import { UpdateTournamentConfigInputDTO } from './config.validation';\n\nexport class TournamentConfigBuilder {\n static buildUpdate(input: UpdateTournamentConfigInputDTO): Record<string, unknown> {\n const updates: Record<string, unknown> = {};\n if (input.tag !== undefined) updates.tag = input.tag;\n if (input.startDate !== undefined) updates.startDate = input.startDate;\n if (input.endDate !== undefined) updates.endDate = input.endDate;\n if (input.status !== undefined) updates.status = input.status;\n return updates;\n }\n}\n"]}
|
|
@@ -0,0 +1,13 @@
|
|
|
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
|
+
existsByTag(tag: string): Promise<boolean>;
|
|
7
|
+
create(input: object): Promise<Model>;
|
|
8
|
+
findById(id: mongoose.Types.ObjectId): Promise<Model | null>;
|
|
9
|
+
findAll(): Promise<Model[]>;
|
|
10
|
+
updateById(id: mongoose.Types.ObjectId, updates: object): Promise<Model | null>;
|
|
11
|
+
}
|
|
12
|
+
export declare const tournamentConfigRepository: TournamentConfigRepository;
|
|
13
|
+
//# 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;AAEjG,qBACa,0BAA0B;IACtC,OAAO,CAAC,KAAK,CAAyB;;IAMhC,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,77 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
19
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
20
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
21
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
22
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
23
|
+
};
|
|
24
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
25
|
+
var ownKeys = function(o) {
|
|
26
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
27
|
+
var ar = [];
|
|
28
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
29
|
+
return ar;
|
|
30
|
+
};
|
|
31
|
+
return ownKeys(o);
|
|
32
|
+
};
|
|
33
|
+
return function (mod) {
|
|
34
|
+
if (mod && mod.__esModule) return mod;
|
|
35
|
+
var result = {};
|
|
36
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
37
|
+
__setModuleDefault(result, mod);
|
|
38
|
+
return result;
|
|
39
|
+
};
|
|
40
|
+
})();
|
|
41
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
42
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
43
|
+
};
|
|
44
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
45
|
+
exports.tournamentConfigRepository = exports.TournamentConfigRepository = void 0;
|
|
46
|
+
const typedi_1 = __importStar(require("typedi"));
|
|
47
|
+
const models_1 = require("@lyxa.ai/core/dist/libraries/mongo/models");
|
|
48
|
+
let TournamentConfigRepository = class TournamentConfigRepository {
|
|
49
|
+
model;
|
|
50
|
+
constructor() {
|
|
51
|
+
this.model = models_1.TournamentModel;
|
|
52
|
+
}
|
|
53
|
+
async existsByTag(tag) {
|
|
54
|
+
return !!(await this.model.exists({ tag }));
|
|
55
|
+
}
|
|
56
|
+
async create(input) {
|
|
57
|
+
const doc = await this.model.create(input);
|
|
58
|
+
return doc.toObject();
|
|
59
|
+
}
|
|
60
|
+
async findById(id) {
|
|
61
|
+
return this.model.findById(id).lean();
|
|
62
|
+
}
|
|
63
|
+
async findAll() {
|
|
64
|
+
return this.model.find().sort({ createdAt: -1 }).lean();
|
|
65
|
+
}
|
|
66
|
+
async updateById(id, updates) {
|
|
67
|
+
const doc = await this.model.findByIdAndUpdate(id, { $set: updates }, { new: true }).lean();
|
|
68
|
+
return doc;
|
|
69
|
+
}
|
|
70
|
+
};
|
|
71
|
+
exports.TournamentConfigRepository = TournamentConfigRepository;
|
|
72
|
+
exports.TournamentConfigRepository = TournamentConfigRepository = __decorate([
|
|
73
|
+
(0, typedi_1.Service)(),
|
|
74
|
+
__metadata("design:paramtypes", [])
|
|
75
|
+
], TournamentConfigRepository);
|
|
76
|
+
exports.tournamentConfigRepository = typedi_1.default.get(TournamentConfigRepository);
|
|
77
|
+
//# sourceMappingURL=config.repository.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config.repository.js","sourceRoot":"/","sources":["modules/tournament/config/config.repository.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,iDAA4C;AAE5C,sEAAiG;AAG1F,IAAM,0BAA0B,GAAhC,MAAM,0BAA0B;IAC9B,KAAK,CAAyB;IAEtC;QACC,IAAI,CAAC,KAAK,GAAG,wBAAe,CAAC;IAC9B,CAAC;IAED,KAAK,CAAC,WAAW,CAAC,GAAW;QAC5B,OAAO,CAAC,CAAC,CAAC,MAAM,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,GAAG,EAAE,CAAC,CAAC,CAAC;IAC7C,CAAC;IAED,KAAK,CAAC,MAAM,CAAC,KAAa;QACzB,MAAM,GAAG,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;QAC3C,OAAO,GAAG,CAAC,QAAQ,EAAE,CAAC;IACvB,CAAC;IAED,KAAK,CAAC,QAAQ,CAAC,EAA2B;QACzC,OAAO,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,IAAI,EAA2B,CAAC;IAChE,CAAC;IAED,KAAK,CAAC,OAAO;QACZ,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC,IAAI,CAAC,EAAE,SAAS,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,IAAI,EAAsB,CAAC;IAC7E,CAAC;IAED,KAAK,CAAC,UAAU,CAAC,EAA2B,EAAE,OAAe;QAC5D,MAAM,GAAG,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,iBAAiB,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,EAAE,GAAG,EAAE,IAAI,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC;QAC5F,OAAO,GAAmB,CAAC;IAC5B,CAAC;CACD,CAAA;AA5BY,gEAA0B;qCAA1B,0BAA0B;IADtC,IAAA,gBAAO,GAAE;;GACG,0BAA0B,CA4BtC;AAEY,QAAA,0BAA0B,GAAG,gBAAS,CAAC,GAAG,CAAC,0BAA0B,CAAC,CAAC","sourcesContent":["import Container, { Service } from 'typedi';\nimport { mongoose } from '@typegoose/typegoose';\nimport { Tournament as Model, TournamentModel } from '@lyxa.ai/core/dist/libraries/mongo/models';\n\n@Service()\nexport class TournamentConfigRepository {\n\tprivate model: typeof TournamentModel;\n\n\tconstructor() {\n\t\tthis.model = TournamentModel;\n\t}\n\n\tasync existsByTag(tag: string): Promise<boolean> {\n\t\treturn !!(await this.model.exists({ tag }));\n\t}\n\n\tasync create(input: object): Promise<Model> {\n\t\tconst doc = await this.model.create(input);\n\t\treturn doc.toObject();\n\t}\n\n\tasync findById(id: mongoose.Types.ObjectId): Promise<Model | null> {\n\t\treturn this.model.findById(id).lean() as Promise<Model | null>;\n\t}\n\n\tasync findAll(): Promise<Model[]> {\n\t\treturn this.model.find().sort({ createdAt: -1 }).lean() as Promise<Model[]>;\n\t}\n\n\tasync updateById(id: mongoose.Types.ObjectId, updates: object): Promise<Model | null> {\n\t\tconst doc = await this.model.findByIdAndUpdate(id, { $set: updates }, { new: true }).lean();\n\t\treturn doc as Model | null;\n\t}\n}\n\nexport const tournamentConfigRepository = Container.get(TournamentConfigRepository);\n"]}
|