@lyxa.ai/marketing 1.0.48 → 1.0.50

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 (324) hide show
  1. package/dist/lib/event/event-initializations.js +2 -2
  2. package/dist/lib/event/event-initializations.js.map +1 -1
  3. package/dist/lib/index.d.ts +462 -508
  4. package/dist/lib/index.d.ts.map +1 -1
  5. package/dist/lib/modules/coupon/services/coupon.service.d.ts +2 -2
  6. package/dist/lib/modules/coupon/services/coupon.service.d.ts.map +1 -1
  7. package/dist/lib/modules/coupon/services/coupon.service.js.map +1 -1
  8. package/dist/lib/modules/coupon/services/global-coupon.service.d.ts.map +1 -1
  9. package/dist/lib/modules/coupon/services/global-coupon.service.js +2 -0
  10. package/dist/lib/modules/coupon/services/global-coupon.service.js.map +1 -1
  11. package/dist/lib/modules/coupon/services/helper.service.d.ts.map +1 -1
  12. package/dist/lib/modules/coupon/services/helper.service.js +2 -0
  13. package/dist/lib/modules/coupon/services/helper.service.js.map +1 -1
  14. package/dist/lib/modules/coupon/services/individual-user-coupon.service.d.ts.map +1 -1
  15. package/dist/lib/modules/coupon/services/individual-user-coupon.service.js +2 -0
  16. package/dist/lib/modules/coupon/services/individual-user-coupon.service.js.map +1 -1
  17. package/dist/lib/modules/coupon/services/referral-reward-coupon.service.d.ts.map +1 -1
  18. package/dist/lib/modules/coupon/services/referral-reward-coupon.service.js +2 -0
  19. package/dist/lib/modules/coupon/services/referral-reward-coupon.service.js.map +1 -1
  20. package/dist/lib/modules/limited-time-offer/campaign/campaign.router.d.ts +10 -21
  21. package/dist/lib/modules/limited-time-offer/campaign/campaign.router.d.ts.map +1 -1
  22. package/dist/lib/modules/limited-time-offer/campaign/campaign.router.js +5 -4
  23. package/dist/lib/modules/limited-time-offer/campaign/campaign.router.js.map +1 -1
  24. package/dist/lib/modules/limited-time-offer/campaign/limited-time-offer-campaign.validation.d.ts +154 -0
  25. package/dist/lib/modules/limited-time-offer/campaign/limited-time-offer-campaign.validation.d.ts.map +1 -1
  26. package/dist/lib/modules/limited-time-offer/campaign/limited-time-offer-campaign.validation.js +13 -1
  27. package/dist/lib/modules/limited-time-offer/campaign/limited-time-offer-campaign.validation.js.map +1 -1
  28. package/dist/lib/modules/limited-time-offer/campaign/services/limited-time-offer-campaign.service.d.ts +8 -2
  29. package/dist/lib/modules/limited-time-offer/campaign/services/limited-time-offer-campaign.service.d.ts.map +1 -1
  30. package/dist/lib/modules/limited-time-offer/campaign/services/limited-time-offer-campaign.service.js +11 -2
  31. package/dist/lib/modules/limited-time-offer/campaign/services/limited-time-offer-campaign.service.js.map +1 -1
  32. package/dist/lib/modules/limited-time-offer/limited-time-offer.router.d.ts +10 -21
  33. package/dist/lib/modules/limited-time-offer/limited-time-offer.router.d.ts.map +1 -1
  34. package/dist/lib/modules/tournament/config/config.builder.d.ts.map +1 -1
  35. package/dist/lib/modules/tournament/config/config.builder.js +4 -0
  36. package/dist/lib/modules/tournament/config/config.builder.js.map +1 -1
  37. package/dist/lib/modules/tournament/config/config.repository.d.ts +4 -0
  38. package/dist/lib/modules/tournament/config/config.repository.d.ts.map +1 -1
  39. package/dist/lib/modules/tournament/config/config.repository.js +10 -1
  40. package/dist/lib/modules/tournament/config/config.repository.js.map +1 -1
  41. package/dist/lib/modules/tournament/config/config.router.d.ts +106 -218
  42. package/dist/lib/modules/tournament/config/config.router.d.ts.map +1 -1
  43. package/dist/lib/modules/tournament/config/config.service.d.ts +2 -2
  44. package/dist/lib/modules/tournament/config/config.service.d.ts.map +1 -1
  45. package/dist/lib/modules/tournament/config/config.service.js.map +1 -1
  46. package/dist/lib/modules/tournament/config/config.validation.d.ts +446 -692
  47. package/dist/lib/modules/tournament/config/config.validation.d.ts.map +1 -1
  48. package/dist/lib/modules/tournament/config/config.validation.js +44 -28
  49. package/dist/lib/modules/tournament/config/config.validation.js.map +1 -1
  50. package/dist/lib/modules/tournament/match/events/evaluate-predictions.consumer.d.ts +2 -0
  51. package/dist/lib/modules/tournament/match/events/evaluate-predictions.consumer.d.ts.map +1 -0
  52. package/dist/lib/modules/tournament/match/events/evaluate-predictions.consumer.js +28 -0
  53. package/dist/lib/modules/tournament/match/events/evaluate-predictions.consumer.js.map +1 -0
  54. package/dist/lib/modules/tournament/match/events/evaluate-predictions.event.d.ts +15 -0
  55. package/dist/lib/modules/tournament/match/events/evaluate-predictions.event.d.ts.map +1 -0
  56. package/dist/lib/modules/tournament/match/events/evaluate-predictions.event.js +12 -0
  57. package/dist/lib/modules/tournament/match/events/evaluate-predictions.event.js.map +1 -0
  58. package/dist/lib/modules/tournament/match/match.builder.d.ts +5 -2
  59. package/dist/lib/modules/tournament/match/match.builder.d.ts.map +1 -1
  60. package/dist/lib/modules/tournament/match/match.builder.js +13 -7
  61. package/dist/lib/modules/tournament/match/match.builder.js.map +1 -1
  62. package/dist/lib/modules/tournament/match/match.repository.d.ts +2 -0
  63. package/dist/lib/modules/tournament/match/match.repository.d.ts.map +1 -1
  64. package/dist/lib/modules/tournament/match/match.repository.js +10 -0
  65. package/dist/lib/modules/tournament/match/match.repository.js.map +1 -1
  66. package/dist/lib/modules/tournament/match/match.router.d.ts +66 -191
  67. package/dist/lib/modules/tournament/match/match.router.d.ts.map +1 -1
  68. package/dist/lib/modules/tournament/match/match.router.js +0 -7
  69. package/dist/lib/modules/tournament/match/match.router.js.map +1 -1
  70. package/dist/lib/modules/tournament/match/match.service.d.ts +1 -12
  71. package/dist/lib/modules/tournament/match/match.service.d.ts.map +1 -1
  72. package/dist/lib/modules/tournament/match/match.service.js +18 -68
  73. package/dist/lib/modules/tournament/match/match.service.js.map +1 -1
  74. package/dist/lib/modules/tournament/match/match.validation.d.ts +96 -34
  75. package/dist/lib/modules/tournament/match/match.validation.d.ts.map +1 -1
  76. package/dist/lib/modules/tournament/match/match.validation.js +5 -2
  77. package/dist/lib/modules/tournament/match/match.validation.js.map +1 -1
  78. package/dist/lib/modules/tournament/notification/jobs/notification.producer.d.ts +2 -5
  79. package/dist/lib/modules/tournament/notification/jobs/notification.producer.d.ts.map +1 -1
  80. package/dist/lib/modules/tournament/notification/jobs/notification.producer.js +1 -6
  81. package/dist/lib/modules/tournament/notification/jobs/notification.producer.js.map +1 -1
  82. package/dist/lib/modules/tournament/notification/jobs/notification.worker.d.ts +2 -0
  83. package/dist/lib/modules/tournament/notification/jobs/notification.worker.d.ts.map +1 -1
  84. package/dist/lib/modules/tournament/notification/jobs/notification.worker.js +15 -9
  85. package/dist/lib/modules/tournament/notification/jobs/notification.worker.js.map +1 -1
  86. package/dist/lib/modules/tournament/notification/notification-template.repository.d.ts +8 -0
  87. package/dist/lib/modules/tournament/notification/notification-template.repository.d.ts.map +1 -0
  88. package/dist/lib/modules/tournament/notification/notification-template.repository.js +60 -0
  89. package/dist/lib/modules/tournament/notification/notification-template.repository.js.map +1 -0
  90. package/dist/lib/modules/tournament/notification/notification.config.d.ts +10 -0
  91. package/dist/lib/modules/tournament/notification/notification.config.d.ts.map +1 -0
  92. package/dist/lib/modules/tournament/notification/notification.config.js +15 -0
  93. package/dist/lib/modules/tournament/notification/notification.config.js.map +1 -0
  94. package/dist/lib/modules/tournament/notification/notification.schedule.config.d.ts +10 -0
  95. package/dist/lib/modules/tournament/notification/notification.schedule.config.d.ts.map +1 -0
  96. package/dist/lib/modules/tournament/notification/notification.schedule.config.js +15 -0
  97. package/dist/lib/modules/tournament/notification/notification.schedule.config.js.map +1 -0
  98. package/dist/lib/modules/tournament/notification/notification.scheduler.service.d.ts +4 -4
  99. package/dist/lib/modules/tournament/notification/notification.scheduler.service.d.ts.map +1 -1
  100. package/dist/lib/modules/tournament/notification/notification.scheduler.service.js +15 -28
  101. package/dist/lib/modules/tournament/notification/notification.scheduler.service.js.map +1 -1
  102. package/dist/lib/modules/tournament/notification/notification.service.d.ts +5 -3
  103. package/dist/lib/modules/tournament/notification/notification.service.d.ts.map +1 -1
  104. package/dist/lib/modules/tournament/notification/notification.service.js +33 -23
  105. package/dist/lib/modules/tournament/notification/notification.service.js.map +1 -1
  106. package/dist/lib/modules/tournament/participant/participant.repository.d.ts +1 -0
  107. package/dist/lib/modules/tournament/participant/participant.repository.d.ts.map +1 -1
  108. package/dist/lib/modules/tournament/participant/participant.repository.js +6 -0
  109. package/dist/lib/modules/tournament/participant/participant.repository.js.map +1 -1
  110. package/dist/lib/modules/tournament/participant/participant.router.d.ts +9 -9
  111. package/dist/lib/modules/tournament/participant/participant.validation.d.ts +84 -84
  112. package/dist/lib/modules/tournament/prediction/prediction.builder.d.ts.map +1 -1
  113. package/dist/lib/modules/tournament/prediction/prediction.builder.js +3 -2
  114. package/dist/lib/modules/tournament/prediction/prediction.builder.js.map +1 -1
  115. package/dist/lib/modules/tournament/prediction/prediction.repository.d.ts +4 -1
  116. package/dist/lib/modules/tournament/prediction/prediction.repository.d.ts.map +1 -1
  117. package/dist/lib/modules/tournament/prediction/prediction.repository.js +20 -2
  118. package/dist/lib/modules/tournament/prediction/prediction.repository.js.map +1 -1
  119. package/dist/lib/modules/tournament/prediction/prediction.router.d.ts +12 -12
  120. package/dist/lib/modules/tournament/prediction/prediction.service.d.ts +9 -0
  121. package/dist/lib/modules/tournament/prediction/prediction.service.d.ts.map +1 -1
  122. package/dist/lib/modules/tournament/prediction/prediction.service.js +30 -4
  123. package/dist/lib/modules/tournament/prediction/prediction.service.js.map +1 -1
  124. package/dist/lib/modules/tournament/prediction/prediction.validation.d.ts +64 -64
  125. package/dist/lib/modules/tournament/reward/handlers/coupon-reward.handler.d.ts +3 -0
  126. package/dist/lib/modules/tournament/reward/handlers/coupon-reward.handler.d.ts.map +1 -1
  127. package/dist/lib/modules/tournament/reward/handlers/coupon-reward.handler.js +21 -5
  128. package/dist/lib/modules/tournament/reward/handlers/coupon-reward.handler.js.map +1 -1
  129. package/dist/lib/modules/tournament/reward/reward.builder.d.ts +6 -0
  130. package/dist/lib/modules/tournament/reward/reward.builder.d.ts.map +1 -0
  131. package/dist/lib/modules/tournament/reward/reward.builder.js +44 -0
  132. package/dist/lib/modules/tournament/reward/reward.builder.js.map +1 -0
  133. package/dist/lib/modules/tournament/reward/reward.interface.d.ts.map +1 -1
  134. package/dist/lib/modules/tournament/reward/reward.interface.js.map +1 -1
  135. package/dist/lib/modules/tournament/reward/reward.repository.d.ts +8 -0
  136. package/dist/lib/modules/tournament/reward/reward.repository.d.ts.map +1 -0
  137. package/dist/lib/modules/tournament/reward/reward.repository.js +66 -0
  138. package/dist/lib/modules/tournament/reward/reward.repository.js.map +1 -0
  139. package/dist/lib/modules/tournament/reward/reward.service.d.ts.map +1 -1
  140. package/dist/lib/modules/tournament/reward/reward.service.js.map +1 -1
  141. package/dist/lib/modules/tournament/reward/reward.types.d.ts +1 -1
  142. package/dist/lib/modules/tournament/reward/reward.types.d.ts.map +1 -1
  143. package/dist/lib/modules/tournament/reward/reward.types.js.map +1 -1
  144. package/dist/lib/modules/tournament/schedule/schedule.router.d.ts +27 -0
  145. package/dist/lib/modules/tournament/schedule/schedule.router.d.ts.map +1 -0
  146. package/dist/lib/modules/tournament/schedule/schedule.router.js +17 -0
  147. package/dist/lib/modules/tournament/schedule/schedule.router.js.map +1 -0
  148. package/dist/lib/modules/tournament/schedule/schedule.service.d.ts +10 -0
  149. package/dist/lib/modules/tournament/schedule/schedule.service.d.ts.map +1 -0
  150. package/dist/lib/modules/tournament/schedule/schedule.service.js +87 -0
  151. package/dist/lib/modules/tournament/schedule/schedule.service.js.map +1 -0
  152. package/dist/lib/modules/tournament/score/score.repository.d.ts +13 -0
  153. package/dist/lib/modules/tournament/score/score.repository.d.ts.map +1 -0
  154. package/dist/lib/modules/tournament/score/score.repository.js +70 -0
  155. package/dist/lib/modules/tournament/score/score.repository.js.map +1 -0
  156. package/dist/lib/modules/tournament/score/score.router.d.ts +98 -0
  157. package/dist/lib/modules/tournament/score/score.router.d.ts.map +1 -0
  158. package/dist/lib/modules/tournament/score/score.router.js +20 -0
  159. package/dist/lib/modules/tournament/score/score.router.js.map +1 -0
  160. package/dist/lib/modules/tournament/score/score.service.d.ts +13 -0
  161. package/dist/lib/modules/tournament/score/score.service.d.ts.map +1 -0
  162. package/dist/lib/modules/tournament/score/score.service.js +109 -0
  163. package/dist/lib/modules/tournament/score/score.service.js.map +1 -0
  164. package/dist/lib/modules/tournament/score/score.validation.d.ts +375 -0
  165. package/dist/lib/modules/tournament/score/score.validation.d.ts.map +1 -0
  166. package/dist/lib/modules/tournament/score/score.validation.js +19 -0
  167. package/dist/lib/modules/tournament/score/score.validation.js.map +1 -0
  168. package/dist/lib/modules/tournament/statistics/statistics.builder.d.ts +10 -0
  169. package/dist/lib/modules/tournament/statistics/statistics.builder.d.ts.map +1 -0
  170. package/dist/lib/modules/tournament/statistics/statistics.builder.js +53 -0
  171. package/dist/lib/modules/tournament/statistics/statistics.builder.js.map +1 -0
  172. package/dist/lib/modules/tournament/statistics/statistics.router.d.ts +80 -0
  173. package/dist/lib/modules/tournament/statistics/statistics.router.d.ts.map +1 -0
  174. package/dist/lib/modules/tournament/statistics/statistics.router.js +21 -0
  175. package/dist/lib/modules/tournament/statistics/statistics.router.js.map +1 -0
  176. package/dist/lib/modules/tournament/statistics/statistics.service.d.ts +11 -0
  177. package/dist/lib/modules/tournament/statistics/statistics.service.d.ts.map +1 -0
  178. package/dist/lib/modules/tournament/statistics/statistics.service.js +80 -0
  179. package/dist/lib/modules/tournament/statistics/statistics.service.js.map +1 -0
  180. package/dist/lib/modules/tournament/statistics/statistics.validation.d.ts +404 -0
  181. package/dist/lib/modules/tournament/statistics/statistics.validation.d.ts.map +1 -0
  182. package/dist/lib/modules/tournament/statistics/statistics.validation.js +36 -0
  183. package/dist/lib/modules/tournament/statistics/statistics.validation.js.map +1 -0
  184. package/dist/lib/modules/tournament/team/team.router.d.ts +31 -57
  185. package/dist/lib/modules/tournament/team/team.router.d.ts.map +1 -1
  186. package/dist/lib/modules/tournament/team/team.service.d.ts +1 -0
  187. package/dist/lib/modules/tournament/team/team.service.d.ts.map +1 -1
  188. package/dist/lib/modules/tournament/team/team.service.js +21 -16
  189. package/dist/lib/modules/tournament/team/team.service.js.map +1 -1
  190. package/dist/lib/modules/tournament/team/team.validation.d.ts +68 -18
  191. package/dist/lib/modules/tournament/team/team.validation.d.ts.map +1 -1
  192. package/dist/lib/modules/tournament/team/team.validation.js +4 -2
  193. package/dist/lib/modules/tournament/team/team.validation.js.map +1 -1
  194. package/dist/lib/modules/tournament/tournament.router.d.ts +466 -501
  195. package/dist/lib/modules/tournament/tournament.router.d.ts.map +1 -1
  196. package/dist/lib/modules/tournament/tournament.router.js +14 -0
  197. package/dist/lib/modules/tournament/tournament.router.js.map +1 -1
  198. package/dist/lib/modules/tournament/tournament.service.d.ts +8 -0
  199. package/dist/lib/modules/tournament/tournament.service.d.ts.map +1 -0
  200. package/dist/lib/modules/tournament/tournament.service.js +63 -0
  201. package/dist/lib/modules/tournament/tournament.service.js.map +1 -0
  202. package/dist/lib/modules/tournament/tournament.types.d.ts +9 -0
  203. package/dist/lib/modules/tournament/tournament.types.d.ts.map +1 -0
  204. package/dist/lib/modules/tournament/tournament.types.js +14 -0
  205. package/dist/lib/modules/tournament/tournament.types.js.map +1 -0
  206. package/dist/lib/modules/tournament/tournament.utils.d.ts +2 -0
  207. package/dist/lib/modules/tournament/tournament.utils.d.ts.map +1 -0
  208. package/dist/lib/modules/tournament/tournament.utils.js +6 -0
  209. package/dist/lib/modules/tournament/tournament.utils.js.map +1 -0
  210. package/dist/lib/modules/tournament/tournament.validation.d.ts +133 -0
  211. package/dist/lib/modules/tournament/tournament.validation.d.ts.map +1 -0
  212. package/dist/lib/modules/tournament/tournament.validation.js +14 -0
  213. package/dist/lib/modules/tournament/tournament.validation.js.map +1 -0
  214. package/dist/types/index.d.ts +462 -508
  215. package/dist/types/index.d.ts.map +1 -1
  216. package/dist/types/modules/coupon/services/coupon.service.d.ts +2 -2
  217. package/dist/types/modules/coupon/services/coupon.service.d.ts.map +1 -1
  218. package/dist/types/modules/coupon/services/global-coupon.service.d.ts.map +1 -1
  219. package/dist/types/modules/coupon/services/helper.service.d.ts.map +1 -1
  220. package/dist/types/modules/coupon/services/individual-user-coupon.service.d.ts.map +1 -1
  221. package/dist/types/modules/coupon/services/referral-reward-coupon.service.d.ts.map +1 -1
  222. package/dist/types/modules/limited-time-offer/campaign/campaign.router.d.ts +10 -21
  223. package/dist/types/modules/limited-time-offer/campaign/campaign.router.d.ts.map +1 -1
  224. package/dist/types/modules/limited-time-offer/campaign/limited-time-offer-campaign.validation.d.ts +154 -0
  225. package/dist/types/modules/limited-time-offer/campaign/limited-time-offer-campaign.validation.d.ts.map +1 -1
  226. package/dist/types/modules/limited-time-offer/campaign/services/limited-time-offer-campaign.service.d.ts +8 -2
  227. package/dist/types/modules/limited-time-offer/campaign/services/limited-time-offer-campaign.service.d.ts.map +1 -1
  228. package/dist/types/modules/limited-time-offer/limited-time-offer.router.d.ts +10 -21
  229. package/dist/types/modules/limited-time-offer/limited-time-offer.router.d.ts.map +1 -1
  230. package/dist/types/modules/tournament/config/config.builder.d.ts.map +1 -1
  231. package/dist/types/modules/tournament/config/config.repository.d.ts +4 -0
  232. package/dist/types/modules/tournament/config/config.repository.d.ts.map +1 -1
  233. package/dist/types/modules/tournament/config/config.router.d.ts +106 -218
  234. package/dist/types/modules/tournament/config/config.router.d.ts.map +1 -1
  235. package/dist/types/modules/tournament/config/config.service.d.ts +2 -2
  236. package/dist/types/modules/tournament/config/config.service.d.ts.map +1 -1
  237. package/dist/types/modules/tournament/config/config.validation.d.ts +446 -692
  238. package/dist/types/modules/tournament/config/config.validation.d.ts.map +1 -1
  239. package/dist/types/modules/tournament/match/events/evaluate-predictions.consumer.d.ts +2 -0
  240. package/dist/types/modules/tournament/match/events/evaluate-predictions.consumer.d.ts.map +1 -0
  241. package/dist/types/modules/tournament/match/events/evaluate-predictions.event.d.ts +15 -0
  242. package/dist/types/modules/tournament/match/events/evaluate-predictions.event.d.ts.map +1 -0
  243. package/dist/types/modules/tournament/match/match.builder.d.ts +5 -2
  244. package/dist/types/modules/tournament/match/match.builder.d.ts.map +1 -1
  245. package/dist/types/modules/tournament/match/match.repository.d.ts +2 -0
  246. package/dist/types/modules/tournament/match/match.repository.d.ts.map +1 -1
  247. package/dist/types/modules/tournament/match/match.router.d.ts +66 -191
  248. package/dist/types/modules/tournament/match/match.router.d.ts.map +1 -1
  249. package/dist/types/modules/tournament/match/match.service.d.ts +1 -12
  250. package/dist/types/modules/tournament/match/match.service.d.ts.map +1 -1
  251. package/dist/types/modules/tournament/match/match.validation.d.ts +96 -34
  252. package/dist/types/modules/tournament/match/match.validation.d.ts.map +1 -1
  253. package/dist/types/modules/tournament/notification/jobs/notification.producer.d.ts +2 -5
  254. package/dist/types/modules/tournament/notification/jobs/notification.producer.d.ts.map +1 -1
  255. package/dist/types/modules/tournament/notification/jobs/notification.worker.d.ts +2 -0
  256. package/dist/types/modules/tournament/notification/jobs/notification.worker.d.ts.map +1 -1
  257. package/dist/types/modules/tournament/notification/notification-template.repository.d.ts +8 -0
  258. package/dist/types/modules/tournament/notification/notification-template.repository.d.ts.map +1 -0
  259. package/dist/types/modules/tournament/notification/notification.config.d.ts +10 -0
  260. package/dist/types/modules/tournament/notification/notification.config.d.ts.map +1 -0
  261. package/dist/types/modules/tournament/notification/notification.schedule.config.d.ts +10 -0
  262. package/dist/types/modules/tournament/notification/notification.schedule.config.d.ts.map +1 -0
  263. package/dist/types/modules/tournament/notification/notification.scheduler.service.d.ts +4 -4
  264. package/dist/types/modules/tournament/notification/notification.scheduler.service.d.ts.map +1 -1
  265. package/dist/types/modules/tournament/notification/notification.service.d.ts +5 -3
  266. package/dist/types/modules/tournament/notification/notification.service.d.ts.map +1 -1
  267. package/dist/types/modules/tournament/participant/participant.repository.d.ts +1 -0
  268. package/dist/types/modules/tournament/participant/participant.repository.d.ts.map +1 -1
  269. package/dist/types/modules/tournament/participant/participant.router.d.ts +9 -9
  270. package/dist/types/modules/tournament/participant/participant.validation.d.ts +84 -84
  271. package/dist/types/modules/tournament/prediction/prediction.builder.d.ts.map +1 -1
  272. package/dist/types/modules/tournament/prediction/prediction.repository.d.ts +4 -1
  273. package/dist/types/modules/tournament/prediction/prediction.repository.d.ts.map +1 -1
  274. package/dist/types/modules/tournament/prediction/prediction.router.d.ts +12 -12
  275. package/dist/types/modules/tournament/prediction/prediction.service.d.ts +9 -0
  276. package/dist/types/modules/tournament/prediction/prediction.service.d.ts.map +1 -1
  277. package/dist/types/modules/tournament/prediction/prediction.validation.d.ts +64 -64
  278. package/dist/types/modules/tournament/reward/handlers/coupon-reward.handler.d.ts +3 -0
  279. package/dist/types/modules/tournament/reward/handlers/coupon-reward.handler.d.ts.map +1 -1
  280. package/dist/types/modules/tournament/reward/reward.builder.d.ts +6 -0
  281. package/dist/types/modules/tournament/reward/reward.builder.d.ts.map +1 -0
  282. package/dist/types/modules/tournament/reward/reward.interface.d.ts.map +1 -1
  283. package/dist/types/modules/tournament/reward/reward.repository.d.ts +8 -0
  284. package/dist/types/modules/tournament/reward/reward.repository.d.ts.map +1 -0
  285. package/dist/types/modules/tournament/reward/reward.service.d.ts.map +1 -1
  286. package/dist/types/modules/tournament/reward/reward.types.d.ts +1 -1
  287. package/dist/types/modules/tournament/reward/reward.types.d.ts.map +1 -1
  288. package/dist/types/modules/tournament/schedule/schedule.router.d.ts +27 -0
  289. package/dist/types/modules/tournament/schedule/schedule.router.d.ts.map +1 -0
  290. package/dist/types/modules/tournament/schedule/schedule.service.d.ts +10 -0
  291. package/dist/types/modules/tournament/schedule/schedule.service.d.ts.map +1 -0
  292. package/dist/types/modules/tournament/score/score.repository.d.ts +13 -0
  293. package/dist/types/modules/tournament/score/score.repository.d.ts.map +1 -0
  294. package/dist/types/modules/tournament/score/score.router.d.ts +98 -0
  295. package/dist/types/modules/tournament/score/score.router.d.ts.map +1 -0
  296. package/dist/types/modules/tournament/score/score.service.d.ts +13 -0
  297. package/dist/types/modules/tournament/score/score.service.d.ts.map +1 -0
  298. package/dist/types/modules/tournament/score/score.validation.d.ts +375 -0
  299. package/dist/types/modules/tournament/score/score.validation.d.ts.map +1 -0
  300. package/dist/types/modules/tournament/statistics/statistics.builder.d.ts +10 -0
  301. package/dist/types/modules/tournament/statistics/statistics.builder.d.ts.map +1 -0
  302. package/dist/types/modules/tournament/statistics/statistics.router.d.ts +80 -0
  303. package/dist/types/modules/tournament/statistics/statistics.router.d.ts.map +1 -0
  304. package/dist/types/modules/tournament/statistics/statistics.service.d.ts +11 -0
  305. package/dist/types/modules/tournament/statistics/statistics.service.d.ts.map +1 -0
  306. package/dist/types/modules/tournament/statistics/statistics.validation.d.ts +404 -0
  307. package/dist/types/modules/tournament/statistics/statistics.validation.d.ts.map +1 -0
  308. package/dist/types/modules/tournament/team/team.router.d.ts +31 -57
  309. package/dist/types/modules/tournament/team/team.router.d.ts.map +1 -1
  310. package/dist/types/modules/tournament/team/team.service.d.ts +1 -0
  311. package/dist/types/modules/tournament/team/team.service.d.ts.map +1 -1
  312. package/dist/types/modules/tournament/team/team.validation.d.ts +68 -18
  313. package/dist/types/modules/tournament/team/team.validation.d.ts.map +1 -1
  314. package/dist/types/modules/tournament/tournament.router.d.ts +466 -501
  315. package/dist/types/modules/tournament/tournament.router.d.ts.map +1 -1
  316. package/dist/types/modules/tournament/tournament.service.d.ts +8 -0
  317. package/dist/types/modules/tournament/tournament.service.d.ts.map +1 -0
  318. package/dist/types/modules/tournament/tournament.types.d.ts +9 -0
  319. package/dist/types/modules/tournament/tournament.types.d.ts.map +1 -0
  320. package/dist/types/modules/tournament/tournament.utils.d.ts +2 -0
  321. package/dist/types/modules/tournament/tournament.utils.d.ts.map +1 -0
  322. package/dist/types/modules/tournament/tournament.validation.d.ts +133 -0
  323. package/dist/types/modules/tournament/tournament.validation.d.ts.map +1 -0
  324. package/package.json +2 -2
