@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
@@ -0,0 +1,575 @@
1
+ import { z } from 'zod';
2
+ import { DTO } from '@lyxa.ai/core/dist/utilities/validation/global-validation';
3
+ export declare const CreatePredictionSchema: z.ZodObject<{
4
+ tournamentId: 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>]>;
5
+ matchId: 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>]>;
6
+ score: z.ZodObject<{
7
+ team1: z.ZodNumber;
8
+ team2: z.ZodNumber;
9
+ }, "strip", z.ZodTypeAny, {
10
+ team1: number;
11
+ team2: number;
12
+ }, {
13
+ team1: number;
14
+ team2: number;
15
+ }>;
16
+ }, "strip", z.ZodTypeAny, {
17
+ score: {
18
+ team1: number;
19
+ team2: number;
20
+ };
21
+ tournamentId: import("mongoose").Types.ObjectId;
22
+ matchId: import("mongoose").Types.ObjectId;
23
+ }, {
24
+ score: {
25
+ team1: number;
26
+ team2: number;
27
+ };
28
+ tournamentId: string | import("mongoose").Types.ObjectId;
29
+ matchId: string | import("mongoose").Types.ObjectId;
30
+ }>;
31
+ export declare const EditPredictionSchema: z.ZodObject<{
32
+ tournamentId: 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
+ matchId: 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
+ score: z.ZodObject<{
35
+ team1: z.ZodNumber;
36
+ team2: z.ZodNumber;
37
+ }, "strip", z.ZodTypeAny, {
38
+ team1: number;
39
+ team2: number;
40
+ }, {
41
+ team1: number;
42
+ team2: number;
43
+ }>;
44
+ }, "strip", z.ZodTypeAny, {
45
+ score: {
46
+ team1: number;
47
+ team2: number;
48
+ };
49
+ tournamentId: import("mongoose").Types.ObjectId;
50
+ matchId: import("mongoose").Types.ObjectId;
51
+ }, {
52
+ score: {
53
+ team1: number;
54
+ team2: number;
55
+ };
56
+ tournamentId: string | import("mongoose").Types.ObjectId;
57
+ matchId: string | import("mongoose").Types.ObjectId;
58
+ }>;
59
+ export declare const GetPredictionSchema: z.ZodObject<{
60
+ tournamentId: 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
+ matchId: 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
+ }, "strip", z.ZodTypeAny, {
63
+ tournamentId: import("mongoose").Types.ObjectId;
64
+ matchId: import("mongoose").Types.ObjectId;
65
+ }, {
66
+ tournamentId: string | import("mongoose").Types.ObjectId;
67
+ matchId: string | import("mongoose").Types.ObjectId;
68
+ }>;
69
+ export declare const PredictionSchema: z.ZodObject<{
70
+ _id: 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
+ matchId: 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
+ score: z.ZodObject<{
73
+ team1: z.ZodNullable<z.ZodNumber>;
74
+ team2: z.ZodNullable<z.ZodNumber>;
75
+ }, "strip", z.ZodTypeAny, {
76
+ team1: number | null;
77
+ team2: number | null;
78
+ }, {
79
+ team1: number | null;
80
+ team2: number | null;
81
+ }>;
82
+ predictionTime: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
83
+ succeeded: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
84
+ }, "strip", z.ZodTypeAny, {
85
+ _id: import("mongoose").Types.ObjectId;
86
+ score: {
87
+ team1: number | null;
88
+ team2: number | null;
89
+ };
90
+ matchId: import("mongoose").Types.ObjectId;
91
+ succeeded?: boolean | null | undefined;
92
+ predictionTime?: Date | null | undefined;
93
+ }, {
94
+ _id: string | import("mongoose").Types.ObjectId;
95
+ score: {
96
+ team1: number | null;
97
+ team2: number | null;
98
+ };
99
+ matchId: string | import("mongoose").Types.ObjectId;
100
+ succeeded?: boolean | null | undefined;
101
+ predictionTime?: Date | null | undefined;
102
+ }>;
103
+ export declare const MutatePredictionSchema: z.ZodObject<{
104
+ _id: 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>]>;
105
+ matchId: 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
+ score: z.ZodObject<{
107
+ team1: z.ZodNullable<z.ZodNumber>;
108
+ team2: z.ZodNullable<z.ZodNumber>;
109
+ }, "strip", z.ZodTypeAny, {
110
+ team1: number | null;
111
+ team2: number | null;
112
+ }, {
113
+ team1: number | null;
114
+ team2: number | null;
115
+ }>;
116
+ }, "strip", z.ZodTypeAny, {
117
+ _id: import("mongoose").Types.ObjectId;
118
+ score: {
119
+ team1: number | null;
120
+ team2: number | null;
121
+ };
122
+ matchId: import("mongoose").Types.ObjectId;
123
+ }, {
124
+ _id: string | import("mongoose").Types.ObjectId;
125
+ score: {
126
+ team1: number | null;
127
+ team2: number | null;
128
+ };
129
+ matchId: string | import("mongoose").Types.ObjectId;
130
+ }>;
131
+ export declare const MutatePredictionResponseSchema: z.ZodObject<{
132
+ success: z.ZodBoolean;
133
+ message: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
134
+ data: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
135
+ metadata: z.ZodOptional<z.ZodObject<{
136
+ page: z.ZodNumber;
137
+ size: z.ZodNumber;
138
+ totalElements: z.ZodNumber;
139
+ totalPages: z.ZodNumber;
140
+ }, "strip", z.ZodTypeAny, {
141
+ page: number;
142
+ size: number;
143
+ totalElements: number;
144
+ totalPages: number;
145
+ }, {
146
+ page: number;
147
+ size: number;
148
+ totalElements: number;
149
+ totalPages: number;
150
+ }>>;
151
+ documents: z.ZodArray<z.ZodType<{
152
+ _id: string | import("mongoose").Types.ObjectId;
153
+ score: {
154
+ team1: number | null;
155
+ team2: number | null;
156
+ };
157
+ matchId: string | import("mongoose").Types.ObjectId;
158
+ }, z.ZodTypeDef, {
159
+ _id: string | import("mongoose").Types.ObjectId;
160
+ score: {
161
+ team1: number | null;
162
+ team2: number | null;
163
+ };
164
+ matchId: string | import("mongoose").Types.ObjectId;
165
+ }>, "many">;
166
+ }, "strip", z.ZodTypeAny, {
167
+ documents: {
168
+ _id: string | import("mongoose").Types.ObjectId;
169
+ score: {
170
+ team1: number | null;
171
+ team2: number | null;
172
+ };
173
+ matchId: string | import("mongoose").Types.ObjectId;
174
+ }[];
175
+ metadata?: {
176
+ page: number;
177
+ size: number;
178
+ totalElements: number;
179
+ totalPages: number;
180
+ } | undefined;
181
+ }, {
182
+ documents: {
183
+ _id: string | import("mongoose").Types.ObjectId;
184
+ score: {
185
+ team1: number | null;
186
+ team2: number | null;
187
+ };
188
+ matchId: string | import("mongoose").Types.ObjectId;
189
+ }[];
190
+ metadata?: {
191
+ page: number;
192
+ size: number;
193
+ totalElements: number;
194
+ totalPages: number;
195
+ } | undefined;
196
+ }>, z.ZodType<{
197
+ _id: string | import("mongoose").Types.ObjectId;
198
+ score: {
199
+ team1: number | null;
200
+ team2: number | null;
201
+ };
202
+ matchId: string | import("mongoose").Types.ObjectId;
203
+ }, z.ZodTypeDef, {
204
+ _id: string | import("mongoose").Types.ObjectId;
205
+ score: {
206
+ team1: number | null;
207
+ team2: number | null;
208
+ };
209
+ matchId: string | import("mongoose").Types.ObjectId;
210
+ }>]>>;
211
+ }, "strip", z.ZodTypeAny, {
212
+ message: string;
213
+ success: boolean;
214
+ data?: {
215
+ _id: string | import("mongoose").Types.ObjectId;
216
+ score: {
217
+ team1: number | null;
218
+ team2: number | null;
219
+ };
220
+ matchId: string | import("mongoose").Types.ObjectId;
221
+ } | {
222
+ documents: {
223
+ _id: string | import("mongoose").Types.ObjectId;
224
+ score: {
225
+ team1: number | null;
226
+ team2: number | null;
227
+ };
228
+ matchId: string | import("mongoose").Types.ObjectId;
229
+ }[];
230
+ metadata?: {
231
+ page: number;
232
+ size: number;
233
+ totalElements: number;
234
+ totalPages: number;
235
+ } | undefined;
236
+ } | undefined;
237
+ }, {
238
+ message: string;
239
+ success: boolean;
240
+ data?: {
241
+ _id: string | import("mongoose").Types.ObjectId;
242
+ score: {
243
+ team1: number | null;
244
+ team2: number | null;
245
+ };
246
+ matchId: string | import("mongoose").Types.ObjectId;
247
+ } | {
248
+ documents: {
249
+ _id: string | import("mongoose").Types.ObjectId;
250
+ score: {
251
+ team1: number | null;
252
+ team2: number | null;
253
+ };
254
+ matchId: string | import("mongoose").Types.ObjectId;
255
+ }[];
256
+ metadata?: {
257
+ page: number;
258
+ size: number;
259
+ totalElements: number;
260
+ totalPages: number;
261
+ } | undefined;
262
+ } | undefined;
263
+ }>;
264
+ export declare const PredictionResponseSchema: z.ZodObject<{
265
+ success: z.ZodBoolean;
266
+ message: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
267
+ data: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
268
+ metadata: z.ZodOptional<z.ZodObject<{
269
+ page: z.ZodNumber;
270
+ size: z.ZodNumber;
271
+ totalElements: z.ZodNumber;
272
+ totalPages: z.ZodNumber;
273
+ }, "strip", z.ZodTypeAny, {
274
+ page: number;
275
+ size: number;
276
+ totalElements: number;
277
+ totalPages: number;
278
+ }, {
279
+ page: number;
280
+ size: number;
281
+ totalElements: number;
282
+ totalPages: number;
283
+ }>>;
284
+ documents: z.ZodArray<z.ZodType<{
285
+ _id: string | import("mongoose").Types.ObjectId;
286
+ score: {
287
+ team1: number | null;
288
+ team2: number | null;
289
+ };
290
+ matchId: string | import("mongoose").Types.ObjectId;
291
+ succeeded?: boolean | null | undefined;
292
+ predictionTime?: Date | null | undefined;
293
+ }, z.ZodTypeDef, {
294
+ _id: string | import("mongoose").Types.ObjectId;
295
+ score: {
296
+ team1: number | null;
297
+ team2: number | null;
298
+ };
299
+ matchId: string | import("mongoose").Types.ObjectId;
300
+ succeeded?: boolean | null | undefined;
301
+ predictionTime?: Date | null | undefined;
302
+ }>, "many">;
303
+ }, "strip", z.ZodTypeAny, {
304
+ documents: {
305
+ _id: string | import("mongoose").Types.ObjectId;
306
+ score: {
307
+ team1: number | null;
308
+ team2: number | null;
309
+ };
310
+ matchId: string | import("mongoose").Types.ObjectId;
311
+ succeeded?: boolean | null | undefined;
312
+ predictionTime?: Date | null | undefined;
313
+ }[];
314
+ metadata?: {
315
+ page: number;
316
+ size: number;
317
+ totalElements: number;
318
+ totalPages: number;
319
+ } | undefined;
320
+ }, {
321
+ documents: {
322
+ _id: string | import("mongoose").Types.ObjectId;
323
+ score: {
324
+ team1: number | null;
325
+ team2: number | null;
326
+ };
327
+ matchId: string | import("mongoose").Types.ObjectId;
328
+ succeeded?: boolean | null | undefined;
329
+ predictionTime?: Date | null | undefined;
330
+ }[];
331
+ metadata?: {
332
+ page: number;
333
+ size: number;
334
+ totalElements: number;
335
+ totalPages: number;
336
+ } | undefined;
337
+ }>, z.ZodType<{
338
+ _id: string | import("mongoose").Types.ObjectId;
339
+ score: {
340
+ team1: number | null;
341
+ team2: number | null;
342
+ };
343
+ matchId: string | import("mongoose").Types.ObjectId;
344
+ succeeded?: boolean | null | undefined;
345
+ predictionTime?: Date | null | undefined;
346
+ }, z.ZodTypeDef, {
347
+ _id: string | import("mongoose").Types.ObjectId;
348
+ score: {
349
+ team1: number | null;
350
+ team2: number | null;
351
+ };
352
+ matchId: string | import("mongoose").Types.ObjectId;
353
+ succeeded?: boolean | null | undefined;
354
+ predictionTime?: Date | null | undefined;
355
+ }>]>>;
356
+ }, "strip", z.ZodTypeAny, {
357
+ message: string;
358
+ success: boolean;
359
+ data?: {
360
+ _id: string | import("mongoose").Types.ObjectId;
361
+ score: {
362
+ team1: number | null;
363
+ team2: number | null;
364
+ };
365
+ matchId: string | import("mongoose").Types.ObjectId;
366
+ succeeded?: boolean | null | undefined;
367
+ predictionTime?: Date | null | undefined;
368
+ } | {
369
+ documents: {
370
+ _id: string | import("mongoose").Types.ObjectId;
371
+ score: {
372
+ team1: number | null;
373
+ team2: number | null;
374
+ };
375
+ matchId: string | import("mongoose").Types.ObjectId;
376
+ succeeded?: boolean | null | undefined;
377
+ predictionTime?: Date | null | undefined;
378
+ }[];
379
+ metadata?: {
380
+ page: number;
381
+ size: number;
382
+ totalElements: number;
383
+ totalPages: number;
384
+ } | undefined;
385
+ } | undefined;
386
+ }, {
387
+ message: string;
388
+ success: boolean;
389
+ data?: {
390
+ _id: string | import("mongoose").Types.ObjectId;
391
+ score: {
392
+ team1: number | null;
393
+ team2: number | null;
394
+ };
395
+ matchId: string | import("mongoose").Types.ObjectId;
396
+ succeeded?: boolean | null | undefined;
397
+ predictionTime?: Date | null | undefined;
398
+ } | {
399
+ documents: {
400
+ _id: string | import("mongoose").Types.ObjectId;
401
+ score: {
402
+ team1: number | null;
403
+ team2: number | null;
404
+ };
405
+ matchId: string | import("mongoose").Types.ObjectId;
406
+ succeeded?: boolean | null | undefined;
407
+ predictionTime?: Date | null | undefined;
408
+ }[];
409
+ metadata?: {
410
+ page: number;
411
+ size: number;
412
+ totalElements: number;
413
+ totalPages: number;
414
+ } | undefined;
415
+ } | undefined;
416
+ }>;
417
+ export declare const PredictionNullableResponseSchema: z.ZodObject<{
418
+ success: z.ZodBoolean;
419
+ message: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
420
+ data: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
421
+ metadata: z.ZodOptional<z.ZodObject<{
422
+ page: z.ZodNumber;
423
+ size: z.ZodNumber;
424
+ totalElements: z.ZodNumber;
425
+ totalPages: z.ZodNumber;
426
+ }, "strip", z.ZodTypeAny, {
427
+ page: number;
428
+ size: number;
429
+ totalElements: number;
430
+ totalPages: number;
431
+ }, {
432
+ page: number;
433
+ size: number;
434
+ totalElements: number;
435
+ totalPages: number;
436
+ }>>;
437
+ documents: z.ZodArray<z.ZodType<{
438
+ _id: string | import("mongoose").Types.ObjectId;
439
+ score: {
440
+ team1: number | null;
441
+ team2: number | null;
442
+ };
443
+ matchId: string | import("mongoose").Types.ObjectId;
444
+ succeeded?: boolean | null | undefined;
445
+ predictionTime?: Date | null | undefined;
446
+ } | null, z.ZodTypeDef, {
447
+ _id: string | import("mongoose").Types.ObjectId;
448
+ score: {
449
+ team1: number | null;
450
+ team2: number | null;
451
+ };
452
+ matchId: string | import("mongoose").Types.ObjectId;
453
+ succeeded?: boolean | null | undefined;
454
+ predictionTime?: Date | null | undefined;
455
+ } | null>, "many">;
456
+ }, "strip", z.ZodTypeAny, {
457
+ documents: ({
458
+ _id: string | import("mongoose").Types.ObjectId;
459
+ score: {
460
+ team1: number | null;
461
+ team2: number | null;
462
+ };
463
+ matchId: string | import("mongoose").Types.ObjectId;
464
+ succeeded?: boolean | null | undefined;
465
+ predictionTime?: Date | null | undefined;
466
+ } | null)[];
467
+ metadata?: {
468
+ page: number;
469
+ size: number;
470
+ totalElements: number;
471
+ totalPages: number;
472
+ } | undefined;
473
+ }, {
474
+ documents: ({
475
+ _id: string | import("mongoose").Types.ObjectId;
476
+ score: {
477
+ team1: number | null;
478
+ team2: number | null;
479
+ };
480
+ matchId: string | import("mongoose").Types.ObjectId;
481
+ succeeded?: boolean | null | undefined;
482
+ predictionTime?: Date | null | undefined;
483
+ } | null)[];
484
+ metadata?: {
485
+ page: number;
486
+ size: number;
487
+ totalElements: number;
488
+ totalPages: number;
489
+ } | undefined;
490
+ }>, z.ZodType<{
491
+ _id: string | import("mongoose").Types.ObjectId;
492
+ score: {
493
+ team1: number | null;
494
+ team2: number | null;
495
+ };
496
+ matchId: string | import("mongoose").Types.ObjectId;
497
+ succeeded?: boolean | null | undefined;
498
+ predictionTime?: Date | null | undefined;
499
+ } | null, z.ZodTypeDef, {
500
+ _id: string | import("mongoose").Types.ObjectId;
501
+ score: {
502
+ team1: number | null;
503
+ team2: number | null;
504
+ };
505
+ matchId: string | import("mongoose").Types.ObjectId;
506
+ succeeded?: boolean | null | undefined;
507
+ predictionTime?: Date | null | undefined;
508
+ } | null>]>>;
509
+ }, "strip", z.ZodTypeAny, {
510
+ message: string;
511
+ success: boolean;
512
+ data?: {
513
+ _id: string | import("mongoose").Types.ObjectId;
514
+ score: {
515
+ team1: number | null;
516
+ team2: number | null;
517
+ };
518
+ matchId: string | import("mongoose").Types.ObjectId;
519
+ succeeded?: boolean | null | undefined;
520
+ predictionTime?: Date | null | undefined;
521
+ } | {
522
+ documents: ({
523
+ _id: string | import("mongoose").Types.ObjectId;
524
+ score: {
525
+ team1: number | null;
526
+ team2: number | null;
527
+ };
528
+ matchId: string | import("mongoose").Types.ObjectId;
529
+ succeeded?: boolean | null | undefined;
530
+ predictionTime?: Date | null | undefined;
531
+ } | null)[];
532
+ metadata?: {
533
+ page: number;
534
+ size: number;
535
+ totalElements: number;
536
+ totalPages: number;
537
+ } | undefined;
538
+ } | null | undefined;
539
+ }, {
540
+ message: string;
541
+ success: boolean;
542
+ data?: {
543
+ _id: string | import("mongoose").Types.ObjectId;
544
+ score: {
545
+ team1: number | null;
546
+ team2: number | null;
547
+ };
548
+ matchId: string | import("mongoose").Types.ObjectId;
549
+ succeeded?: boolean | null | undefined;
550
+ predictionTime?: Date | null | undefined;
551
+ } | {
552
+ documents: ({
553
+ _id: string | import("mongoose").Types.ObjectId;
554
+ score: {
555
+ team1: number | null;
556
+ team2: number | null;
557
+ };
558
+ matchId: string | import("mongoose").Types.ObjectId;
559
+ succeeded?: boolean | null | undefined;
560
+ predictionTime?: Date | null | undefined;
561
+ } | null)[];
562
+ metadata?: {
563
+ page: number;
564
+ size: number;
565
+ totalElements: number;
566
+ totalPages: number;
567
+ } | undefined;
568
+ } | null | undefined;
569
+ }>;
570
+ export type CreatePredictionInputDTO = DTO<typeof CreatePredictionSchema>;
571
+ export type EditPredictionInputDTO = DTO<typeof EditPredictionSchema>;
572
+ export type GetPredictionInputDTO = DTO<typeof GetPredictionSchema>;
573
+ export type MutatePredictionOutputDTO = DTO<typeof MutatePredictionSchema>;
574
+ export type PredictionOutputDTO = DTO<typeof PredictionSchema>;
575
+ //# sourceMappingURL=prediction.validation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"prediction.validation.d.ts","sourceRoot":"/","sources":["modules/tournament/prediction/prediction.validation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,GAAG,EAAiB,MAAM,2DAA2D,CAAC;AAQ/F,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;EAIjC,CAAC;AAEH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;EAI/B,CAAC;AAEH,eAAO,MAAM,mBAAmB;;;;;;;;;EAG9B,CAAC;AAEH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAS3B,CAAC;AAEH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;EAOjC,CAAC;AAEH,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAA+C,CAAC;AAC3F,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAyC,CAAC;AAC/E,eAAO,MAAM,gCAAgC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAoD,CAAC;AAElG,MAAM,MAAM,wBAAwB,GAAG,GAAG,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAC1E,MAAM,MAAM,sBAAsB,GAAG,GAAG,CAAC,OAAO,oBAAoB,CAAC,CAAC;AACtE,MAAM,MAAM,qBAAqB,GAAG,GAAG,CAAC,OAAO,mBAAmB,CAAC,CAAC;AACpE,MAAM,MAAM,yBAAyB,GAAG,GAAG,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAC3E,MAAM,MAAM,mBAAmB,GAAG,GAAG,CAAC,OAAO,gBAAgB,CAAC,CAAC"}
@@ -0,0 +1,46 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PredictionNullableResponseSchema = exports.PredictionResponseSchema = exports.MutatePredictionResponseSchema = exports.MutatePredictionSchema = exports.PredictionSchema = exports.GetPredictionSchema = exports.EditPredictionSchema = exports.CreatePredictionSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ const global_validation_1 = require("@lyxa.ai/core/dist/utilities/validation/global-validation");
6
+ const validation_1 = require("@lyxa.ai/core/dist/utilities/validation");
7
+ const PredictionScoreSchema = zod_1.z.object({
8
+ team1: global_validation_1.ZodValidation.number('Team 1 predicted score', { min: 0, isInt: true }),
9
+ team2: global_validation_1.ZodValidation.number('Team 2 predicted score', { min: 0, isInt: true }),
10
+ });
11
+ exports.CreatePredictionSchema = zod_1.z.object({
12
+ tournamentId: global_validation_1.ZodValidation.objectId('Tournament id'),
13
+ matchId: global_validation_1.ZodValidation.objectId('Match id'),
14
+ score: PredictionScoreSchema,
15
+ });
16
+ exports.EditPredictionSchema = zod_1.z.object({
17
+ tournamentId: global_validation_1.ZodValidation.objectId('Tournament id'),
18
+ matchId: global_validation_1.ZodValidation.objectId('Match id'),
19
+ score: PredictionScoreSchema,
20
+ });
21
+ exports.GetPredictionSchema = zod_1.z.object({
22
+ tournamentId: global_validation_1.ZodValidation.objectId('Tournament id'),
23
+ matchId: global_validation_1.ZodValidation.objectId('Match id'),
24
+ });
25
+ exports.PredictionSchema = zod_1.z.object({
26
+ _id: global_validation_1.ZodValidation.objectId(),
27
+ matchId: global_validation_1.ZodValidation.objectId('Match id'),
28
+ score: zod_1.z.object({
29
+ team1: global_validation_1.ZodValidation.number('Team 1 score').nullable(),
30
+ team2: global_validation_1.ZodValidation.number('Team 2 score').nullable(),
31
+ }),
32
+ predictionTime: zod_1.z.date().nullable().optional(),
33
+ succeeded: zod_1.z.boolean().nullable().optional(),
34
+ });
35
+ exports.MutatePredictionSchema = zod_1.z.object({
36
+ _id: global_validation_1.ZodValidation.objectId(),
37
+ matchId: global_validation_1.ZodValidation.objectId('Match id'),
38
+ score: zod_1.z.object({
39
+ team1: global_validation_1.ZodValidation.number('Team 1 score').nullable(),
40
+ team2: global_validation_1.ZodValidation.number('Team 2 score').nullable(),
41
+ }),
42
+ });
43
+ exports.MutatePredictionResponseSchema = (0, validation_1.createResponseSchema)(exports.MutatePredictionSchema);
44
+ exports.PredictionResponseSchema = (0, validation_1.createResponseSchema)(exports.PredictionSchema);
45
+ exports.PredictionNullableResponseSchema = (0, validation_1.createResponseSchema)(exports.PredictionSchema.nullable());
46
+ //# sourceMappingURL=prediction.validation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"prediction.validation.js","sourceRoot":"/","sources":["modules/tournament/prediction/prediction.validation.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,iGAA+F;AAC/F,wEAA+E;AAE/E,MAAM,qBAAqB,GAAG,OAAC,CAAC,MAAM,CAAC;IACnC,KAAK,EAAE,iCAAa,CAAC,MAAM,CAAC,wBAAwB,EAAE,EAAE,GAAG,EAAE,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;IAC9E,KAAK,EAAE,iCAAa,CAAC,MAAM,CAAC,wBAAwB,EAAE,EAAE,GAAG,EAAE,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;CACjF,CAAC,CAAC;AAEU,QAAA,sBAAsB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC3C,YAAY,EAAE,iCAAa,CAAC,QAAQ,CAAC,eAAe,CAAC;IACrD,OAAO,EAAE,iCAAa,CAAC,QAAQ,CAAC,UAAU,CAAC;IAC3C,KAAK,EAAE,qBAAqB;CAC/B,CAAC,CAAC;AAEU,QAAA,oBAAoB,GAAG,OAAC,CAAC,MAAM,CAAC;IACzC,YAAY,EAAE,iCAAa,CAAC,QAAQ,CAAC,eAAe,CAAC;IACrD,OAAO,EAAE,iCAAa,CAAC,QAAQ,CAAC,UAAU,CAAC;IAC3C,KAAK,EAAE,qBAAqB;CAC/B,CAAC,CAAC;AAEU,QAAA,mBAAmB,GAAG,OAAC,CAAC,MAAM,CAAC;IACxC,YAAY,EAAE,iCAAa,CAAC,QAAQ,CAAC,eAAe,CAAC;IACrD,OAAO,EAAE,iCAAa,CAAC,QAAQ,CAAC,UAAU,CAAC;CAC9C,CAAC,CAAC;AAEU,QAAA,gBAAgB,GAAG,OAAC,CAAC,MAAM,CAAC;IACrC,GAAG,EAAE,iCAAa,CAAC,QAAQ,EAAE;IAC7B,OAAO,EAAE,iCAAa,CAAC,QAAQ,CAAC,UAAU,CAAC;IAC3C,KAAK,EAAE,OAAC,CAAC,MAAM,CAAC;QACZ,KAAK,EAAE,iCAAa,CAAC,MAAM,CAAC,cAAc,CAAC,CAAC,QAAQ,EAAE;QACtD,KAAK,EAAE,iCAAa,CAAC,MAAM,CAAC,cAAc,CAAC,CAAC,QAAQ,EAAE;KACzD,CAAC;IACF,cAAc,EAAE,OAAC,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IAC9C,SAAS,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;CAC/C,CAAC,CAAC;AAEU,QAAA,sBAAsB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC3C,GAAG,EAAE,iCAAa,CAAC,QAAQ,EAAE;IAC7B,OAAO,EAAE,iCAAa,CAAC,QAAQ,CAAC,UAAU,CAAC;IAC3C,KAAK,EAAE,OAAC,CAAC,MAAM,CAAC;QACZ,KAAK,EAAE,iCAAa,CAAC,MAAM,CAAC,cAAc,CAAC,CAAC,QAAQ,EAAE;QACtD,KAAK,EAAE,iCAAa,CAAC,MAAM,CAAC,cAAc,CAAC,CAAC,QAAQ,EAAE;KACzD,CAAC;CACL,CAAC,CAAC;AAEU,QAAA,8BAA8B,GAAG,IAAA,iCAAoB,EAAC,8BAAsB,CAAC,CAAC;AAC9E,QAAA,wBAAwB,GAAG,IAAA,iCAAoB,EAAC,wBAAgB,CAAC,CAAC;AAClE,QAAA,gCAAgC,GAAG,IAAA,iCAAoB,EAAC,wBAAgB,CAAC,QAAQ,EAAE,CAAC,CAAC","sourcesContent":["import { z } from 'zod';\nimport { DTO, ZodValidation } from '@lyxa.ai/core/dist/utilities/validation/global-validation';\nimport { createResponseSchema } from '@lyxa.ai/core/dist/utilities/validation';\n\nconst PredictionScoreSchema = z.object({\n team1: ZodValidation.number('Team 1 predicted score', { min: 0, isInt: true }),\n team2: ZodValidation.number('Team 2 predicted score', { min: 0, isInt: true }),\n});\n\nexport const CreatePredictionSchema = z.object({\n tournamentId: ZodValidation.objectId('Tournament id'),\n matchId: ZodValidation.objectId('Match id'),\n score: PredictionScoreSchema,\n});\n\nexport const EditPredictionSchema = z.object({\n tournamentId: ZodValidation.objectId('Tournament id'),\n matchId: ZodValidation.objectId('Match id'),\n score: PredictionScoreSchema,\n});\n\nexport const GetPredictionSchema = z.object({\n tournamentId: ZodValidation.objectId('Tournament id'),\n matchId: ZodValidation.objectId('Match id'),\n});\n\nexport const PredictionSchema = z.object({\n _id: ZodValidation.objectId(),\n matchId: ZodValidation.objectId('Match id'),\n score: z.object({\n team1: ZodValidation.number('Team 1 score').nullable(),\n team2: ZodValidation.number('Team 2 score').nullable(),\n }),\n predictionTime: z.date().nullable().optional(),\n succeeded: z.boolean().nullable().optional(),\n});\n\nexport const MutatePredictionSchema = z.object({\n _id: ZodValidation.objectId(),\n matchId: ZodValidation.objectId('Match id'),\n score: z.object({\n team1: ZodValidation.number('Team 1 score').nullable(),\n team2: ZodValidation.number('Team 2 score').nullable(),\n }),\n});\n\nexport const MutatePredictionResponseSchema = createResponseSchema(MutatePredictionSchema);\nexport const PredictionResponseSchema = createResponseSchema(PredictionSchema);\nexport const PredictionNullableResponseSchema = createResponseSchema(PredictionSchema.nullable());\n\nexport type CreatePredictionInputDTO = DTO<typeof CreatePredictionSchema>;\nexport type EditPredictionInputDTO = DTO<typeof EditPredictionSchema>;\nexport type GetPredictionInputDTO = DTO<typeof GetPredictionSchema>;\nexport type MutatePredictionOutputDTO = DTO<typeof MutatePredictionSchema>;\nexport type PredictionOutputDTO = DTO<typeof PredictionSchema>;\n"]}
@@ -0,0 +1,8 @@
1
+ import { IRewardHandler } from '../reward.interface';
2
+ import { RewardContext } from '../reward.types';
3
+ export declare class CouponRewardHandler implements IRewardHandler {
4
+ private couponService;
5
+ constructor();
6
+ grant(context: RewardContext): Promise<void>;
7
+ }
8
+ //# sourceMappingURL=coupon-reward.handler.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"coupon-reward.handler.d.ts","sourceRoot":"/","sources":["modules/tournament/reward/handlers/coupon-reward.handler.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAGhD,qBACa,mBAAoB,YAAW,cAAc;IACtD,OAAO,CAAC,aAAa,CAA8B;;IAM7C,KAAK,CAAC,OAAO,EAAE,aAAa,GAAG,OAAO,CAAC,IAAI,CAAC;CAMrD"}