@lyxa.ai/marketing 1.0.14 → 1.0.16
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/events/event-initializations.d.ts +2 -0
- package/dist/lib/events/event-initializations.d.ts.map +1 -0
- package/dist/lib/events/event-initializations.js +5 -0
- package/dist/lib/events/event-initializations.js.map +1 -0
- package/dist/lib/index.d.ts +4436 -0
- package/dist/lib/index.d.ts.map +1 -0
- package/dist/lib/index.js.map +1 -0
- package/dist/lib/modules/coupon/routers/coupon.router.d.ts +3063 -0
- package/dist/lib/modules/coupon/routers/coupon.router.d.ts.map +1 -0
- package/dist/lib/modules/coupon/routers/coupon.router.js +106 -0
- package/dist/lib/modules/coupon/routers/coupon.router.js.map +1 -0
- package/dist/lib/modules/coupon/routers/index.d.ts +2 -0
- package/dist/lib/modules/coupon/routers/index.d.ts.map +1 -0
- package/dist/lib/modules/coupon/routers/index.js +18 -0
- package/dist/lib/modules/coupon/routers/index.js.map +1 -0
- package/dist/lib/modules/coupon/services/coupon.service.d.ts +42 -0
- package/dist/lib/modules/coupon/services/coupon.service.d.ts.map +1 -0
- package/dist/lib/modules/coupon/services/coupon.service.js +686 -0
- package/dist/lib/modules/coupon/services/coupon.service.js.map +1 -0
- package/dist/lib/modules/coupon/services/custom-coupon.service.d.ts +12 -0
- package/dist/lib/modules/coupon/services/custom-coupon.service.d.ts.map +1 -0
- package/dist/lib/modules/coupon/services/custom-coupon.service.js +103 -0
- package/dist/lib/modules/coupon/services/custom-coupon.service.js.map +1 -0
- package/dist/lib/modules/coupon/services/global-coupon.service.d.ts +12 -0
- package/dist/lib/modules/coupon/services/global-coupon.service.d.ts.map +1 -0
- package/dist/lib/modules/coupon/services/global-coupon.service.js +120 -0
- package/dist/lib/modules/coupon/services/global-coupon.service.js.map +1 -0
- package/dist/lib/modules/coupon/services/index.d.ts +8 -0
- package/dist/lib/modules/coupon/services/index.d.ts.map +1 -0
- package/dist/lib/modules/coupon/services/index.js +24 -0
- package/dist/lib/modules/coupon/services/index.js.map +1 -0
- package/dist/lib/modules/coupon/services/individual-store-coupon.service.d.ts +13 -0
- package/dist/lib/modules/coupon/services/individual-store-coupon.service.d.ts.map +1 -0
- package/dist/lib/modules/coupon/services/individual-store-coupon.service.js +120 -0
- package/dist/lib/modules/coupon/services/individual-store-coupon.service.js.map +1 -0
- package/dist/lib/modules/coupon/services/individual-user-coupon.service.d.ts +12 -0
- package/dist/lib/modules/coupon/services/individual-user-coupon.service.d.ts.map +1 -0
- package/dist/lib/modules/coupon/services/individual-user-coupon.service.js +111 -0
- package/dist/lib/modules/coupon/services/individual-user-coupon.service.js.map +1 -0
- package/dist/lib/modules/coupon/services/patterns/repository/CouponRepository.d.ts +12 -0
- package/dist/lib/modules/coupon/services/patterns/repository/CouponRepository.d.ts.map +1 -0
- package/dist/lib/modules/coupon/services/patterns/repository/CouponRepository.js +313 -0
- package/dist/lib/modules/coupon/services/patterns/repository/CouponRepository.js.map +1 -0
- package/dist/lib/modules/coupon/services/referral-code-coupon.service.d.ts +19 -0
- package/dist/lib/modules/coupon/services/referral-code-coupon.service.d.ts.map +1 -0
- package/dist/lib/modules/coupon/services/referral-code-coupon.service.js +179 -0
- package/dist/lib/modules/coupon/services/referral-code-coupon.service.js.map +1 -0
- package/dist/lib/modules/coupon/services/referral-reward-coupon.service.d.ts +19 -0
- package/dist/lib/modules/coupon/services/referral-reward-coupon.service.d.ts.map +1 -0
- package/dist/lib/modules/coupon/services/referral-reward-coupon.service.js +186 -0
- package/dist/lib/modules/coupon/services/referral-reward-coupon.service.js.map +1 -0
- package/dist/lib/modules/coupon/transformers/coupon.transformer.d.ts +233 -0
- package/dist/lib/modules/coupon/transformers/coupon.transformer.d.ts.map +1 -0
- package/dist/lib/modules/coupon/transformers/coupon.transformer.js +7 -0
- package/dist/lib/modules/coupon/transformers/coupon.transformer.js.map +1 -0
- package/dist/lib/modules/coupon/transformers/index.d.ts +2 -0
- package/dist/lib/modules/coupon/transformers/index.d.ts.map +1 -0
- package/dist/lib/modules/coupon/transformers/index.js +18 -0
- package/dist/lib/modules/coupon/transformers/index.js.map +1 -0
- package/dist/lib/modules/coupon/validations/all-coupons.validation.d.ts +4382 -0
- package/dist/lib/modules/coupon/validations/all-coupons.validation.d.ts.map +1 -0
- package/dist/lib/modules/coupon/validations/all-coupons.validation.js +28 -0
- package/dist/lib/modules/coupon/validations/all-coupons.validation.js.map +1 -0
- package/dist/lib/modules/coupon/validations/coupon.validation.d.ts +1297 -0
- package/dist/lib/modules/coupon/validations/coupon.validation.d.ts.map +1 -0
- package/dist/lib/modules/coupon/validations/coupon.validation.js +107 -0
- package/dist/lib/modules/coupon/validations/coupon.validation.js.map +1 -0
- package/dist/lib/modules/coupon/validations/custom-coupon.validation.d.ts +385 -0
- package/dist/lib/modules/coupon/validations/custom-coupon.validation.d.ts.map +1 -0
- package/dist/lib/modules/coupon/validations/custom-coupon.validation.js +21 -0
- package/dist/lib/modules/coupon/validations/custom-coupon.validation.js.map +1 -0
- package/dist/lib/modules/coupon/validations/global-coupon.validation.d.ts +358 -0
- package/dist/lib/modules/coupon/validations/global-coupon.validation.d.ts.map +1 -0
- package/dist/lib/modules/coupon/validations/global-coupon.validation.js +18 -0
- package/dist/lib/modules/coupon/validations/global-coupon.validation.js.map +1 -0
- package/dist/lib/modules/coupon/validations/index.d.ts +9 -0
- package/dist/lib/modules/coupon/validations/index.d.ts.map +1 -0
- package/dist/lib/modules/coupon/validations/index.js +25 -0
- package/dist/lib/modules/coupon/validations/index.js.map +1 -0
- package/dist/lib/modules/coupon/validations/individual-store-coupon.validation.d.ts +385 -0
- package/dist/lib/modules/coupon/validations/individual-store-coupon.validation.d.ts.map +1 -0
- package/dist/lib/modules/coupon/validations/individual-store-coupon.validation.js +21 -0
- package/dist/lib/modules/coupon/validations/individual-store-coupon.validation.js.map +1 -0
- package/dist/lib/modules/coupon/validations/individual-user-coupon.validation.d.ts +385 -0
- package/dist/lib/modules/coupon/validations/individual-user-coupon.validation.d.ts.map +1 -0
- package/dist/lib/modules/coupon/validations/individual-user-coupon.validation.js +21 -0
- package/dist/lib/modules/coupon/validations/individual-user-coupon.validation.js.map +1 -0
- package/dist/lib/modules/coupon/validations/referral-code-coupon.validation.d.ts +95 -0
- package/dist/lib/modules/coupon/validations/referral-code-coupon.validation.d.ts.map +1 -0
- package/dist/lib/modules/coupon/validations/referral-code-coupon.validation.js +24 -0
- package/dist/lib/modules/coupon/validations/referral-code-coupon.validation.js.map +1 -0
- package/dist/lib/modules/coupon/validations/referral-reward-coupon.validation.d.ts +385 -0
- package/dist/lib/modules/coupon/validations/referral-reward-coupon.validation.d.ts.map +1 -0
- package/dist/lib/modules/coupon/validations/referral-reward-coupon.validation.js +21 -0
- package/dist/lib/modules/coupon/validations/referral-reward-coupon.validation.js.map +1 -0
- package/dist/lib/modules/deal-setting/routers/deal-setting.router.d.ts +214 -0
- package/dist/lib/modules/deal-setting/routers/deal-setting.router.d.ts.map +1 -0
- package/dist/lib/modules/deal-setting/routers/deal-setting.router.js +52 -0
- package/dist/lib/modules/deal-setting/routers/deal-setting.router.js.map +1 -0
- package/dist/lib/modules/deal-setting/routers/index.d.ts +2 -0
- package/dist/lib/modules/deal-setting/routers/index.d.ts.map +1 -0
- package/dist/lib/modules/deal-setting/routers/index.js +18 -0
- package/dist/lib/modules/deal-setting/routers/index.js.map +1 -0
- package/dist/lib/modules/deal-setting/services/deal-setting.service.d.ts +17 -0
- package/dist/lib/modules/deal-setting/services/deal-setting.service.d.ts.map +1 -0
- package/dist/lib/modules/deal-setting/services/deal-setting.service.js +181 -0
- package/dist/lib/modules/deal-setting/services/deal-setting.service.js.map +1 -0
- package/dist/lib/modules/deal-setting/services/index.d.ts +2 -0
- package/dist/lib/modules/deal-setting/services/index.d.ts.map +1 -0
- package/dist/lib/modules/deal-setting/services/index.js +18 -0
- package/dist/lib/modules/deal-setting/services/index.js.map +1 -0
- package/dist/lib/modules/deal-setting/transformers/deal-setting.transformer.d.ts +11 -0
- package/dist/lib/modules/deal-setting/transformers/deal-setting.transformer.d.ts.map +1 -0
- package/dist/lib/modules/deal-setting/transformers/deal-setting.transformer.js +7 -0
- package/dist/lib/modules/deal-setting/transformers/deal-setting.transformer.js.map +1 -0
- package/dist/lib/modules/deal-setting/transformers/index.d.ts +2 -0
- package/dist/lib/modules/deal-setting/transformers/index.d.ts.map +1 -0
- package/dist/lib/modules/deal-setting/transformers/index.js +18 -0
- package/dist/lib/modules/deal-setting/transformers/index.js.map +1 -0
- package/dist/lib/modules/deal-setting/validations/deal-setting.validation.d.ts +227 -0
- package/dist/lib/modules/deal-setting/validations/deal-setting.validation.d.ts.map +1 -0
- package/dist/lib/modules/deal-setting/validations/deal-setting.validation.js +22 -0
- package/dist/lib/modules/deal-setting/validations/deal-setting.validation.js.map +1 -0
- package/dist/lib/modules/deal-setting/validations/index.d.ts +2 -0
- package/dist/lib/modules/deal-setting/validations/index.d.ts.map +1 -0
- package/dist/lib/modules/deal-setting/validations/index.js +18 -0
- package/dist/lib/modules/deal-setting/validations/index.js.map +1 -0
- package/dist/lib/modules/featured-setting/routers/featured-setting.router.d.ts +302 -0
- package/dist/lib/modules/featured-setting/routers/featured-setting.router.d.ts.map +1 -0
- package/dist/lib/modules/featured-setting/routers/featured-setting.router.js +52 -0
- package/dist/lib/modules/featured-setting/routers/featured-setting.router.js.map +1 -0
- package/dist/lib/modules/featured-setting/routers/index.d.ts +2 -0
- package/dist/lib/modules/featured-setting/routers/index.d.ts.map +1 -0
- package/dist/lib/modules/featured-setting/routers/index.js +18 -0
- package/dist/lib/modules/featured-setting/routers/index.js.map +1 -0
- package/dist/lib/modules/featured-setting/services/featured-setting.service.d.ts +17 -0
- package/dist/lib/modules/featured-setting/services/featured-setting.service.d.ts.map +1 -0
- package/dist/lib/modules/featured-setting/services/featured-setting.service.js +181 -0
- package/dist/lib/modules/featured-setting/services/featured-setting.service.js.map +1 -0
- package/dist/lib/modules/featured-setting/services/index.d.ts +2 -0
- package/dist/lib/modules/featured-setting/services/index.d.ts.map +1 -0
- package/dist/lib/modules/featured-setting/services/index.js +18 -0
- package/dist/lib/modules/featured-setting/services/index.js.map +1 -0
- package/dist/lib/modules/featured-setting/transformers/featured-setting.transformer.d.ts +19 -0
- package/dist/lib/modules/featured-setting/transformers/featured-setting.transformer.d.ts.map +1 -0
- package/dist/lib/modules/featured-setting/transformers/featured-setting.transformer.js +7 -0
- package/dist/lib/modules/featured-setting/transformers/featured-setting.transformer.js.map +1 -0
- package/dist/lib/modules/featured-setting/transformers/index.d.ts +2 -0
- package/dist/lib/modules/featured-setting/transformers/index.d.ts.map +1 -0
- package/dist/lib/modules/featured-setting/transformers/index.js +18 -0
- package/dist/lib/modules/featured-setting/transformers/index.js.map +1 -0
- package/dist/lib/modules/featured-setting/validations/featured-setting.validation.d.ts +363 -0
- package/dist/lib/modules/featured-setting/validations/featured-setting.validation.d.ts.map +1 -0
- package/dist/lib/modules/featured-setting/validations/featured-setting.validation.js +24 -0
- package/dist/lib/modules/featured-setting/validations/featured-setting.validation.js.map +1 -0
- package/dist/lib/modules/featured-setting/validations/index.d.ts +2 -0
- package/dist/lib/modules/featured-setting/validations/index.d.ts.map +1 -0
- package/dist/lib/modules/featured-setting/validations/index.js +18 -0
- package/dist/lib/modules/featured-setting/validations/index.js.map +1 -0
- package/dist/lib/modules/loyalty-point-setting/routers/index.d.ts +2 -0
- package/dist/lib/modules/loyalty-point-setting/routers/index.d.ts.map +1 -0
- package/dist/lib/modules/loyalty-point-setting/routers/index.js +18 -0
- package/dist/lib/modules/loyalty-point-setting/routers/index.js.map +1 -0
- package/dist/lib/modules/loyalty-point-setting/routers/loyalty-point-setting.router.d.ts +321 -0
- package/dist/lib/modules/loyalty-point-setting/routers/loyalty-point-setting.router.d.ts.map +1 -0
- package/dist/lib/modules/loyalty-point-setting/routers/loyalty-point-setting.router.js +82 -0
- package/dist/lib/modules/loyalty-point-setting/routers/loyalty-point-setting.router.js.map +1 -0
- package/dist/lib/modules/loyalty-point-setting/services/index.d.ts +3 -0
- package/dist/lib/modules/loyalty-point-setting/services/index.d.ts.map +1 -0
- package/dist/lib/modules/loyalty-point-setting/services/index.js +19 -0
- package/dist/lib/modules/loyalty-point-setting/services/index.js.map +1 -0
- package/dist/lib/modules/loyalty-point-setting/services/loyalty-point-category.service.d.ts +16 -0
- package/dist/lib/modules/loyalty-point-setting/services/loyalty-point-category.service.d.ts.map +1 -0
- package/dist/lib/modules/loyalty-point-setting/services/loyalty-point-category.service.js +133 -0
- package/dist/lib/modules/loyalty-point-setting/services/loyalty-point-category.service.js.map +1 -0
- package/dist/lib/modules/loyalty-point-setting/services/loyalty-point-setting.service.d.ts +16 -0
- package/dist/lib/modules/loyalty-point-setting/services/loyalty-point-setting.service.d.ts.map +1 -0
- package/dist/lib/modules/loyalty-point-setting/services/loyalty-point-setting.service.js +156 -0
- package/dist/lib/modules/loyalty-point-setting/services/loyalty-point-setting.service.js.map +1 -0
- package/dist/lib/modules/loyalty-point-setting/transformers/index.d.ts +3 -0
- package/dist/lib/modules/loyalty-point-setting/transformers/index.d.ts.map +1 -0
- package/dist/lib/modules/loyalty-point-setting/transformers/index.js +19 -0
- package/dist/lib/modules/loyalty-point-setting/transformers/index.js.map +1 -0
- package/dist/lib/modules/loyalty-point-setting/transformers/loyalty-point-category.transformer.d.ts +8 -0
- package/dist/lib/modules/loyalty-point-setting/transformers/loyalty-point-category.transformer.d.ts.map +1 -0
- package/dist/lib/modules/loyalty-point-setting/transformers/loyalty-point-category.transformer.js +7 -0
- package/dist/lib/modules/loyalty-point-setting/transformers/loyalty-point-category.transformer.js.map +1 -0
- package/dist/lib/modules/loyalty-point-setting/transformers/loyalty-point-setting.transformer.d.ts +9 -0
- package/dist/lib/modules/loyalty-point-setting/transformers/loyalty-point-setting.transformer.d.ts.map +1 -0
- package/dist/lib/modules/loyalty-point-setting/transformers/loyalty-point-setting.transformer.js +7 -0
- package/dist/lib/modules/loyalty-point-setting/transformers/loyalty-point-setting.transformer.js.map +1 -0
- package/dist/lib/modules/loyalty-point-setting/validations/index.d.ts +3 -0
- package/dist/lib/modules/loyalty-point-setting/validations/index.d.ts.map +1 -0
- package/dist/lib/modules/loyalty-point-setting/validations/index.js +19 -0
- package/dist/lib/modules/loyalty-point-setting/validations/index.js.map +1 -0
- package/dist/lib/modules/loyalty-point-setting/validations/loyalty-point-category.validation.d.ts +170 -0
- package/dist/lib/modules/loyalty-point-setting/validations/loyalty-point-category.validation.d.ts.map +1 -0
- package/dist/lib/modules/loyalty-point-setting/validations/loyalty-point-category.validation.js +19 -0
- package/dist/lib/modules/loyalty-point-setting/validations/loyalty-point-category.validation.js.map +1 -0
- package/dist/lib/modules/loyalty-point-setting/validations/loyalty-point-setting.validation.d.ts +188 -0
- package/dist/lib/modules/loyalty-point-setting/validations/loyalty-point-setting.validation.d.ts.map +1 -0
- package/dist/lib/modules/loyalty-point-setting/validations/loyalty-point-setting.validation.js +19 -0
- package/dist/lib/modules/loyalty-point-setting/validations/loyalty-point-setting.validation.js.map +1 -0
- package/dist/lib/modules/marketing/routers/index.d.ts +2 -0
- package/dist/lib/modules/marketing/routers/index.d.ts.map +1 -0
- package/dist/lib/modules/marketing/routers/index.js +18 -0
- package/dist/lib/modules/marketing/routers/index.js.map +1 -0
- package/dist/lib/modules/marketing/routers/marketing.router.d.ts +78 -0
- package/dist/lib/modules/marketing/routers/marketing.router.d.ts.map +1 -0
- package/dist/lib/modules/marketing/routers/marketing.router.js +53 -0
- package/dist/lib/modules/marketing/routers/marketing.router.js.map +1 -0
- package/dist/lib/modules/marketing/services/buy1-get1-marketing.service.d.ts +13 -0
- package/dist/lib/modules/marketing/services/buy1-get1-marketing.service.d.ts.map +1 -0
- package/dist/lib/modules/marketing/services/buy1-get1-marketing.service.js +165 -0
- package/dist/lib/modules/marketing/services/buy1-get1-marketing.service.js.map +1 -0
- package/dist/lib/modules/marketing/services/discount-marketing.service.d.ts +14 -0
- package/dist/lib/modules/marketing/services/discount-marketing.service.d.ts.map +1 -0
- package/dist/lib/modules/marketing/services/discount-marketing.service.js +227 -0
- package/dist/lib/modules/marketing/services/discount-marketing.service.js.map +1 -0
- package/dist/lib/modules/marketing/services/featured-marketing.service.d.ts +11 -0
- package/dist/lib/modules/marketing/services/featured-marketing.service.d.ts.map +1 -0
- package/dist/lib/modules/marketing/services/featured-marketing.service.js +80 -0
- package/dist/lib/modules/marketing/services/featured-marketing.service.js.map +1 -0
- package/dist/lib/modules/marketing/services/free-delivery-marketing.service.d.ts +12 -0
- package/dist/lib/modules/marketing/services/free-delivery-marketing.service.d.ts.map +1 -0
- package/dist/lib/modules/marketing/services/free-delivery-marketing.service.js +95 -0
- package/dist/lib/modules/marketing/services/free-delivery-marketing.service.js.map +1 -0
- package/dist/lib/modules/marketing/services/index.d.ts +8 -0
- package/dist/lib/modules/marketing/services/index.d.ts.map +1 -0
- package/dist/lib/modules/marketing/services/index.js +24 -0
- package/dist/lib/modules/marketing/services/index.js.map +1 -0
- package/dist/lib/modules/marketing/services/loyalty-point-marketing.service.d.ts +12 -0
- package/dist/lib/modules/marketing/services/loyalty-point-marketing.service.d.ts.map +1 -0
- package/dist/lib/modules/marketing/services/loyalty-point-marketing.service.js +149 -0
- package/dist/lib/modules/marketing/services/loyalty-point-marketing.service.js.map +1 -0
- package/dist/lib/modules/marketing/services/marketing.service.d.ts +17 -0
- package/dist/lib/modules/marketing/services/marketing.service.d.ts.map +1 -0
- package/dist/lib/modules/marketing/services/marketing.service.js +275 -0
- package/dist/lib/modules/marketing/services/marketing.service.js.map +1 -0
- package/dist/lib/modules/marketing/services/product-marketing.service.d.ts +18 -0
- package/dist/lib/modules/marketing/services/product-marketing.service.d.ts.map +1 -0
- package/dist/lib/modules/marketing/services/product-marketing.service.js +151 -0
- package/dist/lib/modules/marketing/services/product-marketing.service.js.map +1 -0
- package/dist/lib/modules/marketing/services/punch-marketing.service.d.ts +11 -0
- package/dist/lib/modules/marketing/services/punch-marketing.service.d.ts.map +1 -0
- package/dist/lib/modules/marketing/services/punch-marketing.service.js +80 -0
- package/dist/lib/modules/marketing/services/punch-marketing.service.js.map +1 -0
- package/dist/lib/modules/marketing/transformers/buy1-get1-marketing.transformer.d.ts +43 -0
- package/dist/lib/modules/marketing/transformers/buy1-get1-marketing.transformer.d.ts.map +1 -0
- package/dist/lib/modules/marketing/transformers/buy1-get1-marketing.transformer.js +7 -0
- package/dist/lib/modules/marketing/transformers/buy1-get1-marketing.transformer.js.map +1 -0
- package/dist/lib/modules/marketing/transformers/discount-marketing.transformer.d.ts +48 -0
- package/dist/lib/modules/marketing/transformers/discount-marketing.transformer.d.ts.map +1 -0
- package/dist/lib/modules/marketing/transformers/discount-marketing.transformer.js +7 -0
- package/dist/lib/modules/marketing/transformers/discount-marketing.transformer.js.map +1 -0
- package/dist/lib/modules/marketing/transformers/featured-marketing.transformer.d.ts +21 -0
- package/dist/lib/modules/marketing/transformers/featured-marketing.transformer.d.ts.map +1 -0
- package/dist/lib/modules/marketing/transformers/featured-marketing.transformer.js +7 -0
- package/dist/lib/modules/marketing/transformers/featured-marketing.transformer.js.map +1 -0
- package/dist/lib/modules/marketing/transformers/free-delivery-marketing.transformer.d.ts +21 -0
- package/dist/lib/modules/marketing/transformers/free-delivery-marketing.transformer.d.ts.map +1 -0
- package/dist/lib/modules/marketing/transformers/free-delivery-marketing.transformer.js +7 -0
- package/dist/lib/modules/marketing/transformers/free-delivery-marketing.transformer.js.map +1 -0
- package/dist/lib/modules/marketing/transformers/index.d.ts +8 -0
- package/dist/lib/modules/marketing/transformers/index.d.ts.map +1 -0
- package/dist/lib/modules/marketing/transformers/index.js +24 -0
- package/dist/lib/modules/marketing/transformers/index.js.map +1 -0
- package/dist/lib/modules/marketing/transformers/loyalty-point-marketing.transformer.d.ts +47 -0
- package/dist/lib/modules/marketing/transformers/loyalty-point-marketing.transformer.d.ts.map +1 -0
- package/dist/lib/modules/marketing/transformers/loyalty-point-marketing.transformer.js +7 -0
- package/dist/lib/modules/marketing/transformers/loyalty-point-marketing.transformer.js.map +1 -0
- package/dist/lib/modules/marketing/transformers/marketing.transformer.d.ts +3 -0
- package/dist/lib/modules/marketing/transformers/marketing.transformer.d.ts.map +1 -0
- package/dist/lib/modules/marketing/transformers/marketing.transformer.js +7 -0
- package/dist/lib/modules/marketing/transformers/marketing.transformer.js.map +1 -0
- package/dist/lib/modules/marketing/transformers/product-marketing.transformer.d.ts +10 -0
- package/dist/lib/modules/marketing/transformers/product-marketing.transformer.d.ts.map +1 -0
- package/dist/lib/modules/marketing/transformers/product-marketing.transformer.js +7 -0
- package/dist/lib/modules/marketing/transformers/product-marketing.transformer.js.map +1 -0
- package/dist/lib/modules/marketing/transformers/punch-marketing.transformer.d.ts +26 -0
- package/dist/lib/modules/marketing/transformers/punch-marketing.transformer.d.ts.map +1 -0
- package/dist/lib/modules/marketing/transformers/punch-marketing.transformer.js +7 -0
- package/dist/lib/modules/marketing/transformers/punch-marketing.transformer.js.map +1 -0
- package/dist/lib/modules/marketing/validations/all-marketings.validation.d.ts +54 -0
- package/dist/lib/modules/marketing/validations/all-marketings.validation.d.ts.map +1 -0
- package/dist/lib/modules/marketing/validations/all-marketings.validation.js +29 -0
- package/dist/lib/modules/marketing/validations/all-marketings.validation.js.map +1 -0
- package/dist/lib/modules/marketing/validations/buy1-get1-marketing.validation.d.ts +460 -0
- package/dist/lib/modules/marketing/validations/buy1-get1-marketing.validation.d.ts.map +1 -0
- package/dist/lib/modules/marketing/validations/buy1-get1-marketing.validation.js +40 -0
- package/dist/lib/modules/marketing/validations/buy1-get1-marketing.validation.js.map +1 -0
- package/dist/lib/modules/marketing/validations/discount-marketing.validation.d.ts +530 -0
- package/dist/lib/modules/marketing/validations/discount-marketing.validation.d.ts.map +1 -0
- package/dist/lib/modules/marketing/validations/discount-marketing.validation.js +61 -0
- package/dist/lib/modules/marketing/validations/discount-marketing.validation.js.map +1 -0
- package/dist/lib/modules/marketing/validations/featured-marketing.validation.d.ts +224 -0
- package/dist/lib/modules/marketing/validations/featured-marketing.validation.d.ts.map +1 -0
- package/dist/lib/modules/marketing/validations/featured-marketing.validation.js +42 -0
- package/dist/lib/modules/marketing/validations/featured-marketing.validation.js.map +1 -0
- package/dist/lib/modules/marketing/validations/free-delivery-marketing.validation.d.ts +162 -0
- package/dist/lib/modules/marketing/validations/free-delivery-marketing.validation.d.ts.map +1 -0
- package/dist/lib/modules/marketing/validations/free-delivery-marketing.validation.js +19 -0
- package/dist/lib/modules/marketing/validations/free-delivery-marketing.validation.js.map +1 -0
- package/dist/lib/modules/marketing/validations/index.d.ts +9 -0
- package/dist/lib/modules/marketing/validations/index.d.ts.map +1 -0
- package/dist/lib/modules/marketing/validations/index.js +25 -0
- package/dist/lib/modules/marketing/validations/index.js.map +1 -0
- package/dist/lib/modules/marketing/validations/loyalty-point-marketing.validation.d.ts +504 -0
- package/dist/lib/modules/marketing/validations/loyalty-point-marketing.validation.d.ts.map +1 -0
- package/dist/lib/modules/marketing/validations/loyalty-point-marketing.validation.js +34 -0
- package/dist/lib/modules/marketing/validations/loyalty-point-marketing.validation.js.map +1 -0
- package/dist/lib/modules/marketing/validations/marketing.validation.d.ts +170 -0
- package/dist/lib/modules/marketing/validations/marketing.validation.d.ts.map +1 -0
- package/dist/lib/modules/marketing/validations/marketing.validation.js +21 -0
- package/dist/lib/modules/marketing/validations/marketing.validation.js.map +1 -0
- package/dist/lib/modules/marketing/validations/product-marketing.validation.d.ts +150 -0
- package/dist/lib/modules/marketing/validations/product-marketing.validation.d.ts.map +1 -0
- package/dist/lib/modules/marketing/validations/product-marketing.validation.js +36 -0
- package/dist/lib/modules/marketing/validations/product-marketing.validation.js.map +1 -0
- package/dist/lib/modules/marketing/validations/punch-marketing.validation.d.ts +207 -0
- package/dist/lib/modules/marketing/validations/punch-marketing.validation.d.ts.map +1 -0
- package/dist/lib/modules/marketing/validations/punch-marketing.validation.js +24 -0
- package/dist/lib/modules/marketing/validations/punch-marketing.validation.js.map +1 -0
- package/dist/lib/modules/punch-marketing-history/routers/index.d.ts +2 -0
- package/dist/lib/modules/punch-marketing-history/routers/index.d.ts.map +1 -0
- package/dist/lib/modules/punch-marketing-history/routers/index.js +18 -0
- package/dist/lib/modules/punch-marketing-history/routers/index.js.map +1 -0
- package/dist/lib/modules/punch-marketing-history/routers/punch-marketing-history.router.d.ts +414 -0
- package/dist/lib/modules/punch-marketing-history/routers/punch-marketing-history.router.d.ts.map +1 -0
- package/dist/lib/modules/punch-marketing-history/routers/punch-marketing-history.router.js +69 -0
- package/dist/lib/modules/punch-marketing-history/routers/punch-marketing-history.router.js.map +1 -0
- package/dist/lib/modules/punch-marketing-history/services/index.d.ts +2 -0
- package/dist/lib/modules/punch-marketing-history/services/index.d.ts.map +1 -0
- package/dist/lib/modules/punch-marketing-history/services/index.js +18 -0
- package/dist/lib/modules/punch-marketing-history/services/index.js.map +1 -0
- package/dist/lib/modules/punch-marketing-history/services/punch-marketing-history.service.d.ts +24 -0
- package/dist/lib/modules/punch-marketing-history/services/punch-marketing-history.service.d.ts.map +1 -0
- package/dist/lib/modules/punch-marketing-history/services/punch-marketing-history.service.js +306 -0
- package/dist/lib/modules/punch-marketing-history/services/punch-marketing-history.service.js.map +1 -0
- package/dist/lib/modules/punch-marketing-history/transformers/index.d.ts +2 -0
- package/dist/lib/modules/punch-marketing-history/transformers/index.d.ts.map +1 -0
- package/dist/lib/modules/punch-marketing-history/transformers/index.js +18 -0
- package/dist/lib/modules/punch-marketing-history/transformers/index.js.map +1 -0
- package/dist/lib/modules/punch-marketing-history/transformers/punch-marketing-history.transformer.d.ts +19 -0
- package/dist/lib/modules/punch-marketing-history/transformers/punch-marketing-history.transformer.d.ts.map +1 -0
- package/dist/lib/modules/punch-marketing-history/transformers/punch-marketing-history.transformer.js +7 -0
- package/dist/lib/modules/punch-marketing-history/transformers/punch-marketing-history.transformer.js.map +1 -0
- package/dist/lib/modules/punch-marketing-history/validations/index.d.ts +2 -0
- package/dist/lib/modules/punch-marketing-history/validations/index.d.ts.map +1 -0
- package/dist/lib/modules/punch-marketing-history/validations/index.js +18 -0
- package/dist/lib/modules/punch-marketing-history/validations/index.js.map +1 -0
- package/dist/lib/modules/punch-marketing-history/validations/punch-marketing-history.validation.d.ts +400 -0
- package/dist/lib/modules/punch-marketing-history/validations/punch-marketing-history.validation.d.ts.map +1 -0
- package/dist/lib/modules/punch-marketing-history/validations/punch-marketing-history.validation.js +39 -0
- package/dist/lib/modules/punch-marketing-history/validations/punch-marketing-history.validation.js.map +1 -0
- package/dist/lib/modules/referral-setting/routers/index.d.ts +2 -0
- package/dist/lib/modules/referral-setting/routers/index.d.ts.map +1 -0
- package/dist/lib/modules/referral-setting/routers/index.js +18 -0
- package/dist/lib/modules/referral-setting/routers/index.js.map +1 -0
- package/dist/lib/modules/referral-setting/routers/referral-setting.router.d.ts +354 -0
- package/dist/lib/modules/referral-setting/routers/referral-setting.router.d.ts.map +1 -0
- package/dist/lib/modules/referral-setting/routers/referral-setting.router.js +42 -0
- package/dist/lib/modules/referral-setting/routers/referral-setting.router.js.map +1 -0
- package/dist/lib/modules/referral-setting/services/index.d.ts +2 -0
- package/dist/lib/modules/referral-setting/services/index.d.ts.map +1 -0
- package/dist/lib/modules/referral-setting/services/index.js +18 -0
- package/dist/lib/modules/referral-setting/services/index.js.map +1 -0
- package/dist/lib/modules/referral-setting/services/referral-setting.service.d.ts +15 -0
- package/dist/lib/modules/referral-setting/services/referral-setting.service.d.ts.map +1 -0
- package/dist/lib/modules/referral-setting/services/referral-setting.service.js +154 -0
- package/dist/lib/modules/referral-setting/services/referral-setting.service.js.map +1 -0
- package/dist/lib/modules/referral-setting/transformers/index.d.ts +2 -0
- package/dist/lib/modules/referral-setting/transformers/index.d.ts.map +1 -0
- package/dist/lib/modules/referral-setting/transformers/index.js +18 -0
- package/dist/lib/modules/referral-setting/transformers/index.js.map +1 -0
- package/dist/lib/modules/referral-setting/transformers/referral-setting.transformer.d.ts +31 -0
- package/dist/lib/modules/referral-setting/transformers/referral-setting.transformer.d.ts.map +1 -0
- package/dist/lib/modules/referral-setting/transformers/referral-setting.transformer.js +7 -0
- package/dist/lib/modules/referral-setting/transformers/referral-setting.transformer.js.map +1 -0
- package/dist/lib/modules/referral-setting/validations/index.d.ts +2 -0
- package/dist/lib/modules/referral-setting/validations/index.d.ts.map +1 -0
- package/dist/lib/modules/referral-setting/validations/index.js +18 -0
- package/dist/lib/modules/referral-setting/validations/index.js.map +1 -0
- package/dist/lib/modules/referral-setting/validations/referral-setting.validation.d.ts +575 -0
- package/dist/lib/modules/referral-setting/validations/referral-setting.validation.d.ts.map +1 -0
- package/dist/lib/modules/referral-setting/validations/referral-setting.validation.js +24 -0
- package/dist/lib/modules/referral-setting/validations/referral-setting.validation.js.map +1 -0
- package/dist/types/index.d.ts +402 -12
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/modules/coupon/routers/coupon.router.d.ts +402 -12
- package/dist/types/modules/coupon/routers/coupon.router.d.ts.map +1 -1
- package/dist/types/modules/coupon/services/coupon.service.d.ts +3 -3
- package/dist/types/modules/coupon/services/coupon.service.d.ts.map +1 -1
- package/dist/types/modules/coupon/services/individual-store-coupon.service.d.ts +1 -0
- package/dist/types/modules/coupon/services/individual-store-coupon.service.d.ts.map +1 -1
- package/dist/types/modules/coupon/transformers/coupon.transformer.d.ts +13 -1
- package/dist/types/modules/coupon/transformers/coupon.transformer.d.ts.map +1 -1
- package/dist/types/modules/coupon/validations/all-coupons.validation.d.ts +273 -21
- package/dist/types/modules/coupon/validations/all-coupons.validation.d.ts.map +1 -1
- package/dist/types/modules/coupon/validations/coupon.validation.d.ts +52 -0
- package/dist/types/modules/coupon/validations/coupon.validation.d.ts.map +1 -1
- package/dist/types/modules/coupon/validations/custom-coupon.validation.d.ts +18 -0
- package/dist/types/modules/coupon/validations/custom-coupon.validation.d.ts.map +1 -1
- package/dist/types/modules/coupon/validations/global-coupon.validation.d.ts +18 -0
- package/dist/types/modules/coupon/validations/global-coupon.validation.d.ts.map +1 -1
- package/dist/types/modules/coupon/validations/individual-store-coupon.validation.d.ts +27 -9
- package/dist/types/modules/coupon/validations/individual-store-coupon.validation.d.ts.map +1 -1
- package/dist/types/modules/coupon/validations/individual-user-coupon.validation.d.ts +18 -0
- package/dist/types/modules/coupon/validations/individual-user-coupon.validation.d.ts.map +1 -1
- package/dist/types/modules/coupon/validations/referral-code-coupon.validation.d.ts +18 -0
- package/dist/types/modules/coupon/validations/referral-code-coupon.validation.d.ts.map +1 -1
- package/dist/types/modules/coupon/validations/referral-reward-coupon.validation.d.ts +18 -0
- package/dist/types/modules/coupon/validations/referral-reward-coupon.validation.d.ts.map +1 -1
- package/dist/types/modules/loyalty-point-setting/routers/index.d.ts +2 -0
- package/dist/types/modules/loyalty-point-setting/routers/index.d.ts.map +1 -0
- package/dist/types/modules/loyalty-point-setting/routers/loyalty-point-setting.router.d.ts +321 -0
- package/dist/types/modules/loyalty-point-setting/routers/loyalty-point-setting.router.d.ts.map +1 -0
- package/dist/types/modules/loyalty-point-setting/services/index.d.ts +3 -0
- package/dist/types/modules/loyalty-point-setting/services/index.d.ts.map +1 -0
- package/dist/types/modules/loyalty-point-setting/services/loyalty-point-category.service.d.ts +37 -0
- package/dist/types/modules/loyalty-point-setting/services/loyalty-point-category.service.d.ts.map +1 -0
- package/dist/types/modules/loyalty-point-setting/services/loyalty-point-setting.service.d.ts +34 -0
- package/dist/types/modules/loyalty-point-setting/services/loyalty-point-setting.service.d.ts.map +1 -0
- package/dist/types/modules/loyalty-point-setting/transformers/index.d.ts +3 -0
- package/dist/types/modules/loyalty-point-setting/transformers/index.d.ts.map +1 -0
- package/dist/types/modules/loyalty-point-setting/transformers/loyalty-point-category.transformer.d.ts +8 -0
- package/dist/types/modules/loyalty-point-setting/transformers/loyalty-point-category.transformer.d.ts.map +1 -0
- package/dist/types/modules/loyalty-point-setting/transformers/loyalty-point-setting.transformer.d.ts +9 -0
- package/dist/types/modules/loyalty-point-setting/transformers/loyalty-point-setting.transformer.d.ts.map +1 -0
- package/dist/types/modules/loyalty-point-setting/validations/index.d.ts +3 -0
- package/dist/types/modules/loyalty-point-setting/validations/index.d.ts.map +1 -0
- package/dist/types/modules/loyalty-point-setting/validations/loyalty-point-category.validation.d.ts +179 -0
- package/dist/types/modules/loyalty-point-setting/validations/loyalty-point-category.validation.d.ts.map +1 -0
- package/dist/types/modules/loyalty-point-setting/validations/loyalty-point-setting.validation.d.ts +197 -0
- package/dist/types/modules/loyalty-point-setting/validations/loyalty-point-setting.validation.d.ts.map +1 -0
- package/dist/types/modules/marketing/routers/marketing.router.d.ts.map +1 -1
- package/dist/types/modules/marketing/services/buy1-get1-marketing.service.d.ts +1 -0
- package/dist/types/modules/marketing/services/buy1-get1-marketing.service.d.ts.map +1 -1
- package/dist/types/modules/marketing/services/discount-marketing.service.d.ts +2 -0
- package/dist/types/modules/marketing/services/discount-marketing.service.d.ts.map +1 -1
- package/dist/types/modules/marketing/services/loyalty-point-marketing.service.d.ts +21 -0
- package/dist/types/modules/marketing/services/loyalty-point-marketing.service.d.ts.map +1 -0
- package/dist/types/modules/marketing/services/marketing.service.d.ts.map +1 -1
- package/dist/types/modules/marketing/services/product-marketing.service.d.ts.map +1 -1
- package/dist/types/modules/marketing/transformers/buy1-get1-marketing.transformer.d.ts +1 -0
- package/dist/types/modules/marketing/transformers/buy1-get1-marketing.transformer.d.ts.map +1 -1
- package/dist/types/modules/marketing/transformers/discount-marketing.transformer.d.ts +3 -0
- package/dist/types/modules/marketing/transformers/discount-marketing.transformer.d.ts.map +1 -1
- package/dist/types/modules/marketing/transformers/loyalty-point-marketing.transformer.d.ts +47 -0
- package/dist/types/modules/marketing/transformers/loyalty-point-marketing.transformer.d.ts.map +1 -0
- package/dist/types/modules/marketing/validations/buy1-get1-marketing.validation.d.ts +45 -31
- package/dist/types/modules/marketing/validations/buy1-get1-marketing.validation.d.ts.map +1 -1
- package/dist/types/modules/marketing/validations/discount-marketing.validation.d.ts +42 -0
- package/dist/types/modules/marketing/validations/discount-marketing.validation.d.ts.map +1 -1
- package/dist/types/modules/marketing/validations/loyalty-point-marketing.validation.d.ts +513 -0
- package/dist/types/modules/marketing/validations/loyalty-point-marketing.validation.d.ts.map +1 -0
- package/package.json +4 -5
|
@@ -38,6 +38,8 @@ export declare const AllCouponsValidationSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
38
38
|
}>>;
|
|
39
39
|
code: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
40
40
|
orderLimitPerUser: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
|
|
41
|
+
createdBy: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
42
|
+
isExpired: z.ZodOptional<z.ZodBoolean>;
|
|
41
43
|
}, "strict", z.ZodTypeAny, {
|
|
42
44
|
value: number;
|
|
43
45
|
code: string;
|
|
@@ -61,6 +63,8 @@ export declare const AllCouponsValidationSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
61
63
|
referringUser?: {
|
|
62
64
|
name?: string | undefined;
|
|
63
65
|
} | undefined;
|
|
66
|
+
createdBy?: import("mongoose").Types.ObjectId | undefined;
|
|
67
|
+
isExpired?: boolean | undefined;
|
|
64
68
|
}, {
|
|
65
69
|
value: number;
|
|
66
70
|
code: string;
|
|
@@ -84,21 +88,29 @@ export declare const AllCouponsValidationSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
84
88
|
name?: string | undefined;
|
|
85
89
|
} | undefined;
|
|
86
90
|
orderLimitPerUser?: number | null | undefined;
|
|
91
|
+
createdBy?: string | import("mongoose").Types.ObjectId | undefined;
|
|
92
|
+
isExpired?: boolean | undefined;
|
|
87
93
|
}>, z.ZodObject<{
|
|
88
94
|
couponType: z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.REFERRAL_CODE>;
|
|
89
95
|
orderLimitPerUser: z.ZodLiteral<1>;
|
|
90
96
|
referralUser: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>;
|
|
91
97
|
code: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
98
|
+
createdBy: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
99
|
+
isExpired: z.ZodOptional<z.ZodBoolean>;
|
|
92
100
|
}, "strict", z.ZodTypeAny, {
|
|
93
101
|
code: string;
|
|
94
102
|
orderLimitPerUser: 1;
|
|
95
103
|
couponType: import("@lyxa.ai/core/dist/utilities/enum").CouponType.REFERRAL_CODE;
|
|
96
104
|
referralUser: import("mongoose").Types.ObjectId;
|
|
105
|
+
createdBy?: import("mongoose").Types.ObjectId | undefined;
|
|
106
|
+
isExpired?: boolean | undefined;
|
|
97
107
|
}, {
|
|
98
108
|
code: string;
|
|
99
109
|
orderLimitPerUser: 1;
|
|
100
110
|
couponType: import("@lyxa.ai/core/dist/utilities/enum").CouponType.REFERRAL_CODE;
|
|
101
111
|
referralUser: string | import("mongoose").Types.ObjectId;
|
|
112
|
+
createdBy?: string | import("mongoose").Types.ObjectId | undefined;
|
|
113
|
+
isExpired?: boolean | undefined;
|
|
102
114
|
}>, z.ZodObject<{
|
|
103
115
|
couponType: z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.REFERRAL_REWARD>;
|
|
104
116
|
user: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>;
|
|
@@ -141,6 +153,8 @@ export declare const AllCouponsValidationSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
141
153
|
}>>;
|
|
142
154
|
code: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
143
155
|
orderLimitPerUser: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
|
|
156
|
+
createdBy: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
157
|
+
isExpired: z.ZodOptional<z.ZodBoolean>;
|
|
144
158
|
}, "strict", z.ZodTypeAny, {
|
|
145
159
|
value: number;
|
|
146
160
|
code: string;
|
|
@@ -167,6 +181,8 @@ export declare const AllCouponsValidationSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
167
181
|
referringUser?: {
|
|
168
182
|
name?: string | undefined;
|
|
169
183
|
} | undefined;
|
|
184
|
+
createdBy?: import("mongoose").Types.ObjectId | undefined;
|
|
185
|
+
isExpired?: boolean | undefined;
|
|
170
186
|
}, {
|
|
171
187
|
value: number;
|
|
172
188
|
code: string;
|
|
@@ -193,10 +209,12 @@ export declare const AllCouponsValidationSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
193
209
|
name?: string | undefined;
|
|
194
210
|
} | undefined;
|
|
195
211
|
orderLimitPerUser?: number | null | undefined;
|
|
212
|
+
createdBy?: string | import("mongoose").Types.ObjectId | undefined;
|
|
213
|
+
isExpired?: boolean | undefined;
|
|
196
214
|
}>, z.ZodObject<{
|
|
197
215
|
couponType: z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.INDIVIDUAL_STORE>;
|
|
198
216
|
itemTypes: z.ZodDefault<z.ZodArray<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ItemType>, "many">>;
|
|
199
|
-
shops: z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>, "
|
|
217
|
+
shops: z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>, "many">>;
|
|
200
218
|
isShopCoverExpenses: z.ZodDefault<z.ZodBoolean>;
|
|
201
219
|
valueType: z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>;
|
|
202
220
|
value: z.ZodNumber;
|
|
@@ -235,6 +253,8 @@ export declare const AllCouponsValidationSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
235
253
|
}>>;
|
|
236
254
|
code: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
237
255
|
orderLimitPerUser: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
|
|
256
|
+
createdBy: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
257
|
+
isExpired: z.ZodOptional<z.ZodBoolean>;
|
|
238
258
|
}, "strict", z.ZodTypeAny, {
|
|
239
259
|
value: number;
|
|
240
260
|
code: string;
|
|
@@ -253,7 +273,7 @@ export declare const AllCouponsValidationSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
253
273
|
orderLimitPerUser: number | null;
|
|
254
274
|
couponType: import("@lyxa.ai/core/dist/utilities/enum").CouponType.INDIVIDUAL_STORE;
|
|
255
275
|
itemTypes: import("@lyxa.ai/core/dist/utilities/enum").ItemType[];
|
|
256
|
-
shops:
|
|
276
|
+
shops: import("mongoose").Types.ObjectId[];
|
|
257
277
|
isShopCoverExpenses: boolean;
|
|
258
278
|
secondaryCurrencyValue?: number | undefined;
|
|
259
279
|
secondaryCurrencyMaxDiscountLimit?: number | undefined;
|
|
@@ -261,6 +281,8 @@ export declare const AllCouponsValidationSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
261
281
|
referringUser?: {
|
|
262
282
|
name?: string | undefined;
|
|
263
283
|
} | undefined;
|
|
284
|
+
createdBy?: import("mongoose").Types.ObjectId | undefined;
|
|
285
|
+
isExpired?: boolean | undefined;
|
|
264
286
|
}, {
|
|
265
287
|
value: number;
|
|
266
288
|
code: string;
|
|
@@ -270,7 +292,6 @@ export declare const AllCouponsValidationSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
270
292
|
};
|
|
271
293
|
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
272
294
|
couponType: import("@lyxa.ai/core/dist/utilities/enum").CouponType.INDIVIDUAL_STORE;
|
|
273
|
-
shops: [string | import("mongoose").Types.ObjectId, ...(string | import("mongoose").Types.ObjectId)[]];
|
|
274
295
|
status?: import("@lyxa.ai/core/dist/utilities/enum").Status | undefined;
|
|
275
296
|
spendLimit?: number | null | undefined;
|
|
276
297
|
secondaryCurrencyValue?: number | undefined;
|
|
@@ -285,7 +306,10 @@ export declare const AllCouponsValidationSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
285
306
|
name?: string | undefined;
|
|
286
307
|
} | undefined;
|
|
287
308
|
orderLimitPerUser?: number | null | undefined;
|
|
309
|
+
createdBy?: string | import("mongoose").Types.ObjectId | undefined;
|
|
310
|
+
isExpired?: boolean | undefined;
|
|
288
311
|
itemTypes?: import("@lyxa.ai/core/dist/utilities/enum").ItemType[] | undefined;
|
|
312
|
+
shops?: (string | import("mongoose").Types.ObjectId)[] | undefined;
|
|
289
313
|
isShopCoverExpenses?: boolean | undefined;
|
|
290
314
|
}>, z.ZodObject<{
|
|
291
315
|
couponType: z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.INDIVIDUAL_USER>;
|
|
@@ -329,6 +353,8 @@ export declare const AllCouponsValidationSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
329
353
|
}>>;
|
|
330
354
|
code: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
331
355
|
orderLimitPerUser: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
|
|
356
|
+
createdBy: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
357
|
+
isExpired: z.ZodOptional<z.ZodBoolean>;
|
|
332
358
|
}, "strict", z.ZodTypeAny, {
|
|
333
359
|
value: number;
|
|
334
360
|
code: string;
|
|
@@ -355,6 +381,8 @@ export declare const AllCouponsValidationSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
355
381
|
referringUser?: {
|
|
356
382
|
name?: string | undefined;
|
|
357
383
|
} | undefined;
|
|
384
|
+
createdBy?: import("mongoose").Types.ObjectId | undefined;
|
|
385
|
+
isExpired?: boolean | undefined;
|
|
358
386
|
}, {
|
|
359
387
|
value: number;
|
|
360
388
|
code: string;
|
|
@@ -379,6 +407,8 @@ export declare const AllCouponsValidationSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
379
407
|
name?: string | undefined;
|
|
380
408
|
} | undefined;
|
|
381
409
|
orderLimitPerUser?: number | null | undefined;
|
|
410
|
+
createdBy?: string | import("mongoose").Types.ObjectId | undefined;
|
|
411
|
+
isExpired?: boolean | undefined;
|
|
382
412
|
itemTypes?: import("@lyxa.ai/core/dist/utilities/enum").ItemType[] | undefined;
|
|
383
413
|
shops?: (string | import("mongoose").Types.ObjectId)[] | undefined;
|
|
384
414
|
}>, z.ZodObject<{
|
|
@@ -423,6 +453,8 @@ export declare const AllCouponsValidationSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
423
453
|
}>>;
|
|
424
454
|
code: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
425
455
|
orderLimitPerUser: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
|
|
456
|
+
createdBy: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
457
|
+
isExpired: z.ZodOptional<z.ZodBoolean>;
|
|
426
458
|
}, "strict", z.ZodTypeAny, {
|
|
427
459
|
value: number;
|
|
428
460
|
code: string;
|
|
@@ -449,6 +481,8 @@ export declare const AllCouponsValidationSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
449
481
|
referringUser?: {
|
|
450
482
|
name?: string | undefined;
|
|
451
483
|
} | undefined;
|
|
484
|
+
createdBy?: import("mongoose").Types.ObjectId | undefined;
|
|
485
|
+
isExpired?: boolean | undefined;
|
|
452
486
|
}, {
|
|
453
487
|
value: number;
|
|
454
488
|
code: string;
|
|
@@ -473,6 +507,8 @@ export declare const AllCouponsValidationSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
473
507
|
name?: string | undefined;
|
|
474
508
|
} | undefined;
|
|
475
509
|
orderLimitPerUser?: number | null | undefined;
|
|
510
|
+
createdBy?: string | import("mongoose").Types.ObjectId | undefined;
|
|
511
|
+
isExpired?: boolean | undefined;
|
|
476
512
|
itemTypes?: import("@lyxa.ai/core/dist/utilities/enum").ItemType[] | undefined;
|
|
477
513
|
shops?: (string | import("mongoose").Types.ObjectId)[] | undefined;
|
|
478
514
|
}>]>;
|
|
@@ -515,6 +551,8 @@ export declare const AllCouponsSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
515
551
|
}>>>;
|
|
516
552
|
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
517
553
|
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
554
|
+
createdBy: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>>;
|
|
555
|
+
isExpired: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
518
556
|
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
519
557
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
520
558
|
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.GLOBAL>>;
|
|
@@ -555,6 +593,8 @@ export declare const AllCouponsSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
555
593
|
}>>>;
|
|
556
594
|
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
557
595
|
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
596
|
+
createdBy: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>>;
|
|
597
|
+
isExpired: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
558
598
|
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
559
599
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
560
600
|
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.GLOBAL>>;
|
|
@@ -595,24 +635,32 @@ export declare const AllCouponsSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
595
635
|
}>>>;
|
|
596
636
|
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
597
637
|
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
638
|
+
createdBy: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>>;
|
|
639
|
+
isExpired: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
598
640
|
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
599
641
|
}, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
|
|
600
642
|
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.REFERRAL_CODE>>;
|
|
601
643
|
orderLimitPerUser: z.ZodOptional<z.ZodLiteral<1>>;
|
|
602
644
|
referralUser: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
603
645
|
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
646
|
+
createdBy: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>>;
|
|
647
|
+
isExpired: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
604
648
|
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
605
649
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
606
650
|
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.REFERRAL_CODE>>;
|
|
607
651
|
orderLimitPerUser: z.ZodOptional<z.ZodLiteral<1>>;
|
|
608
652
|
referralUser: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
609
653
|
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
654
|
+
createdBy: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>>;
|
|
655
|
+
isExpired: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
610
656
|
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
611
657
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
612
658
|
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.REFERRAL_CODE>>;
|
|
613
659
|
orderLimitPerUser: z.ZodOptional<z.ZodLiteral<1>>;
|
|
614
660
|
referralUser: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
615
661
|
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
662
|
+
createdBy: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>>;
|
|
663
|
+
isExpired: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
616
664
|
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
617
665
|
}, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
|
|
618
666
|
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.REFERRAL_REWARD>>;
|
|
@@ -656,6 +704,8 @@ export declare const AllCouponsSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
656
704
|
}>>>;
|
|
657
705
|
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
658
706
|
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
707
|
+
createdBy: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>>;
|
|
708
|
+
isExpired: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
659
709
|
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
660
710
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
661
711
|
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.REFERRAL_REWARD>>;
|
|
@@ -699,6 +749,8 @@ export declare const AllCouponsSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
699
749
|
}>>>;
|
|
700
750
|
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
701
751
|
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
752
|
+
createdBy: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>>;
|
|
753
|
+
isExpired: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
702
754
|
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
703
755
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
704
756
|
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.REFERRAL_REWARD>>;
|
|
@@ -742,11 +794,13 @@ export declare const AllCouponsSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
742
794
|
}>>>;
|
|
743
795
|
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
744
796
|
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
797
|
+
createdBy: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>>;
|
|
798
|
+
isExpired: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
745
799
|
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
746
800
|
}, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
|
|
747
801
|
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.INDIVIDUAL_STORE>>;
|
|
748
802
|
itemTypes: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ItemType>, "many">>>;
|
|
749
|
-
shops: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>, "
|
|
803
|
+
shops: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>, "many">>>;
|
|
750
804
|
isShopCoverExpenses: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
751
805
|
valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
752
806
|
value: z.ZodOptional<z.ZodNumber>;
|
|
@@ -785,11 +839,13 @@ export declare const AllCouponsSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
785
839
|
}>>>;
|
|
786
840
|
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
787
841
|
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
842
|
+
createdBy: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>>;
|
|
843
|
+
isExpired: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
788
844
|
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
789
845
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
790
846
|
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.INDIVIDUAL_STORE>>;
|
|
791
847
|
itemTypes: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ItemType>, "many">>>;
|
|
792
|
-
shops: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>, "
|
|
848
|
+
shops: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>, "many">>>;
|
|
793
849
|
isShopCoverExpenses: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
794
850
|
valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
795
851
|
value: z.ZodOptional<z.ZodNumber>;
|
|
@@ -828,11 +884,13 @@ export declare const AllCouponsSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
828
884
|
}>>>;
|
|
829
885
|
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
830
886
|
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
887
|
+
createdBy: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>>;
|
|
888
|
+
isExpired: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
831
889
|
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
832
890
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
833
891
|
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.INDIVIDUAL_STORE>>;
|
|
834
892
|
itemTypes: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ItemType>, "many">>>;
|
|
835
|
-
shops: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>, "
|
|
893
|
+
shops: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>, "many">>>;
|
|
836
894
|
isShopCoverExpenses: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
837
895
|
valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
838
896
|
value: z.ZodOptional<z.ZodNumber>;
|
|
@@ -871,6 +929,8 @@ export declare const AllCouponsSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
871
929
|
}>>>;
|
|
872
930
|
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
873
931
|
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
932
|
+
createdBy: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>>;
|
|
933
|
+
isExpired: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
874
934
|
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
875
935
|
}, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
|
|
876
936
|
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.INDIVIDUAL_USER>>;
|
|
@@ -914,6 +974,8 @@ export declare const AllCouponsSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
914
974
|
}>>>;
|
|
915
975
|
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
916
976
|
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
977
|
+
createdBy: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>>;
|
|
978
|
+
isExpired: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
917
979
|
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
918
980
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
919
981
|
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.INDIVIDUAL_USER>>;
|
|
@@ -957,6 +1019,8 @@ export declare const AllCouponsSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
957
1019
|
}>>>;
|
|
958
1020
|
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
959
1021
|
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
1022
|
+
createdBy: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>>;
|
|
1023
|
+
isExpired: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
960
1024
|
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
961
1025
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
962
1026
|
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.INDIVIDUAL_USER>>;
|
|
@@ -1000,6 +1064,8 @@ export declare const AllCouponsSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
1000
1064
|
}>>>;
|
|
1001
1065
|
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
1002
1066
|
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
1067
|
+
createdBy: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>>;
|
|
1068
|
+
isExpired: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
1003
1069
|
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
1004
1070
|
}, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
|
|
1005
1071
|
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.CUSTOM_COUPON>>;
|
|
@@ -1043,6 +1109,8 @@ export declare const AllCouponsSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
1043
1109
|
}>>>;
|
|
1044
1110
|
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
1045
1111
|
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
1112
|
+
createdBy: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>>;
|
|
1113
|
+
isExpired: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
1046
1114
|
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
1047
1115
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1048
1116
|
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.CUSTOM_COUPON>>;
|
|
@@ -1086,6 +1154,8 @@ export declare const AllCouponsSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
1086
1154
|
}>>>;
|
|
1087
1155
|
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
1088
1156
|
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
1157
|
+
createdBy: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>>;
|
|
1158
|
+
isExpired: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
1089
1159
|
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
1090
1160
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1091
1161
|
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.CUSTOM_COUPON>>;
|
|
@@ -1129,6 +1199,8 @@ export declare const AllCouponsSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
1129
1199
|
}>>>;
|
|
1130
1200
|
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
1131
1201
|
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
1202
|
+
createdBy: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>>;
|
|
1203
|
+
isExpired: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
1132
1204
|
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
1133
1205
|
}, z.ZodTypeAny, "passthrough">>]>;
|
|
1134
1206
|
export declare const AllCouponsUpdateSchema: z.ZodObject<{
|
|
@@ -1172,6 +1244,8 @@ export declare const AllCouponsUpdateSchema: z.ZodObject<{
|
|
|
1172
1244
|
}>>;
|
|
1173
1245
|
code: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
1174
1246
|
orderLimitPerUser: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
|
|
1247
|
+
createdBy: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
1248
|
+
isExpired: z.ZodOptional<z.ZodBoolean>;
|
|
1175
1249
|
}, "strict", z.ZodTypeAny, {
|
|
1176
1250
|
value: number;
|
|
1177
1251
|
code: string;
|
|
@@ -1195,6 +1269,8 @@ export declare const AllCouponsUpdateSchema: z.ZodObject<{
|
|
|
1195
1269
|
referringUser?: {
|
|
1196
1270
|
name?: string | undefined;
|
|
1197
1271
|
} | undefined;
|
|
1272
|
+
createdBy?: import("mongoose").Types.ObjectId | undefined;
|
|
1273
|
+
isExpired?: boolean | undefined;
|
|
1198
1274
|
}, {
|
|
1199
1275
|
value: number;
|
|
1200
1276
|
code: string;
|
|
@@ -1218,21 +1294,29 @@ export declare const AllCouponsUpdateSchema: z.ZodObject<{
|
|
|
1218
1294
|
name?: string | undefined;
|
|
1219
1295
|
} | undefined;
|
|
1220
1296
|
orderLimitPerUser?: number | null | undefined;
|
|
1297
|
+
createdBy?: string | import("mongoose").Types.ObjectId | undefined;
|
|
1298
|
+
isExpired?: boolean | undefined;
|
|
1221
1299
|
}>, z.ZodObject<{
|
|
1222
1300
|
couponType: z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.REFERRAL_CODE>;
|
|
1223
1301
|
orderLimitPerUser: z.ZodLiteral<1>;
|
|
1224
1302
|
referralUser: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>;
|
|
1225
1303
|
code: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
1304
|
+
createdBy: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
1305
|
+
isExpired: z.ZodOptional<z.ZodBoolean>;
|
|
1226
1306
|
}, "strict", z.ZodTypeAny, {
|
|
1227
1307
|
code: string;
|
|
1228
1308
|
orderLimitPerUser: 1;
|
|
1229
1309
|
couponType: import("@lyxa.ai/core/dist/utilities/enum").CouponType.REFERRAL_CODE;
|
|
1230
1310
|
referralUser: import("mongoose").Types.ObjectId;
|
|
1311
|
+
createdBy?: import("mongoose").Types.ObjectId | undefined;
|
|
1312
|
+
isExpired?: boolean | undefined;
|
|
1231
1313
|
}, {
|
|
1232
1314
|
code: string;
|
|
1233
1315
|
orderLimitPerUser: 1;
|
|
1234
1316
|
couponType: import("@lyxa.ai/core/dist/utilities/enum").CouponType.REFERRAL_CODE;
|
|
1235
1317
|
referralUser: string | import("mongoose").Types.ObjectId;
|
|
1318
|
+
createdBy?: string | import("mongoose").Types.ObjectId | undefined;
|
|
1319
|
+
isExpired?: boolean | undefined;
|
|
1236
1320
|
}>, z.ZodObject<{
|
|
1237
1321
|
couponType: z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.REFERRAL_REWARD>;
|
|
1238
1322
|
user: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>;
|
|
@@ -1275,6 +1359,8 @@ export declare const AllCouponsUpdateSchema: z.ZodObject<{
|
|
|
1275
1359
|
}>>;
|
|
1276
1360
|
code: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
1277
1361
|
orderLimitPerUser: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
|
|
1362
|
+
createdBy: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
1363
|
+
isExpired: z.ZodOptional<z.ZodBoolean>;
|
|
1278
1364
|
}, "strict", z.ZodTypeAny, {
|
|
1279
1365
|
value: number;
|
|
1280
1366
|
code: string;
|
|
@@ -1301,6 +1387,8 @@ export declare const AllCouponsUpdateSchema: z.ZodObject<{
|
|
|
1301
1387
|
referringUser?: {
|
|
1302
1388
|
name?: string | undefined;
|
|
1303
1389
|
} | undefined;
|
|
1390
|
+
createdBy?: import("mongoose").Types.ObjectId | undefined;
|
|
1391
|
+
isExpired?: boolean | undefined;
|
|
1304
1392
|
}, {
|
|
1305
1393
|
value: number;
|
|
1306
1394
|
code: string;
|
|
@@ -1327,10 +1415,12 @@ export declare const AllCouponsUpdateSchema: z.ZodObject<{
|
|
|
1327
1415
|
name?: string | undefined;
|
|
1328
1416
|
} | undefined;
|
|
1329
1417
|
orderLimitPerUser?: number | null | undefined;
|
|
1418
|
+
createdBy?: string | import("mongoose").Types.ObjectId | undefined;
|
|
1419
|
+
isExpired?: boolean | undefined;
|
|
1330
1420
|
}>, z.ZodObject<{
|
|
1331
1421
|
couponType: z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.INDIVIDUAL_STORE>;
|
|
1332
1422
|
itemTypes: z.ZodDefault<z.ZodArray<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ItemType>, "many">>;
|
|
1333
|
-
shops: z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>, "
|
|
1423
|
+
shops: z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>, "many">>;
|
|
1334
1424
|
isShopCoverExpenses: z.ZodDefault<z.ZodBoolean>;
|
|
1335
1425
|
valueType: z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>;
|
|
1336
1426
|
value: z.ZodNumber;
|
|
@@ -1369,6 +1459,8 @@ export declare const AllCouponsUpdateSchema: z.ZodObject<{
|
|
|
1369
1459
|
}>>;
|
|
1370
1460
|
code: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
1371
1461
|
orderLimitPerUser: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
|
|
1462
|
+
createdBy: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
1463
|
+
isExpired: z.ZodOptional<z.ZodBoolean>;
|
|
1372
1464
|
}, "strict", z.ZodTypeAny, {
|
|
1373
1465
|
value: number;
|
|
1374
1466
|
code: string;
|
|
@@ -1387,7 +1479,7 @@ export declare const AllCouponsUpdateSchema: z.ZodObject<{
|
|
|
1387
1479
|
orderLimitPerUser: number | null;
|
|
1388
1480
|
couponType: import("@lyxa.ai/core/dist/utilities/enum").CouponType.INDIVIDUAL_STORE;
|
|
1389
1481
|
itemTypes: import("@lyxa.ai/core/dist/utilities/enum").ItemType[];
|
|
1390
|
-
shops:
|
|
1482
|
+
shops: import("mongoose").Types.ObjectId[];
|
|
1391
1483
|
isShopCoverExpenses: boolean;
|
|
1392
1484
|
secondaryCurrencyValue?: number | undefined;
|
|
1393
1485
|
secondaryCurrencyMaxDiscountLimit?: number | undefined;
|
|
@@ -1395,6 +1487,8 @@ export declare const AllCouponsUpdateSchema: z.ZodObject<{
|
|
|
1395
1487
|
referringUser?: {
|
|
1396
1488
|
name?: string | undefined;
|
|
1397
1489
|
} | undefined;
|
|
1490
|
+
createdBy?: import("mongoose").Types.ObjectId | undefined;
|
|
1491
|
+
isExpired?: boolean | undefined;
|
|
1398
1492
|
}, {
|
|
1399
1493
|
value: number;
|
|
1400
1494
|
code: string;
|
|
@@ -1404,7 +1498,6 @@ export declare const AllCouponsUpdateSchema: z.ZodObject<{
|
|
|
1404
1498
|
};
|
|
1405
1499
|
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
1406
1500
|
couponType: import("@lyxa.ai/core/dist/utilities/enum").CouponType.INDIVIDUAL_STORE;
|
|
1407
|
-
shops: [string | import("mongoose").Types.ObjectId, ...(string | import("mongoose").Types.ObjectId)[]];
|
|
1408
1501
|
status?: import("@lyxa.ai/core/dist/utilities/enum").Status | undefined;
|
|
1409
1502
|
spendLimit?: number | null | undefined;
|
|
1410
1503
|
secondaryCurrencyValue?: number | undefined;
|
|
@@ -1419,7 +1512,10 @@ export declare const AllCouponsUpdateSchema: z.ZodObject<{
|
|
|
1419
1512
|
name?: string | undefined;
|
|
1420
1513
|
} | undefined;
|
|
1421
1514
|
orderLimitPerUser?: number | null | undefined;
|
|
1515
|
+
createdBy?: string | import("mongoose").Types.ObjectId | undefined;
|
|
1516
|
+
isExpired?: boolean | undefined;
|
|
1422
1517
|
itemTypes?: import("@lyxa.ai/core/dist/utilities/enum").ItemType[] | undefined;
|
|
1518
|
+
shops?: (string | import("mongoose").Types.ObjectId)[] | undefined;
|
|
1423
1519
|
isShopCoverExpenses?: boolean | undefined;
|
|
1424
1520
|
}>, z.ZodObject<{
|
|
1425
1521
|
couponType: z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.INDIVIDUAL_USER>;
|
|
@@ -1463,6 +1559,8 @@ export declare const AllCouponsUpdateSchema: z.ZodObject<{
|
|
|
1463
1559
|
}>>;
|
|
1464
1560
|
code: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
1465
1561
|
orderLimitPerUser: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
|
|
1562
|
+
createdBy: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
1563
|
+
isExpired: z.ZodOptional<z.ZodBoolean>;
|
|
1466
1564
|
}, "strict", z.ZodTypeAny, {
|
|
1467
1565
|
value: number;
|
|
1468
1566
|
code: string;
|
|
@@ -1489,6 +1587,8 @@ export declare const AllCouponsUpdateSchema: z.ZodObject<{
|
|
|
1489
1587
|
referringUser?: {
|
|
1490
1588
|
name?: string | undefined;
|
|
1491
1589
|
} | undefined;
|
|
1590
|
+
createdBy?: import("mongoose").Types.ObjectId | undefined;
|
|
1591
|
+
isExpired?: boolean | undefined;
|
|
1492
1592
|
}, {
|
|
1493
1593
|
value: number;
|
|
1494
1594
|
code: string;
|
|
@@ -1513,6 +1613,8 @@ export declare const AllCouponsUpdateSchema: z.ZodObject<{
|
|
|
1513
1613
|
name?: string | undefined;
|
|
1514
1614
|
} | undefined;
|
|
1515
1615
|
orderLimitPerUser?: number | null | undefined;
|
|
1616
|
+
createdBy?: string | import("mongoose").Types.ObjectId | undefined;
|
|
1617
|
+
isExpired?: boolean | undefined;
|
|
1516
1618
|
itemTypes?: import("@lyxa.ai/core/dist/utilities/enum").ItemType[] | undefined;
|
|
1517
1619
|
shops?: (string | import("mongoose").Types.ObjectId)[] | undefined;
|
|
1518
1620
|
}>, z.ZodObject<{
|
|
@@ -1557,6 +1659,8 @@ export declare const AllCouponsUpdateSchema: z.ZodObject<{
|
|
|
1557
1659
|
}>>;
|
|
1558
1660
|
code: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
1559
1661
|
orderLimitPerUser: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
|
|
1662
|
+
createdBy: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
1663
|
+
isExpired: z.ZodOptional<z.ZodBoolean>;
|
|
1560
1664
|
}, "strict", z.ZodTypeAny, {
|
|
1561
1665
|
value: number;
|
|
1562
1666
|
code: string;
|
|
@@ -1583,6 +1687,8 @@ export declare const AllCouponsUpdateSchema: z.ZodObject<{
|
|
|
1583
1687
|
referringUser?: {
|
|
1584
1688
|
name?: string | undefined;
|
|
1585
1689
|
} | undefined;
|
|
1690
|
+
createdBy?: import("mongoose").Types.ObjectId | undefined;
|
|
1691
|
+
isExpired?: boolean | undefined;
|
|
1586
1692
|
}, {
|
|
1587
1693
|
value: number;
|
|
1588
1694
|
code: string;
|
|
@@ -1607,6 +1713,8 @@ export declare const AllCouponsUpdateSchema: z.ZodObject<{
|
|
|
1607
1713
|
name?: string | undefined;
|
|
1608
1714
|
} | undefined;
|
|
1609
1715
|
orderLimitPerUser?: number | null | undefined;
|
|
1716
|
+
createdBy?: string | import("mongoose").Types.ObjectId | undefined;
|
|
1717
|
+
isExpired?: boolean | undefined;
|
|
1610
1718
|
itemTypes?: import("@lyxa.ai/core/dist/utilities/enum").ItemType[] | undefined;
|
|
1611
1719
|
shops?: (string | import("mongoose").Types.ObjectId)[] | undefined;
|
|
1612
1720
|
}>]>;
|
|
@@ -1635,11 +1743,15 @@ export declare const AllCouponsUpdateSchema: z.ZodObject<{
|
|
|
1635
1743
|
referringUser?: {
|
|
1636
1744
|
name?: string | undefined;
|
|
1637
1745
|
} | undefined;
|
|
1746
|
+
createdBy?: import("mongoose").Types.ObjectId | undefined;
|
|
1747
|
+
isExpired?: boolean | undefined;
|
|
1638
1748
|
} | {
|
|
1639
1749
|
code: string;
|
|
1640
1750
|
orderLimitPerUser: 1;
|
|
1641
1751
|
couponType: import("@lyxa.ai/core/dist/utilities/enum").CouponType.REFERRAL_CODE;
|
|
1642
1752
|
referralUser: import("mongoose").Types.ObjectId;
|
|
1753
|
+
createdBy?: import("mongoose").Types.ObjectId | undefined;
|
|
1754
|
+
isExpired?: boolean | undefined;
|
|
1643
1755
|
} | {
|
|
1644
1756
|
value: number;
|
|
1645
1757
|
code: string;
|
|
@@ -1666,6 +1778,8 @@ export declare const AllCouponsUpdateSchema: z.ZodObject<{
|
|
|
1666
1778
|
referringUser?: {
|
|
1667
1779
|
name?: string | undefined;
|
|
1668
1780
|
} | undefined;
|
|
1781
|
+
createdBy?: import("mongoose").Types.ObjectId | undefined;
|
|
1782
|
+
isExpired?: boolean | undefined;
|
|
1669
1783
|
} | {
|
|
1670
1784
|
value: number;
|
|
1671
1785
|
code: string;
|
|
@@ -1684,7 +1798,7 @@ export declare const AllCouponsUpdateSchema: z.ZodObject<{
|
|
|
1684
1798
|
orderLimitPerUser: number | null;
|
|
1685
1799
|
couponType: import("@lyxa.ai/core/dist/utilities/enum").CouponType.INDIVIDUAL_STORE;
|
|
1686
1800
|
itemTypes: import("@lyxa.ai/core/dist/utilities/enum").ItemType[];
|
|
1687
|
-
shops:
|
|
1801
|
+
shops: import("mongoose").Types.ObjectId[];
|
|
1688
1802
|
isShopCoverExpenses: boolean;
|
|
1689
1803
|
secondaryCurrencyValue?: number | undefined;
|
|
1690
1804
|
secondaryCurrencyMaxDiscountLimit?: number | undefined;
|
|
@@ -1692,6 +1806,8 @@ export declare const AllCouponsUpdateSchema: z.ZodObject<{
|
|
|
1692
1806
|
referringUser?: {
|
|
1693
1807
|
name?: string | undefined;
|
|
1694
1808
|
} | undefined;
|
|
1809
|
+
createdBy?: import("mongoose").Types.ObjectId | undefined;
|
|
1810
|
+
isExpired?: boolean | undefined;
|
|
1695
1811
|
} | {
|
|
1696
1812
|
value: number;
|
|
1697
1813
|
code: string;
|
|
@@ -1718,6 +1834,8 @@ export declare const AllCouponsUpdateSchema: z.ZodObject<{
|
|
|
1718
1834
|
referringUser?: {
|
|
1719
1835
|
name?: string | undefined;
|
|
1720
1836
|
} | undefined;
|
|
1837
|
+
createdBy?: import("mongoose").Types.ObjectId | undefined;
|
|
1838
|
+
isExpired?: boolean | undefined;
|
|
1721
1839
|
} | {
|
|
1722
1840
|
value: number;
|
|
1723
1841
|
code: string;
|
|
@@ -1744,6 +1862,8 @@ export declare const AllCouponsUpdateSchema: z.ZodObject<{
|
|
|
1744
1862
|
referringUser?: {
|
|
1745
1863
|
name?: string | undefined;
|
|
1746
1864
|
} | undefined;
|
|
1865
|
+
createdBy?: import("mongoose").Types.ObjectId | undefined;
|
|
1866
|
+
isExpired?: boolean | undefined;
|
|
1747
1867
|
};
|
|
1748
1868
|
}, {
|
|
1749
1869
|
_id: string | import("mongoose").Types.ObjectId;
|
|
@@ -1770,11 +1890,15 @@ export declare const AllCouponsUpdateSchema: z.ZodObject<{
|
|
|
1770
1890
|
name?: string | undefined;
|
|
1771
1891
|
} | undefined;
|
|
1772
1892
|
orderLimitPerUser?: number | null | undefined;
|
|
1893
|
+
createdBy?: string | import("mongoose").Types.ObjectId | undefined;
|
|
1894
|
+
isExpired?: boolean | undefined;
|
|
1773
1895
|
} | {
|
|
1774
1896
|
code: string;
|
|
1775
1897
|
orderLimitPerUser: 1;
|
|
1776
1898
|
couponType: import("@lyxa.ai/core/dist/utilities/enum").CouponType.REFERRAL_CODE;
|
|
1777
1899
|
referralUser: string | import("mongoose").Types.ObjectId;
|
|
1900
|
+
createdBy?: string | import("mongoose").Types.ObjectId | undefined;
|
|
1901
|
+
isExpired?: boolean | undefined;
|
|
1778
1902
|
} | {
|
|
1779
1903
|
value: number;
|
|
1780
1904
|
code: string;
|
|
@@ -1801,6 +1925,8 @@ export declare const AllCouponsUpdateSchema: z.ZodObject<{
|
|
|
1801
1925
|
name?: string | undefined;
|
|
1802
1926
|
} | undefined;
|
|
1803
1927
|
orderLimitPerUser?: number | null | undefined;
|
|
1928
|
+
createdBy?: string | import("mongoose").Types.ObjectId | undefined;
|
|
1929
|
+
isExpired?: boolean | undefined;
|
|
1804
1930
|
} | {
|
|
1805
1931
|
value: number;
|
|
1806
1932
|
code: string;
|
|
@@ -1810,7 +1936,6 @@ export declare const AllCouponsUpdateSchema: z.ZodObject<{
|
|
|
1810
1936
|
};
|
|
1811
1937
|
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
1812
1938
|
couponType: import("@lyxa.ai/core/dist/utilities/enum").CouponType.INDIVIDUAL_STORE;
|
|
1813
|
-
shops: [string | import("mongoose").Types.ObjectId, ...(string | import("mongoose").Types.ObjectId)[]];
|
|
1814
1939
|
status?: import("@lyxa.ai/core/dist/utilities/enum").Status | undefined;
|
|
1815
1940
|
spendLimit?: number | null | undefined;
|
|
1816
1941
|
secondaryCurrencyValue?: number | undefined;
|
|
@@ -1825,7 +1950,10 @@ export declare const AllCouponsUpdateSchema: z.ZodObject<{
|
|
|
1825
1950
|
name?: string | undefined;
|
|
1826
1951
|
} | undefined;
|
|
1827
1952
|
orderLimitPerUser?: number | null | undefined;
|
|
1953
|
+
createdBy?: string | import("mongoose").Types.ObjectId | undefined;
|
|
1954
|
+
isExpired?: boolean | undefined;
|
|
1828
1955
|
itemTypes?: import("@lyxa.ai/core/dist/utilities/enum").ItemType[] | undefined;
|
|
1956
|
+
shops?: (string | import("mongoose").Types.ObjectId)[] | undefined;
|
|
1829
1957
|
isShopCoverExpenses?: boolean | undefined;
|
|
1830
1958
|
} | {
|
|
1831
1959
|
value: number;
|
|
@@ -1851,6 +1979,8 @@ export declare const AllCouponsUpdateSchema: z.ZodObject<{
|
|
|
1851
1979
|
name?: string | undefined;
|
|
1852
1980
|
} | undefined;
|
|
1853
1981
|
orderLimitPerUser?: number | null | undefined;
|
|
1982
|
+
createdBy?: string | import("mongoose").Types.ObjectId | undefined;
|
|
1983
|
+
isExpired?: boolean | undefined;
|
|
1854
1984
|
itemTypes?: import("@lyxa.ai/core/dist/utilities/enum").ItemType[] | undefined;
|
|
1855
1985
|
shops?: (string | import("mongoose").Types.ObjectId)[] | undefined;
|
|
1856
1986
|
} | {
|
|
@@ -1877,6 +2007,8 @@ export declare const AllCouponsUpdateSchema: z.ZodObject<{
|
|
|
1877
2007
|
name?: string | undefined;
|
|
1878
2008
|
} | undefined;
|
|
1879
2009
|
orderLimitPerUser?: number | null | undefined;
|
|
2010
|
+
createdBy?: string | import("mongoose").Types.ObjectId | undefined;
|
|
2011
|
+
isExpired?: boolean | undefined;
|
|
1880
2012
|
itemTypes?: import("@lyxa.ai/core/dist/utilities/enum").ItemType[] | undefined;
|
|
1881
2013
|
shops?: (string | import("mongoose").Types.ObjectId)[] | undefined;
|
|
1882
2014
|
};
|
|
@@ -1940,12 +2072,16 @@ export declare const CouponResponseSchema: z.ZodObject<{
|
|
|
1940
2072
|
}>>>;
|
|
1941
2073
|
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
1942
2074
|
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2075
|
+
createdBy: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>>;
|
|
2076
|
+
isExpired: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
1943
2077
|
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
1944
2078
|
}, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
|
|
1945
2079
|
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.REFERRAL_CODE>>;
|
|
1946
2080
|
orderLimitPerUser: z.ZodOptional<z.ZodLiteral<1>>;
|
|
1947
2081
|
referralUser: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
1948
2082
|
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
2083
|
+
createdBy: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>>;
|
|
2084
|
+
isExpired: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
1949
2085
|
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
1950
2086
|
}, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
|
|
1951
2087
|
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.REFERRAL_REWARD>>;
|
|
@@ -1989,11 +2125,13 @@ export declare const CouponResponseSchema: z.ZodObject<{
|
|
|
1989
2125
|
}>>>;
|
|
1990
2126
|
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
1991
2127
|
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2128
|
+
createdBy: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>>;
|
|
2129
|
+
isExpired: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
1992
2130
|
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
1993
2131
|
}, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
|
|
1994
2132
|
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.INDIVIDUAL_STORE>>;
|
|
1995
2133
|
itemTypes: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ItemType>, "many">>>;
|
|
1996
|
-
shops: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>, "
|
|
2134
|
+
shops: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>, "many">>>;
|
|
1997
2135
|
isShopCoverExpenses: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
1998
2136
|
valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
1999
2137
|
value: z.ZodOptional<z.ZodNumber>;
|
|
@@ -2032,6 +2170,8 @@ export declare const CouponResponseSchema: z.ZodObject<{
|
|
|
2032
2170
|
}>>>;
|
|
2033
2171
|
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
2034
2172
|
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2173
|
+
createdBy: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>>;
|
|
2174
|
+
isExpired: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
2035
2175
|
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
2036
2176
|
}, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
|
|
2037
2177
|
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.INDIVIDUAL_USER>>;
|
|
@@ -2075,6 +2215,8 @@ export declare const CouponResponseSchema: z.ZodObject<{
|
|
|
2075
2215
|
}>>>;
|
|
2076
2216
|
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
2077
2217
|
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2218
|
+
createdBy: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>>;
|
|
2219
|
+
isExpired: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
2078
2220
|
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
2079
2221
|
}, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
|
|
2080
2222
|
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.CUSTOM_COUPON>>;
|
|
@@ -2118,6 +2260,8 @@ export declare const CouponResponseSchema: z.ZodObject<{
|
|
|
2118
2260
|
}>>>;
|
|
2119
2261
|
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
2120
2262
|
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2263
|
+
createdBy: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>>;
|
|
2264
|
+
isExpired: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
2121
2265
|
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
2122
2266
|
}, z.ZodTypeAny, "passthrough">, z.ZodTypeDef, z.objectInputType<{
|
|
2123
2267
|
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.GLOBAL>>;
|
|
@@ -2158,12 +2302,16 @@ export declare const CouponResponseSchema: z.ZodObject<{
|
|
|
2158
2302
|
}>>>;
|
|
2159
2303
|
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
2160
2304
|
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2305
|
+
createdBy: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>>;
|
|
2306
|
+
isExpired: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
2161
2307
|
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
2162
2308
|
}, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
|
|
2163
2309
|
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.REFERRAL_CODE>>;
|
|
2164
2310
|
orderLimitPerUser: z.ZodOptional<z.ZodLiteral<1>>;
|
|
2165
2311
|
referralUser: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
2166
2312
|
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
2313
|
+
createdBy: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>>;
|
|
2314
|
+
isExpired: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
2167
2315
|
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
2168
2316
|
}, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
|
|
2169
2317
|
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.REFERRAL_REWARD>>;
|
|
@@ -2207,11 +2355,13 @@ export declare const CouponResponseSchema: z.ZodObject<{
|
|
|
2207
2355
|
}>>>;
|
|
2208
2356
|
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
2209
2357
|
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2358
|
+
createdBy: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>>;
|
|
2359
|
+
isExpired: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
2210
2360
|
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
2211
2361
|
}, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
|
|
2212
2362
|
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.INDIVIDUAL_STORE>>;
|
|
2213
2363
|
itemTypes: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ItemType>, "many">>>;
|
|
2214
|
-
shops: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>, "
|
|
2364
|
+
shops: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>, "many">>>;
|
|
2215
2365
|
isShopCoverExpenses: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
2216
2366
|
valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
2217
2367
|
value: z.ZodOptional<z.ZodNumber>;
|
|
@@ -2250,6 +2400,8 @@ export declare const CouponResponseSchema: z.ZodObject<{
|
|
|
2250
2400
|
}>>>;
|
|
2251
2401
|
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
2252
2402
|
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2403
|
+
createdBy: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>>;
|
|
2404
|
+
isExpired: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
2253
2405
|
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
2254
2406
|
}, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
|
|
2255
2407
|
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.INDIVIDUAL_USER>>;
|
|
@@ -2293,6 +2445,8 @@ export declare const CouponResponseSchema: z.ZodObject<{
|
|
|
2293
2445
|
}>>>;
|
|
2294
2446
|
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
2295
2447
|
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2448
|
+
createdBy: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>>;
|
|
2449
|
+
isExpired: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
2296
2450
|
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
2297
2451
|
}, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
|
|
2298
2452
|
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.CUSTOM_COUPON>>;
|
|
@@ -2336,6 +2490,8 @@ export declare const CouponResponseSchema: z.ZodObject<{
|
|
|
2336
2490
|
}>>>;
|
|
2337
2491
|
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
2338
2492
|
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2493
|
+
createdBy: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>>;
|
|
2494
|
+
isExpired: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
2339
2495
|
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
2340
2496
|
}, z.ZodTypeAny, "passthrough">>, "many">;
|
|
2341
2497
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -2378,12 +2534,16 @@ export declare const CouponResponseSchema: z.ZodObject<{
|
|
|
2378
2534
|
}>>>;
|
|
2379
2535
|
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
2380
2536
|
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2537
|
+
createdBy: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>>;
|
|
2538
|
+
isExpired: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
2381
2539
|
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
2382
2540
|
}, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
|
|
2383
2541
|
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.REFERRAL_CODE>>;
|
|
2384
2542
|
orderLimitPerUser: z.ZodOptional<z.ZodLiteral<1>>;
|
|
2385
2543
|
referralUser: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
2386
2544
|
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
2545
|
+
createdBy: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>>;
|
|
2546
|
+
isExpired: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
2387
2547
|
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
2388
2548
|
}, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
|
|
2389
2549
|
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.REFERRAL_REWARD>>;
|
|
@@ -2427,11 +2587,13 @@ export declare const CouponResponseSchema: z.ZodObject<{
|
|
|
2427
2587
|
}>>>;
|
|
2428
2588
|
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
2429
2589
|
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2590
|
+
createdBy: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>>;
|
|
2591
|
+
isExpired: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
2430
2592
|
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
2431
2593
|
}, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
|
|
2432
2594
|
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.INDIVIDUAL_STORE>>;
|
|
2433
2595
|
itemTypes: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ItemType>, "many">>>;
|
|
2434
|
-
shops: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>, "
|
|
2596
|
+
shops: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>, "many">>>;
|
|
2435
2597
|
isShopCoverExpenses: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
2436
2598
|
valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
2437
2599
|
value: z.ZodOptional<z.ZodNumber>;
|
|
@@ -2470,6 +2632,8 @@ export declare const CouponResponseSchema: z.ZodObject<{
|
|
|
2470
2632
|
}>>>;
|
|
2471
2633
|
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
2472
2634
|
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2635
|
+
createdBy: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>>;
|
|
2636
|
+
isExpired: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
2473
2637
|
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
2474
2638
|
}, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
|
|
2475
2639
|
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.INDIVIDUAL_USER>>;
|
|
@@ -2513,6 +2677,8 @@ export declare const CouponResponseSchema: z.ZodObject<{
|
|
|
2513
2677
|
}>>>;
|
|
2514
2678
|
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
2515
2679
|
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2680
|
+
createdBy: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>>;
|
|
2681
|
+
isExpired: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
2516
2682
|
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
2517
2683
|
}, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
|
|
2518
2684
|
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.CUSTOM_COUPON>>;
|
|
@@ -2556,6 +2722,8 @@ export declare const CouponResponseSchema: z.ZodObject<{
|
|
|
2556
2722
|
}>>>;
|
|
2557
2723
|
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
2558
2724
|
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2725
|
+
createdBy: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>>;
|
|
2726
|
+
isExpired: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
2559
2727
|
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
2560
2728
|
}, z.ZodTypeAny, "passthrough">)[];
|
|
2561
2729
|
metadata?: {
|
|
@@ -2604,12 +2772,16 @@ export declare const CouponResponseSchema: z.ZodObject<{
|
|
|
2604
2772
|
}>>>;
|
|
2605
2773
|
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
2606
2774
|
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2775
|
+
createdBy: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>>;
|
|
2776
|
+
isExpired: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
2607
2777
|
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
2608
2778
|
}, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
|
|
2609
2779
|
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.REFERRAL_CODE>>;
|
|
2610
2780
|
orderLimitPerUser: z.ZodOptional<z.ZodLiteral<1>>;
|
|
2611
2781
|
referralUser: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
2612
2782
|
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
2783
|
+
createdBy: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>>;
|
|
2784
|
+
isExpired: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
2613
2785
|
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
2614
2786
|
}, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
|
|
2615
2787
|
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.REFERRAL_REWARD>>;
|
|
@@ -2653,11 +2825,13 @@ export declare const CouponResponseSchema: z.ZodObject<{
|
|
|
2653
2825
|
}>>>;
|
|
2654
2826
|
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
2655
2827
|
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2828
|
+
createdBy: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>>;
|
|
2829
|
+
isExpired: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
2656
2830
|
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
2657
2831
|
}, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
|
|
2658
2832
|
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.INDIVIDUAL_STORE>>;
|
|
2659
2833
|
itemTypes: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ItemType>, "many">>>;
|
|
2660
|
-
shops: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>, "
|
|
2834
|
+
shops: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>, "many">>>;
|
|
2661
2835
|
isShopCoverExpenses: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
2662
2836
|
valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
2663
2837
|
value: z.ZodOptional<z.ZodNumber>;
|
|
@@ -2696,6 +2870,8 @@ export declare const CouponResponseSchema: z.ZodObject<{
|
|
|
2696
2870
|
}>>>;
|
|
2697
2871
|
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
2698
2872
|
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2873
|
+
createdBy: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>>;
|
|
2874
|
+
isExpired: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
2699
2875
|
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
2700
2876
|
}, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
|
|
2701
2877
|
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.INDIVIDUAL_USER>>;
|
|
@@ -2739,6 +2915,8 @@ export declare const CouponResponseSchema: z.ZodObject<{
|
|
|
2739
2915
|
}>>>;
|
|
2740
2916
|
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
2741
2917
|
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2918
|
+
createdBy: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>>;
|
|
2919
|
+
isExpired: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
2742
2920
|
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
2743
2921
|
}, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
|
|
2744
2922
|
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.CUSTOM_COUPON>>;
|
|
@@ -2782,6 +2960,8 @@ export declare const CouponResponseSchema: z.ZodObject<{
|
|
|
2782
2960
|
}>>>;
|
|
2783
2961
|
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
2784
2962
|
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2963
|
+
createdBy: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>>;
|
|
2964
|
+
isExpired: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
2785
2965
|
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
2786
2966
|
}, z.ZodTypeAny, "passthrough">)[];
|
|
2787
2967
|
metadata?: {
|
|
@@ -2829,12 +3009,16 @@ export declare const CouponResponseSchema: z.ZodObject<{
|
|
|
2829
3009
|
}>>>;
|
|
2830
3010
|
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
2831
3011
|
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
3012
|
+
createdBy: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>>;
|
|
3013
|
+
isExpired: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
2832
3014
|
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
2833
3015
|
}, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
|
|
2834
3016
|
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.REFERRAL_CODE>>;
|
|
2835
3017
|
orderLimitPerUser: z.ZodOptional<z.ZodLiteral<1>>;
|
|
2836
3018
|
referralUser: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
2837
3019
|
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
3020
|
+
createdBy: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>>;
|
|
3021
|
+
isExpired: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
2838
3022
|
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
2839
3023
|
}, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
|
|
2840
3024
|
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.REFERRAL_REWARD>>;
|
|
@@ -2878,11 +3062,13 @@ export declare const CouponResponseSchema: z.ZodObject<{
|
|
|
2878
3062
|
}>>>;
|
|
2879
3063
|
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
2880
3064
|
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
3065
|
+
createdBy: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>>;
|
|
3066
|
+
isExpired: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
2881
3067
|
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
2882
3068
|
}, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
|
|
2883
3069
|
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.INDIVIDUAL_STORE>>;
|
|
2884
3070
|
itemTypes: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ItemType>, "many">>>;
|
|
2885
|
-
shops: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>, "
|
|
3071
|
+
shops: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>, "many">>>;
|
|
2886
3072
|
isShopCoverExpenses: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
2887
3073
|
valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
2888
3074
|
value: z.ZodOptional<z.ZodNumber>;
|
|
@@ -2921,6 +3107,8 @@ export declare const CouponResponseSchema: z.ZodObject<{
|
|
|
2921
3107
|
}>>>;
|
|
2922
3108
|
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
2923
3109
|
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
3110
|
+
createdBy: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>>;
|
|
3111
|
+
isExpired: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
2924
3112
|
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
2925
3113
|
}, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
|
|
2926
3114
|
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.INDIVIDUAL_USER>>;
|
|
@@ -2964,6 +3152,8 @@ export declare const CouponResponseSchema: z.ZodObject<{
|
|
|
2964
3152
|
}>>>;
|
|
2965
3153
|
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
2966
3154
|
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
3155
|
+
createdBy: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>>;
|
|
3156
|
+
isExpired: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
2967
3157
|
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
2968
3158
|
}, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
|
|
2969
3159
|
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.CUSTOM_COUPON>>;
|
|
@@ -3007,6 +3197,8 @@ export declare const CouponResponseSchema: z.ZodObject<{
|
|
|
3007
3197
|
}>>>;
|
|
3008
3198
|
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
3009
3199
|
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
3200
|
+
createdBy: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>>;
|
|
3201
|
+
isExpired: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
3010
3202
|
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
3011
3203
|
}, z.ZodTypeAny, "passthrough">, z.ZodTypeDef, z.objectInputType<{
|
|
3012
3204
|
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.GLOBAL>>;
|
|
@@ -3047,12 +3239,16 @@ export declare const CouponResponseSchema: z.ZodObject<{
|
|
|
3047
3239
|
}>>>;
|
|
3048
3240
|
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
3049
3241
|
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
3242
|
+
createdBy: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>>;
|
|
3243
|
+
isExpired: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
3050
3244
|
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
3051
3245
|
}, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
|
|
3052
3246
|
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.REFERRAL_CODE>>;
|
|
3053
3247
|
orderLimitPerUser: z.ZodOptional<z.ZodLiteral<1>>;
|
|
3054
3248
|
referralUser: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
3055
3249
|
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
3250
|
+
createdBy: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>>;
|
|
3251
|
+
isExpired: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
3056
3252
|
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
3057
3253
|
}, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
|
|
3058
3254
|
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.REFERRAL_REWARD>>;
|
|
@@ -3096,11 +3292,13 @@ export declare const CouponResponseSchema: z.ZodObject<{
|
|
|
3096
3292
|
}>>>;
|
|
3097
3293
|
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
3098
3294
|
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
3295
|
+
createdBy: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>>;
|
|
3296
|
+
isExpired: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
3099
3297
|
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
3100
3298
|
}, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
|
|
3101
3299
|
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.INDIVIDUAL_STORE>>;
|
|
3102
3300
|
itemTypes: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ItemType>, "many">>>;
|
|
3103
|
-
shops: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>, "
|
|
3301
|
+
shops: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>, "many">>>;
|
|
3104
3302
|
isShopCoverExpenses: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
3105
3303
|
valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
3106
3304
|
value: z.ZodOptional<z.ZodNumber>;
|
|
@@ -3139,6 +3337,8 @@ export declare const CouponResponseSchema: z.ZodObject<{
|
|
|
3139
3337
|
}>>>;
|
|
3140
3338
|
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
3141
3339
|
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
3340
|
+
createdBy: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>>;
|
|
3341
|
+
isExpired: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
3142
3342
|
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
3143
3343
|
}, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
|
|
3144
3344
|
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.INDIVIDUAL_USER>>;
|
|
@@ -3182,6 +3382,8 @@ export declare const CouponResponseSchema: z.ZodObject<{
|
|
|
3182
3382
|
}>>>;
|
|
3183
3383
|
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
3184
3384
|
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
3385
|
+
createdBy: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>>;
|
|
3386
|
+
isExpired: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
3185
3387
|
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
3186
3388
|
}, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
|
|
3187
3389
|
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.CUSTOM_COUPON>>;
|
|
@@ -3225,6 +3427,8 @@ export declare const CouponResponseSchema: z.ZodObject<{
|
|
|
3225
3427
|
}>>>;
|
|
3226
3428
|
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
3227
3429
|
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
3430
|
+
createdBy: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>>;
|
|
3431
|
+
isExpired: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
3228
3432
|
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
3229
3433
|
}, z.ZodTypeAny, "passthrough">>]>>;
|
|
3230
3434
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -3269,12 +3473,16 @@ export declare const CouponResponseSchema: z.ZodObject<{
|
|
|
3269
3473
|
}>>>;
|
|
3270
3474
|
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
3271
3475
|
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
3476
|
+
createdBy: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>>;
|
|
3477
|
+
isExpired: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
3272
3478
|
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
3273
3479
|
}, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
|
|
3274
3480
|
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.REFERRAL_CODE>>;
|
|
3275
3481
|
orderLimitPerUser: z.ZodOptional<z.ZodLiteral<1>>;
|
|
3276
3482
|
referralUser: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
3277
3483
|
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
3484
|
+
createdBy: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>>;
|
|
3485
|
+
isExpired: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
3278
3486
|
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
3279
3487
|
}, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
|
|
3280
3488
|
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.REFERRAL_REWARD>>;
|
|
@@ -3318,11 +3526,13 @@ export declare const CouponResponseSchema: z.ZodObject<{
|
|
|
3318
3526
|
}>>>;
|
|
3319
3527
|
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
3320
3528
|
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
3529
|
+
createdBy: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>>;
|
|
3530
|
+
isExpired: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
3321
3531
|
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
3322
3532
|
}, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
|
|
3323
3533
|
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.INDIVIDUAL_STORE>>;
|
|
3324
3534
|
itemTypes: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ItemType>, "many">>>;
|
|
3325
|
-
shops: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>, "
|
|
3535
|
+
shops: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>, "many">>>;
|
|
3326
3536
|
isShopCoverExpenses: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
3327
3537
|
valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
3328
3538
|
value: z.ZodOptional<z.ZodNumber>;
|
|
@@ -3361,6 +3571,8 @@ export declare const CouponResponseSchema: z.ZodObject<{
|
|
|
3361
3571
|
}>>>;
|
|
3362
3572
|
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
3363
3573
|
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
3574
|
+
createdBy: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>>;
|
|
3575
|
+
isExpired: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
3364
3576
|
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
3365
3577
|
}, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
|
|
3366
3578
|
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.INDIVIDUAL_USER>>;
|
|
@@ -3404,6 +3616,8 @@ export declare const CouponResponseSchema: z.ZodObject<{
|
|
|
3404
3616
|
}>>>;
|
|
3405
3617
|
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
3406
3618
|
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
3619
|
+
createdBy: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>>;
|
|
3620
|
+
isExpired: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
3407
3621
|
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
3408
3622
|
}, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
|
|
3409
3623
|
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.CUSTOM_COUPON>>;
|
|
@@ -3447,6 +3661,8 @@ export declare const CouponResponseSchema: z.ZodObject<{
|
|
|
3447
3661
|
}>>>;
|
|
3448
3662
|
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
3449
3663
|
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
3664
|
+
createdBy: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>>;
|
|
3665
|
+
isExpired: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
3450
3666
|
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
3451
3667
|
}, z.ZodTypeAny, "passthrough"> | {
|
|
3452
3668
|
documents: (z.objectInputType<{
|
|
@@ -3488,12 +3704,16 @@ export declare const CouponResponseSchema: z.ZodObject<{
|
|
|
3488
3704
|
}>>>;
|
|
3489
3705
|
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
3490
3706
|
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
3707
|
+
createdBy: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>>;
|
|
3708
|
+
isExpired: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
3491
3709
|
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
3492
3710
|
}, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
|
|
3493
3711
|
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.REFERRAL_CODE>>;
|
|
3494
3712
|
orderLimitPerUser: z.ZodOptional<z.ZodLiteral<1>>;
|
|
3495
3713
|
referralUser: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
3496
3714
|
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
3715
|
+
createdBy: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>>;
|
|
3716
|
+
isExpired: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
3497
3717
|
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
3498
3718
|
}, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
|
|
3499
3719
|
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.REFERRAL_REWARD>>;
|
|
@@ -3537,11 +3757,13 @@ export declare const CouponResponseSchema: z.ZodObject<{
|
|
|
3537
3757
|
}>>>;
|
|
3538
3758
|
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
3539
3759
|
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
3760
|
+
createdBy: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>>;
|
|
3761
|
+
isExpired: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
3540
3762
|
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
3541
3763
|
}, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
|
|
3542
3764
|
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.INDIVIDUAL_STORE>>;
|
|
3543
3765
|
itemTypes: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ItemType>, "many">>>;
|
|
3544
|
-
shops: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>, "
|
|
3766
|
+
shops: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>, "many">>>;
|
|
3545
3767
|
isShopCoverExpenses: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
3546
3768
|
valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
3547
3769
|
value: z.ZodOptional<z.ZodNumber>;
|
|
@@ -3580,6 +3802,8 @@ export declare const CouponResponseSchema: z.ZodObject<{
|
|
|
3580
3802
|
}>>>;
|
|
3581
3803
|
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
3582
3804
|
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
3805
|
+
createdBy: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>>;
|
|
3806
|
+
isExpired: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
3583
3807
|
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
3584
3808
|
}, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
|
|
3585
3809
|
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.INDIVIDUAL_USER>>;
|
|
@@ -3623,6 +3847,8 @@ export declare const CouponResponseSchema: z.ZodObject<{
|
|
|
3623
3847
|
}>>>;
|
|
3624
3848
|
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
3625
3849
|
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
3850
|
+
createdBy: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>>;
|
|
3851
|
+
isExpired: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
3626
3852
|
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
3627
3853
|
}, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
|
|
3628
3854
|
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.CUSTOM_COUPON>>;
|
|
@@ -3666,6 +3892,8 @@ export declare const CouponResponseSchema: z.ZodObject<{
|
|
|
3666
3892
|
}>>>;
|
|
3667
3893
|
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
3668
3894
|
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
3895
|
+
createdBy: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>>;
|
|
3896
|
+
isExpired: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
3669
3897
|
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
3670
3898
|
}, z.ZodTypeAny, "passthrough">)[];
|
|
3671
3899
|
metadata?: {
|
|
@@ -3717,12 +3945,16 @@ export declare const CouponResponseSchema: z.ZodObject<{
|
|
|
3717
3945
|
}>>>;
|
|
3718
3946
|
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
3719
3947
|
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
3948
|
+
createdBy: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>>;
|
|
3949
|
+
isExpired: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
3720
3950
|
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
3721
3951
|
}, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
|
|
3722
3952
|
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.REFERRAL_CODE>>;
|
|
3723
3953
|
orderLimitPerUser: z.ZodOptional<z.ZodLiteral<1>>;
|
|
3724
3954
|
referralUser: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
3725
3955
|
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
3956
|
+
createdBy: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>>;
|
|
3957
|
+
isExpired: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
3726
3958
|
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
3727
3959
|
}, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
|
|
3728
3960
|
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.REFERRAL_REWARD>>;
|
|
@@ -3766,11 +3998,13 @@ export declare const CouponResponseSchema: z.ZodObject<{
|
|
|
3766
3998
|
}>>>;
|
|
3767
3999
|
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
3768
4000
|
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
4001
|
+
createdBy: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>>;
|
|
4002
|
+
isExpired: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
3769
4003
|
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
3770
4004
|
}, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
|
|
3771
4005
|
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.INDIVIDUAL_STORE>>;
|
|
3772
4006
|
itemTypes: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ItemType>, "many">>>;
|
|
3773
|
-
shops: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>, "
|
|
4007
|
+
shops: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>, "many">>>;
|
|
3774
4008
|
isShopCoverExpenses: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
3775
4009
|
valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
3776
4010
|
value: z.ZodOptional<z.ZodNumber>;
|
|
@@ -3809,6 +4043,8 @@ export declare const CouponResponseSchema: z.ZodObject<{
|
|
|
3809
4043
|
}>>>;
|
|
3810
4044
|
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
3811
4045
|
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
4046
|
+
createdBy: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>>;
|
|
4047
|
+
isExpired: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
3812
4048
|
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
3813
4049
|
}, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
|
|
3814
4050
|
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.INDIVIDUAL_USER>>;
|
|
@@ -3852,6 +4088,8 @@ export declare const CouponResponseSchema: z.ZodObject<{
|
|
|
3852
4088
|
}>>>;
|
|
3853
4089
|
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
3854
4090
|
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
4091
|
+
createdBy: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>>;
|
|
4092
|
+
isExpired: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
3855
4093
|
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
3856
4094
|
}, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
|
|
3857
4095
|
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.CUSTOM_COUPON>>;
|
|
@@ -3895,6 +4133,8 @@ export declare const CouponResponseSchema: z.ZodObject<{
|
|
|
3895
4133
|
}>>>;
|
|
3896
4134
|
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
3897
4135
|
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
4136
|
+
createdBy: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>>;
|
|
4137
|
+
isExpired: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
3898
4138
|
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
3899
4139
|
}, z.ZodTypeAny, "passthrough"> | {
|
|
3900
4140
|
documents: (z.objectInputType<{
|
|
@@ -3936,12 +4176,16 @@ export declare const CouponResponseSchema: z.ZodObject<{
|
|
|
3936
4176
|
}>>>;
|
|
3937
4177
|
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
3938
4178
|
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
4179
|
+
createdBy: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>>;
|
|
4180
|
+
isExpired: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
3939
4181
|
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
3940
4182
|
}, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
|
|
3941
4183
|
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.REFERRAL_CODE>>;
|
|
3942
4184
|
orderLimitPerUser: z.ZodOptional<z.ZodLiteral<1>>;
|
|
3943
4185
|
referralUser: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
3944
4186
|
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
4187
|
+
createdBy: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>>;
|
|
4188
|
+
isExpired: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
3945
4189
|
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
3946
4190
|
}, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
|
|
3947
4191
|
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.REFERRAL_REWARD>>;
|
|
@@ -3985,11 +4229,13 @@ export declare const CouponResponseSchema: z.ZodObject<{
|
|
|
3985
4229
|
}>>>;
|
|
3986
4230
|
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
3987
4231
|
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
4232
|
+
createdBy: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>>;
|
|
4233
|
+
isExpired: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
3988
4234
|
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
3989
4235
|
}, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
|
|
3990
4236
|
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.INDIVIDUAL_STORE>>;
|
|
3991
4237
|
itemTypes: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ItemType>, "many">>>;
|
|
3992
|
-
shops: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>, "
|
|
4238
|
+
shops: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>, "many">>>;
|
|
3993
4239
|
isShopCoverExpenses: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
3994
4240
|
valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
3995
4241
|
value: z.ZodOptional<z.ZodNumber>;
|
|
@@ -4028,6 +4274,8 @@ export declare const CouponResponseSchema: z.ZodObject<{
|
|
|
4028
4274
|
}>>>;
|
|
4029
4275
|
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
4030
4276
|
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
4277
|
+
createdBy: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>>;
|
|
4278
|
+
isExpired: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
4031
4279
|
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
4032
4280
|
}, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
|
|
4033
4281
|
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.INDIVIDUAL_USER>>;
|
|
@@ -4071,6 +4319,8 @@ export declare const CouponResponseSchema: z.ZodObject<{
|
|
|
4071
4319
|
}>>>;
|
|
4072
4320
|
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
4073
4321
|
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
4322
|
+
createdBy: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>>;
|
|
4323
|
+
isExpired: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
4074
4324
|
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
4075
4325
|
}, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
|
|
4076
4326
|
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.CUSTOM_COUPON>>;
|
|
@@ -4114,6 +4364,8 @@ export declare const CouponResponseSchema: z.ZodObject<{
|
|
|
4114
4364
|
}>>>;
|
|
4115
4365
|
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
4116
4366
|
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
4367
|
+
createdBy: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>>;
|
|
4368
|
+
isExpired: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
4117
4369
|
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
4118
4370
|
}, z.ZodTypeAny, "passthrough">)[];
|
|
4119
4371
|
metadata?: {
|