@lyxa.ai/marketing 1.0.64 → 1.0.67

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 (334) hide show
  1. package/dist/lib/event/event-initializations.d.ts.map +1 -1
  2. package/dist/lib/event/event-initializations.js +0 -1
  3. package/dist/lib/event/event-initializations.js.map +1 -1
  4. package/dist/lib/event/event-listeners/event-listeners.d.ts +0 -1
  5. package/dist/lib/event/event-listeners/event-listeners.d.ts.map +1 -1
  6. package/dist/lib/event/event-listeners/event-listeners.js +12 -62
  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 +2 -1
  9. package/dist/lib/event/events/marketing-product-seed.event.d.ts.map +1 -1
  10. package/dist/lib/event/events/marketing-product-seed.event.js.map +1 -1
  11. package/dist/lib/index.d.ts +127 -347
  12. package/dist/lib/index.d.ts.map +1 -1
  13. package/dist/lib/index.js +0 -2
  14. package/dist/lib/index.js.map +1 -1
  15. package/dist/lib/modules/coupon/routers/coupon.router.d.ts +27 -27
  16. package/dist/lib/modules/coupon/routers/coupon.router.d.ts.map +1 -1
  17. package/dist/lib/modules/coupon/services/patterns/repository/CouponMetricsRepository.d.ts.map +1 -1
  18. package/dist/lib/modules/coupon/services/patterns/repository/CouponMetricsRepository.js +18 -3
  19. package/dist/lib/modules/coupon/services/patterns/repository/CouponMetricsRepository.js.map +1 -1
  20. package/dist/lib/modules/coupon/validations/all-coupons.validation.d.ts +6 -6
  21. package/dist/lib/modules/coupon/validations/coupon.validation.d.ts +30 -30
  22. package/dist/lib/modules/coupon/validations/create-coupon.validation.d.ts.map +1 -1
  23. package/dist/lib/modules/coupon/validations/create-coupon.validation.js +1 -4
  24. package/dist/lib/modules/coupon/validations/create-coupon.validation.js.map +1 -1
  25. package/dist/lib/modules/deal-setting/routers/deal-setting.router.d.ts +9 -9
  26. package/dist/lib/modules/deal-setting/routers/deal-setting.router.d.ts.map +1 -1
  27. package/dist/lib/modules/deal-setting/services/deal-setting.service.d.ts.map +1 -1
  28. package/dist/lib/modules/deal-setting/services/deal-setting.service.js +1 -4
  29. package/dist/lib/modules/deal-setting/services/deal-setting.service.js.map +1 -1
  30. package/dist/lib/modules/deal-setting/validations/deal-setting.validation.d.ts +6 -6
  31. package/dist/lib/modules/featured-setting/routers/featured-setting.router.d.ts +8 -8
  32. package/dist/lib/modules/featured-setting/routers/featured-setting.router.d.ts.map +1 -1
  33. package/dist/lib/modules/featured-setting/services/featured-setting.service.d.ts.map +1 -1
  34. package/dist/lib/modules/featured-setting/services/featured-setting.service.js +0 -3
  35. package/dist/lib/modules/featured-setting/services/featured-setting.service.js.map +1 -1
  36. package/dist/lib/modules/featured-setting/validations/featured-setting.validation.d.ts +6 -6
  37. package/dist/lib/modules/limited-time-offer/campaign/campaign.router.d.ts +14 -60
  38. package/dist/lib/modules/limited-time-offer/campaign/campaign.router.d.ts.map +1 -1
  39. package/dist/lib/modules/limited-time-offer/campaign/campaign.router.js +0 -11
  40. package/dist/lib/modules/limited-time-offer/campaign/campaign.router.js.map +1 -1
  41. package/dist/lib/modules/limited-time-offer/campaign/jobs/index.d.ts.map +1 -1
  42. package/dist/lib/modules/limited-time-offer/campaign/jobs/index.js +0 -6
  43. package/dist/lib/modules/limited-time-offer/campaign/jobs/index.js.map +1 -1
  44. package/dist/lib/modules/limited-time-offer/campaign/jobs/limited-time-offer-campaign.worker.d.ts +1 -0
  45. package/dist/lib/modules/limited-time-offer/campaign/jobs/limited-time-offer-campaign.worker.d.ts.map +1 -1
  46. package/dist/lib/modules/limited-time-offer/campaign/jobs/limited-time-offer-campaign.worker.js +6 -2
  47. package/dist/lib/modules/limited-time-offer/campaign/jobs/limited-time-offer-campaign.worker.js.map +1 -1
  48. package/dist/lib/modules/limited-time-offer/campaign/limited-time-offer-campaign.builder.d.ts +3 -16
  49. package/dist/lib/modules/limited-time-offer/campaign/limited-time-offer-campaign.builder.d.ts.map +1 -1
  50. package/dist/lib/modules/limited-time-offer/campaign/limited-time-offer-campaign.builder.js +3 -22
  51. package/dist/lib/modules/limited-time-offer/campaign/limited-time-offer-campaign.builder.js.map +1 -1
  52. package/dist/lib/modules/limited-time-offer/campaign/limited-time-offer-campaign.repository.d.ts +0 -2
  53. package/dist/lib/modules/limited-time-offer/campaign/limited-time-offer-campaign.repository.d.ts.map +1 -1
  54. package/dist/lib/modules/limited-time-offer/campaign/limited-time-offer-campaign.repository.js +0 -12
  55. package/dist/lib/modules/limited-time-offer/campaign/limited-time-offer-campaign.repository.js.map +1 -1
  56. package/dist/lib/modules/limited-time-offer/campaign/limited-time-offer-campaign.validation.d.ts +64 -271
  57. package/dist/lib/modules/limited-time-offer/campaign/limited-time-offer-campaign.validation.d.ts.map +1 -1
  58. package/dist/lib/modules/limited-time-offer/campaign/limited-time-offer-campaign.validation.js +1 -19
  59. package/dist/lib/modules/limited-time-offer/campaign/limited-time-offer-campaign.validation.js.map +1 -1
  60. package/dist/lib/modules/limited-time-offer/campaign/services/limited-time-offer-campaign-lifecycle.service.d.ts +1 -10
  61. package/dist/lib/modules/limited-time-offer/campaign/services/limited-time-offer-campaign-lifecycle.service.d.ts.map +1 -1
  62. package/dist/lib/modules/limited-time-offer/campaign/services/limited-time-offer-campaign-lifecycle.service.js +1 -78
  63. package/dist/lib/modules/limited-time-offer/campaign/services/limited-time-offer-campaign-lifecycle.service.js.map +1 -1
  64. package/dist/lib/modules/limited-time-offer/campaign/services/limited-time-offer-campaign-scheduler.service.d.ts +0 -3
  65. package/dist/lib/modules/limited-time-offer/campaign/services/limited-time-offer-campaign-scheduler.service.d.ts.map +1 -1
  66. package/dist/lib/modules/limited-time-offer/campaign/services/limited-time-offer-campaign-scheduler.service.js +8 -66
  67. package/dist/lib/modules/limited-time-offer/campaign/services/limited-time-offer-campaign-scheduler.service.js.map +1 -1
  68. package/dist/lib/modules/limited-time-offer/campaign/services/limited-time-offer-campaign.service.d.ts +1 -1
  69. package/dist/lib/modules/limited-time-offer/campaign/services/limited-time-offer-campaign.service.d.ts.map +1 -1
  70. package/dist/lib/modules/limited-time-offer/campaign/services/limited-time-offer-campaign.service.js +19 -41
  71. package/dist/lib/modules/limited-time-offer/campaign/services/limited-time-offer-campaign.service.js.map +1 -1
  72. package/dist/lib/modules/limited-time-offer/config/limited-time-offer-config.validation.d.ts +6 -6
  73. package/dist/lib/modules/limited-time-offer/config/limited-time-offer.router.d.ts +3 -3
  74. package/dist/lib/modules/limited-time-offer/limited-time-offer.router.d.ts +22 -253
  75. package/dist/lib/modules/limited-time-offer/limited-time-offer.router.d.ts.map +1 -1
  76. package/dist/lib/modules/limited-time-offer/limited-time-offer.service.d.ts +0 -2
  77. package/dist/lib/modules/limited-time-offer/limited-time-offer.service.d.ts.map +1 -1
  78. package/dist/lib/modules/limited-time-offer/limited-time-offer.service.js +4 -10
  79. package/dist/lib/modules/limited-time-offer/limited-time-offer.service.js.map +1 -1
  80. package/dist/lib/modules/limited-time-offer/notification/limited-time-offer-notification.constants.d.ts +1 -1
  81. package/dist/lib/modules/limited-time-offer/notification/limited-time-offer-notification.constants.js +1 -1
  82. package/dist/lib/modules/limited-time-offer/notification/limited-time-offer-notification.constants.js.map +1 -1
  83. package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.builder.d.ts +3 -30
  84. package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.builder.d.ts.map +1 -1
  85. package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.builder.js +1 -23
  86. package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.builder.js.map +1 -1
  87. package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.repository.d.ts +0 -18
  88. package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.repository.d.ts.map +1 -1
  89. package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.repository.js +0 -103
  90. package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.repository.js.map +1 -1
  91. package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.router.d.ts +4 -189
  92. package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.router.d.ts.map +1 -1
  93. package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.router.js +0 -29
  94. package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.router.js.map +1 -1
  95. package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.validation.d.ts +127 -526
  96. package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.validation.d.ts.map +1 -1
  97. package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.validation.js +6 -16
  98. package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.validation.js.map +1 -1
  99. package/dist/lib/modules/limited-time-offer/participant/services/limited-time-offer-participant-marketing.service.d.ts +4 -11
  100. package/dist/lib/modules/limited-time-offer/participant/services/limited-time-offer-participant-marketing.service.d.ts.map +1 -1
  101. package/dist/lib/modules/limited-time-offer/participant/services/limited-time-offer-participant-marketing.service.js +7 -48
  102. package/dist/lib/modules/limited-time-offer/participant/services/limited-time-offer-participant-marketing.service.js.map +1 -1
  103. package/dist/lib/modules/limited-time-offer/participant/services/limited-time-offer-participant.service.d.ts +5 -18
  104. package/dist/lib/modules/limited-time-offer/participant/services/limited-time-offer-participant.service.d.ts.map +1 -1
  105. package/dist/lib/modules/limited-time-offer/participant/services/limited-time-offer-participant.service.js +17 -98
  106. package/dist/lib/modules/limited-time-offer/participant/services/limited-time-offer-participant.service.js.map +1 -1
  107. package/dist/lib/modules/marketing/routers/marketing.router.d.ts +14 -3
  108. package/dist/lib/modules/marketing/routers/marketing.router.d.ts.map +1 -1
  109. package/dist/lib/modules/marketing/routers/marketing.router.js +4 -0
  110. package/dist/lib/modules/marketing/routers/marketing.router.js.map +1 -1
  111. package/dist/lib/modules/marketing/services/marketing.service.d.ts +2 -7
  112. package/dist/lib/modules/marketing/services/marketing.service.d.ts.map +1 -1
  113. package/dist/lib/modules/marketing/services/marketing.service.js +49 -85
  114. package/dist/lib/modules/marketing/services/marketing.service.js.map +1 -1
  115. package/dist/lib/modules/marketing/services/product-marketing.service.d.ts +3 -2
  116. package/dist/lib/modules/marketing/services/product-marketing.service.d.ts.map +1 -1
  117. package/dist/lib/modules/marketing/services/product-marketing.service.js +13 -42
  118. package/dist/lib/modules/marketing/services/product-marketing.service.js.map +1 -1
  119. package/dist/lib/modules/marketing/services/spend-to-get-progress.service.d.ts +13 -0
  120. package/dist/lib/modules/marketing/services/spend-to-get-progress.service.d.ts.map +1 -1
  121. package/dist/lib/modules/marketing/services/spend-to-get-progress.service.js +24 -0
  122. package/dist/lib/modules/marketing/services/spend-to-get-progress.service.js.map +1 -1
  123. package/dist/lib/modules/marketing/services/synchronize-product-marketing.service.d.ts.map +1 -1
  124. package/dist/lib/modules/marketing/services/synchronize-product-marketing.service.js +27 -95
  125. package/dist/lib/modules/marketing/services/synchronize-product-marketing.service.js.map +1 -1
  126. package/dist/lib/modules/marketing/validations/all-marketings.validation.d.ts +4 -4
  127. package/dist/lib/modules/marketing/validations/buy1-get1-marketing.validation.d.ts +3 -3
  128. package/dist/lib/modules/marketing/validations/discount-marketing.validation.d.ts +3 -3
  129. package/dist/lib/modules/marketing/validations/marketing.validation.d.ts +8 -0
  130. package/dist/lib/modules/marketing/validations/marketing.validation.d.ts.map +1 -1
  131. package/dist/lib/modules/marketing/validations/marketing.validation.js +4 -1
  132. package/dist/lib/modules/marketing/validations/marketing.validation.js.map +1 -1
  133. package/dist/lib/modules/marketing/validations/product-marketing.validation.d.ts +2 -2
  134. package/dist/lib/modules/punch-marketing-history/routers/punch-marketing-history.router.d.ts +12 -12
  135. package/dist/lib/modules/punch-marketing-history/routers/punch-marketing-history.router.d.ts.map +1 -1
  136. package/dist/lib/modules/punch-marketing-history/validations/punch-marketing-history.validation.d.ts +8 -8
  137. package/dist/lib/modules/referral-setting/routers/referral-setting.router.d.ts +4 -4
  138. package/dist/lib/modules/referral-setting/validations/referral-setting.validation.d.ts +6 -6
  139. package/dist/lib/modules/spend-to-get-history/spend-to-get-history.router.d.ts +10 -10
  140. package/dist/lib/modules/spend-to-get-history/spend-to-get-history.router.d.ts.map +1 -1
  141. package/dist/lib/modules/spend-to-get-history/spend-to-get-history.validation.d.ts +6 -6
  142. package/dist/lib/modules/tournament/config/config.router.d.ts +4 -4
  143. package/dist/lib/modules/tournament/config/config.validation.d.ts +12 -12
  144. package/dist/lib/modules/tournament/match/match.router.d.ts +5 -5
  145. package/dist/lib/modules/tournament/match/match.validation.d.ts +12 -12
  146. package/dist/lib/modules/tournament/participant/participant.router.d.ts +3 -3
  147. package/dist/lib/modules/tournament/participant/participant.validation.d.ts +24 -24
  148. package/dist/lib/modules/tournament/prediction/prediction.router.d.ts +3 -3
  149. package/dist/lib/modules/tournament/prediction/prediction.validation.d.ts +18 -18
  150. package/dist/lib/modules/tournament/score/score.router.d.ts +1 -1
  151. package/dist/lib/modules/tournament/score/score.validation.d.ts +6 -6
  152. package/dist/lib/modules/tournament/statistics/statistics.router.d.ts +1 -1
  153. package/dist/lib/modules/tournament/statistics/statistics.validation.d.ts +6 -6
  154. package/dist/lib/modules/tournament/team/team.router.d.ts +3 -3
  155. package/dist/lib/modules/tournament/team/team.validation.d.ts +18 -18
  156. package/dist/lib/modules/tournament/tournament.router.d.ts +21 -21
  157. package/dist/lib/modules/tournament/tournament.validation.d.ts +6 -6
  158. package/dist/lib/utility/feature-flags.d.ts +3 -0
  159. package/dist/lib/utility/feature-flags.d.ts.map +1 -0
  160. package/dist/lib/utility/feature-flags.js +16 -0
  161. package/dist/lib/utility/feature-flags.js.map +1 -0
  162. package/dist/types/event/event-initializations.d.ts.map +1 -1
  163. package/dist/types/event/event-listeners/event-listeners.d.ts +0 -1
  164. package/dist/types/event/event-listeners/event-listeners.d.ts.map +1 -1
  165. package/dist/types/event/events/marketing-product-seed.event.d.ts +2 -1
  166. package/dist/types/event/events/marketing-product-seed.event.d.ts.map +1 -1
  167. package/dist/types/index.d.ts +127 -347
  168. package/dist/types/index.d.ts.map +1 -1
  169. package/dist/types/modules/coupon/routers/coupon.router.d.ts +27 -27
  170. package/dist/types/modules/coupon/routers/coupon.router.d.ts.map +1 -1
  171. package/dist/types/modules/coupon/services/patterns/repository/CouponMetricsRepository.d.ts.map +1 -1
  172. package/dist/types/modules/coupon/validations/all-coupons.validation.d.ts +6 -6
  173. package/dist/types/modules/coupon/validations/coupon.validation.d.ts +30 -30
  174. package/dist/types/modules/coupon/validations/create-coupon.validation.d.ts.map +1 -1
  175. package/dist/types/modules/deal-setting/routers/deal-setting.router.d.ts +9 -9
  176. package/dist/types/modules/deal-setting/routers/deal-setting.router.d.ts.map +1 -1
  177. package/dist/types/modules/deal-setting/services/deal-setting.service.d.ts.map +1 -1
  178. package/dist/types/modules/deal-setting/validations/deal-setting.validation.d.ts +6 -6
  179. package/dist/types/modules/featured-setting/routers/featured-setting.router.d.ts +8 -8
  180. package/dist/types/modules/featured-setting/routers/featured-setting.router.d.ts.map +1 -1
  181. package/dist/types/modules/featured-setting/services/featured-setting.service.d.ts.map +1 -1
  182. package/dist/types/modules/featured-setting/validations/featured-setting.validation.d.ts +6 -6
  183. package/dist/types/modules/limited-time-offer/campaign/campaign.router.d.ts +14 -60
  184. package/dist/types/modules/limited-time-offer/campaign/campaign.router.d.ts.map +1 -1
  185. package/dist/types/modules/limited-time-offer/campaign/jobs/index.d.ts.map +1 -1
  186. package/dist/types/modules/limited-time-offer/campaign/jobs/limited-time-offer-campaign.worker.d.ts +1 -0
  187. package/dist/types/modules/limited-time-offer/campaign/jobs/limited-time-offer-campaign.worker.d.ts.map +1 -1
  188. package/dist/types/modules/limited-time-offer/campaign/limited-time-offer-campaign.builder.d.ts +3 -16
  189. package/dist/types/modules/limited-time-offer/campaign/limited-time-offer-campaign.builder.d.ts.map +1 -1
  190. package/dist/types/modules/limited-time-offer/campaign/limited-time-offer-campaign.repository.d.ts +0 -2
  191. package/dist/types/modules/limited-time-offer/campaign/limited-time-offer-campaign.repository.d.ts.map +1 -1
  192. package/dist/types/modules/limited-time-offer/campaign/limited-time-offer-campaign.validation.d.ts +64 -271
  193. package/dist/types/modules/limited-time-offer/campaign/limited-time-offer-campaign.validation.d.ts.map +1 -1
  194. package/dist/types/modules/limited-time-offer/campaign/services/limited-time-offer-campaign-lifecycle.service.d.ts +1 -10
  195. package/dist/types/modules/limited-time-offer/campaign/services/limited-time-offer-campaign-lifecycle.service.d.ts.map +1 -1
  196. package/dist/types/modules/limited-time-offer/campaign/services/limited-time-offer-campaign-scheduler.service.d.ts +0 -3
  197. package/dist/types/modules/limited-time-offer/campaign/services/limited-time-offer-campaign-scheduler.service.d.ts.map +1 -1
  198. package/dist/types/modules/limited-time-offer/campaign/services/limited-time-offer-campaign.service.d.ts +1 -1
  199. package/dist/types/modules/limited-time-offer/campaign/services/limited-time-offer-campaign.service.d.ts.map +1 -1
  200. package/dist/types/modules/limited-time-offer/config/limited-time-offer-config.validation.d.ts +6 -6
  201. package/dist/types/modules/limited-time-offer/config/limited-time-offer.router.d.ts +3 -3
  202. package/dist/types/modules/limited-time-offer/limited-time-offer.router.d.ts +22 -253
  203. package/dist/types/modules/limited-time-offer/limited-time-offer.router.d.ts.map +1 -1
  204. package/dist/types/modules/limited-time-offer/limited-time-offer.service.d.ts +0 -2
  205. package/dist/types/modules/limited-time-offer/limited-time-offer.service.d.ts.map +1 -1
  206. package/dist/types/modules/limited-time-offer/notification/limited-time-offer-notification.constants.d.ts +1 -1
  207. package/dist/types/modules/limited-time-offer/participant/limited-time-offer-participant.builder.d.ts +3 -30
  208. package/dist/types/modules/limited-time-offer/participant/limited-time-offer-participant.builder.d.ts.map +1 -1
  209. package/dist/types/modules/limited-time-offer/participant/limited-time-offer-participant.repository.d.ts +0 -18
  210. package/dist/types/modules/limited-time-offer/participant/limited-time-offer-participant.repository.d.ts.map +1 -1
  211. package/dist/types/modules/limited-time-offer/participant/limited-time-offer-participant.router.d.ts +4 -189
  212. package/dist/types/modules/limited-time-offer/participant/limited-time-offer-participant.router.d.ts.map +1 -1
  213. package/dist/types/modules/limited-time-offer/participant/limited-time-offer-participant.validation.d.ts +127 -526
  214. package/dist/types/modules/limited-time-offer/participant/limited-time-offer-participant.validation.d.ts.map +1 -1
  215. package/dist/types/modules/limited-time-offer/participant/services/limited-time-offer-participant-marketing.service.d.ts +4 -11
  216. package/dist/types/modules/limited-time-offer/participant/services/limited-time-offer-participant-marketing.service.d.ts.map +1 -1
  217. package/dist/types/modules/limited-time-offer/participant/services/limited-time-offer-participant.service.d.ts +5 -18
  218. package/dist/types/modules/limited-time-offer/participant/services/limited-time-offer-participant.service.d.ts.map +1 -1
  219. package/dist/types/modules/marketing/routers/marketing.router.d.ts +14 -3
  220. package/dist/types/modules/marketing/routers/marketing.router.d.ts.map +1 -1
  221. package/dist/types/modules/marketing/services/marketing.service.d.ts +2 -7
  222. package/dist/types/modules/marketing/services/marketing.service.d.ts.map +1 -1
  223. package/dist/types/modules/marketing/services/product-marketing.service.d.ts +3 -7
  224. package/dist/types/modules/marketing/services/product-marketing.service.d.ts.map +1 -1
  225. package/dist/types/modules/marketing/services/spend-to-get-progress.service.d.ts +18 -0
  226. package/dist/types/modules/marketing/services/spend-to-get-progress.service.d.ts.map +1 -1
  227. package/dist/types/modules/marketing/services/synchronize-product-marketing.service.d.ts.map +1 -1
  228. package/dist/types/modules/marketing/validations/all-marketings.validation.d.ts +4 -4
  229. package/dist/types/modules/marketing/validations/buy1-get1-marketing.validation.d.ts +3 -3
  230. package/dist/types/modules/marketing/validations/discount-marketing.validation.d.ts +3 -3
  231. package/dist/types/modules/marketing/validations/marketing.validation.d.ts +8 -0
  232. package/dist/types/modules/marketing/validations/marketing.validation.d.ts.map +1 -1
  233. package/dist/types/modules/marketing/validations/product-marketing.validation.d.ts +2 -2
  234. package/dist/types/modules/punch-marketing-history/routers/punch-marketing-history.router.d.ts +12 -12
  235. package/dist/types/modules/punch-marketing-history/routers/punch-marketing-history.router.d.ts.map +1 -1
  236. package/dist/types/modules/punch-marketing-history/validations/punch-marketing-history.validation.d.ts +8 -8
  237. package/dist/types/modules/referral-setting/routers/referral-setting.router.d.ts +4 -4
  238. package/dist/types/modules/referral-setting/validations/referral-setting.validation.d.ts +6 -6
  239. package/dist/types/modules/spend-to-get-history/spend-to-get-history.router.d.ts +10 -10
  240. package/dist/types/modules/spend-to-get-history/spend-to-get-history.router.d.ts.map +1 -1
  241. package/dist/types/modules/spend-to-get-history/spend-to-get-history.validation.d.ts +6 -6
  242. package/dist/types/modules/tournament/config/config.router.d.ts +4 -4
  243. package/dist/types/modules/tournament/config/config.validation.d.ts +12 -12
  244. package/dist/types/modules/tournament/match/match.router.d.ts +5 -5
  245. package/dist/types/modules/tournament/match/match.validation.d.ts +12 -12
  246. package/dist/types/modules/tournament/participant/participant.router.d.ts +3 -3
  247. package/dist/types/modules/tournament/participant/participant.validation.d.ts +24 -24
  248. package/dist/types/modules/tournament/prediction/prediction.router.d.ts +3 -3
  249. package/dist/types/modules/tournament/prediction/prediction.validation.d.ts +18 -18
  250. package/dist/types/modules/tournament/score/score.router.d.ts +1 -1
  251. package/dist/types/modules/tournament/score/score.validation.d.ts +6 -6
  252. package/dist/types/modules/tournament/statistics/statistics.router.d.ts +1 -1
  253. package/dist/types/modules/tournament/statistics/statistics.validation.d.ts +6 -6
  254. package/dist/types/modules/tournament/team/team.router.d.ts +3 -3
  255. package/dist/types/modules/tournament/team/team.validation.d.ts +18 -18
  256. package/dist/types/modules/tournament/tournament.router.d.ts +21 -21
  257. package/dist/types/modules/tournament/tournament.validation.d.ts +6 -6
  258. package/dist/types/utility/feature-flags.d.ts +12 -0
  259. package/dist/types/utility/feature-flags.d.ts.map +1 -0
  260. package/package.json +2 -2
  261. package/dist/lib/modules/spend-to-get-history/routers/index.d.ts +0 -2
  262. package/dist/lib/modules/spend-to-get-history/routers/index.d.ts.map +0 -1
  263. package/dist/lib/modules/spend-to-get-history/routers/index.js +0 -18
  264. package/dist/lib/modules/spend-to-get-history/routers/index.js.map +0 -1
  265. package/dist/lib/modules/spend-to-get-history/routers/spend-to-get-history.router.js +0 -62
  266. package/dist/lib/modules/spend-to-get-history/routers/spend-to-get-history.router.js.map +0 -1
  267. package/dist/lib/modules/spend-to-get-history/services/index.d.ts +0 -2
  268. package/dist/lib/modules/spend-to-get-history/services/index.d.ts.map +0 -1
  269. package/dist/lib/modules/spend-to-get-history/services/index.js +0 -18
  270. package/dist/lib/modules/spend-to-get-history/services/index.js.map +0 -1
  271. package/dist/lib/modules/spend-to-get-history/services/spend-to-get-history.service.d.ts +0 -24
  272. package/dist/lib/modules/spend-to-get-history/services/spend-to-get-history.service.d.ts.map +0 -1
  273. package/dist/lib/modules/spend-to-get-history/services/spend-to-get-history.service.js +0 -136
  274. package/dist/lib/modules/spend-to-get-history/services/spend-to-get-history.service.js.map +0 -1
  275. package/dist/lib/modules/spend-to-get-history/validations/index.d.ts +0 -2
  276. package/dist/lib/modules/spend-to-get-history/validations/index.d.ts.map +0 -1
  277. package/dist/lib/modules/spend-to-get-history/validations/index.js +0 -18
  278. package/dist/lib/modules/spend-to-get-history/validations/index.js.map +0 -1
  279. package/dist/lib/modules/spend-to-get-history/validations/spend-to-get-history.validation.d.ts +0 -232
  280. package/dist/lib/modules/spend-to-get-history/validations/spend-to-get-history.validation.d.ts.map +0 -1
  281. package/dist/lib/modules/spend-to-get-history/validations/spend-to-get-history.validation.js +0 -30
  282. package/dist/lib/modules/spend-to-get-history/validations/spend-to-get-history.validation.js.map +0 -1
  283. package/dist/lib/modules/tournament/match/events/match-ended.consumer.d.ts +0 -2
  284. package/dist/lib/modules/tournament/match/events/match-ended.consumer.d.ts.map +0 -1
  285. package/dist/lib/modules/tournament/match/events/match-ended.consumer.js +0 -15
  286. package/dist/lib/modules/tournament/match/events/match-ended.consumer.js.map +0 -1
  287. package/dist/lib/modules/tournament/match/events/match-ended.event.d.ts +0 -14
  288. package/dist/lib/modules/tournament/match/events/match-ended.event.d.ts.map +0 -1
  289. package/dist/lib/modules/tournament/match/events/match-ended.event.js +0 -12
  290. package/dist/lib/modules/tournament/match/events/match-ended.event.js.map +0 -1
  291. package/dist/lib/modules/tournament/notification/jobs/notification.producer.d.ts +0 -10
  292. package/dist/lib/modules/tournament/notification/jobs/notification.producer.d.ts.map +0 -1
  293. package/dist/lib/modules/tournament/notification/jobs/notification.producer.js +0 -23
  294. package/dist/lib/modules/tournament/notification/jobs/notification.producer.js.map +0 -1
  295. package/dist/lib/modules/tournament/notification/jobs/notification.worker.d.ts +0 -9
  296. package/dist/lib/modules/tournament/notification/jobs/notification.worker.d.ts.map +0 -1
  297. package/dist/lib/modules/tournament/notification/jobs/notification.worker.js +0 -82
  298. package/dist/lib/modules/tournament/notification/jobs/notification.worker.js.map +0 -1
  299. package/dist/lib/modules/tournament/notification/notification.schedule.config.d.ts +0 -10
  300. package/dist/lib/modules/tournament/notification/notification.schedule.config.d.ts.map +0 -1
  301. package/dist/lib/modules/tournament/notification/notification.schedule.config.js +0 -15
  302. package/dist/lib/modules/tournament/notification/notification.schedule.config.js.map +0 -1
  303. package/dist/lib/modules/tournament/notification/notification.scheduler.service.d.ts +0 -10
  304. package/dist/lib/modules/tournament/notification/notification.scheduler.service.d.ts.map +0 -1
  305. package/dist/lib/modules/tournament/notification/notification.scheduler.service.js +0 -73
  306. package/dist/lib/modules/tournament/notification/notification.scheduler.service.js.map +0 -1
  307. package/dist/types/events/event-initializations.d.ts +0 -2
  308. package/dist/types/events/event-initializations.d.ts.map +0 -1
  309. package/dist/types/modules/limited-time-offer/participant/limited-time-offer-participant.service.d.ts +0 -1
  310. package/dist/types/modules/limited-time-offer/participant/limited-time-offer-participant.service.d.ts.map +0 -1
  311. package/dist/types/modules/spend-to-get-history/routers/index.d.ts +0 -2
  312. package/dist/types/modules/spend-to-get-history/routers/index.d.ts.map +0 -1
  313. package/dist/types/modules/spend-to-get-history/services/index.d.ts +0 -2
  314. package/dist/types/modules/spend-to-get-history/services/index.d.ts.map +0 -1
  315. package/dist/types/modules/spend-to-get-history/services/spend-to-get-history.service.d.ts +0 -56
  316. package/dist/types/modules/spend-to-get-history/services/spend-to-get-history.service.d.ts.map +0 -1
  317. package/dist/types/modules/spend-to-get-history/validations/index.d.ts +0 -2
  318. package/dist/types/modules/spend-to-get-history/validations/index.d.ts.map +0 -1
  319. package/dist/types/modules/spend-to-get-history/validations/spend-to-get-history.validation.d.ts +0 -241
  320. package/dist/types/modules/spend-to-get-history/validations/spend-to-get-history.validation.d.ts.map +0 -1
  321. package/dist/types/modules/tournament/config/tournament-config.validation.d.ts +0 -201
  322. package/dist/types/modules/tournament/config/tournament-config.validation.d.ts.map +0 -1
  323. package/dist/types/modules/tournament/match/events/match-ended.consumer.d.ts +0 -2
  324. package/dist/types/modules/tournament/match/events/match-ended.consumer.d.ts.map +0 -1
  325. package/dist/types/modules/tournament/match/events/match-ended.event.d.ts +0 -14
  326. package/dist/types/modules/tournament/match/events/match-ended.event.d.ts.map +0 -1
  327. package/dist/types/modules/tournament/notification/jobs/notification.producer.d.ts +0 -10
  328. package/dist/types/modules/tournament/notification/jobs/notification.producer.d.ts.map +0 -1
  329. package/dist/types/modules/tournament/notification/jobs/notification.worker.d.ts +0 -9
  330. package/dist/types/modules/tournament/notification/jobs/notification.worker.d.ts.map +0 -1
  331. package/dist/types/modules/tournament/notification/notification.schedule.config.d.ts +0 -10
  332. package/dist/types/modules/tournament/notification/notification.schedule.config.d.ts.map +0 -1
  333. package/dist/types/modules/tournament/notification/notification.scheduler.service.d.ts +0 -10
  334. package/dist/types/modules/tournament/notification/notification.scheduler.service.d.ts.map +0 -1
