@lyxa.ai/marketing 1.0.46 → 1.0.48

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 (341) 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/index.d.ts +1414 -13
  5. package/dist/lib/index.d.ts.map +1 -1
  6. package/dist/lib/index.js +3 -1
  7. package/dist/lib/index.js.map +1 -1
  8. package/dist/lib/modules/coupon/routers/coupon.router.d.ts +72 -6
  9. package/dist/lib/modules/coupon/routers/coupon.router.d.ts.map +1 -1
  10. package/dist/lib/modules/coupon/routers/coupon.router.js +12 -3
  11. package/dist/lib/modules/coupon/routers/coupon.router.js.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 +102 -4
  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 +2 -0
  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 +1 -1
  19. package/dist/lib/modules/coupon/services/custom-coupon.service.js.map +1 -1
  20. package/dist/lib/modules/coupon/services/global-coupon.service.d.ts +1 -1
  21. package/dist/lib/modules/coupon/services/global-coupon.service.d.ts.map +1 -1
  22. package/dist/lib/modules/coupon/services/global-coupon.service.js +16 -10
  23. package/dist/lib/modules/coupon/services/global-coupon.service.js.map +1 -1
  24. package/dist/lib/modules/coupon/services/helper.service.d.ts +2 -1
  25. package/dist/lib/modules/coupon/services/helper.service.d.ts.map +1 -1
  26. package/dist/lib/modules/coupon/services/helper.service.js +7 -1
  27. package/dist/lib/modules/coupon/services/helper.service.js.map +1 -1
  28. package/dist/lib/modules/coupon/services/individual-store-coupon.service.d.ts +2 -0
  29. package/dist/lib/modules/coupon/services/individual-store-coupon.service.d.ts.map +1 -1
  30. package/dist/lib/modules/coupon/services/individual-store-coupon.service.js +2 -2
  31. package/dist/lib/modules/coupon/services/individual-store-coupon.service.js.map +1 -1
  32. package/dist/lib/modules/coupon/services/individual-user-coupon.service.d.ts.map +1 -1
  33. package/dist/lib/modules/coupon/services/individual-user-coupon.service.js +6 -0
  34. package/dist/lib/modules/coupon/services/individual-user-coupon.service.js.map +1 -1
  35. package/dist/lib/modules/coupon/services/patterns/repository/CouponMetricsRepository.d.ts +10 -4
  36. package/dist/lib/modules/coupon/services/patterns/repository/CouponMetricsRepository.d.ts.map +1 -1
  37. package/dist/lib/modules/coupon/services/patterns/repository/CouponMetricsRepository.js +88 -9
  38. package/dist/lib/modules/coupon/services/patterns/repository/CouponMetricsRepository.js.map +1 -1
  39. package/dist/lib/modules/coupon/services/patterns/repository/CouponRepository.d.ts.map +1 -1
  40. package/dist/lib/modules/coupon/services/patterns/repository/CouponRepository.js +20 -1
  41. package/dist/lib/modules/coupon/services/patterns/repository/CouponRepository.js.map +1 -1
  42. package/dist/lib/modules/coupon/services/referral-code-coupon.service.d.ts.map +1 -1
  43. package/dist/lib/modules/coupon/services/referral-code-coupon.service.js +1 -1
  44. package/dist/lib/modules/coupon/services/referral-code-coupon.service.js.map +1 -1
  45. package/dist/lib/modules/coupon/services/referral-reward-coupon.service.d.ts +1 -1
  46. package/dist/lib/modules/coupon/services/referral-reward-coupon.service.d.ts.map +1 -1
  47. package/dist/lib/modules/coupon/services/referral-reward-coupon.service.js +36 -19
  48. package/dist/lib/modules/coupon/services/referral-reward-coupon.service.js.map +1 -1
  49. package/dist/lib/modules/coupon/services/shops-categories-coupon.service.d.ts +2 -0
  50. package/dist/lib/modules/coupon/services/shops-categories-coupon.service.d.ts.map +1 -1
  51. package/dist/lib/modules/coupon/services/shops-categories-coupon.service.js +2 -2
  52. package/dist/lib/modules/coupon/services/shops-categories-coupon.service.js.map +1 -1
  53. package/dist/lib/modules/coupon/validations/coupon.validation.d.ts +359 -34
  54. package/dist/lib/modules/coupon/validations/coupon.validation.d.ts.map +1 -1
  55. package/dist/lib/modules/coupon/validations/coupon.validation.js +16 -3
  56. package/dist/lib/modules/coupon/validations/coupon.validation.js.map +1 -1
  57. package/dist/lib/modules/limited-time-offer/limited-time-offer.router.d.ts +6 -6
  58. package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.router.d.ts +6 -6
  59. package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.validation.d.ts +30 -30
  60. package/dist/lib/modules/marketing/services/marketing.service.d.ts.map +1 -1
  61. package/dist/lib/modules/marketing/services/marketing.service.js +8 -2
  62. package/dist/lib/modules/marketing/services/marketing.service.js.map +1 -1
  63. package/dist/lib/modules/marketing/services/synchronize-product-marketing.service.d.ts +2 -0
  64. package/dist/lib/modules/marketing/services/synchronize-product-marketing.service.d.ts.map +1 -1
  65. package/dist/lib/modules/marketing/services/synchronize-product-marketing.service.js +14 -0
  66. package/dist/lib/modules/marketing/services/synchronize-product-marketing.service.js.map +1 -1
  67. package/dist/lib/modules/marketing/validations/buy1-get1-marketing.validation.d.ts +24 -24
  68. package/dist/lib/modules/marketing/validations/discount-marketing.validation.d.ts +36 -36
  69. package/dist/lib/modules/marketing/validations/featured-marketing.validation.d.ts +6 -6
  70. package/dist/lib/modules/marketing/validations/free-delivery-marketing.validation.d.ts +4 -4
  71. package/dist/lib/modules/marketing/validations/marketing.validation.d.ts +2 -2
  72. package/dist/lib/modules/marketing/validations/product-marketing.validation.d.ts +7 -7
  73. package/dist/lib/modules/marketing/validations/punch-marketing.validation.d.ts +4 -4
  74. package/dist/lib/modules/punch-marketing-history/routers/punch-marketing-history.router.d.ts +1 -1
  75. package/dist/lib/modules/punch-marketing-history/validations/punch-marketing-history.validation.d.ts +2 -2
  76. package/dist/lib/modules/tournament/config/config.builder.d.ts +5 -0
  77. package/dist/lib/modules/tournament/config/config.builder.d.ts.map +1 -0
  78. package/dist/lib/modules/tournament/config/config.builder.js +19 -0
  79. package/dist/lib/modules/tournament/config/config.builder.js.map +1 -0
  80. package/dist/lib/modules/tournament/config/config.repository.d.ts +13 -0
  81. package/dist/lib/modules/tournament/config/config.repository.d.ts.map +1 -0
  82. package/dist/lib/modules/tournament/config/config.repository.js +77 -0
  83. package/dist/lib/modules/tournament/config/config.repository.js.map +1 -0
  84. package/dist/lib/modules/tournament/config/config.router.d.ts +363 -0
  85. package/dist/lib/modules/tournament/config/config.router.d.ts.map +1 -0
  86. package/dist/lib/modules/tournament/config/config.router.js +40 -0
  87. package/dist/lib/modules/tournament/config/config.router.js.map +1 -0
  88. package/dist/lib/modules/tournament/config/config.service.d.ts +14 -0
  89. package/dist/lib/modules/tournament/config/config.service.d.ts.map +1 -0
  90. package/dist/lib/modules/tournament/config/config.service.js +101 -0
  91. package/dist/lib/modules/tournament/config/config.service.js.map +1 -0
  92. package/dist/lib/modules/tournament/config/config.validation.d.ts +1014 -0
  93. package/dist/lib/modules/tournament/config/config.validation.d.ts.map +1 -0
  94. package/dist/lib/modules/tournament/config/config.validation.js +70 -0
  95. package/dist/lib/modules/tournament/config/config.validation.js.map +1 -0
  96. package/dist/lib/modules/tournament/match/events/match-ended.consumer.d.ts +2 -0
  97. package/dist/lib/modules/tournament/match/events/match-ended.consumer.d.ts.map +1 -0
  98. package/dist/lib/modules/tournament/match/events/match-ended.consumer.js +15 -0
  99. package/dist/lib/modules/tournament/match/events/match-ended.consumer.js.map +1 -0
  100. package/dist/lib/modules/tournament/match/events/match-ended.event.d.ts +14 -0
  101. package/dist/lib/modules/tournament/match/events/match-ended.event.d.ts.map +1 -0
  102. package/dist/lib/modules/tournament/match/events/match-ended.event.js +12 -0
  103. package/dist/lib/modules/tournament/match/events/match-ended.event.js.map +1 -0
  104. package/dist/lib/modules/tournament/match/match.builder.d.ts +38 -0
  105. package/dist/lib/modules/tournament/match/match.builder.d.ts.map +1 -0
  106. package/dist/lib/modules/tournament/match/match.builder.js +37 -0
  107. package/dist/lib/modules/tournament/match/match.builder.js.map +1 -0
  108. package/dist/lib/modules/tournament/match/match.repository.d.ts +13 -0
  109. package/dist/lib/modules/tournament/match/match.repository.d.ts.map +1 -0
  110. package/dist/lib/modules/tournament/match/match.repository.js +84 -0
  111. package/dist/lib/modules/tournament/match/match.repository.js.map +1 -0
  112. package/dist/lib/modules/tournament/match/match.router.d.ts +489 -0
  113. package/dist/lib/modules/tournament/match/match.router.d.ts.map +1 -0
  114. package/dist/lib/modules/tournament/match/match.router.js +56 -0
  115. package/dist/lib/modules/tournament/match/match.router.js.map +1 -0
  116. package/dist/lib/modules/tournament/match/match.service.d.ts +29 -0
  117. package/dist/lib/modules/tournament/match/match.service.d.ts.map +1 -0
  118. package/dist/lib/modules/tournament/match/match.service.js +193 -0
  119. package/dist/lib/modules/tournament/match/match.service.js.map +1 -0
  120. package/dist/lib/modules/tournament/match/match.validation.d.ts +880 -0
  121. package/dist/lib/modules/tournament/match/match.validation.d.ts.map +1 -0
  122. package/dist/lib/modules/tournament/match/match.validation.js +74 -0
  123. package/dist/lib/modules/tournament/match/match.validation.js.map +1 -0
  124. package/dist/lib/modules/tournament/notification/jobs/notification.producer.d.ts +13 -0
  125. package/dist/lib/modules/tournament/notification/jobs/notification.producer.d.ts.map +1 -0
  126. package/dist/lib/modules/tournament/notification/jobs/notification.producer.js +28 -0
  127. package/dist/lib/modules/tournament/notification/jobs/notification.producer.js.map +1 -0
  128. package/dist/lib/modules/tournament/notification/jobs/notification.worker.d.ts +7 -0
  129. package/dist/lib/modules/tournament/notification/jobs/notification.worker.d.ts.map +1 -0
  130. package/dist/lib/modules/tournament/notification/jobs/notification.worker.js +76 -0
  131. package/dist/lib/modules/tournament/notification/jobs/notification.worker.js.map +1 -0
  132. package/dist/lib/modules/tournament/notification/notification.scheduler.service.d.ts +10 -0
  133. package/dist/lib/modules/tournament/notification/notification.scheduler.service.d.ts.map +1 -0
  134. package/dist/lib/modules/tournament/notification/notification.scheduler.service.js +86 -0
  135. package/dist/lib/modules/tournament/notification/notification.scheduler.service.js.map +1 -0
  136. package/dist/lib/modules/tournament/notification/notification.service.d.ts +11 -0
  137. package/dist/lib/modules/tournament/notification/notification.service.d.ts.map +1 -0
  138. package/dist/lib/modules/tournament/notification/notification.service.js +101 -0
  139. package/dist/lib/modules/tournament/notification/notification.service.js.map +1 -0
  140. package/dist/lib/modules/tournament/participant/participant.repository.d.ts +12 -0
  141. package/dist/lib/modules/tournament/participant/participant.repository.d.ts.map +1 -0
  142. package/dist/lib/modules/tournament/participant/participant.repository.js +73 -0
  143. package/dist/lib/modules/tournament/participant/participant.repository.js.map +1 -0
  144. package/dist/lib/modules/tournament/participant/participant.router.d.ts +104 -0
  145. package/dist/lib/modules/tournament/participant/participant.router.d.ts.map +1 -0
  146. package/dist/lib/modules/tournament/participant/participant.router.js +28 -0
  147. package/dist/lib/modules/tournament/participant/participant.router.js.map +1 -0
  148. package/dist/lib/modules/tournament/participant/participant.service.d.ts +14 -0
  149. package/dist/lib/modules/tournament/participant/participant.service.d.ts.map +1 -0
  150. package/dist/lib/modules/tournament/participant/participant.service.js +103 -0
  151. package/dist/lib/modules/tournament/participant/participant.service.js.map +1 -0
  152. package/dist/lib/modules/tournament/participant/participant.validation.d.ts +719 -0
  153. package/dist/lib/modules/tournament/participant/participant.validation.d.ts.map +1 -0
  154. package/dist/lib/modules/tournament/participant/participant.validation.js +44 -0
  155. package/dist/lib/modules/tournament/participant/participant.validation.js.map +1 -0
  156. package/dist/lib/modules/tournament/prediction/prediction.builder.d.ts +14 -0
  157. package/dist/lib/modules/tournament/prediction/prediction.builder.d.ts.map +1 -0
  158. package/dist/lib/modules/tournament/prediction/prediction.builder.js +23 -0
  159. package/dist/lib/modules/tournament/prediction/prediction.builder.js.map +1 -0
  160. package/dist/lib/modules/tournament/prediction/prediction.repository.d.ts +11 -0
  161. package/dist/lib/modules/tournament/prediction/prediction.repository.d.ts.map +1 -0
  162. package/dist/lib/modules/tournament/prediction/prediction.repository.js +73 -0
  163. package/dist/lib/modules/tournament/prediction/prediction.repository.js.map +1 -0
  164. package/dist/lib/modules/tournament/prediction/prediction.router.d.ts +133 -0
  165. package/dist/lib/modules/tournament/prediction/prediction.router.d.ts.map +1 -0
  166. package/dist/lib/modules/tournament/prediction/prediction.router.js +36 -0
  167. package/dist/lib/modules/tournament/prediction/prediction.router.js.map +1 -0
  168. package/dist/lib/modules/tournament/prediction/prediction.service.d.ts +17 -0
  169. package/dist/lib/modules/tournament/prediction/prediction.service.d.ts.map +1 -0
  170. package/dist/lib/modules/tournament/prediction/prediction.service.js +125 -0
  171. package/dist/lib/modules/tournament/prediction/prediction.service.js.map +1 -0
  172. package/dist/lib/modules/tournament/prediction/prediction.validation.d.ts +575 -0
  173. package/dist/lib/modules/tournament/prediction/prediction.validation.d.ts.map +1 -0
  174. package/dist/lib/modules/tournament/prediction/prediction.validation.js +46 -0
  175. package/dist/lib/modules/tournament/prediction/prediction.validation.js.map +1 -0
  176. package/dist/lib/modules/tournament/reward/handlers/coupon-reward.handler.d.ts +8 -0
  177. package/dist/lib/modules/tournament/reward/handlers/coupon-reward.handler.d.ts.map +1 -0
  178. package/dist/lib/modules/tournament/reward/handlers/coupon-reward.handler.js +65 -0
  179. package/dist/lib/modules/tournament/reward/handlers/coupon-reward.handler.js.map +1 -0
  180. package/dist/lib/modules/tournament/reward/reward.factory.d.ts +6 -0
  181. package/dist/lib/modules/tournament/reward/reward.factory.d.ts.map +1 -0
  182. package/dist/lib/modules/tournament/reward/reward.factory.js +21 -0
  183. package/dist/lib/modules/tournament/reward/reward.factory.js.map +1 -0
  184. package/dist/lib/modules/tournament/reward/reward.interface.d.ts +5 -0
  185. package/dist/lib/modules/tournament/reward/reward.interface.d.ts.map +1 -0
  186. package/dist/lib/modules/tournament/reward/reward.interface.js +3 -0
  187. package/dist/lib/modules/tournament/reward/reward.interface.js.map +1 -0
  188. package/dist/lib/modules/tournament/reward/reward.service.d.ts +6 -0
  189. package/dist/lib/modules/tournament/reward/reward.service.d.ts.map +1 -0
  190. package/dist/lib/modules/tournament/reward/reward.service.js +56 -0
  191. package/dist/lib/modules/tournament/reward/reward.service.js.map +1 -0
  192. package/dist/lib/modules/tournament/reward/reward.types.d.ts +11 -0
  193. package/dist/lib/modules/tournament/reward/reward.types.d.ts.map +1 -0
  194. package/dist/lib/modules/tournament/reward/reward.types.js +8 -0
  195. package/dist/lib/modules/tournament/reward/reward.types.js.map +1 -0
  196. package/dist/lib/modules/tournament/team/team.builder.d.ts +19 -0
  197. package/dist/lib/modules/tournament/team/team.builder.d.ts.map +1 -0
  198. package/dist/lib/modules/tournament/team/team.builder.js +18 -0
  199. package/dist/lib/modules/tournament/team/team.builder.js.map +1 -0
  200. package/dist/lib/modules/tournament/team/team.repository.d.ts +11 -0
  201. package/dist/lib/modules/tournament/team/team.repository.d.ts.map +1 -0
  202. package/dist/lib/modules/tournament/team/team.repository.js +71 -0
  203. package/dist/lib/modules/tournament/team/team.repository.js.map +1 -0
  204. package/dist/lib/modules/tournament/team/team.router.d.ts +237 -0
  205. package/dist/lib/modules/tournament/team/team.router.d.ts.map +1 -0
  206. package/dist/lib/modules/tournament/team/team.router.js +36 -0
  207. package/dist/lib/modules/tournament/team/team.router.js.map +1 -0
  208. package/dist/lib/modules/tournament/team/team.service.d.ts +15 -0
  209. package/dist/lib/modules/tournament/team/team.service.d.ts.map +1 -0
  210. package/dist/lib/modules/tournament/team/team.service.js +137 -0
  211. package/dist/lib/modules/tournament/team/team.service.js.map +1 -0
  212. package/dist/lib/modules/tournament/team/team.validation.d.ts +986 -0
  213. package/dist/lib/modules/tournament/team/team.validation.d.ts.map +1 -0
  214. package/dist/lib/modules/tournament/team/team.validation.js +55 -0
  215. package/dist/lib/modules/tournament/team/team.validation.js.map +1 -0
  216. package/dist/lib/modules/tournament/tournament.router.d.ts +1336 -0
  217. package/dist/lib/modules/tournament/tournament.router.d.ts.map +1 -0
  218. package/dist/lib/modules/tournament/tournament.router.js +17 -0
  219. package/dist/lib/modules/tournament/tournament.router.js.map +1 -0
  220. package/dist/types/event/event-initializations.d.ts.map +1 -1
  221. package/dist/types/events/event-initializations.d.ts +2 -0
  222. package/dist/types/events/event-initializations.d.ts.map +1 -0
  223. package/dist/types/index.d.ts +1414 -13
  224. package/dist/types/index.d.ts.map +1 -1
  225. package/dist/types/modules/coupon/routers/coupon.router.d.ts +72 -6
  226. package/dist/types/modules/coupon/routers/coupon.router.d.ts.map +1 -1
  227. package/dist/types/modules/coupon/services/coupon.service.d.ts +1 -0
  228. package/dist/types/modules/coupon/services/coupon.service.d.ts.map +1 -1
  229. package/dist/types/modules/coupon/services/custom-coupon.service.d.ts +2 -0
  230. package/dist/types/modules/coupon/services/custom-coupon.service.d.ts.map +1 -1
  231. package/dist/types/modules/coupon/services/global-coupon.service.d.ts +1 -1
  232. package/dist/types/modules/coupon/services/global-coupon.service.d.ts.map +1 -1
  233. package/dist/types/modules/coupon/services/helper.service.d.ts +2 -1
  234. package/dist/types/modules/coupon/services/helper.service.d.ts.map +1 -1
  235. package/dist/types/modules/coupon/services/individual-store-coupon.service.d.ts +2 -0
  236. package/dist/types/modules/coupon/services/individual-store-coupon.service.d.ts.map +1 -1
  237. package/dist/types/modules/coupon/services/individual-user-coupon.service.d.ts.map +1 -1
  238. package/dist/types/modules/coupon/services/patterns/repository/CouponMetricsRepository.d.ts +10 -4
  239. package/dist/types/modules/coupon/services/patterns/repository/CouponMetricsRepository.d.ts.map +1 -1
  240. package/dist/types/modules/coupon/services/patterns/repository/CouponRepository.d.ts.map +1 -1
  241. package/dist/types/modules/coupon/services/referral-code-coupon.service.d.ts.map +1 -1
  242. package/dist/types/modules/coupon/services/referral-reward-coupon.service.d.ts +1 -1
  243. package/dist/types/modules/coupon/services/referral-reward-coupon.service.d.ts.map +1 -1
  244. package/dist/types/modules/coupon/services/shops-categories-coupon.service.d.ts +2 -0
  245. package/dist/types/modules/coupon/services/shops-categories-coupon.service.d.ts.map +1 -1
  246. package/dist/types/modules/coupon/validations/coupon.validation.d.ts +359 -34
  247. package/dist/types/modules/coupon/validations/coupon.validation.d.ts.map +1 -1
  248. package/dist/types/modules/limited-time-offer/limited-time-offer.router.d.ts +6 -6
  249. package/dist/types/modules/limited-time-offer/participant/limited-time-offer-participant.router.d.ts +6 -6
  250. package/dist/types/modules/limited-time-offer/participant/limited-time-offer-participant.validation.d.ts +30 -30
  251. package/dist/types/modules/marketing/services/marketing.service.d.ts.map +1 -1
  252. package/dist/types/modules/marketing/services/synchronize-product-marketing.service.d.ts +2 -0
  253. package/dist/types/modules/marketing/services/synchronize-product-marketing.service.d.ts.map +1 -1
  254. package/dist/types/modules/marketing/validations/buy1-get1-marketing.validation.d.ts +24 -24
  255. package/dist/types/modules/marketing/validations/discount-marketing.validation.d.ts +36 -36
  256. package/dist/types/modules/marketing/validations/featured-marketing.validation.d.ts +6 -6
  257. package/dist/types/modules/marketing/validations/free-delivery-marketing.validation.d.ts +4 -4
  258. package/dist/types/modules/marketing/validations/marketing.validation.d.ts +2 -2
  259. package/dist/types/modules/marketing/validations/product-marketing.validation.d.ts +7 -7
  260. package/dist/types/modules/marketing/validations/punch-marketing.validation.d.ts +4 -4
  261. package/dist/types/modules/punch-marketing-history/routers/punch-marketing-history.router.d.ts +1 -1
  262. package/dist/types/modules/punch-marketing-history/validations/punch-marketing-history.validation.d.ts +2 -2
  263. package/dist/types/modules/tournament/config/config.builder.d.ts +5 -0
  264. package/dist/types/modules/tournament/config/config.builder.d.ts.map +1 -0
  265. package/dist/types/modules/tournament/config/config.repository.d.ts +13 -0
  266. package/dist/types/modules/tournament/config/config.repository.d.ts.map +1 -0
  267. package/dist/types/modules/tournament/config/config.router.d.ts +363 -0
  268. package/dist/types/modules/tournament/config/config.router.d.ts.map +1 -0
  269. package/dist/types/modules/tournament/config/config.service.d.ts +14 -0
  270. package/dist/types/modules/tournament/config/config.service.d.ts.map +1 -0
  271. package/dist/types/modules/tournament/config/config.validation.d.ts +1014 -0
  272. package/dist/types/modules/tournament/config/config.validation.d.ts.map +1 -0
  273. package/dist/types/modules/tournament/config/tournament-config.validation.d.ts +201 -0
  274. package/dist/types/modules/tournament/config/tournament-config.validation.d.ts.map +1 -0
  275. package/dist/types/modules/tournament/match/events/match-ended.consumer.d.ts +2 -0
  276. package/dist/types/modules/tournament/match/events/match-ended.consumer.d.ts.map +1 -0
  277. package/dist/types/modules/tournament/match/events/match-ended.event.d.ts +14 -0
  278. package/dist/types/modules/tournament/match/events/match-ended.event.d.ts.map +1 -0
  279. package/dist/types/modules/tournament/match/match.builder.d.ts +38 -0
  280. package/dist/types/modules/tournament/match/match.builder.d.ts.map +1 -0
  281. package/dist/types/modules/tournament/match/match.repository.d.ts +13 -0
  282. package/dist/types/modules/tournament/match/match.repository.d.ts.map +1 -0
  283. package/dist/types/modules/tournament/match/match.router.d.ts +489 -0
  284. package/dist/types/modules/tournament/match/match.router.d.ts.map +1 -0
  285. package/dist/types/modules/tournament/match/match.service.d.ts +29 -0
  286. package/dist/types/modules/tournament/match/match.service.d.ts.map +1 -0
  287. package/dist/types/modules/tournament/match/match.validation.d.ts +880 -0
  288. package/dist/types/modules/tournament/match/match.validation.d.ts.map +1 -0
  289. package/dist/types/modules/tournament/notification/jobs/notification.producer.d.ts +13 -0
  290. package/dist/types/modules/tournament/notification/jobs/notification.producer.d.ts.map +1 -0
  291. package/dist/types/modules/tournament/notification/jobs/notification.worker.d.ts +7 -0
  292. package/dist/types/modules/tournament/notification/jobs/notification.worker.d.ts.map +1 -0
  293. package/dist/types/modules/tournament/notification/notification.scheduler.service.d.ts +10 -0
  294. package/dist/types/modules/tournament/notification/notification.scheduler.service.d.ts.map +1 -0
  295. package/dist/types/modules/tournament/notification/notification.service.d.ts +11 -0
  296. package/dist/types/modules/tournament/notification/notification.service.d.ts.map +1 -0
  297. package/dist/types/modules/tournament/participant/participant.repository.d.ts +12 -0
  298. package/dist/types/modules/tournament/participant/participant.repository.d.ts.map +1 -0
  299. package/dist/types/modules/tournament/participant/participant.router.d.ts +104 -0
  300. package/dist/types/modules/tournament/participant/participant.router.d.ts.map +1 -0
  301. package/dist/types/modules/tournament/participant/participant.service.d.ts +14 -0
  302. package/dist/types/modules/tournament/participant/participant.service.d.ts.map +1 -0
  303. package/dist/types/modules/tournament/participant/participant.validation.d.ts +719 -0
  304. package/dist/types/modules/tournament/participant/participant.validation.d.ts.map +1 -0
  305. package/dist/types/modules/tournament/prediction/prediction.builder.d.ts +14 -0
  306. package/dist/types/modules/tournament/prediction/prediction.builder.d.ts.map +1 -0
  307. package/dist/types/modules/tournament/prediction/prediction.repository.d.ts +11 -0
  308. package/dist/types/modules/tournament/prediction/prediction.repository.d.ts.map +1 -0
  309. package/dist/types/modules/tournament/prediction/prediction.router.d.ts +133 -0
  310. package/dist/types/modules/tournament/prediction/prediction.router.d.ts.map +1 -0
  311. package/dist/types/modules/tournament/prediction/prediction.service.d.ts +17 -0
  312. package/dist/types/modules/tournament/prediction/prediction.service.d.ts.map +1 -0
  313. package/dist/types/modules/tournament/prediction/prediction.validation.d.ts +575 -0
  314. package/dist/types/modules/tournament/prediction/prediction.validation.d.ts.map +1 -0
  315. package/dist/types/modules/tournament/reward/handlers/coupon-reward.handler.d.ts +8 -0
  316. package/dist/types/modules/tournament/reward/handlers/coupon-reward.handler.d.ts.map +1 -0
  317. package/dist/types/modules/tournament/reward/reward.factory.d.ts +6 -0
  318. package/dist/types/modules/tournament/reward/reward.factory.d.ts.map +1 -0
  319. package/dist/types/modules/tournament/reward/reward.interface.d.ts +5 -0
  320. package/dist/types/modules/tournament/reward/reward.interface.d.ts.map +1 -0
  321. package/dist/types/modules/tournament/reward/reward.service.d.ts +6 -0
  322. package/dist/types/modules/tournament/reward/reward.service.d.ts.map +1 -0
  323. package/dist/types/modules/tournament/reward/reward.types.d.ts +11 -0
  324. package/dist/types/modules/tournament/reward/reward.types.d.ts.map +1 -0
  325. package/dist/types/modules/tournament/team/team.builder.d.ts +19 -0
  326. package/dist/types/modules/tournament/team/team.builder.d.ts.map +1 -0
  327. package/dist/types/modules/tournament/team/team.repository.d.ts +11 -0
  328. package/dist/types/modules/tournament/team/team.repository.d.ts.map +1 -0
  329. package/dist/types/modules/tournament/team/team.router.d.ts +237 -0
  330. package/dist/types/modules/tournament/team/team.router.d.ts.map +1 -0
  331. package/dist/types/modules/tournament/team/team.service.d.ts +15 -0
  332. package/dist/types/modules/tournament/team/team.service.d.ts.map +1 -0
  333. package/dist/types/modules/tournament/team/team.validation.d.ts +986 -0
  334. package/dist/types/modules/tournament/team/team.validation.d.ts.map +1 -0
  335. package/dist/types/modules/tournament/tournament.router.d.ts +1336 -0
  336. package/dist/types/modules/tournament/tournament.router.d.ts.map +1 -0
  337. package/package.json +3 -3
  338. package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.service.d.ts +0 -1
  339. package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.service.d.ts.map +0 -1
  340. package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.service.js +0 -2
  341. package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.service.js.map +0 -1
