@lyxa.ai/marketing 1.0.40 → 1.0.42

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 (246) hide show
  1. package/dist/lib/event/event-initializations.d.ts.map +1 -1
  2. package/dist/lib/event/event-initializations.js +2 -0
  3. package/dist/lib/event/event-initializations.js.map +1 -1
  4. package/dist/lib/event/event-listeners/event-listeners.d.ts.map +1 -1
  5. package/dist/lib/event/event-listeners/event-listeners.js.map +1 -1
  6. package/dist/lib/index.d.ts +652 -0
  7. package/dist/lib/index.d.ts.map +1 -1
  8. package/dist/lib/index.js +6 -6
  9. package/dist/lib/index.js.map +1 -1
  10. package/dist/lib/modules/coupon/routers/coupon.router.d.ts +4 -0
  11. package/dist/lib/modules/coupon/routers/coupon.router.d.ts.map +1 -1
  12. package/dist/lib/modules/coupon/services/coupon.service.d.ts +1 -0
  13. package/dist/lib/modules/coupon/services/coupon.service.d.ts.map +1 -1
  14. package/dist/lib/modules/coupon/services/coupon.service.js +74 -65
  15. package/dist/lib/modules/coupon/services/coupon.service.js.map +1 -1
  16. package/dist/lib/modules/coupon/services/custom-coupon.service.d.ts +28 -2
  17. package/dist/lib/modules/coupon/services/custom-coupon.service.d.ts.map +1 -1
  18. package/dist/lib/modules/coupon/services/custom-coupon.service.js +13 -33
  19. package/dist/lib/modules/coupon/services/custom-coupon.service.js.map +1 -1
  20. package/dist/lib/modules/coupon/services/helper.service.d.ts +30 -2
  21. package/dist/lib/modules/coupon/services/helper.service.d.ts.map +1 -1
  22. package/dist/lib/modules/coupon/services/helper.service.js +121 -8
  23. package/dist/lib/modules/coupon/services/helper.service.js.map +1 -1
  24. package/dist/lib/modules/coupon/services/individual-store-coupon.service.d.ts +29 -3
  25. package/dist/lib/modules/coupon/services/individual-store-coupon.service.d.ts.map +1 -1
  26. package/dist/lib/modules/coupon/services/individual-store-coupon.service.js +10 -62
  27. package/dist/lib/modules/coupon/services/individual-store-coupon.service.js.map +1 -1
  28. package/dist/lib/modules/coupon/services/patterns/repository/CouponRepository.d.ts.map +1 -1
  29. package/dist/lib/modules/coupon/services/patterns/repository/CouponRepository.js +117 -155
  30. package/dist/lib/modules/coupon/services/patterns/repository/CouponRepository.js.map +1 -1
  31. package/dist/lib/modules/coupon/services/referral-code-coupon.service.d.ts +9 -0
  32. package/dist/lib/modules/coupon/services/referral-code-coupon.service.d.ts.map +1 -1
  33. package/dist/lib/modules/coupon/services/referral-code-coupon.service.js +97 -30
  34. package/dist/lib/modules/coupon/services/referral-code-coupon.service.js.map +1 -1
  35. package/dist/lib/modules/coupon/services/referral-reward-coupon.service.d.ts.map +1 -1
  36. package/dist/lib/modules/coupon/services/referral-reward-coupon.service.js +5 -1
  37. package/dist/lib/modules/coupon/services/referral-reward-coupon.service.js.map +1 -1
  38. package/dist/lib/modules/coupon/services/shops-categories-coupon.service.d.ts +29 -3
  39. package/dist/lib/modules/coupon/services/shops-categories-coupon.service.d.ts.map +1 -1
  40. package/dist/lib/modules/coupon/services/shops-categories-coupon.service.js +10 -63
  41. package/dist/lib/modules/coupon/services/shops-categories-coupon.service.js.map +1 -1
  42. package/dist/lib/modules/coupon/validations/coupon.validation.d.ts +13 -0
  43. package/dist/lib/modules/coupon/validations/coupon.validation.d.ts.map +1 -1
  44. package/dist/lib/modules/coupon/validations/coupon.validation.js +3 -2
  45. package/dist/lib/modules/coupon/validations/coupon.validation.js.map +1 -1
  46. package/dist/lib/modules/deal-setting/routers/deal-setting.router.d.ts.map +1 -1
  47. package/dist/lib/modules/deal-setting/services/deal-setting.service.d.ts.map +1 -1
  48. package/dist/lib/modules/deal-setting/services/deal-setting.service.js +4 -4
  49. package/dist/lib/modules/deal-setting/services/deal-setting.service.js.map +1 -1
  50. package/dist/lib/modules/featured-setting/routers/featured-setting.router.d.ts.map +1 -1
  51. package/dist/lib/modules/limited-time-offer/campaign/campaign.router.d.ts +339 -0
  52. package/dist/lib/modules/limited-time-offer/campaign/campaign.router.d.ts.map +1 -0
  53. package/dist/lib/modules/limited-time-offer/campaign/campaign.router.js +77 -0
  54. package/dist/lib/modules/limited-time-offer/campaign/campaign.router.js.map +1 -0
  55. package/dist/lib/modules/limited-time-offer/campaign/jobs/index.d.ts +4 -0
  56. package/dist/lib/modules/limited-time-offer/campaign/jobs/index.d.ts.map +1 -0
  57. package/dist/lib/modules/limited-time-offer/campaign/jobs/index.js +24 -0
  58. package/dist/lib/modules/limited-time-offer/campaign/jobs/index.js.map +1 -0
  59. package/dist/lib/modules/limited-time-offer/campaign/jobs/limited-time-offer-campaign.producer.d.ts +12 -0
  60. package/dist/lib/modules/limited-time-offer/campaign/jobs/limited-time-offer-campaign.producer.d.ts.map +1 -0
  61. package/dist/lib/modules/limited-time-offer/campaign/jobs/limited-time-offer-campaign.producer.js +29 -0
  62. package/dist/lib/modules/limited-time-offer/campaign/jobs/limited-time-offer-campaign.producer.js.map +1 -0
  63. package/dist/lib/modules/limited-time-offer/campaign/jobs/limited-time-offer-campaign.worker.d.ts +8 -0
  64. package/dist/lib/modules/limited-time-offer/campaign/jobs/limited-time-offer-campaign.worker.d.ts.map +1 -0
  65. package/dist/lib/modules/limited-time-offer/campaign/jobs/limited-time-offer-campaign.worker.js +79 -0
  66. package/dist/lib/modules/limited-time-offer/campaign/jobs/limited-time-offer-campaign.worker.js.map +1 -0
  67. package/dist/lib/modules/limited-time-offer/campaign/limited-time-offer-campaign.validation.d.ts +851 -0
  68. package/dist/lib/modules/limited-time-offer/campaign/limited-time-offer-campaign.validation.d.ts.map +1 -0
  69. package/dist/lib/modules/limited-time-offer/campaign/limited-time-offer-campaign.validation.js +100 -0
  70. package/dist/lib/modules/limited-time-offer/campaign/limited-time-offer-campaign.validation.js.map +1 -0
  71. package/dist/lib/modules/limited-time-offer/campaign/services/limited-time-offer-campaign-lifecycle.service.d.ts +11 -0
  72. package/dist/lib/modules/limited-time-offer/campaign/services/limited-time-offer-campaign-lifecycle.service.d.ts.map +1 -0
  73. package/dist/lib/modules/limited-time-offer/campaign/services/limited-time-offer-campaign-lifecycle.service.js +75 -0
  74. package/dist/lib/modules/limited-time-offer/campaign/services/limited-time-offer-campaign-lifecycle.service.js.map +1 -0
  75. package/dist/lib/modules/limited-time-offer/campaign/services/limited-time-offer-campaign-scheduler.service.d.ts +9 -0
  76. package/dist/lib/modules/limited-time-offer/campaign/services/limited-time-offer-campaign-scheduler.service.d.ts.map +1 -0
  77. package/dist/lib/modules/limited-time-offer/campaign/services/limited-time-offer-campaign-scheduler.service.js +42 -0
  78. package/dist/lib/modules/limited-time-offer/campaign/services/limited-time-offer-campaign-scheduler.service.js.map +1 -0
  79. package/dist/lib/modules/limited-time-offer/campaign/services/limited-time-offer-campaign.service.d.ts +78 -0
  80. package/dist/lib/modules/limited-time-offer/campaign/services/limited-time-offer-campaign.service.d.ts.map +1 -0
  81. package/dist/lib/modules/limited-time-offer/campaign/services/limited-time-offer-campaign.service.js +308 -0
  82. package/dist/lib/modules/limited-time-offer/campaign/services/limited-time-offer-campaign.service.js.map +1 -0
  83. package/dist/lib/modules/limited-time-offer/config/limited-time-offer-config.service.d.ts +12 -0
  84. package/dist/lib/modules/limited-time-offer/config/limited-time-offer-config.service.d.ts.map +1 -0
  85. package/dist/lib/modules/limited-time-offer/config/limited-time-offer-config.service.js +94 -0
  86. package/dist/lib/modules/limited-time-offer/config/limited-time-offer-config.service.js.map +1 -0
  87. package/dist/lib/modules/limited-time-offer/config/limited-time-offer-config.validation.d.ts +189 -0
  88. package/dist/lib/modules/limited-time-offer/config/limited-time-offer-config.validation.d.ts.map +1 -0
  89. package/dist/lib/modules/limited-time-offer/config/limited-time-offer-config.validation.js +24 -0
  90. package/dist/lib/modules/limited-time-offer/config/limited-time-offer-config.validation.js.map +1 -0
  91. package/dist/lib/modules/limited-time-offer/config/limited-time-offer.router.d.ts +122 -0
  92. package/dist/lib/modules/limited-time-offer/config/limited-time-offer.router.d.ts.map +1 -0
  93. package/dist/lib/modules/limited-time-offer/config/limited-time-offer.router.js +37 -0
  94. package/dist/lib/modules/limited-time-offer/config/limited-time-offer.router.js.map +1 -0
  95. package/dist/lib/modules/limited-time-offer/limited-time-offer.router.d.ts +644 -0
  96. package/dist/lib/modules/limited-time-offer/limited-time-offer.router.d.ts.map +1 -0
  97. package/dist/lib/modules/limited-time-offer/limited-time-offer.router.js +13 -0
  98. package/dist/lib/modules/limited-time-offer/limited-time-offer.router.js.map +1 -0
  99. package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.router.d.ts +170 -0
  100. package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.router.d.ts.map +1 -0
  101. package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.router.js +51 -0
  102. package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.router.js.map +1 -0
  103. package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.validation.d.ts +603 -0
  104. package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.validation.d.ts.map +1 -0
  105. package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.validation.js +85 -0
  106. package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.validation.js.map +1 -0
  107. package/dist/lib/modules/limited-time-offer/participant/services/limited-time-offer-participant-marketing.service.d.ts +12 -0
  108. package/dist/lib/modules/limited-time-offer/participant/services/limited-time-offer-participant-marketing.service.d.ts.map +1 -0
  109. package/dist/lib/modules/limited-time-offer/participant/services/limited-time-offer-participant-marketing.service.js +98 -0
  110. package/dist/lib/modules/limited-time-offer/participant/services/limited-time-offer-participant-marketing.service.js.map +1 -0
  111. package/dist/lib/modules/limited-time-offer/participant/services/limited-time-offer-participant.service.d.ts +21 -0
  112. package/dist/lib/modules/limited-time-offer/participant/services/limited-time-offer-participant.service.d.ts.map +1 -0
  113. package/dist/lib/modules/limited-time-offer/participant/services/limited-time-offer-participant.service.js +133 -0
  114. package/dist/lib/modules/limited-time-offer/participant/services/limited-time-offer-participant.service.js.map +1 -0
  115. package/dist/lib/modules/marketing/patterns/repository/MarketingMetricsRepository.d.ts +2 -1
  116. package/dist/lib/modules/marketing/patterns/repository/MarketingMetricsRepository.d.ts.map +1 -1
  117. package/dist/lib/modules/marketing/patterns/repository/MarketingMetricsRepository.js +23 -15
  118. package/dist/lib/modules/marketing/patterns/repository/MarketingMetricsRepository.js.map +1 -1
  119. package/dist/lib/modules/marketing/routers/marketing.router.d.ts +5 -0
  120. package/dist/lib/modules/marketing/routers/marketing.router.d.ts.map +1 -1
  121. package/dist/lib/modules/marketing/routers/marketing.router.js +3 -0
  122. package/dist/lib/modules/marketing/routers/marketing.router.js.map +1 -1
  123. package/dist/lib/modules/marketing/services/buy1-get1-marketing.service.d.ts +0 -2
  124. package/dist/lib/modules/marketing/services/buy1-get1-marketing.service.d.ts.map +1 -1
  125. package/dist/lib/modules/marketing/services/buy1-get1-marketing.service.js +18 -39
  126. package/dist/lib/modules/marketing/services/buy1-get1-marketing.service.js.map +1 -1
  127. package/dist/lib/modules/marketing/services/discount-marketing.service.d.ts +0 -3
  128. package/dist/lib/modules/marketing/services/discount-marketing.service.d.ts.map +1 -1
  129. package/dist/lib/modules/marketing/services/discount-marketing.service.js +26 -52
  130. package/dist/lib/modules/marketing/services/discount-marketing.service.js.map +1 -1
  131. package/dist/lib/modules/marketing/services/marketing.service.d.ts +1 -0
  132. package/dist/lib/modules/marketing/services/marketing.service.d.ts.map +1 -1
  133. package/dist/lib/modules/marketing/services/marketing.service.js +55 -25
  134. package/dist/lib/modules/marketing/services/marketing.service.js.map +1 -1
  135. package/dist/lib/modules/marketing/services/product-marketing.service.d.ts +9 -2
  136. package/dist/lib/modules/marketing/services/product-marketing.service.d.ts.map +1 -1
  137. package/dist/lib/modules/marketing/services/product-marketing.service.js +132 -7
  138. package/dist/lib/modules/marketing/services/product-marketing.service.js.map +1 -1
  139. package/dist/lib/modules/marketing/services/synchronize-product-marketing.service.d.ts.map +1 -1
  140. package/dist/lib/modules/marketing/services/synchronize-product-marketing.service.js +58 -31
  141. package/dist/lib/modules/marketing/services/synchronize-product-marketing.service.js.map +1 -1
  142. package/dist/lib/modules/marketing/transformers/buy1-get1-marketing.transformer.d.ts +3 -0
  143. package/dist/lib/modules/marketing/transformers/buy1-get1-marketing.transformer.d.ts.map +1 -1
  144. package/dist/lib/modules/marketing/transformers/discount-marketing.transformer.d.ts +3 -0
  145. package/dist/lib/modules/marketing/transformers/discount-marketing.transformer.d.ts.map +1 -1
  146. package/dist/lib/modules/marketing/transformers/product-marketing.transformer.d.ts +1 -0
  147. package/dist/lib/modules/marketing/transformers/product-marketing.transformer.d.ts.map +1 -1
  148. package/dist/lib/modules/marketing/validations/buy1-get1-marketing.validation.d.ts +42 -12
  149. package/dist/lib/modules/marketing/validations/buy1-get1-marketing.validation.d.ts.map +1 -1
  150. package/dist/lib/modules/marketing/validations/discount-marketing.validation.d.ts +57 -21
  151. package/dist/lib/modules/marketing/validations/discount-marketing.validation.d.ts.map +1 -1
  152. package/dist/lib/modules/marketing/validations/product-marketing.validation.d.ts +77 -0
  153. package/dist/lib/modules/marketing/validations/product-marketing.validation.d.ts.map +1 -1
  154. package/dist/lib/modules/marketing/validations/product-marketing.validation.js +20 -1
  155. package/dist/lib/modules/marketing/validations/product-marketing.validation.js.map +1 -1
  156. package/dist/lib/modules/punch-marketing-history/routers/punch-marketing-history.router.d.ts.map +1 -1
  157. package/dist/types/event/event-initializations.d.ts.map +1 -1
  158. package/dist/types/event/event-listeners/event-listeners.d.ts.map +1 -1
  159. package/dist/types/index.d.ts +652 -0
  160. package/dist/types/index.d.ts.map +1 -1
  161. package/dist/types/modules/coupon/routers/coupon.router.d.ts +4 -0
  162. package/dist/types/modules/coupon/routers/coupon.router.d.ts.map +1 -1
  163. package/dist/types/modules/coupon/services/coupon.service.d.ts +1 -0
  164. package/dist/types/modules/coupon/services/coupon.service.d.ts.map +1 -1
  165. package/dist/types/modules/coupon/services/custom-coupon.service.d.ts +28 -2
  166. package/dist/types/modules/coupon/services/custom-coupon.service.d.ts.map +1 -1
  167. package/dist/types/modules/coupon/services/helper.service.d.ts +30 -2
  168. package/dist/types/modules/coupon/services/helper.service.d.ts.map +1 -1
  169. package/dist/types/modules/coupon/services/individual-store-coupon.service.d.ts +29 -3
  170. package/dist/types/modules/coupon/services/individual-store-coupon.service.d.ts.map +1 -1
  171. package/dist/types/modules/coupon/services/patterns/repository/CouponRepository.d.ts.map +1 -1
  172. package/dist/types/modules/coupon/services/referral-code-coupon.service.d.ts +57 -0
  173. package/dist/types/modules/coupon/services/referral-code-coupon.service.d.ts.map +1 -1
  174. package/dist/types/modules/coupon/services/referral-reward-coupon.service.d.ts.map +1 -1
  175. package/dist/types/modules/coupon/services/shops-categories-coupon.service.d.ts +29 -3
  176. package/dist/types/modules/coupon/services/shops-categories-coupon.service.d.ts.map +1 -1
  177. package/dist/types/modules/coupon/validations/coupon.validation.d.ts +13 -0
  178. package/dist/types/modules/coupon/validations/coupon.validation.d.ts.map +1 -1
  179. package/dist/types/modules/deal-setting/routers/deal-setting.router.d.ts.map +1 -1
  180. package/dist/types/modules/deal-setting/services/deal-setting.service.d.ts.map +1 -1
  181. package/dist/types/modules/featured-setting/routers/featured-setting.router.d.ts.map +1 -1
  182. package/dist/types/modules/limited-time-offer/campaign/campaign.router.d.ts +339 -0
  183. package/dist/types/modules/limited-time-offer/campaign/campaign.router.d.ts.map +1 -0
  184. package/dist/types/modules/limited-time-offer/campaign/jobs/index.d.ts +4 -0
  185. package/dist/types/modules/limited-time-offer/campaign/jobs/index.d.ts.map +1 -0
  186. package/dist/types/modules/limited-time-offer/campaign/jobs/limited-time-offer-campaign.producer.d.ts +12 -0
  187. package/dist/types/modules/limited-time-offer/campaign/jobs/limited-time-offer-campaign.producer.d.ts.map +1 -0
  188. package/dist/types/modules/limited-time-offer/campaign/jobs/limited-time-offer-campaign.worker.d.ts +8 -0
  189. package/dist/types/modules/limited-time-offer/campaign/jobs/limited-time-offer-campaign.worker.d.ts.map +1 -0
  190. package/dist/types/modules/limited-time-offer/campaign/limited-time-offer-campaign.validation.d.ts +851 -0
  191. package/dist/types/modules/limited-time-offer/campaign/limited-time-offer-campaign.validation.d.ts.map +1 -0
  192. package/dist/types/modules/limited-time-offer/campaign/services/limited-time-offer-campaign-lifecycle.service.d.ts +11 -0
  193. package/dist/types/modules/limited-time-offer/campaign/services/limited-time-offer-campaign-lifecycle.service.d.ts.map +1 -0
  194. package/dist/types/modules/limited-time-offer/campaign/services/limited-time-offer-campaign-scheduler.service.d.ts +9 -0
  195. package/dist/types/modules/limited-time-offer/campaign/services/limited-time-offer-campaign-scheduler.service.d.ts.map +1 -0
  196. package/dist/types/modules/limited-time-offer/campaign/services/limited-time-offer-campaign.service.d.ts +78 -0
  197. package/dist/types/modules/limited-time-offer/campaign/services/limited-time-offer-campaign.service.d.ts.map +1 -0
  198. package/dist/types/modules/limited-time-offer/config/limited-time-offer-config.service.d.ts +12 -0
  199. package/dist/types/modules/limited-time-offer/config/limited-time-offer-config.service.d.ts.map +1 -0
  200. package/dist/types/modules/limited-time-offer/config/limited-time-offer-config.validation.d.ts +189 -0
  201. package/dist/types/modules/limited-time-offer/config/limited-time-offer-config.validation.d.ts.map +1 -0
  202. package/dist/types/modules/limited-time-offer/config/limited-time-offer.router.d.ts +122 -0
  203. package/dist/types/modules/limited-time-offer/config/limited-time-offer.router.d.ts.map +1 -0
  204. package/dist/types/modules/limited-time-offer/limited-time-offer.router.d.ts +644 -0
  205. package/dist/types/modules/limited-time-offer/limited-time-offer.router.d.ts.map +1 -0
  206. package/dist/types/modules/limited-time-offer/participant/limited-time-offer-participant.router.d.ts +170 -0
  207. package/dist/types/modules/limited-time-offer/participant/limited-time-offer-participant.router.d.ts.map +1 -0
  208. package/dist/types/modules/limited-time-offer/participant/limited-time-offer-participant.service.d.ts +1 -0
  209. package/dist/types/modules/limited-time-offer/participant/limited-time-offer-participant.service.d.ts.map +1 -0
  210. package/dist/types/modules/limited-time-offer/participant/limited-time-offer-participant.validation.d.ts +603 -0
  211. package/dist/types/modules/limited-time-offer/participant/limited-time-offer-participant.validation.d.ts.map +1 -0
  212. package/dist/types/modules/limited-time-offer/participant/services/limited-time-offer-participant-marketing.service.d.ts +12 -0
  213. package/dist/types/modules/limited-time-offer/participant/services/limited-time-offer-participant-marketing.service.d.ts.map +1 -0
  214. package/dist/types/modules/limited-time-offer/participant/services/limited-time-offer-participant.service.d.ts +21 -0
  215. package/dist/types/modules/limited-time-offer/participant/services/limited-time-offer-participant.service.d.ts.map +1 -0
  216. package/dist/types/modules/marketing/patterns/repository/MarketingMetricsRepository.d.ts +2 -1
  217. package/dist/types/modules/marketing/patterns/repository/MarketingMetricsRepository.d.ts.map +1 -1
  218. package/dist/types/modules/marketing/routers/marketing.router.d.ts +5 -0
  219. package/dist/types/modules/marketing/routers/marketing.router.d.ts.map +1 -1
  220. package/dist/types/modules/marketing/services/buy1-get1-marketing.service.d.ts +0 -2
  221. package/dist/types/modules/marketing/services/buy1-get1-marketing.service.d.ts.map +1 -1
  222. package/dist/types/modules/marketing/services/discount-marketing.service.d.ts +0 -3
  223. package/dist/types/modules/marketing/services/discount-marketing.service.d.ts.map +1 -1
  224. package/dist/types/modules/marketing/services/marketing.service.d.ts +1 -0
  225. package/dist/types/modules/marketing/services/marketing.service.d.ts.map +1 -1
  226. package/dist/types/modules/marketing/services/product-marketing.service.d.ts +13 -2
  227. package/dist/types/modules/marketing/services/product-marketing.service.d.ts.map +1 -1
  228. package/dist/types/modules/marketing/services/synchronize-product-marketing.service.d.ts.map +1 -1
  229. package/dist/types/modules/marketing/transformers/buy1-get1-marketing.transformer.d.ts +3 -0
  230. package/dist/types/modules/marketing/transformers/buy1-get1-marketing.transformer.d.ts.map +1 -1
  231. package/dist/types/modules/marketing/transformers/discount-marketing.transformer.d.ts +3 -0
  232. package/dist/types/modules/marketing/transformers/discount-marketing.transformer.d.ts.map +1 -1
  233. package/dist/types/modules/marketing/transformers/product-marketing.transformer.d.ts +1 -0
  234. package/dist/types/modules/marketing/transformers/product-marketing.transformer.d.ts.map +1 -1
  235. package/dist/types/modules/marketing/validations/buy1-get1-marketing.validation.d.ts +42 -12
  236. package/dist/types/modules/marketing/validations/buy1-get1-marketing.validation.d.ts.map +1 -1
  237. package/dist/types/modules/marketing/validations/discount-marketing.validation.d.ts +57 -21
  238. package/dist/types/modules/marketing/validations/discount-marketing.validation.d.ts.map +1 -1
  239. package/dist/types/modules/marketing/validations/product-marketing.validation.d.ts +77 -0
  240. package/dist/types/modules/marketing/validations/product-marketing.validation.d.ts.map +1 -1
  241. package/dist/types/modules/punch-marketing-history/routers/punch-marketing-history.router.d.ts.map +1 -1
  242. package/package.json +2 -2
  243. package/dist/lib/events/event-initializations.d.ts +0 -2
  244. package/dist/lib/events/event-initializations.d.ts.map +0 -1
  245. package/dist/lib/events/event-initializations.js +0 -5
  246. package/dist/lib/events/event-initializations.js.map +0 -1
@@ -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;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,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"]}
@@ -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"}
@@ -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":"AAGA,wBAAsB,kBAAkB,kBAGvC"}
@@ -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":"AAIA,wBAAsB,0DAA0D,kBAI/E"}