@@ -1,9 +0,0 @@
1
- export declare class TournamentNotificationWorker {
2
- private notificationService;
3
- private templateRepository;
4
- private matchRepository;
5
- constructor();
6
- startWorker(): void;
7
- }
8
- export declare const tournamentNotificationWorker: TournamentNotificationWorker;
9
- //# sourceMappingURL=notification.worker.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"notification.worker.d.ts","sourceRoot":"/","sources":["modules/tournament/notification/jobs/notification.worker.ts"],"names":[],"mappings":"AAQA,qBACa,4BAA4B;IACrC,OAAO,CAAC,mBAAmB,CAAgC;IAC3D,OAAO,CAAC,kBAAkB,CAAiC;IAC3D,OAAO,CAAC,eAAe,CAA4B;;IAQ5C,WAAW,IAAI,IAAI;CAe7B;AAED,eAAO,MAAM,4BAA4B,8BAA8C,CAAC"}
@@ -1,82 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
19
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
20
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
21
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
22
- return c > 3 && r && Object.defineProperty(target, key, r), r;
23
- };
24
- var __importStar = (this && this.__importStar) || (function () {
25
- var ownKeys = function(o) {
26
- ownKeys = Object.getOwnPropertyNames || function (o) {
27
- var ar = [];
28
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
29
- return ar;
30
- };
31
- return ownKeys(o);
32
- };
33
- return function (mod) {
34
- if (mod && mod.__esModule) return mod;
35
- var result = {};
36
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
37
- __setModuleDefault(result, mod);
38
- return result;
39
- };
40
- })();
41
- var __metadata = (this && this.__metadata) || function (k, v) {
42
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
43
- };
44
- Object.defineProperty(exports, "__esModule", { value: true });
45
- exports.tournamentNotificationWorker = exports.TournamentNotificationWorker = void 0;
46
- const typedi_1 = __importStar(require("typedi"));
47
- const typegoose_1 = require("@typegoose/typegoose");
48
- const core_1 = require("@lyxa.ai/core");
49
- const notification_producer_1 = require("./notification.producer");
50
- const notification_service_1 = require("../notification.service");
51
- const notification_template_repository_1 = require("../notification-template.repository");
52
- const match_repository_1 = require("../../match/match.repository");
53
- let TournamentNotificationWorker = class TournamentNotificationWorker {
54
- notificationService;
55
- templateRepository;
56
- matchRepository;
57
- constructor() {
58
- this.notificationService = typedi_1.default.get(notification_service_1.TournamentNotificationService);
59
- this.templateRepository = typedi_1.default.get(notification_template_repository_1.NotificationTemplateRepository);
60
- this.matchRepository = typedi_1.default.get(match_repository_1.TournamentMatchRepository);
61
- }
62
- startWorker() {
63
- (0, core_1.getLibraries)().getBullMQService().createWorker(notification_producer_1.TOURNAMENT_NOTIFICATION_QUEUE, async (job) => {
64
- const { tournamentId, matchId, target } = job.data;
65
- const tournamentObjId = new typegoose_1.mongoose.Types.ObjectId(tournamentId);
66
- const matchObjId = new typegoose_1.mongoose.Types.ObjectId(matchId);
67
- const alreadySent = await this.matchRepository.getNotificationFlag(tournamentObjId, matchObjId, job.name);
68
- if (alreadySent)
69
- return;
70
- const templates = await this.templateRepository.findTemplates(tournamentObjId);
71
- await this.notificationService.dispatchScheduledJob(job.name, target, templates, tournamentObjId, matchObjId);
72
- await this.matchRepository.setNotificationFlag(tournamentObjId, matchObjId, job.name);
73
- });
74
- }
75
- };
76
- exports.TournamentNotificationWorker = TournamentNotificationWorker;
77
- exports.TournamentNotificationWorker = TournamentNotificationWorker = __decorate([
78
- (0, typedi_1.Service)(),
79
- __metadata("design:paramtypes", [])
80
- ], TournamentNotificationWorker);
81
- exports.tournamentNotificationWorker = typedi_1.default.get(TournamentNotificationWorker);
82
- //# sourceMappingURL=notification.worker.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"notification.worker.js","sourceRoot":"/","sources":["modules/tournament/notification/jobs/notification.worker.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,iDAA0C;AAC1C,oDAA8C;AAC9C,wCAA2C;AAC3C,mEAAqG;AACrG,kEAAsE;AACtE,0FAAmF;AACnF,mEAAuE;AAGhE,IAAM,4BAA4B,GAAlC,MAAM,4BAA4B;IAC7B,mBAAmB,CAAgC;IACnD,kBAAkB,CAAiC;IACnD,eAAe,CAA4B;IAEnD;QACI,IAAI,CAAC,mBAAmB,GAAG,gBAAS,CAAC,GAAG,CAAC,oDAA6B,CAAC,CAAC;QACxE,IAAI,CAAC,kBAAkB,GAAG,gBAAS,CAAC,GAAG,CAAC,iEAA8B,CAAC,CAAC;QACxE,IAAI,CAAC,eAAe,GAAG,gBAAS,CAAC,GAAG,CAAC,4CAAyB,CAAC,CAAC;IACpE,CAAC;IAEM,WAAW;QACd,IAAA,mBAAY,GAAE,CAAC,gBAAgB,EAAE,CAAC,YAAY,CAAC,qDAA6B,EAAE,KAAK,EAAC,GAAG,EAAC,EAAE;YACtF,MAAM,EAAC,YAAY,EAAE,OAAO,EAAE,MAAM,EAAC,GAAG,GAAG,CAAC,IAAqC,CAAC;YAClF,MAAM,eAAe,GAAG,IAAI,oBAAQ,CAAC,KAAK,CAAC,QAAQ,CAAC,YAAY,CAAC,CAAC;YAClE,MAAM,UAAU,GAAG,IAAI,oBAAQ,CAAC,KAAK,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;YAExD,MAAM,WAAW,GAAG,MAAM,IAAI,CAAC,eAAe,CAAC,mBAAmB,CAAC,eAAe,EAAE,UAAU,EAAE,GAAG,CAAC,IAAI,CAAC,CAAC;YAC1G,IAAI,WAAW;gBAAE,OAAO;YAExB,MAAM,SAAS,GAAG,MAAM,IAAI,CAAC,kBAAkB,CAAC,aAAa,CAAC,eAAe,CAAC,CAAC;YAC/E,MAAM,IAAI,CAAC,mBAAmB,CAAC,oBAAoB,CAAC,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,eAAe,EAAE,UAAU,CAAC,CAAC;YAE9G,MAAM,IAAI,CAAC,eAAe,CAAC,mBAAmB,CAAC,eAAe,EAAE,UAAU,EAAE,GAAG,CAAC,IAAI,CAAC,CAAC;QAC1F,CAAC,CAAC,CAAC;IACP,CAAC;CACJ,CAAA;AA1BY,oEAA4B;uCAA5B,4BAA4B;IADxC,IAAA,gBAAO,GAAE;;GACG,4BAA4B,CA0BxC;AAEY,QAAA,4BAA4B,GAAG,gBAAS,CAAC,GAAG,CAAC,4BAA4B,CAAC,CAAC","sourcesContent":["import Container, {Service} from 'typedi';\nimport {mongoose} from '@typegoose/typegoose';\nimport {getLibraries} from '@lyxa.ai/core';\nimport {TOURNAMENT_NOTIFICATION_QUEUE, TournamentNotificationJobData} from './notification.producer';\nimport {TournamentNotificationService} from '../notification.service';\nimport {NotificationTemplateRepository} from '../notification-template.repository';\nimport {TournamentMatchRepository} from '../../match/match.repository';\n\n@Service()\nexport class TournamentNotificationWorker {\n private notificationService: TournamentNotificationService;\n private templateRepository: NotificationTemplateRepository;\n private matchRepository: TournamentMatchRepository;\n\n constructor() {\n this.notificationService = Container.get(TournamentNotificationService);\n this.templateRepository = Container.get(NotificationTemplateRepository);\n this.matchRepository = Container.get(TournamentMatchRepository);\n }\n\n public startWorker(): void {\n getLibraries().getBullMQService().createWorker(TOURNAMENT_NOTIFICATION_QUEUE, async job => {\n const {tournamentId, matchId, target} = job.data as TournamentNotificationJobData;\n const tournamentObjId = new mongoose.Types.ObjectId(tournamentId);\n const matchObjId = new mongoose.Types.ObjectId(matchId);\n\n const alreadySent = await this.matchRepository.getNotificationFlag(tournamentObjId, matchObjId, job.name);\n if (alreadySent) return;\n\n const templates = await this.templateRepository.findTemplates(tournamentObjId);\n await this.notificationService.dispatchScheduledJob(job.name, target, templates, tournamentObjId, matchObjId);\n\n await this.matchRepository.setNotificationFlag(tournamentObjId, matchObjId, job.name);\n });\n }\n}\n\nexport const tournamentNotificationWorker = Container.get(TournamentNotificationWorker);\n"]}
@@ -1,10 +0,0 @@
1
- export declare enum NotificationTag {
2
- TOURNAMENT_ACTIVATION = "tournament-activation",
3
- MATCH_RESULT_WINNER = "match-result-winner",
4
- MATCH_RESULT_LOSER = "match-result-loser"
5
- }
6
- export declare enum ScheduledTarget {
7
- GLOBAL = "global",
8
- UNPREDICTED_PARTICIPANTS = "unpredicted-participants"
9
- }
10
- //# sourceMappingURL=notification.schedule.config.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"notification.schedule.config.d.ts","sourceRoot":"/","sources":["modules/tournament/notification/notification.schedule.config.ts"],"names":[],"mappings":"AAAA,oBAAY,eAAe;IACvB,qBAAqB,0BAA0B;IAC/C,mBAAmB,wBAAwB;IAC3C,kBAAkB,uBAAuB;CAC5C;AAED,oBAAY,eAAe;IACvB,MAAM,WAAW;IACjB,wBAAwB,6BAA6B;CACxD"}
@@ -1,15 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ScheduledTarget = exports.NotificationTag = void 0;
4
- var NotificationTag;
5
- (function (NotificationTag) {
6
- NotificationTag["TOURNAMENT_ACTIVATION"] = "tournament-activation";
7
- NotificationTag["MATCH_RESULT_WINNER"] = "match-result-winner";
8
- NotificationTag["MATCH_RESULT_LOSER"] = "match-result-loser";
9
- })(NotificationTag || (exports.NotificationTag = NotificationTag = {}));
10
- var ScheduledTarget;
11
- (function (ScheduledTarget) {
12
- ScheduledTarget["GLOBAL"] = "global";
13
- ScheduledTarget["UNPREDICTED_PARTICIPANTS"] = "unpredicted-participants";
14
- })(ScheduledTarget || (exports.ScheduledTarget = ScheduledTarget = {}));
15
- //# sourceMappingURL=notification.schedule.config.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"notification.schedule.config.js","sourceRoot":"/","sources":["modules/tournament/notification/notification.schedule.config.ts"],"names":[],"mappings":";;;AAAA,IAAY,eAIX;AAJD,WAAY,eAAe;IACvB,kEAA+C,CAAA;IAC/C,8DAA2C,CAAA;IAC3C,4DAAyC,CAAA;AAC7C,CAAC,EAJW,eAAe,+BAAf,eAAe,QAI1B;AAED,IAAY,eAGX;AAHD,WAAY,eAAe;IACvB,oCAAiB,CAAA;IACjB,wEAAqD,CAAA;AACzD,CAAC,EAHW,eAAe,+BAAf,eAAe,QAG1B","sourcesContent":["export enum NotificationTag {\n TOURNAMENT_ACTIVATION = 'tournament-activation',\n MATCH_RESULT_WINNER = 'match-result-winner',\n MATCH_RESULT_LOSER = 'match-result-loser',\n}\n\nexport enum ScheduledTarget {\n GLOBAL = 'global',\n UNPREDICTED_PARTICIPANTS = 'unpredicted-participants',\n}\n"]}
@@ -1,10 +0,0 @@
1
- import { mongoose } from '@typegoose/typegoose';
2
- import { ScheduledNotificationConfig } from '@lyxa.ai/core/dist/libraries/mongo/models';
3
- export declare class NotificationSchedulerService {
4
- private jobId;
5
- private buildJobData;
6
- scheduleForMatch(matchId: mongoose.Types.ObjectId, tournamentId: mongoose.Types.ObjectId, startingDate: Date, scheduledNotifications: ScheduledNotificationConfig[]): Promise<void>;
7
- cancelForMatch(matchId: mongoose.Types.ObjectId, scheduledNotifications: ScheduledNotificationConfig[]): Promise<void>;
8
- }
9
- export declare const notificationSchedulerService: NotificationSchedulerService;
10
- //# sourceMappingURL=notification.scheduler.service.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"notification.scheduler.service.d.ts","sourceRoot":"/","sources":["modules/tournament/notification/notification.scheduler.service.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EAAE,2BAA2B,EAAE,MAAM,2CAA2C,CAAC;AAGxF,qBACa,4BAA4B;IACrC,OAAO,CAAC,KAAK;IAIb,OAAO,CAAC,YAAY;IAIP,gBAAgB,CACzB,OAAO,EAAE,QAAQ,CAAC,KAAK,CAAC,QAAQ,EAChC,YAAY,EAAE,QAAQ,CAAC,KAAK,CAAC,QAAQ,EACrC,YAAY,EAAE,IAAI,EAClB,sBAAsB,EAAE,2BAA2B,EAAE,GACtD,OAAO,CAAC,IAAI,CAAC;IAcH,cAAc,CAAC,OAAO,EAAE,QAAQ,CAAC,KAAK,CAAC,QAAQ,EAAE,sBAAsB,EAAE,2BAA2B,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC;CAGtI;AAED,eAAO,MAAM,4BAA4B,8BAA8C,CAAC"}
@@ -1,73 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
19
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
20
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
21
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
22
- return c > 3 && r && Object.defineProperty(target, key, r), r;
23
- };
24
- var __importStar = (this && this.__importStar) || (function () {
25
- var ownKeys = function(o) {
26
- ownKeys = Object.getOwnPropertyNames || function (o) {
27
- var ar = [];
28
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
29
- return ar;
30
- };
31
- return ownKeys(o);
32
- };
33
- return function (mod) {
34
- if (mod && mod.__esModule) return mod;
35
- var result = {};
36
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
37
- __setModuleDefault(result, mod);
38
- return result;
39
- };
40
- })();
41
- Object.defineProperty(exports, "__esModule", { value: true });
42
- exports.notificationSchedulerService = exports.NotificationSchedulerService = void 0;
43
- const typedi_1 = __importStar(require("typedi"));
44
- const notification_producer_1 = require("./jobs/notification.producer");
45
- let NotificationSchedulerService = class NotificationSchedulerService {
46
- jobId(type, matchId) {
47
- return `tournament-${type}-${matchId}`;
48
- }
49
- buildJobData(tournamentId, matchId, target) {
50
- return { tournamentId: tournamentId.toString(), matchId: matchId.toString(), target };
51
- }
52
- async scheduleForMatch(matchId, tournamentId, startingDate, scheduledNotifications) {
53
- await Promise.all(scheduledNotifications.map(({ type, durationMins, target }) => {
54
- const delay = startingDate.getTime() - durationMins * 60 * 1000 - Date.now();
55
- if (delay <= 0)
56
- return Promise.resolve();
57
- return (0, notification_producer_1.addNotificationJob)(type, this.buildJobData(tournamentId, matchId, target), {
58
- delay,
59
- jobId: this.jobId(type, matchId),
60
- removeOnComplete: true,
61
- });
62
- }));
63
- }
64
- async cancelForMatch(matchId, scheduledNotifications) {
65
- await Promise.all(scheduledNotifications.map(({ type }) => (0, notification_producer_1.removeNotificationJob)(this.jobId(type, matchId))));
66
- }
67
- };
68
- exports.NotificationSchedulerService = NotificationSchedulerService;
69
- exports.NotificationSchedulerService = NotificationSchedulerService = __decorate([
70
- (0, typedi_1.Service)()
71
- ], NotificationSchedulerService);
72
- exports.notificationSchedulerService = typedi_1.default.get(NotificationSchedulerService);
73
- //# sourceMappingURL=notification.scheduler.service.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"notification.scheduler.service.js","sourceRoot":"/","sources":["modules/tournament/notification/notification.scheduler.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,iDAA4C;AAG5C,wEAAwH;AAGjH,IAAM,4BAA4B,GAAlC,MAAM,4BAA4B;IAC7B,KAAK,CAAC,IAAY,EAAE,OAAgC;QACxD,OAAO,cAAc,IAAI,IAAI,OAAO,EAAE,CAAC;IAC3C,CAAC;IAEO,YAAY,CAAC,YAAqC,EAAE,OAAgC,EAAE,MAAc;QACxG,OAAO,EAAE,YAAY,EAAE,YAAY,CAAC,QAAQ,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,QAAQ,EAAE,EAAE,MAAM,EAAE,CAAC;IAC1F,CAAC;IAEM,KAAK,CAAC,gBAAgB,CACzB,OAAgC,EAChC,YAAqC,EACrC,YAAkB,EAClB,sBAAqD;QAErD,MAAM,OAAO,CAAC,GAAG,CACb,sBAAsB,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,EAAE,YAAY,EAAE,MAAM,EAAE,EAAE,EAAE;YAC1D,MAAM,KAAK,GAAG,YAAY,CAAC,OAAO,EAAE,GAAG,YAAY,GAAG,EAAE,GAAG,IAAI,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC;YAC7E,IAAI,KAAK,IAAI,CAAC;gBAAE,OAAO,OAAO,CAAC,OAAO,EAAE,CAAC;YACzC,OAAO,IAAA,0CAAkB,EAAC,IAAI,EAAE,IAAI,CAAC,YAAY,CAAC,YAAY,EAAE,OAAO,EAAE,MAAM,CAAC,EAAE;gBAC9E,KAAK;gBACL,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE,OAAO,CAAC;gBAChC,gBAAgB,EAAE,IAAI;aACzB,CAAC,CAAC;QACP,CAAC,CAAC,CACL,CAAC;IACN,CAAC;IAEM,KAAK,CAAC,cAAc,CAAC,OAAgC,EAAE,sBAAqD;QAC/G,MAAM,OAAO,CAAC,GAAG,CAAC,sBAAsB,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,IAAA,6CAAqB,EAAC,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC;IAClH,CAAC;CACJ,CAAA;AA/BY,oEAA4B;uCAA5B,4BAA4B;IADxC,IAAA,gBAAO,GAAE;GACG,4BAA4B,CA+BxC;AAEY,QAAA,4BAA4B,GAAG,gBAAS,CAAC,GAAG,CAAC,4BAA4B,CAAC,CAAC","sourcesContent":["import Container, { Service } from 'typedi';\nimport { mongoose } from '@typegoose/typegoose';\nimport { ScheduledNotificationConfig } from '@lyxa.ai/core/dist/libraries/mongo/models';\nimport { addNotificationJob, removeNotificationJob, TournamentNotificationJobData } from './jobs/notification.producer';\n\n@Service()\nexport class NotificationSchedulerService {\n private jobId(type: string, matchId: mongoose.Types.ObjectId): string {\n return `tournament-${type}-${matchId}`;\n }\n\n private buildJobData(tournamentId: mongoose.Types.ObjectId, matchId: mongoose.Types.ObjectId, target: string): TournamentNotificationJobData {\n return { tournamentId: tournamentId.toString(), matchId: matchId.toString(), target };\n }\n\n public async scheduleForMatch(\n matchId: mongoose.Types.ObjectId,\n tournamentId: mongoose.Types.ObjectId,\n startingDate: Date,\n scheduledNotifications: ScheduledNotificationConfig[]\n ): Promise<void> {\n await Promise.all(\n scheduledNotifications.map(({ type, durationMins, target }) => {\n const delay = startingDate.getTime() - durationMins * 60 * 1000 - Date.now();\n if (delay <= 0) return Promise.resolve();\n return addNotificationJob(type, this.buildJobData(tournamentId, matchId, target), {\n delay,\n jobId: this.jobId(type, matchId),\n removeOnComplete: true,\n });\n })\n );\n }\n\n public async cancelForMatch(matchId: mongoose.Types.ObjectId, scheduledNotifications: ScheduledNotificationConfig[]): Promise<void> {\n await Promise.all(scheduledNotifications.map(({ type }) => removeNotificationJob(this.jobId(type, matchId))));\n }\n}\n\nexport const notificationSchedulerService = Container.get(NotificationSchedulerService);\n"]}
@@ -1,2 +0,0 @@
1
- export declare function initEventSystem(): Promise<void>;
2
- //# sourceMappingURL=event-initializations.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"event-initializations.d.ts","sourceRoot":"/","sources":["events/event-initializations.ts"],"names":[],"mappings":"AACA,wBAAsB,eAAe,kBAAK"}
@@ -1 +0,0 @@
1
- //# sourceMappingURL=limited-time-offer-participant.service.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"limited-time-offer-participant.service.d.ts","sourceRoot":"/","sources":["modules/limited-time-offer/participant/limited-time-offer-participant.service.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export * from './spend-to-get-history.router';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"/","sources":["modules/spend-to-get-history/routers/index.ts"],"names":[],"mappings":"AAAA,cAAc,+BAA+B,CAAC"}
@@ -1,2 +0,0 @@
1
- export * from './spend-to-get-history.service';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"/","sources":["modules/spend-to-get-history/services/index.ts"],"names":[],"mappings":"AAAA,cAAc,gCAAgC,CAAC"}
@@ -1,56 +0,0 @@
1
- import { DocumentType, mongoose } from '@typegoose/typegoose';
2
- import { FilterDTO, PaginatedResponse, DeleteDTO } from '@lyxa.ai/core/dist/utilities/validation';
3
- import { ModelType } from '@typegoose/typegoose/lib/types';
4
- import { SpendToGetHistory as Model } from '@lyxa.ai/core/dist/libraries/mongo/models';
5
- import { CreateSpendToGetHistoryDTO as CreateDTO, UpdateSpendToGetHistoryDTO as UpdateDTO } from '@modules/spend-to-get-history/validations';
6
- export declare class SpendToGetHistoryService {
7
- private model;
8
- constructor();
9
- /**
10
- * Create a new record
11
- * @param data Data for the new record
12
- */
13
- create(data: CreateDTO): Promise<DocumentType<Model>>;
14
- /**
15
- * Get record by ID
16
- * @param id ID of the record
17
- */
18
- findById(id: string | mongoose.Types.ObjectId): Promise<DocumentType<Model>>;
19
- /**
20
- * Get records
21
- * @param query Query to find records
22
- */
23
- find(data?: Partial<FilterDTO>): Promise<PaginatedResponse<DocumentType<ModelType<Model>>>>;
24
- /**
25
- * Update record
26
- * @param id ID of the record
27
- * @param data Data to update
28
- */
29
- update(id: string, data: UpdateDTO): Promise<DocumentType<Model>>;
30
- /**
31
- * Delete record by ID
32
- * @param data ID + softDelete flag
33
- */
34
- deleteById(data: DeleteDTO): Promise<string>;
35
- /**
36
- * Record a redemption for a user against a Spend-to-Get promotion (per-user limit counter).
37
- * Called on order placement; upserts the one history doc per (user, marketing).
38
- */
39
- recordRedemption(params: {
40
- user: mongoose.Types.ObjectId;
41
- shop: mongoose.Types.ObjectId;
42
- marketing: mongoose.Types.ObjectId;
43
- order: mongoose.Types.ObjectId;
44
- }): Promise<void>;
45
- /**
46
- * Reverse a redemption when the order that granted it is cancelled, restoring budget for the
47
- * user's per-user limit.
48
- */
49
- returnRedemption(orderId: mongoose.Types.ObjectId): Promise<void>;
50
- /**
51
- * Whether a user has exhausted their per-user redemption limit for a Spend-to-Get promotion.
52
- */
53
- hasUserReachedLimit(userId: mongoose.Types.ObjectId, marketingId: mongoose.Types.ObjectId, perUserLimit: number): Promise<boolean>;
54
- }
55
- export declare const spendToGetHistoryService: SpendToGetHistoryService;
56
- //# sourceMappingURL=spend-to-get-history.service.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"spend-to-get-history.service.d.ts","sourceRoot":"/","sources":["modules/spend-to-get-history/services/spend-to-get-history.service.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,QAAQ,EAAmB,MAAM,sBAAsB,CAAC;AAC/E,OAAO,EAAE,SAAS,EAAE,iBAAiB,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAElG,OAAO,EAAE,SAAS,EAAE,MAAM,gCAAgC,CAAC;AAC3D,OAAO,EAA0B,iBAAiB,IAAI,KAAK,EAAE,MAAM,2CAA2C,CAAC;AAC/G,OAAO,EACN,0BAA0B,IAAI,SAAS,EACvC,0BAA0B,IAAI,SAAS,EACvC,MAAM,2CAA2C,CAAC;AAGnD,qBACa,wBAAwB;IACpC,OAAO,CAAC,KAAK,CAAyD;;IAMtE;;;OAGG;IACU,MAAM,CAAC,IAAI,EAAE,SAAS,GAAG,OAAO,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC;IAIlE;;;OAGG;IACU,QAAQ,CAAC,EAAE,EAAE,MAAM,GAAG,QAAQ,CAAC,KAAK,CAAC,QAAQ,GAAG,OAAO,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC;IAczF;;;OAGG;IACU,IAAI,CAAC,IAAI,CAAC,EAAE,OAAO,CAAC,SAAS,CAAC,GAAG,OAAO,CAAC,iBAAiB,CAAC,YAAY,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;IAqBxG;;;;OAIG;IACU,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,GAAG,OAAO,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC;IAuB9E;;;OAGG;IACU,UAAU,CAAC,IAAI,EAAE,SAAS,GAAG,OAAO,CAAC,MAAM,CAAC;IAczD;;;OAGG;IACU,gBAAgB,CAAC,MAAM,EAAE;QACrC,IAAI,EAAE,QAAQ,CAAC,KAAK,CAAC,QAAQ,CAAC;QAC9B,IAAI,EAAE,QAAQ,CAAC,KAAK,CAAC,QAAQ,CAAC;QAC9B,SAAS,EAAE,QAAQ,CAAC,KAAK,CAAC,QAAQ,CAAC;QACnC,KAAK,EAAE,QAAQ,CAAC,KAAK,CAAC,QAAQ,CAAC;KAC/B,GAAG,OAAO,CAAC,IAAI,CAAC;IAQjB;;;OAGG;IACU,gBAAgB,CAAC,OAAO,EAAE,QAAQ,CAAC,KAAK,CAAC,QAAQ,GAAG,OAAO,CAAC,IAAI,CAAC;IAQ9E;;OAEG;IACU,mBAAmB,CAC/B,MAAM,EAAE,QAAQ,CAAC,KAAK,CAAC,QAAQ,EAC/B,WAAW,EAAE,QAAQ,CAAC,KAAK,CAAC,QAAQ,EACpC,YAAY,EAAE,MAAM,GAClB,OAAO,CAAC,OAAO,CAAC;CAInB;AAED,eAAO,MAAM,wBAAwB,0BAA0C,CAAC"}
@@ -1,2 +0,0 @@
1
- export * from './spend-to-get-history.validation';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"/","sources":["modules/spend-to-get-history/validations/index.ts"],"names":[],"mappings":"AAAA,cAAc,mCAAmC,CAAC"}
@@ -1,241 +0,0 @@
1
- import { z } from 'zod';
2
- import { DTO } from '@lyxa.ai/core/dist/utilities/validation/global-validation';
3
- /**
4
- * Get all schemas for the Parent entity
5
- */
6
- declare const SpendToGetHistoryValidationSchema: z.ZodObject<{
7
- user: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>;
8
- marketing: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>;
9
- shop: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>;
10
- redemptionCount: z.ZodOptional<z.ZodNumber>;
11
- lastOrder: z.ZodNullable<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>]>>>;
12
- }, "strict", z.ZodTypeAny, {
13
- user: import("mongoose").Types.ObjectId;
14
- shop: import("mongoose").Types.ObjectId;
15
- marketing: import("mongoose").Types.ObjectId;
16
- redemptionCount?: number | undefined;
17
- lastOrder?: import("mongoose").Types.ObjectId | null | undefined;
18
- }, {
19
- user: string | import("mongoose").Types.ObjectId;
20
- shop: string | import("mongoose").Types.ObjectId;
21
- marketing: string | import("mongoose").Types.ObjectId;
22
- redemptionCount?: number | undefined;
23
- lastOrder?: string | import("mongoose").Types.ObjectId | null | undefined;
24
- }>, SpendToGetHistorySchema: z.ZodObject<{
25
- user: 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>]>>;
26
- marketing: 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>]>>;
27
- shop: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
28
- redemptionCount: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
29
- lastOrder: z.ZodOptional<z.ZodNullable<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>]>>>>;
30
- _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>]>>;
31
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
32
- user: 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>]>>;
33
- marketing: 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>]>>;
34
- shop: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
35
- redemptionCount: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
36
- lastOrder: z.ZodOptional<z.ZodNullable<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>]>>>>;
37
- _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>]>>;
38
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
39
- user: 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>]>>;
40
- marketing: 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>]>>;
41
- shop: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
42
- redemptionCount: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
43
- lastOrder: z.ZodOptional<z.ZodNullable<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>]>>>>;
44
- _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>]>>;
45
- }, z.ZodTypeAny, "passthrough">>, SpendToGetHistoryIdSchema: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>, UpdateSpendToGetHistorySchema: z.ZodObject<{
46
- [x: string]: z.ZodOptional<z.ZodTypeAny>;
47
- }, "strict", z.ZodTypeAny, {
48
- [x: string]: any;
49
- }, {
50
- [x: string]: any;
51
- }> | z.ZodObject<{
52
- user: 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>]>>;
53
- marketing: 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>]>>;
54
- shop: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
55
- redemptionCount: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
56
- lastOrder: z.ZodOptional<z.ZodNullable<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>]>>>>;
57
- _id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
58
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
59
- user: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
60
- marketing: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
61
- shop: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
62
- redemptionCount: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
63
- lastOrder: z.ZodOptional<z.ZodNullable<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>]>>>>;
64
- _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>]>>;
65
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
66
- user: 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>]>>;
67
- marketing: 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>]>>;
68
- shop: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
69
- redemptionCount: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
70
- lastOrder: z.ZodOptional<z.ZodNullable<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>]>>>>;
71
- _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>]>>;
72
- }, z.ZodTypeAny, "passthrough">>;
73
- /**
74
- * Export schemas
75
- */
76
- export { SpendToGetHistoryValidationSchema, SpendToGetHistorySchema, SpendToGetHistoryIdSchema as SpendToGetHistoryIdValidationSchema, UpdateSpendToGetHistorySchema, };
77
- export declare const SpendToGetHistoryResponseSchema: z.ZodObject<{
78
- success: z.ZodBoolean;
79
- message: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
80
- data: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
81
- metadata: z.ZodOptional<z.ZodObject<{
82
- page: z.ZodNumber;
83
- size: z.ZodNumber;
84
- totalElements: z.ZodNumber;
85
- totalPages: z.ZodNumber;
86
- }, "strip", z.ZodTypeAny, {
87
- page: number;
88
- size: number;
89
- totalElements: number;
90
- totalPages: number;
91
- }, {
92
- page: number;
93
- size: number;
94
- totalElements: number;
95
- totalPages: number;
96
- }>>;
97
- documents: z.ZodArray<z.ZodType<z.objectInputType<{
98
- user: 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
- marketing: 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>]>>;
100
- shop: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
101
- redemptionCount: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
102
- lastOrder: z.ZodOptional<z.ZodNullable<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>]>>>>;
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>]>>;
104
- }, z.ZodTypeAny, "passthrough">, z.ZodTypeDef, z.objectInputType<{
105
- user: 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>]>>;
106
- marketing: 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
- shop: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
108
- redemptionCount: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
109
- lastOrder: z.ZodOptional<z.ZodNullable<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>]>>>>;
110
- _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>]>>;
111
- }, z.ZodTypeAny, "passthrough">>, "many">;
112
- }, "strip", z.ZodTypeAny, {
113
- documents: z.objectInputType<{
114
- user: 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>]>>;
115
- marketing: 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
- shop: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
117
- redemptionCount: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
118
- lastOrder: z.ZodOptional<z.ZodNullable<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>]>>>>;
119
- _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>]>>;
120
- }, z.ZodTypeAny, "passthrough">[];
121
- metadata?: {
122
- page: number;
123
- size: number;
124
- totalElements: number;
125
- totalPages: number;
126
- } | undefined;
127
- }, {
128
- documents: z.objectInputType<{
129
- user: 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>]>>;
130
- marketing: 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>]>>;
131
- shop: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
132
- redemptionCount: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
133
- lastOrder: z.ZodOptional<z.ZodNullable<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>]>>>>;
134
- _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>]>>;
135
- }, z.ZodTypeAny, "passthrough">[];
136
- metadata?: {
137
- page: number;
138
- size: number;
139
- totalElements: number;
140
- totalPages: number;
141
- } | undefined;
142
- }>, z.ZodType<z.objectInputType<{
143
- user: 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>]>>;
144
- marketing: 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>]>>;
145
- shop: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
146
- redemptionCount: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
147
- lastOrder: z.ZodOptional<z.ZodNullable<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>]>>>>;
148
- _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>]>>;
149
- }, z.ZodTypeAny, "passthrough">, z.ZodTypeDef, z.objectInputType<{
150
- user: 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>]>>;
151
- marketing: 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>]>>;
152
- shop: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
153
- redemptionCount: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
154
- lastOrder: z.ZodOptional<z.ZodNullable<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>]>>>>;
155
- _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>]>>;
156
- }, z.ZodTypeAny, "passthrough">>]>>;
157
- }, "strip", z.ZodTypeAny, {
158
- message: string;
159
- success: boolean;
160
- data?: z.objectInputType<{
161
- user: 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>]>>;
162
- marketing: 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>]>>;
163
- shop: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
164
- redemptionCount: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
165
- lastOrder: z.ZodOptional<z.ZodNullable<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>]>>>>;
166
- _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>]>>;
167
- }, z.ZodTypeAny, "passthrough"> | {
168
- documents: z.objectInputType<{
169
- user: 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>]>>;
170
- marketing: 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>]>>;
171
- shop: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
172
- redemptionCount: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
173
- lastOrder: z.ZodOptional<z.ZodNullable<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>]>>>>;
174
- _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>]>>;
175
- }, z.ZodTypeAny, "passthrough">[];
176
- metadata?: {
177
- page: number;
178
- size: number;
179
- totalElements: number;
180
- totalPages: number;
181
- } | undefined;
182
- } | undefined;
183
- }, {
184
- message: string;
185
- success: boolean;
186
- data?: z.objectInputType<{
187
- user: 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>]>>;
188
- marketing: 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>]>>;
189
- shop: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
190
- redemptionCount: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
191
- lastOrder: z.ZodOptional<z.ZodNullable<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>]>>>>;
192
- _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>]>>;
193
- }, z.ZodTypeAny, "passthrough"> | {
194
- documents: z.objectInputType<{
195
- user: 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>]>>;
196
- marketing: 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>]>>;
197
- shop: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
198
- redemptionCount: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
199
- lastOrder: z.ZodOptional<z.ZodNullable<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>]>>>>;
200
- _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>]>>;
201
- }, z.ZodTypeAny, "passthrough">[];
202
- metadata?: {
203
- page: number;
204
- size: number;
205
- totalElements: number;
206
- totalPages: number;
207
- } | undefined;
208
- } | undefined;
209
- }>;
210
- export declare const RecordSpendToGetRedemptionSchema: z.ZodObject<{
211
- user: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>;
212
- 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>]>;
213
- marketing: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>;
214
- order: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>;
215
- }, "strip", z.ZodTypeAny, {
216
- user: import("mongoose").Types.ObjectId;
217
- shop: import("mongoose").Types.ObjectId;
218
- order: import("mongoose").Types.ObjectId;
219
- marketing: import("mongoose").Types.ObjectId;
220
- }, {
221
- user: string | import("mongoose").Types.ObjectId;
222
- shop: string | import("mongoose").Types.ObjectId;
223
- order: string | import("mongoose").Types.ObjectId;
224
- marketing: string | import("mongoose").Types.ObjectId;
225
- }>;
226
- export declare const ReturnSpendToGetRedemptionSchema: z.ZodObject<{
227
- order: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>;
228
- }, "strip", z.ZodTypeAny, {
229
- order: import("mongoose").Types.ObjectId;
230
- }, {
231
- order: string | import("mongoose").Types.ObjectId;
232
- }>;
233
- /**
234
- * Export DTO types
235
- */
236
- export type CreateSpendToGetHistoryDTO = DTO<typeof SpendToGetHistoryValidationSchema>;
237
- export type SpendToGetHistoryDTO = DTO<typeof SpendToGetHistorySchema>;
238
- export type UpdateSpendToGetHistoryDTO = DTO<typeof UpdateSpendToGetHistorySchema>;
239
- export type RecordSpendToGetRedemptionDTO = DTO<typeof RecordSpendToGetRedemptionSchema>;
240
- export type ReturnSpendToGetRedemptionDTO = DTO<typeof ReturnSpendToGetRedemptionSchema>;
241
- //# sourceMappingURL=spend-to-get-history.validation.d.ts.map