@@ -1234,6 +1234,7 @@ export declare const CouponValidationOutputSchema: z.ZodObject<{
1234
1234
  secondaryVendorCut?: number | undefined;
1235
1235
  }>>;
1236
1236
  couponDetails: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1237
+ couponInfo: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1237
1238
  }, "strip", z.ZodTypeAny, {
1238
1239
  isValid: boolean;
1239
1240
  message?: string | undefined;
@@ -1250,6 +1251,7 @@ export declare const CouponValidationOutputSchema: z.ZodObject<{
1250
1251
  secondaryVendorCut?: number | undefined;
1251
1252
  } | undefined;
1252
1253
  couponDetails?: Record<string, unknown> | undefined;
1254
+ couponInfo?: Record<string, unknown> | undefined;
1253
1255
  }, {
1254
1256
  message?: string | undefined;
1255
1257
  isValid?: boolean | undefined;
@@ -1266,6 +1268,7 @@ export declare const CouponValidationOutputSchema: z.ZodObject<{
1266
1268
  secondaryVendorCut?: number | undefined;
1267
1269
  } | undefined;
1268
1270
  couponDetails?: Record<string, unknown> | undefined;
1271
+ couponInfo?: Record<string, unknown> | undefined;
1269
1272
  }>;
1270
1273
  export declare const CouponCodeSchema: z.ZodObject<{
1271
1274
  couponCode: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
@@ -1327,6 +1330,7 @@ export declare const CouponValidationResponseSchema: z.ZodObject<{
1327
1330
  secondaryVendorCut?: number | undefined;
1328
1331
  } | undefined;
1329
1332
  couponDetails?: Record<string, unknown> | undefined;
1333
+ couponInfo?: Record<string, unknown> | undefined;
1330
1334
  }, z.ZodTypeDef, {
1331
1335
  message?: string | undefined;
1332
1336
  isValid?: boolean | undefined;
@@ -1343,6 +1347,7 @@ export declare const CouponValidationResponseSchema: z.ZodObject<{
1343
1347
  secondaryVendorCut?: number | undefined;
1344
1348
  } | undefined;
1345
1349
  couponDetails?: Record<string, unknown> | undefined;
1350
+ couponInfo?: Record<string, unknown> | undefined;
1346
1351
  }>, "many">;
