@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
|
@@ -14,8 +14,8 @@ export declare const JoinLtoCampaignSchema: z.ZodEffects<z.ZodObject<{
|
|
|
14
14
|
isOrderCapacityEnabled: z.ZodBoolean;
|
|
15
15
|
maxOrderCapacity: z.ZodOptional<z.ZodNumber>;
|
|
16
16
|
}, "strip", z.ZodTypeAny, {
|
|
17
|
-
products: import("mongoose").Types.ObjectId[];
|
|
18
17
|
isEntireMenu: boolean;
|
|
18
|
+
products: import("mongoose").Types.ObjectId[];
|
|
19
19
|
discountPercentage: number;
|
|
20
20
|
maxDiscountCap: number;
|
|
21
21
|
isOrderCapacityEnabled: boolean;
|
|
@@ -28,8 +28,8 @@ export declare const JoinLtoCampaignSchema: z.ZodEffects<z.ZodObject<{
|
|
|
28
28
|
products?: (string | import("mongoose").Types.ObjectId)[] | undefined;
|
|
29
29
|
maxOrderCapacity?: number | undefined;
|
|
30
30
|
}>, {
|
|
31
|
-
products: import("mongoose").Types.ObjectId[];
|
|
32
31
|
isEntireMenu: boolean;
|
|
32
|
+
products: import("mongoose").Types.ObjectId[];
|
|
33
33
|
discountPercentage: number;
|
|
34
34
|
maxDiscountCap: number;
|
|
35
35
|
isOrderCapacityEnabled: boolean;
|
|
@@ -60,9 +60,9 @@ export declare const ParticipantSchema: z.ZodObject<{
|
|
|
60
60
|
}, "strip", z.ZodTypeAny, {
|
|
61
61
|
_id: import("mongoose").Types.ObjectId;
|
|
62
62
|
shop: import("mongoose").Types.ObjectId;
|
|
63
|
+
isEntireMenu: boolean;
|
|
63
64
|
products: import("mongoose").Types.ObjectId[];
|
|
64
65
|
joinedAt: Date;
|
|
65
|
-
isEntireMenu: boolean;
|
|
66
66
|
campaign: import("mongoose").Types.ObjectId;
|
|
67
67
|
isOrderCapacityEnabled: boolean;
|
|
68
68
|
isWithdrawn: boolean;
|
|
@@ -75,8 +75,8 @@ export declare const ParticipantSchema: z.ZodObject<{
|
|
|
75
75
|
}, {
|
|
76
76
|
_id: string | import("mongoose").Types.ObjectId;
|
|
77
77
|
shop: string | import("mongoose").Types.ObjectId;
|
|
78
|
-
joinedAt: Date;
|
|
79
78
|
isEntireMenu: boolean;
|
|
79
|
+
joinedAt: Date;
|
|
80
80
|
campaign: string | import("mongoose").Types.ObjectId;
|
|
81
81
|
isOrderCapacityEnabled: boolean;
|
|
82
82
|
isWithdrawn: boolean;
|
|
@@ -123,17 +123,17 @@ export declare const ParticipantSummarySchema: z.ZodObject<{
|
|
|
123
123
|
productIds: z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>, "many">>;
|
|
124
124
|
marketingId: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
125
125
|
}, "strip", z.ZodTypeAny, {
|
|
126
|
+
isEntireMenu: boolean;
|
|
126
127
|
joinedAt: Date;
|
|
127
128
|
productIds: import("mongoose").Types.ObjectId[];
|
|
128
|
-
isEntireMenu: boolean;
|
|
129
129
|
isOrderCapacityEnabled: boolean;
|
|
130
130
|
marketingId?: import("mongoose").Types.ObjectId | undefined;
|
|
131
131
|
discountPercentage?: number | undefined;
|
|
132
132
|
maxDiscountCap?: number | undefined;
|
|
133
133
|
maxOrderCapacity?: number | undefined;
|
|
134
134
|
}, {
|
|
135
|
-
joinedAt: Date;
|
|
136
135
|
isEntireMenu: boolean;
|
|
136
|
+
joinedAt: Date;
|
|
137
137
|
isOrderCapacityEnabled: boolean;
|
|
138
138
|
productIds?: (string | import("mongoose").Types.ObjectId)[] | undefined;
|
|
139
139
|
marketingId?: string | import("mongoose").Types.ObjectId | undefined;
|
|
@@ -178,17 +178,17 @@ export declare const ParticipantStatusSchema: z.ZodObject<{
|
|
|
178
178
|
productIds: z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>, "many">>;
|
|
179
179
|
marketingId: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
180
180
|
}, "strip", z.ZodTypeAny, {
|
|
181
|
+
isEntireMenu: boolean;
|
|
181
182
|
joinedAt: Date;
|
|
182
183
|
productIds: import("mongoose").Types.ObjectId[];
|
|
183
|
-
isEntireMenu: boolean;
|
|
184
184
|
isOrderCapacityEnabled: boolean;
|
|
185
185
|
marketingId?: import("mongoose").Types.ObjectId | undefined;
|
|
186
186
|
discountPercentage?: number | undefined;
|
|
187
187
|
maxDiscountCap?: number | undefined;
|
|
188
188
|
maxOrderCapacity?: number | undefined;
|
|
189
189
|
}, {
|
|
190
|
-
joinedAt: Date;
|
|
191
190
|
isEntireMenu: boolean;
|
|
191
|
+
joinedAt: Date;
|
|
192
192
|
isOrderCapacityEnabled: boolean;
|
|
193
193
|
productIds?: (string | import("mongoose").Types.ObjectId)[] | undefined;
|
|
194
194
|
marketingId?: string | import("mongoose").Types.ObjectId | undefined;
|
|
@@ -208,9 +208,9 @@ export declare const ParticipantStatusSchema: z.ZodObject<{
|
|
|
208
208
|
subTitle?: string | undefined;
|
|
209
209
|
} | undefined;
|
|
210
210
|
participant?: {
|
|
211
|
+
isEntireMenu: boolean;
|
|
211
212
|
joinedAt: Date;
|
|
212
213
|
productIds: import("mongoose").Types.ObjectId[];
|
|
213
|
-
isEntireMenu: boolean;
|
|
214
214
|
isOrderCapacityEnabled: boolean;
|
|
215
215
|
marketingId?: import("mongoose").Types.ObjectId | undefined;
|
|
216
216
|
discountPercentage?: number | undefined;
|
|
@@ -229,8 +229,8 @@ export declare const ParticipantStatusSchema: z.ZodObject<{
|
|
|
229
229
|
maxDiscountCaps?: number[] | undefined;
|
|
230
230
|
} | undefined;
|
|
231
231
|
participant?: {
|
|
232
|
-
joinedAt: Date;
|
|
233
232
|
isEntireMenu: boolean;
|
|
233
|
+
joinedAt: Date;
|
|
234
234
|
isOrderCapacityEnabled: boolean;
|
|
235
235
|
productIds?: (string | import("mongoose").Types.ObjectId)[] | undefined;
|
|
236
236
|
marketingId?: string | import("mongoose").Types.ObjectId | undefined;
|
|
@@ -262,8 +262,8 @@ export declare const ParticipantResponseSchema: z.ZodObject<{
|
|
|
262
262
|
documents: z.ZodArray<z.ZodType<{
|
|
263
263
|
_id: string | import("mongoose").Types.ObjectId;
|
|
264
264
|
shop: string | import("mongoose").Types.ObjectId;
|
|
265
|
-
joinedAt: Date;
|
|
266
265
|
isEntireMenu: boolean;
|
|
266
|
+
joinedAt: Date;
|
|
267
267
|
campaign: string | import("mongoose").Types.ObjectId;
|
|
268
268
|
isOrderCapacityEnabled: boolean;
|
|
269
269
|
isWithdrawn: boolean;
|
|
@@ -277,8 +277,8 @@ export declare const ParticipantResponseSchema: z.ZodObject<{
|
|
|
277
277
|
}, z.ZodTypeDef, {
|
|
278
278
|
_id: string | import("mongoose").Types.ObjectId;
|
|
279
279
|
shop: string | import("mongoose").Types.ObjectId;
|
|
280
|
-
joinedAt: Date;
|
|
281
280
|
isEntireMenu: boolean;
|
|
281
|
+
joinedAt: Date;
|
|
282
282
|
campaign: string | import("mongoose").Types.ObjectId;
|
|
283
283
|
isOrderCapacityEnabled: boolean;
|
|
284
284
|
isWithdrawn: boolean;
|
|
@@ -294,8 +294,8 @@ export declare const ParticipantResponseSchema: z.ZodObject<{
|
|
|
294
294
|
documents: {
|
|
295
295
|
_id: string | import("mongoose").Types.ObjectId;
|
|
296
296
|
shop: string | import("mongoose").Types.ObjectId;
|
|
297
|
-
joinedAt: Date;
|
|
298
297
|
isEntireMenu: boolean;
|
|
298
|
+
joinedAt: Date;
|
|
299
299
|
campaign: string | import("mongoose").Types.ObjectId;
|
|
300
300
|
isOrderCapacityEnabled: boolean;
|
|
301
301
|
isWithdrawn: boolean;
|
|
@@ -317,8 +317,8 @@ export declare const ParticipantResponseSchema: z.ZodObject<{
|
|
|
317
317
|
documents: {
|
|
318
318
|
_id: string | import("mongoose").Types.ObjectId;
|
|
319
319
|
shop: string | import("mongoose").Types.ObjectId;
|
|
320
|
-
joinedAt: Date;
|
|
321
320
|
isEntireMenu: boolean;
|
|
321
|
+
joinedAt: Date;
|
|
322
322
|
campaign: string | import("mongoose").Types.ObjectId;
|
|
323
323
|
isOrderCapacityEnabled: boolean;
|
|
324
324
|
isWithdrawn: boolean;
|
|
@@ -339,8 +339,8 @@ export declare const ParticipantResponseSchema: z.ZodObject<{
|
|
|
339
339
|
}>, z.ZodType<{
|
|
340
340
|
_id: string | import("mongoose").Types.ObjectId;
|
|
341
341
|
shop: string | import("mongoose").Types.ObjectId;
|
|
342
|
-
joinedAt: Date;
|
|
343
342
|
isEntireMenu: boolean;
|
|
343
|
+
joinedAt: Date;
|
|
344
344
|
campaign: string | import("mongoose").Types.ObjectId;
|
|
345
345
|
isOrderCapacityEnabled: boolean;
|
|
346
346
|
isWithdrawn: boolean;
|
|
@@ -354,8 +354,8 @@ export declare const ParticipantResponseSchema: z.ZodObject<{
|
|
|
354
354
|
}, z.ZodTypeDef, {
|
|
355
355
|
_id: string | import("mongoose").Types.ObjectId;
|
|
356
356
|
shop: string | import("mongoose").Types.ObjectId;
|
|
357
|
-
joinedAt: Date;
|
|
358
357
|
isEntireMenu: boolean;
|
|
358
|
+
joinedAt: Date;
|
|
359
359
|
campaign: string | import("mongoose").Types.ObjectId;
|
|
360
360
|
isOrderCapacityEnabled: boolean;
|
|
361
361
|
isWithdrawn: boolean;
|
|
@@ -373,8 +373,8 @@ export declare const ParticipantResponseSchema: z.ZodObject<{
|
|
|
373
373
|
data?: {
|
|
374
374
|
_id: string | import("mongoose").Types.ObjectId;
|
|
375
375
|
shop: string | import("mongoose").Types.ObjectId;
|
|
376
|
-
joinedAt: Date;
|
|
377
376
|
isEntireMenu: boolean;
|
|
377
|
+
joinedAt: Date;
|
|
378
378
|
campaign: string | import("mongoose").Types.ObjectId;
|
|
379
379
|
isOrderCapacityEnabled: boolean;
|
|
380
380
|
isWithdrawn: boolean;
|
|
@@ -389,8 +389,8 @@ export declare const ParticipantResponseSchema: z.ZodObject<{
|
|
|
389
389
|
documents: {
|
|
390
390
|
_id: string | import("mongoose").Types.ObjectId;
|
|
391
391
|
shop: string | import("mongoose").Types.ObjectId;
|
|
392
|
-
joinedAt: Date;
|
|
393
392
|
isEntireMenu: boolean;
|
|
393
|
+
joinedAt: Date;
|
|
394
394
|
campaign: string | import("mongoose").Types.ObjectId;
|
|
395
395
|
isOrderCapacityEnabled: boolean;
|
|
396
396
|
isWithdrawn: boolean;
|
|
@@ -415,8 +415,8 @@ export declare const ParticipantResponseSchema: z.ZodObject<{
|
|
|
415
415
|
data?: {
|
|
416
416
|
_id: string | import("mongoose").Types.ObjectId;
|
|
417
417
|
shop: string | import("mongoose").Types.ObjectId;
|
|
418
|
-
joinedAt: Date;
|
|
419
418
|
isEntireMenu: boolean;
|
|
419
|
+
joinedAt: Date;
|
|
420
420
|
campaign: string | import("mongoose").Types.ObjectId;
|
|
421
421
|
isOrderCapacityEnabled: boolean;
|
|
422
422
|
isWithdrawn: boolean;
|
|
@@ -431,8 +431,8 @@ export declare const ParticipantResponseSchema: z.ZodObject<{
|
|
|
431
431
|
documents: {
|
|
432
432
|
_id: string | import("mongoose").Types.ObjectId;
|
|
433
433
|
shop: string | import("mongoose").Types.ObjectId;
|
|
434
|
-
joinedAt: Date;
|
|
435
434
|
isEntireMenu: boolean;
|
|
435
|
+
joinedAt: Date;
|
|
436
436
|
campaign: string | import("mongoose").Types.ObjectId;
|
|
437
437
|
isOrderCapacityEnabled: boolean;
|
|
438
438
|
isWithdrawn: boolean;
|
|
@@ -484,8 +484,8 @@ export declare const ParticipantStatusResponseSchema: z.ZodObject<{
|
|
|
484
484
|
maxDiscountCaps?: number[] | undefined;
|
|
485
485
|
} | undefined;
|
|
486
486
|
participant?: {
|
|
487
|
-
joinedAt: Date;
|
|
488
487
|
isEntireMenu: boolean;
|
|
488
|
+
joinedAt: Date;
|
|
489
489
|
isOrderCapacityEnabled: boolean;
|
|
490
490
|
productIds?: (string | import("mongoose").Types.ObjectId)[] | undefined;
|
|
491
491
|
marketingId?: string | import("mongoose").Types.ObjectId | undefined;
|
|
@@ -505,8 +505,8 @@ export declare const ParticipantStatusResponseSchema: z.ZodObject<{
|
|
|
505
505
|
maxDiscountCaps?: number[] | undefined;
|
|
506
506
|
} | undefined;
|
|
507
507
|
participant?: {
|
|
508
|
-
joinedAt: Date;
|
|
509
508
|
isEntireMenu: boolean;
|
|
509
|
+
joinedAt: Date;
|
|
510
510
|
isOrderCapacityEnabled: boolean;
|
|
511
511
|
productIds?: (string | import("mongoose").Types.ObjectId)[] | undefined;
|
|
512
512
|
marketingId?: string | import("mongoose").Types.ObjectId | undefined;
|
|
@@ -528,8 +528,8 @@ export declare const ParticipantStatusResponseSchema: z.ZodObject<{
|
|
|
528
528
|
maxDiscountCaps?: number[] | undefined;
|
|
529
529
|
} | undefined;
|
|
530
530
|
participant?: {
|
|
531
|
-
joinedAt: Date;
|
|
532
531
|
isEntireMenu: boolean;
|
|
532
|
+
joinedAt: Date;
|
|
533
533
|
isOrderCapacityEnabled: boolean;
|
|
534
534
|
productIds?: (string | import("mongoose").Types.ObjectId)[] | undefined;
|
|
535
535
|
marketingId?: string | import("mongoose").Types.ObjectId | undefined;
|
|
@@ -557,8 +557,8 @@ export declare const ParticipantStatusResponseSchema: z.ZodObject<{
|
|
|
557
557
|
maxDiscountCaps?: number[] | undefined;
|
|
558
558
|
} | undefined;
|
|
559
559
|
participant?: {
|
|
560
|
-
joinedAt: Date;
|
|
561
560
|
isEntireMenu: boolean;
|
|
561
|
+
joinedAt: Date;
|
|
562
562
|
isOrderCapacityEnabled: boolean;
|
|
563
563
|
productIds?: (string | import("mongoose").Types.ObjectId)[] | undefined;
|
|
564
564
|
marketingId?: string | import("mongoose").Types.ObjectId | undefined;
|
|
@@ -585,8 +585,8 @@ export declare const ParticipantStatusResponseSchema: z.ZodObject<{
|
|
|
585
585
|
maxDiscountCaps?: number[] | undefined;
|
|
586
586
|
} | undefined;
|
|
587
587
|
participant?: {
|
|
588
|
-
joinedAt: Date;
|
|
589
588
|
isEntireMenu: boolean;
|
|
589
|
+
joinedAt: Date;
|
|
590
590
|
isOrderCapacityEnabled: boolean;
|
|
591
591
|
productIds?: (string | import("mongoose").Types.ObjectId)[] | undefined;
|
|
592
592
|
marketingId?: string | import("mongoose").Types.ObjectId | undefined;
|
|
@@ -606,8 +606,8 @@ export declare const ParticipantStatusResponseSchema: z.ZodObject<{
|
|
|
606
606
|
maxDiscountCaps?: number[] | undefined;
|
|
607
607
|
} | undefined;
|
|
608
608
|
participant?: {
|
|
609
|
-
joinedAt: Date;
|
|
610
609
|
isEntireMenu: boolean;
|
|
610
|
+
joinedAt: Date;
|
|
611
611
|
isOrderCapacityEnabled: boolean;
|
|
612
612
|
productIds?: (string | import("mongoose").Types.ObjectId)[] | undefined;
|
|
613
613
|
marketingId?: string | import("mongoose").Types.ObjectId | undefined;
|
|
@@ -631,8 +631,8 @@ export declare const ParticipantStatusResponseSchema: z.ZodObject<{
|
|
|
631
631
|
maxDiscountCaps?: number[] | undefined;
|
|
632
632
|
} | undefined;
|
|
633
633
|
participant?: {
|
|
634
|
-
joinedAt: Date;
|
|
635
634
|
isEntireMenu: boolean;
|
|
635
|
+
joinedAt: Date;
|
|
636
636
|
isOrderCapacityEnabled: boolean;
|
|
637
637
|
productIds?: (string | import("mongoose").Types.ObjectId)[] | undefined;
|
|
638
638
|
marketingId?: string | import("mongoose").Types.ObjectId | undefined;
|
|
@@ -653,8 +653,8 @@ export declare const ParticipantStatusResponseSchema: z.ZodObject<{
|
|
|
653
653
|
maxDiscountCaps?: number[] | undefined;
|
|
654
654
|
} | undefined;
|
|
655
655
|
participant?: {
|
|
656
|
-
joinedAt: Date;
|
|
657
656
|
isEntireMenu: boolean;
|
|
657
|
+
joinedAt: Date;
|
|
658
658
|
isOrderCapacityEnabled: boolean;
|
|
659
659
|
productIds?: (string | import("mongoose").Types.ObjectId)[] | undefined;
|
|
660
660
|
marketingId?: string | import("mongoose").Types.ObjectId | undefined;
|
|
@@ -685,8 +685,8 @@ export declare const ParticipantStatusResponseSchema: z.ZodObject<{
|
|
|
685
685
|
maxDiscountCaps?: number[] | undefined;
|
|
686
686
|
} | undefined;
|
|
687
687
|
participant?: {
|
|
688
|
-
joinedAt: Date;
|
|
689
688
|
isEntireMenu: boolean;
|
|
689
|
+
joinedAt: Date;
|
|
690
690
|
isOrderCapacityEnabled: boolean;
|
|
691
691
|
productIds?: (string | import("mongoose").Types.ObjectId)[] | undefined;
|
|
692
692
|
marketingId?: string | import("mongoose").Types.ObjectId | undefined;
|
|
@@ -707,8 +707,8 @@ export declare const ParticipantStatusResponseSchema: z.ZodObject<{
|
|
|
707
707
|
maxDiscountCaps?: number[] | undefined;
|
|
708
708
|
} | undefined;
|
|
709
709
|
participant?: {
|
|
710
|
-
joinedAt: Date;
|
|
711
710
|
isEntireMenu: boolean;
|
|
711
|
+
joinedAt: Date;
|
|
712
712
|
isOrderCapacityEnabled: boolean;
|
|
713
713
|
productIds?: (string | import("mongoose").Types.ObjectId)[] | undefined;
|
|
714
714
|
marketingId?: string | import("mongoose").Types.ObjectId | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"marketing.service.d.ts","sourceRoot":"/","sources":["modules/marketing/services/marketing.service.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,YAAY,EAAE,QAAQ,EAAmB,MAAM,sBAAsB,CAAC;AAC/E,OAAO,EAMN,SAAS,IAAI,KAAK,EAMlB,MAAM,2CAA2C,CAAC;AACnD,OAAO,EAEN,0BAA0B,EAE1B,oCAAoC,EACpC,kBAAkB,IAAI,SAAS,EAC/B,MAAM,gCAAgC,CAAC;AACxC,OAAO,EACN,SAAS,EACT,iBAAiB,EACjB,SAAS,EACT,eAAe,EACf,MAAM,yCAAyC,CAAC;AAGjD,OAAO,EAAE,SAAS,EAAE,MAAM,gCAAgC,CAAC;AAwC3D,qBACa,gBAAgB;IAC5B,OAAO,CAAC,KAAK,CAAiD;IAC9D,OAAO,CAAC,SAAS,CAA2C;IAC5D,OAAO,CAAC,UAAU,CAA2D;IAC7E,OAAO,CAAC,0BAA0B,CAA6B;;IAS/D;;;OAGG;IACU,MAAM,CAClB,IAAI,EAAE,0BAA0B,EAChC,KAAK,CAAC,EAAE,QAAQ,CAAC,KAAK,CAAC,QAAQ,GAC7B,OAAO,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC;IA+J/B;;;OAGG;IACU,QAAQ,CAAC,IAAI,EAAE,eAAe,GAAG,OAAO,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC;IAkB1E;;;OAGG;IACU,IAAI,CAAC,IAAI,CAAC,EAAE,OAAO,CAAC,SAAS,CAAC,GAAG,OAAO,CAAC,iBAAiB,CAAC,YAAY,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;IAqBxG;;;;OAIG;IACU,MAAM,CAClB,GAAG,EAAE,QAAQ,CAAC,KAAK,CAAC,QAAQ,EAC5B,IAAI,EAAE,SAAS,EACf,KAAK,CAAC,EAAE,QAAQ,CAAC,KAAK,CAAC,QAAQ,GAC7B,OAAO,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC;YAgHjB,uBAAuB;YAkBvB,uBAAuB;IAerC;;;OAGG;IACU,UAAU,CAAC,IAAI,EAAE,SAAS,EAAE,KAAK,CAAC,EAAE,QAAQ,CAAC,KAAK,CAAC,QAAQ,GAAG,OAAO,CAAC,MAAM,CAAC;IAsC7E,eAAe,CAAC,YAAY,EAAE,QAAQ,CAAC,KAAK,CAAC,QAAQ,EAAE,EAAE,UAAU,UAAO,GAAG,OAAO,CAAC,IAAI,CAAC;IAoC1F,sCAAsC,CAAC,IAAI,EAAE,oCAAoC;IA8BjF,gCAAgC,CAAC,OAAO,EAAE,QAAQ,CAAC,KAAK,CAAC,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC;IAiChF,gCAAgC,CAAC,OAAO,EAAE,QAAQ,CAAC,KAAK,CAAC,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC;YAiC/E,oCAAoC;
|
|
1
|
+
{"version":3,"file":"marketing.service.d.ts","sourceRoot":"/","sources":["modules/marketing/services/marketing.service.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,YAAY,EAAE,QAAQ,EAAmB,MAAM,sBAAsB,CAAC;AAC/E,OAAO,EAMN,SAAS,IAAI,KAAK,EAMlB,MAAM,2CAA2C,CAAC;AACnD,OAAO,EAEN,0BAA0B,EAE1B,oCAAoC,EACpC,kBAAkB,IAAI,SAAS,EAC/B,MAAM,gCAAgC,CAAC;AACxC,OAAO,EACN,SAAS,EACT,iBAAiB,EACjB,SAAS,EACT,eAAe,EACf,MAAM,yCAAyC,CAAC;AAGjD,OAAO,EAAE,SAAS,EAAE,MAAM,gCAAgC,CAAC;AAwC3D,qBACa,gBAAgB;IAC5B,OAAO,CAAC,KAAK,CAAiD;IAC9D,OAAO,CAAC,SAAS,CAA2C;IAC5D,OAAO,CAAC,UAAU,CAA2D;IAC7E,OAAO,CAAC,0BAA0B,CAA6B;;IAS/D;;;OAGG;IACU,MAAM,CAClB,IAAI,EAAE,0BAA0B,EAChC,KAAK,CAAC,EAAE,QAAQ,CAAC,KAAK,CAAC,QAAQ,GAC7B,OAAO,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC;IA+J/B;;;OAGG;IACU,QAAQ,CAAC,IAAI,EAAE,eAAe,GAAG,OAAO,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC;IAkB1E;;;OAGG;IACU,IAAI,CAAC,IAAI,CAAC,EAAE,OAAO,CAAC,SAAS,CAAC,GAAG,OAAO,CAAC,iBAAiB,CAAC,YAAY,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;IAqBxG;;;;OAIG;IACU,MAAM,CAClB,GAAG,EAAE,QAAQ,CAAC,KAAK,CAAC,QAAQ,EAC5B,IAAI,EAAE,SAAS,EACf,KAAK,CAAC,EAAE,QAAQ,CAAC,KAAK,CAAC,QAAQ,GAC7B,OAAO,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC;YAgHjB,uBAAuB;YAkBvB,uBAAuB;IAerC;;;OAGG;IACU,UAAU,CAAC,IAAI,EAAE,SAAS,EAAE,KAAK,CAAC,EAAE,QAAQ,CAAC,KAAK,CAAC,QAAQ,GAAG,OAAO,CAAC,MAAM,CAAC;IAsC7E,eAAe,CAAC,YAAY,EAAE,QAAQ,CAAC,KAAK,CAAC,QAAQ,EAAE,EAAE,UAAU,UAAO,GAAG,OAAO,CAAC,IAAI,CAAC;IAoC1F,sCAAsC,CAAC,IAAI,EAAE,oCAAoC;IA8BjF,gCAAgC,CAAC,OAAO,EAAE,QAAQ,CAAC,KAAK,CAAC,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC;IAiChF,gCAAgC,CAAC,OAAO,EAAE,QAAQ,CAAC,KAAK,CAAC,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC;YAiC/E,oCAAoC;YAgBpC,kCAAkC;IAgBnC,iCAAiC,IAAI,OAAO,CAAC,IAAI,CAAC;IAqClD,yBAAyB,CAAC,WAAW,EAAE,QAAQ,CAAC,KAAK,CAAC,QAAQ,GAAG,OAAO,CAAC,IAAI,CAAC;CAoC3F;AAED,eAAO,MAAM,gBAAgB,kBAAkC,CAAC"}
|
|
@@ -2,6 +2,7 @@ import { mongoose } from '@typegoose/typegoose';
|
|
|
2
2
|
import { SynchronizeAllProductsProductMarketingInfoDTO } from '@lyxa.ai/core/dist/libraries/event/events/sync-all-products-product-marketing-info-event';
|
|
3
3
|
export declare class SynchronizeProductMarketingService {
|
|
4
4
|
private productModel;
|
|
5
|
+
private productMarketingModel;
|
|
5
6
|
constructor();
|
|
6
7
|
publishAllProductsProductMarketingInfoProcessEvent(): Promise<string>;
|
|
7
8
|
processAllProductsProductMarketingInfoEvent(payload: SynchronizeAllProductsProductMarketingInfoDTO): string;
|
|
@@ -10,6 +11,7 @@ export declare class SynchronizeProductMarketingService {
|
|
|
10
11
|
private getProductMarketingInfoByProductId;
|
|
11
12
|
syncProductMarketingInfoByProductId(productId: mongoose.Types.ObjectId): Promise<string>;
|
|
12
13
|
syncProductMarketingInfoByProductIds(productIds: mongoose.Types.ObjectId[]): Promise<string>;
|
|
14
|
+
syncProductMarketingInfoByMarketingIds(marketingIds: mongoose.Types.ObjectId[]): Promise<string>;
|
|
13
15
|
}
|
|
14
16
|
export declare const synchronizeProductMarketingService: SynchronizeProductMarketingService;
|
|
15
17
|
//# sourceMappingURL=synchronize-product-marketing.service.d.ts.map
|
package/dist/types/modules/marketing/services/synchronize-product-marketing.service.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"synchronize-product-marketing.service.d.ts","sourceRoot":"/","sources":["modules/marketing/services/synchronize-product-marketing.service.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"synchronize-product-marketing.service.d.ts","sourceRoot":"/","sources":["modules/marketing/services/synchronize-product-marketing.service.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAWhD,OAAO,EAAE,6CAA6C,EAAE,MAAM,0FAA0F,CAAC;AAIzJ,qBACa,kCAAkC;IAC9C,OAAO,CAAC,YAAY,CAA+C;IACnE,OAAO,CAAC,qBAAqB,CAAmE;;IAQnF,kDAAkD;IAKxD,2CAA2C,CACjD,OAAO,EAAE,6CAA6C,GACpD,MAAM;IAKF,4BAA4B,QAAa,OAAO,CAAC,GAAG,CAAC,CAqC1D;YAEY,oBAAoB;YA2CpB,kCAAkC;IAsCnC,mCAAmC,CAAC,SAAS,EAAE,QAAQ,CAAC,KAAK,CAAC,QAAQ;IAqCtE,oCAAoC,CAAC,UAAU,EAAE,QAAQ,CAAC,KAAK,CAAC,QAAQ,EAAE;IA8D1E,sCAAsC,CAAC,YAAY,EAAE,QAAQ,CAAC,KAAK,CAAC,QAAQ,EAAE;CAY3F;AAED,eAAO,MAAM,kCAAkC,oCAAoD,CAAC"}
|
|
@@ -59,6 +59,9 @@ declare const Buy1Get1MarketingValidationSchema: z.ZodObject<{
|
|
|
59
59
|
isSpendLimitEnabled: boolean;
|
|
60
60
|
shop: import("mongoose").Types.ObjectId;
|
|
61
61
|
categories: import("mongoose").Types.ObjectId[];
|
|
62
|
+
isAppliedByCompany: boolean;
|
|
63
|
+
isEntireMenu: boolean;
|
|
64
|
+
pausedAt: Date | null;
|
|
62
65
|
products: {
|
|
63
66
|
product: import("mongoose").Types.ObjectId;
|
|
64
67
|
value?: number | undefined;
|
|
@@ -68,9 +71,6 @@ declare const Buy1Get1MarketingValidationSchema: z.ZodObject<{
|
|
|
68
71
|
isBuy1Get1?: boolean | undefined;
|
|
69
72
|
}[];
|
|
70
73
|
marketingType: MarketingType.BUY1GET1;
|
|
71
|
-
isAppliedByCompany: boolean;
|
|
72
|
-
pausedAt: Date | null;
|
|
73
|
-
isEntireMenu: boolean;
|
|
74
74
|
excludeProducts: import("mongoose").Types.ObjectId[];
|
|
75
75
|
isOnlyForSubscriber: boolean;
|
|
76
76
|
admin?: import("mongoose").Types.ObjectId | null | undefined;
|
|
@@ -80,13 +80,15 @@ declare const Buy1Get1MarketingValidationSchema: z.ZodObject<{
|
|
|
80
80
|
end?: string | Date | undefined;
|
|
81
81
|
};
|
|
82
82
|
shop: string | import("mongoose").Types.ObjectId;
|
|
83
|
-
marketingType: MarketingType.BUY1GET1;
|
|
84
83
|
isAppliedByCompany: boolean;
|
|
84
|
+
marketingType: MarketingType.BUY1GET1;
|
|
85
85
|
status?: import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus | undefined;
|
|
86
86
|
spendLimit?: number | undefined;
|
|
87
87
|
isSpendLimitEnabled?: boolean | undefined;
|
|
88
88
|
categories?: (string | import("mongoose").Types.ObjectId)[] | undefined;
|
|
89
89
|
admin?: string | import("mongoose").Types.ObjectId | null | undefined;
|
|
90
|
+
isEntireMenu?: boolean | undefined;
|
|
91
|
+
pausedAt?: string | Date | null | undefined;
|
|
90
92
|
products?: {
|
|
91
93
|
product: string | import("mongoose").Types.ObjectId;
|
|
92
94
|
value?: number | undefined;
|
|
@@ -95,8 +97,6 @@ declare const Buy1Get1MarketingValidationSchema: z.ZodObject<{
|
|
|
95
97
|
marketing?: string | import("mongoose").Types.ObjectId | undefined;
|
|
96
98
|
isBuy1Get1?: boolean | undefined;
|
|
97
99
|
}[] | undefined;
|
|
98
|
-
pausedAt?: string | Date | null | undefined;
|
|
99
|
-
isEntireMenu?: boolean | undefined;
|
|
100
100
|
excludeProducts?: (string | import("mongoose").Types.ObjectId)[] | undefined;
|
|
101
101
|
isOnlyForSubscriber?: boolean | undefined;
|
|
102
102
|
}>, Buy1Get1MarketingSchema: z.ZodObject<{
|
|
@@ -437,6 +437,9 @@ declare const Buy1Get1MarketingValidationSchemaRefined: z.ZodEffects<z.ZodObject
|
|
|
437
437
|
isSpendLimitEnabled: boolean;
|
|
438
438
|
shop: import("mongoose").Types.ObjectId;
|
|
439
439
|
categories: import("mongoose").Types.ObjectId[];
|
|
440
|
+
isAppliedByCompany: boolean;
|
|
441
|
+
isEntireMenu: boolean;
|
|
442
|
+
pausedAt: Date | null;
|
|
440
443
|
products: {
|
|
441
444
|
product: import("mongoose").Types.ObjectId;
|
|
442
445
|
value?: number | undefined;
|
|
@@ -446,9 +449,6 @@ declare const Buy1Get1MarketingValidationSchemaRefined: z.ZodEffects<z.ZodObject
|
|
|
446
449
|
isBuy1Get1?: boolean | undefined;
|
|
447
450
|
}[];
|
|
448
451
|
marketingType: MarketingType.BUY1GET1;
|
|
449
|
-
isAppliedByCompany: boolean;
|
|
450
|
-
pausedAt: Date | null;
|
|
451
|
-
isEntireMenu: boolean;
|
|
452
452
|
excludeProducts: import("mongoose").Types.ObjectId[];
|
|
453
453
|
isOnlyForSubscriber: boolean;
|
|
454
454
|
admin?: import("mongoose").Types.ObjectId | null | undefined;
|
|
@@ -458,13 +458,15 @@ declare const Buy1Get1MarketingValidationSchemaRefined: z.ZodEffects<z.ZodObject
|
|
|
458
458
|
end?: string | Date | undefined;
|
|
459
459
|
};
|
|
460
460
|
shop: string | import("mongoose").Types.ObjectId;
|
|
461
|
-
marketingType: MarketingType.BUY1GET1;
|
|
462
461
|
isAppliedByCompany: boolean;
|
|
462
|
+
marketingType: MarketingType.BUY1GET1;
|
|
463
463
|
status?: import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus | undefined;
|
|
464
464
|
spendLimit?: number | undefined;
|
|
465
465
|
isSpendLimitEnabled?: boolean | undefined;
|
|
466
466
|
categories?: (string | import("mongoose").Types.ObjectId)[] | undefined;
|
|
467
467
|
admin?: string | import("mongoose").Types.ObjectId | null | undefined;
|
|
468
|
+
isEntireMenu?: boolean | undefined;
|
|
469
|
+
pausedAt?: string | Date | null | undefined;
|
|
468
470
|
products?: {
|
|
469
471
|
product: string | import("mongoose").Types.ObjectId;
|
|
470
472
|
value?: number | undefined;
|
|
@@ -473,8 +475,6 @@ declare const Buy1Get1MarketingValidationSchemaRefined: z.ZodEffects<z.ZodObject
|
|
|
473
475
|
marketing?: string | import("mongoose").Types.ObjectId | undefined;
|
|
474
476
|
isBuy1Get1?: boolean | undefined;
|
|
475
477
|
}[] | undefined;
|
|
476
|
-
pausedAt?: string | Date | null | undefined;
|
|
477
|
-
isEntireMenu?: boolean | undefined;
|
|
478
478
|
excludeProducts?: (string | import("mongoose").Types.ObjectId)[] | undefined;
|
|
479
479
|
isOnlyForSubscriber?: boolean | undefined;
|
|
480
480
|
}>, {
|
|
@@ -487,6 +487,9 @@ declare const Buy1Get1MarketingValidationSchemaRefined: z.ZodEffects<z.ZodObject
|
|
|
487
487
|
isSpendLimitEnabled: boolean;
|
|
488
488
|
shop: import("mongoose").Types.ObjectId;
|
|
489
489
|
categories: import("mongoose").Types.ObjectId[];
|
|
490
|
+
isAppliedByCompany: boolean;
|
|
491
|
+
isEntireMenu: boolean;
|
|
492
|
+
pausedAt: Date | null;
|
|
490
493
|
products: {
|
|
491
494
|
product: import("mongoose").Types.ObjectId;
|
|
492
495
|
value?: number | undefined;
|
|
@@ -496,9 +499,6 @@ declare const Buy1Get1MarketingValidationSchemaRefined: z.ZodEffects<z.ZodObject
|
|
|
496
499
|
isBuy1Get1?: boolean | undefined;
|
|
497
500
|
}[];
|
|
498
501
|
marketingType: MarketingType.BUY1GET1;
|
|
499
|
-
isAppliedByCompany: boolean;
|
|
500
|
-
pausedAt: Date | null;
|
|
501
|
-
isEntireMenu: boolean;
|
|
502
502
|
excludeProducts: import("mongoose").Types.ObjectId[];
|
|
503
503
|
isOnlyForSubscriber: boolean;
|
|
504
504
|
admin?: import("mongoose").Types.ObjectId | null | undefined;
|
|
@@ -508,13 +508,15 @@ declare const Buy1Get1MarketingValidationSchemaRefined: z.ZodEffects<z.ZodObject
|
|
|
508
508
|
end?: string | Date | undefined;
|
|
509
509
|
};
|
|
510
510
|
shop: string | import("mongoose").Types.ObjectId;
|
|
511
|
-
marketingType: MarketingType.BUY1GET1;
|
|
512
511
|
isAppliedByCompany: boolean;
|
|
512
|
+
marketingType: MarketingType.BUY1GET1;
|
|
513
513
|
status?: import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus | undefined;
|
|
514
514
|
spendLimit?: number | undefined;
|
|
515
515
|
isSpendLimitEnabled?: boolean | undefined;
|
|
516
516
|
categories?: (string | import("mongoose").Types.ObjectId)[] | undefined;
|
|
517
517
|
admin?: string | import("mongoose").Types.ObjectId | null | undefined;
|
|
518
|
+
isEntireMenu?: boolean | undefined;
|
|
519
|
+
pausedAt?: string | Date | null | undefined;
|
|
518
520
|
products?: {
|
|
519
521
|
product: string | import("mongoose").Types.ObjectId;
|
|
520
522
|
value?: number | undefined;
|
|
@@ -523,8 +525,6 @@ declare const Buy1Get1MarketingValidationSchemaRefined: z.ZodEffects<z.ZodObject
|
|
|
523
525
|
marketing?: string | import("mongoose").Types.ObjectId | undefined;
|
|
524
526
|
isBuy1Get1?: boolean | undefined;
|
|
525
527
|
}[] | undefined;
|
|
526
|
-
pausedAt?: string | Date | null | undefined;
|
|
527
|
-
isEntireMenu?: boolean | undefined;
|
|
528
528
|
excludeProducts?: (string | import("mongoose").Types.ObjectId)[] | undefined;
|
|
529
529
|
isOnlyForSubscriber?: boolean | undefined;
|
|
530
530
|
}>;
|
|
@@ -65,6 +65,11 @@ declare const DiscountMarketingValidationSchema: z.ZodObject<{
|
|
|
65
65
|
isSpendLimitEnabled: boolean;
|
|
66
66
|
shop: import("mongoose").Types.ObjectId;
|
|
67
67
|
categories: import("mongoose").Types.ObjectId[];
|
|
68
|
+
isAppliedByCompany: boolean;
|
|
69
|
+
isEntireMenu: boolean;
|
|
70
|
+
isMaxDiscountPerOrderEnabled: boolean;
|
|
71
|
+
maxDiscountPerOrder: number;
|
|
72
|
+
pausedAt: Date | null;
|
|
68
73
|
products: {
|
|
69
74
|
product: import("mongoose").Types.ObjectId;
|
|
70
75
|
value?: number | undefined;
|
|
@@ -74,13 +79,8 @@ declare const DiscountMarketingValidationSchema: z.ZodObject<{
|
|
|
74
79
|
isBuy1Get1?: boolean | undefined;
|
|
75
80
|
}[];
|
|
76
81
|
marketingType: MarketingType.DISCOUNT;
|
|
77
|
-
isAppliedByCompany: boolean;
|
|
78
|
-
pausedAt: Date | null;
|
|
79
|
-
isEntireMenu: boolean;
|
|
80
82
|
excludeProducts: import("mongoose").Types.ObjectId[];
|
|
81
83
|
isOnlyForSubscriber: boolean;
|
|
82
|
-
maxDiscountPerOrder: number;
|
|
83
|
-
isMaxDiscountPerOrderEnabled: boolean;
|
|
84
84
|
value?: number | undefined;
|
|
85
85
|
valueType?: ValueType | undefined;
|
|
86
86
|
admin?: import("mongoose").Types.ObjectId | null | undefined;
|
|
@@ -92,8 +92,8 @@ declare const DiscountMarketingValidationSchema: z.ZodObject<{
|
|
|
92
92
|
end?: string | Date | undefined;
|
|
93
93
|
};
|
|
94
94
|
shop: string | import("mongoose").Types.ObjectId;
|
|
95
|
-
marketingType: MarketingType.DISCOUNT;
|
|
96
95
|
isAppliedByCompany: boolean;
|
|
96
|
+
marketingType: MarketingType.DISCOUNT;
|
|
97
97
|
value?: number | undefined;
|
|
98
98
|
status?: import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus | undefined;
|
|
99
99
|
valueType?: ValueType | undefined;
|
|
@@ -101,6 +101,10 @@ declare const DiscountMarketingValidationSchema: z.ZodObject<{
|
|
|
101
101
|
isSpendLimitEnabled?: boolean | undefined;
|
|
102
102
|
categories?: (string | import("mongoose").Types.ObjectId)[] | undefined;
|
|
103
103
|
admin?: string | import("mongoose").Types.ObjectId | null | undefined;
|
|
104
|
+
isEntireMenu?: boolean | undefined;
|
|
105
|
+
isMaxDiscountPerOrderEnabled?: boolean | undefined;
|
|
106
|
+
maxDiscountPerOrder?: number | undefined;
|
|
107
|
+
pausedAt?: string | Date | null | undefined;
|
|
104
108
|
products?: {
|
|
105
109
|
product: string | import("mongoose").Types.ObjectId;
|
|
106
110
|
value?: number | undefined;
|
|
@@ -109,14 +113,10 @@ declare const DiscountMarketingValidationSchema: z.ZodObject<{
|
|
|
109
113
|
marketing?: string | import("mongoose").Types.ObjectId | undefined;
|
|
110
114
|
isBuy1Get1?: boolean | undefined;
|
|
111
115
|
}[] | undefined;
|
|
112
|
-
pausedAt?: string | Date | null | undefined;
|
|
113
|
-
isEntireMenu?: boolean | undefined;
|
|
114
116
|
categoryValue?: number | undefined;
|
|
115
117
|
categoryValueType?: ValueType | undefined;
|
|
116
118
|
excludeProducts?: (string | import("mongoose").Types.ObjectId)[] | undefined;
|
|
117
119
|
isOnlyForSubscriber?: boolean | undefined;
|
|
118
|
-
maxDiscountPerOrder?: number | undefined;
|
|
119
|
-
isMaxDiscountPerOrderEnabled?: boolean | undefined;
|
|
120
120
|
}>, DiscountMarketingSchema: z.ZodObject<{
|
|
121
121
|
marketingType: z.ZodOptional<z.ZodLiteral<MarketingType.DISCOUNT>>;
|
|
122
122
|
categoryValueType: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ValueType>>>;
|
|
@@ -335,6 +335,11 @@ declare const DiscountMarketingValidationSchemaRefined: z.ZodEffects<z.ZodObject
|
|
|
335
335
|
isSpendLimitEnabled: boolean;
|
|
336
336
|
shop: import("mongoose").Types.ObjectId;
|
|
337
337
|
categories: import("mongoose").Types.ObjectId[];
|
|
338
|
+
isAppliedByCompany: boolean;
|
|
339
|
+
isEntireMenu: boolean;
|
|
340
|
+
isMaxDiscountPerOrderEnabled: boolean;
|
|
341
|
+
maxDiscountPerOrder: number;
|
|
342
|
+
pausedAt: Date | null;
|
|
338
343
|
products: {
|
|
339
344
|
product: import("mongoose").Types.ObjectId;
|
|
340
345
|
value?: number | undefined;
|
|
@@ -344,13 +349,8 @@ declare const DiscountMarketingValidationSchemaRefined: z.ZodEffects<z.ZodObject
|
|
|
344
349
|
isBuy1Get1?: boolean | undefined;
|
|
345
350
|
}[];
|
|
346
351
|
marketingType: MarketingType.DISCOUNT;
|
|
347
|
-
isAppliedByCompany: boolean;
|
|
348
|
-
pausedAt: Date | null;
|
|
349
|
-
isEntireMenu: boolean;
|
|
350
352
|
excludeProducts: import("mongoose").Types.ObjectId[];
|
|
351
353
|
isOnlyForSubscriber: boolean;
|
|
352
|
-
maxDiscountPerOrder: number;
|
|
353
|
-
isMaxDiscountPerOrderEnabled: boolean;
|
|
354
354
|
value?: number | undefined;
|
|
355
355
|
valueType?: ValueType | undefined;
|
|
356
356
|
admin?: import("mongoose").Types.ObjectId | null | undefined;
|
|
@@ -362,8 +362,8 @@ declare const DiscountMarketingValidationSchemaRefined: z.ZodEffects<z.ZodObject
|
|
|
362
362
|
end?: string | Date | undefined;
|
|
363
363
|
};
|
|
364
364
|
shop: string | import("mongoose").Types.ObjectId;
|
|
365
|
-
marketingType: MarketingType.DISCOUNT;
|
|
366
365
|
isAppliedByCompany: boolean;
|
|
366
|
+
marketingType: MarketingType.DISCOUNT;
|
|
367
367
|
value?: number | undefined;
|
|
368
368
|
status?: import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus | undefined;
|
|
369
369
|
valueType?: ValueType | undefined;
|
|
@@ -371,6 +371,10 @@ declare const DiscountMarketingValidationSchemaRefined: z.ZodEffects<z.ZodObject
|
|
|
371
371
|
isSpendLimitEnabled?: boolean | undefined;
|
|
372
372
|
categories?: (string | import("mongoose").Types.ObjectId)[] | undefined;
|
|
373
373
|
admin?: string | import("mongoose").Types.ObjectId | null | undefined;
|
|
374
|
+
isEntireMenu?: boolean | undefined;
|
|
375
|
+
isMaxDiscountPerOrderEnabled?: boolean | undefined;
|
|
376
|
+
maxDiscountPerOrder?: number | undefined;
|
|
377
|
+
pausedAt?: string | Date | null | undefined;
|
|
374
378
|
products?: {
|
|
375
379
|
product: string | import("mongoose").Types.ObjectId;
|
|
376
380
|
value?: number | undefined;
|
|
@@ -379,14 +383,10 @@ declare const DiscountMarketingValidationSchemaRefined: z.ZodEffects<z.ZodObject
|
|
|
379
383
|
marketing?: string | import("mongoose").Types.ObjectId | undefined;
|
|
380
384
|
isBuy1Get1?: boolean | undefined;
|
|
381
385
|
}[] | undefined;
|
|
382
|
-
pausedAt?: string | Date | null | undefined;
|
|
383
|
-
isEntireMenu?: boolean | undefined;
|
|
384
386
|
categoryValue?: number | undefined;
|
|
385
387
|
categoryValueType?: ValueType | undefined;
|
|
386
388
|
excludeProducts?: (string | import("mongoose").Types.ObjectId)[] | undefined;
|
|
387
389
|
isOnlyForSubscriber?: boolean | undefined;
|
|
388
|
-
maxDiscountPerOrder?: number | undefined;
|
|
389
|
-
isMaxDiscountPerOrderEnabled?: boolean | undefined;
|
|
390
390
|
}>, {
|
|
391
391
|
status: import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus;
|
|
392
392
|
duration: {
|
|
@@ -397,6 +397,11 @@ declare const DiscountMarketingValidationSchemaRefined: z.ZodEffects<z.ZodObject
|
|
|
397
397
|
isSpendLimitEnabled: boolean;
|
|
398
398
|
shop: import("mongoose").Types.ObjectId;
|
|
399
399
|
categories: import("mongoose").Types.ObjectId[];
|
|
400
|
+
isAppliedByCompany: boolean;
|
|
401
|
+
isEntireMenu: boolean;
|
|
402
|
+
isMaxDiscountPerOrderEnabled: boolean;
|
|
403
|
+
maxDiscountPerOrder: number;
|
|
404
|
+
pausedAt: Date | null;
|
|
400
405
|
products: {
|
|
401
406
|
product: import("mongoose").Types.ObjectId;
|
|
402
407
|
value?: number | undefined;
|
|
@@ -406,13 +411,8 @@ declare const DiscountMarketingValidationSchemaRefined: z.ZodEffects<z.ZodObject
|
|
|
406
411
|
isBuy1Get1?: boolean | undefined;
|
|
407
412
|
}[];
|
|
408
413
|
marketingType: MarketingType.DISCOUNT;
|
|
409
|
-
isAppliedByCompany: boolean;
|
|
410
|
-
pausedAt: Date | null;
|
|
411
|
-
isEntireMenu: boolean;
|
|
412
414
|
excludeProducts: import("mongoose").Types.ObjectId[];
|
|
413
415
|
isOnlyForSubscriber: boolean;
|
|
414
|
-
maxDiscountPerOrder: number;
|
|
415
|
-
isMaxDiscountPerOrderEnabled: boolean;
|
|
416
416
|
value?: number | undefined;
|
|
417
417
|
valueType?: ValueType | undefined;
|
|
418
418
|
admin?: import("mongoose").Types.ObjectId | null | undefined;
|
|
@@ -424,8 +424,8 @@ declare const DiscountMarketingValidationSchemaRefined: z.ZodEffects<z.ZodObject
|
|
|
424
424
|
end?: string | Date | undefined;
|
|
425
425
|
};
|
|
426
426
|
shop: string | import("mongoose").Types.ObjectId;
|
|
427
|
-
marketingType: MarketingType.DISCOUNT;
|
|
428
427
|
isAppliedByCompany: boolean;
|
|
428
|
+
marketingType: MarketingType.DISCOUNT;
|
|
429
429
|
value?: number | undefined;
|
|
430
430
|
status?: import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus | undefined;
|
|
431
431
|
valueType?: ValueType | undefined;
|
|
@@ -433,6 +433,10 @@ declare const DiscountMarketingValidationSchemaRefined: z.ZodEffects<z.ZodObject
|
|
|
433
433
|
isSpendLimitEnabled?: boolean | undefined;
|
|
434
434
|
categories?: (string | import("mongoose").Types.ObjectId)[] | undefined;
|
|
435
435
|
admin?: string | import("mongoose").Types.ObjectId | null | undefined;
|
|
436
|
+
isEntireMenu?: boolean | undefined;
|
|
437
|
+
isMaxDiscountPerOrderEnabled?: boolean | undefined;
|
|
438
|
+
maxDiscountPerOrder?: number | undefined;
|
|
439
|
+
pausedAt?: string | Date | null | undefined;
|
|
436
440
|
products?: {
|
|
437
441
|
product: string | import("mongoose").Types.ObjectId;
|
|
438
442
|
value?: number | undefined;
|
|
@@ -441,14 +445,10 @@ declare const DiscountMarketingValidationSchemaRefined: z.ZodEffects<z.ZodObject
|
|
|
441
445
|
marketing?: string | import("mongoose").Types.ObjectId | undefined;
|
|
442
446
|
isBuy1Get1?: boolean | undefined;
|
|
443
447
|
}[] | undefined;
|
|
444
|
-
pausedAt?: string | Date | null | undefined;
|
|
445
|
-
isEntireMenu?: boolean | undefined;
|
|
446
448
|
categoryValue?: number | undefined;
|
|
447
449
|
categoryValueType?: ValueType | undefined;
|
|
448
450
|
excludeProducts?: (string | import("mongoose").Types.ObjectId)[] | undefined;
|
|
449
451
|
isOnlyForSubscriber?: boolean | undefined;
|
|
450
|
-
maxDiscountPerOrder?: number | undefined;
|
|
451
|
-
isMaxDiscountPerOrderEnabled?: boolean | undefined;
|
|
452
452
|
}>;
|
|
453
453
|
declare const UpdateDiscountMarketingSchema: z.ZodEffects<z.ZodObject<{
|
|
454
454
|
[x: string]: z.ZodOptional<z.ZodTypeAny>;
|