@lyxa.ai/marketing 1.0.41 → 1.0.43

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 (297) hide show
  1. package/dist/lib/event/event-initializations.d.ts.map +1 -1
  2. package/dist/lib/event/event-initializations.js +3 -0
  3. package/dist/lib/event/event-initializations.js.map +1 -1
  4. package/dist/lib/event/event-listeners/event-listeners.d.ts +1 -0
  5. package/dist/lib/event/event-listeners/event-listeners.d.ts.map +1 -1
  6. package/dist/lib/event/event-listeners/event-listeners.js +52 -0
  7. package/dist/lib/event/event-listeners/event-listeners.js.map +1 -1
  8. package/dist/lib/event/events/marketing-product-seed.event.d.ts +17 -0
  9. package/dist/lib/event/events/marketing-product-seed.event.d.ts.map +1 -0
  10. package/dist/lib/event/events/marketing-product-seed.event.js +12 -0
  11. package/dist/lib/event/events/marketing-product-seed.event.js.map +1 -0
  12. package/dist/lib/index.d.ts +730 -5
  13. package/dist/lib/index.d.ts.map +1 -1
  14. package/dist/lib/index.js +6 -6
  15. package/dist/lib/index.js.map +1 -1
  16. package/dist/lib/modules/coupon/routers/coupon.router.d.ts +116 -0
  17. package/dist/lib/modules/coupon/routers/coupon.router.d.ts.map +1 -1
  18. package/dist/lib/modules/coupon/routers/coupon.router.js +33 -1
  19. package/dist/lib/modules/coupon/routers/coupon.router.js.map +1 -1
  20. package/dist/lib/modules/coupon/services/coupon.service.d.ts +1 -0
  21. package/dist/lib/modules/coupon/services/coupon.service.d.ts.map +1 -1
  22. package/dist/lib/modules/coupon/services/coupon.service.js +61 -40
  23. package/dist/lib/modules/coupon/services/coupon.service.js.map +1 -1
  24. package/dist/lib/modules/coupon/services/helper.service.d.ts.map +1 -1
  25. package/dist/lib/modules/coupon/services/helper.service.js +11 -6
  26. package/dist/lib/modules/coupon/services/helper.service.js.map +1 -1
  27. package/dist/lib/modules/coupon/services/patterns/repository/CouponMetricsRepository.d.ts +32 -0
  28. package/dist/lib/modules/coupon/services/patterns/repository/CouponMetricsRepository.d.ts.map +1 -0
  29. package/dist/lib/modules/coupon/services/patterns/repository/CouponMetricsRepository.js +503 -0
  30. package/dist/lib/modules/coupon/services/patterns/repository/CouponMetricsRepository.js.map +1 -0
  31. package/dist/lib/modules/coupon/services/patterns/repository/CouponRepository.d.ts.map +1 -1
  32. package/dist/lib/modules/coupon/services/patterns/repository/CouponRepository.js +108 -149
  33. package/dist/lib/modules/coupon/services/patterns/repository/CouponRepository.js.map +1 -1
  34. package/dist/lib/modules/coupon/services/referral-code-coupon.service.d.ts.map +1 -1
  35. package/dist/lib/modules/coupon/services/referral-code-coupon.service.js +1 -1
  36. package/dist/lib/modules/coupon/services/referral-code-coupon.service.js.map +1 -1
  37. package/dist/lib/modules/coupon/services/referral-reward-coupon.service.d.ts.map +1 -1
  38. package/dist/lib/modules/coupon/services/referral-reward-coupon.service.js +5 -1
  39. package/dist/lib/modules/coupon/services/referral-reward-coupon.service.js.map +1 -1
  40. package/dist/lib/modules/coupon/validations/coupon.validation.d.ts +407 -1
  41. package/dist/lib/modules/coupon/validations/coupon.validation.d.ts.map +1 -1
  42. package/dist/lib/modules/coupon/validations/coupon.validation.js +39 -1
  43. package/dist/lib/modules/coupon/validations/coupon.validation.js.map +1 -1
  44. package/dist/lib/modules/coupon/validations/create-coupon.validation.d.ts +1118 -0
  45. package/dist/lib/modules/coupon/validations/create-coupon.validation.d.ts.map +1 -0
  46. package/dist/lib/modules/coupon/validations/create-coupon.validation.js +13 -0
  47. package/dist/lib/modules/coupon/validations/create-coupon.validation.js.map +1 -0
  48. package/dist/lib/modules/coupon/validations/index.d.ts +1 -0
  49. package/dist/lib/modules/coupon/validations/index.d.ts.map +1 -1
  50. package/dist/lib/modules/coupon/validations/index.js +1 -0
  51. package/dist/lib/modules/coupon/validations/index.js.map +1 -1
  52. package/dist/lib/modules/deal-setting/routers/deal-setting.router.d.ts.map +1 -1
  53. package/dist/lib/modules/featured-setting/routers/featured-setting.router.d.ts.map +1 -1
  54. package/dist/lib/modules/limited-time-offer/campaign/campaign.router.d.ts +296 -0
  55. package/dist/lib/modules/limited-time-offer/campaign/campaign.router.d.ts.map +1 -0
  56. package/dist/lib/modules/limited-time-offer/campaign/campaign.router.js +64 -0
  57. package/dist/lib/modules/limited-time-offer/campaign/campaign.router.js.map +1 -0
  58. package/dist/lib/modules/limited-time-offer/campaign/jobs/index.d.ts +4 -0
  59. package/dist/lib/modules/limited-time-offer/campaign/jobs/index.d.ts.map +1 -0
  60. package/dist/lib/modules/limited-time-offer/campaign/jobs/index.js +24 -0
  61. package/dist/lib/modules/limited-time-offer/campaign/jobs/index.js.map +1 -0
  62. package/dist/lib/modules/limited-time-offer/campaign/jobs/limited-time-offer-campaign.producer.d.ts +12 -0
  63. package/dist/lib/modules/limited-time-offer/campaign/jobs/limited-time-offer-campaign.producer.d.ts.map +1 -0
  64. package/dist/lib/modules/limited-time-offer/campaign/jobs/limited-time-offer-campaign.producer.js +29 -0
  65. package/dist/lib/modules/limited-time-offer/campaign/jobs/limited-time-offer-campaign.producer.js.map +1 -0
  66. package/dist/lib/modules/limited-time-offer/campaign/jobs/limited-time-offer-campaign.worker.d.ts +8 -0
  67. package/dist/lib/modules/limited-time-offer/campaign/jobs/limited-time-offer-campaign.worker.d.ts.map +1 -0
  68. package/dist/lib/modules/limited-time-offer/campaign/jobs/limited-time-offer-campaign.worker.js +79 -0
  69. package/dist/lib/modules/limited-time-offer/campaign/jobs/limited-time-offer-campaign.worker.js.map +1 -0
  70. package/dist/lib/modules/limited-time-offer/campaign/limited-time-offer-campaign.builder.d.ts +36 -0
  71. package/dist/lib/modules/limited-time-offer/campaign/limited-time-offer-campaign.builder.d.ts.map +1 -0
  72. package/dist/lib/modules/limited-time-offer/campaign/limited-time-offer-campaign.builder.js +48 -0
  73. package/dist/lib/modules/limited-time-offer/campaign/limited-time-offer-campaign.builder.js.map +1 -0
  74. package/dist/lib/modules/limited-time-offer/campaign/limited-time-offer-campaign.repository.d.ts +22 -0
  75. package/dist/lib/modules/limited-time-offer/campaign/limited-time-offer-campaign.repository.d.ts.map +1 -0
  76. package/dist/lib/modules/limited-time-offer/campaign/limited-time-offer-campaign.repository.js +131 -0
  77. package/dist/lib/modules/limited-time-offer/campaign/limited-time-offer-campaign.repository.js.map +1 -0
  78. package/dist/lib/modules/limited-time-offer/campaign/limited-time-offer-campaign.validation.d.ts +851 -0
  79. package/dist/lib/modules/limited-time-offer/campaign/limited-time-offer-campaign.validation.d.ts.map +1 -0
  80. package/dist/lib/modules/limited-time-offer/campaign/limited-time-offer-campaign.validation.js +100 -0
  81. package/dist/lib/modules/limited-time-offer/campaign/limited-time-offer-campaign.validation.js.map +1 -0
  82. package/dist/lib/modules/limited-time-offer/campaign/services/limited-time-offer-campaign-lifecycle.service.d.ts +10 -0
  83. package/dist/lib/modules/limited-time-offer/campaign/services/limited-time-offer-campaign-lifecycle.service.d.ts.map +1 -0
  84. package/dist/lib/modules/limited-time-offer/campaign/services/limited-time-offer-campaign-lifecycle.service.js +70 -0
  85. package/dist/lib/modules/limited-time-offer/campaign/services/limited-time-offer-campaign-lifecycle.service.js.map +1 -0
  86. package/dist/lib/modules/limited-time-offer/campaign/services/limited-time-offer-campaign-scheduler.service.d.ts +9 -0
  87. package/dist/lib/modules/limited-time-offer/campaign/services/limited-time-offer-campaign-scheduler.service.d.ts.map +1 -0
  88. package/dist/lib/modules/limited-time-offer/campaign/services/limited-time-offer-campaign-scheduler.service.js +42 -0
  89. package/dist/lib/modules/limited-time-offer/campaign/services/limited-time-offer-campaign-scheduler.service.js.map +1 -0
  90. package/dist/lib/modules/limited-time-offer/campaign/services/limited-time-offer-campaign.service.d.ts +43 -0
  91. package/dist/lib/modules/limited-time-offer/campaign/services/limited-time-offer-campaign.service.d.ts.map +1 -0
  92. package/dist/lib/modules/limited-time-offer/campaign/services/limited-time-offer-campaign.service.js +185 -0
  93. package/dist/lib/modules/limited-time-offer/campaign/services/limited-time-offer-campaign.service.js.map +1 -0
  94. package/dist/lib/modules/limited-time-offer/config/limited-time-offer-config.builder.d.ts +8 -0
  95. package/dist/lib/modules/limited-time-offer/config/limited-time-offer-config.builder.d.ts.map +1 -0
  96. package/dist/lib/modules/limited-time-offer/config/limited-time-offer-config.builder.js +13 -0
  97. package/dist/lib/modules/limited-time-offer/config/limited-time-offer-config.builder.js.map +1 -0
  98. package/dist/lib/modules/limited-time-offer/config/limited-time-offer-config.repository.d.ts +14 -0
  99. package/dist/lib/modules/limited-time-offer/config/limited-time-offer-config.repository.d.ts.map +1 -0
  100. package/dist/lib/modules/limited-time-offer/config/limited-time-offer-config.repository.js +77 -0
  101. package/dist/lib/modules/limited-time-offer/config/limited-time-offer-config.repository.js.map +1 -0
  102. package/dist/lib/modules/limited-time-offer/config/limited-time-offer-config.service.d.ts +11 -0
  103. package/dist/lib/modules/limited-time-offer/config/limited-time-offer-config.service.d.ts.map +1 -0
  104. package/dist/lib/modules/limited-time-offer/config/limited-time-offer-config.service.js +87 -0
  105. package/dist/lib/modules/limited-time-offer/config/limited-time-offer-config.service.js.map +1 -0
  106. package/dist/lib/modules/limited-time-offer/config/limited-time-offer-config.validation.d.ts +189 -0
  107. package/dist/lib/modules/limited-time-offer/config/limited-time-offer-config.validation.d.ts.map +1 -0
  108. package/dist/lib/modules/limited-time-offer/config/limited-time-offer-config.validation.js +24 -0
  109. package/dist/lib/modules/limited-time-offer/config/limited-time-offer-config.validation.js.map +1 -0
  110. package/dist/lib/modules/limited-time-offer/config/limited-time-offer.router.d.ts +122 -0
  111. package/dist/lib/modules/limited-time-offer/config/limited-time-offer.router.d.ts.map +1 -0
  112. package/dist/lib/modules/limited-time-offer/config/limited-time-offer.router.js +37 -0
  113. package/dist/lib/modules/limited-time-offer/config/limited-time-offer.router.js.map +1 -0
  114. package/dist/lib/modules/limited-time-offer/limited-time-offer.router.d.ts +601 -0
  115. package/dist/lib/modules/limited-time-offer/limited-time-offer.router.d.ts.map +1 -0
  116. package/dist/lib/modules/limited-time-offer/limited-time-offer.router.js +13 -0
  117. package/dist/lib/modules/limited-time-offer/limited-time-offer.router.js.map +1 -0
  118. package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.builder.d.ts +53 -0
  119. package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.builder.d.ts.map +1 -0
  120. package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.builder.js +55 -0
  121. package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.builder.js.map +1 -0
  122. package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.repository.d.ts +18 -0
  123. package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.repository.d.ts.map +1 -0
  124. package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.repository.js +126 -0
  125. package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.repository.js.map +1 -0
  126. package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.router.d.ts +170 -0
  127. package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.router.d.ts.map +1 -0
  128. package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.router.js +50 -0
  129. package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.router.js.map +1 -0
  130. package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.service.d.ts +1 -0
  131. package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.service.d.ts.map +1 -0
  132. package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.service.js +2 -0
  133. package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.service.js.map +1 -0
  134. package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.validation.d.ts +603 -0
  135. package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.validation.d.ts.map +1 -0
  136. package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.validation.js +85 -0
  137. package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.validation.js.map +1 -0
  138. package/dist/lib/modules/limited-time-offer/participant/services/limited-time-offer-participant-marketing.service.d.ts +14 -0
  139. package/dist/lib/modules/limited-time-offer/participant/services/limited-time-offer-participant-marketing.service.d.ts.map +1 -0
  140. package/dist/lib/modules/limited-time-offer/participant/services/limited-time-offer-participant-marketing.service.js +73 -0
  141. package/dist/lib/modules/limited-time-offer/participant/services/limited-time-offer-participant-marketing.service.js.map +1 -0
  142. package/dist/lib/modules/limited-time-offer/participant/services/limited-time-offer-participant.service.d.ts +32 -0
  143. package/dist/lib/modules/limited-time-offer/participant/services/limited-time-offer-participant.service.d.ts.map +1 -0
  144. package/dist/lib/modules/limited-time-offer/participant/services/limited-time-offer-participant.service.js +125 -0
  145. package/dist/lib/modules/limited-time-offer/participant/services/limited-time-offer-participant.service.js.map +1 -0
  146. package/dist/lib/modules/marketing/patterns/repository/MarketingMetricsRepository.d.ts +2 -1
  147. package/dist/lib/modules/marketing/patterns/repository/MarketingMetricsRepository.d.ts.map +1 -1
  148. package/dist/lib/modules/marketing/patterns/repository/MarketingMetricsRepository.js +23 -15
  149. package/dist/lib/modules/marketing/patterns/repository/MarketingMetricsRepository.js.map +1 -1
  150. package/dist/lib/modules/marketing/routers/marketing.router.d.ts +12 -3
  151. package/dist/lib/modules/marketing/routers/marketing.router.d.ts.map +1 -1
  152. package/dist/lib/modules/marketing/routers/marketing.router.js +7 -0
  153. package/dist/lib/modules/marketing/routers/marketing.router.js.map +1 -1
  154. package/dist/lib/modules/marketing/services/buy1-get1-marketing.service.d.ts +0 -2
  155. package/dist/lib/modules/marketing/services/buy1-get1-marketing.service.d.ts.map +1 -1
  156. package/dist/lib/modules/marketing/services/buy1-get1-marketing.service.js +20 -39
  157. package/dist/lib/modules/marketing/services/buy1-get1-marketing.service.js.map +1 -1
  158. package/dist/lib/modules/marketing/services/discount-marketing.service.d.ts +0 -3
  159. package/dist/lib/modules/marketing/services/discount-marketing.service.d.ts.map +1 -1
  160. package/dist/lib/modules/marketing/services/discount-marketing.service.js +28 -52
  161. package/dist/lib/modules/marketing/services/discount-marketing.service.js.map +1 -1
  162. package/dist/lib/modules/marketing/services/marketing.service.d.ts +2 -0
  163. package/dist/lib/modules/marketing/services/marketing.service.d.ts.map +1 -1
  164. package/dist/lib/modules/marketing/services/marketing.service.js +111 -31
  165. package/dist/lib/modules/marketing/services/marketing.service.js.map +1 -1
  166. package/dist/lib/modules/marketing/services/product-marketing.service.d.ts +20 -2
  167. package/dist/lib/modules/marketing/services/product-marketing.service.d.ts.map +1 -1
  168. package/dist/lib/modules/marketing/services/product-marketing.service.js +155 -7
  169. package/dist/lib/modules/marketing/services/product-marketing.service.js.map +1 -1
  170. package/dist/lib/modules/marketing/services/synchronize-product-marketing.service.d.ts.map +1 -1
  171. package/dist/lib/modules/marketing/services/synchronize-product-marketing.service.js +36 -55
  172. package/dist/lib/modules/marketing/services/synchronize-product-marketing.service.js.map +1 -1
  173. package/dist/lib/modules/marketing/transformers/buy1-get1-marketing.transformer.d.ts +3 -0
  174. package/dist/lib/modules/marketing/transformers/buy1-get1-marketing.transformer.d.ts.map +1 -1
  175. package/dist/lib/modules/marketing/transformers/discount-marketing.transformer.d.ts +3 -0
  176. package/dist/lib/modules/marketing/transformers/discount-marketing.transformer.d.ts.map +1 -1
  177. package/dist/lib/modules/marketing/transformers/product-marketing.transformer.d.ts +1 -0
  178. package/dist/lib/modules/marketing/transformers/product-marketing.transformer.d.ts.map +1 -1
  179. package/dist/lib/modules/marketing/validations/buy1-get1-marketing.validation.d.ts +30 -0
  180. package/dist/lib/modules/marketing/validations/buy1-get1-marketing.validation.d.ts.map +1 -1
  181. package/dist/lib/modules/marketing/validations/discount-marketing.validation.d.ts +45 -9
  182. package/dist/lib/modules/marketing/validations/discount-marketing.validation.d.ts.map +1 -1
  183. package/dist/lib/modules/marketing/validations/marketing.validation.d.ts +2 -2
  184. package/dist/lib/modules/marketing/validations/product-marketing.validation.d.ts +77 -0
  185. package/dist/lib/modules/marketing/validations/product-marketing.validation.d.ts.map +1 -1
  186. package/dist/lib/modules/marketing/validations/product-marketing.validation.js +20 -1
  187. package/dist/lib/modules/marketing/validations/product-marketing.validation.js.map +1 -1
  188. package/dist/lib/modules/punch-marketing-history/routers/punch-marketing-history.router.d.ts +2 -2
  189. package/dist/lib/modules/punch-marketing-history/routers/punch-marketing-history.router.d.ts.map +1 -1
  190. package/dist/lib/modules/punch-marketing-history/validations/punch-marketing-history.validation.d.ts +4 -4
  191. package/dist/types/event/event-initializations.d.ts.map +1 -1
  192. package/dist/types/event/event-listeners/event-listeners.d.ts +1 -0
  193. package/dist/types/event/event-listeners/event-listeners.d.ts.map +1 -1
  194. package/dist/types/event/events/marketing-product-seed.event.d.ts +17 -0
  195. package/dist/types/event/events/marketing-product-seed.event.d.ts.map +1 -0
  196. package/dist/types/index.d.ts +730 -5
  197. package/dist/types/index.d.ts.map +1 -1
  198. package/dist/types/modules/coupon/routers/coupon.router.d.ts +116 -0
  199. package/dist/types/modules/coupon/routers/coupon.router.d.ts.map +1 -1
  200. package/dist/types/modules/coupon/services/coupon.service.d.ts +1 -0
  201. package/dist/types/modules/coupon/services/coupon.service.d.ts.map +1 -1
  202. package/dist/types/modules/coupon/services/helper.service.d.ts.map +1 -1
  203. package/dist/types/modules/coupon/services/patterns/repository/CouponMetricsRepository.d.ts +32 -0
  204. package/dist/types/modules/coupon/services/patterns/repository/CouponMetricsRepository.d.ts.map +1 -0
  205. package/dist/types/modules/coupon/services/patterns/repository/CouponRepository.d.ts.map +1 -1
  206. package/dist/types/modules/coupon/services/referral-code-coupon.service.d.ts.map +1 -1
  207. package/dist/types/modules/coupon/services/referral-reward-coupon.service.d.ts.map +1 -1
  208. package/dist/types/modules/coupon/validations/coupon.validation.d.ts +407 -1
  209. package/dist/types/modules/coupon/validations/coupon.validation.d.ts.map +1 -1
  210. package/dist/types/modules/coupon/validations/create-coupon.validation.d.ts +1118 -0
  211. package/dist/types/modules/coupon/validations/create-coupon.validation.d.ts.map +1 -0
  212. package/dist/types/modules/coupon/validations/index.d.ts +1 -0
  213. package/dist/types/modules/coupon/validations/index.d.ts.map +1 -1
  214. package/dist/types/modules/deal-setting/routers/deal-setting.router.d.ts.map +1 -1
  215. package/dist/types/modules/featured-setting/routers/featured-setting.router.d.ts.map +1 -1
  216. package/dist/types/modules/limited-time-offer/campaign/campaign.router.d.ts +296 -0
  217. package/dist/types/modules/limited-time-offer/campaign/campaign.router.d.ts.map +1 -0
  218. package/dist/types/modules/limited-time-offer/campaign/jobs/index.d.ts +4 -0
  219. package/dist/types/modules/limited-time-offer/campaign/jobs/index.d.ts.map +1 -0
  220. package/dist/types/modules/limited-time-offer/campaign/jobs/limited-time-offer-campaign.producer.d.ts +12 -0
  221. package/dist/types/modules/limited-time-offer/campaign/jobs/limited-time-offer-campaign.producer.d.ts.map +1 -0
  222. package/dist/types/modules/limited-time-offer/campaign/jobs/limited-time-offer-campaign.worker.d.ts +8 -0
  223. package/dist/types/modules/limited-time-offer/campaign/jobs/limited-time-offer-campaign.worker.d.ts.map +1 -0
  224. package/dist/types/modules/limited-time-offer/campaign/limited-time-offer-campaign.builder.d.ts +36 -0
  225. package/dist/types/modules/limited-time-offer/campaign/limited-time-offer-campaign.builder.d.ts.map +1 -0
  226. package/dist/types/modules/limited-time-offer/campaign/limited-time-offer-campaign.repository.d.ts +22 -0
  227. package/dist/types/modules/limited-time-offer/campaign/limited-time-offer-campaign.repository.d.ts.map +1 -0
  228. package/dist/types/modules/limited-time-offer/campaign/limited-time-offer-campaign.validation.d.ts +851 -0
  229. package/dist/types/modules/limited-time-offer/campaign/limited-time-offer-campaign.validation.d.ts.map +1 -0
  230. package/dist/types/modules/limited-time-offer/campaign/services/limited-time-offer-campaign-lifecycle.service.d.ts +10 -0
  231. package/dist/types/modules/limited-time-offer/campaign/services/limited-time-offer-campaign-lifecycle.service.d.ts.map +1 -0
  232. package/dist/types/modules/limited-time-offer/campaign/services/limited-time-offer-campaign-scheduler.service.d.ts +9 -0
  233. package/dist/types/modules/limited-time-offer/campaign/services/limited-time-offer-campaign-scheduler.service.d.ts.map +1 -0
  234. package/dist/types/modules/limited-time-offer/campaign/services/limited-time-offer-campaign.service.d.ts +43 -0
  235. package/dist/types/modules/limited-time-offer/campaign/services/limited-time-offer-campaign.service.d.ts.map +1 -0
  236. package/dist/types/modules/limited-time-offer/config/limited-time-offer-config.builder.d.ts +8 -0
  237. package/dist/types/modules/limited-time-offer/config/limited-time-offer-config.builder.d.ts.map +1 -0
  238. package/dist/types/modules/limited-time-offer/config/limited-time-offer-config.repository.d.ts +14 -0
  239. package/dist/types/modules/limited-time-offer/config/limited-time-offer-config.repository.d.ts.map +1 -0
  240. package/dist/types/modules/limited-time-offer/config/limited-time-offer-config.service.d.ts +11 -0
  241. package/dist/types/modules/limited-time-offer/config/limited-time-offer-config.service.d.ts.map +1 -0
  242. package/dist/types/modules/limited-time-offer/config/limited-time-offer-config.validation.d.ts +189 -0
  243. package/dist/types/modules/limited-time-offer/config/limited-time-offer-config.validation.d.ts.map +1 -0
  244. package/dist/types/modules/limited-time-offer/config/limited-time-offer.router.d.ts +122 -0
  245. package/dist/types/modules/limited-time-offer/config/limited-time-offer.router.d.ts.map +1 -0
  246. package/dist/types/modules/limited-time-offer/limited-time-offer.router.d.ts +601 -0
  247. package/dist/types/modules/limited-time-offer/limited-time-offer.router.d.ts.map +1 -0
  248. package/dist/types/modules/limited-time-offer/participant/limited-time-offer-participant.builder.d.ts +53 -0
  249. package/dist/types/modules/limited-time-offer/participant/limited-time-offer-participant.builder.d.ts.map +1 -0
  250. package/dist/types/modules/limited-time-offer/participant/limited-time-offer-participant.repository.d.ts +18 -0
  251. package/dist/types/modules/limited-time-offer/participant/limited-time-offer-participant.repository.d.ts.map +1 -0
  252. package/dist/types/modules/limited-time-offer/participant/limited-time-offer-participant.router.d.ts +170 -0
  253. package/dist/types/modules/limited-time-offer/participant/limited-time-offer-participant.router.d.ts.map +1 -0
  254. package/dist/types/modules/limited-time-offer/participant/limited-time-offer-participant.service.d.ts +1 -0
  255. package/dist/types/modules/limited-time-offer/participant/limited-time-offer-participant.service.d.ts.map +1 -0
  256. package/dist/types/modules/limited-time-offer/participant/limited-time-offer-participant.validation.d.ts +603 -0
  257. package/dist/types/modules/limited-time-offer/participant/limited-time-offer-participant.validation.d.ts.map +1 -0
  258. package/dist/types/modules/limited-time-offer/participant/services/limited-time-offer-participant-marketing.service.d.ts +14 -0
  259. package/dist/types/modules/limited-time-offer/participant/services/limited-time-offer-participant-marketing.service.d.ts.map +1 -0
  260. package/dist/types/modules/limited-time-offer/participant/services/limited-time-offer-participant.service.d.ts +32 -0
  261. package/dist/types/modules/limited-time-offer/participant/services/limited-time-offer-participant.service.d.ts.map +1 -0
  262. package/dist/types/modules/marketing/patterns/repository/MarketingMetricsRepository.d.ts +2 -1
  263. package/dist/types/modules/marketing/patterns/repository/MarketingMetricsRepository.d.ts.map +1 -1
  264. package/dist/types/modules/marketing/routers/marketing.router.d.ts +12 -3
  265. package/dist/types/modules/marketing/routers/marketing.router.d.ts.map +1 -1
  266. package/dist/types/modules/marketing/services/buy1-get1-marketing.service.d.ts +0 -2
  267. package/dist/types/modules/marketing/services/buy1-get1-marketing.service.d.ts.map +1 -1
  268. package/dist/types/modules/marketing/services/discount-marketing.service.d.ts +0 -3
  269. package/dist/types/modules/marketing/services/discount-marketing.service.d.ts.map +1 -1
  270. package/dist/types/modules/marketing/services/marketing.service.d.ts +2 -0
  271. package/dist/types/modules/marketing/services/marketing.service.d.ts.map +1 -1
  272. package/dist/types/modules/marketing/services/product-marketing.service.d.ts +24 -2
  273. package/dist/types/modules/marketing/services/product-marketing.service.d.ts.map +1 -1
  274. package/dist/types/modules/marketing/services/synchronize-product-marketing.service.d.ts.map +1 -1
  275. package/dist/types/modules/marketing/transformers/buy1-get1-marketing.transformer.d.ts +3 -0
  276. package/dist/types/modules/marketing/transformers/buy1-get1-marketing.transformer.d.ts.map +1 -1
  277. package/dist/types/modules/marketing/transformers/discount-marketing.transformer.d.ts +3 -0
  278. package/dist/types/modules/marketing/transformers/discount-marketing.transformer.d.ts.map +1 -1
  279. package/dist/types/modules/marketing/transformers/product-marketing.transformer.d.ts +1 -0
  280. package/dist/types/modules/marketing/transformers/product-marketing.transformer.d.ts.map +1 -1
  281. package/dist/types/modules/marketing/validations/buy1-get1-marketing.validation.d.ts +30 -0
  282. package/dist/types/modules/marketing/validations/buy1-get1-marketing.validation.d.ts.map +1 -1
  283. package/dist/types/modules/marketing/validations/discount-marketing.validation.d.ts +45 -9
  284. package/dist/types/modules/marketing/validations/discount-marketing.validation.d.ts.map +1 -1
  285. package/dist/types/modules/marketing/validations/marketing.validation.d.ts +2 -2
  286. package/dist/types/modules/marketing/validations/product-marketing.validation.d.ts +77 -0
  287. package/dist/types/modules/marketing/validations/product-marketing.validation.d.ts.map +1 -1
  288. package/dist/types/modules/punch-marketing-history/routers/punch-marketing-history.router.d.ts +2 -2
  289. package/dist/types/modules/punch-marketing-history/routers/punch-marketing-history.router.d.ts.map +1 -1
  290. package/dist/types/modules/punch-marketing-history/validations/punch-marketing-history.validation.d.ts +4 -4
  291. package/package.json +3 -3
  292. package/dist/lib/events/event-initializations.d.ts +0 -2
  293. package/dist/lib/events/event-initializations.d.ts.map +0 -1
  294. package/dist/lib/events/event-initializations.js +0 -5
  295. package/dist/lib/events/event-initializations.js.map +0 -1
  296. package/dist/types/events/event-initializations.d.ts +0 -2
  297. package/dist/types/events/event-initializations.d.ts.map +0 -1