1347
1352
  }, "strip", z.ZodTypeAny, {
1348
1353
  documents: {
@@ -1361,6 +1366,7 @@ export declare const CouponValidationResponseSchema: z.ZodObject<{
1361
1366
  secondaryVendorCut?: number | undefined;
1362
1367
  } | undefined;
1363
1368
  couponDetails?: Record<string, unknown> | undefined;
1369
+ couponInfo?: Record<string, unknown> | undefined;
1364
1370
  }[];
1365
1371
  metadata?: {
1366
1372
  page: number;
@@ -1385,6 +1391,7 @@ export declare const CouponValidationResponseSchema: z.ZodObject<{
1385
1391
  secondaryVendorCut?: number | undefined;
1386
1392
  } | undefined;
1387
1393
  couponDetails?: Record<string, unknown> | undefined;
1394
+ couponInfo?: Record<string, unknown> | undefined;
1388
1395
  }[];
1389
1396
  metadata?: {
1390
1397
  page: number;
@@ -1408,6 +1415,7 @@ export declare const CouponValidationResponseSchema: z.ZodObject<{
1408
1415
  secondaryVendorCut?: number | undefined;
1409
1416
  } | undefined;
1410
1417
  couponDetails?: Record<string, unknown> | undefined;
1418
+ couponInfo?: Record<string, unknown> | undefined;
1411
1419
  }, z.ZodTypeDef, {
1412
1420
  message?: string | undefined;
1413
1421
  isValid?: boolean | undefined;
@@ -1424,6 +1432,7 @@ export declare const CouponValidationResponseSchema: z.ZodObject<{
1424
1432
  secondaryVendorCut?: number | undefined;
1425
1433
  } | undefined;
1426
1434
  couponDetails?: Record<string, unknown> | undefined;
1435
+ couponInfo?: Record<string, unknown> | undefined;
1427
1436
  }>]>>;
