@lyxa.ai/marketing 1.0.49 → 1.0.51

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 (241) hide show
  1. package/dist/lib/index.d.ts +265 -21
  2. package/dist/lib/index.d.ts.map +1 -1
  3. package/dist/lib/modules/tournament/config/config.repository.d.ts +3 -0
  4. package/dist/lib/modules/tournament/config/config.repository.d.ts.map +1 -1
  5. package/dist/lib/modules/tournament/config/config.repository.js +3 -0
  6. package/dist/lib/modules/tournament/config/config.repository.js.map +1 -1
  7. package/dist/lib/modules/tournament/config/config.router.d.ts +10 -10
  8. package/dist/lib/modules/tournament/config/config.validation.d.ts +37 -36
  9. package/dist/lib/modules/tournament/config/config.validation.d.ts.map +1 -1
  10. package/dist/lib/modules/tournament/config/config.validation.js +4 -3
  11. package/dist/lib/modules/tournament/config/config.validation.js.map +1 -1
  12. package/dist/lib/modules/tournament/match/events/evaluate-predictions.consumer.d.ts.map +1 -1
  13. package/dist/lib/modules/tournament/match/events/evaluate-predictions.consumer.js +9 -1
  14. package/dist/lib/modules/tournament/match/events/evaluate-predictions.consumer.js.map +1 -1
  15. package/dist/lib/modules/tournament/match/match.builder.d.ts.map +1 -1
  16. package/dist/lib/modules/tournament/match/match.builder.js +2 -1
  17. package/dist/lib/modules/tournament/match/match.builder.js.map +1 -1
  18. package/dist/lib/modules/tournament/match/match.repository.d.ts +2 -0
  19. package/dist/lib/modules/tournament/match/match.repository.d.ts.map +1 -1
  20. package/dist/lib/modules/tournament/match/match.repository.js +10 -0
  21. package/dist/lib/modules/tournament/match/match.repository.js.map +1 -1
  22. package/dist/lib/modules/tournament/match/match.router.d.ts +16 -4
  23. package/dist/lib/modules/tournament/match/match.router.d.ts.map +1 -1
  24. package/dist/lib/modules/tournament/match/match.service.d.ts +0 -1
  25. package/dist/lib/modules/tournament/match/match.service.d.ts.map +1 -1
  26. package/dist/lib/modules/tournament/match/match.service.js +3 -9
  27. package/dist/lib/modules/tournament/match/match.service.js.map +1 -1
  28. package/dist/lib/modules/tournament/match/match.validation.d.ts +50 -0
  29. package/dist/lib/modules/tournament/match/match.validation.d.ts.map +1 -1
  30. package/dist/lib/modules/tournament/match/match.validation.js +1 -0
  31. package/dist/lib/modules/tournament/match/match.validation.js.map +1 -1
  32. package/dist/lib/modules/tournament/notification/jobs/notification.producer.d.ts +2 -5
  33. package/dist/lib/modules/tournament/notification/jobs/notification.producer.d.ts.map +1 -1
  34. package/dist/lib/modules/tournament/notification/jobs/notification.producer.js +1 -6
  35. package/dist/lib/modules/tournament/notification/jobs/notification.producer.js.map +1 -1
  36. package/dist/lib/modules/tournament/notification/jobs/notification.worker.d.ts +2 -0
  37. package/dist/lib/modules/tournament/notification/jobs/notification.worker.d.ts.map +1 -1
  38. package/dist/lib/modules/tournament/notification/jobs/notification.worker.js +15 -9
  39. package/dist/lib/modules/tournament/notification/jobs/notification.worker.js.map +1 -1
  40. package/dist/lib/modules/tournament/notification/notification-template.repository.d.ts +8 -0
  41. package/dist/lib/modules/tournament/notification/notification-template.repository.d.ts.map +1 -0
  42. package/dist/lib/modules/tournament/notification/notification-template.repository.js +60 -0
  43. package/dist/lib/modules/tournament/notification/notification-template.repository.js.map +1 -0
  44. package/dist/lib/modules/tournament/notification/notification.config.d.ts +10 -0
  45. package/dist/lib/modules/tournament/notification/notification.config.d.ts.map +1 -0
  46. package/dist/lib/modules/tournament/notification/notification.config.js +15 -0
  47. package/dist/lib/modules/tournament/notification/notification.config.js.map +1 -0
  48. package/dist/lib/modules/tournament/notification/notification.schedule.config.d.ts +10 -0
  49. package/dist/lib/modules/tournament/notification/notification.schedule.config.d.ts.map +1 -0
  50. package/dist/lib/modules/tournament/notification/notification.schedule.config.js +15 -0
  51. package/dist/lib/modules/tournament/notification/notification.schedule.config.js.map +1 -0
  52. package/dist/lib/modules/tournament/notification/notification.scheduler.service.d.ts +4 -4
  53. package/dist/lib/modules/tournament/notification/notification.scheduler.service.d.ts.map +1 -1
  54. package/dist/lib/modules/tournament/notification/notification.scheduler.service.js +15 -28
  55. package/dist/lib/modules/tournament/notification/notification.scheduler.service.js.map +1 -1
  56. package/dist/lib/modules/tournament/notification/notification.service.d.ts +5 -4
  57. package/dist/lib/modules/tournament/notification/notification.service.d.ts.map +1 -1
  58. package/dist/lib/modules/tournament/notification/notification.service.js +33 -28
  59. package/dist/lib/modules/tournament/notification/notification.service.js.map +1 -1
  60. package/dist/lib/modules/tournament/participant/participant.repository.d.ts +3 -0
  61. package/dist/lib/modules/tournament/participant/participant.repository.d.ts.map +1 -1
  62. package/dist/lib/modules/tournament/participant/participant.repository.js +14 -0
  63. package/dist/lib/modules/tournament/participant/participant.repository.js.map +1 -1
  64. package/dist/lib/modules/tournament/participant/participant.router.d.ts +27 -4
  65. package/dist/lib/modules/tournament/participant/participant.router.d.ts.map +1 -1
  66. package/dist/lib/modules/tournament/participant/participant.router.js +7 -0
  67. package/dist/lib/modules/tournament/participant/participant.router.js.map +1 -1
  68. package/dist/lib/modules/tournament/participant/participant.service.d.ts +2 -2
  69. package/dist/lib/modules/tournament/participant/participant.service.d.ts.map +1 -1
  70. package/dist/lib/modules/tournament/participant/participant.service.js +20 -6
  71. package/dist/lib/modules/tournament/participant/participant.service.js.map +1 -1
  72. package/dist/lib/modules/tournament/participant/participant.validation.d.ts +144 -36
  73. package/dist/lib/modules/tournament/participant/participant.validation.d.ts.map +1 -1
  74. package/dist/lib/modules/tournament/participant/participant.validation.js +10 -3
  75. package/dist/lib/modules/tournament/participant/participant.validation.js.map +1 -1
  76. package/dist/lib/modules/tournament/prediction/prediction.builder.d.ts.map +1 -1
  77. package/dist/lib/modules/tournament/prediction/prediction.builder.js +3 -2
  78. package/dist/lib/modules/tournament/prediction/prediction.builder.js.map +1 -1
  79. package/dist/lib/modules/tournament/prediction/prediction.service.d.ts +1 -0
  80. package/dist/lib/modules/tournament/prediction/prediction.service.d.ts.map +1 -1
  81. package/dist/lib/modules/tournament/prediction/prediction.service.js +12 -1
  82. package/dist/lib/modules/tournament/prediction/prediction.service.js.map +1 -1
  83. package/dist/lib/modules/tournament/reward/reward.builder.d.ts.map +1 -1
  84. package/dist/lib/modules/tournament/reward/reward.builder.js +2 -1
  85. package/dist/lib/modules/tournament/reward/reward.builder.js.map +1 -1
  86. package/dist/lib/modules/tournament/reward/reward.repository.d.ts +8 -0
  87. package/dist/lib/modules/tournament/reward/reward.repository.d.ts.map +1 -0
  88. package/dist/lib/modules/tournament/reward/reward.repository.js +66 -0
  89. package/dist/lib/modules/tournament/reward/reward.repository.js.map +1 -0
  90. package/dist/lib/modules/tournament/schedule/schedule.router.d.ts +27 -0
  91. package/dist/lib/modules/tournament/schedule/schedule.router.d.ts.map +1 -0
  92. package/dist/lib/modules/tournament/schedule/schedule.router.js +17 -0
  93. package/dist/lib/modules/tournament/schedule/schedule.router.js.map +1 -0
  94. package/dist/lib/modules/tournament/schedule/schedule.service.d.ts +10 -0
  95. package/dist/lib/modules/tournament/schedule/schedule.service.d.ts.map +1 -0
  96. package/dist/lib/modules/tournament/schedule/schedule.service.js +87 -0
  97. package/dist/lib/modules/tournament/schedule/schedule.service.js.map +1 -0
  98. package/dist/lib/modules/tournament/score/score.repository.d.ts +8 -1
  99. package/dist/lib/modules/tournament/score/score.repository.d.ts.map +1 -1
  100. package/dist/lib/modules/tournament/score/score.repository.js +12 -2
  101. package/dist/lib/modules/tournament/score/score.repository.js.map +1 -1
  102. package/dist/lib/modules/tournament/score/score.router.d.ts +98 -0
  103. package/dist/lib/modules/tournament/score/score.router.d.ts.map +1 -0
  104. package/dist/lib/modules/tournament/score/score.router.js +20 -0
  105. package/dist/lib/modules/tournament/score/score.router.js.map +1 -0
  106. package/dist/lib/modules/tournament/score/score.service.d.ts +7 -0
  107. package/dist/lib/modules/tournament/score/score.service.d.ts.map +1 -1
  108. package/dist/lib/modules/tournament/score/score.service.js +49 -0
  109. package/dist/lib/modules/tournament/score/score.service.js.map +1 -1
  110. package/dist/lib/modules/tournament/score/score.validation.d.ts +375 -0
  111. package/dist/lib/modules/tournament/score/score.validation.d.ts.map +1 -0
  112. package/dist/lib/modules/tournament/score/score.validation.js +19 -0
  113. package/dist/lib/modules/tournament/score/score.validation.js.map +1 -0
  114. package/dist/lib/modules/tournament/statistics/statistics.builder.d.ts +10 -0
  115. package/dist/lib/modules/tournament/statistics/statistics.builder.d.ts.map +1 -0
  116. package/dist/lib/modules/tournament/statistics/statistics.builder.js +53 -0
  117. package/dist/lib/modules/tournament/statistics/statistics.builder.js.map +1 -0
  118. package/dist/lib/modules/tournament/statistics/statistics.router.d.ts +80 -0
  119. package/dist/lib/modules/tournament/statistics/statistics.router.d.ts.map +1 -0
  120. package/dist/lib/modules/tournament/statistics/statistics.router.js +21 -0
  121. package/dist/lib/modules/tournament/statistics/statistics.router.js.map +1 -0
  122. package/dist/lib/modules/tournament/statistics/statistics.service.d.ts +11 -0
  123. package/dist/lib/modules/tournament/statistics/statistics.service.d.ts.map +1 -0
  124. package/dist/lib/modules/tournament/statistics/statistics.service.js +80 -0
  125. package/dist/lib/modules/tournament/statistics/statistics.service.js.map +1 -0
  126. package/dist/lib/modules/tournament/statistics/statistics.validation.d.ts +404 -0
  127. package/dist/lib/modules/tournament/statistics/statistics.validation.d.ts.map +1 -0
  128. package/dist/lib/modules/tournament/statistics/statistics.validation.js +36 -0
  129. package/dist/lib/modules/tournament/statistics/statistics.validation.js.map +1 -0
  130. package/dist/lib/modules/tournament/team/team.router.d.ts +9 -3
  131. package/dist/lib/modules/tournament/team/team.router.d.ts.map +1 -1
  132. package/dist/lib/modules/tournament/team/team.service.d.ts +1 -0
  133. package/dist/lib/modules/tournament/team/team.service.d.ts.map +1 -1
  134. package/dist/lib/modules/tournament/team/team.service.js +23 -16
  135. package/dist/lib/modules/tournament/team/team.service.js.map +1 -1
  136. package/dist/lib/modules/tournament/team/team.validation.d.ts +54 -4
  137. package/dist/lib/modules/tournament/team/team.validation.d.ts.map +1 -1
  138. package/dist/lib/modules/tournament/team/team.validation.js +4 -2
  139. package/dist/lib/modules/tournament/team/team.validation.js.map +1 -1
  140. package/dist/lib/modules/tournament/tournament.router.d.ts +370 -125
  141. package/dist/lib/modules/tournament/tournament.router.d.ts.map +1 -1
  142. package/dist/lib/modules/tournament/tournament.router.js +13 -2
  143. package/dist/lib/modules/tournament/tournament.router.js.map +1 -1
  144. package/dist/lib/modules/tournament/tournament.service.d.ts +3 -1
  145. package/dist/lib/modules/tournament/tournament.service.d.ts.map +1 -1
  146. package/dist/lib/modules/tournament/tournament.service.js +17 -2
  147. package/dist/lib/modules/tournament/tournament.service.js.map +1 -1
  148. package/dist/lib/modules/tournament/tournament.types.d.ts +14 -0
  149. package/dist/lib/modules/tournament/tournament.types.d.ts.map +1 -0
  150. package/dist/lib/modules/tournament/tournament.types.js +20 -0
  151. package/dist/lib/modules/tournament/tournament.types.js.map +1 -0
  152. package/dist/lib/modules/tournament/tournament.utils.d.ts +2 -0
  153. package/dist/lib/modules/tournament/tournament.utils.d.ts.map +1 -0
  154. package/dist/lib/modules/tournament/tournament.utils.js +6 -0
  155. package/dist/lib/modules/tournament/tournament.utils.js.map +1 -0
  156. package/dist/lib/modules/tournament/tournament.validation.d.ts +15 -0
  157. package/dist/lib/modules/tournament/tournament.validation.d.ts.map +1 -1
  158. package/dist/lib/modules/tournament/tournament.validation.js +4 -1
  159. package/dist/lib/modules/tournament/tournament.validation.js.map +1 -1
  160. package/dist/types/index.d.ts +265 -21
  161. package/dist/types/index.d.ts.map +1 -1
  162. package/dist/types/modules/tournament/config/config.repository.d.ts +3 -0
  163. package/dist/types/modules/tournament/config/config.repository.d.ts.map +1 -1
  164. package/dist/types/modules/tournament/config/config.router.d.ts +10 -10
  165. package/dist/types/modules/tournament/config/config.validation.d.ts +37 -36
  166. package/dist/types/modules/tournament/config/config.validation.d.ts.map +1 -1
  167. package/dist/types/modules/tournament/match/events/evaluate-predictions.consumer.d.ts.map +1 -1
  168. package/dist/types/modules/tournament/match/match.builder.d.ts.map +1 -1
  169. package/dist/types/modules/tournament/match/match.repository.d.ts +2 -0
  170. package/dist/types/modules/tournament/match/match.repository.d.ts.map +1 -1
  171. package/dist/types/modules/tournament/match/match.router.d.ts +16 -4
  172. package/dist/types/modules/tournament/match/match.router.d.ts.map +1 -1
  173. package/dist/types/modules/tournament/match/match.service.d.ts +0 -1
  174. package/dist/types/modules/tournament/match/match.service.d.ts.map +1 -1
  175. package/dist/types/modules/tournament/match/match.validation.d.ts +50 -0
  176. package/dist/types/modules/tournament/match/match.validation.d.ts.map +1 -1
  177. package/dist/types/modules/tournament/notification/jobs/notification.producer.d.ts +2 -5
  178. package/dist/types/modules/tournament/notification/jobs/notification.producer.d.ts.map +1 -1
  179. package/dist/types/modules/tournament/notification/jobs/notification.worker.d.ts +2 -0
  180. package/dist/types/modules/tournament/notification/jobs/notification.worker.d.ts.map +1 -1
  181. package/dist/types/modules/tournament/notification/notification-template.repository.d.ts +8 -0
  182. package/dist/types/modules/tournament/notification/notification-template.repository.d.ts.map +1 -0
  183. package/dist/types/modules/tournament/notification/notification.config.d.ts +10 -0
  184. package/dist/types/modules/tournament/notification/notification.config.d.ts.map +1 -0
  185. package/dist/types/modules/tournament/notification/notification.schedule.config.d.ts +10 -0
  186. package/dist/types/modules/tournament/notification/notification.schedule.config.d.ts.map +1 -0
  187. package/dist/types/modules/tournament/notification/notification.scheduler.service.d.ts +4 -4
  188. package/dist/types/modules/tournament/notification/notification.scheduler.service.d.ts.map +1 -1
  189. package/dist/types/modules/tournament/notification/notification.service.d.ts +5 -4
  190. package/dist/types/modules/tournament/notification/notification.service.d.ts.map +1 -1
  191. package/dist/types/modules/tournament/participant/participant.repository.d.ts +3 -0
  192. package/dist/types/modules/tournament/participant/participant.repository.d.ts.map +1 -1
  193. package/dist/types/modules/tournament/participant/participant.router.d.ts +27 -4
  194. package/dist/types/modules/tournament/participant/participant.router.d.ts.map +1 -1
  195. package/dist/types/modules/tournament/participant/participant.service.d.ts +2 -2
  196. package/dist/types/modules/tournament/participant/participant.service.d.ts.map +1 -1
  197. package/dist/types/modules/tournament/participant/participant.validation.d.ts +144 -36
  198. package/dist/types/modules/tournament/participant/participant.validation.d.ts.map +1 -1
  199. package/dist/types/modules/tournament/prediction/prediction.builder.d.ts.map +1 -1
  200. package/dist/types/modules/tournament/prediction/prediction.service.d.ts +1 -0
  201. package/dist/types/modules/tournament/prediction/prediction.service.d.ts.map +1 -1
  202. package/dist/types/modules/tournament/reward/reward.builder.d.ts.map +1 -1
  203. package/dist/types/modules/tournament/reward/reward.repository.d.ts +8 -0
  204. package/dist/types/modules/tournament/reward/reward.repository.d.ts.map +1 -0
  205. package/dist/types/modules/tournament/schedule/schedule.router.d.ts +27 -0
  206. package/dist/types/modules/tournament/schedule/schedule.router.d.ts.map +1 -0
  207. package/dist/types/modules/tournament/schedule/schedule.service.d.ts +10 -0
  208. package/dist/types/modules/tournament/schedule/schedule.service.d.ts.map +1 -0
  209. package/dist/types/modules/tournament/score/score.repository.d.ts +8 -1
  210. package/dist/types/modules/tournament/score/score.repository.d.ts.map +1 -1
  211. package/dist/types/modules/tournament/score/score.router.d.ts +98 -0
  212. package/dist/types/modules/tournament/score/score.router.d.ts.map +1 -0
  213. package/dist/types/modules/tournament/score/score.service.d.ts +7 -0
  214. package/dist/types/modules/tournament/score/score.service.d.ts.map +1 -1
  215. package/dist/types/modules/tournament/score/score.validation.d.ts +375 -0
  216. package/dist/types/modules/tournament/score/score.validation.d.ts.map +1 -0
  217. package/dist/types/modules/tournament/statistics/statistics.builder.d.ts +10 -0
  218. package/dist/types/modules/tournament/statistics/statistics.builder.d.ts.map +1 -0
  219. package/dist/types/modules/tournament/statistics/statistics.router.d.ts +80 -0
  220. package/dist/types/modules/tournament/statistics/statistics.router.d.ts.map +1 -0
  221. package/dist/types/modules/tournament/statistics/statistics.service.d.ts +11 -0
  222. package/dist/types/modules/tournament/statistics/statistics.service.d.ts.map +1 -0
  223. package/dist/types/modules/tournament/statistics/statistics.validation.d.ts +404 -0
  224. package/dist/types/modules/tournament/statistics/statistics.validation.d.ts.map +1 -0
  225. package/dist/types/modules/tournament/team/team.router.d.ts +9 -3
  226. package/dist/types/modules/tournament/team/team.router.d.ts.map +1 -1
  227. package/dist/types/modules/tournament/team/team.service.d.ts +1 -0
  228. package/dist/types/modules/tournament/team/team.service.d.ts.map +1 -1
  229. package/dist/types/modules/tournament/team/team.validation.d.ts +54 -4
  230. package/dist/types/modules/tournament/team/team.validation.d.ts.map +1 -1
  231. package/dist/types/modules/tournament/tournament.router.d.ts +370 -125
  232. package/dist/types/modules/tournament/tournament.router.d.ts.map +1 -1
  233. package/dist/types/modules/tournament/tournament.service.d.ts +3 -1
  234. package/dist/types/modules/tournament/tournament.service.d.ts.map +1 -1
  235. package/dist/types/modules/tournament/tournament.types.d.ts +14 -0
  236. package/dist/types/modules/tournament/tournament.types.d.ts.map +1 -0
  237. package/dist/types/modules/tournament/tournament.utils.d.ts +2 -0
  238. package/dist/types/modules/tournament/tournament.utils.d.ts.map +1 -0
  239. package/dist/types/modules/tournament/tournament.validation.d.ts +15 -0
  240. package/dist/types/modules/tournament/tournament.validation.d.ts.map +1 -1
  241. package/package.json +2 -2