@@ -7,6 +7,7 @@ export declare const baseFields: {
7
7
  isBuy1Get1: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
8
8
  valueType: z.ZodNullable<z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof ValueType>>>>;
9
9
  value: z.ZodOptional<z.ZodNumber>;
10
+ isAppliedByCompany: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
10
11
  };
11
12
  declare const ProductMarketingValidationSchema: z.ZodObject<{
12
13
  product: 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>]>;
@@ -14,16 +15,19 @@ declare const ProductMarketingValidationSchema: z.ZodObject<{
14
15
  isBuy1Get1: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
15
16
  valueType: z.ZodNullable<z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof ValueType>>>>;
16
17
  value: z.ZodOptional<z.ZodNumber>;
18
+ isAppliedByCompany: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
17
19
  }, "strict", z.ZodTypeAny, {
18
20
  product: import("mongoose").Types.ObjectId;
19
21
  value?: number | undefined;
20
22
  valueType?: ValueType | null | undefined;
23
+ isAppliedByCompany?: boolean | undefined;
21
24
  marketing?: import("mongoose").Types.ObjectId | undefined;
22
25
  isBuy1Get1?: boolean | undefined;
23
26
  }, {
24
27
  product: string | import("mongoose").Types.ObjectId;
25
28
  value?: number | undefined;
26
29
  valueType?: ValueType | null | undefined;
30
+ isAppliedByCompany?: boolean | undefined;
27
31
  marketing?: string | import("mongoose").Types.ObjectId | undefined;
28
32
  isBuy1Get1?: boolean | undefined;
29
33
  }>, ProductMarketingSchema: z.ZodObject<{
@@ -32,6 +36,7 @@ declare const ProductMarketingValidationSchema: z.ZodObject<{
32
36
  isBuy1Get1: z.ZodOptional<z.ZodOptional<z.ZodDefault<z.ZodBoolean>>>;
33
37
  valueType: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof ValueType>>>>>;
34
38
  value: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
39
+ isAppliedByCompany: z.ZodOptional<z.ZodOptional<z.ZodDefault<z.ZodBoolean>>>;
35
40
  _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>]>>;
36
41
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
37
42
  product: 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>]>>;
