@lyxa.ai/marketing 1.0.63 → 1.0.65
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 +0 -1
- package/dist/lib/event/event-initializations.js.map +1 -1
- package/dist/lib/event/event-listeners/event-listeners.d.ts +0 -1
- package/dist/lib/event/event-listeners/event-listeners.d.ts.map +1 -1
- package/dist/lib/event/event-listeners/event-listeners.js +12 -62
- package/dist/lib/event/event-listeners/event-listeners.js.map +1 -1
- package/dist/lib/event/events/marketing-product-seed.event.d.ts +2 -1
- package/dist/lib/event/events/marketing-product-seed.event.d.ts.map +1 -1
- package/dist/lib/event/events/marketing-product-seed.event.js.map +1 -1
- package/dist/lib/index.d.ts +21 -12028
- package/dist/lib/index.d.ts.map +1 -1
- package/dist/lib/index.js.map +1 -1
- package/dist/lib/modules/coupon/routers/coupon.router.d.ts +1101 -27
- package/dist/lib/modules/coupon/routers/coupon.router.d.ts.map +1 -1
- package/dist/lib/modules/coupon/services/coupon.service.d.ts +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 +15 -3
- package/dist/lib/modules/coupon/services/custom-coupon.service.d.ts.map +1 -1
- package/dist/lib/modules/coupon/services/helper.service.d.ts +15 -3
- package/dist/lib/modules/coupon/services/helper.service.d.ts.map +1 -1
- package/dist/lib/modules/coupon/services/individual-store-coupon.service.d.ts +15 -3
- package/dist/lib/modules/coupon/services/individual-store-coupon.service.d.ts.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 +21 -6
- package/dist/lib/modules/coupon/services/patterns/repository/CouponMetricsRepository.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/services/shops-categories-coupon.service.d.ts +15 -3
- package/dist/lib/modules/coupon/services/shops-categories-coupon.service.d.ts.map +1 -1
- package/dist/lib/modules/coupon/transformers/coupon.transformer.d.ts +50 -0
- package/dist/lib/modules/coupon/transformers/coupon.transformer.d.ts.map +1 -1
- package/dist/lib/modules/coupon/validations/all-coupons.validation.d.ts +828 -6
- package/dist/lib/modules/coupon/validations/all-coupons.validation.d.ts.map +1 -1
- package/dist/lib/modules/coupon/validations/coupon.validation.d.ts +30 -30
- package/dist/lib/modules/coupon/validations/create-coupon.validation.d.ts +98 -0
- package/dist/lib/modules/coupon/validations/create-coupon.validation.d.ts.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 +9 -9
- package/dist/lib/modules/deal-setting/routers/deal-setting.router.d.ts.map +1 -1
- package/dist/lib/modules/deal-setting/validations/deal-setting.validation.d.ts +6 -6
- package/dist/lib/modules/featured-setting/routers/featured-setting.router.d.ts +8 -8
- package/dist/lib/modules/featured-setting/routers/featured-setting.router.d.ts.map +1 -1
- package/dist/lib/modules/featured-setting/validations/featured-setting.validation.d.ts +6 -6
- package/dist/lib/modules/limited-time-offer/campaign/campaign.router.d.ts +7 -7
- 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 +2 -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 +4 -1
- package/dist/lib/modules/limited-time-offer/campaign/jobs/index.js.map +1 -1
- package/dist/lib/modules/limited-time-offer/campaign/limited-time-offer-campaign.validation.d.ts +36 -36
- package/dist/lib/modules/limited-time-offer/campaign/services/limited-time-offer-campaign-lifecycle.service.d.ts +2 -0
- 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 +24 -5
- 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 +1 -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 +13 -2
- 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.map +1 -1
- package/dist/lib/modules/limited-time-offer/campaign/services/limited-time-offer-campaign.service.js +10 -1
- package/dist/lib/modules/limited-time-offer/campaign/services/limited-time-offer-campaign.service.js.map +1 -1
- package/dist/lib/modules/limited-time-offer/config/limited-time-offer-config.validation.d.ts +6 -6
- package/dist/lib/modules/limited-time-offer/config/limited-time-offer.router.d.ts +3 -3
- package/dist/lib/modules/limited-time-offer/limited-time-offer.router.d.ts +18 -18
- 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 +6 -9
- package/dist/lib/modules/limited-time-offer/limited-time-offer.service.js.map +1 -1
- package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.builder.d.ts +7 -1
- 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 +5 -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 +8 -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 +60 -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 +7 -7
- 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 +5 -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.validation.d.ts +235 -231
- 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.map +1 -1
- package/dist/lib/modules/limited-time-offer/participant/services/limited-time-offer-participant-marketing.service.d.ts +4 -0
- 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 +14 -8
- 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 +11 -9
- 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 +78 -46
- 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 +1 -0
- package/dist/lib/modules/marketing/patterns/repository/MarketingMetricsRepository.d.ts.map +1 -1
- package/dist/lib/modules/marketing/patterns/repository/MarketingMetricsRepository.js +15 -3
- package/dist/lib/modules/marketing/patterns/repository/MarketingMetricsRepository.js.map +1 -1
- package/dist/lib/modules/marketing/routers/marketing.router.d.ts +16 -3
- package/dist/lib/modules/marketing/routers/marketing.router.d.ts.map +1 -1
- package/dist/lib/modules/marketing/routers/marketing.router.js +4 -0
- package/dist/lib/modules/marketing/routers/marketing.router.js.map +1 -1
- package/dist/lib/modules/marketing/services/marketing.service.d.ts +1 -2
- package/dist/lib/modules/marketing/services/marketing.service.d.ts.map +1 -1
- package/dist/lib/modules/marketing/services/marketing.service.js +88 -70
- package/dist/lib/modules/marketing/services/marketing.service.js.map +1 -1
- package/dist/lib/modules/marketing/services/product-marketing.service.d.ts +3 -1
- package/dist/lib/modules/marketing/services/product-marketing.service.d.ts.map +1 -1
- package/dist/lib/modules/marketing/services/product-marketing.service.js +13 -10
- package/dist/lib/modules/marketing/services/product-marketing.service.js.map +1 -1
- package/dist/lib/modules/marketing/services/spend-to-get-progress.service.d.ts +13 -0
- package/dist/lib/modules/marketing/services/spend-to-get-progress.service.d.ts.map +1 -1
- package/dist/lib/modules/marketing/services/spend-to-get-progress.service.js +24 -0
- package/dist/lib/modules/marketing/services/spend-to-get-progress.service.js.map +1 -1
- 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 +27 -95
- package/dist/lib/modules/marketing/services/synchronize-product-marketing.service.js.map +1 -1
- package/dist/lib/modules/marketing/validations/all-marketings.validation.d.ts +4 -4
- package/dist/lib/modules/marketing/validations/marketing.validation.d.ts +14 -0
- package/dist/lib/modules/marketing/validations/marketing.validation.d.ts.map +1 -1
- package/dist/lib/modules/marketing/validations/marketing.validation.js +6 -1
- package/dist/lib/modules/marketing/validations/marketing.validation.js.map +1 -1
- 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 +11 -11
- 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 +6 -6
- package/dist/lib/modules/referral-setting/routers/referral-setting.router.d.ts +4 -4
- package/dist/lib/modules/referral-setting/validations/referral-setting.validation.d.ts +6 -6
- 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 +21 -2
- 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 +42 -26
- 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 +44 -25
- 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 +2 -1
- package/dist/lib/modules/spend-to-get-history/spend-to-get-history.validation.js.map +1 -1
- package/dist/lib/modules/tournament/config/config.router.d.ts +4 -4
- package/dist/lib/modules/tournament/config/config.validation.d.ts +12 -12
- package/dist/lib/modules/tournament/match/match.router.d.ts +5 -5
- package/dist/lib/modules/tournament/match/match.validation.d.ts +12 -12
- package/dist/lib/modules/tournament/participant/participant.router.d.ts +3 -3
- package/dist/lib/modules/tournament/participant/participant.validation.d.ts +24 -24
- package/dist/lib/modules/tournament/prediction/prediction.router.d.ts +3 -3
- package/dist/lib/modules/tournament/prediction/prediction.validation.d.ts +18 -18
- package/dist/lib/modules/tournament/score/score.router.d.ts +1 -1
- package/dist/lib/modules/tournament/score/score.validation.d.ts +6 -6
- package/dist/lib/modules/tournament/statistics/statistics.router.d.ts +1 -1
- package/dist/lib/modules/tournament/statistics/statistics.validation.d.ts +6 -6
- package/dist/lib/modules/tournament/team/team.router.d.ts +3 -3
- package/dist/lib/modules/tournament/team/team.validation.d.ts +18 -18
- package/dist/lib/modules/tournament/tournament.router.d.ts +21 -21
- package/dist/lib/modules/tournament/tournament.validation.d.ts +6 -6
- package/dist/lib/utility/feature-flags.d.ts +3 -0
- package/dist/lib/utility/feature-flags.d.ts.map +1 -0
- package/dist/lib/utility/feature-flags.js +16 -0
- package/dist/lib/utility/feature-flags.js.map +1 -0
- package/dist/types/event/event-initializations.d.ts.map +1 -1
- package/dist/types/event/event-listeners/event-listeners.d.ts +0 -1
- package/dist/types/event/event-listeners/event-listeners.d.ts.map +1 -1
- package/dist/types/event/events/marketing-product-seed.event.d.ts +2 -1
- package/dist/types/event/events/marketing-product-seed.event.d.ts.map +1 -1
- package/dist/types/index.d.ts +21 -12028
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/modules/coupon/routers/coupon.router.d.ts +1101 -27
- package/dist/types/modules/coupon/routers/coupon.router.d.ts.map +1 -1
- package/dist/types/modules/coupon/services/coupon.service.d.ts +1 -1
- package/dist/types/modules/coupon/services/custom-coupon.service.d.ts +15 -3
- package/dist/types/modules/coupon/services/custom-coupon.service.d.ts.map +1 -1
- package/dist/types/modules/coupon/services/helper.service.d.ts +15 -3
- 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 +15 -3
- package/dist/types/modules/coupon/services/individual-store-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/referral-reward-coupon.service.d.ts.map +1 -1
- package/dist/types/modules/coupon/services/shops-categories-coupon.service.d.ts +15 -3
- package/dist/types/modules/coupon/services/shops-categories-coupon.service.d.ts.map +1 -1
- package/dist/types/modules/coupon/transformers/coupon.transformer.d.ts +50 -0
- package/dist/types/modules/coupon/transformers/coupon.transformer.d.ts.map +1 -1
- package/dist/types/modules/coupon/validations/all-coupons.validation.d.ts +828 -6
- package/dist/types/modules/coupon/validations/all-coupons.validation.d.ts.map +1 -1
- package/dist/types/modules/coupon/validations/coupon.validation.d.ts +30 -30
- package/dist/types/modules/coupon/validations/create-coupon.validation.d.ts +98 -0
- package/dist/types/modules/coupon/validations/create-coupon.validation.d.ts.map +1 -1
- 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 +9 -9
- package/dist/types/modules/deal-setting/routers/deal-setting.router.d.ts.map +1 -1
- package/dist/types/modules/deal-setting/validations/deal-setting.validation.d.ts +6 -6
- package/dist/types/modules/featured-setting/routers/featured-setting.router.d.ts +8 -8
- package/dist/types/modules/featured-setting/routers/featured-setting.router.d.ts.map +1 -1
- package/dist/types/modules/featured-setting/validations/featured-setting.validation.d.ts +6 -6
- package/dist/types/modules/limited-time-offer/campaign/campaign.router.d.ts +7 -7
- 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/limited-time-offer-campaign.validation.d.ts +36 -36
- package/dist/types/modules/limited-time-offer/campaign/services/limited-time-offer-campaign-lifecycle.service.d.ts +2 -0
- 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 +1 -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.map +1 -1
- package/dist/types/modules/limited-time-offer/config/limited-time-offer-config.validation.d.ts +6 -6
- package/dist/types/modules/limited-time-offer/config/limited-time-offer.router.d.ts +3 -3
- package/dist/types/modules/limited-time-offer/limited-time-offer.router.d.ts +18 -18
- package/dist/types/modules/limited-time-offer/limited-time-offer.service.d.ts.map +1 -1
- package/dist/types/modules/limited-time-offer/participant/limited-time-offer-participant.builder.d.ts +7 -1
- 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 +8 -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 +7 -7
- package/dist/types/modules/limited-time-offer/participant/limited-time-offer-participant.router.d.ts.map +1 -1
- package/dist/types/modules/limited-time-offer/participant/limited-time-offer-participant.validation.d.ts +235 -231
- 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 +4 -0
- 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 +11 -9
- 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 +1 -0
- package/dist/types/modules/marketing/patterns/repository/MarketingMetricsRepository.d.ts.map +1 -1
- package/dist/types/modules/marketing/routers/marketing.router.d.ts +16 -3
- package/dist/types/modules/marketing/routers/marketing.router.d.ts.map +1 -1
- package/dist/types/modules/marketing/services/marketing.service.d.ts +1 -2
- package/dist/types/modules/marketing/services/marketing.service.d.ts.map +1 -1
- package/dist/types/modules/marketing/services/product-marketing.service.d.ts +3 -1
- package/dist/types/modules/marketing/services/product-marketing.service.d.ts.map +1 -1
- package/dist/types/modules/marketing/services/spend-to-get-progress.service.d.ts +18 -0
- package/dist/types/modules/marketing/services/spend-to-get-progress.service.d.ts.map +1 -1
- package/dist/types/modules/marketing/services/synchronize-product-marketing.service.d.ts.map +1 -1
- package/dist/types/modules/marketing/validations/all-marketings.validation.d.ts +4 -4
- package/dist/types/modules/marketing/validations/marketing.validation.d.ts +14 -0
- package/dist/types/modules/marketing/validations/marketing.validation.d.ts.map +1 -1
- 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 +11 -11
- 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 +6 -6
- package/dist/types/modules/referral-setting/routers/referral-setting.router.d.ts +4 -4
- package/dist/types/modules/referral-setting/validations/referral-setting.validation.d.ts +6 -6
- 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 +42 -26
- 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 +44 -25
- package/dist/types/modules/spend-to-get-history/spend-to-get-history.validation.d.ts.map +1 -1
- package/dist/types/modules/tournament/config/config.router.d.ts +4 -4
- package/dist/types/modules/tournament/config/config.validation.d.ts +12 -12
- package/dist/types/modules/tournament/match/match.router.d.ts +5 -5
- package/dist/types/modules/tournament/match/match.validation.d.ts +12 -12
- package/dist/types/modules/tournament/participant/participant.router.d.ts +3 -3
- package/dist/types/modules/tournament/participant/participant.validation.d.ts +24 -24
- package/dist/types/modules/tournament/prediction/prediction.router.d.ts +3 -3
- package/dist/types/modules/tournament/prediction/prediction.validation.d.ts +18 -18
- package/dist/types/modules/tournament/score/score.router.d.ts +1 -1
- package/dist/types/modules/tournament/score/score.validation.d.ts +6 -6
- package/dist/types/modules/tournament/statistics/statistics.router.d.ts +1 -1
- package/dist/types/modules/tournament/statistics/statistics.validation.d.ts +6 -6
- package/dist/types/modules/tournament/team/team.router.d.ts +3 -3
- package/dist/types/modules/tournament/team/team.validation.d.ts +18 -18
- package/dist/types/modules/tournament/tournament.router.d.ts +21 -21
- package/dist/types/modules/tournament/tournament.validation.d.ts +6 -6
- package/dist/types/utility/feature-flags.d.ts +12 -0
- package/dist/types/utility/feature-flags.d.ts.map +1 -0
- package/package.json +2 -2
|
@@ -88,6 +88,18 @@ export declare const couponRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
88
88
|
isOrderLimitPerUserEnabled?: boolean | undefined;
|
|
89
89
|
createdBy?: string | mongoose.Types.ObjectId | undefined;
|
|
90
90
|
isExpired?: boolean | undefined;
|
|
91
|
+
referralSettingSnapShot?: {
|
|
92
|
+
sender: {
|
|
93
|
+
value: number;
|
|
94
|
+
valueType?: import("@lyxa.ai/core/dist/utilities/enum").ValueType | undefined;
|
|
95
|
+
minimumOrderValue?: number | undefined;
|
|
96
|
+
};
|
|
97
|
+
receiver: {
|
|
98
|
+
value: number;
|
|
99
|
+
valueType?: import("@lyxa.ai/core/dist/utilities/enum").ValueType | undefined;
|
|
100
|
+
minimumOrderValue?: number | undefined;
|
|
101
|
+
};
|
|
102
|
+
} | undefined;
|
|
91
103
|
} | {
|
|
92
104
|
code: string;
|
|
93
105
|
value: number;
|
|
@@ -290,6 +302,56 @@ export declare const couponRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
290
302
|
user: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
291
303
|
referralCodeUsedBy: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
292
304
|
referralCodeUsedOnOrder: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
305
|
+
referralSettingSnapShot: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
306
|
+
sender: z.ZodObject<{
|
|
307
|
+
valueType: z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
308
|
+
value: z.ZodNumber;
|
|
309
|
+
minimumOrderValue: z.ZodDefault<z.ZodNumber>;
|
|
310
|
+
}, "strip", z.ZodTypeAny, {
|
|
311
|
+
value: number;
|
|
312
|
+
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
313
|
+
minimumOrderValue: number;
|
|
314
|
+
}, {
|
|
315
|
+
value: number;
|
|
316
|
+
valueType?: import("@lyxa.ai/core/dist/utilities/enum").ValueType | undefined;
|
|
317
|
+
minimumOrderValue?: number | undefined;
|
|
318
|
+
}>;
|
|
319
|
+
receiver: z.ZodObject<{
|
|
320
|
+
valueType: z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
321
|
+
value: z.ZodNumber;
|
|
322
|
+
minimumOrderValue: z.ZodDefault<z.ZodNumber>;
|
|
323
|
+
}, "strip", z.ZodTypeAny, {
|
|
324
|
+
value: number;
|
|
325
|
+
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
326
|
+
minimumOrderValue: number;
|
|
327
|
+
}, {
|
|
328
|
+
value: number;
|
|
329
|
+
valueType?: import("@lyxa.ai/core/dist/utilities/enum").ValueType | undefined;
|
|
330
|
+
minimumOrderValue?: number | undefined;
|
|
331
|
+
}>;
|
|
332
|
+
}, "strict", z.ZodTypeAny, {
|
|
333
|
+
sender: {
|
|
334
|
+
value: number;
|
|
335
|
+
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
336
|
+
minimumOrderValue: number;
|
|
337
|
+
};
|
|
338
|
+
receiver: {
|
|
339
|
+
value: number;
|
|
340
|
+
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
341
|
+
minimumOrderValue: number;
|
|
342
|
+
};
|
|
343
|
+
}, {
|
|
344
|
+
sender: {
|
|
345
|
+
value: number;
|
|
346
|
+
valueType?: import("@lyxa.ai/core/dist/utilities/enum").ValueType | undefined;
|
|
347
|
+
minimumOrderValue?: number | undefined;
|
|
348
|
+
};
|
|
349
|
+
receiver: {
|
|
350
|
+
value: number;
|
|
351
|
+
valueType?: import("@lyxa.ai/core/dist/utilities/enum").ValueType | undefined;
|
|
352
|
+
minimumOrderValue?: number | undefined;
|
|
353
|
+
};
|
|
354
|
+
}>>>;
|
|
293
355
|
valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
294
356
|
value: z.ZodOptional<z.ZodNumber>;
|
|
295
357
|
secondaryCurrencyValue: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
@@ -602,6 +664,56 @@ export declare const couponRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
602
664
|
user: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
603
665
|
referralCodeUsedBy: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
604
666
|
referralCodeUsedOnOrder: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
667
|
+
referralSettingSnapShot: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
668
|
+
sender: z.ZodObject<{
|
|
669
|
+
valueType: z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
670
|
+
value: z.ZodNumber;
|
|
671
|
+
minimumOrderValue: z.ZodDefault<z.ZodNumber>;
|
|
672
|
+
}, "strip", z.ZodTypeAny, {
|
|
673
|
+
value: number;
|
|
674
|
+
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
675
|
+
minimumOrderValue: number;
|
|
676
|
+
}, {
|
|
677
|
+
value: number;
|
|
678
|
+
valueType?: import("@lyxa.ai/core/dist/utilities/enum").ValueType | undefined;
|
|
679
|
+
minimumOrderValue?: number | undefined;
|
|
680
|
+
}>;
|
|
681
|
+
receiver: z.ZodObject<{
|
|
682
|
+
valueType: z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
683
|
+
value: z.ZodNumber;
|
|
684
|
+
minimumOrderValue: z.ZodDefault<z.ZodNumber>;
|
|
685
|
+
}, "strip", z.ZodTypeAny, {
|
|
686
|
+
value: number;
|
|
687
|
+
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
688
|
+
minimumOrderValue: number;
|
|
689
|
+
}, {
|
|
690
|
+
value: number;
|
|
691
|
+
valueType?: import("@lyxa.ai/core/dist/utilities/enum").ValueType | undefined;
|
|
692
|
+
minimumOrderValue?: number | undefined;
|
|
693
|
+
}>;
|
|
694
|
+
}, "strict", z.ZodTypeAny, {
|
|
695
|
+
sender: {
|
|
696
|
+
value: number;
|
|
697
|
+
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
698
|
+
minimumOrderValue: number;
|
|
699
|
+
};
|
|
700
|
+
receiver: {
|
|
701
|
+
value: number;
|
|
702
|
+
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
703
|
+
minimumOrderValue: number;
|
|
704
|
+
};
|
|
705
|
+
}, {
|
|
706
|
+
sender: {
|
|
707
|
+
value: number;
|
|
708
|
+
valueType?: import("@lyxa.ai/core/dist/utilities/enum").ValueType | undefined;
|
|
709
|
+
minimumOrderValue?: number | undefined;
|
|
710
|
+
};
|
|
711
|
+
receiver: {
|
|
712
|
+
value: number;
|
|
713
|
+
valueType?: import("@lyxa.ai/core/dist/utilities/enum").ValueType | undefined;
|
|
714
|
+
minimumOrderValue?: number | undefined;
|
|
715
|
+
};
|
|
716
|
+
}>>>;
|
|
605
717
|
valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
606
718
|
value: z.ZodOptional<z.ZodNumber>;
|
|
607
719
|
secondaryCurrencyValue: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
@@ -854,8 +966,8 @@ export declare const couponRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
854
966
|
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
855
967
|
}, z.ZodTypeAny, "passthrough">)[];
|
|
856
968
|
metadata?: {
|
|
857
|
-
page: number;
|
|
858
969
|
size: number;
|
|
970
|
+
page: number;
|
|
859
971
|
totalElements: number;
|
|
860
972
|
totalPages: number;
|
|
861
973
|
} | undefined;
|
|
@@ -929,6 +1041,56 @@ export declare const couponRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
929
1041
|
user: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
930
1042
|
referralCodeUsedBy: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
931
1043
|
referralCodeUsedOnOrder: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
1044
|
+
referralSettingSnapShot: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
1045
|
+
sender: z.ZodObject<{
|
|
1046
|
+
valueType: z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
1047
|
+
value: z.ZodNumber;
|
|
1048
|
+
minimumOrderValue: z.ZodDefault<z.ZodNumber>;
|
|
1049
|
+
}, "strip", z.ZodTypeAny, {
|
|
1050
|
+
value: number;
|
|
1051
|
+
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
1052
|
+
minimumOrderValue: number;
|
|
1053
|
+
}, {
|
|
1054
|
+
value: number;
|
|
1055
|
+
valueType?: import("@lyxa.ai/core/dist/utilities/enum").ValueType | undefined;
|
|
1056
|
+
minimumOrderValue?: number | undefined;
|
|
1057
|
+
}>;
|
|
1058
|
+
receiver: z.ZodObject<{
|
|
1059
|
+
valueType: z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
1060
|
+
value: z.ZodNumber;
|
|
1061
|
+
minimumOrderValue: z.ZodDefault<z.ZodNumber>;
|
|
1062
|
+
}, "strip", z.ZodTypeAny, {
|
|
1063
|
+
value: number;
|
|
1064
|
+
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
1065
|
+
minimumOrderValue: number;
|
|
1066
|
+
}, {
|
|
1067
|
+
value: number;
|
|
1068
|
+
valueType?: import("@lyxa.ai/core/dist/utilities/enum").ValueType | undefined;
|
|
1069
|
+
minimumOrderValue?: number | undefined;
|
|
1070
|
+
}>;
|
|
1071
|
+
}, "strict", z.ZodTypeAny, {
|
|
1072
|
+
sender: {
|
|
1073
|
+
value: number;
|
|
1074
|
+
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
1075
|
+
minimumOrderValue: number;
|
|
1076
|
+
};
|
|
1077
|
+
receiver: {
|
|
1078
|
+
value: number;
|
|
1079
|
+
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
1080
|
+
minimumOrderValue: number;
|
|
1081
|
+
};
|
|
1082
|
+
}, {
|
|
1083
|
+
sender: {
|
|
1084
|
+
value: number;
|
|
1085
|
+
valueType?: import("@lyxa.ai/core/dist/utilities/enum").ValueType | undefined;
|
|
1086
|
+
minimumOrderValue?: number | undefined;
|
|
1087
|
+
};
|
|
1088
|
+
receiver: {
|
|
1089
|
+
value: number;
|
|
1090
|
+
valueType?: import("@lyxa.ai/core/dist/utilities/enum").ValueType | undefined;
|
|
1091
|
+
minimumOrderValue?: number | undefined;
|
|
1092
|
+
};
|
|
1093
|
+
}>>>;
|
|
932
1094
|
valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
933
1095
|
value: z.ZodOptional<z.ZodNumber>;
|
|
934
1096
|
secondaryCurrencyValue: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
@@ -1241,6 +1403,56 @@ export declare const couponRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1241
1403
|
user: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
1242
1404
|
referralCodeUsedBy: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
1243
1405
|
referralCodeUsedOnOrder: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
1406
|
+
referralSettingSnapShot: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
1407
|
+
sender: z.ZodObject<{
|
|
1408
|
+
valueType: z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
1409
|
+
value: z.ZodNumber;
|
|
1410
|
+
minimumOrderValue: z.ZodDefault<z.ZodNumber>;
|
|
1411
|
+
}, "strip", z.ZodTypeAny, {
|
|
1412
|
+
value: number;
|
|
1413
|
+
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
1414
|
+
minimumOrderValue: number;
|
|
1415
|
+
}, {
|
|
1416
|
+
value: number;
|
|
1417
|
+
valueType?: import("@lyxa.ai/core/dist/utilities/enum").ValueType | undefined;
|
|
1418
|
+
minimumOrderValue?: number | undefined;
|
|
1419
|
+
}>;
|
|
1420
|
+
receiver: z.ZodObject<{
|
|
1421
|
+
valueType: z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
1422
|
+
value: z.ZodNumber;
|
|
1423
|
+
minimumOrderValue: z.ZodDefault<z.ZodNumber>;
|
|
1424
|
+
}, "strip", z.ZodTypeAny, {
|
|
1425
|
+
value: number;
|
|
1426
|
+
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
1427
|
+
minimumOrderValue: number;
|
|
1428
|
+
}, {
|
|
1429
|
+
value: number;
|
|
1430
|
+
valueType?: import("@lyxa.ai/core/dist/utilities/enum").ValueType | undefined;
|
|
1431
|
+
minimumOrderValue?: number | undefined;
|
|
1432
|
+
}>;
|
|
1433
|
+
}, "strict", z.ZodTypeAny, {
|
|
1434
|
+
sender: {
|
|
1435
|
+
value: number;
|
|
1436
|
+
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
1437
|
+
minimumOrderValue: number;
|
|
1438
|
+
};
|
|
1439
|
+
receiver: {
|
|
1440
|
+
value: number;
|
|
1441
|
+
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
1442
|
+
minimumOrderValue: number;
|
|
1443
|
+
};
|
|
1444
|
+
}, {
|
|
1445
|
+
sender: {
|
|
1446
|
+
value: number;
|
|
1447
|
+
valueType?: import("@lyxa.ai/core/dist/utilities/enum").ValueType | undefined;
|
|
1448
|
+
minimumOrderValue?: number | undefined;
|
|
1449
|
+
};
|
|
1450
|
+
receiver: {
|
|
1451
|
+
value: number;
|
|
1452
|
+
valueType?: import("@lyxa.ai/core/dist/utilities/enum").ValueType | undefined;
|
|
1453
|
+
minimumOrderValue?: number | undefined;
|
|
1454
|
+
};
|
|
1455
|
+
}>>>;
|
|
1244
1456
|
valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
1245
1457
|
value: z.ZodOptional<z.ZodNumber>;
|
|
1246
1458
|
secondaryCurrencyValue: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
@@ -1493,8 +1705,8 @@ export declare const couponRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1493
1705
|
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
1494
1706
|
}, z.ZodTypeAny, "passthrough">)[];
|
|
1495
1707
|
metadata?: {
|
|
1496
|
-
page: number;
|
|
1497
1708
|
size: number;
|
|
1709
|
+
page: number;
|
|
1498
1710
|
totalElements: number;
|
|
1499
1711
|
totalPages: number;
|
|
1500
1712
|
} | undefined;
|
|
@@ -1504,15 +1716,15 @@ export declare const couponRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1504
1716
|
}>;
|
|
1505
1717
|
get: import("@trpc/server").TRPCQueryProcedure<{
|
|
1506
1718
|
input: {
|
|
1719
|
+
sort?: Record<string, 1 | -1> | undefined;
|
|
1507
1720
|
search?: {
|
|
1508
1721
|
searchKey: string;
|
|
1509
1722
|
searchFields?: string[] | undefined;
|
|
1510
1723
|
} | undefined;
|
|
1511
|
-
sort?: Record<string, 1 | -1> | undefined;
|
|
1512
|
-
page?: number | undefined;
|
|
1513
1724
|
select?: Record<string, 0 | 1> | undefined;
|
|
1514
|
-
size?: number | undefined;
|
|
1515
1725
|
populate?: any;
|
|
1726
|
+
size?: number | undefined;
|
|
1727
|
+
page?: number | undefined;
|
|
1516
1728
|
query?: Record<string, any> | undefined;
|
|
1517
1729
|
} | undefined;
|
|
1518
1730
|
output: {
|
|
@@ -1579,6 +1791,56 @@ export declare const couponRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1579
1791
|
user: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
1580
1792
|
referralCodeUsedBy: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
1581
1793
|
referralCodeUsedOnOrder: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
1794
|
+
referralSettingSnapShot: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
1795
|
+
sender: z.ZodObject<{
|
|
1796
|
+
valueType: z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
1797
|
+
value: z.ZodNumber;
|
|
1798
|
+
minimumOrderValue: z.ZodDefault<z.ZodNumber>;
|
|
1799
|
+
}, "strip", z.ZodTypeAny, {
|
|
1800
|
+
value: number;
|
|
1801
|
+
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
1802
|
+
minimumOrderValue: number;
|
|
1803
|
+
}, {
|
|
1804
|
+
value: number;
|
|
1805
|
+
valueType?: import("@lyxa.ai/core/dist/utilities/enum").ValueType | undefined;
|
|
1806
|
+
minimumOrderValue?: number | undefined;
|
|
1807
|
+
}>;
|
|
1808
|
+
receiver: z.ZodObject<{
|
|
1809
|
+
valueType: z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
1810
|
+
value: z.ZodNumber;
|
|
1811
|
+
minimumOrderValue: z.ZodDefault<z.ZodNumber>;
|
|
1812
|
+
}, "strip", z.ZodTypeAny, {
|
|
1813
|
+
value: number;
|
|
1814
|
+
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
1815
|
+
minimumOrderValue: number;
|
|
1816
|
+
}, {
|
|
1817
|
+
value: number;
|
|
1818
|
+
valueType?: import("@lyxa.ai/core/dist/utilities/enum").ValueType | undefined;
|
|
1819
|
+
minimumOrderValue?: number | undefined;
|
|
1820
|
+
}>;
|
|
1821
|
+
}, "strict", z.ZodTypeAny, {
|
|
1822
|
+
sender: {
|
|
1823
|
+
value: number;
|
|
1824
|
+
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
1825
|
+
minimumOrderValue: number;
|
|
1826
|
+
};
|
|
1827
|
+
receiver: {
|
|
1828
|
+
value: number;
|
|
1829
|
+
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
1830
|
+
minimumOrderValue: number;
|
|
1831
|
+
};
|
|
1832
|
+
}, {
|
|
1833
|
+
sender: {
|
|
1834
|
+
value: number;
|
|
1835
|
+
valueType?: import("@lyxa.ai/core/dist/utilities/enum").ValueType | undefined;
|
|
1836
|
+
minimumOrderValue?: number | undefined;
|
|
1837
|
+
};
|
|
1838
|
+
receiver: {
|
|
1839
|
+
value: number;
|
|
1840
|
+
valueType?: import("@lyxa.ai/core/dist/utilities/enum").ValueType | undefined;
|
|
1841
|
+
minimumOrderValue?: number | undefined;
|
|
1842
|
+
};
|
|
1843
|
+
}>>>;
|
|
1582
1844
|
valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
1583
1845
|
value: z.ZodOptional<z.ZodNumber>;
|
|
1584
1846
|
secondaryCurrencyValue: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
@@ -1891,6 +2153,56 @@ export declare const couponRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1891
2153
|
user: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
1892
2154
|
referralCodeUsedBy: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
1893
2155
|
referralCodeUsedOnOrder: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
2156
|
+
referralSettingSnapShot: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
2157
|
+
sender: z.ZodObject<{
|
|
2158
|
+
valueType: z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
2159
|
+
value: z.ZodNumber;
|
|
2160
|
+
minimumOrderValue: z.ZodDefault<z.ZodNumber>;
|
|
2161
|
+
}, "strip", z.ZodTypeAny, {
|
|
2162
|
+
value: number;
|
|
2163
|
+
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
2164
|
+
minimumOrderValue: number;
|
|
2165
|
+
}, {
|
|
2166
|
+
value: number;
|
|
2167
|
+
valueType?: import("@lyxa.ai/core/dist/utilities/enum").ValueType | undefined;
|
|
2168
|
+
minimumOrderValue?: number | undefined;
|
|
2169
|
+
}>;
|
|
2170
|
+
receiver: z.ZodObject<{
|
|
2171
|
+
valueType: z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
2172
|
+
value: z.ZodNumber;
|
|
2173
|
+
minimumOrderValue: z.ZodDefault<z.ZodNumber>;
|
|
2174
|
+
}, "strip", z.ZodTypeAny, {
|
|
2175
|
+
value: number;
|
|
2176
|
+
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
2177
|
+
minimumOrderValue: number;
|
|
2178
|
+
}, {
|
|
2179
|
+
value: number;
|
|
2180
|
+
valueType?: import("@lyxa.ai/core/dist/utilities/enum").ValueType | undefined;
|
|
2181
|
+
minimumOrderValue?: number | undefined;
|
|
2182
|
+
}>;
|
|
2183
|
+
}, "strict", z.ZodTypeAny, {
|
|
2184
|
+
sender: {
|
|
2185
|
+
value: number;
|
|
2186
|
+
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
2187
|
+
minimumOrderValue: number;
|
|
2188
|
+
};
|
|
2189
|
+
receiver: {
|
|
2190
|
+
value: number;
|
|
2191
|
+
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
2192
|
+
minimumOrderValue: number;
|
|
2193
|
+
};
|
|
2194
|
+
}, {
|
|
2195
|
+
sender: {
|
|
2196
|
+
value: number;
|
|
2197
|
+
valueType?: import("@lyxa.ai/core/dist/utilities/enum").ValueType | undefined;
|
|
2198
|
+
minimumOrderValue?: number | undefined;
|
|
2199
|
+
};
|
|
2200
|
+
receiver: {
|
|
2201
|
+
value: number;
|
|
2202
|
+
valueType?: import("@lyxa.ai/core/dist/utilities/enum").ValueType | undefined;
|
|
2203
|
+
minimumOrderValue?: number | undefined;
|
|
2204
|
+
};
|
|
2205
|
+
}>>>;
|
|
1894
2206
|
valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
1895
2207
|
value: z.ZodOptional<z.ZodNumber>;
|
|
1896
2208
|
secondaryCurrencyValue: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
@@ -2143,8 +2455,8 @@ export declare const couponRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2143
2455
|
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
2144
2456
|
}, z.ZodTypeAny, "passthrough">)[];
|
|
2145
2457
|
metadata?: {
|
|
2146
|
-
page: number;
|
|
2147
2458
|
size: number;
|
|
2459
|
+
page: number;
|
|
2148
2460
|
totalElements: number;
|
|
2149
2461
|
totalPages: number;
|
|
2150
2462
|
} | undefined;
|
|
@@ -2230,6 +2542,56 @@ export declare const couponRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2230
2542
|
user: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
2231
2543
|
referralCodeUsedBy: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
2232
2544
|
referralCodeUsedOnOrder: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
2545
|
+
referralSettingSnapShot: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
2546
|
+
sender: z.ZodObject<{
|
|
2547
|
+
valueType: z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
2548
|
+
value: z.ZodNumber;
|
|
2549
|
+
minimumOrderValue: z.ZodDefault<z.ZodNumber>;
|
|
2550
|
+
}, "strip", z.ZodTypeAny, {
|
|
2551
|
+
value: number;
|
|
2552
|
+
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
2553
|
+
minimumOrderValue: number;
|
|
2554
|
+
}, {
|
|
2555
|
+
value: number;
|
|
2556
|
+
valueType?: import("@lyxa.ai/core/dist/utilities/enum").ValueType | undefined;
|
|
2557
|
+
minimumOrderValue?: number | undefined;
|
|
2558
|
+
}>;
|
|
2559
|
+
receiver: z.ZodObject<{
|
|
2560
|
+
valueType: z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
2561
|
+
value: z.ZodNumber;
|
|
2562
|
+
minimumOrderValue: z.ZodDefault<z.ZodNumber>;
|
|
2563
|
+
}, "strip", z.ZodTypeAny, {
|
|
2564
|
+
value: number;
|
|
2565
|
+
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
2566
|
+
minimumOrderValue: number;
|
|
2567
|
+
}, {
|
|
2568
|
+
value: number;
|
|
2569
|
+
valueType?: import("@lyxa.ai/core/dist/utilities/enum").ValueType | undefined;
|
|
2570
|
+
minimumOrderValue?: number | undefined;
|
|
2571
|
+
}>;
|
|
2572
|
+
}, "strict", z.ZodTypeAny, {
|
|
2573
|
+
sender: {
|
|
2574
|
+
value: number;
|
|
2575
|
+
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
2576
|
+
minimumOrderValue: number;
|
|
2577
|
+
};
|
|
2578
|
+
receiver: {
|
|
2579
|
+
value: number;
|
|
2580
|
+
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
2581
|
+
minimumOrderValue: number;
|
|
2582
|
+
};
|
|
2583
|
+
}, {
|
|
2584
|
+
sender: {
|
|
2585
|
+
value: number;
|
|
2586
|
+
valueType?: import("@lyxa.ai/core/dist/utilities/enum").ValueType | undefined;
|
|
2587
|
+
minimumOrderValue?: number | undefined;
|
|
2588
|
+
};
|
|
2589
|
+
receiver: {
|
|
2590
|
+
value: number;
|
|
2591
|
+
valueType?: import("@lyxa.ai/core/dist/utilities/enum").ValueType | undefined;
|
|
2592
|
+
minimumOrderValue?: number | undefined;
|
|
2593
|
+
};
|
|
2594
|
+
}>>>;
|
|
2233
2595
|
valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
2234
2596
|
value: z.ZodOptional<z.ZodNumber>;
|
|
2235
2597
|
secondaryCurrencyValue: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
@@ -2542,6 +2904,56 @@ export declare const couponRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2542
2904
|
user: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
2543
2905
|
referralCodeUsedBy: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
2544
2906
|
referralCodeUsedOnOrder: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
2907
|
+
referralSettingSnapShot: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
2908
|
+
sender: z.ZodObject<{
|
|
2909
|
+
valueType: z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
2910
|
+
value: z.ZodNumber;
|
|
2911
|
+
minimumOrderValue: z.ZodDefault<z.ZodNumber>;
|
|
2912
|
+
}, "strip", z.ZodTypeAny, {
|
|
2913
|
+
value: number;
|
|
2914
|
+
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
2915
|
+
minimumOrderValue: number;
|
|
2916
|
+
}, {
|
|
2917
|
+
value: number;
|
|
2918
|
+
valueType?: import("@lyxa.ai/core/dist/utilities/enum").ValueType | undefined;
|
|
2919
|
+
minimumOrderValue?: number | undefined;
|
|
2920
|
+
}>;
|
|
2921
|
+
receiver: z.ZodObject<{
|
|
2922
|
+
valueType: z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
2923
|
+
value: z.ZodNumber;
|
|
2924
|
+
minimumOrderValue: z.ZodDefault<z.ZodNumber>;
|
|
2925
|
+
}, "strip", z.ZodTypeAny, {
|
|
2926
|
+
value: number;
|
|
2927
|
+
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
2928
|
+
minimumOrderValue: number;
|
|
2929
|
+
}, {
|
|
2930
|
+
value: number;
|
|
2931
|
+
valueType?: import("@lyxa.ai/core/dist/utilities/enum").ValueType | undefined;
|
|
2932
|
+
minimumOrderValue?: number | undefined;
|
|
2933
|
+
}>;
|
|
2934
|
+
}, "strict", z.ZodTypeAny, {
|
|
2935
|
+
sender: {
|
|
2936
|
+
value: number;
|
|
2937
|
+
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
2938
|
+
minimumOrderValue: number;
|
|
2939
|
+
};
|
|
2940
|
+
receiver: {
|
|
2941
|
+
value: number;
|
|
2942
|
+
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
2943
|
+
minimumOrderValue: number;
|
|
2944
|
+
};
|
|
2945
|
+
}, {
|
|
2946
|
+
sender: {
|
|
2947
|
+
value: number;
|
|
2948
|
+
valueType?: import("@lyxa.ai/core/dist/utilities/enum").ValueType | undefined;
|
|
2949
|
+
minimumOrderValue?: number | undefined;
|
|
2950
|
+
};
|
|
2951
|
+
receiver: {
|
|
2952
|
+
value: number;
|
|
2953
|
+
valueType?: import("@lyxa.ai/core/dist/utilities/enum").ValueType | undefined;
|
|
2954
|
+
minimumOrderValue?: number | undefined;
|
|
2955
|
+
};
|
|
2956
|
+
}>>>;
|
|
2545
2957
|
valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
2546
2958
|
value: z.ZodOptional<z.ZodNumber>;
|
|
2547
2959
|
secondaryCurrencyValue: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
@@ -2794,8 +3206,8 @@ export declare const couponRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2794
3206
|
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
2795
3207
|
}, z.ZodTypeAny, "passthrough">)[];
|
|
2796
3208
|
metadata?: {
|
|
2797
|
-
page: number;
|
|
2798
3209
|
size: number;
|
|
3210
|
+
page: number;
|
|
2799
3211
|
totalElements: number;
|
|
2800
3212
|
totalPages: number;
|
|
2801
3213
|
} | undefined;
|
|
@@ -2869,6 +3281,56 @@ export declare const couponRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2869
3281
|
user: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
2870
3282
|
referralCodeUsedBy: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
2871
3283
|
referralCodeUsedOnOrder: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
3284
|
+
referralSettingSnapShot: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
3285
|
+
sender: z.ZodObject<{
|
|
3286
|
+
valueType: z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
3287
|
+
value: z.ZodNumber;
|
|
3288
|
+
minimumOrderValue: z.ZodDefault<z.ZodNumber>;
|
|
3289
|
+
}, "strip", z.ZodTypeAny, {
|
|
3290
|
+
value: number;
|
|
3291
|
+
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
3292
|
+
minimumOrderValue: number;
|
|
3293
|
+
}, {
|
|
3294
|
+
value: number;
|
|
3295
|
+
valueType?: import("@lyxa.ai/core/dist/utilities/enum").ValueType | undefined;
|
|
3296
|
+
minimumOrderValue?: number | undefined;
|
|
3297
|
+
}>;
|
|
3298
|
+
receiver: z.ZodObject<{
|
|
3299
|
+
valueType: z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
3300
|
+
value: z.ZodNumber;
|
|
3301
|
+
minimumOrderValue: z.ZodDefault<z.ZodNumber>;
|
|
3302
|
+
}, "strip", z.ZodTypeAny, {
|
|
3303
|
+
value: number;
|
|
3304
|
+
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
3305
|
+
minimumOrderValue: number;
|
|
3306
|
+
}, {
|
|
3307
|
+
value: number;
|
|
3308
|
+
valueType?: import("@lyxa.ai/core/dist/utilities/enum").ValueType | undefined;
|
|
3309
|
+
minimumOrderValue?: number | undefined;
|
|
3310
|
+
}>;
|
|
3311
|
+
}, "strict", z.ZodTypeAny, {
|
|
3312
|
+
sender: {
|
|
3313
|
+
value: number;
|
|
3314
|
+
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
3315
|
+
minimumOrderValue: number;
|
|
3316
|
+
};
|
|
3317
|
+
receiver: {
|
|
3318
|
+
value: number;
|
|
3319
|
+
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
3320
|
+
minimumOrderValue: number;
|
|
3321
|
+
};
|
|
3322
|
+
}, {
|
|
3323
|
+
sender: {
|
|
3324
|
+
value: number;
|
|
3325
|
+
valueType?: import("@lyxa.ai/core/dist/utilities/enum").ValueType | undefined;
|
|
3326
|
+
minimumOrderValue?: number | undefined;
|
|
3327
|
+
};
|
|
3328
|
+
receiver: {
|
|
3329
|
+
value: number;
|
|
3330
|
+
valueType?: import("@lyxa.ai/core/dist/utilities/enum").ValueType | undefined;
|
|
3331
|
+
minimumOrderValue?: number | undefined;
|
|
3332
|
+
};
|
|
3333
|
+
}>>>;
|
|
2872
3334
|
valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
2873
3335
|
value: z.ZodOptional<z.ZodNumber>;
|
|
2874
3336
|
secondaryCurrencyValue: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
@@ -3181,6 +3643,56 @@ export declare const couponRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3181
3643
|
user: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
3182
3644
|
referralCodeUsedBy: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
3183
3645
|
referralCodeUsedOnOrder: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
3646
|
+
referralSettingSnapShot: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
3647
|
+
sender: z.ZodObject<{
|
|
3648
|
+
valueType: z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
3649
|
+
value: z.ZodNumber;
|
|
3650
|
+
minimumOrderValue: z.ZodDefault<z.ZodNumber>;
|
|
3651
|
+
}, "strip", z.ZodTypeAny, {
|
|
3652
|
+
value: number;
|
|
3653
|
+
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
3654
|
+
minimumOrderValue: number;
|
|
3655
|
+
}, {
|
|
3656
|
+
value: number;
|
|
3657
|
+
valueType?: import("@lyxa.ai/core/dist/utilities/enum").ValueType | undefined;
|
|
3658
|
+
minimumOrderValue?: number | undefined;
|
|
3659
|
+
}>;
|
|
3660
|
+
receiver: z.ZodObject<{
|
|
3661
|
+
valueType: z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
3662
|
+
value: z.ZodNumber;
|
|
3663
|
+
minimumOrderValue: z.ZodDefault<z.ZodNumber>;
|
|
3664
|
+
}, "strip", z.ZodTypeAny, {
|
|
3665
|
+
value: number;
|
|
3666
|
+
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
3667
|
+
minimumOrderValue: number;
|
|
3668
|
+
}, {
|
|
3669
|
+
value: number;
|
|
3670
|
+
valueType?: import("@lyxa.ai/core/dist/utilities/enum").ValueType | undefined;
|
|
3671
|
+
minimumOrderValue?: number | undefined;
|
|
3672
|
+
}>;
|
|
3673
|
+
}, "strict", z.ZodTypeAny, {
|
|
3674
|
+
sender: {
|
|
3675
|
+
value: number;
|
|
3676
|
+
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
3677
|
+
minimumOrderValue: number;
|
|
3678
|
+
};
|
|
3679
|
+
receiver: {
|
|
3680
|
+
value: number;
|
|
3681
|
+
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
3682
|
+
minimumOrderValue: number;
|
|
3683
|
+
};
|
|
3684
|
+
}, {
|
|
3685
|
+
sender: {
|
|
3686
|
+
value: number;
|
|
3687
|
+
valueType?: import("@lyxa.ai/core/dist/utilities/enum").ValueType | undefined;
|
|
3688
|
+
minimumOrderValue?: number | undefined;
|
|
3689
|
+
};
|
|
3690
|
+
receiver: {
|
|
3691
|
+
value: number;
|
|
3692
|
+
valueType?: import("@lyxa.ai/core/dist/utilities/enum").ValueType | undefined;
|
|
3693
|
+
minimumOrderValue?: number | undefined;
|
|
3694
|
+
};
|
|
3695
|
+
}>>>;
|
|
3184
3696
|
valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
3185
3697
|
value: z.ZodOptional<z.ZodNumber>;
|
|
3186
3698
|
secondaryCurrencyValue: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
@@ -3433,8 +3945,8 @@ export declare const couponRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3433
3945
|
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
3434
3946
|
}, z.ZodTypeAny, "passthrough">)[];
|
|
3435
3947
|
metadata?: {
|
|
3436
|
-
page: number;
|
|
3437
3948
|
size: number;
|
|
3949
|
+
page: number;
|
|
3438
3950
|
totalElements: number;
|
|
3439
3951
|
totalPages: number;
|
|
3440
3952
|
} | undefined;
|
|
@@ -3516,6 +4028,18 @@ export declare const couponRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3516
4028
|
isOrderLimitPerUserEnabled?: boolean | undefined;
|
|
3517
4029
|
createdBy?: string | mongoose.Types.ObjectId | undefined;
|
|
3518
4030
|
isExpired?: boolean | undefined;
|
|
4031
|
+
referralSettingSnapShot?: {
|
|
4032
|
+
sender: {
|
|
4033
|
+
value: number;
|
|
4034
|
+
valueType?: import("@lyxa.ai/core/dist/utilities/enum").ValueType | undefined;
|
|
4035
|
+
minimumOrderValue?: number | undefined;
|
|
4036
|
+
};
|
|
4037
|
+
receiver: {
|
|
4038
|
+
value: number;
|
|
4039
|
+
valueType?: import("@lyxa.ai/core/dist/utilities/enum").ValueType | undefined;
|
|
4040
|
+
minimumOrderValue?: number | undefined;
|
|
4041
|
+
};
|
|
4042
|
+
} | undefined;
|
|
3519
4043
|
} | {
|
|
3520
4044
|
code: string;
|
|
3521
4045
|
value: number;
|
|
@@ -3719,6 +4243,56 @@ export declare const couponRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3719
4243
|
user: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
3720
4244
|
referralCodeUsedBy: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
3721
4245
|
referralCodeUsedOnOrder: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
4246
|
+
referralSettingSnapShot: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
4247
|
+
sender: z.ZodObject<{
|
|
4248
|
+
valueType: z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
4249
|
+
value: z.ZodNumber;
|
|
4250
|
+
minimumOrderValue: z.ZodDefault<z.ZodNumber>;
|
|
4251
|
+
}, "strip", z.ZodTypeAny, {
|
|
4252
|
+
value: number;
|
|
4253
|
+
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
4254
|
+
minimumOrderValue: number;
|
|
4255
|
+
}, {
|
|
4256
|
+
value: number;
|
|
4257
|
+
valueType?: import("@lyxa.ai/core/dist/utilities/enum").ValueType | undefined;
|
|
4258
|
+
minimumOrderValue?: number | undefined;
|
|
4259
|
+
}>;
|
|
4260
|
+
receiver: z.ZodObject<{
|
|
4261
|
+
valueType: z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
4262
|
+
value: z.ZodNumber;
|
|
4263
|
+
minimumOrderValue: z.ZodDefault<z.ZodNumber>;
|
|
4264
|
+
}, "strip", z.ZodTypeAny, {
|
|
4265
|
+
value: number;
|
|
4266
|
+
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
4267
|
+
minimumOrderValue: number;
|
|
4268
|
+
}, {
|
|
4269
|
+
value: number;
|
|
4270
|
+
valueType?: import("@lyxa.ai/core/dist/utilities/enum").ValueType | undefined;
|
|
4271
|
+
minimumOrderValue?: number | undefined;
|
|
4272
|
+
}>;
|
|
4273
|
+
}, "strict", z.ZodTypeAny, {
|
|
4274
|
+
sender: {
|
|
4275
|
+
value: number;
|
|
4276
|
+
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
4277
|
+
minimumOrderValue: number;
|
|
4278
|
+
};
|
|
4279
|
+
receiver: {
|
|
4280
|
+
value: number;
|
|
4281
|
+
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
4282
|
+
minimumOrderValue: number;
|
|
4283
|
+
};
|
|
4284
|
+
}, {
|
|
4285
|
+
sender: {
|
|
4286
|
+
value: number;
|
|
4287
|
+
valueType?: import("@lyxa.ai/core/dist/utilities/enum").ValueType | undefined;
|
|
4288
|
+
minimumOrderValue?: number | undefined;
|
|
4289
|
+
};
|
|
4290
|
+
receiver: {
|
|
4291
|
+
value: number;
|
|
4292
|
+
valueType?: import("@lyxa.ai/core/dist/utilities/enum").ValueType | undefined;
|
|
4293
|
+
minimumOrderValue?: number | undefined;
|
|
4294
|
+
};
|
|
4295
|
+
}>>>;
|
|
3722
4296
|
valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
3723
4297
|
value: z.ZodOptional<z.ZodNumber>;
|
|
3724
4298
|
secondaryCurrencyValue: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
@@ -4031,6 +4605,56 @@ export declare const couponRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4031
4605
|
user: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
4032
4606
|
referralCodeUsedBy: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
4033
4607
|
referralCodeUsedOnOrder: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
4608
|
+
referralSettingSnapShot: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
4609
|
+
sender: z.ZodObject<{
|
|
4610
|
+
valueType: z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
4611
|
+
value: z.ZodNumber;
|
|
4612
|
+
minimumOrderValue: z.ZodDefault<z.ZodNumber>;
|
|
4613
|
+
}, "strip", z.ZodTypeAny, {
|
|
4614
|
+
value: number;
|
|
4615
|
+
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
4616
|
+
minimumOrderValue: number;
|
|
4617
|
+
}, {
|
|
4618
|
+
value: number;
|
|
4619
|
+
valueType?: import("@lyxa.ai/core/dist/utilities/enum").ValueType | undefined;
|
|
4620
|
+
minimumOrderValue?: number | undefined;
|
|
4621
|
+
}>;
|
|
4622
|
+
receiver: z.ZodObject<{
|
|
4623
|
+
valueType: z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
4624
|
+
value: z.ZodNumber;
|
|
4625
|
+
minimumOrderValue: z.ZodDefault<z.ZodNumber>;
|
|
4626
|
+
}, "strip", z.ZodTypeAny, {
|
|
4627
|
+
value: number;
|
|
4628
|
+
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
4629
|
+
minimumOrderValue: number;
|
|
4630
|
+
}, {
|
|
4631
|
+
value: number;
|
|
4632
|
+
valueType?: import("@lyxa.ai/core/dist/utilities/enum").ValueType | undefined;
|
|
4633
|
+
minimumOrderValue?: number | undefined;
|
|
4634
|
+
}>;
|
|
4635
|
+
}, "strict", z.ZodTypeAny, {
|
|
4636
|
+
sender: {
|
|
4637
|
+
value: number;
|
|
4638
|
+
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
4639
|
+
minimumOrderValue: number;
|
|
4640
|
+
};
|
|
4641
|
+
receiver: {
|
|
4642
|
+
value: number;
|
|
4643
|
+
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
4644
|
+
minimumOrderValue: number;
|
|
4645
|
+
};
|
|
4646
|
+
}, {
|
|
4647
|
+
sender: {
|
|
4648
|
+
value: number;
|
|
4649
|
+
valueType?: import("@lyxa.ai/core/dist/utilities/enum").ValueType | undefined;
|
|
4650
|
+
minimumOrderValue?: number | undefined;
|
|
4651
|
+
};
|
|
4652
|
+
receiver: {
|
|
4653
|
+
value: number;
|
|
4654
|
+
valueType?: import("@lyxa.ai/core/dist/utilities/enum").ValueType | undefined;
|
|
4655
|
+
minimumOrderValue?: number | undefined;
|
|
4656
|
+
};
|
|
4657
|
+
}>>>;
|
|
4034
4658
|
valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
4035
4659
|
value: z.ZodOptional<z.ZodNumber>;
|
|
4036
4660
|
secondaryCurrencyValue: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
@@ -4283,8 +4907,8 @@ export declare const couponRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4283
4907
|
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
4284
4908
|
}, z.ZodTypeAny, "passthrough">)[];
|
|
4285
4909
|
metadata?: {
|
|
4286
|
-
page: number;
|
|
4287
4910
|
size: number;
|
|
4911
|
+
page: number;
|
|
4288
4912
|
totalElements: number;
|
|
4289
4913
|
totalPages: number;
|
|
4290
4914
|
} | undefined;
|
|
@@ -4361,6 +4985,56 @@ export declare const couponRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4361
4985
|
user: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
4362
4986
|
referralCodeUsedBy: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
4363
4987
|
referralCodeUsedOnOrder: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
4988
|
+
referralSettingSnapShot: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
4989
|
+
sender: z.ZodObject<{
|
|
4990
|
+
valueType: z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
4991
|
+
value: z.ZodNumber;
|
|
4992
|
+
minimumOrderValue: z.ZodDefault<z.ZodNumber>;
|
|
4993
|
+
}, "strip", z.ZodTypeAny, {
|
|
4994
|
+
value: number;
|
|
4995
|
+
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
4996
|
+
minimumOrderValue: number;
|
|
4997
|
+
}, {
|
|
4998
|
+
value: number;
|
|
4999
|
+
valueType?: import("@lyxa.ai/core/dist/utilities/enum").ValueType | undefined;
|
|
5000
|
+
minimumOrderValue?: number | undefined;
|
|
5001
|
+
}>;
|
|
5002
|
+
receiver: z.ZodObject<{
|
|
5003
|
+
valueType: z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
5004
|
+
value: z.ZodNumber;
|
|
5005
|
+
minimumOrderValue: z.ZodDefault<z.ZodNumber>;
|
|
5006
|
+
}, "strip", z.ZodTypeAny, {
|
|
5007
|
+
value: number;
|
|
5008
|
+
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
5009
|
+
minimumOrderValue: number;
|
|
5010
|
+
}, {
|
|
5011
|
+
value: number;
|
|
5012
|
+
valueType?: import("@lyxa.ai/core/dist/utilities/enum").ValueType | undefined;
|
|
5013
|
+
minimumOrderValue?: number | undefined;
|
|
5014
|
+
}>;
|
|
5015
|
+
}, "strict", z.ZodTypeAny, {
|
|
5016
|
+
sender: {
|
|
5017
|
+
value: number;
|
|
5018
|
+
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
5019
|
+
minimumOrderValue: number;
|
|
5020
|
+
};
|
|
5021
|
+
receiver: {
|
|
5022
|
+
value: number;
|
|
5023
|
+
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
5024
|
+
minimumOrderValue: number;
|
|
5025
|
+
};
|
|
5026
|
+
}, {
|
|
5027
|
+
sender: {
|
|
5028
|
+
value: number;
|
|
5029
|
+
valueType?: import("@lyxa.ai/core/dist/utilities/enum").ValueType | undefined;
|
|
5030
|
+
minimumOrderValue?: number | undefined;
|
|
5031
|
+
};
|
|
5032
|
+
receiver: {
|
|
5033
|
+
value: number;
|
|
5034
|
+
valueType?: import("@lyxa.ai/core/dist/utilities/enum").ValueType | undefined;
|
|
5035
|
+
minimumOrderValue?: number | undefined;
|
|
5036
|
+
};
|
|
5037
|
+
}>>>;
|
|
4364
5038
|
valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
4365
5039
|
value: z.ZodOptional<z.ZodNumber>;
|
|
4366
5040
|
secondaryCurrencyValue: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
@@ -4673,6 +5347,56 @@ export declare const couponRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4673
5347
|
user: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
4674
5348
|
referralCodeUsedBy: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
4675
5349
|
referralCodeUsedOnOrder: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
5350
|
+
referralSettingSnapShot: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
5351
|
+
sender: z.ZodObject<{
|
|
5352
|
+
valueType: z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
5353
|
+
value: z.ZodNumber;
|
|
5354
|
+
minimumOrderValue: z.ZodDefault<z.ZodNumber>;
|
|
5355
|
+
}, "strip", z.ZodTypeAny, {
|
|
5356
|
+
value: number;
|
|
5357
|
+
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
5358
|
+
minimumOrderValue: number;
|
|
5359
|
+
}, {
|
|
5360
|
+
value: number;
|
|
5361
|
+
valueType?: import("@lyxa.ai/core/dist/utilities/enum").ValueType | undefined;
|
|
5362
|
+
minimumOrderValue?: number | undefined;
|
|
5363
|
+
}>;
|
|
5364
|
+
receiver: z.ZodObject<{
|
|
5365
|
+
valueType: z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
5366
|
+
value: z.ZodNumber;
|
|
5367
|
+
minimumOrderValue: z.ZodDefault<z.ZodNumber>;
|
|
5368
|
+
}, "strip", z.ZodTypeAny, {
|
|
5369
|
+
value: number;
|
|
5370
|
+
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
5371
|
+
minimumOrderValue: number;
|
|
5372
|
+
}, {
|
|
5373
|
+
value: number;
|
|
5374
|
+
valueType?: import("@lyxa.ai/core/dist/utilities/enum").ValueType | undefined;
|
|
5375
|
+
minimumOrderValue?: number | undefined;
|
|
5376
|
+
}>;
|
|
5377
|
+
}, "strict", z.ZodTypeAny, {
|
|
5378
|
+
sender: {
|
|
5379
|
+
value: number;
|
|
5380
|
+
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
5381
|
+
minimumOrderValue: number;
|
|
5382
|
+
};
|
|
5383
|
+
receiver: {
|
|
5384
|
+
value: number;
|
|
5385
|
+
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
5386
|
+
minimumOrderValue: number;
|
|
5387
|
+
};
|
|
5388
|
+
}, {
|
|
5389
|
+
sender: {
|
|
5390
|
+
value: number;
|
|
5391
|
+
valueType?: import("@lyxa.ai/core/dist/utilities/enum").ValueType | undefined;
|
|
5392
|
+
minimumOrderValue?: number | undefined;
|
|
5393
|
+
};
|
|
5394
|
+
receiver: {
|
|
5395
|
+
value: number;
|
|
5396
|
+
valueType?: import("@lyxa.ai/core/dist/utilities/enum").ValueType | undefined;
|
|
5397
|
+
minimumOrderValue?: number | undefined;
|
|
5398
|
+
};
|
|
5399
|
+
}>>>;
|
|
4676
5400
|
valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
4677
5401
|
value: z.ZodOptional<z.ZodNumber>;
|
|
4678
5402
|
secondaryCurrencyValue: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
@@ -4925,8 +5649,8 @@ export declare const couponRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4925
5649
|
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
4926
5650
|
}, z.ZodTypeAny, "passthrough">)[];
|
|
4927
5651
|
metadata?: {
|
|
4928
|
-
page: number;
|
|
4929
5652
|
size: number;
|
|
5653
|
+
page: number;
|
|
4930
5654
|
totalElements: number;
|
|
4931
5655
|
totalPages: number;
|
|
4932
5656
|
} | undefined;
|
|
@@ -5003,6 +5727,56 @@ export declare const couponRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5003
5727
|
user: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
5004
5728
|
referralCodeUsedBy: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
5005
5729
|
referralCodeUsedOnOrder: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
5730
|
+
referralSettingSnapShot: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
5731
|
+
sender: z.ZodObject<{
|
|
5732
|
+
valueType: z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
5733
|
+
value: z.ZodNumber;
|
|
5734
|
+
minimumOrderValue: z.ZodDefault<z.ZodNumber>;
|
|
5735
|
+
}, "strip", z.ZodTypeAny, {
|
|
5736
|
+
value: number;
|
|
5737
|
+
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
5738
|
+
minimumOrderValue: number;
|
|
5739
|
+
}, {
|
|
5740
|
+
value: number;
|
|
5741
|
+
valueType?: import("@lyxa.ai/core/dist/utilities/enum").ValueType | undefined;
|
|
5742
|
+
minimumOrderValue?: number | undefined;
|
|
5743
|
+
}>;
|
|
5744
|
+
receiver: z.ZodObject<{
|
|
5745
|
+
valueType: z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
5746
|
+
value: z.ZodNumber;
|
|
5747
|
+
minimumOrderValue: z.ZodDefault<z.ZodNumber>;
|
|
5748
|
+
}, "strip", z.ZodTypeAny, {
|
|
5749
|
+
value: number;
|
|
5750
|
+
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
5751
|
+
minimumOrderValue: number;
|
|
5752
|
+
}, {
|
|
5753
|
+
value: number;
|
|
5754
|
+
valueType?: import("@lyxa.ai/core/dist/utilities/enum").ValueType | undefined;
|
|
5755
|
+
minimumOrderValue?: number | undefined;
|
|
5756
|
+
}>;
|
|
5757
|
+
}, "strict", z.ZodTypeAny, {
|
|
5758
|
+
sender: {
|
|
5759
|
+
value: number;
|
|
5760
|
+
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
5761
|
+
minimumOrderValue: number;
|
|
5762
|
+
};
|
|
5763
|
+
receiver: {
|
|
5764
|
+
value: number;
|
|
5765
|
+
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
5766
|
+
minimumOrderValue: number;
|
|
5767
|
+
};
|
|
5768
|
+
}, {
|
|
5769
|
+
sender: {
|
|
5770
|
+
value: number;
|
|
5771
|
+
valueType?: import("@lyxa.ai/core/dist/utilities/enum").ValueType | undefined;
|
|
5772
|
+
minimumOrderValue?: number | undefined;
|
|
5773
|
+
};
|
|
5774
|
+
receiver: {
|
|
5775
|
+
value: number;
|
|
5776
|
+
valueType?: import("@lyxa.ai/core/dist/utilities/enum").ValueType | undefined;
|
|
5777
|
+
minimumOrderValue?: number | undefined;
|
|
5778
|
+
};
|
|
5779
|
+
}>>>;
|
|
5006
5780
|
valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
5007
5781
|
value: z.ZodOptional<z.ZodNumber>;
|
|
5008
5782
|
secondaryCurrencyValue: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
@@ -5315,6 +6089,56 @@ export declare const couponRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5315
6089
|
user: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
5316
6090
|
referralCodeUsedBy: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
5317
6091
|
referralCodeUsedOnOrder: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
6092
|
+
referralSettingSnapShot: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
6093
|
+
sender: z.ZodObject<{
|
|
6094
|
+
valueType: z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
6095
|
+
value: z.ZodNumber;
|
|
6096
|
+
minimumOrderValue: z.ZodDefault<z.ZodNumber>;
|
|
6097
|
+
}, "strip", z.ZodTypeAny, {
|
|
6098
|
+
value: number;
|
|
6099
|
+
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
6100
|
+
minimumOrderValue: number;
|
|
6101
|
+
}, {
|
|
6102
|
+
value: number;
|
|
6103
|
+
valueType?: import("@lyxa.ai/core/dist/utilities/enum").ValueType | undefined;
|
|
6104
|
+
minimumOrderValue?: number | undefined;
|
|
6105
|
+
}>;
|
|
6106
|
+
receiver: z.ZodObject<{
|
|
6107
|
+
valueType: z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
6108
|
+
value: z.ZodNumber;
|
|
6109
|
+
minimumOrderValue: z.ZodDefault<z.ZodNumber>;
|
|
6110
|
+
}, "strip", z.ZodTypeAny, {
|
|
6111
|
+
value: number;
|
|
6112
|
+
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
6113
|
+
minimumOrderValue: number;
|
|
6114
|
+
}, {
|
|
6115
|
+
value: number;
|
|
6116
|
+
valueType?: import("@lyxa.ai/core/dist/utilities/enum").ValueType | undefined;
|
|
6117
|
+
minimumOrderValue?: number | undefined;
|
|
6118
|
+
}>;
|
|
6119
|
+
}, "strict", z.ZodTypeAny, {
|
|
6120
|
+
sender: {
|
|
6121
|
+
value: number;
|
|
6122
|
+
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
6123
|
+
minimumOrderValue: number;
|
|
6124
|
+
};
|
|
6125
|
+
receiver: {
|
|
6126
|
+
value: number;
|
|
6127
|
+
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
6128
|
+
minimumOrderValue: number;
|
|
6129
|
+
};
|
|
6130
|
+
}, {
|
|
6131
|
+
sender: {
|
|
6132
|
+
value: number;
|
|
6133
|
+
valueType?: import("@lyxa.ai/core/dist/utilities/enum").ValueType | undefined;
|
|
6134
|
+
minimumOrderValue?: number | undefined;
|
|
6135
|
+
};
|
|
6136
|
+
receiver: {
|
|
6137
|
+
value: number;
|
|
6138
|
+
valueType?: import("@lyxa.ai/core/dist/utilities/enum").ValueType | undefined;
|
|
6139
|
+
minimumOrderValue?: number | undefined;
|
|
6140
|
+
};
|
|
6141
|
+
}>>>;
|
|
5318
6142
|
valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
5319
6143
|
value: z.ZodOptional<z.ZodNumber>;
|
|
5320
6144
|
secondaryCurrencyValue: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
@@ -5567,8 +6391,8 @@ export declare const couponRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5567
6391
|
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
5568
6392
|
}, z.ZodTypeAny, "passthrough">)[];
|
|
5569
6393
|
metadata?: {
|
|
5570
|
-
page: number;
|
|
5571
6394
|
size: number;
|
|
6395
|
+
page: number;
|
|
5572
6396
|
totalElements: number;
|
|
5573
6397
|
totalPages: number;
|
|
5574
6398
|
} | undefined;
|
|
@@ -5593,15 +6417,15 @@ export declare const couponRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5593
6417
|
}>;
|
|
5594
6418
|
getUserCouponList: import("@trpc/server").TRPCQueryProcedure<{
|
|
5595
6419
|
input: {
|
|
6420
|
+
sort?: Record<string, 1 | -1> | undefined;
|
|
5596
6421
|
search?: {
|
|
5597
6422
|
searchKey: string;
|
|
5598
6423
|
searchFields?: string[] | undefined;
|
|
5599
6424
|
} | undefined;
|
|
5600
|
-
sort?: Record<string, 1 | -1> | undefined;
|
|
5601
|
-
page?: number | undefined;
|
|
5602
6425
|
select?: Record<string, 0 | 1> | undefined;
|
|
5603
|
-
size?: number | undefined;
|
|
5604
6426
|
populate?: any;
|
|
6427
|
+
size?: number | undefined;
|
|
6428
|
+
page?: number | undefined;
|
|
5605
6429
|
query?: Record<string, any> | undefined;
|
|
5606
6430
|
} | undefined;
|
|
5607
6431
|
output: import("@lyxa.ai/core/dist/utilities/validation").PaginatedResponse<z.objectOutputType<{
|
|
@@ -5665,6 +6489,56 @@ export declare const couponRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5665
6489
|
user: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
5666
6490
|
referralCodeUsedBy: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
5667
6491
|
referralCodeUsedOnOrder: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
6492
|
+
referralSettingSnapShot: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
6493
|
+
sender: z.ZodObject<{
|
|
6494
|
+
valueType: z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
6495
|
+
value: z.ZodNumber;
|
|
6496
|
+
minimumOrderValue: z.ZodDefault<z.ZodNumber>;
|
|
6497
|
+
}, "strip", z.ZodTypeAny, {
|
|
6498
|
+
value: number;
|
|
6499
|
+
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
6500
|
+
minimumOrderValue: number;
|
|
6501
|
+
}, {
|
|
6502
|
+
value: number;
|
|
6503
|
+
valueType?: import("@lyxa.ai/core/dist/utilities/enum").ValueType | undefined;
|
|
6504
|
+
minimumOrderValue?: number | undefined;
|
|
6505
|
+
}>;
|
|
6506
|
+
receiver: z.ZodObject<{
|
|
6507
|
+
valueType: z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
6508
|
+
value: z.ZodNumber;
|
|
6509
|
+
minimumOrderValue: z.ZodDefault<z.ZodNumber>;
|
|
6510
|
+
}, "strip", z.ZodTypeAny, {
|
|
6511
|
+
value: number;
|
|
6512
|
+
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
6513
|
+
minimumOrderValue: number;
|
|
6514
|
+
}, {
|
|
6515
|
+
value: number;
|
|
6516
|
+
valueType?: import("@lyxa.ai/core/dist/utilities/enum").ValueType | undefined;
|
|
6517
|
+
minimumOrderValue?: number | undefined;
|
|
6518
|
+
}>;
|
|
6519
|
+
}, "strict", z.ZodTypeAny, {
|
|
6520
|
+
sender: {
|
|
6521
|
+
value: number;
|
|
6522
|
+
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
6523
|
+
minimumOrderValue: number;
|
|
6524
|
+
};
|
|
6525
|
+
receiver: {
|
|
6526
|
+
value: number;
|
|
6527
|
+
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
6528
|
+
minimumOrderValue: number;
|
|
6529
|
+
};
|
|
6530
|
+
}, {
|
|
6531
|
+
sender: {
|
|
6532
|
+
value: number;
|
|
6533
|
+
valueType?: import("@lyxa.ai/core/dist/utilities/enum").ValueType | undefined;
|
|
6534
|
+
minimumOrderValue?: number | undefined;
|
|
6535
|
+
};
|
|
6536
|
+
receiver: {
|
|
6537
|
+
value: number;
|
|
6538
|
+
valueType?: import("@lyxa.ai/core/dist/utilities/enum").ValueType | undefined;
|
|
6539
|
+
minimumOrderValue?: number | undefined;
|
|
6540
|
+
};
|
|
6541
|
+
}>>>;
|
|
5668
6542
|
valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
5669
6543
|
value: z.ZodOptional<z.ZodNumber>;
|
|
5670
6544
|
secondaryCurrencyValue: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
@@ -5968,8 +6842,8 @@ export declare const couponRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5968
6842
|
couponInfo?: Record<string, unknown> | undefined;
|
|
5969
6843
|
}[];
|
|
5970
6844
|
metadata?: {
|
|
5971
|
-
page: number;
|
|
5972
6845
|
size: number;
|
|
6846
|
+
page: number;
|
|
5973
6847
|
totalElements: number;
|
|
5974
6848
|
totalPages: number;
|
|
5975
6849
|
} | undefined;
|
|
@@ -6027,8 +6901,8 @@ export declare const couponRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
6027
6901
|
couponInfo?: Record<string, unknown> | undefined;
|
|
6028
6902
|
}[];
|
|
6029
6903
|
metadata?: {
|
|
6030
|
-
page: number;
|
|
6031
6904
|
size: number;
|
|
6905
|
+
page: number;
|
|
6032
6906
|
totalElements: number;
|
|
6033
6907
|
totalPages: number;
|
|
6034
6908
|
} | undefined;
|
|
@@ -6086,8 +6960,8 @@ export declare const couponRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
6086
6960
|
couponInfo?: Record<string, unknown> | undefined;
|
|
6087
6961
|
}[];
|
|
6088
6962
|
metadata?: {
|
|
6089
|
-
page: number;
|
|
6090
6963
|
size: number;
|
|
6964
|
+
page: number;
|
|
6091
6965
|
totalElements: number;
|
|
6092
6966
|
totalPages: number;
|
|
6093
6967
|
} | undefined;
|
|
@@ -6127,16 +7001,16 @@ export declare const couponRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
6127
7001
|
message: string;
|
|
6128
7002
|
success: boolean;
|
|
6129
7003
|
data?: {
|
|
6130
|
-
link: string;
|
|
6131
7004
|
message: string;
|
|
7005
|
+
link: string;
|
|
6132
7006
|
} | {
|
|
6133
7007
|
documents: {
|
|
6134
|
-
link: string;
|
|
6135
7008
|
message: string;
|
|
7009
|
+
link: string;
|
|
6136
7010
|
}[];
|
|
6137
7011
|
metadata?: {
|
|
6138
|
-
page: number;
|
|
6139
7012
|
size: number;
|
|
7013
|
+
page: number;
|
|
6140
7014
|
totalElements: number;
|
|
6141
7015
|
totalPages: number;
|
|
6142
7016
|
} | undefined;
|
|
@@ -6219,8 +7093,8 @@ export declare const couponRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
6219
7093
|
totalProfit?: number | undefined;
|
|
6220
7094
|
}[];
|
|
6221
7095
|
metadata?: {
|
|
6222
|
-
page: number;
|
|
6223
7096
|
size: number;
|
|
7097
|
+
page: number;
|
|
6224
7098
|
totalElements: number;
|
|
6225
7099
|
totalPages: number;
|
|
6226
7100
|
} | undefined;
|
|
@@ -6259,8 +7133,8 @@ export declare const couponRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
6259
7133
|
amountSpent?: number | undefined;
|
|
6260
7134
|
}[][];
|
|
6261
7135
|
metadata?: {
|
|
6262
|
-
page: number;
|
|
6263
7136
|
size: number;
|
|
7137
|
+
page: number;
|
|
6264
7138
|
totalElements: number;
|
|
6265
7139
|
totalPages: number;
|
|
6266
7140
|
} | undefined;
|
|
@@ -6293,8 +7167,8 @@ export declare const couponRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
6293
7167
|
}[];
|
|
6294
7168
|
}[];
|
|
6295
7169
|
metadata?: {
|
|
6296
|
-
page: number;
|
|
6297
7170
|
size: number;
|
|
7171
|
+
page: number;
|
|
6298
7172
|
totalElements: number;
|
|
6299
7173
|
totalPages: number;
|
|
6300
7174
|
} | undefined;
|
|
@@ -6327,8 +7201,8 @@ export declare const couponRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
6327
7201
|
}[];
|
|
6328
7202
|
}[];
|
|
6329
7203
|
metadata?: {
|
|
6330
|
-
page: number;
|
|
6331
7204
|
size: number;
|
|
7205
|
+
page: number;
|
|
6332
7206
|
totalElements: number;
|
|
6333
7207
|
totalPages: number;
|
|
6334
7208
|
} | undefined;
|
|
@@ -6363,8 +7237,8 @@ export declare const couponRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
6363
7237
|
totalProfit?: number | undefined;
|
|
6364
7238
|
}[];
|
|
6365
7239
|
metadata?: {
|
|
6366
|
-
page: number;
|
|
6367
7240
|
size: number;
|
|
7241
|
+
page: number;
|
|
6368
7242
|
totalElements: number;
|
|
6369
7243
|
totalPages: number;
|
|
6370
7244
|
} | undefined;
|
|
@@ -6438,6 +7312,56 @@ export declare const couponRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
6438
7312
|
user: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
6439
7313
|
referralCodeUsedBy: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
6440
7314
|
referralCodeUsedOnOrder: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
7315
|
+
referralSettingSnapShot: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
7316
|
+
sender: z.ZodObject<{
|
|
7317
|
+
valueType: z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
7318
|
+
value: z.ZodNumber;
|
|
7319
|
+
minimumOrderValue: z.ZodDefault<z.ZodNumber>;
|
|
7320
|
+
}, "strip", z.ZodTypeAny, {
|
|
7321
|
+
value: number;
|
|
7322
|
+
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
7323
|
+
minimumOrderValue: number;
|
|
7324
|
+
}, {
|
|
7325
|
+
value: number;
|
|
7326
|
+
valueType?: import("@lyxa.ai/core/dist/utilities/enum").ValueType | undefined;
|
|
7327
|
+
minimumOrderValue?: number | undefined;
|
|
7328
|
+
}>;
|
|
7329
|
+
receiver: z.ZodObject<{
|
|
7330
|
+
valueType: z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
7331
|
+
value: z.ZodNumber;
|
|
7332
|
+
minimumOrderValue: z.ZodDefault<z.ZodNumber>;
|
|
7333
|
+
}, "strip", z.ZodTypeAny, {
|
|
7334
|
+
value: number;
|
|
7335
|
+
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
7336
|
+
minimumOrderValue: number;
|
|
7337
|
+
}, {
|
|
7338
|
+
value: number;
|
|
7339
|
+
valueType?: import("@lyxa.ai/core/dist/utilities/enum").ValueType | undefined;
|
|
7340
|
+
minimumOrderValue?: number | undefined;
|
|
7341
|
+
}>;
|
|
7342
|
+
}, "strict", z.ZodTypeAny, {
|
|
7343
|
+
sender: {
|
|
7344
|
+
value: number;
|
|
7345
|
+
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
7346
|
+
minimumOrderValue: number;
|
|
7347
|
+
};
|
|
7348
|
+
receiver: {
|
|
7349
|
+
value: number;
|
|
7350
|
+
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
7351
|
+
minimumOrderValue: number;
|
|
7352
|
+
};
|
|
7353
|
+
}, {
|
|
7354
|
+
sender: {
|
|
7355
|
+
value: number;
|
|
7356
|
+
valueType?: import("@lyxa.ai/core/dist/utilities/enum").ValueType | undefined;
|
|
7357
|
+
minimumOrderValue?: number | undefined;
|
|
7358
|
+
};
|
|
7359
|
+
receiver: {
|
|
7360
|
+
value: number;
|
|
7361
|
+
valueType?: import("@lyxa.ai/core/dist/utilities/enum").ValueType | undefined;
|
|
7362
|
+
minimumOrderValue?: number | undefined;
|
|
7363
|
+
};
|
|
7364
|
+
}>>>;
|
|
6441
7365
|
valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
6442
7366
|
value: z.ZodOptional<z.ZodNumber>;
|
|
6443
7367
|
secondaryCurrencyValue: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
@@ -6750,6 +7674,56 @@ export declare const couponRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
6750
7674
|
user: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
6751
7675
|
referralCodeUsedBy: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
6752
7676
|
referralCodeUsedOnOrder: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
7677
|
+
referralSettingSnapShot: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
7678
|
+
sender: z.ZodObject<{
|
|
7679
|
+
valueType: z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
7680
|
+
value: z.ZodNumber;
|
|
7681
|
+
minimumOrderValue: z.ZodDefault<z.ZodNumber>;
|
|
7682
|
+
}, "strip", z.ZodTypeAny, {
|
|
7683
|
+
value: number;
|
|
7684
|
+
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
7685
|
+
minimumOrderValue: number;
|
|
7686
|
+
}, {
|
|
7687
|
+
value: number;
|
|
7688
|
+
valueType?: import("@lyxa.ai/core/dist/utilities/enum").ValueType | undefined;
|
|
7689
|
+
minimumOrderValue?: number | undefined;
|
|
7690
|
+
}>;
|
|
7691
|
+
receiver: z.ZodObject<{
|
|
7692
|
+
valueType: z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
7693
|
+
value: z.ZodNumber;
|
|
7694
|
+
minimumOrderValue: z.ZodDefault<z.ZodNumber>;
|
|
7695
|
+
}, "strip", z.ZodTypeAny, {
|
|
7696
|
+
value: number;
|
|
7697
|
+
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
7698
|
+
minimumOrderValue: number;
|
|
7699
|
+
}, {
|
|
7700
|
+
value: number;
|
|
7701
|
+
valueType?: import("@lyxa.ai/core/dist/utilities/enum").ValueType | undefined;
|
|
7702
|
+
minimumOrderValue?: number | undefined;
|
|
7703
|
+
}>;
|
|
7704
|
+
}, "strict", z.ZodTypeAny, {
|
|
7705
|
+
sender: {
|
|
7706
|
+
value: number;
|
|
7707
|
+
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
7708
|
+
minimumOrderValue: number;
|
|
7709
|
+
};
|
|
7710
|
+
receiver: {
|
|
7711
|
+
value: number;
|
|
7712
|
+
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
7713
|
+
minimumOrderValue: number;
|
|
7714
|
+
};
|
|
7715
|
+
}, {
|
|
7716
|
+
sender: {
|
|
7717
|
+
value: number;
|
|
7718
|
+
valueType?: import("@lyxa.ai/core/dist/utilities/enum").ValueType | undefined;
|
|
7719
|
+
minimumOrderValue?: number | undefined;
|
|
7720
|
+
};
|
|
7721
|
+
receiver: {
|
|
7722
|
+
value: number;
|
|
7723
|
+
valueType?: import("@lyxa.ai/core/dist/utilities/enum").ValueType | undefined;
|
|
7724
|
+
minimumOrderValue?: number | undefined;
|
|
7725
|
+
};
|
|
7726
|
+
}>>>;
|
|
6753
7727
|
valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
6754
7728
|
value: z.ZodOptional<z.ZodNumber>;
|
|
6755
7729
|
secondaryCurrencyValue: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
@@ -7002,8 +7976,8 @@ export declare const couponRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
7002
7976
|
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
7003
7977
|
}, z.ZodTypeAny, "passthrough">)[];
|
|
7004
7978
|
metadata?: {
|
|
7005
|
-
page: number;
|
|
7006
7979
|
size: number;
|
|
7980
|
+
page: number;
|
|
7007
7981
|
totalElements: number;
|
|
7008
7982
|
totalPages: number;
|
|
7009
7983
|
} | undefined;
|
|
@@ -7086,6 +8060,56 @@ export declare const couponRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
7086
8060
|
user: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
7087
8061
|
referralCodeUsedBy: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
7088
8062
|
referralCodeUsedOnOrder: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
8063
|
+
referralSettingSnapShot: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
8064
|
+
sender: z.ZodObject<{
|
|
8065
|
+
valueType: z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
8066
|
+
value: z.ZodNumber;
|
|
8067
|
+
minimumOrderValue: z.ZodDefault<z.ZodNumber>;
|
|
8068
|
+
}, "strip", z.ZodTypeAny, {
|
|
8069
|
+
value: number;
|
|
8070
|
+
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
8071
|
+
minimumOrderValue: number;
|
|
8072
|
+
}, {
|
|
8073
|
+
value: number;
|
|
8074
|
+
valueType?: import("@lyxa.ai/core/dist/utilities/enum").ValueType | undefined;
|
|
8075
|
+
minimumOrderValue?: number | undefined;
|
|
8076
|
+
}>;
|
|
8077
|
+
receiver: z.ZodObject<{
|
|
8078
|
+
valueType: z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
8079
|
+
value: z.ZodNumber;
|
|
8080
|
+
minimumOrderValue: z.ZodDefault<z.ZodNumber>;
|
|
8081
|
+
}, "strip", z.ZodTypeAny, {
|
|
8082
|
+
value: number;
|
|
8083
|
+
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
8084
|
+
minimumOrderValue: number;
|
|
8085
|
+
}, {
|
|
8086
|
+
value: number;
|
|
8087
|
+
valueType?: import("@lyxa.ai/core/dist/utilities/enum").ValueType | undefined;
|
|
8088
|
+
minimumOrderValue?: number | undefined;
|
|
8089
|
+
}>;
|
|
8090
|
+
}, "strict", z.ZodTypeAny, {
|
|
8091
|
+
sender: {
|
|
8092
|
+
value: number;
|
|
8093
|
+
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
8094
|
+
minimumOrderValue: number;
|
|
8095
|
+
};
|
|
8096
|
+
receiver: {
|
|
8097
|
+
value: number;
|
|
8098
|
+
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
8099
|
+
minimumOrderValue: number;
|
|
8100
|
+
};
|
|
8101
|
+
}, {
|
|
8102
|
+
sender: {
|
|
8103
|
+
value: number;
|
|
8104
|
+
valueType?: import("@lyxa.ai/core/dist/utilities/enum").ValueType | undefined;
|
|
8105
|
+
minimumOrderValue?: number | undefined;
|
|
8106
|
+
};
|
|
8107
|
+
receiver: {
|
|
8108
|
+
value: number;
|
|
8109
|
+
valueType?: import("@lyxa.ai/core/dist/utilities/enum").ValueType | undefined;
|
|
8110
|
+
minimumOrderValue?: number | undefined;
|
|
8111
|
+
};
|
|
8112
|
+
}>>>;
|
|
7089
8113
|
valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
7090
8114
|
value: z.ZodOptional<z.ZodNumber>;
|
|
7091
8115
|
secondaryCurrencyValue: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
@@ -7398,6 +8422,56 @@ export declare const couponRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
7398
8422
|
user: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
7399
8423
|
referralCodeUsedBy: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
7400
8424
|
referralCodeUsedOnOrder: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
8425
|
+
referralSettingSnapShot: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
8426
|
+
sender: z.ZodObject<{
|
|
8427
|
+
valueType: z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
8428
|
+
value: z.ZodNumber;
|
|
8429
|
+
minimumOrderValue: z.ZodDefault<z.ZodNumber>;
|
|
8430
|
+
}, "strip", z.ZodTypeAny, {
|
|
8431
|
+
value: number;
|
|
8432
|
+
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
8433
|
+
minimumOrderValue: number;
|
|
8434
|
+
}, {
|
|
8435
|
+
value: number;
|
|
8436
|
+
valueType?: import("@lyxa.ai/core/dist/utilities/enum").ValueType | undefined;
|
|
8437
|
+
minimumOrderValue?: number | undefined;
|
|
8438
|
+
}>;
|
|
8439
|
+
receiver: z.ZodObject<{
|
|
8440
|
+
valueType: z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
8441
|
+
value: z.ZodNumber;
|
|
8442
|
+
minimumOrderValue: z.ZodDefault<z.ZodNumber>;
|
|
8443
|
+
}, "strip", z.ZodTypeAny, {
|
|
8444
|
+
value: number;
|
|
8445
|
+
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
8446
|
+
minimumOrderValue: number;
|
|
8447
|
+
}, {
|
|
8448
|
+
value: number;
|
|
8449
|
+
valueType?: import("@lyxa.ai/core/dist/utilities/enum").ValueType | undefined;
|
|
8450
|
+
minimumOrderValue?: number | undefined;
|
|
8451
|
+
}>;
|
|
8452
|
+
}, "strict", z.ZodTypeAny, {
|
|
8453
|
+
sender: {
|
|
8454
|
+
value: number;
|
|
8455
|
+
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
8456
|
+
minimumOrderValue: number;
|
|
8457
|
+
};
|
|
8458
|
+
receiver: {
|
|
8459
|
+
value: number;
|
|
8460
|
+
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
8461
|
+
minimumOrderValue: number;
|
|
8462
|
+
};
|
|
8463
|
+
}, {
|
|
8464
|
+
sender: {
|
|
8465
|
+
value: number;
|
|
8466
|
+
valueType?: import("@lyxa.ai/core/dist/utilities/enum").ValueType | undefined;
|
|
8467
|
+
minimumOrderValue?: number | undefined;
|
|
8468
|
+
};
|
|
8469
|
+
receiver: {
|
|
8470
|
+
value: number;
|
|
8471
|
+
valueType?: import("@lyxa.ai/core/dist/utilities/enum").ValueType | undefined;
|
|
8472
|
+
minimumOrderValue?: number | undefined;
|
|
8473
|
+
};
|
|
8474
|
+
}>>>;
|
|
7401
8475
|
valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
7402
8476
|
value: z.ZodOptional<z.ZodNumber>;
|
|
7403
8477
|
secondaryCurrencyValue: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
@@ -7650,8 +8724,8 @@ export declare const couponRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
7650
8724
|
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
7651
8725
|
}, z.ZodTypeAny, "passthrough">)[];
|
|
7652
8726
|
metadata?: {
|
|
7653
|
-
page: number;
|
|
7654
8727
|
size: number;
|
|
8728
|
+
page: number;
|
|
7655
8729
|
totalElements: number;
|
|
7656
8730
|
totalPages: number;
|
|
7657
8731
|
} | undefined;
|