@@ -1 +1 @@
1
- {"version":3,"file":"prediction.builder.d.ts","sourceRoot":"/","sources":["modules/tournament/prediction/prediction.builder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAE9D,UAAU,oBAAoB;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACjB;AAED,qBAAa,iBAAiB;IAC1B,MAAM,CAAC,eAAe,CAAC,OAAO,EAAE,QAAQ,CAAC,KAAK,CAAC,QAAQ,EAAE,KAAK,EAAE,oBAAoB,GAAG,IAAI,CAAC,mBAAmB,EAAE,KAAK,CAAC,GAAG;QAAE,GAAG,EAAE,QAAQ,CAAC,KAAK,CAAC,QAAQ,CAAA;KAAE;IAU1J,MAAM,CAAC,gBAAgB,CAAC,KAAK,EAAE,oBAAoB,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;CAMhF"}
1
+ {"version":3,"file":"prediction.builder.d.ts","sourceRoot":"/","sources":["modules/tournament/prediction/prediction.builder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAG9D,UAAU,oBAAoB;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACjB;AAED,qBAAa,iBAAiB;IAC1B,MAAM,CAAC,eAAe,CAAC,OAAO,EAAE,QAAQ,CAAC,KAAK,CAAC,QAAQ,EAAE,KAAK,EAAE,oBAAoB,GAAG,IAAI,CAAC,mBAAmB,EAAE,KAAK,CAAC,GAAG;QAAE,GAAG,EAAE,QAAQ,CAAC,KAAK,CAAC,QAAQ,CAAA;KAAE;IAU1J,MAAM,CAAC,gBAAgB,CAAC,KAAK,EAAE,oBAAoB,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;CAMhF"}
@@ -7,6 +7,7 @@ export declare class PredictionService {
7
7
  constructor();
8
8
  private findMatch;
9
9
  private ensureMatchIsOpen;
10
+ private ensureMatchInvolvesParticipantTeam;
10
11
  private ensureNoPriorPrediction;
11
12
  private findPrediction;
12
13
  private resolveOutcomes;
@@ -1 +1 @@
1
- {"version":3,"file":"prediction.service.d.ts","sourceRoot":"/","sources":["modules/tournament/prediction/prediction.service.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,QAAQ,EAAC,MAAM,sBAAsB,CAAC;AAE9C,OAAO,EACH,wBAAwB,EACxB,sBAAsB,EACtB,qBAAqB,EACrB,mBAAmB,EACtB,MAAM,yBAAyB,CAAC;AAOjC,qBACa,iBAAiB;IAC1B,OAAO,CAAC,UAAU,CAAuB;IACzC,OAAO,CAAC,eAAe,CAA4B;IACnD,OAAO,CAAC,kBAAkB,CAAqB;;YAQjC,SAAS;IAQvB,OAAO,CAAC,iBAAiB;IAOzB,OAAO,CAAC,uBAAuB;IAK/B,OAAO,CAAC,cAAc;IAMtB,OAAO,CAAC,eAAe;IAmBV,QAAQ,CACjB,YAAY,EAAE,QAAQ,CAAC,KAAK,CAAC,QAAQ,EACrC,OAAO,EAAE,QAAQ,CAAC,KAAK,CAAC,QAAQ,EAChC,UAAU,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,GAC7C,OAAO,CAAC;QAAC,SAAS,EAAE,QAAQ,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC;QAAC,QAAQ,EAAE,QAAQ,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAA;KAAC,CAAC;IAO1E,MAAM,CAAC,MAAM,EAAE,QAAQ,CAAC,KAAK,CAAC,QAAQ,EAAE,KAAK,EAAE,wBAAwB,GAAG,OAAO,CAAC,mBAAmB,CAAC;IActG,IAAI,CAAC,MAAM,EAAE,QAAQ,CAAC,KAAK,CAAC,QAAQ,EAAE,KAAK,EAAE,sBAAsB,GAAG,OAAO,CAAC,mBAAmB,CAAC;IAoBlG,GAAG,CAAC,MAAM,EAAE,QAAQ,CAAC,KAAK,CAAC,QAAQ,EAAE,KAAK,EAAE,qBAAqB,GAAG,OAAO,CAAC,mBAAmB,GAAG,IAAI,CAAC;CAKvH;AAED,eAAO,MAAM,iBAAiB,mBAAmC,CAAC"}
1
+ {"version":3,"file":"prediction.service.d.ts","sourceRoot":"/","sources":["modules/tournament/prediction/prediction.service.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,QAAQ,EAAC,MAAM,sBAAsB,CAAC;AAE9C,OAAO,EACH,wBAAwB,EACxB,sBAAsB,EACtB,qBAAqB,EACrB,mBAAmB,EACtB,MAAM,yBAAyB,CAAC;AAQjC,qBACa,iBAAiB;IAC1B,OAAO,CAAC,UAAU,CAAuB;IACzC,OAAO,CAAC,eAAe,CAA4B;IACnD,OAAO,CAAC,kBAAkB,CAAqB;;YAQjC,SAAS;IAQvB,OAAO,CAAC,iBAAiB;IAOzB,OAAO,CAAC,kCAAkC;IAU1C,OAAO,CAAC,uBAAuB;IAK/B,OAAO,CAAC,cAAc;IAMtB,OAAO,CAAC,eAAe;IAmBV,QAAQ,CACjB,YAAY,EAAE,QAAQ,CAAC,KAAK,CAAC,QAAQ,EACrC,OAAO,EAAE,QAAQ,CAAC,KAAK,CAAC,QAAQ,EAChC,UAAU,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,GAC7C,OAAO,CAAC;QAAC,SAAS,EAAE,QAAQ,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC;QAAC,QAAQ,EAAE,QAAQ,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAA;KAAC,CAAC;IAO1E,MAAM,CAAC,MAAM,EAAE,QAAQ,CAAC,KAAK,CAAC,QAAQ,EAAE,KAAK,EAAE,wBAAwB,GAAG,OAAO,CAAC,mBAAmB,CAAC;IAetG,IAAI,CAAC,MAAM,EAAE,QAAQ,CAAC,KAAK,CAAC,QAAQ,EAAE,KAAK,EAAE,sBAAsB,GAAG,OAAO,CAAC,mBAAmB,CAAC;IAqBlG,GAAG,CAAC,MAAM,EAAE,QAAQ,CAAC,KAAK,CAAC,QAAQ,EAAE,KAAK,EAAE,qBAAqB,GAAG,OAAO,CAAC,mBAAmB,GAAG,IAAI,CAAC;CAKvH;AAED,eAAO,MAAM,iBAAiB,mBAAmC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"reward.builder.d.ts","sourceRoot":"/","sources":["modules/tournament/reward/reward.builder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAC,MAAM,sBAAsB,CAAC;AAE9C,OAAO,EAAC,aAAa,EAAC,MAAM,gBAAgB,CAAC;AAO7C,qBAAa,aAAa;IACtB,MAAM,CAAC,wBAAwB,CAC3B,OAAO,EAAE,QAAQ,CAAC,KAAK,CAAC,QAAQ,EAChC,YAAY,EAAE,QAAQ,CAAC,KAAK,CAAC,QAAQ,EACrC,SAAS,EAAE,QAAQ,CAAC,KAAK,CAAC,QAAQ,EAAE,GACrC,aAAa;CAiCnB"}
1
+ {"version":3,"file":"reward.builder.d.ts","sourceRoot":"/","sources":["modules/tournament/reward/reward.builder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAC,MAAM,sBAAsB,CAAC;AAE9C,OAAO,EAAC,aAAa,EAAC,MAAM,gBAAgB,CAAC;AAQ7C,qBAAa,aAAa;IACtB,MAAM,CAAC,wBAAwB,CAC3B,OAAO,EAAE,QAAQ,CAAC,KAAK,CAAC,QAAQ,EAChC,YAAY,EAAE,QAAQ,CAAC,KAAK,CAAC,QAAQ,EACrC,SAAS,EAAE,QAAQ,CAAC,KAAK,CAAC,QAAQ,EAAE,GACrC,aAAa;CAiCnB"}
@@ -0,0 +1,8 @@
1
+ import { mongoose } from '@typegoose/typegoose';
2
+ export declare class RewardRepository {
3
+ private couponModel;
4
+ constructor();
5
+ findCouponCodesByIds(ids: mongoose.Types.ObjectId[]): Promise<Map<string, string>>;
6
+ }
7
+ export declare const rewardRepository: RewardRepository;
8
+ //# sourceMappingURL=reward.repository.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"reward.repository.d.ts","sourceRoot":"/","sources":["modules/tournament/reward/reward.repository.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAGhD,qBACa,gBAAgB;IACzB,OAAO,CAAC,WAAW,CAAqB;;IAMlC,oBAAoB,CAAC,GAAG,EAAE,QAAQ,CAAC,KAAK,CAAC,QAAQ,EAAE,GAAG,OAAO,CAAC,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAK3F;AAED,eAAO,MAAM,gBAAgB,kBAAkC,CAAC"}
@@ -0,0 +1,27 @@
1
+ export declare const scheduleRouter: import("@trpc/server").TRPCBuiltRouter<{
2
+ ctx: import("@lyxa.ai/core/dist/libraries/trpc/context").LyxaHTTPContext;
3
+ meta: object;
4
+ errorShape: {
5
+ message: string;
6
+ data: {
7
+ stack: undefined;
8
+ path: undefined;
9
+ code: import("@trpc/server").TRPC_ERROR_CODE_KEY;
10
+ httpStatus: number;
11
+ };
12
+ stack: undefined;
13
+ code: import("@trpc/server").TRPC_ERROR_CODE_NUMBER;
14
+ };
15
+ transformer: false;
16
+ }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
17
+ dispatch: import("@trpc/server").TRPCMutationProcedure<{
18
+ input: void;
19
+ output: {
20
+ success: boolean;
21
+ message: string;
22
+ data: null | undefined;
23
+ };
24
+ meta: object;
25
+ }>;
26
+ }>>;
27
+ //# sourceMappingURL=schedule.router.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schedule.router.d.ts","sourceRoot":"/","sources":["modules/tournament/schedule/schedule.router.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;GAQzB,CAAC"}
@@ -0,0 +1,10 @@
1
+ export declare class ScheduleService {
2
+ private configRepository;
3
+ private matchRepository;
4
+ private templateRepository;
5
+ private notificationService;
6
+ constructor();
7
+ dispatchPending(): Promise<void>;
8
+ }
9
+ export declare const scheduleDispatchService: ScheduleService;
10
+ //# sourceMappingURL=schedule.service.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schedule.service.d.ts","sourceRoot":"/","sources":["modules/tournament/schedule/schedule.service.ts"],"names":[],"mappings":"AAMA,qBACa,eAAe;IACxB,OAAO,CAAC,gBAAgB,CAA6B;IACrD,OAAO,CAAC,eAAe,CAA4B;IACnD,OAAO,CAAC,kBAAkB,CAAiC;IAC3D,OAAO,CAAC,mBAAmB,CAAgC;;IAS9C,eAAe,IAAI,OAAO,CAAC,IAAI,CAAC;CAyBhD;AAED,eAAO,MAAM,uBAAuB,iBAAiC,CAAC"}
@@ -1,6 +1,13 @@
1
+ import { mongoose } from '@typegoose/typegoose';
2
+ import { Tournament as Model } from '@lyxa.ai/core/dist/libraries/mongo/models';
1
3
  export declare class ScoreRepository {
2
- private participantModel;
4
+ private model;
3
5
  constructor();
6
+ findMatchInTournament(tournamentId: mongoose.Types.ObjectId, matchId: mongoose.Types.ObjectId): Promise<Model | null>;
7
+ updateMatchScore(tournamentId: mongoose.Types.ObjectId, matchId: mongoose.Types.ObjectId, score: {
8
+ team1: number;
9
+ team2: number;
10
+ }): Promise<Model | null>;
4
11
  }
5
12
  export declare const scoreRepository: ScoreRepository;
6
13
  //# sourceMappingURL=score.repository.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"score.repository.d.ts","sourceRoot":"/","sources":["modules/tournament/score/score.repository.ts"],"names":[],"mappings":"AAGA,qBACa,eAAe;IACxB,OAAO,CAAC,gBAAgB,CAAoC;;CAK/D;AAED,eAAO,MAAM,eAAe,iBAAiC,CAAC"}
1
+ {"version":3,"file":"score.repository.d.ts","sourceRoot":"/","sources":["modules/tournament/score/score.repository.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,QAAQ,EAAC,MAAM,sBAAsB,CAAC;AAC9C,OAAO,EAAC,UAAU,IAAI,KAAK,EAAkB,MAAM,2CAA2C,CAAC;AAE/F,qBACa,eAAe;IACxB,OAAO,CAAC,KAAK,CAAyB;;IAMhC,qBAAqB,CAAC,YAAY,EAAE,QAAQ,CAAC,KAAK,CAAC,QAAQ,EAAE,OAAO,EAAE,QAAQ,CAAC,KAAK,CAAC,QAAQ,GAAG,OAAO,CAAC,KAAK,GAAG,IAAI,CAAC;IAMrH,gBAAgB,CAClB,YAAY,EAAE,QAAQ,CAAC,KAAK,CAAC,QAAQ,EACrC,OAAO,EAAE,QAAQ,CAAC,KAAK,CAAC,QAAQ,EAChC,KAAK,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,GACxC,OAAO,CAAC,KAAK,GAAG,IAAI,CAAC;CAS3B;AAED,eAAO,MAAM,eAAe,iBAAiC,CAAC"}
@@ -0,0 +1,98 @@
1
+ export declare const scoreRouter: import("@trpc/server").TRPCBuiltRouter<{
2
+ ctx: import("@lyxa.ai/core/dist/libraries/trpc/context").LyxaHTTPContext;
3
+ meta: object;
4
+ errorShape: {
5
+ message: string;
6
+ data: {
7
+ stack: undefined;
8
+ path: undefined;
9
+ code: import("@trpc/server").TRPC_ERROR_CODE_KEY;
10
+ httpStatus: number;
11
+ };
12
+ stack: undefined;
13
+ code: import("@trpc/server").TRPC_ERROR_CODE_NUMBER;
14
+ };
15
+ transformer: false;
16
+ }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
17
+ updateMatchScore: import("@trpc/server").TRPCMutationProcedure<{
18
+ input: {
19
+ tournamentId: string | import("mongoose").Types.ObjectId;
20
+ matchId: string | import("mongoose").Types.ObjectId;
21
+ teams: {
22
+ score: number;
23
+ teamId: string | import("mongoose").Types.ObjectId;
24
+ }[];
25
+ };
26
+ output: {
27
+ message: string;
28
+ success: boolean;
29
+ data?: {
30
+ _id: string | import("mongoose").Types.ObjectId;
31
+ team1: {
32
+ name: string;
33
+ teamId: string | import("mongoose").Types.ObjectId;
34
+ picture?: string | undefined;
35
+ };
36
+ team2: {
37
+ name: string;
38
+ teamId: string | import("mongoose").Types.ObjectId;
39
+ picture?: string | undefined;
40
+ };
41
+ score: {
42
+ team1: number | null;
43
+ team2: number | null;
44
+ };
45
+ stage: string;
46
+ endDate?: Date | null | undefined;
47
+ additionalTag?: string | undefined;
48
+ winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
49
+ startingDate?: Date | null | undefined;
50
+ prediction?: {
51
+ score: {
52
+ team1: number | null;
53
+ team2: number | null;
54
+ };
55
+ succeeded?: boolean | null | undefined;
56
+ } | null | undefined;
57
+ } | {
58
+ documents: {
59
+ _id: string | import("mongoose").Types.ObjectId;
60
+ team1: {
61
+ name: string;
62
+ teamId: string | import("mongoose").Types.ObjectId;
63
+ picture?: string | undefined;
64
+ };
65
+ team2: {
66
+ name: string;
67
+ teamId: string | import("mongoose").Types.ObjectId;
68
+ picture?: string | undefined;
69
+ };
70
+ score: {
71
+ team1: number | null;
72
+ team2: number | null;
73
+ };
74
+ stage: string;
75
+ endDate?: Date | null | undefined;
76
+ additionalTag?: string | undefined;
77
+ winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
78
+ startingDate?: Date | null | undefined;
79
+ prediction?: {
80
+ score: {
81
+ team1: number | null;
82
+ team2: number | null;
83
+ };
84
+ succeeded?: boolean | null | undefined;
85
+ } | null | undefined;
86
+ }[];
87
+ metadata?: {
88
+ page: number;
89
+ size: number;
90
+ totalElements: number;
91
+ totalPages: number;
92
+ } | undefined;
93
+ } | undefined;
94
+ };
95
+ meta: object;
96
+ }>;
97
+ }>>;
98
+ //# sourceMappingURL=score.router.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"score.router.d.ts","sourceRoot":"/","sources":["modules/tournament/score/score.router.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAUtB,CAAC"}
@@ -1,6 +1,13 @@
1
+ import { UpdateMatchScoreInputDTO } from './score.validation';
2
+ import { TournamentMatchOutputDTO } from '../match/match.validation';
1
3
  export declare class ScoreService {
2
4
  private repository;
3
5
  constructor();
6
+ private getMatch;
7
+ private resolveScore;
8
+ private resolveWinner;
9
+ private extractUpdatedMatch;
10
+ updateMatchScore(input: UpdateMatchScoreInputDTO): Promise<TournamentMatchOutputDTO>;
4
11
  }
5
12
  export declare const scoreService: ScoreService;
6
13
  //# sourceMappingURL=score.service.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"score.service.d.ts","sourceRoot":"/","sources":["modules/tournament/score/score.service.ts"],"names":[],"mappings":"AAGA,qBACa,YAAY;IACrB,OAAO,CAAC,UAAU,CAAkB;;CAKvC;AAED,eAAO,MAAM,YAAY,cAA8B,CAAC"}
1
+ {"version":3,"file":"score.service.d.ts","sourceRoot":"/","sources":["modules/tournament/score/score.service.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,wBAAwB,EAAE,MAAM,oBAAoB,CAAC;AAC9D,OAAO,EAAE,wBAAwB,EAAE,MAAM,2BAA2B,CAAC;AAErE,qBACa,YAAY;IACrB,OAAO,CAAC,UAAU,CAAkB;;YAMtB,QAAQ;IAQtB,OAAO,CAAC,YAAY;IAuBpB,OAAO,CAAC,aAAa;IASrB,OAAO,CAAC,mBAAmB;IASd,gBAAgB,CAAC,KAAK,EAAE,wBAAwB,GAAG,OAAO,CAAC,wBAAwB,CAAC;CASpG;AAED,eAAO,MAAM,YAAY,cAA8B,CAAC"}
@@ -0,0 +1,375 @@
1
+ import { z } from 'zod';
2
+ import { DTO } from '@lyxa.ai/core/dist/utilities/validation/global-validation';
3
+ export declare const UpdateMatchScoreSchema: 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
+ teams: z.ZodArray<z.ZodObject<{
7
+ teamId: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>;
8
+ score: z.ZodNumber;
9
+ }, "strip", z.ZodTypeAny, {
10
+ score: number;
11
+ teamId: import("mongoose").Types.ObjectId;
12
+ }, {
13
+ score: number;
14
+ teamId: string | import("mongoose").Types.ObjectId;
15
+ }>, "many">;
16
+ }, "strip", z.ZodTypeAny, {
17
+ tournamentId: import("mongoose").Types.ObjectId;
18
+ matchId: import("mongoose").Types.ObjectId;
19
+ teams: {
20
+ score: number;
21
+ teamId: import("mongoose").Types.ObjectId;
22
+ }[];
23
+ }, {
24
+ tournamentId: string | import("mongoose").Types.ObjectId;
25
+ matchId: string | import("mongoose").Types.ObjectId;
26
+ teams: {
27
+ score: number;
28
+ teamId: string | import("mongoose").Types.ObjectId;
29
+ }[];
30
+ }>;
31
+ export declare const ScoreResponseSchema: z.ZodObject<{
32
+ success: z.ZodBoolean;
33
+ message: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
34
+ data: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
35
+ metadata: z.ZodOptional<z.ZodObject<{
36
+ page: z.ZodNumber;
37
+ size: z.ZodNumber;
38
+ totalElements: z.ZodNumber;
39
+ totalPages: z.ZodNumber;
40
+ }, "strip", z.ZodTypeAny, {
41
+ page: number;
42
+ size: number;
43
+ totalElements: number;
44
+ totalPages: number;
45
+ }, {
46
+ page: number;
47
+ size: number;
48
+ totalElements: number;
49
+ totalPages: number;
50
+ }>>;
51
+ documents: z.ZodArray<z.ZodType<{
52
+ _id: string | import("mongoose").Types.ObjectId;
53
+ team1: {
54
+ name: string;
55
+ teamId: string | import("mongoose").Types.ObjectId;
56
+ picture?: string | undefined;
57
+ };
58
+ team2: {
59
+ name: string;
60
+ teamId: string | import("mongoose").Types.ObjectId;
61
+ picture?: string | undefined;
62
+ };
63
+ score: {
64
+ team1: number | null;
65
+ team2: number | null;
66
+ };
67
+ stage: string;
68
+ endDate?: Date | null | undefined;
69
+ additionalTag?: string | undefined;
70
+ winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
71
+ startingDate?: Date | null | undefined;
72
+ prediction?: {
73
+ score: {
74
+ team1: number | null;
75
+ team2: number | null;
76
+ };
77
+ succeeded?: boolean | null | undefined;
78
+ } | null | undefined;
79
+ }, z.ZodTypeDef, {
80
+ _id: string | import("mongoose").Types.ObjectId;
81
+ team1: {
82
+ name: string;
83
+ teamId: string | import("mongoose").Types.ObjectId;
84
+ picture?: string | undefined;
85
+ };
86
+ team2: {
87
+ name: string;
88
+ teamId: string | import("mongoose").Types.ObjectId;
89
+ picture?: string | undefined;
90
+ };
91
+ score: {
92
+ team1: number | null;
93
+ team2: number | null;
94
+ };
95
+ stage: string;
96
+ endDate?: Date | null | undefined;
97
+ additionalTag?: string | undefined;
98
+ winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
99
+ startingDate?: Date | null | undefined;
100
+ prediction?: {
101
+ score: {
102
+ team1: number | null;
103
+ team2: number | null;
104
+ };
105
+ succeeded?: boolean | null | undefined;
106
+ } | null | undefined;
107
+ }>, "many">;
108
+ }, "strip", z.ZodTypeAny, {
109
+ documents: {
110
+ _id: string | import("mongoose").Types.ObjectId;
111
+ team1: {
112
+ name: string;
113
+ teamId: string | import("mongoose").Types.ObjectId;
114
+ picture?: string | undefined;
115
+ };
116
+ team2: {
117
+ name: string;
118
+ teamId: string | import("mongoose").Types.ObjectId;
119
+ picture?: string | undefined;
120
+ };
121
+ score: {
122
+ team1: number | null;
123
+ team2: number | null;
124
+ };
125
+ stage: string;
126
+ endDate?: Date | null | undefined;
127
+ additionalTag?: string | undefined;
128
+ winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
129
+ startingDate?: Date | null | undefined;
130
+ prediction?: {
131
+ score: {
132
+ team1: number | null;
133
+ team2: number | null;
134
+ };
135
+ succeeded?: boolean | null | undefined;
136
+ } | null | undefined;
137
+ }[];
138
+ metadata?: {
139
+ page: number;
140
+ size: number;
141
+ totalElements: number;
142
+ totalPages: number;
143
+ } | undefined;
144
+ }, {
145
+ documents: {
146
+ _id: string | import("mongoose").Types.ObjectId;
147
+ team1: {
148
+ name: string;
149
+ teamId: string | import("mongoose").Types.ObjectId;
150
+ picture?: string | undefined;
151
+ };
152
+ team2: {
153
+ name: string;
154
+ teamId: string | import("mongoose").Types.ObjectId;
155
+ picture?: string | undefined;
156
+ };
157
+ score: {
158
+ team1: number | null;
159
+ team2: number | null;
160
+ };
161
+ stage: string;
162
+ endDate?: Date | null | undefined;
163
+ additionalTag?: string | undefined;
164
+ winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
165
+ startingDate?: Date | null | undefined;
166
+ prediction?: {
167
+ score: {
168
+ team1: number | null;
169
+ team2: number | null;
170
+ };
171
+ succeeded?: boolean | null | undefined;
172
+ } | null | undefined;
173
+ }[];
174
+ metadata?: {
175
+ page: number;
176
+ size: number;
177
+ totalElements: number;
178
+ totalPages: number;
179
+ } | undefined;
180
+ }>, z.ZodType<{
181
+ _id: string | import("mongoose").Types.ObjectId;
182
+ team1: {
183
+ name: string;
184
+ teamId: string | import("mongoose").Types.ObjectId;
185
+ picture?: string | undefined;
186
+ };
187
+ team2: {
188
+ name: string;
189
+ teamId: string | import("mongoose").Types.ObjectId;
190
+ picture?: string | undefined;
191
+ };
192
+ score: {
193
+ team1: number | null;
194
+ team2: number | null;
195
+ };
196
+ stage: string;
197
+ endDate?: Date | null | undefined;
198
+ additionalTag?: string | undefined;
199
+ winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
200
+ startingDate?: Date | null | undefined;
201
+ prediction?: {
202
+ score: {
203
+ team1: number | null;
204
+ team2: number | null;
205
+ };
206
+ succeeded?: boolean | null | undefined;
207
+ } | null | undefined;
208
+ }, z.ZodTypeDef, {
209
+ _id: string | import("mongoose").Types.ObjectId;
210
+ team1: {
211
+ name: string;
212
+ teamId: string | import("mongoose").Types.ObjectId;
213
+ picture?: string | undefined;
214
+ };
215
+ team2: {
216
+ name: string;
217
+ teamId: string | import("mongoose").Types.ObjectId;
218
+ picture?: string | undefined;
219
+ };
220
+ score: {
221
+ team1: number | null;
222
+ team2: number | null;
223
+ };
224
+ stage: string;
225
+ endDate?: Date | null | undefined;
226
+ additionalTag?: string | undefined;
227
+ winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
228
+ startingDate?: Date | null | undefined;
229
+ prediction?: {
230
+ score: {
231
+ team1: number | null;
232
+ team2: number | null;
233
+ };
234
+ succeeded?: boolean | null | undefined;
235
+ } | null | undefined;
236
+ }>]>>;
237
+ }, "strip", z.ZodTypeAny, {
238
+ message: string;
239
+ success: boolean;
240
+ data?: {
241
+ _id: string | import("mongoose").Types.ObjectId;
242
+ team1: {
243
+ name: string;
244
+ teamId: string | import("mongoose").Types.ObjectId;
245
+ picture?: string | undefined;
246
+ };
247
+ team2: {
248
+ name: string;
249
+ teamId: string | import("mongoose").Types.ObjectId;
250
+ picture?: string | undefined;
251
+ };
252
+ score: {
253
+ team1: number | null;
254
+ team2: number | null;
255
+ };
256
+ stage: string;
257
+ endDate?: Date | null | undefined;
258
+ additionalTag?: string | undefined;
259
+ winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
260
+ startingDate?: Date | null | undefined;
261
+ prediction?: {
262
+ score: {
263
+ team1: number | null;
264
+ team2: number | null;
265
+ };
266
+ succeeded?: boolean | null | undefined;
267
+ } | null | undefined;
268
+ } | {
269
+ documents: {
270
+ _id: string | import("mongoose").Types.ObjectId;
271
+ team1: {
272
+ name: string;
273
+ teamId: string | import("mongoose").Types.ObjectId;
274
+ picture?: string | undefined;
275
+ };
276
+ team2: {
277
+ name: string;
278
+ teamId: string | import("mongoose").Types.ObjectId;
279
+ picture?: string | undefined;
280
+ };
281
+ score: {
282
+ team1: number | null;
283
+ team2: number | null;
284
+ };
285
+ stage: string;
286
+ endDate?: Date | null | undefined;
287
+ additionalTag?: string | undefined;
288
+ winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
289
+ startingDate?: Date | null | undefined;
290
+ prediction?: {
291
+ score: {
292
+ team1: number | null;
293
+ team2: number | null;
294
+ };
295
+ succeeded?: boolean | null | undefined;
296
+ } | null | undefined;
297
+ }[];
298
+ metadata?: {
299
+ page: number;
300
+ size: number;
301
+ totalElements: number;
302
+ totalPages: number;
303
+ } | undefined;
304
+ } | undefined;
305
+ }, {
306
+ message: string;
307
+ success: boolean;
308
+ data?: {
309
+ _id: string | import("mongoose").Types.ObjectId;
310
+ team1: {
311
+ name: string;
312
+ teamId: string | import("mongoose").Types.ObjectId;
313
+ picture?: string | undefined;
314
+ };
315
+ team2: {
316
+ name: string;
317
+ teamId: string | import("mongoose").Types.ObjectId;
318
+ picture?: string | undefined;
319
+ };
320
+ score: {
321
+ team1: number | null;
322
+ team2: number | null;
323
+ };
324
+ stage: string;
325
+ endDate?: Date | null | undefined;
326
+ additionalTag?: string | undefined;
327
+ winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
328
+ startingDate?: Date | null | undefined;
329
+ prediction?: {
330
+ score: {
331
+ team1: number | null;
332
+ team2: number | null;
333
+ };
334
+ succeeded?: boolean | null | undefined;
335
+ } | null | undefined;
336
+ } | {
337
+ documents: {
338
+ _id: string | import("mongoose").Types.ObjectId;
339
+ team1: {
340
+ name: string;
341
+ teamId: string | import("mongoose").Types.ObjectId;
342
+ picture?: string | undefined;
343
+ };
344
+ team2: {
345
+ name: string;
346
+ teamId: string | import("mongoose").Types.ObjectId;
347
+ picture?: string | undefined;
348
+ };
349
+ score: {
350
+ team1: number | null;
351
+ team2: number | null;
352
+ };
353
+ stage: string;
354
+ endDate?: Date | null | undefined;
355
+ additionalTag?: string | undefined;
356
+ winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
357
+ startingDate?: Date | null | undefined;
358
+ prediction?: {
359
+ score: {
360
+ team1: number | null;
361
+ team2: number | null;
362
+ };
363
+ succeeded?: boolean | null | undefined;
364
+ } | null | undefined;
365
+ }[];
366
+ metadata?: {
367
+ page: number;
368
+ size: number;
369
+ totalElements: number;
370
+ totalPages: number;
371
+ } | undefined;
372
+ } | undefined;
373
+ }>;
374
+ export type UpdateMatchScoreInputDTO = DTO<typeof UpdateMatchScoreSchema>;
375
+ //# sourceMappingURL=score.validation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"score.validation.d.ts","sourceRoot":"/","sources":["modules/tournament/score/score.validation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,GAAG,EAAiB,MAAM,2DAA2D,CAAC;AAI/F,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;EAWjC,CAAC;AAEH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAA8C,CAAC;AAE/E,MAAM,MAAM,wBAAwB,GAAG,GAAG,CAAC,OAAO,sBAAsB,CAAC,CAAC"}
@@ -0,0 +1,10 @@
1
+ import { TournamentParticipant, Tournament } from '@lyxa.ai/core/dist/libraries/mongo/models';
2
+ import { UserTournamentStatsOutputDTO } from './statistics.validation';
3
+ export declare class StatisticsBuilder {
4
+ static buildUserTournamentStats(participant: TournamentParticipant & {
5
+ createdAt?: Date;
6
+ }, tournament: Tournament, couponCodeMap: Map<string, string>): UserTournamentStatsOutputDTO;
7
+ private static formatScore;
8
+ private static resolveResult;
9
+ }
10
+ //# sourceMappingURL=statistics.builder.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"statistics.builder.d.ts","sourceRoot":"/","sources":["modules/tournament/statistics/statistics.builder.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,qBAAqB,EAAE,UAAU,EAAE,MAAM,2CAA2C,CAAC;AAC9F,OAAO,EAAE,4BAA4B,EAAE,MAAM,yBAAyB,CAAC;AAEvE,qBAAa,iBAAiB;IAC1B,MAAM,CAAC,wBAAwB,CAC3B,WAAW,EAAE,qBAAqB,GAAG;QAAE,SAAS,CAAC,EAAE,IAAI,CAAA;KAAE,EACzD,UAAU,EAAE,UAAU,EACtB,aAAa,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,GACnC,4BAA4B;IA0C/B,OAAO,CAAC,MAAM,CAAC,WAAW;IAK1B,OAAO,CAAC,MAAM,CAAC,aAAa;CAQ/B"}