@@ -39,6 +44,7 @@ declare const ProductMarketingValidationSchema: z.ZodObject<{
39
44
  isBuy1Get1: z.ZodOptional<z.ZodOptional<z.ZodDefault<z.ZodBoolean>>>;
40
45
  valueType: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof ValueType>>>>>;
41
46
  value: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
47
+ isAppliedByCompany: z.ZodOptional<z.ZodOptional<z.ZodDefault<z.ZodBoolean>>>;
42
48
  _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>]>>;
43
49
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
44
50
  product: 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>]>>;
@@ -46,6 +52,7 @@ declare const ProductMarketingValidationSchema: z.ZodObject<{
46
52
  isBuy1Get1: z.ZodOptional<z.ZodOptional<z.ZodDefault<z.ZodBoolean>>>;
47
53
  valueType: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof ValueType>>>>>;
48
54
  value: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
55
+ isAppliedByCompany: z.ZodOptional<z.ZodOptional<z.ZodDefault<z.ZodBoolean>>>;
49
56
  _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>]>>;
50
57
  }, z.ZodTypeAny, "passthrough">>, ProductMarketingIdSchema: 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>]>, UpdateProductMarketingSchema: z.ZodObject<{
51
58
  [x: string]: z.ZodOptional<z.ZodTypeAny>;
@@ -59,6 +66,7 @@ declare const ProductMarketingValidationSchema: z.ZodObject<{
59
66
  isBuy1Get1: z.ZodOptional<z.ZodOptional<z.ZodDefault<z.ZodBoolean>>>;
60
67
  valueType: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof ValueType>>>>>;
61
68
  value: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
69
+ isAppliedByCompany: z.ZodOptional<z.ZodOptional<z.ZodDefault<z.ZodBoolean>>>;
62
70
  _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>]>>;
63
71
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
64
72
  product: 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>]>>;
