@lyxa.ai/marketing 1.0.67 → 1.0.69

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