1428
1437
  }, "strip", z.ZodTypeAny, {
1429
1438
  message: string;
@@ -1444,6 +1453,7 @@ export declare const CouponValidationResponseSchema: z.ZodObject<{
1444
1453
  secondaryVendorCut?: number | undefined;
1445
1454
  } | undefined;
1446
1455
  couponDetails?: Record<string, unknown> | undefined;
1456
+ couponInfo?: Record<string, unknown> | undefined;
1447
1457
  } | {
1448
1458
  documents: {
1449
1459
  message?: string | undefined;
@@ -1461,6 +1471,7 @@ export declare const CouponValidationResponseSchema: z.ZodObject<{
1461
1471
  secondaryVendorCut?: number | undefined;
1462
1472
  } | undefined;
1463
1473
  couponDetails?: Record<string, unknown> | undefined;
1474
+ couponInfo?: Record<string, unknown> | undefined;
1464
1475
  }[];
1465
1476
  metadata?: {
1466
1477
  page: number;
@@ -1488,6 +1499,7 @@ export declare const CouponValidationResponseSchema: z.ZodObject<{
1488
1499
  secondaryVendorCut?: number | undefined;
1489
1500
  } | undefined;
1490
1501
  couponDetails?: Record<string, unknown> | undefined;
1502
+ couponInfo?: Record<string, unknown> | undefined;
1491
1503
  } | {
1492
1504
  documents: {
1493
1505
  message?: string | undefined;
@@ -1505,6 +1517,7 @@ export declare const CouponValidationResponseSchema: z.ZodObject<{
1505
1517
  secondaryVendorCut?: number | undefined;
1506
1518
  } | undefined;
1507
1519
  couponDetails?: Record<string, unknown> | undefined;
1520
+ couponInfo?: Record<string, unknown> | undefined;
1508
1521
  }[];
1509
1522
  metadata?: {
1510
1523
  page: number;
@@ -1558,12 +1571,12 @@ export declare const GraphInputSchema: z.ZodEffects<z.ZodObject<{
1558
1571
  startDate: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Date, string>, z.ZodDate]>, Date, string | Date>, Date, string | Date>, Date, string | Date>;
1559
1572
  endDate: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Date, string>, z.ZodDate]>, Date, string | Date>, Date, string | Date>, Date, string | Date>;
1560
1573
  } & {
1561
- graphType: z.ZodDefault<z.ZodNativeEnum<typeof GraphType>>;
1574
+ graphType: z.ZodOptional<z.ZodNativeEnum<typeof GraphType>>;
1562
1575
  itemType: z.ZodOptional<z.ZodNativeEnum<typeof ItemType>>;
1563
1576
  }, "strict", z.ZodTypeAny, {
1564
1577
  startDate: Date;
1565
1578
  endDate: Date;
1566
- graphType: GraphType;
1579
+ graphType?: GraphType | undefined;
1567
1580
  itemType?: ItemType | undefined;
1568
1581
  }, {
1569
1582
  startDate: string | Date;
@@ -1573,7 +1586,7 @@ export declare const GraphInputSchema: z.ZodEffects<z.ZodObject<{
1573
1586
  }>, {
1574
1587
  startDate: Date;
1575
1588
  endDate: Date;
1576
- graphType: GraphType;
1589
+ graphType?: GraphType | undefined;
1577
1590
  itemType?: ItemType | undefined;
1578
1591
  }, {
1579
1592
  startDate: string | Date;
@@ -1606,6 +1619,91 @@ export declare const CouponMetricsOutputSchema: z.ZodObject<{
1606
1619
  totalRevenue?: number | undefined;
1607
1620
  totalProfit?: number | undefined;
1608
1621
  }>;
1622
+ export declare const CouponMetricsByTypeSchema: z.ZodObject<{
1623
+ couponType: z.ZodNativeEnum<typeof CouponType>;
1624
+ couponTypeTitle: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
1625
+ totalCouponOrders: z.ZodDefault<z.ZodNumber>;
1626
+ totalRevenue: z.ZodDefault<z.ZodNumber>;
1627
+ averageOrderValue: z.ZodDefault<z.ZodNumber>;
1628
+ usage: z.ZodDefault<z.ZodNumber>;
1629
+ ongoing: z.ZodDefault<z.ZodNumber>;
1630
+ amountSpent: z.ZodDefault<z.ZodNumber>;
1631
+ redemptionRate: z.ZodDefault<z.ZodNumber>;
1632
+ }, "strip", z.ZodTypeAny, {
1633
+ redemptionRate: number;
1634
+ totalCouponOrders: number;
1635
+ totalRevenue: number;
1636
+ couponType: CouponType;
1637
+ couponTypeTitle: string;
1638
+ averageOrderValue: number;
1639
+ usage: number;
1640
+ ongoing: number;
1641
+ amountSpent: number;
1642
+ }, {
1643
+ couponType: CouponType;
1644
+ couponTypeTitle: string;
1645
+ redemptionRate?: number | undefined;
1646
+ totalCouponOrders?: number | undefined;
1647
+ totalRevenue?: number | undefined;
1648
+ averageOrderValue?: number | undefined;
1649
+ usage?: number | undefined;
1650
+ ongoing?: number | undefined;
1651
+ amountSpent?: number | undefined;
1652
+ }>;
1653
+ export declare const GraphSchema: z.ZodObject<{
1654
+ categories: z.ZodArray<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, "many">;
1655
+ series: z.ZodArray<z.ZodObject<{
1656
+ name: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
1657
+ data: z.ZodArray<z.ZodNumber, "many">;
1658
+ }, "strip", z.ZodTypeAny, {
1659
+ name: string;
1660
+ data: number[];
1661
+ }, {
1662
+ name: string;
1663
+ data: number[];
1664
+ }>, "many">;
1665
+ }, "strip", z.ZodTypeAny, {
1666
+ categories: string[];
1667
+ series: {
1668
+ name: string;
1669
+ data: number[];
1670
+ }[];
1671
+ }, {
1672
+ categories: string[];
1673
+ series: {
1674
+ name: string;
1675
+ data: number[];
1676
+ }[];
1677
+ }>;
1678
+ export declare const TotalProfitGraphSchema: z.ZodObject<{
1679
+ categories: z.ZodArray<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, "many">;
1680
+ series: z.ZodArray<z.ZodObject<{
1681
+ name: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
1682
+ data: z.ZodArray<z.ZodNumber, "many">;
1683
+ }, "strip", z.ZodTypeAny, {
1684
+ name: string;
1685
+ data: number[];
1686
+ }, {
1687
+ name: string;
1688
+ data: number[];
1689
+ }>, "many">;
1690
+ } & {
1691
+ totalProfit: z.ZodDefault<z.ZodNumber>;
1692
+ }, "strip", z.ZodTypeAny, {
1693
+ totalProfit: number;
1694
+ categories: string[];
1695
+ series: {
1696
+ name: string;
1697
+ data: number[];
1698
+ }[];
1699
+ }, {
1700
+ categories: string[];
1701
+ series: {
1702
+ name: string;
1703
+ data: number[];
1704
+ }[];
1705
+ totalProfit?: number | undefined;
1706
+ }>;
1609
1707
  export declare const CouponMetricsResponseSchema: z.ZodObject<{
1610
1708
  success: z.ZodBoolean;
1611
1709
  message: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
@@ -1749,37 +1847,6 @@ export declare const CouponMetricsResponseSchema: z.ZodObject<{
1749
1847
  } | undefined;
1750
1848
  } | undefined;
1751
1849
  }>;
1752
- export declare const CouponMetricsByTypeSchema: z.ZodObject<{
1753
- couponType: z.ZodNativeEnum<typeof CouponType>;
1754
- couponTypeTitle: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
1755
- totalCouponOrders: z.ZodDefault<z.ZodNumber>;
1756
- totalRevenue: z.ZodDefault<z.ZodNumber>;
1757
- averageOrderValue: z.ZodDefault<z.ZodNumber>;
1758
- usage: z.ZodDefault<z.ZodNumber>;
1759
- ongoing: z.ZodDefault<z.ZodNumber>;
1760
- amountSpent: z.ZodDefault<z.ZodNumber>;
1761
- redemptionRate: z.ZodDefault<z.ZodNumber>;
1762
- }, "strip", z.ZodTypeAny, {
1763
- redemptionRate: number;
1764
- totalCouponOrders: number;
1765
- totalRevenue: number;
1766
- couponType: CouponType;
1767
- couponTypeTitle: string;
1768
- averageOrderValue: number;
1769
- usage: number;
1770
- ongoing: number;
1771
- amountSpent: number;
1772
- }, {
1773
- couponType: CouponType;
1774
- couponTypeTitle: string;
1775
- redemptionRate?: number | undefined;
1776
- totalCouponOrders?: number | undefined;
1777
- totalRevenue?: number | undefined;
1778
- averageOrderValue?: number | undefined;
1779
- usage?: number | undefined;
1780
- ongoing?: number | undefined;
1781
- amountSpent?: number | undefined;
1782
- }>;
1783
1850
  export declare const CouponMetricsByTypeResponseSchema: z.ZodObject<{
1784
1851
  success: z.ZodBoolean;
1785
1852
  message: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
@@ -1943,6 +2010,262 @@ export declare const CouponMetricsByTypeResponseSchema: z.ZodObject<{
1943
2010
  } | undefined;
1944
2011
  } | undefined;
1945
2012
  }>;
2013
+ export declare const GraphResponseSchema: z.ZodObject<{
2014
+ success: z.ZodBoolean;
2015
+ message: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
2016
+ data: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
2017
+ metadata: z.ZodOptional<z.ZodObject<{
2018
+ page: z.ZodNumber;
2019
+ size: z.ZodNumber;
2020
+ totalElements: z.ZodNumber;
2021
+ totalPages: z.ZodNumber;
2022
+ }, "strip", z.ZodTypeAny, {
2023
+ page: number;
2024
+ size: number;
2025
+ totalElements: number;
2026
+ totalPages: number;
2027
+ }, {
2028
+ page: number;
2029
+ size: number;
2030
+ totalElements: number;
2031
+ totalPages: number;
2032
+ }>>;
2033
+ documents: z.ZodArray<z.ZodType<{
2034
+ categories: string[];
2035
+ series: {
2036
+ name: string;
2037
+ data: number[];
2038
+ }[];
2039
+ }, z.ZodTypeDef, {
2040
+ categories: string[];
2041
+ series: {
2042
+ name: string;
2043
+ data: number[];
2044
+ }[];
2045
+ }>, "many">;
2046
+ }, "strip", z.ZodTypeAny, {
2047
+ documents: {
2048
+ categories: string[];
2049
+ series: {
2050
+ name: string;
2051
+ data: number[];
2052
+ }[];
2053
+ }[];
2054
+ metadata?: {
2055
+ page: number;
2056
+ size: number;
2057
+ totalElements: number;
2058
+ totalPages: number;
2059
+ } | undefined;
2060
+ }, {
2061
+ documents: {
2062
+ categories: string[];
2063
+ series: {
2064
+ name: string;
2065
+ data: number[];
2066
+ }[];
2067
+ }[];
2068
+ metadata?: {
2069
+ page: number;
2070
+ size: number;
2071
+ totalElements: number;
2072
+ totalPages: number;
2073
+ } | undefined;
2074
+ }>, z.ZodType<{
2075
+ categories: string[];
2076
+ series: {
2077
+ name: string;
2078
+ data: number[];
2079
+ }[];
2080
+ }, z.ZodTypeDef, {
2081
+ categories: string[];
2082
+ series: {
2083
+ name: string;
2084
+ data: number[];
2085
+ }[];
2086
+ }>]>>;
2087
+ }, "strip", z.ZodTypeAny, {
2088
+ message: string;
2089
+ success: boolean;
2090
+ data?: {
2091
+ categories: string[];
2092
+ series: {
2093
+ name: string;
2094
+ data: number[];
2095
+ }[];
2096
+ } | {
2097
+ documents: {
2098
+ categories: string[];
2099
+ series: {
2100
+ name: string;
2101
+ data: number[];
2102
+ }[];
2103
+ }[];
2104
+ metadata?: {
2105
+ page: number;
2106
+ size: number;
2107
+ totalElements: number;
2108
+ totalPages: number;
2109
+ } | undefined;
2110
+ } | undefined;
2111
+ }, {
2112
+ message: string;
2113
+ success: boolean;
2114
+ data?: {
2115
+ categories: string[];
2116
+ series: {
2117
+ name: string;
2118
+ data: number[];
2119
+ }[];
2120
+ } | {
2121
+ documents: {
2122
+ categories: string[];
2123
+ series: {
2124
+ name: string;
2125
+ data: number[];
2126
+ }[];
2127
+ }[];
2128
+ metadata?: {
2129
+ page: number;
2130
+ size: number;
2131
+ totalElements: number;
2132
+ totalPages: number;
2133
+ } | undefined;
2134
+ } | undefined;
2135
+ }>;
2136
+ export declare const TotalProfitGraphResponseSchema: z.ZodObject<{
2137
+ success: z.ZodBoolean;
2138
+ message: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
2139
+ data: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
2140
+ metadata: z.ZodOptional<z.ZodObject<{
2141
+ page: z.ZodNumber;
2142
+ size: z.ZodNumber;
2143
+ totalElements: z.ZodNumber;
2144
+ totalPages: z.ZodNumber;
2145
+ }, "strip", z.ZodTypeAny, {
2146
+ page: number;
2147
+ size: number;
2148
+ totalElements: number;
2149
+ totalPages: number;
2150
+ }, {
2151
+ page: number;
2152
+ size: number;
2153
+ totalElements: number;
2154
+ totalPages: number;
2155
+ }>>;
2156
+ documents: z.ZodArray<z.ZodType<{
2157
+ categories: string[];
2158
+ series: {
2159
+ name: string;
2160
+ data: number[];
2161
+ }[];
2162
+ totalProfit?: number | undefined;
2163
+ }, z.ZodTypeDef, {
2164
+ categories: string[];
2165
+ series: {
2166
+ name: string;
2167
+ data: number[];
2168
+ }[];
2169
+ totalProfit?: number | undefined;
2170
+ }>, "many">;
2171
+ }, "strip", z.ZodTypeAny, {
2172
+ documents: {
2173
+ categories: string[];
2174
+ series: {
2175
+ name: string;
2176
+ data: number[];
2177
+ }[];
2178
+ totalProfit?: number | undefined;
2179
+ }[];
2180
+ metadata?: {
2181
+ page: number;
2182
+ size: number;
2183
+ totalElements: number;
2184
+ totalPages: number;
2185
+ } | undefined;
2186
+ }, {
2187
+ documents: {
2188
+ categories: string[];
2189
+ series: {
2190
+ name: string;
2191
+ data: number[];
2192
+ }[];
2193
+ totalProfit?: number | undefined;
2194
+ }[];
2195
+ metadata?: {
2196
+ page: number;
2197
+ size: number;
2198
+ totalElements: number;
2199
+ totalPages: number;
2200
+ } | undefined;
2201
+ }>, z.ZodType<{
2202
+ categories: string[];
2203
+ series: {
2204
+ name: string;
2205
+ data: number[];
2206
+ }[];
2207
+ totalProfit?: number | undefined;
2208
+ }, z.ZodTypeDef, {
2209
+ categories: string[];
2210
+ series: {
2211
+ name: string;
2212
+ data: number[];
2213
+ }[];
2214
+ totalProfit?: number | undefined;
2215
+ }>]>>;
2216
+ }, "strip", z.ZodTypeAny, {
2217
+ message: string;
2218
+ success: boolean;
2219
+ data?: {
2220
+ categories: string[];
2221
+ series: {
2222
+ name: string;
2223
+ data: number[];
2224
+ }[];
2225
+ totalProfit?: number | undefined;
2226
+ } | {
2227
+ documents: {
2228
+ categories: string[];
2229
+ series: {
2230
+ name: string;
2231
+ data: number[];
2232
+ }[];
2233
+ totalProfit?: number | undefined;
2234
+ }[];
2235
+ metadata?: {
2236
+ page: number;
2237
+ size: number;
2238
+ totalElements: number;
2239
+ totalPages: number;
2240
+ } | undefined;
2241
+ } | undefined;
2242
+ }, {
2243
+ message: string;
2244
+ success: boolean;
2245
+ data?: {
2246
+ categories: string[];
2247
+ series: {
2248
+ name: string;
2249
+ data: number[];
2250
+ }[];
2251
+ totalProfit?: number | undefined;
2252
+ } | {
2253
+ documents: {
2254
+ categories: string[];
2255
+ series: {
2256
+ name: string;
2257
+ data: number[];
2258
+ }[];
2259
+ totalProfit?: number | undefined;
2260
+ }[];
2261
+ metadata?: {
2262
+ page: number;
2263
+ size: number;
2264
+ totalElements: number;
2265
+ totalPages: number;
2266
+ } | undefined;
2267
+ } | undefined;
2268
+ }>;
1946
2269
  export type CreateCouponDTO = DTO<typeof CouponValidationSchema>;