@@ -66,6 +74,7 @@ declare const ProductMarketingValidationSchema: z.ZodObject<{
66
74
  isBuy1Get1: z.ZodOptional<z.ZodOptional<z.ZodDefault<z.ZodBoolean>>>;
67
75
  valueType: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof ValueType>>>>>;
68
76
  value: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
77
+ isAppliedByCompany: z.ZodOptional<z.ZodOptional<z.ZodDefault<z.ZodBoolean>>>;
69
78
  _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>]>>;
70
79
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
71
80
  product: 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>]>>;
@@ -73,6 +82,7 @@ declare const ProductMarketingValidationSchema: z.ZodObject<{
73
82
  isBuy1Get1: z.ZodOptional<z.ZodOptional<z.ZodDefault<z.ZodBoolean>>>;
74
83
  valueType: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof ValueType>>>>>;
75
84
  value: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
85
+ isAppliedByCompany: z.ZodOptional<z.ZodOptional<z.ZodDefault<z.ZodBoolean>>>;
76
86
  _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>]>>;
77
87
  }, z.ZodTypeAny, "passthrough">>;
78
88
  declare const QueryProductMarketingSchema: z.ZodObject<Pick<{
@@ -81,6 +91,7 @@ declare const QueryProductMarketingSchema: z.ZodObject<Pick<{
81
91
  isBuy1Get1: z.ZodOptional<z.ZodOptional<z.ZodDefault<z.ZodBoolean>>>;
82
92
  valueType: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof ValueType>>>>>;
83
93
  value: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
94
+ isAppliedByCompany: z.ZodOptional<z.ZodOptional<z.ZodDefault<z.ZodBoolean>>>;
84
95
  _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>]>>;
85
96
  }, "product" | "marketing">, "passthrough", z.ZodTypeAny, z.objectOutputType<Pick<{
86
97
  product: 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>]>>;