@@ -1 +1 @@
1
- {"version":3,"file":"tournament.router.d.ts","sourceRoot":"/","sources":["modules/tournament/tournament.router.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAM3B,CAAC"}
1
+ {"version":3,"file":"tournament.router.d.ts","sourceRoot":"/","sources":["modules/tournament/tournament.router.ts"],"names":[],"mappings":"AAcA,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgB3B,CAAC"}
@@ -2,16 +2,30 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.tournamentRouter = void 0;
4
4
  const trpc_1 = require("@lyxa.ai/core/dist/libraries/trpc");
5
+ const error_handler_1 = require("@lyxa.ai/core/dist/utilities/error-handler");
6
+ const response_1 = require("@lyxa.ai/core/dist/utilities/response");
5
7
  const config_router_1 = require("./config/config.router");
6
8
  const team_router_1 = require("./team/team.router");
7
9
  const match_router_1 = require("./match/match.router");
8
10
  const participant_router_1 = require("./participant/participant.router");
9
11
  const prediction_router_1 = require("./prediction/prediction.router");
12
+ const statistics_router_1 = require("./statistics/statistics.router");
13
+ const schedule_router_1 = require("./schedule/schedule.router");
14
+ const score_router_1 = require("./score/score.router");
15
+ const tournament_validation_1 = require("./tournament.validation");
16
+ const tournament_service_1 = require("./tournament.service");
10
17
  exports.tournamentRouter = (0, trpc_1.createTRPCRouter)({
11
18
  config: config_router_1.configRouter,
12
19
  team: team_router_1.teamRouter,
13
20
  match: match_router_1.matchRouter,
14
21
  participant: participant_router_1.participantRouter,
15
22
  prediction: prediction_router_1.predictionRouter,
23
+ statistics: statistics_router_1.statisticsRouter,
24
+ schedule: schedule_router_1.scheduleRouter,
25
+ score: score_router_1.scoreRouter,
26
+ getActive: trpc_1.publicProcedure.output(tournament_validation_1.ActiveTournamentResponseSchema).query(() => error_handler_1.ErrorHandler.wrapAsync(async () => {
27
+ const result = await tournament_service_1.tournamentService.getActive();
28
+ return (0, response_1.response)('Active tournament fetched successfully', result);
29
+ })),
16
30
  });
17
31
  //# sourceMappingURL=tournament.router.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"tournament.router.js","sourceRoot":"/","sources":["modules/tournament/tournament.router.ts"],"names":[],"mappings":";;;AAAA,4DAAqE;AACrE,0DAAsD;AACtD,oDAAgD;AAChD,uDAAmD;AACnD,yEAAqE;AACrE,sEAAkE;AAErD,QAAA,gBAAgB,GAAG,IAAA,uBAAgB,EAAC;IAChD,MAAM,EAAE,4BAAY;IACpB,IAAI,EAAE,wBAAU;IAChB,KAAK,EAAE,0BAAW;IAClB,WAAW,EAAE,sCAAiB;IAC9B,UAAU,EAAE,oCAAgB;CAC5B,CAAC,CAAC","sourcesContent":["import { createTRPCRouter } from '@lyxa.ai/core/dist/libraries/trpc';\nimport { configRouter } from './config/config.router';\nimport { teamRouter } from './team/team.router';\nimport { matchRouter } from './match/match.router';\nimport { participantRouter } from './participant/participant.router';\nimport { predictionRouter } from './prediction/prediction.router';\n\nexport const tournamentRouter = createTRPCRouter({\n\tconfig: configRouter,\n\tteam: teamRouter,\n\tmatch: matchRouter,\n\tparticipant: participantRouter,\n\tprediction: predictionRouter,\n});\n"]}
1
+ {"version":3,"file":"tournament.router.js","sourceRoot":"/","sources":["modules/tournament/tournament.router.ts"],"names":[],"mappings":";;;AAAA,4DAAoF;AACpF,8EAAwE;AACxE,oEAA+D;AAC/D,0DAAoD;AACpD,oDAA8C;AAC9C,uDAAiD;AACjD,yEAAmE;AACnE,sEAAgE;AAChE,sEAAgE;AAChE,gEAA0D;AAC1D,uDAAiD;AACjD,mEAAuE;AACvE,6DAAkE;AAErD,QAAA,gBAAgB,GAAG,IAAA,uBAAgB,EAAC;IAChD,MAAM,EAAE,4BAAY;IACpB,IAAI,EAAE,wBAAU;IAChB,KAAK,EAAE,0BAAW;IAClB,WAAW,EAAE,sCAAiB;IAC9B,UAAU,EAAE,oCAAgB;IAC5B,UAAU,EAAE,oCAAgB;IAC5B,QAAQ,EAAE,gCAAc;IACxB,KAAK,EAAE,0BAAW;IAElB,SAAS,EAAE,sBAAe,CAAC,MAAM,CAAC,sDAA8B,CAAC,CAAC,KAAK,CAAC,GAAG,EAAE,CAC5E,4BAAY,CAAC,SAAS,CAAC,KAAK,IAAI,EAAE;QACjC,MAAM,MAAM,GAAG,MAAM,sCAAO,CAAC,SAAS,EAAE,CAAC;QACzC,OAAO,IAAA,mBAAQ,EAAC,wCAAwC,EAAE,MAAM,CAAC,CAAC;IACnE,CAAC,CAAC,CACF;CACD,CAAC,CAAC","sourcesContent":["import {createTRPCRouter, publicProcedure} from '@lyxa.ai/core/dist/libraries/trpc';\nimport {ErrorHandler} from '@lyxa.ai/core/dist/utilities/error-handler';\nimport {response} from '@lyxa.ai/core/dist/utilities/response';\nimport {configRouter} from './config/config.router';\nimport {teamRouter} from './team/team.router';\nimport {matchRouter} from './match/match.router';\nimport {participantRouter} from './participant/participant.router';\nimport {predictionRouter} from './prediction/prediction.router';\nimport {statisticsRouter} from './statistics/statistics.router';\nimport {scheduleRouter} from './schedule/schedule.router';\nimport {scoreRouter} from './score/score.router';\nimport {ActiveTournamentResponseSchema} from './tournament.validation';\nimport {tournamentService as service} from './tournament.service';\n\nexport const tournamentRouter = createTRPCRouter({\n\tconfig: configRouter,\n\tteam: teamRouter,\n\tmatch: matchRouter,\n\tparticipant: participantRouter,\n\tprediction: predictionRouter,\n\tstatistics: statisticsRouter,\n\tschedule: scheduleRouter,\n\tscore: scoreRouter,\n\n\tgetActive: publicProcedure.output(ActiveTournamentResponseSchema).query(() =>\n\t\tErrorHandler.wrapAsync(async () => {\n\t\t\tconst result = await service.getActive();\n\t\t\treturn response('Active tournament fetched successfully', result);\n\t\t})\n\t),\n});\n"]}
@@ -0,0 +1,8 @@
1
+ import { ActiveTournamentOutputDTO } from './tournament.validation';
2
+ export declare class TournamentService {
3
+ private repository;
4
+ constructor();
5
+ getActive(): Promise<ActiveTournamentOutputDTO | null>;
6
+ }
7
+ export declare const tournamentService: TournamentService;
8
+ //# sourceMappingURL=tournament.service.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tournament.service.d.ts","sourceRoot":"/","sources":["modules/tournament/tournament.service.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,yBAAyB,EAAE,MAAM,yBAAyB,CAAC;AAGpE,qBACa,iBAAiB;IAC7B,OAAO,CAAC,UAAU,CAA6B;;IAMlC,SAAS,IAAI,OAAO,CAAC,yBAAyB,GAAG,IAAI,CAAC;CAGnE;AAED,eAAO,MAAM,iBAAiB,mBAAmC,CAAC"}
@@ -0,0 +1,63 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
19
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
20
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
21
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
22
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
23
+ };
24
+ var __importStar = (this && this.__importStar) || (function () {
25
+ var ownKeys = function(o) {
26
+ ownKeys = Object.getOwnPropertyNames || function (o) {
27
+ var ar = [];
28
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
29
+ return ar;
30
+ };
31
+ return ownKeys(o);
32
+ };
33
+ return function (mod) {
34
+ if (mod && mod.__esModule) return mod;
35
+ var result = {};
36
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
37
+ __setModuleDefault(result, mod);
38
+ return result;
39
+ };
40
+ })();
41
+ var __metadata = (this && this.__metadata) || function (k, v) {
42
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
43
+ };
44
+ Object.defineProperty(exports, "__esModule", { value: true });
45
+ exports.tournamentService = exports.TournamentService = void 0;
46
+ const typedi_1 = __importStar(require("typedi"));
47
+ const config_repository_1 = require("./config/config.repository");
48
+ let TournamentService = class TournamentService {
49
+ repository;
50
+ constructor() {
51
+ this.repository = typedi_1.default.get(config_repository_1.TournamentConfigRepository);
52
+ }
53
+ async getActive() {
54
+ return this.repository.findActive();
55
+ }
56
+ };
57
+ exports.TournamentService = TournamentService;
58
+ exports.TournamentService = TournamentService = __decorate([
59
+ (0, typedi_1.Service)(),
60
+ __metadata("design:paramtypes", [])
61
+ ], TournamentService);
62
+ exports.tournamentService = typedi_1.default.get(TournamentService);
63
+ //# sourceMappingURL=tournament.service.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tournament.service.js","sourceRoot":"/","sources":["modules/tournament/tournament.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,iDAA4C;AAE5C,kEAAwE;AAGjE,IAAM,iBAAiB,GAAvB,MAAM,iBAAiB;IACrB,UAAU,CAA6B;IAE/C;QACC,IAAI,CAAC,UAAU,GAAG,gBAAS,CAAC,GAAG,CAAC,8CAA0B,CAAC,CAAC;IAC7D,CAAC;IAEM,KAAK,CAAC,SAAS;QACrB,OAAO,IAAI,CAAC,UAAU,CAAC,UAAU,EAA+C,CAAC;IAClF,CAAC;CACD,CAAA;AAVY,8CAAiB;4BAAjB,iBAAiB;IAD7B,IAAA,gBAAO,GAAE;;GACG,iBAAiB,CAU7B;AAEY,QAAA,iBAAiB,GAAG,gBAAS,CAAC,GAAG,CAAC,iBAAiB,CAAC,CAAC","sourcesContent":["import Container, { Service } from 'typedi';\nimport { ActiveTournamentOutputDTO } from './tournament.validation';\nimport { TournamentConfigRepository } from './config/config.repository';\n\n@Service()\nexport class TournamentService {\n\tprivate repository: TournamentConfigRepository;\n\n\tconstructor() {\n\t\tthis.repository = Container.get(TournamentConfigRepository);\n\t}\n\n\tpublic async getActive(): Promise<ActiveTournamentOutputDTO | null> {\n\t\treturn this.repository.findActive() as Promise<ActiveTournamentOutputDTO | null>;\n\t}\n}\n\nexport const tournamentService = Container.get(TournamentService);\n"]}
@@ -0,0 +1,9 @@
1
+ export declare enum TournamentTag {
2
+ FOOTBALL_WORLD_CUP = "world-cup"
3
+ }
4
+ export declare enum MatchStatus {
5
+ UPCOMING = "upcoming",
6
+ STARTED = "started",
7
+ ENDED = "ended"
8
+ }
9
+ //# sourceMappingURL=tournament.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tournament.types.d.ts","sourceRoot":"/","sources":["modules/tournament/tournament.types.ts"],"names":[],"mappings":"AAAA,oBAAY,aAAa;IACrB,kBAAkB,cAAc;CACnC;AAED,oBAAY,WAAW;IACnB,QAAQ,aAAa;IACrB,OAAO,YAAY;IACnB,KAAK,UAAU;CAClB"}
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MatchStatus = exports.TournamentTag = void 0;
4
+ var TournamentTag;
5
+ (function (TournamentTag) {
6
+ TournamentTag["FOOTBALL_WORLD_CUP"] = "world-cup";
7
+ })(TournamentTag || (exports.TournamentTag = TournamentTag = {}));
8
+ var MatchStatus;
9
+ (function (MatchStatus) {
10
+ MatchStatus["UPCOMING"] = "upcoming";
11
+ MatchStatus["STARTED"] = "started";
12
+ MatchStatus["ENDED"] = "ended";
13
+ })(MatchStatus || (exports.MatchStatus = MatchStatus = {}));
14
+ //# sourceMappingURL=tournament.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tournament.types.js","sourceRoot":"/","sources":["modules/tournament/tournament.types.ts"],"names":[],"mappings":";;;AAAA,IAAY,aAEX;AAFD,WAAY,aAAa;IACrB,iDAAgC,CAAA;AACpC,CAAC,EAFW,aAAa,6BAAb,aAAa,QAExB;AAED,IAAY,WAIX;AAJD,WAAY,WAAW;IACnB,oCAAqB,CAAA;IACrB,kCAAmB,CAAA;IACnB,8BAAe,CAAA;AACnB,CAAC,EAJW,WAAW,2BAAX,WAAW,QAItB","sourcesContent":["export enum TournamentTag {\n FOOTBALL_WORLD_CUP = 'world-cup',\n}\n\nexport enum MatchStatus {\n UPCOMING = 'upcoming',\n STARTED = 'started',\n ENDED = 'ended',\n}\n"]}
@@ -0,0 +1,2 @@
1
+ export declare const utcNow: () => Date;
2
+ //# sourceMappingURL=tournament.utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tournament.utils.d.ts","sourceRoot":"/","sources":["modules/tournament/tournament.utils.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM,QAAO,IAA4B,CAAC"}
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.utcNow = void 0;
4
+ const utcNow = () => new Date(Date.now());
5
+ exports.utcNow = utcNow;
6
+ //# sourceMappingURL=tournament.utils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tournament.utils.js","sourceRoot":"/","sources":["modules/tournament/tournament.utils.ts"],"names":[],"mappings":";;;AAAO,MAAM,MAAM,GAAG,GAAS,EAAE,CAAC,IAAI,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;AAA1C,QAAA,MAAM,UAAoC","sourcesContent":["export const utcNow = (): Date => new Date(Date.now());\n"]}
@@ -0,0 +1,133 @@
1
+ import { z } from 'zod';
2
+ import { DTO } from '@lyxa.ai/core/dist/utilities/validation/global-validation';
3
+ export declare const ActiveTournamentSchema: z.ZodObject<{
4
+ name: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
5
+ tag: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
6
+ startDate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
7
+ endDate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
8
+ }, "strip", z.ZodTypeAny, {
9
+ name: string;
10
+ tag: string;
11
+ startDate?: Date | null | undefined;
12
+ endDate?: Date | null | undefined;
13
+ }, {
14
+ name: string;
15
+ tag: string;
16
+ startDate?: Date | null | undefined;
17
+ endDate?: Date | null | undefined;
18
+ }>;
19
+ export declare const ActiveTournamentResponseSchema: z.ZodObject<{
20
+ success: z.ZodBoolean;
21
+ message: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
22
+ data: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
23
+ metadata: z.ZodOptional<z.ZodObject<{
24
+ page: z.ZodNumber;
25
+ size: z.ZodNumber;
26
+ totalElements: z.ZodNumber;
27
+ totalPages: z.ZodNumber;
28
+ }, "strip", z.ZodTypeAny, {
29
+ page: number;
30
+ size: number;
31
+ totalElements: number;
32
+ totalPages: number;
33
+ }, {
34
+ page: number;
35
+ size: number;
36
+ totalElements: number;
37
+ totalPages: number;
38
+ }>>;
39
+ documents: z.ZodArray<z.ZodType<{
40
+ name: string;
41
+ tag: string;
42
+ startDate?: Date | null | undefined;
43
+ endDate?: Date | null | undefined;
44
+ } | null, z.ZodTypeDef, {
45
+ name: string;
46
+ tag: string;
47
+ startDate?: Date | null | undefined;
48
+ endDate?: Date | null | undefined;
49
+ } | null>, "many">;
50
+ }, "strip", z.ZodTypeAny, {
51
+ documents: ({
52
+ name: string;
53
+ tag: string;
54
+ startDate?: Date | null | undefined;
55
+ endDate?: Date | null | undefined;
56
+ } | null)[];
57
+ metadata?: {
58
+ page: number;
59
+ size: number;
60
+ totalElements: number;
61
+ totalPages: number;
62
+ } | undefined;
63
+ }, {
64
+ documents: ({
65
+ name: string;
66
+ tag: string;
67
+ startDate?: Date | null | undefined;
68
+ endDate?: Date | null | undefined;
69
+ } | null)[];
70
+ metadata?: {
71
+ page: number;
72
+ size: number;
73
+ totalElements: number;
74
+ totalPages: number;
75
+ } | undefined;
76
+ }>, z.ZodType<{
77
+ name: string;
78
+ tag: string;
79
+ startDate?: Date | null | undefined;
80
+ endDate?: Date | null | undefined;
81
+ } | null, z.ZodTypeDef, {
82
+ name: string;
83
+ tag: string;
84
+ startDate?: Date | null | undefined;
85
+ endDate?: Date | null | undefined;
86
+ } | null>]>>;
87
+ }, "strip", z.ZodTypeAny, {
88
+ message: string;
89
+ success: boolean;
90
+ data?: {
91
+ name: string;
92
+ tag: string;
93
+ startDate?: Date | null | undefined;
94
+ endDate?: Date | null | undefined;
95
+ } | {
96
+ documents: ({
97
+ name: string;
98
+ tag: string;
99
+ startDate?: Date | null | undefined;
100
+ endDate?: Date | null | undefined;
101
+ } | null)[];
102
+ metadata?: {
103
+ page: number;
104
+ size: number;
105
+ totalElements: number;
106
+ totalPages: number;
107
+ } | undefined;
108
+ } | null | undefined;
109
+ }, {
110
+ message: string;
111
+ success: boolean;
112
+ data?: {
113
+ name: string;
114
+ tag: string;
115
+ startDate?: Date | null | undefined;
116
+ endDate?: Date | null | undefined;
117
+ } | {
118
+ documents: ({
119
+ name: string;
120
+ tag: string;
121
+ startDate?: Date | null | undefined;
122
+ endDate?: Date | null | undefined;
123
+ } | null)[];
124
+ metadata?: {
125
+ page: number;
126
+ size: number;
127
+ totalElements: number;
128
+ totalPages: number;
129
+ } | undefined;
130
+ } | null | undefined;
131
+ }>;
132
+ export type ActiveTournamentOutputDTO = DTO<typeof ActiveTournamentSchema>;
133
+ //# sourceMappingURL=tournament.validation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tournament.validation.d.ts","sourceRoot":"/","sources":["modules/tournament/tournament.validation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,GAAG,EAAiB,MAAM,2DAA2D,CAAC;AAG/F,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;EAKjC,CAAC;AAEH,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAA0D,CAAC;AAEtG,MAAM,MAAM,yBAAyB,GAAG,GAAG,CAAC,OAAO,sBAAsB,CAAC,CAAC"}
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ActiveTournamentResponseSchema = exports.ActiveTournamentSchema = 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
+ exports.ActiveTournamentSchema = zod_1.z.object({
8
+ name: global_validation_1.ZodValidation.string('Tournament name'),
9
+ tag: global_validation_1.ZodValidation.string('Tournament tag'),
10
+ startDate: zod_1.z.date().nullable().optional(),
11
+ endDate: zod_1.z.date().nullable().optional(),
12
+ });
13
+ exports.ActiveTournamentResponseSchema = (0, validation_1.createResponseSchema)(exports.ActiveTournamentSchema.nullable());
14
+ //# sourceMappingURL=tournament.validation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tournament.validation.js","sourceRoot":"/","sources":["modules/tournament/tournament.validation.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,iGAA+F;AAC/F,wEAA+E;AAElE,QAAA,sBAAsB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC9C,IAAI,EAAE,iCAAa,CAAC,MAAM,CAAC,iBAAiB,CAAC;IAC7C,GAAG,EAAE,iCAAa,CAAC,MAAM,CAAC,gBAAgB,CAAC;IAC3C,SAAS,EAAE,OAAC,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IACzC,OAAO,EAAE,OAAC,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;CACvC,CAAC,CAAC;AAEU,QAAA,8BAA8B,GAAG,IAAA,iCAAoB,EAAC,8BAAsB,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\nexport const ActiveTournamentSchema = z.object({\n\tname: ZodValidation.string('Tournament name'),\n\ttag: ZodValidation.string('Tournament tag'),\n\tstartDate: z.date().nullable().optional(),\n\tendDate: z.date().nullable().optional(),\n});\n\nexport const ActiveTournamentResponseSchema = createResponseSchema(ActiveTournamentSchema.nullable());\n\nexport type ActiveTournamentOutputDTO = DTO<typeof ActiveTournamentSchema>;\n"]}