1947
2270
  export type CouponDTO = DTO<typeof CouponSchema>;
1948
2271
  export type UpdateCouponDTO = DTO<typeof UpdateCouponSchema>;
@@ -1958,4 +2281,6 @@ export type DateInputDTO = DTO<typeof DateInputSchema>;
1958
2281
  export type GraphInputDTO = DTO<typeof GraphInputSchema>;
1959
2282
  export type CouponMetricsOutputDTO = DTO<typeof CouponMetricsOutputSchema>;
1960
2283
  export type CouponMetricsByTypeDTO = DTO<typeof CouponMetricsByTypeSchema>;
2284
+ export type GraphDTO = DTO<typeof GraphSchema>;
2285
+ export type TotalProfitGraphDTO = DTO<typeof TotalProfitGraphSchema>;
1961
2286
  //# sourceMappingURL=coupon.validation.d.ts.map
@@ -1 +1 @@
1
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etricsByTypeResponseSchema = exports.CouponMetricsByTypeSchema = exports.CouponMetricsResponseSchema = exports.CouponMetricsOutputSchema = exports.GraphInputSchema = exports.DateInputSchema = exports.BaseDateInputSchema = exports.IsNewUserGiftBoxShownSchema = exports.DeviceIdSchema = exports.CouponValidationResponseSchema = exports.CheckExistingNewUserCouponOutputSchema = exports.UpdateCouponStatusSchema = exports.CouponCodeSchema = exports.CouponValidationOutputSchema = exports.ValidateCouponSchema = exports.GetUserCouponSchema = exports.UpdateCouponSchema = exports.CouponIdValidationSchema = exports.CouponSchema = exports.CouponValidationSchema = exports.GetUserCouponsResponseSchema = exports.baseFields = exports.couponFields = void 0;
3
+ exports.TotalProfitGraphResponseSchema = exports.GraphResponseSchema = exports.CouponMetricsByTypeResponseSchema = exports.CouponMetricsResponseSchema = exports.TotalProfitGraphSchema = exports.GraphSchema = exports.CouponMetricsByTypeSchema = exports.CouponMetricsOutputSchema = exports.GraphInputSchema = exports.DateInputSchema = exports.BaseDateInputSchema = exports.IsNewUserGiftBoxShownSchema = exports.DeviceIdSchema = exports.CouponValidationResponseSchema = exports.CheckExistingNewUserCouponOutputSchema = exports.UpdateCouponStatusSchema = exports.CouponCodeSchema = exports.CouponValidationOutputSchema = exports.ValidateCouponSchema = exports.GetUserCouponSchema = exports.UpdateCouponSchema = exports.CouponIdValidationSchema = exports.CouponSchema = exports.CouponValidationSchema = exports.GetUserCouponsResponseSchema = exports.baseFields = exports.couponFields = void 0;
4
4
  const zod_1 = require("zod");