@@ -88,6 +99,7 @@ declare const QueryProductMarketingSchema: z.ZodObject<Pick<{
88
99
  isBuy1Get1: z.ZodOptional<z.ZodOptional<z.ZodDefault<z.ZodBoolean>>>;
89
100
  valueType: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof ValueType>>>>>;
90
101
  value: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
102
+ isAppliedByCompany: z.ZodOptional<z.ZodOptional<z.ZodDefault<z.ZodBoolean>>>;
91
103
  _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>]>>;
92
104
  }, "product" | "marketing">, z.ZodTypeAny, "passthrough">, z.objectInputType<Pick<{
93
105
  product: 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>]>>;
@@ -95,6 +107,7 @@ declare const QueryProductMarketingSchema: z.ZodObject<Pick<{
95
107
  isBuy1Get1: z.ZodOptional<z.ZodOptional<z.ZodDefault<z.ZodBoolean>>>;
96
108
  valueType: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof ValueType>>>>>;
97
109
  value: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
110
+ isAppliedByCompany: z.ZodOptional<z.ZodOptional<z.ZodDefault<z.ZodBoolean>>>;
98
111
  _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>]>>;
99
112
  }, "product" | "marketing">, z.ZodTypeAny, "passthrough">>;
100
113
  declare const QueryMultipleProductMarketingSchema: z.ZodObject<Pick<{
@@ -103,6 +116,7 @@ declare const QueryMultipleProductMarketingSchema: z.ZodObject<Pick<{
103
116
  isBuy1Get1: z.ZodOptional<z.ZodOptional<z.ZodDefault<z.ZodBoolean>>>;
104
117
  valueType: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof ValueType>>>>>;
105
118
  value: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
119
+ isAppliedByCompany: z.ZodOptional<z.ZodOptional<z.ZodDefault<z.ZodBoolean>>>;
106
120
  _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>]>>;
107
121
  }, "marketing"> & {
108
122
  products: 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>]>, "many">>;
@@ -112,6 +126,7 @@ declare const QueryMultipleProductMarketingSchema: z.ZodObject<Pick<{
112
126
  isBuy1Get1: z.ZodOptional<z.ZodOptional<z.ZodDefault<z.ZodBoolean>>>;
113
127
  valueType: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof ValueType>>>>>;
114
128
  value: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
129
+ isAppliedByCompany: z.ZodOptional<z.ZodOptional<z.ZodDefault<z.ZodBoolean>>>;
115
130
  _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>]>>;
116
131
  }, "marketing"> & {
117
132
  products: 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>]>, "many">>;
@@ -121,6 +136,7 @@ declare const QueryMultipleProductMarketingSchema: z.ZodObject<Pick<{
121
136
  isBuy1Get1: z.ZodOptional<z.ZodOptional<z.ZodDefault<z.ZodBoolean>>>;
122
137
  valueType: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof ValueType>>>>>;
123
138
  value: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
139
+ isAppliedByCompany: z.ZodOptional<z.ZodOptional<z.ZodDefault<z.ZodBoolean>>>;
124
140
  _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>]>>;
125
141
  }, "marketing"> & {
126
142
  products: 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>]>, "many">>;
@@ -131,15 +147,75 @@ declare const UpdateMultipleProductMarketingSchema: z.ZodObject<Omit<{
131
147
  isBuy1Get1: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
132
148
  valueType: z.ZodNullable<z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof ValueType>>>>;
133
149
  value: z.ZodOptional<z.ZodNumber>;
150
+ isAppliedByCompany: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
134
151
  }, "product" | "marketing">, "strict", z.ZodTypeAny, {
135
152
  value?: number | undefined;
136
153
  valueType?: ValueType | null | undefined;
154
+ isAppliedByCompany?: boolean | undefined;
137
155
  isBuy1Get1?: boolean | undefined;
138
156
  }, {
139
157
  value?: number | undefined;
140
158
  valueType?: ValueType | null | undefined;
159
+ isAppliedByCompany?: boolean | undefined;
141
160
  isBuy1Get1?: boolean | undefined;
142
161
  }>;
162
+ export declare const BatchCreateProductMarketingsInputSchema: z.ZodObject<{
163
+ shop: 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>]>;
164
+ marketingId: 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>]>;
165
+ products: z.ZodDefault<z.ZodArray<z.ZodObject<{
166
+ product: 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>]>;
167
+ value: z.ZodOptional<z.ZodNumber>;
168
+ valueType: z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof ValueType>>>;
169
+ }, "strip", z.ZodTypeAny, {
170
+ product: import("mongoose").Types.ObjectId;
171
+ value?: number | undefined;
172
+ valueType?: ValueType | null | undefined;
173
+ }, {
174
+ product: string | import("mongoose").Types.ObjectId;
175
+ value?: number | undefined;
176
+ valueType?: ValueType | null | undefined;
177
+ }>, "many">>;
178
+ categories: z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>, "many">>;
179
+ isEntireMenu: z.ZodBoolean;
180
+ isAppliedByCompany: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
181
+ categoryValue: z.ZodOptional<z.ZodNumber>;
182
+ categoryValueType: z.ZodOptional<z.ZodNativeEnum<typeof ValueType>>;
183
+ value: z.ZodOptional<z.ZodNumber>;
184
+ valueType: z.ZodOptional<z.ZodNativeEnum<typeof ValueType>>;
185
+ isBuy1Get1: z.ZodBoolean;
186
+ }, "strip", z.ZodTypeAny, {
187
+ shop: import("mongoose").Types.ObjectId;
188
+ products: {
189
+ product: import("mongoose").Types.ObjectId;
190
+ value?: number | undefined;
191
+ valueType?: ValueType | null | undefined;
192
+ }[];
193
+ marketingId: import("mongoose").Types.ObjectId;
194
+ isBuy1Get1: boolean;
195
+ categories: import("mongoose").Types.ObjectId[];
196
+ isEntireMenu: boolean;
197
+ value?: number | undefined;
198
+ valueType?: ValueType | undefined;
199
+ isAppliedByCompany?: boolean | undefined;
200
+ categoryValue?: number | undefined;
201
+ categoryValueType?: ValueType | undefined;
202
+ }, {
203
+ shop: string | import("mongoose").Types.ObjectId;
204
+ marketingId: string | import("mongoose").Types.ObjectId;
205
+ isBuy1Get1: boolean;
206
+ isEntireMenu: boolean;
207
+ value?: number | undefined;
208
+ valueType?: ValueType | undefined;
209
+ products?: {
210
+ product: string | import("mongoose").Types.ObjectId;
211
+ value?: number | undefined;
212
+ valueType?: ValueType | null | undefined;
213
+ }[] | undefined;
214
+ isAppliedByCompany?: boolean | undefined;
215
+ categories?: (string | import("mongoose").Types.ObjectId)[] | undefined;
216
+ categoryValue?: number | undefined;
217
+ categoryValueType?: ValueType | undefined;
218
+ }>;
143
219
  export { ProductMarketingValidationSchema, ProductMarketingSchema, ProductMarketingIdSchema as ProductMarketingIdValidationSchema, UpdateProductMarketingSchema, QueryProductMarketingSchema, };
144
220
  export type CreateProductMarketingDTO = DTO<typeof ProductMarketingValidationSchema>;
145
221
  export type ProductMarketingDTO = DTO<typeof ProductMarketingSchema>;
@@ -147,4 +223,5 @@ export type UpdateProductMarketingDTO = DTO<typeof UpdateProductMarketingSchema>
147
223
  export type UpdateMultipleProductMarketingDTO = DTO<typeof UpdateMultipleProductMarketingSchema>;
148
224
  export type QueryProductMarketingDTO = DTO<typeof QueryProductMarketingSchema>;
149
225
  export type QueryMultipleProductMarketingDTO = DTO<typeof QueryMultipleProductMarketingSchema>;
226
+ export type BatchCreateProductMarketingsInputDTO = DTO<typeof BatchCreateProductMarketingsInputSchema>;
150
227
  //# sourceMappingURL=product-marketing.validation.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"product-marketing.validation.d.ts","sourceRoot":"/","sources":["modules/marketing/validations/product-marketing.validation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAGN,GAAG,EACH,MAAM,2DAA2D,CAAC;AACnE,OAAO,EAAE,SAAS,EAAE,MAAM,mCAAmC,CAAC;AAK9D,eAAO,MAAM,UAAU;;;;;;CAStB,CAAC;AAYF,QAAA,MACa,gCAAgC;;;;;;;;;;;;;;;;;;IAC9B,sBAAsB;;;;;;;;;;;;;;;;;;;;;kCAC1B,wBAAwB,mNACpB,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;gCACS,CAAC;AAErD,QAAA,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;0DAG/B,CAAC;AAEH,QAAA,MAAM,mCAAmC;;;;;;;;;;;;;;;;;;;;;;;;;;;gCAIvC,CAAC;AAEH,QAAA,MAAM,oCAAoC;;;;;;;;;;;;;;EAGxC,CAAC;AAKH,OAAO,EACN,gCAAgC,EAChC,sBAAsB,EACtB,wBAAwB,IAAI,kCAAkC,EAC9D,4BAA4B,EAC5B,2BAA2B,GAC3B,CAAC;AAKF,MAAM,MAAM,yBAAyB,GAAG,GAAG,CAAC,OAAO,gCAAgC,CAAC,CAAC;AACrF,MAAM,MAAM,mBAAmB,GAAG,GAAG,CAAC,OAAO,sBAAsB,CAAC,CAAC;AACrE,MAAM,MAAM,yBAAyB,GAAG,GAAG,CAAC,OAAO,4BAA4B,CAAC,CAAC;AACjF,MAAM,MAAM,iCAAiC,GAAG,GAAG,CAAC,OAAO,oCAAoC,CAAC,CAAC;AACjG,MAAM,MAAM,wBAAwB,GAAG,GAAG,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAC/E,MAAM,MAAM,gCAAgC,GAAG,GAAG,CAAC,OAAO,mCAAmC,CAAC,CAAC"}
