@lyxa.ai/marketing 1.0.67 → 1.0.69
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib/index.d.ts +21 -11810
- 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 +1415 -7085
- package/dist/lib/modules/coupon/routers/coupon.router.d.ts.map +1 -1
- package/dist/lib/modules/coupon/routers/coupon.router.js +37 -22
- package/dist/lib/modules/coupon/routers/coupon.router.js.map +1 -1
- package/dist/lib/modules/coupon/services/coupon.service.d.ts +41 -6
- package/dist/lib/modules/coupon/services/coupon.service.d.ts.map +1 -1
- package/dist/lib/modules/coupon/services/coupon.service.js +290 -93
- package/dist/lib/modules/coupon/services/coupon.service.js.map +1 -1
- package/dist/lib/modules/coupon/services/patterns/repository/CouponMetricsRepository.d.ts.map +1 -1
- package/dist/lib/modules/coupon/services/patterns/repository/CouponMetricsRepository.js +11 -15
- package/dist/lib/modules/coupon/services/patterns/repository/CouponMetricsRepository.js.map +1 -1
- package/dist/lib/modules/coupon/services/patterns/repository/CouponRepository.d.ts +30 -2
- package/dist/lib/modules/coupon/services/patterns/repository/CouponRepository.d.ts.map +1 -1
- package/dist/lib/modules/coupon/services/patterns/repository/CouponRepository.js +494 -54
- package/dist/lib/modules/coupon/services/patterns/repository/CouponRepository.js.map +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 +1 -0
- package/dist/lib/modules/coupon/services/referral-reward-coupon.service.js.map +1 -1
- package/dist/lib/modules/coupon/transformers/coupon.transformer.d.ts +54 -2
- package/dist/lib/modules/coupon/transformers/coupon.transformer.d.ts.map +1 -1
- package/dist/lib/modules/coupon/validations/all-coupons.validation.d.ts +364 -3193
- package/dist/lib/modules/coupon/validations/all-coupons.validation.d.ts.map +1 -1
- package/dist/lib/modules/coupon/validations/all-coupons.validation.js +1 -2
- package/dist/lib/modules/coupon/validations/all-coupons.validation.js.map +1 -1
- package/dist/lib/modules/coupon/validations/coupon.validation.d.ts +580 -1
- package/dist/lib/modules/coupon/validations/coupon.validation.d.ts.map +1 -1
- package/dist/lib/modules/coupon/validations/coupon.validation.js +48 -1
- package/dist/lib/modules/coupon/validations/coupon.validation.js.map +1 -1
- package/dist/lib/modules/coupon/validations/create-coupon.validation.d.ts +116 -8
- package/dist/lib/modules/coupon/validations/create-coupon.validation.d.ts.map +1 -1
- package/dist/lib/modules/coupon/validations/create-coupon.validation.js +4 -1
- package/dist/lib/modules/coupon/validations/create-coupon.validation.js.map +1 -1
- package/dist/lib/modules/coupon/validations/global-coupon.validation.d.ts +18 -0
- package/dist/lib/modules/coupon/validations/global-coupon.validation.d.ts.map +1 -1
- package/dist/lib/modules/coupon/validations/global-coupon.validation.js +2 -0
- package/dist/lib/modules/coupon/validations/global-coupon.validation.js.map +1 -1
- package/dist/lib/modules/coupon/validations/individual-store-coupon.validation.d.ts +18 -18
- package/dist/lib/modules/coupon/validations/individual-store-coupon.validation.js +2 -2
- package/dist/lib/modules/coupon/validations/individual-store-coupon.validation.js.map +1 -1
- package/dist/lib/modules/coupon/validations/referral-reward-coupon.validation.d.ts +374 -0
- package/dist/lib/modules/coupon/validations/referral-reward-coupon.validation.d.ts.map +1 -1
- package/dist/lib/modules/coupon/validations/referral-reward-coupon.validation.js +2 -0
- package/dist/lib/modules/coupon/validations/referral-reward-coupon.validation.js.map +1 -1
- package/dist/lib/modules/deal-setting/routers/deal-setting.router.d.ts +5 -5
- package/dist/lib/modules/deal-setting/routers/deal-setting.router.d.ts.map +1 -1
- package/dist/lib/modules/deal-setting/services/deal-setting.service.d.ts.map +1 -1
- package/dist/lib/modules/deal-setting/services/deal-setting.service.js +4 -1
- package/dist/lib/modules/deal-setting/services/deal-setting.service.js.map +1 -1
- package/dist/lib/modules/featured-setting/routers/featured-setting.router.d.ts +5 -5
- package/dist/lib/modules/featured-setting/routers/featured-setting.router.d.ts.map +1 -1
- package/dist/lib/modules/featured-setting/services/featured-setting.service.d.ts.map +1 -1
- package/dist/lib/modules/featured-setting/services/featured-setting.service.js +3 -0
- package/dist/lib/modules/featured-setting/services/featured-setting.service.js.map +1 -1
- package/dist/lib/modules/limited-time-offer/campaign/campaign.router.d.ts +54 -8
- 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 +13 -0
- package/dist/lib/modules/limited-time-offer/campaign/campaign.router.js.map +1 -1
- package/dist/lib/modules/limited-time-offer/campaign/jobs/index.d.ts.map +1 -1
- package/dist/lib/modules/limited-time-offer/campaign/jobs/index.js +9 -0
- package/dist/lib/modules/limited-time-offer/campaign/jobs/index.js.map +1 -1
- package/dist/lib/modules/limited-time-offer/campaign/jobs/limited-time-offer-campaign.worker.d.ts +0 -1
- package/dist/lib/modules/limited-time-offer/campaign/jobs/limited-time-offer-campaign.worker.d.ts.map +1 -1
- package/dist/lib/modules/limited-time-offer/campaign/jobs/limited-time-offer-campaign.worker.js +2 -6
- package/dist/lib/modules/limited-time-offer/campaign/jobs/limited-time-offer-campaign.worker.js.map +1 -1
- package/dist/lib/modules/limited-time-offer/campaign/limited-time-offer-campaign.builder.d.ts +16 -3
- package/dist/lib/modules/limited-time-offer/campaign/limited-time-offer-campaign.builder.d.ts.map +1 -1
- package/dist/lib/modules/limited-time-offer/campaign/limited-time-offer-campaign.builder.js +22 -3
- package/dist/lib/modules/limited-time-offer/campaign/limited-time-offer-campaign.builder.js.map +1 -1
- package/dist/lib/modules/limited-time-offer/campaign/limited-time-offer-campaign.repository.d.ts +2 -0
- package/dist/lib/modules/limited-time-offer/campaign/limited-time-offer-campaign.repository.d.ts.map +1 -1
- package/dist/lib/modules/limited-time-offer/campaign/limited-time-offer-campaign.repository.js +12 -0
- package/dist/lib/modules/limited-time-offer/campaign/limited-time-offer-campaign.repository.js.map +1 -1
- package/dist/lib/modules/limited-time-offer/campaign/limited-time-offer-campaign.validation.d.ts +242 -35
- 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 +19 -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-lifecycle.service.d.ts +10 -1
- package/dist/lib/modules/limited-time-offer/campaign/services/limited-time-offer-campaign-lifecycle.service.d.ts.map +1 -1
- package/dist/lib/modules/limited-time-offer/campaign/services/limited-time-offer-campaign-lifecycle.service.js +83 -1
- package/dist/lib/modules/limited-time-offer/campaign/services/limited-time-offer-campaign-lifecycle.service.js.map +1 -1
- package/dist/lib/modules/limited-time-offer/campaign/services/limited-time-offer-campaign-scheduler.service.d.ts +4 -0
- package/dist/lib/modules/limited-time-offer/campaign/services/limited-time-offer-campaign-scheduler.service.d.ts.map +1 -1
- package/dist/lib/modules/limited-time-offer/campaign/services/limited-time-offer-campaign-scheduler.service.js +75 -6
- package/dist/lib/modules/limited-time-offer/campaign/services/limited-time-offer-campaign-scheduler.service.js.map +1 -1
- package/dist/lib/modules/limited-time-offer/campaign/services/limited-time-offer-campaign.service.d.ts +1 -1
- 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 +46 -19
- 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 +241 -10
- package/dist/lib/modules/limited-time-offer/limited-time-offer.router.d.ts.map +1 -1
- package/dist/lib/modules/limited-time-offer/limited-time-offer.service.d.ts +2 -0
- package/dist/lib/modules/limited-time-offer/limited-time-offer.service.d.ts.map +1 -1
- package/dist/lib/modules/limited-time-offer/limited-time-offer.service.js +13 -4
- package/dist/lib/modules/limited-time-offer/limited-time-offer.service.js.map +1 -1
- package/dist/lib/modules/limited-time-offer/notification/limited-time-offer-notification.constants.d.ts +1 -1
- package/dist/lib/modules/limited-time-offer/notification/limited-time-offer-notification.constants.js +1 -1
- package/dist/lib/modules/limited-time-offer/notification/limited-time-offer-notification.constants.js.map +1 -1
- package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.builder.d.ts +30 -3
- package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.builder.d.ts.map +1 -1
- package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.builder.js +23 -1
- package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.builder.js.map +1 -1
- package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.repository.d.ts +18 -0
- package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.repository.d.ts.map +1 -1
- package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.repository.js +103 -0
- package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.repository.js.map +1 -1
- package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.router.d.ts +187 -2
- package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.router.d.ts.map +1 -1
- package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.router.js +34 -0
- package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.router.js.map +1 -1
- package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.service.d.ts +1 -0
- package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.service.d.ts.map +1 -0
- package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.service.js +2 -0
- package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.service.js.map +1 -0
- package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.validation.d.ts +515 -116
- package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.validation.d.ts.map +1 -1
- package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.validation.js +16 -6
- package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.validation.js.map +1 -1
- package/dist/lib/modules/limited-time-offer/participant/services/limited-time-offer-participant-marketing.service.d.ts +12 -4
- package/dist/lib/modules/limited-time-offer/participant/services/limited-time-offer-participant-marketing.service.d.ts.map +1 -1
- package/dist/lib/modules/limited-time-offer/participant/services/limited-time-offer-participant-marketing.service.js +53 -7
- package/dist/lib/modules/limited-time-offer/participant/services/limited-time-offer-participant-marketing.service.js.map +1 -1
- package/dist/lib/modules/limited-time-offer/participant/services/limited-time-offer-participant.service.d.ts +19 -5
- package/dist/lib/modules/limited-time-offer/participant/services/limited-time-offer-participant.service.d.ts.map +1 -1
- package/dist/lib/modules/limited-time-offer/participant/services/limited-time-offer-participant.service.js +114 -16
- package/dist/lib/modules/limited-time-offer/participant/services/limited-time-offer-participant.service.js.map +1 -1
- package/dist/lib/modules/marketing/patterns/repository/MarketingMetricsRepository.d.ts.map +1 -1
- package/dist/lib/modules/marketing/patterns/repository/MarketingMetricsRepository.js +1 -0
- package/dist/lib/modules/marketing/patterns/repository/MarketingMetricsRepository.js.map +1 -1
- package/dist/lib/modules/marketing/routers/marketing.router.d.ts +5 -5
- package/dist/lib/modules/marketing/routers/marketing.router.d.ts.map +1 -1
- package/dist/lib/modules/marketing/services/index.d.ts +1 -0
- package/dist/lib/modules/marketing/services/index.d.ts.map +1 -1
- package/dist/lib/modules/marketing/services/index.js +1 -0
- package/dist/lib/modules/marketing/services/index.js.map +1 -1
- package/dist/lib/modules/marketing/services/marketing.service.d.ts +7 -3
- package/dist/lib/modules/marketing/services/marketing.service.d.ts.map +1 -1
- package/dist/lib/modules/marketing/services/marketing.service.js +87 -19
- package/dist/lib/modules/marketing/services/marketing.service.js.map +1 -1
- package/dist/lib/modules/marketing/services/new-user-discount-marketing.service.d.ts +11 -0
- package/dist/lib/modules/marketing/services/new-user-discount-marketing.service.d.ts.map +1 -0
- package/dist/lib/modules/marketing/services/new-user-discount-marketing.service.js +116 -0
- package/dist/lib/modules/marketing/services/new-user-discount-marketing.service.js.map +1 -0
- package/dist/lib/modules/marketing/services/product-marketing.service.d.ts +1 -0
- package/dist/lib/modules/marketing/services/product-marketing.service.d.ts.map +1 -1
- package/dist/lib/modules/marketing/services/product-marketing.service.js +32 -0
- package/dist/lib/modules/marketing/services/product-marketing.service.js.map +1 -1
- package/dist/lib/modules/marketing/validations/all-marketings.validation.d.ts.map +1 -1
- package/dist/lib/modules/marketing/validations/all-marketings.validation.js +3 -0
- package/dist/lib/modules/marketing/validations/all-marketings.validation.js.map +1 -1
- package/dist/lib/modules/marketing/validations/discount-marketing.validation.d.ts +6 -6
- package/dist/lib/modules/marketing/validations/index.d.ts +1 -0
- package/dist/lib/modules/marketing/validations/index.d.ts.map +1 -1
- package/dist/lib/modules/marketing/validations/index.js +1 -0
- package/dist/lib/modules/marketing/validations/index.js.map +1 -1
- package/dist/lib/modules/marketing/validations/new-user-discount-marketing.validation.d.ts +677 -0
- package/dist/lib/modules/marketing/validations/new-user-discount-marketing.validation.d.ts.map +1 -0
- package/dist/lib/modules/marketing/validations/new-user-discount-marketing.validation.js +83 -0
- package/dist/lib/modules/marketing/validations/new-user-discount-marketing.validation.js.map +1 -0
- package/dist/lib/modules/marketing/validations/punch-marketing.validation.d.ts +8 -8
- package/dist/lib/modules/marketing/validations/spend-to-get-marketing.validation.d.ts.map +1 -1
- package/dist/lib/modules/marketing/validations/spend-to-get-marketing.validation.js +30 -0
- package/dist/lib/modules/marketing/validations/spend-to-get-marketing.validation.js.map +1 -1
- package/dist/lib/modules/punch-marketing-history/routers/punch-marketing-history.router.d.ts +6 -6
- package/dist/lib/modules/punch-marketing-history/routers/punch-marketing-history.router.d.ts.map +1 -1
- package/dist/lib/modules/punch-marketing-history/validations/punch-marketing-history.validation.d.ts +2 -2
- package/dist/lib/modules/referral-setting/validations/referral-setting.validation.d.ts.map +1 -1
- package/dist/lib/modules/referral-setting/validations/referral-setting.validation.js.map +1 -1
- package/dist/lib/modules/spend-to-get-history/spend-to-get-history.repository.d.ts +3 -2
- package/dist/lib/modules/spend-to-get-history/spend-to-get-history.repository.d.ts.map +1 -1
- package/dist/lib/modules/spend-to-get-history/spend-to-get-history.repository.js +11 -3
- package/dist/lib/modules/spend-to-get-history/spend-to-get-history.repository.js.map +1 -1
- package/dist/lib/modules/spend-to-get-history/spend-to-get-history.router.d.ts +21 -5
- package/dist/lib/modules/spend-to-get-history/spend-to-get-history.router.d.ts.map +1 -1
- package/dist/lib/modules/spend-to-get-history/spend-to-get-history.service.d.ts +2 -2
- package/dist/lib/modules/spend-to-get-history/spend-to-get-history.service.d.ts.map +1 -1
- package/dist/lib/modules/spend-to-get-history/spend-to-get-history.service.js.map +1 -1
- package/dist/lib/modules/spend-to-get-history/spend-to-get-history.validation.d.ts +19 -0
- package/dist/lib/modules/spend-to-get-history/spend-to-get-history.validation.d.ts.map +1 -1
- package/dist/lib/modules/spend-to-get-history/spend-to-get-history.validation.js +1 -0
- package/dist/lib/modules/spend-to-get-history/spend-to-get-history.validation.js.map +1 -1
- package/dist/types/index.d.ts +21 -11810
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/modules/coupon/routers/coupon.router.d.ts +1415 -7085
- package/dist/types/modules/coupon/routers/coupon.router.d.ts.map +1 -1
- package/dist/types/modules/coupon/services/coupon.service.d.ts +41 -6
- package/dist/types/modules/coupon/services/coupon.service.d.ts.map +1 -1
- package/dist/types/modules/coupon/services/patterns/repository/CouponMetricsRepository.d.ts.map +1 -1
- package/dist/types/modules/coupon/services/patterns/repository/CouponRepository.d.ts +30 -2
- package/dist/types/modules/coupon/services/patterns/repository/CouponRepository.d.ts.map +1 -1
- package/dist/types/modules/coupon/services/referral-reward-coupon.service.d.ts.map +1 -1
- package/dist/types/modules/coupon/transformers/coupon.transformer.d.ts +54 -2
- package/dist/types/modules/coupon/transformers/coupon.transformer.d.ts.map +1 -1
- package/dist/types/modules/coupon/validations/all-coupons.validation.d.ts +364 -3193
- package/dist/types/modules/coupon/validations/all-coupons.validation.d.ts.map +1 -1
- package/dist/types/modules/coupon/validations/coupon.validation.d.ts +580 -1
- package/dist/types/modules/coupon/validations/coupon.validation.d.ts.map +1 -1
- package/dist/types/modules/coupon/validations/create-coupon.validation.d.ts +116 -8
- package/dist/types/modules/coupon/validations/create-coupon.validation.d.ts.map +1 -1
- package/dist/types/modules/coupon/validations/global-coupon.validation.d.ts +18 -0
- package/dist/types/modules/coupon/validations/global-coupon.validation.d.ts.map +1 -1
- package/dist/types/modules/coupon/validations/individual-store-coupon.validation.d.ts +18 -18
- package/dist/types/modules/coupon/validations/referral-reward-coupon.validation.d.ts +374 -0
- package/dist/types/modules/coupon/validations/referral-reward-coupon.validation.d.ts.map +1 -1
- package/dist/types/modules/deal-setting/routers/deal-setting.router.d.ts +5 -5
- package/dist/types/modules/deal-setting/routers/deal-setting.router.d.ts.map +1 -1
- package/dist/types/modules/deal-setting/services/deal-setting.service.d.ts.map +1 -1
- package/dist/types/modules/featured-setting/routers/featured-setting.router.d.ts +5 -5
- package/dist/types/modules/featured-setting/routers/featured-setting.router.d.ts.map +1 -1
- package/dist/types/modules/featured-setting/services/featured-setting.service.d.ts.map +1 -1
- package/dist/types/modules/limited-time-offer/campaign/campaign.router.d.ts +54 -8
- package/dist/types/modules/limited-time-offer/campaign/campaign.router.d.ts.map +1 -1
- package/dist/types/modules/limited-time-offer/campaign/jobs/index.d.ts.map +1 -1
- package/dist/types/modules/limited-time-offer/campaign/jobs/limited-time-offer-campaign.worker.d.ts +0 -1
- package/dist/types/modules/limited-time-offer/campaign/jobs/limited-time-offer-campaign.worker.d.ts.map +1 -1
- package/dist/types/modules/limited-time-offer/campaign/limited-time-offer-campaign.builder.d.ts +16 -3
- package/dist/types/modules/limited-time-offer/campaign/limited-time-offer-campaign.builder.d.ts.map +1 -1
- package/dist/types/modules/limited-time-offer/campaign/limited-time-offer-campaign.repository.d.ts +2 -0
- package/dist/types/modules/limited-time-offer/campaign/limited-time-offer-campaign.repository.d.ts.map +1 -1
- package/dist/types/modules/limited-time-offer/campaign/limited-time-offer-campaign.validation.d.ts +242 -35
- 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-lifecycle.service.d.ts +10 -1
- package/dist/types/modules/limited-time-offer/campaign/services/limited-time-offer-campaign-lifecycle.service.d.ts.map +1 -1
- package/dist/types/modules/limited-time-offer/campaign/services/limited-time-offer-campaign-scheduler.service.d.ts +4 -0
- package/dist/types/modules/limited-time-offer/campaign/services/limited-time-offer-campaign-scheduler.service.d.ts.map +1 -1
- package/dist/types/modules/limited-time-offer/campaign/services/limited-time-offer-campaign.service.d.ts +1 -1
- 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 +241 -10
- package/dist/types/modules/limited-time-offer/limited-time-offer.router.d.ts.map +1 -1
- package/dist/types/modules/limited-time-offer/limited-time-offer.service.d.ts +2 -0
- package/dist/types/modules/limited-time-offer/limited-time-offer.service.d.ts.map +1 -1
- package/dist/types/modules/limited-time-offer/notification/limited-time-offer-notification.constants.d.ts +1 -1
- package/dist/types/modules/limited-time-offer/participant/limited-time-offer-participant.builder.d.ts +30 -3
- package/dist/types/modules/limited-time-offer/participant/limited-time-offer-participant.builder.d.ts.map +1 -1
- package/dist/types/modules/limited-time-offer/participant/limited-time-offer-participant.repository.d.ts +18 -0
- package/dist/types/modules/limited-time-offer/participant/limited-time-offer-participant.repository.d.ts.map +1 -1
- package/dist/types/modules/limited-time-offer/participant/limited-time-offer-participant.router.d.ts +187 -2
- package/dist/types/modules/limited-time-offer/participant/limited-time-offer-participant.router.d.ts.map +1 -1
- package/dist/types/modules/limited-time-offer/participant/limited-time-offer-participant.service.d.ts +1 -0
- package/dist/types/modules/limited-time-offer/participant/limited-time-offer-participant.service.d.ts.map +1 -0
- package/dist/types/modules/limited-time-offer/participant/limited-time-offer-participant.validation.d.ts +515 -116
- package/dist/types/modules/limited-time-offer/participant/limited-time-offer-participant.validation.d.ts.map +1 -1
- package/dist/types/modules/limited-time-offer/participant/services/limited-time-offer-participant-marketing.service.d.ts +12 -4
- package/dist/types/modules/limited-time-offer/participant/services/limited-time-offer-participant-marketing.service.d.ts.map +1 -1
- package/dist/types/modules/limited-time-offer/participant/services/limited-time-offer-participant.service.d.ts +19 -5
- package/dist/types/modules/limited-time-offer/participant/services/limited-time-offer-participant.service.d.ts.map +1 -1
- package/dist/types/modules/marketing/patterns/repository/MarketingMetricsRepository.d.ts.map +1 -1
- package/dist/types/modules/marketing/routers/marketing.router.d.ts +5 -5
- package/dist/types/modules/marketing/routers/marketing.router.d.ts.map +1 -1
- package/dist/types/modules/marketing/services/index.d.ts +1 -0
- package/dist/types/modules/marketing/services/index.d.ts.map +1 -1
- package/dist/types/modules/marketing/services/marketing.service.d.ts +7 -3
- package/dist/types/modules/marketing/services/marketing.service.d.ts.map +1 -1
- package/dist/types/modules/marketing/services/new-user-discount-marketing.service.d.ts +20 -0
- package/dist/types/modules/marketing/services/new-user-discount-marketing.service.d.ts.map +1 -0
- package/dist/types/modules/marketing/services/product-marketing.service.d.ts +6 -0
- package/dist/types/modules/marketing/services/product-marketing.service.d.ts.map +1 -1
- package/dist/types/modules/marketing/validations/all-marketings.validation.d.ts.map +1 -1
- package/dist/types/modules/marketing/validations/discount-marketing.validation.d.ts +6 -6
- package/dist/types/modules/marketing/validations/index.d.ts +1 -0
- package/dist/types/modules/marketing/validations/index.d.ts.map +1 -1
- package/dist/types/modules/marketing/validations/new-user-discount-marketing.validation.d.ts +686 -0
- package/dist/types/modules/marketing/validations/new-user-discount-marketing.validation.d.ts.map +1 -0
- package/dist/types/modules/marketing/validations/punch-marketing.validation.d.ts +8 -8
- package/dist/types/modules/marketing/validations/spend-to-get-marketing.validation.d.ts.map +1 -1
- package/dist/types/modules/punch-marketing-history/routers/punch-marketing-history.router.d.ts +6 -6
- package/dist/types/modules/punch-marketing-history/routers/punch-marketing-history.router.d.ts.map +1 -1
- package/dist/types/modules/punch-marketing-history/validations/punch-marketing-history.validation.d.ts +2 -2
- package/dist/types/modules/referral-setting/validations/referral-setting.validation.d.ts.map +1 -1
- package/dist/types/modules/spend-to-get-history/spend-to-get-history.repository.d.ts +3 -2
- package/dist/types/modules/spend-to-get-history/spend-to-get-history.repository.d.ts.map +1 -1
- package/dist/types/modules/spend-to-get-history/spend-to-get-history.router.d.ts +21 -5
- package/dist/types/modules/spend-to-get-history/spend-to-get-history.router.d.ts.map +1 -1
- package/dist/types/modules/spend-to-get-history/spend-to-get-history.service.d.ts +2 -2
- package/dist/types/modules/spend-to-get-history/spend-to-get-history.service.d.ts.map +1 -1
- package/dist/types/modules/spend-to-get-history/spend-to-get-history.validation.d.ts +19 -0
- package/dist/types/modules/spend-to-get-history/spend-to-get-history.validation.d.ts.map +1 -1
- package/package.json +2 -6
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
export declare const CreateCouponSchema: import("zod").ZodEffects<import("zod").ZodUnion<[import("zod").ZodObject<{
|
|
2
2
|
couponType: import("zod").ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.GLOBAL>;
|
|
3
|
+
isCouponDurationInDaysEnabled: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodBoolean>>;
|
|
4
|
+
couponDurationInDays: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
|
|
3
5
|
valueType: import("zod").ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>;
|
|
4
6
|
value: import("zod").ZodNumber;
|
|
5
7
|
secondaryCurrencyValue: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
@@ -74,6 +76,8 @@ export declare const CreateCouponSchema: import("zod").ZodEffects<import("zod").
|
|
|
74
76
|
} | undefined;
|
|
75
77
|
createdBy?: import("mongoose").Types.ObjectId | undefined;
|
|
76
78
|
isExpired?: boolean | undefined;
|
|
79
|
+
isCouponDurationInDaysEnabled?: boolean | null | undefined;
|
|
80
|
+
couponDurationInDays?: number | null | undefined;
|
|
77
81
|
}, {
|
|
78
82
|
code: string;
|
|
79
83
|
value: number;
|
|
@@ -104,6 +108,8 @@ export declare const CreateCouponSchema: import("zod").ZodEffects<import("zod").
|
|
|
104
108
|
isOrderLimitPerUserEnabled?: boolean | undefined;
|
|
105
109
|
createdBy?: string | import("mongoose").Types.ObjectId | undefined;
|
|
106
110
|
isExpired?: boolean | undefined;
|
|
111
|
+
isCouponDurationInDaysEnabled?: boolean | null | undefined;
|
|
112
|
+
couponDurationInDays?: number | null | undefined;
|
|
107
113
|
}>, import("zod").ZodObject<{
|
|
108
114
|
couponType: import("zod").ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.REFERRAL_CODE>;
|
|
109
115
|
orderLimitPerUser: import("zod").ZodLiteral<1>;
|
|
@@ -133,6 +139,56 @@ export declare const CreateCouponSchema: import("zod").ZodEffects<import("zod").
|
|
|
133
139
|
user: import("zod").ZodUnion<[import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, string, string>, import("mongoose").Types.ObjectId, string>, import("zod").ZodType<import("mongoose").Types.ObjectId, import("zod").ZodTypeDef, import("mongoose").Types.ObjectId>]>;
|
|
134
140
|
referralCodeUsedBy: import("zod").ZodUnion<[import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, string, string>, import("mongoose").Types.ObjectId, string>, import("zod").ZodType<import("mongoose").Types.ObjectId, import("zod").ZodTypeDef, import("mongoose").Types.ObjectId>]>;
|
|
135
141
|
referralCodeUsedOnOrder: import("zod").ZodUnion<[import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, string, string>, import("mongoose").Types.ObjectId, string>, import("zod").ZodType<import("mongoose").Types.ObjectId, import("zod").ZodTypeDef, import("mongoose").Types.ObjectId>]>;
|
|
142
|
+
referralSettingSnapShot: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
143
|
+
sender: import("zod").ZodObject<{
|
|
144
|
+
valueType: import("zod").ZodDefault<import("zod").ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
145
|
+
value: import("zod").ZodNumber;
|
|
146
|
+
minimumOrderValue: import("zod").ZodDefault<import("zod").ZodNumber>;
|
|
147
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
148
|
+
value: number;
|
|
149
|
+
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
150
|
+
minimumOrderValue: number;
|
|
151
|
+
}, {
|
|
152
|
+
value: number;
|
|
153
|
+
valueType?: import("@lyxa.ai/core/dist/utilities/enum").ValueType | undefined;
|
|
154
|
+
minimumOrderValue?: number | undefined;
|
|
155
|
+
}>;
|
|
156
|
+
receiver: import("zod").ZodObject<{
|
|
157
|
+
valueType: import("zod").ZodDefault<import("zod").ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
158
|
+
value: import("zod").ZodNumber;
|
|
159
|
+
minimumOrderValue: import("zod").ZodDefault<import("zod").ZodNumber>;
|
|
160
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
161
|
+
value: number;
|
|
162
|
+
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
163
|
+
minimumOrderValue: number;
|
|
164
|
+
}, {
|
|
165
|
+
value: number;
|
|
166
|
+
valueType?: import("@lyxa.ai/core/dist/utilities/enum").ValueType | undefined;
|
|
167
|
+
minimumOrderValue?: number | undefined;
|
|
168
|
+
}>;
|
|
169
|
+
}, "strict", import("zod").ZodTypeAny, {
|
|
170
|
+
sender: {
|
|
171
|
+
value: number;
|
|
172
|
+
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
173
|
+
minimumOrderValue: number;
|
|
174
|
+
};
|
|
175
|
+
receiver: {
|
|
176
|
+
value: number;
|
|
177
|
+
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
178
|
+
minimumOrderValue: number;
|
|
179
|
+
};
|
|
180
|
+
}, {
|
|
181
|
+
sender: {
|
|
182
|
+
value: number;
|
|
183
|
+
valueType?: import("@lyxa.ai/core/dist/utilities/enum").ValueType | undefined;
|
|
184
|
+
minimumOrderValue?: number | undefined;
|
|
185
|
+
};
|
|
186
|
+
receiver: {
|
|
187
|
+
value: number;
|
|
188
|
+
valueType?: import("@lyxa.ai/core/dist/utilities/enum").ValueType | undefined;
|
|
189
|
+
minimumOrderValue?: number | undefined;
|
|
190
|
+
};
|
|
191
|
+
}>>;
|
|
136
192
|
valueType: import("zod").ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>;
|
|
137
193
|
value: import("zod").ZodNumber;
|
|
138
194
|
secondaryCurrencyValue: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
@@ -210,6 +266,18 @@ export declare const CreateCouponSchema: import("zod").ZodEffects<import("zod").
|
|
|
210
266
|
} | undefined;
|
|
211
267
|
createdBy?: import("mongoose").Types.ObjectId | undefined;
|
|
212
268
|
isExpired?: boolean | undefined;
|
|
269
|
+
referralSettingSnapShot?: {
|
|
270
|
+
sender: {
|
|
271
|
+
value: number;
|
|
272
|
+
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
273
|
+
minimumOrderValue: number;
|
|
274
|
+
};
|
|
275
|
+
receiver: {
|
|
276
|
+
value: number;
|
|
277
|
+
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
278
|
+
minimumOrderValue: number;
|
|
279
|
+
};
|
|
280
|
+
} | undefined;
|
|
213
281
|
}, {
|
|
214
282
|
code: string;
|
|
215
283
|
value: number;
|
|
@@ -243,6 +311,18 @@ export declare const CreateCouponSchema: import("zod").ZodEffects<import("zod").
|
|
|
243
311
|
isOrderLimitPerUserEnabled?: boolean | undefined;
|
|
244
312
|
createdBy?: string | import("mongoose").Types.ObjectId | undefined;
|
|
245
313
|
isExpired?: boolean | undefined;
|
|
314
|
+
referralSettingSnapShot?: {
|
|
315
|
+
sender: {
|
|
316
|
+
value: number;
|
|
317
|
+
valueType?: import("@lyxa.ai/core/dist/utilities/enum").ValueType | undefined;
|
|
318
|
+
minimumOrderValue?: number | undefined;
|
|
319
|
+
};
|
|
320
|
+
receiver: {
|
|
321
|
+
value: number;
|
|
322
|
+
valueType?: import("@lyxa.ai/core/dist/utilities/enum").ValueType | undefined;
|
|
323
|
+
minimumOrderValue?: number | undefined;
|
|
324
|
+
};
|
|
325
|
+
} | undefined;
|
|
246
326
|
}>, import("zod").ZodObject<{
|
|
247
327
|
couponType: import("zod").ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.SHOPS_CATEGORIES>;
|
|
248
328
|
itemTypes: import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ItemType>, "many">>;
|
|
@@ -366,8 +446,8 @@ export declare const CreateCouponSchema: import("zod").ZodEffects<import("zod").
|
|
|
366
446
|
firstOrderOnly?: boolean | undefined;
|
|
367
447
|
}>, import("zod").ZodEffects<import("zod").ZodObject<{
|
|
368
448
|
couponType: import("zod").ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.INDIVIDUAL_STORE>;
|
|
369
|
-
shop: import("zod").ZodOptional<import("zod").
|
|
370
|
-
vendor: import("zod").ZodOptional<import("zod").
|
|
449
|
+
shop: import("zod").ZodOptional<import("zod").ZodEffects<import("zod").ZodString, import("mongoose").Types.ObjectId, string>>;
|
|
450
|
+
vendor: import("zod").ZodOptional<import("zod").ZodEffects<import("zod").ZodString, import("mongoose").Types.ObjectId, string>>;
|
|
371
451
|
isShopCoverExpenses: import("zod").ZodDefault<import("zod").ZodBoolean>;
|
|
372
452
|
firstOrderOnly: import("zod").ZodDefault<import("zod").ZodBoolean>;
|
|
373
453
|
valueType: import("zod").ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>;
|
|
@@ -478,8 +558,8 @@ export declare const CreateCouponSchema: import("zod").ZodEffects<import("zod").
|
|
|
478
558
|
isOrderLimitPerUserEnabled?: boolean | undefined;
|
|
479
559
|
createdBy?: string | import("mongoose").Types.ObjectId | undefined;
|
|
480
560
|
isExpired?: boolean | undefined;
|
|
481
|
-
shop?: string |
|
|
482
|
-
vendor?: string |
|
|
561
|
+
shop?: string | undefined;
|
|
562
|
+
vendor?: string | undefined;
|
|
483
563
|
isShopCoverExpenses?: boolean | undefined;
|
|
484
564
|
firstOrderOnly?: boolean | undefined;
|
|
485
565
|
}>, {
|
|
@@ -546,8 +626,8 @@ export declare const CreateCouponSchema: import("zod").ZodEffects<import("zod").
|
|
|
546
626
|
isOrderLimitPerUserEnabled?: boolean | undefined;
|
|
547
627
|
createdBy?: string | import("mongoose").Types.ObjectId | undefined;
|
|
548
628
|
isExpired?: boolean | undefined;
|
|
549
|
-
shop?: string |
|
|
550
|
-
vendor?: string |
|
|
629
|
+
shop?: string | undefined;
|
|
630
|
+
vendor?: string | undefined;
|
|
551
631
|
isShopCoverExpenses?: boolean | undefined;
|
|
552
632
|
firstOrderOnly?: boolean | undefined;
|
|
553
633
|
}>, import("zod").ZodObject<{
|
|
@@ -816,6 +896,8 @@ export declare const CreateCouponSchema: import("zod").ZodEffects<import("zod").
|
|
|
816
896
|
} | undefined;
|
|
817
897
|
createdBy?: import("mongoose").Types.ObjectId | undefined;
|
|
818
898
|
isExpired?: boolean | undefined;
|
|
899
|
+
isCouponDurationInDaysEnabled?: boolean | null | undefined;
|
|
900
|
+
couponDurationInDays?: number | null | undefined;
|
|
819
901
|
} | {
|
|
820
902
|
code: string;
|
|
821
903
|
orderLimitPerUser: 1;
|
|
@@ -857,6 +939,18 @@ export declare const CreateCouponSchema: import("zod").ZodEffects<import("zod").
|
|
|
857
939
|
} | undefined;
|
|
858
940
|
createdBy?: import("mongoose").Types.ObjectId | undefined;
|
|
859
941
|
isExpired?: boolean | undefined;
|
|
942
|
+
referralSettingSnapShot?: {
|
|
943
|
+
sender: {
|
|
944
|
+
value: number;
|
|
945
|
+
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
946
|
+
minimumOrderValue: number;
|
|
947
|
+
};
|
|
948
|
+
receiver: {
|
|
949
|
+
value: number;
|
|
950
|
+
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
951
|
+
minimumOrderValue: number;
|
|
952
|
+
};
|
|
953
|
+
} | undefined;
|
|
860
954
|
} | {
|
|
861
955
|
code: string;
|
|
862
956
|
value: number;
|
|
@@ -1024,6 +1118,8 @@ export declare const CreateCouponSchema: import("zod").ZodEffects<import("zod").
|
|
|
1024
1118
|
isOrderLimitPerUserEnabled?: boolean | undefined;
|
|
1025
1119
|
createdBy?: string | import("mongoose").Types.ObjectId | undefined;
|
|
1026
1120
|
isExpired?: boolean | undefined;
|
|
1121
|
+
isCouponDurationInDaysEnabled?: boolean | null | undefined;
|
|
1122
|
+
couponDurationInDays?: number | null | undefined;
|
|
1027
1123
|
} | {
|
|
1028
1124
|
code: string;
|
|
1029
1125
|
orderLimitPerUser: 1;
|
|
@@ -1065,6 +1161,18 @@ export declare const CreateCouponSchema: import("zod").ZodEffects<import("zod").
|
|
|
1065
1161
|
isOrderLimitPerUserEnabled?: boolean | undefined;
|
|
1066
1162
|
createdBy?: string | import("mongoose").Types.ObjectId | undefined;
|
|
1067
1163
|
isExpired?: boolean | undefined;
|
|
1164
|
+
referralSettingSnapShot?: {
|
|
1165
|
+
sender: {
|
|
1166
|
+
value: number;
|
|
1167
|
+
valueType?: import("@lyxa.ai/core/dist/utilities/enum").ValueType | undefined;
|
|
1168
|
+
minimumOrderValue?: number | undefined;
|
|
1169
|
+
};
|
|
1170
|
+
receiver: {
|
|
1171
|
+
value: number;
|
|
1172
|
+
valueType?: import("@lyxa.ai/core/dist/utilities/enum").ValueType | undefined;
|
|
1173
|
+
minimumOrderValue?: number | undefined;
|
|
1174
|
+
};
|
|
1175
|
+
} | undefined;
|
|
1068
1176
|
} | {
|
|
1069
1177
|
code: string;
|
|
1070
1178
|
value: number;
|
|
@@ -1130,8 +1238,8 @@ export declare const CreateCouponSchema: import("zod").ZodEffects<import("zod").
|
|
|
1130
1238
|
isOrderLimitPerUserEnabled?: boolean | undefined;
|
|
1131
1239
|
createdBy?: string | import("mongoose").Types.ObjectId | undefined;
|
|
1132
1240
|
isExpired?: boolean | undefined;
|
|
1133
|
-
shop?: string |
|
|
1134
|
-
vendor?: string |
|
|
1241
|
+
shop?: string | undefined;
|
|
1242
|
+
vendor?: string | undefined;
|
|
1135
1243
|
isShopCoverExpenses?: boolean | undefined;
|
|
1136
1244
|
firstOrderOnly?: boolean | undefined;
|
|
1137
1245
|
} | {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-coupon.validation.d.ts","sourceRoot":"/","sources":["modules/coupon/validations/create-coupon.validation.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,kBAAkB
|
|
1
|
+
{"version":3,"file":"create-coupon.validation.d.ts","sourceRoot":"/","sources":["modules/coupon/validations/create-coupon.validation.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAe9B,CAAC"}
|
|
@@ -6,6 +6,8 @@ import { CouponType } from '@lyxa.ai/core/dist/utilities/enum';
|
|
|
6
6
|
*/
|
|
7
7
|
declare const GlobalCouponValidationSchema: z.ZodObject<{
|
|
8
8
|
couponType: z.ZodLiteral<CouponType.GLOBAL>;
|
|
9
|
+
isCouponDurationInDaysEnabled: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
10
|
+
couponDurationInDays: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
9
11
|
valueType: z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>;
|
|
10
12
|
value: z.ZodNumber;
|
|
11
13
|
secondaryCurrencyValue: z.ZodOptional<z.ZodNumber>;
|
|
@@ -80,6 +82,8 @@ declare const GlobalCouponValidationSchema: z.ZodObject<{
|
|
|
80
82
|
} | undefined;
|
|
81
83
|
createdBy?: import("mongoose").Types.ObjectId | undefined;
|
|
82
84
|
isExpired?: boolean | undefined;
|
|
85
|
+
isCouponDurationInDaysEnabled?: boolean | null | undefined;
|
|
86
|
+
couponDurationInDays?: number | null | undefined;
|
|
83
87
|
}, {
|
|
84
88
|
code: string;
|
|
85
89
|
value: number;
|
|
@@ -110,8 +114,12 @@ declare const GlobalCouponValidationSchema: z.ZodObject<{
|
|
|
110
114
|
isOrderLimitPerUserEnabled?: boolean | undefined;
|
|
111
115
|
createdBy?: string | import("mongoose").Types.ObjectId | undefined;
|
|
112
116
|
isExpired?: boolean | undefined;
|
|
117
|
+
isCouponDurationInDaysEnabled?: boolean | null | undefined;
|
|
118
|
+
couponDurationInDays?: number | null | undefined;
|
|
113
119
|
}>, GlobalCouponSchema: z.ZodObject<{
|
|
114
120
|
couponType: z.ZodOptional<z.ZodLiteral<CouponType.GLOBAL>>;
|
|
121
|
+
isCouponDurationInDaysEnabled: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodBoolean>>>;
|
|
122
|
+
couponDurationInDays: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
|
|
115
123
|
valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
116
124
|
value: z.ZodOptional<z.ZodNumber>;
|
|
117
125
|
secondaryCurrencyValue: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
@@ -159,6 +167,8 @@ declare const GlobalCouponValidationSchema: z.ZodObject<{
|
|
|
159
167
|
_id: 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>]>>;
|
|
160
168
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
161
169
|
couponType: z.ZodOptional<z.ZodLiteral<CouponType.GLOBAL>>;
|
|
170
|
+
isCouponDurationInDaysEnabled: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodBoolean>>>;
|
|
171
|
+
couponDurationInDays: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
|
|
162
172
|
valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
163
173
|
value: z.ZodOptional<z.ZodNumber>;
|
|
164
174
|
secondaryCurrencyValue: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
@@ -206,6 +216,8 @@ declare const GlobalCouponValidationSchema: z.ZodObject<{
|
|
|
206
216
|
_id: 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>]>>;
|
|
207
217
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
208
218
|
couponType: z.ZodOptional<z.ZodLiteral<CouponType.GLOBAL>>;
|
|
219
|
+
isCouponDurationInDaysEnabled: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodBoolean>>>;
|
|
220
|
+
couponDurationInDays: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
|
|
209
221
|
valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
210
222
|
value: z.ZodOptional<z.ZodNumber>;
|
|
211
223
|
secondaryCurrencyValue: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
@@ -259,6 +271,8 @@ declare const GlobalCouponValidationSchema: z.ZodObject<{
|
|
|
259
271
|
[x: string]: any;
|
|
260
272
|
}> | z.ZodObject<{
|
|
261
273
|
couponType: z.ZodOptional<z.ZodLiteral<CouponType.GLOBAL>>;
|
|
274
|
+
isCouponDurationInDaysEnabled: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodBoolean>>>;
|
|
275
|
+
couponDurationInDays: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
|
|
262
276
|
valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
263
277
|
value: z.ZodOptional<z.ZodNumber>;
|
|
264
278
|
secondaryCurrencyValue: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
@@ -306,6 +320,8 @@ declare const GlobalCouponValidationSchema: z.ZodObject<{
|
|
|
306
320
|
_id: 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>]>>;
|
|
307
321
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
308
322
|
couponType: z.ZodOptional<z.ZodLiteral<CouponType.GLOBAL>>;
|
|
323
|
+
isCouponDurationInDaysEnabled: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodBoolean>>>;
|
|
324
|
+
couponDurationInDays: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
|
|
309
325
|
valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
310
326
|
value: z.ZodOptional<z.ZodNumber>;
|
|
311
327
|
secondaryCurrencyValue: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
@@ -353,6 +369,8 @@ declare const GlobalCouponValidationSchema: z.ZodObject<{
|
|
|
353
369
|
_id: 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>]>>;
|
|
354
370
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
355
371
|
couponType: z.ZodOptional<z.ZodLiteral<CouponType.GLOBAL>>;
|
|
372
|
+
isCouponDurationInDaysEnabled: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodBoolean>>>;
|
|
373
|
+
couponDurationInDays: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
|
|
356
374
|
valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
357
375
|
value: z.ZodOptional<z.ZodNumber>;
|
|
358
376
|
secondaryCurrencyValue: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"global-coupon.validation.d.ts","sourceRoot":"/","sources":["modules/coupon/validations/global-coupon.validation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAGN,GAAG,EACH,MAAM,2DAA2D,CAAC;AAEnE,OAAO,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAC;
|
|
1
|
+
{"version":3,"file":"global-coupon.validation.d.ts","sourceRoot":"/","sources":["modules/coupon/validations/global-coupon.validation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAGN,GAAG,EACH,MAAM,2DAA2D,CAAC;AAEnE,OAAO,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAC;AAmB/D;;GAEG;AACH,QAAA,MACa,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAC1B,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kCACtB,oBAAoB,mNAChB,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCACa,CAAC;AAErD;;GAEG;AACH,OAAO,EACN,4BAA4B,EAC5B,kBAAkB,EAClB,oBAAoB,IAAI,8BAA8B,EACtD,wBAAwB,GACxB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,qBAAqB,GAAG,GAAG,CAAC,OAAO,4BAA4B,CAAC,CAAC;AAC7E,MAAM,MAAM,eAAe,GAAG,GAAG,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAC7D,MAAM,MAAM,qBAAqB,GAAG,GAAG,CAAC,OAAO,wBAAwB,CAAC,CAAC"}
|
|
@@ -6,8 +6,8 @@ import { CouponType } from '@lyxa.ai/core/dist/utilities/enum';
|
|
|
6
6
|
*/
|
|
7
7
|
declare const IndividualStoreCouponSchema: z.ZodObject<{
|
|
8
8
|
couponType: z.ZodOptional<z.ZodLiteral<CouponType.INDIVIDUAL_STORE>>;
|
|
9
|
-
shop: z.ZodOptional<z.ZodOptional<z.
|
|
10
|
-
vendor: z.ZodOptional<z.ZodOptional<z.
|
|
9
|
+
shop: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodString, import("mongoose").Types.ObjectId, string>>>;
|
|
10
|
+
vendor: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodString, import("mongoose").Types.ObjectId, string>>>;
|
|
11
11
|
isShopCoverExpenses: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
12
12
|
firstOrderOnly: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
13
13
|
valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
@@ -57,8 +57,8 @@ declare const IndividualStoreCouponSchema: z.ZodObject<{
|
|
|
57
57
|
_id: 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>]>>;
|
|
58
58
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
59
59
|
couponType: z.ZodOptional<z.ZodLiteral<CouponType.INDIVIDUAL_STORE>>;
|
|
60
|
-
shop: z.ZodOptional<z.ZodOptional<z.
|
|
61
|
-
vendor: z.ZodOptional<z.ZodOptional<z.
|
|
60
|
+
shop: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodString, import("mongoose").Types.ObjectId, string>>>;
|
|
61
|
+
vendor: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodString, import("mongoose").Types.ObjectId, string>>>;
|
|
62
62
|
isShopCoverExpenses: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
63
63
|
firstOrderOnly: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
64
64
|
valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
@@ -108,8 +108,8 @@ declare const IndividualStoreCouponSchema: z.ZodObject<{
|
|
|
108
108
|
_id: 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>]>>;
|
|
109
109
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
110
110
|
couponType: z.ZodOptional<z.ZodLiteral<CouponType.INDIVIDUAL_STORE>>;
|
|
111
|
-
shop: z.ZodOptional<z.ZodOptional<z.
|
|
112
|
-
vendor: z.ZodOptional<z.ZodOptional<z.
|
|
111
|
+
shop: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodString, import("mongoose").Types.ObjectId, string>>>;
|
|
112
|
+
vendor: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodString, import("mongoose").Types.ObjectId, string>>>;
|
|
113
113
|
isShopCoverExpenses: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
114
114
|
firstOrderOnly: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
115
115
|
valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
@@ -165,8 +165,8 @@ declare const IndividualStoreCouponSchema: z.ZodObject<{
|
|
|
165
165
|
[x: string]: any;
|
|
166
166
|
}> | z.ZodObject<{
|
|
167
167
|
couponType: z.ZodOptional<z.ZodLiteral<CouponType.INDIVIDUAL_STORE>>;
|
|
168
|
-
shop: z.ZodOptional<z.ZodOptional<z.
|
|
169
|
-
vendor: z.ZodOptional<z.ZodOptional<z.
|
|
168
|
+
shop: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodString, import("mongoose").Types.ObjectId, string>>>;
|
|
169
|
+
vendor: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodString, import("mongoose").Types.ObjectId, string>>>;
|
|
170
170
|
isShopCoverExpenses: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
171
171
|
firstOrderOnly: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
172
172
|
valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
@@ -216,8 +216,8 @@ declare const IndividualStoreCouponSchema: z.ZodObject<{
|
|
|
216
216
|
_id: 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>]>>;
|
|
217
217
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
218
218
|
couponType: z.ZodOptional<z.ZodLiteral<CouponType.INDIVIDUAL_STORE>>;
|
|
219
|
-
shop: z.ZodOptional<z.ZodOptional<z.
|
|
220
|
-
vendor: z.ZodOptional<z.ZodOptional<z.
|
|
219
|
+
shop: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodString, import("mongoose").Types.ObjectId, string>>>;
|
|
220
|
+
vendor: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodString, import("mongoose").Types.ObjectId, string>>>;
|
|
221
221
|
isShopCoverExpenses: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
222
222
|
firstOrderOnly: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
223
223
|
valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
@@ -267,8 +267,8 @@ declare const IndividualStoreCouponSchema: z.ZodObject<{
|
|
|
267
267
|
_id: 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>]>>;
|
|
268
268
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
269
269
|
couponType: z.ZodOptional<z.ZodLiteral<CouponType.INDIVIDUAL_STORE>>;
|
|
270
|
-
shop: z.ZodOptional<z.ZodOptional<z.
|
|
271
|
-
vendor: z.ZodOptional<z.ZodOptional<z.
|
|
270
|
+
shop: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodString, import("mongoose").Types.ObjectId, string>>>;
|
|
271
|
+
vendor: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodString, import("mongoose").Types.ObjectId, string>>>;
|
|
272
272
|
isShopCoverExpenses: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
273
273
|
firstOrderOnly: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
274
274
|
valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
@@ -319,8 +319,8 @@ declare const IndividualStoreCouponSchema: z.ZodObject<{
|
|
|
319
319
|
}, z.ZodTypeAny, "passthrough">>;
|
|
320
320
|
declare const IndividualStoreCouponValidationSchema: z.ZodEffects<z.ZodObject<{
|
|
321
321
|
couponType: z.ZodLiteral<CouponType.INDIVIDUAL_STORE>;
|
|
322
|
-
shop: z.ZodOptional<z.
|
|
323
|
-
vendor: z.ZodOptional<z.
|
|
322
|
+
shop: z.ZodOptional<z.ZodEffects<z.ZodString, import("mongoose").Types.ObjectId, string>>;
|
|
323
|
+
vendor: z.ZodOptional<z.ZodEffects<z.ZodString, import("mongoose").Types.ObjectId, string>>;
|
|
324
324
|
isShopCoverExpenses: z.ZodDefault<z.ZodBoolean>;
|
|
325
325
|
firstOrderOnly: z.ZodDefault<z.ZodBoolean>;
|
|
326
326
|
valueType: z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>;
|
|
@@ -431,8 +431,8 @@ declare const IndividualStoreCouponValidationSchema: z.ZodEffects<z.ZodObject<{
|
|
|
431
431
|
isOrderLimitPerUserEnabled?: boolean | undefined;
|
|
432
432
|
createdBy?: string | import("mongoose").Types.ObjectId | undefined;
|
|
433
433
|
isExpired?: boolean | undefined;
|
|
434
|
-
shop?: string |
|
|
435
|
-
vendor?: string |
|
|
434
|
+
shop?: string | undefined;
|
|
435
|
+
vendor?: string | undefined;
|
|
436
436
|
isShopCoverExpenses?: boolean | undefined;
|
|
437
437
|
firstOrderOnly?: boolean | undefined;
|
|
438
438
|
}>, {
|
|
@@ -499,8 +499,8 @@ declare const IndividualStoreCouponValidationSchema: z.ZodEffects<z.ZodObject<{
|
|
|
499
499
|
isOrderLimitPerUserEnabled?: boolean | undefined;
|
|
500
500
|
createdBy?: string | import("mongoose").Types.ObjectId | undefined;
|
|
501
501
|
isExpired?: boolean | undefined;
|
|
502
|
-
shop?: string |
|
|
503
|
-
vendor?: string |
|
|
502
|
+
shop?: string | undefined;
|
|
503
|
+
vendor?: string | undefined;
|
|
504
504
|
isShopCoverExpenses?: boolean | undefined;
|
|
505
505
|
firstOrderOnly?: boolean | undefined;
|
|
506
506
|
}>;
|