5
5
  const global_validation_1 = require("@lyxa.ai/core/dist/utilities/validation/global-validation");
6
6
  const enum_1 = require("@lyxa.ai/core/dist/utilities/enum");
@@ -119,6 +119,7 @@ exports.CouponValidationOutputSchema = zod_1.z.object({
119
119
  secondaryDiscountAmount: global_validation_1.ZodValidation.number('Secondary coupon discount').optional(),
120
120
  discountCut: discountCutSchema.optional(),
121
121
  couponDetails: zod_1.z.record(zod_1.z.unknown()).optional(),
122
+ couponInfo: zod_1.z.record(zod_1.z.unknown()).optional(),
122
123
  });
123
124
  exports.CouponCodeSchema = zod_1.z.object({
124
125
  couponCode: global_validation_1.ZodValidation.string('Coupon code'),
@@ -144,7 +145,7 @@ exports.DateInputSchema = exports.BaseDateInputSchema.refine(data => !(0, dayjs_
144
145
  path: ['startDate'],
145
146
  });
146
147
  exports.GraphInputSchema = exports.BaseDateInputSchema.extend({
147
- graphType: global_validation_1.ZodValidation.enumType(enum_1.GraphType, 'Type').default(enum_1.GraphType.DAILY),
148
+ graphType: global_validation_1.ZodValidation.enumType(enum_1.GraphType, 'Type').optional(),
148
149
  itemType: global_validation_1.ZodValidation.enumType(enum_1.ItemType, 'Item Type').optional(),
149
150
  }).refine(data => !(0, dayjs_1.dayjs)(data.startDate).isAfter((0, dayjs_1.dayjs)(data.endDate)), {
150
151
  message: 'Start date cannot be after end date',
@@ -159,7 +160,6 @@ exports.CouponMetricsOutputSchema = zod_1.z.object({
159
160
  totalRevenue: global_validation_1.ZodValidation.number('Total revenue from coupons').default(0),
160
161
  totalProfit: global_validation_1.ZodValidation.number('Total profit from coupons').default(0),
161
162
  });
162
- exports.CouponMetricsResponseSchema = (0, common_validation_1.createResponseSchema)(exports.CouponMetricsOutputSchema);
163
163
  exports.CouponMetricsByTypeSchema = zod_1.z.object({
164
164
  couponType: global_validation_1.ZodValidation.enumType(enum_1.CouponType, 'Coupon Type'),
165
165
  couponTypeTitle: global_validation_1.ZodValidation.string('Coupon Type Title'),
@@ -171,5 +171,18 @@ exports.CouponMetricsByTypeSchema = zod_1.z.object({
171
171
  amountSpent: global_validation_1.ZodValidation.number('Amount spent on coupons of this type').default(0),
172
172
  redemptionRate: global_validation_1.ZodValidation.number('Redemption rate for this coupon type').default(0),
173
173
  });
174
+ exports.GraphSchema = zod_1.z.object({
175
+ categories: global_validation_1.ZodValidation.array(global_validation_1.ZodValidation.string('Category labels')),
176
+ series: global_validation_1.ZodValidation.array(zod_1.z.object({
177
+ name: global_validation_1.ZodValidation.string('Name of the series'),
178
+ data: global_validation_1.ZodValidation.array(global_validation_1.ZodValidation.number('Series data')),
179
+ })),
180
+ });
181
+ exports.TotalProfitGraphSchema = exports.GraphSchema.extend({
182
+ totalProfit: global_validation_1.ZodValidation.number('Total profit').default(0),
183
+ });
184
+ exports.CouponMetricsResponseSchema = (0, common_validation_1.createResponseSchema)(exports.CouponMetricsOutputSchema);
174
185
  exports.CouponMetricsByTypeResponseSchema = (0, common_validation_1.createResponseSchema)(exports.CouponMetricsByTypeSchema.array());
186
+ exports.GraphResponseSchema = (0, common_validation_1.createResponseSchema)(exports.GraphSchema);
187
+ exports.TotalProfitGraphResponseSchema = (0, common_validation_1.createResponseSchema)(exports.TotalProfitGraphSchema);
175
188
  //# sourceMappingURL=coupon.validation.js.map