1
+ {"version":3,"file":"product-marketing.validation.d.ts","sourceRoot":"/","sources":["modules/marketing/validations/product-marketing.validation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAGN,GAAG,EACH,MAAM,2DAA2D,CAAC;AACnE,OAAO,EAAE,SAAS,EAAE,MAAM,mCAAmC,CAAC;AAK9D,eAAO,MAAM,UAAU;;;;;;;CAUtB,CAAC;AAYF,QAAA,MACa,gCAAgC;;;;;;;;;;;;;;;;;;;;;IAC9B,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;kCAC1B,wBAAwB,mNACpB,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCACS,CAAC;AAErD,QAAA,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;0DAG/B,CAAC;AAEH,QAAA,MAAM,mCAAmC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCAIvC,CAAC;AAEH,QAAA,MAAM,oCAAoC;;;;;;;;;;;;;;;;;EAGxC,CAAC;AAEH,eAAO,MAAM,uCAAuC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAkBlD,CAAC;AAKH,OAAO,EACN,gCAAgC,EAChC,sBAAsB,EACtB,wBAAwB,IAAI,kCAAkC,EAC9D,4BAA4B,EAC5B,2BAA2B,GAC3B,CAAC;AAKF,MAAM,MAAM,yBAAyB,GAAG,GAAG,CAAC,OAAO,gCAAgC,CAAC,CAAC;AACrF,MAAM,MAAM,mBAAmB,GAAG,GAAG,CAAC,OAAO,sBAAsB,CAAC,CAAC;AACrE,MAAM,MAAM,yBAAyB,GAAG,GAAG,CAAC,OAAO,4BAA4B,CAAC,CAAC;AACjF,MAAM,MAAM,iCAAiC,GAAG,GAAG,CAAC,OAAO,oCAAoC,CAAC,CAAC;AACjG,MAAM,MAAM,wBAAwB,GAAG,GAAG,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAC/E,MAAM,MAAM,gCAAgC,GAAG,GAAG,CAAC,OAAO,mCAAmC,CAAC,CAAC;AAC/F,MAAM,MAAM,oCAAoC,GAAG,GAAG,CAAC,OAAO,uCAAuC,CAAC,CAAC"}
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.QueryProductMarketingSchema = exports.UpdateProductMarketingSchema = exports.ProductMarketingIdValidationSchema = exports.ProductMarketingSchema = exports.ProductMarketingValidationSchema = exports.baseFields = void 0;
3
+ exports.QueryProductMarketingSchema = exports.UpdateProductMarketingSchema = exports.ProductMarketingIdValidationSchema = exports.ProductMarketingSchema = exports.ProductMarketingValidationSchema = exports.BatchCreateProductMarketingsInputSchema = exports.baseFields = void 0;
4
+ const zod_1 = require("zod");
4
5
  const global_validation_1 = require("@lyxa.ai/core/dist/utilities/validation/global-validation");
5
6
  const enum_1 = require("@lyxa.ai/core/dist/utilities/enum");
6
7
  exports.baseFields = {
@@ -12,6 +13,7 @@ exports.baseFields = {
12
13
  .optional()
13
14
  .nullable(),
14
15
  value: global_validation_1.ZodValidation.number('Value').optional(),
16
+ isAppliedByCompany: global_validation_1.ZodValidation.boolean('IsAppliedByCompany').default(false).optional(),
15
17
  };
16
18
  const schemaBuilder = (0, global_validation_1.createSchemaBuilder)(exports.baseFields);
17
19
  const { BaseSchema: ProductMarketingValidationSchema, EntitySchema: ProductMarketingSchema, IdSchema: ProductMarketingIdSchema, UpdateSchema: UpdateProductMarketingSchema, } = schemaBuilder.getAllSchemas({ createdAt: true });
@@ -33,4 +35,21 @@ const UpdateMultipleProductMarketingSchema = ProductMarketingValidationSchema.om
33
35
  product: true,
34
36
  marketing: true,
35
37
  });
38
+ exports.BatchCreateProductMarketingsInputSchema = zod_1.z.object({
39
+ shop: global_validation_1.ZodValidation.objectId('Shop'),
40
+ marketingId: global_validation_1.ZodValidation.objectId('Marketing'),
41
+ products: global_validation_1.ZodValidation.array(zod_1.z.object({
42
+ product: global_validation_1.ZodValidation.objectId('Product'),
43
+ value: global_validation_1.ZodValidation.number('Value').optional(),
44
+ valueType: global_validation_1.ZodValidation.enumType(enum_1.ValueType, 'Value type').optional().nullable(),
45
+ })).default([]),
46
+ categories: global_validation_1.ZodValidation.array(global_validation_1.ZodValidation.objectId('Category')).default([]),
47
+ isEntireMenu: global_validation_1.ZodValidation.boolean('IsEntireMenu'),
48
+ isAppliedByCompany: global_validation_1.ZodValidation.boolean('IsAppliedByCompany').default(false).optional(),
49
+ categoryValue: global_validation_1.ZodValidation.number('Category Value').optional(),
50
+ categoryValueType: global_validation_1.ZodValidation.enumType(enum_1.ValueType, 'Category Value Type').optional(),
51
+ value: global_validation_1.ZodValidation.number('Value').optional(),
52
+ valueType: global_validation_1.ZodValidation.enumType(enum_1.ValueType, 'Value type').optional(),
53
+ isBuy1Get1: global_validation_1.ZodValidation.boolean('IsBuy1Get1'),
54
+ });
36
55
  //# sourceMappingURL=product-marketing.validation.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"product-marketing.validation.js","sourceRoot":"/","sources":["modules/marketing/validations/product-marketing.validation.ts"],"names":[],"mappings":";;;AACA,iGAImE;AACnE,4DAA8D;AAKjD,QAAA,UAAU,GAAG;IACzB,OAAO,EAAE,iCAAa,CAAC,QAAQ,CAAC,SAAS,CAAC;IAC1C,SAAS,EAAE,iCAAa,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC,QAAQ,EAAE;IACzD,UAAU,EAAE,iCAAa,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,QAAQ,EAAE;IACzE,SAAS,EAAE,iCAAa,CAAC,QAAQ,CAAC,gBAAS,EAAE,YAAY,CAAC;SACxD,OAAO,CAAC,gBAAS,CAAC,UAAU,CAAC;SAC7B,QAAQ,EAAE;SACV,QAAQ,EAAE;IACZ,KAAK,EAAE,iCAAa,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,QAAQ,EAAE;CAC/C,CAAC;AAOF,MAAM,aAAa,GAAG,IAAA,uCAAmB,EAAC,kBAAU,CAAC,CAAC;AAKtD,MAAM,EACL,UAAU,EAAE,gCAAgC,EAC5C,YAAY,EAAE,sBAAsB,EACpC,QAAQ,EAAE,wBAAwB,EAClC,YAAY,EAAE,4BAA4B,GAC1C,GAAG,aAAa,CAAC,aAAa,CAAC,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;AAsBpD,4EAAgC;AAChC,wDAAsB;AACM,sEAAkC;AAC9D,oEAA4B;AAvB7B,MAAM,2BAA2B,GAAG,sBAAsB,CAAC,IAAI,CAAC;IAC/D,OAAO,EAAE,IAAI;IACb,SAAS,EAAE,IAAI;CACf,CAAC,CAAC;AAqBF,kEAA2B;AAnB5B,MAAM,mCAAmC,GAAG,sBAAsB,CAAC,IAAI,CAAC;IACvE,SAAS,EAAE,IAAI;CACf,CAAC,CAAC,MAAM,CAAC;IACT,QAAQ,EAAE,iCAAa,CAAC,KAAK,CAAC,iCAAa,CAAC,QAAQ,CAAC,SAAS,CAAC,EAAE,UAAU,CAAC,CAAC,QAAQ,EAAE;CACvF,CAAC,CAAC;AAEH,MAAM,oCAAoC,GAAG,gCAAgC,CAAC,IAAI,CAAC;IAClF,OAAO,EAAE,IAAI;IACb,SAAS,EAAE,IAAI;CACf,CAAC,CAAC","sourcesContent":["import { z } from 'zod';\nimport {\n\tZodValidation,\n\tcreateSchemaBuilder,\n\tDTO,\n} from '@lyxa.ai/core/dist/utilities/validation/global-validation';\nimport { ValueType } from '@lyxa.ai/core/dist/utilities/enum';\n\n/**\n * Define the base schema fields\n */\nexport const baseFields = {\n\tproduct: ZodValidation.objectId('Product'),\n\tmarketing: ZodValidation.objectId('Marketing').optional(),\n\tisBuy1Get1: ZodValidation.boolean('IsBuy1Get1').default(false).optional(),\n\tvalueType: ZodValidation.enumType(ValueType, 'Value type')\n\t\t.default(ValueType.PERCENTAGE)\n\t\t.optional()\n\t\t.nullable(),\n\tvalue: ZodValidation.number('Value').optional(),\n};\n\n/**\n * Create schema builder for entity\n * - Includes timestamps\n * - Excludes 'createdAt' from update operations\n */\nconst schemaBuilder = createSchemaBuilder(baseFields);\n\n/**\n * Get all schemas for the entity\n */\nconst {\n\tBaseSchema: ProductMarketingValidationSchema,\n\tEntitySchema: ProductMarketingSchema,\n\tIdSchema: ProductMarketingIdSchema,\n\tUpdateSchema: UpdateProductMarketingSchema,\n} = schemaBuilder.getAllSchemas({ createdAt: true });\n\nconst QueryProductMarketingSchema = ProductMarketingSchema.pick({\n\tproduct: true,\n\tmarketing: true,\n});\n\nconst QueryMultipleProductMarketingSchema = ProductMarketingSchema.pick({\n\tmarketing: true,\n}).extend({\n\tproducts: ZodValidation.array(ZodValidation.objectId('Product'), 'Products').optional(),\n});\n\nconst UpdateMultipleProductMarketingSchema = ProductMarketingValidationSchema.omit({\n\tproduct: true,\n\tmarketing: true,\n});\n\n/**\n * Export schemas\n */\nexport {\n\tProductMarketingValidationSchema,\n\tProductMarketingSchema,\n\tProductMarketingIdSchema as ProductMarketingIdValidationSchema,\n\tUpdateProductMarketingSchema,\n\tQueryProductMarketingSchema,\n};\n\n/**\n * Export DTO types\n */\nexport type CreateProductMarketingDTO = DTO<typeof ProductMarketingValidationSchema>;\nexport type ProductMarketingDTO = DTO<typeof ProductMarketingSchema>;\nexport type UpdateProductMarketingDTO = DTO<typeof UpdateProductMarketingSchema>;\nexport type UpdateMultipleProductMarketingDTO = DTO<typeof UpdateMultipleProductMarketingSchema>;\nexport type QueryProductMarketingDTO = DTO<typeof QueryProductMarketingSchema>;\nexport type QueryMultipleProductMarketingDTO = DTO<typeof QueryMultipleProductMarketingSchema>;\n"]}
1
+ {"version":3,"file":"product-marketing.validation.js","sourceRoot":"/","sources":["modules/marketing/validations/product-marketing.validation.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,iGAImE;AACnE,4DAA8D;AAKjD,QAAA,UAAU,GAAG;IACzB,OAAO,EAAE,iCAAa,CAAC,QAAQ,CAAC,SAAS,CAAC;IAC1C,SAAS,EAAE,iCAAa,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC,QAAQ,EAAE;IACzD,UAAU,EAAE,iCAAa,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,QAAQ,EAAE;IACzE,SAAS,EAAE,iCAAa,CAAC,QAAQ,CAAC,gBAAS,EAAE,YAAY,CAAC;SACxD,OAAO,CAAC,gBAAS,CAAC,UAAU,CAAC;SAC7B,QAAQ,EAAE;SACV,QAAQ,EAAE;IACZ,KAAK,EAAE,iCAAa,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,QAAQ,EAAE;IAC/C,kBAAkB,EAAE,iCAAa,CAAC,OAAO,CAAC,oBAAoB,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,QAAQ,EAAE;CACzF,CAAC;AAOF,MAAM,aAAa,GAAG,IAAA,uCAAmB,EAAC,kBAAU,CAAC,CAAC;AAKtD,MAAM,EACL,UAAU,EAAE,gCAAgC,EAC5C,YAAY,EAAE,sBAAsB,EACpC,QAAQ,EAAE,wBAAwB,EAClC,YAAY,EAAE,4BAA4B,GAC1C,GAAG,aAAa,CAAC,aAAa,CAAC,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;AA0CpD,4EAAgC;AAChC,wDAAsB;AACM,sEAAkC;AAC9D,oEAA4B;AA3C7B,MAAM,2BAA2B,GAAG,sBAAsB,CAAC,IAAI,CAAC;IAC/D,OAAO,EAAE,IAAI;IACb,SAAS,EAAE,IAAI;CACf,CAAC,CAAC;AAyCF,kEAA2B;AAvC5B,MAAM,mCAAmC,GAAG,sBAAsB,CAAC,IAAI,CAAC;IACvE,SAAS,EAAE,IAAI;CACf,CAAC,CAAC,MAAM,CAAC;IACT,QAAQ,EAAE,iCAAa,CAAC,KAAK,CAAC,iCAAa,CAAC,QAAQ,CAAC,SAAS,CAAC,EAAE,UAAU,CAAC,CAAC,QAAQ,EAAE;CACvF,CAAC,CAAC;AAEH,MAAM,oCAAoC,GAAG,gCAAgC,CAAC,IAAI,CAAC;IAClF,OAAO,EAAE,IAAI;IACb,SAAS,EAAE,IAAI;CACf,CAAC,CAAC;AAEU,QAAA,uCAAuC,GAAG,OAAC,CAAC,MAAM,CAAC;IAC/D,IAAI,EAAE,iCAAa,CAAC,QAAQ,CAAC,MAAM,CAAC;IACpC,WAAW,EAAE,iCAAa,CAAC,QAAQ,CAAC,WAAW,CAAC;IAChD,QAAQ,EAAE,iCAAa,CAAC,KAAK,CAC5B,OAAC,CAAC,MAAM,CAAC;QACR,OAAO,EAAE,iCAAa,CAAC,QAAQ,CAAC,SAAS,CAAC;QAC1C,KAAK,EAAE,iCAAa,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,QAAQ,EAAE;QAC/C,SAAS,EAAE,iCAAa,CAAC,QAAQ,CAAC,gBAAS,EAAE,YAAY,CAAC,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;KAChF,CAAC,CACF,CAAC,OAAO,CAAC,EAAE,CAAC;IACb,UAAU,EAAE,iCAAa,CAAC,KAAK,CAAC,iCAAa,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC;IAC/E,YAAY,EAAE,iCAAa,CAAC,OAAO,CAAC,cAAc,CAAC;IACnD,kBAAkB,EAAE,iCAAa,CAAC,OAAO,CAAC,oBAAoB,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,QAAQ,EAAE;IACzF,aAAa,EAAE,iCAAa,CAAC,MAAM,CAAC,gBAAgB,CAAC,CAAC,QAAQ,EAAE;IAChE,iBAAiB,EAAE,iCAAa,CAAC,QAAQ,CAAC,gBAAS,EAAE,qBAAqB,CAAC,CAAC,QAAQ,EAAE;IACtF,KAAK,EAAE,iCAAa,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,QAAQ,EAAE;IAC/C,SAAS,EAAE,iCAAa,CAAC,QAAQ,CAAC,gBAAS,EAAE,YAAY,CAAC,CAAC,QAAQ,EAAE;IACrE,UAAU,EAAE,iCAAa,CAAC,OAAO,CAAC,YAAY,CAAC;CAC/C,CAAC,CAAC","sourcesContent":["import { z } from 'zod';\nimport {\n\tZodValidation,\n\tcreateSchemaBuilder,\n\tDTO,\n} from '@lyxa.ai/core/dist/utilities/validation/global-validation';\nimport { ValueType } from '@lyxa.ai/core/dist/utilities/enum';\n\n/**\n * Define the base schema fields\n */\nexport const baseFields = {\n\tproduct: ZodValidation.objectId('Product'),\n\tmarketing: ZodValidation.objectId('Marketing').optional(),\n\tisBuy1Get1: ZodValidation.boolean('IsBuy1Get1').default(false).optional(),\n\tvalueType: ZodValidation.enumType(ValueType, 'Value type')\n\t\t.default(ValueType.PERCENTAGE)\n\t\t.optional()\n\t\t.nullable(),\n\tvalue: ZodValidation.number('Value').optional(),\n\tisAppliedByCompany: ZodValidation.boolean('IsAppliedByCompany').default(false).optional(),\n};\n\n/**\n * Create schema builder for entity\n * - Includes timestamps\n * - Excludes 'createdAt' from update operations\n */\nconst schemaBuilder = createSchemaBuilder(baseFields);\n\n/**\n * Get all schemas for the entity\n */\nconst {\n\tBaseSchema: ProductMarketingValidationSchema,\n\tEntitySchema: ProductMarketingSchema,\n\tIdSchema: ProductMarketingIdSchema,\n\tUpdateSchema: UpdateProductMarketingSchema,\n} = schemaBuilder.getAllSchemas({ createdAt: true });\n\nconst QueryProductMarketingSchema = ProductMarketingSchema.pick({\n\tproduct: true,\n\tmarketing: true,\n});\n\nconst QueryMultipleProductMarketingSchema = ProductMarketingSchema.pick({\n\tmarketing: true,\n}).extend({\n\tproducts: ZodValidation.array(ZodValidation.objectId('Product'), 'Products').optional(),\n});\n\nconst UpdateMultipleProductMarketingSchema = ProductMarketingValidationSchema.omit({\n\tproduct: true,\n\tmarketing: true,\n});\n\nexport const BatchCreateProductMarketingsInputSchema = z.object({\n\tshop: ZodValidation.objectId('Shop'),\n\tmarketingId: ZodValidation.objectId('Marketing'),\n\tproducts: ZodValidation.array(\n\t\tz.object({\n\t\t\tproduct: ZodValidation.objectId('Product'),\n\t\t\tvalue: ZodValidation.number('Value').optional(),\n\t\t\tvalueType: ZodValidation.enumType(ValueType, 'Value type').optional().nullable(),\n\t\t})\n\t).default([]),\n\tcategories: ZodValidation.array(ZodValidation.objectId('Category')).default([]),\n\tisEntireMenu: ZodValidation.boolean('IsEntireMenu'),\n\tisAppliedByCompany: ZodValidation.boolean('IsAppliedByCompany').default(false).optional(),\n\tcategoryValue: ZodValidation.number('Category Value').optional(),\n\tcategoryValueType: ZodValidation.enumType(ValueType, 'Category Value Type').optional(),\n\tvalue: ZodValidation.number('Value').optional(),\n\tvalueType: ZodValidation.enumType(ValueType, 'Value type').optional(),\n\tisBuy1Get1: ZodValidation.boolean('IsBuy1Get1'),\n});\n\n/**\n * Export schemas\n */\nexport {\n\tProductMarketingValidationSchema,\n\tProductMarketingSchema,\n\tProductMarketingIdSchema as ProductMarketingIdValidationSchema,\n\tUpdateProductMarketingSchema,\n\tQueryProductMarketingSchema,\n};\n\n/**\n * Export DTO types\n */\nexport type CreateProductMarketingDTO = DTO<typeof ProductMarketingValidationSchema>;\nexport type ProductMarketingDTO = DTO<typeof ProductMarketingSchema>;\nexport type UpdateProductMarketingDTO = DTO<typeof UpdateProductMarketingSchema>;\nexport type UpdateMultipleProductMarketingDTO = DTO<typeof UpdateMultipleProductMarketingSchema>;\nexport type QueryProductMarketingDTO = DTO<typeof QueryProductMarketingSchema>;\nexport type QueryMultipleProductMarketingDTO = DTO<typeof QueryMultipleProductMarketingSchema>;\nexport type BatchCreateProductMarketingsInputDTO = DTO<typeof BatchCreateProductMarketingsInputSchema>;\n"]}
@@ -18,15 +18,15 @@ export declare const punchMarketingHistoryRouter: import("@trpc/server").TRPCBui
18
18
  input: {
19
19
  user: string | import("mongoose").Types.ObjectId;
20
20
  shop: string | import("mongoose").Types.ObjectId;
21
- marketing: string | import("mongoose").Types.ObjectId;
22
21
  minimumOrderValue: number;
22
+ marketing: string | import("mongoose").Types.ObjectId;
23
23
  targetOrder: number;
24
24
  couponValueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
25
25
  couponValue: number;
26
26
  couponDurationInDays: number;
27
27
  status?: import("@lyxa.ai/core/dist/utilities/enum").PunchMarketingStatus | undefined;
28
- completedOrder?: number | undefined;
29
28
  startDate?: string | Date | undefined;
29
+ completedOrder?: number | undefined;
30
30
  expiryDate?: string | Date | undefined;
31
31
  completedAt?: string | Date | undefined;
32
32
  couponExpiryDate?: string | Date | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"punch-marketing-history.router.d.ts","sourceRoot":"/","sources":["modules/punch-marketing-history/routers/punch-marketing-history.router.ts"],"names":[],"mappings":"AAiBA,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4BAgBnB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoEpB,CAAC"}
1
+ {"version":3,"file":"punch-marketing-history.router.d.ts","sourceRoot":"/","sources":["modules/punch-marketing-history/routers/punch-marketing-history.router.ts"],"names":[],"mappings":"AAiBA,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4BAiBR,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmE/B,CAAC"}
@@ -19,30 +19,30 @@ declare const PunchMarketingHistoryValidationSchema: z.ZodObject<{
19
19
  }, "strict", z.ZodTypeAny, {
20
20
  user: import("mongoose").Types.ObjectId;
21
21
  shop: import("mongoose").Types.ObjectId;
22
- marketing: import("mongoose").Types.ObjectId;
23
22
  minimumOrderValue: number;
23
+ marketing: import("mongoose").Types.ObjectId;
24
24
  targetOrder: number;
25
25
  couponValueType: ValueType;
26
26
  couponValue: number;
27
27
  couponDurationInDays: number;
28
28
  status?: PunchMarketingStatus | undefined;
29
- completedOrder?: number | undefined;
30
29
  startDate?: Date | undefined;
30
+ completedOrder?: number | undefined;
31
31
  expiryDate?: Date | undefined;
32
32
  completedAt?: Date | undefined;
33
33
  couponExpiryDate?: Date | undefined;
34
34
  }, {
35
35
  user: string | import("mongoose").Types.ObjectId;
36
36
  shop: string | import("mongoose").Types.ObjectId;
37
- marketing: string | import("mongoose").Types.ObjectId;
38
37
  minimumOrderValue: number;
38
+ marketing: string | import("mongoose").Types.ObjectId;
39
39
  targetOrder: number;
40
40
  couponValueType: ValueType;
41
41
  couponValue: number;
42
42
  couponDurationInDays: number;
43
43
  status?: PunchMarketingStatus | undefined;
44
- completedOrder?: number | undefined;
45
44
  startDate?: string | Date | undefined;
45
+ completedOrder?: number | undefined;
46
46
  expiryDate?: string | Date | undefined;
47
47
  completedAt?: string | Date | undefined;
48
48
  couponExpiryDate?: string | Date | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"event-initializations.d.ts","sourceRoot":"/","sources":["event/event-initializations.ts"],"names":[],"mappings":"AAGA,wBAAsB,kBAAkB,kBAEvC"}
1
+ {"version":3,"file":"event-initializations.d.ts","sourceRoot":"/","sources":["event/event-initializations.ts"],"names":[],"mappings":"AAMA,wBAAsB,kBAAkB,kBAIvC"}
@@ -1,2 +1,3 @@
1
1
  export declare function subscribeToSyncAllProductsProductMarketingInfoProcessEvent(): Promise<void>;
2
+ export declare function subscribeToMarketingEntireMenuSeedEvent(): Promise<void>;
2
3
  //# sourceMappingURL=event-listeners.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"event-listeners.d.ts","sourceRoot":"/","sources":["event/event-listeners/event-listeners.ts"],"names":[],"mappings":"AAMA,wBAAsB,0DAA0D,kBAI/E"}
1
+ {"version":3,"file":"event-listeners.d.ts","sourceRoot":"/","sources":["event/event-listeners/event-listeners.ts"],"names":[],"mappings":"AAYA,wBAAsB,0DAA0D,kBAI/E;AAED,wBAAsB,uCAAuC,kBAmD5D"}
@@ -0,0 +1,17 @@
1
+ import { BaseEvent } from '@lyxa.ai/core/dist/libraries/event/BaseEvent';
2
+ import { ValueType } from '@lyxa.ai/core/dist/utilities/enum';
3
+ export declare const MARKETING_ENTIRE_MENU_SEED_EVENT = "marketing_entire_menu_seed_event";
4
+ export interface MarketingProductSeedPayload {
5
+ marketingId: string;
6
+ shopId: string;
7
+ isAppliedByCompany: boolean;
8
+ isBuy1Get1: boolean;
9
+ page: number;
10
+ pageSize: number;
11
+ value?: number;
12
+ valueType?: ValueType;
13
+ }
14
+ export declare class MarketingEntireMenuSeedEvent extends BaseEvent<MarketingProductSeedPayload> {
15
+ constructor(payload: MarketingProductSeedPayload);
16
+ }
17
+ //# sourceMappingURL=marketing-product-seed.event.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"marketing-product-seed.event.d.ts","sourceRoot":"/","sources":["event/events/marketing-product-seed.event.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,8CAA8C,CAAC;AACzE,OAAO,EAAE,SAAS,EAAE,MAAM,mCAAmC,CAAC;AAE9D,eAAO,MAAM,gCAAgC,qCAAqC,CAAC;AAEnF,MAAM,WAAW,2BAA2B;IAC3C,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,kBAAkB,EAAE,OAAO,CAAC;IAC5B,UAAU,EAAE,OAAO,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,SAAS,CAAC;CACtB;AAED,qBAAa,4BAA6B,SAAQ,SAAS,CAAC,2BAA2B,CAAC;gBAC3E,OAAO,EAAE,2BAA2B;CAGhD"}