@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
@@ -32,81 +32,58 @@ export declare const tournamentRouter: import("@trpc/server").TRPCBuiltRouter<{
32
32
  }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
33
33
  create: import("@trpc/server").TRPCMutationProcedure<{
34
34
  input: {
35
+ name: string;
35
36
  startDate: string | Date;
36
37
  endDate: string | Date;
37
- tag: string;
38
+ tag: import("./tournament.types").TournamentTag;
38
39
  status?: import("@lyxa.ai/core/dist/utilities/enum").Status | undefined;
40
+ reward?: {
41
+ type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.FREE_DELIVERY;
42
+ } | {
43
+ type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.COUPON;
44
+ couponNamePrefix: string;
45
+ percentage: number;
46
+ maxDiscountPerOrder?: number | null | undefined;
47
+ } | undefined;
39
48
  };
40
49
  output: {
41
50
  message: string;
42
51
  success: boolean;
43
52
  data?: {
44
53
  status: import("@lyxa.ai/core/dist/utilities/enum").Status;
45
- _id: string | import("mongoose").Types.ObjectId;
46
- tag: string;
54
+ name: string;
55
+ _id?: string | import("mongoose").Types.ObjectId | undefined;
47
56
  createdAt?: Date | null | undefined;
48
57
  startDate?: Date | null | undefined;
49
58
  endDate?: Date | null | undefined;
50
59
  updatedAt?: Date | null | undefined;
51
- matches?: {
52
- _id: string | import("mongoose").Types.ObjectId;
53
- team1: {
54
- name: string;
55
- teamId: string | import("mongoose").Types.ObjectId;
56
- };
57
- team2: {
58
- name: string;
59
- teamId: string | import("mongoose").Types.ObjectId;
60
- };
61
- score: {
62
- team1: number | null;
63
- team2: number | null;
64
- };
65
- stage: string;
66
- endDate?: Date | null | undefined;
67
- startingDate?: Date | null | undefined;
68
- additionalTag?: string | undefined;
69
- winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
70
- }[] | undefined;
71
- teams?: {
72
- name: string;
73
- _id: string | import("mongoose").Types.ObjectId;
74
- picture?: string | null | undefined;
75
- }[] | undefined;
60
+ tag?: import("./tournament.types").TournamentTag | undefined;
61
+ reward?: {
62
+ type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.FREE_DELIVERY;
63
+ } | {
64
+ type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.COUPON;
65
+ maxDiscountPerOrder?: number | null | undefined;
66
+ couponNamePrefix?: string | undefined;
67
+ percentage?: number | undefined;
68
+ } | undefined;
76
69
  } | {
77
70
  documents: {
78
71
  status: import("@lyxa.ai/core/dist/utilities/enum").Status;
79
- _id: string | import("mongoose").Types.ObjectId;
80
- tag: string;
72
+ name: string;
73
+ _id?: string | import("mongoose").Types.ObjectId | undefined;
81
74
  createdAt?: Date | null | undefined;
82
75
  startDate?: Date | null | undefined;
83
76
  endDate?: Date | null | undefined;
84
77
  updatedAt?: Date | null | undefined;
85
- matches?: {
86
- _id: string | import("mongoose").Types.ObjectId;
87
- team1: {
88
- name: string;
89
- teamId: string | import("mongoose").Types.ObjectId;
90
- };
91
- team2: {
92
- name: string;
93
- teamId: string | import("mongoose").Types.ObjectId;
94
- };
95
- score: {
96
- team1: number | null;
97
- team2: number | null;
98
- };
99
- stage: string;
100
- endDate?: Date | null | undefined;
101
- startingDate?: Date | null | undefined;
102
- additionalTag?: string | undefined;
103
- winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
104
- }[] | undefined;
105
- teams?: {
106
- name: string;
107
- _id: string | import("mongoose").Types.ObjectId;
108
- picture?: string | null | undefined;
109
- }[] | undefined;
78
+ tag?: import("./tournament.types").TournamentTag | undefined;
79
+ reward?: {
80
+ type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.FREE_DELIVERY;
81
+ } | {
82
+ type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.COUPON;
83
+ maxDiscountPerOrder?: number | null | undefined;
84
+ couponNamePrefix?: string | undefined;
85
+ percentage?: number | undefined;
86
+ } | undefined;
110
87
  }[];
111
88
  metadata?: {
112
89
  page: number;
@@ -125,71 +102,37 @@ export declare const tournamentRouter: import("@trpc/server").TRPCBuiltRouter<{
125
102
  success: boolean;
126
103
  data?: {
127
104
  status: import("@lyxa.ai/core/dist/utilities/enum").Status;
128
- _id: string | import("mongoose").Types.ObjectId;
129
- tag: string;
105
+ name: string;
106
+ _id?: string | import("mongoose").Types.ObjectId | undefined;
130
107
  createdAt?: Date | null | undefined;
131
108
  startDate?: Date | null | undefined;
132
109
  endDate?: Date | null | undefined;
133
110
  updatedAt?: Date | null | undefined;
134
- matches?: {
135
- _id: string | import("mongoose").Types.ObjectId;
136
- team1: {
137
- name: string;
138
- teamId: string | import("mongoose").Types.ObjectId;
139
- };
140
- team2: {
141
- name: string;
142
- teamId: string | import("mongoose").Types.ObjectId;
143
- };
144
- score: {
145
- team1: number | null;
146
- team2: number | null;
147
- };
148
- stage: string;
149
- endDate?: Date | null | undefined;
150
- startingDate?: Date | null | undefined;
151
- additionalTag?: string | undefined;
152
- winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
153
- }[] | undefined;
154
- teams?: {
155
- name: string;
156
- _id: string | import("mongoose").Types.ObjectId;
157
- picture?: string | null | undefined;
158
- }[] | undefined;
111
+ tag?: import("./tournament.types").TournamentTag | undefined;
112
+ reward?: {
113
+ type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.FREE_DELIVERY;
114
+ } | {
115
+ type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.COUPON;
116
+ maxDiscountPerOrder?: number | null | undefined;
117
+ percentage?: number | undefined;
118
+ } | undefined;
159
119
  }[] | {
160
120
  documents: {
161
121
  status: import("@lyxa.ai/core/dist/utilities/enum").Status;
162
- _id: string | import("mongoose").Types.ObjectId;
163
- tag: string;
122
+ name: string;
123
+ _id?: string | import("mongoose").Types.ObjectId | undefined;
164
124
  createdAt?: Date | null | undefined;
165
125
  startDate?: Date | null | undefined;
166
126
  endDate?: Date | null | undefined;
167
127
  updatedAt?: Date | null | undefined;
168
- matches?: {
169
- _id: string | import("mongoose").Types.ObjectId;
170
- team1: {
171
- name: string;
172
- teamId: string | import("mongoose").Types.ObjectId;
173
- };
174
- team2: {
175
- name: string;
176
- teamId: string | import("mongoose").Types.ObjectId;
177
- };
178
- score: {
179
- team1: number | null;
180
- team2: number | null;
181
- };
182
- stage: string;
183
- endDate?: Date | null | undefined;
184
- startingDate?: Date | null | undefined;
185
- additionalTag?: string | undefined;
186
- winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
187
- }[] | undefined;
188
- teams?: {
189
- name: string;
190
- _id: string | import("mongoose").Types.ObjectId;
191
- picture?: string | null | undefined;
192
- }[] | undefined;
128
+ tag?: import("./tournament.types").TournamentTag | undefined;
129
+ reward?: {
130
+ type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.FREE_DELIVERY;
131
+ } | {
132
+ type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.COUPON;
133
+ maxDiscountPerOrder?: number | null | undefined;
134
+ percentage?: number | undefined;
135
+ } | undefined;
193
136
  }[][];
194
137
  metadata?: {
195
138
  page: number;
@@ -210,71 +153,39 @@ export declare const tournamentRouter: import("@trpc/server").TRPCBuiltRouter<{
210
153
  success: boolean;
211
154
  data?: {
212
155
  status: import("@lyxa.ai/core/dist/utilities/enum").Status;
213
- _id: string | import("mongoose").Types.ObjectId;
214
- tag: string;
156
+ name: string;
157
+ _id?: string | import("mongoose").Types.ObjectId | undefined;
215
158
  createdAt?: Date | null | undefined;
216
159
  startDate?: Date | null | undefined;
217
160
  endDate?: Date | null | undefined;
218
161
  updatedAt?: Date | null | undefined;
219
- matches?: {
220
- _id: string | import("mongoose").Types.ObjectId;
221
- team1: {
222
- name: string;
223
- teamId: string | import("mongoose").Types.ObjectId;
224
- };
225
- team2: {
226
- name: string;
227
- teamId: string | import("mongoose").Types.ObjectId;
228
- };
229
- score: {
230
- team1: number | null;
231
- team2: number | null;
232
- };
233
- stage: string;
234
- endDate?: Date | null | undefined;
235
- startingDate?: Date | null | undefined;
236
- additionalTag?: string | undefined;
237
- winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
238
- }[] | undefined;
239
- teams?: {
240
- name: string;
241
- _id: string | import("mongoose").Types.ObjectId;
242
- picture?: string | null | undefined;
243
- }[] | undefined;
162
+ tag?: import("./tournament.types").TournamentTag | undefined;
163
+ reward?: {
164
+ type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.FREE_DELIVERY;
165
+ } | {
166
+ type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.COUPON;
167
+ maxDiscountPerOrder?: number | null | undefined;
168
+ couponNamePrefix?: string | undefined;
169
+ percentage?: number | undefined;
170
+ } | undefined;
244
171
  } | {
245
172
  documents: {
246
173
  status: import("@lyxa.ai/core/dist/utilities/enum").Status;
247
- _id: string | import("mongoose").Types.ObjectId;
248
- tag: string;
174
+ name: string;
175
+ _id?: string | import("mongoose").Types.ObjectId | undefined;
249
176
  createdAt?: Date | null | undefined;
250
177
  startDate?: Date | null | undefined;
251
178
  endDate?: Date | null | undefined;
252
179
  updatedAt?: Date | null | undefined;
253
- matches?: {
254
- _id: string | import("mongoose").Types.ObjectId;
255
- team1: {
256
- name: string;
257
- teamId: string | import("mongoose").Types.ObjectId;
258
- };
259
- team2: {
260
- name: string;
261
- teamId: string | import("mongoose").Types.ObjectId;
262
- };
263
- score: {
264
- team1: number | null;
265
- team2: number | null;
266
- };
267
- stage: string;
268
- endDate?: Date | null | undefined;
269
- startingDate?: Date | null | undefined;
270
- additionalTag?: string | undefined;
271
- winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
272
- }[] | undefined;
273
- teams?: {
274
- name: string;
275
- _id: string | import("mongoose").Types.ObjectId;
276
- picture?: string | null | undefined;
277
- }[] | undefined;
180
+ tag?: import("./tournament.types").TournamentTag | undefined;
181
+ reward?: {
182
+ type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.FREE_DELIVERY;
183
+ } | {
184
+ type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.COUPON;
185
+ maxDiscountPerOrder?: number | null | undefined;
186
+ couponNamePrefix?: string | undefined;
187
+ percentage?: number | undefined;
188
+ } | undefined;
278
189
  }[];
279
190
  metadata?: {
280
191
  page: number;
@@ -290,80 +201,57 @@ export declare const tournamentRouter: import("@trpc/server").TRPCBuiltRouter<{
290
201
  input: {
291
202
  _id: string | import("mongoose").Types.ObjectId;
292
203
  status?: import("@lyxa.ai/core/dist/utilities/enum").Status | undefined;
204
+ name?: string | undefined;
293
205
  startDate?: string | Date | undefined;
294
206
  endDate?: string | Date | undefined;
295
- tag?: string | undefined;
207
+ tag?: import("./tournament.types").TournamentTag | undefined;
208
+ reward?: {
209
+ type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.FREE_DELIVERY;
210
+ } | {
211
+ type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.COUPON;
212
+ couponNamePrefix: string;
213
+ percentage: number;
214
+ maxDiscountPerOrder?: number | null | undefined;
215
+ } | undefined;
296
216
  };
297
217
  output: {
298
218
  message: string;
299
219
  success: boolean;
300
220
  data?: {
301
221
  status: import("@lyxa.ai/core/dist/utilities/enum").Status;
302
- _id: string | import("mongoose").Types.ObjectId;
303
- tag: string;
222
+ name: string;
223
+ _id?: string | import("mongoose").Types.ObjectId | undefined;
304
224
  createdAt?: Date | null | undefined;
305
225
  startDate?: Date | null | undefined;
306
226
  endDate?: Date | null | undefined;
307
227
  updatedAt?: Date | null | undefined;
308
- matches?: {
309
- _id: string | import("mongoose").Types.ObjectId;
310
- team1: {
311
- name: string;
312
- teamId: string | import("mongoose").Types.ObjectId;
313
- };
314
- team2: {
315
- name: string;
316
- teamId: string | import("mongoose").Types.ObjectId;
317
- };
318
- score: {
319
- team1: number | null;
320
- team2: number | null;
321
- };
322
- stage: string;
323
- endDate?: Date | null | undefined;
324
- startingDate?: Date | null | undefined;
325
- additionalTag?: string | undefined;
326
- winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
327
- }[] | undefined;
328
- teams?: {
329
- name: string;
330
- _id: string | import("mongoose").Types.ObjectId;
331
- picture?: string | null | undefined;
332
- }[] | undefined;
228
+ tag?: import("./tournament.types").TournamentTag | undefined;
229
+ reward?: {
230
+ type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.FREE_DELIVERY;
231
+ } | {
232
+ type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.COUPON;
233
+ maxDiscountPerOrder?: number | null | undefined;
234
+ couponNamePrefix?: string | undefined;
235
+ percentage?: number | undefined;
236
+ } | undefined;
333
237
  } | {
334
238
  documents: {
335
239
  status: import("@lyxa.ai/core/dist/utilities/enum").Status;
336
- _id: string | import("mongoose").Types.ObjectId;
337
- tag: string;
240
+ name: string;
241
+ _id?: string | import("mongoose").Types.ObjectId | undefined;
338
242
  createdAt?: Date | null | undefined;
339
243
  startDate?: Date | null | undefined;
340
244
  endDate?: Date | null | undefined;
341
245
  updatedAt?: Date | null | undefined;
342
- matches?: {
343
- _id: string | import("mongoose").Types.ObjectId;
344
- team1: {
345
- name: string;
346
- teamId: string | import("mongoose").Types.ObjectId;
347
- };
348
- team2: {
349
- name: string;
350
- teamId: string | import("mongoose").Types.ObjectId;
351
- };
352
- score: {
353
- team1: number | null;
354
- team2: number | null;
355
- };
356
- stage: string;
357
- endDate?: Date | null | undefined;
358
- startingDate?: Date | null | undefined;
359
- additionalTag?: string | undefined;
360
- winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
361
- }[] | undefined;
362
- teams?: {
363
- name: string;
364
- _id: string | import("mongoose").Types.ObjectId;
365
- picture?: string | null | undefined;
366
- }[] | undefined;
246
+ tag?: import("./tournament.types").TournamentTag | undefined;
247
+ reward?: {
248
+ type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.FREE_DELIVERY;
249
+ } | {
250
+ type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.COUPON;
251
+ maxDiscountPerOrder?: number | null | undefined;
252
+ couponNamePrefix?: string | undefined;
253
+ percentage?: number | undefined;
254
+ } | undefined;
367
255
  }[];
368
256
  metadata?: {
369
257
  page: number;
@@ -405,71 +293,39 @@ export declare const tournamentRouter: import("@trpc/server").TRPCBuiltRouter<{
405
293
  success: boolean;
406
294
  data?: {
407
295
  status: import("@lyxa.ai/core/dist/utilities/enum").Status;
408
- _id: string | import("mongoose").Types.ObjectId;
409
- tag: string;
296
+ name: string;
297
+ _id?: string | import("mongoose").Types.ObjectId | undefined;
410
298
  createdAt?: Date | null | undefined;
411
299
  startDate?: Date | null | undefined;
412
300
  endDate?: Date | null | undefined;
413
301
  updatedAt?: Date | null | undefined;
414
- matches?: {
415
- _id: string | import("mongoose").Types.ObjectId;
416
- team1: {
417
- name: string;
418
- teamId: string | import("mongoose").Types.ObjectId;
419
- };
420
- team2: {
421
- name: string;
422
- teamId: string | import("mongoose").Types.ObjectId;
423
- };
424
- score: {
425
- team1: number | null;
426
- team2: number | null;
427
- };
428
- stage: string;
429
- endDate?: Date | null | undefined;
430
- startingDate?: Date | null | undefined;
431
- additionalTag?: string | undefined;
432
- winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
433
- }[] | undefined;
434
- teams?: {
435
- name: string;
436
- _id: string | import("mongoose").Types.ObjectId;
437
- picture?: string | null | undefined;
438
- }[] | undefined;
302
+ tag?: import("./tournament.types").TournamentTag | undefined;
303
+ reward?: {
304
+ type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.FREE_DELIVERY;
305
+ } | {
306
+ type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.COUPON;
307
+ maxDiscountPerOrder?: number | null | undefined;
308
+ couponNamePrefix?: string | undefined;
309
+ percentage?: number | undefined;
310
+ } | undefined;
439
311
  } | {
440
312
  documents: {
441
313
  status: import("@lyxa.ai/core/dist/utilities/enum").Status;
442
- _id: string | import("mongoose").Types.ObjectId;
443
- tag: string;
314
+ name: string;
315
+ _id?: string | import("mongoose").Types.ObjectId | undefined;
444
316
  createdAt?: Date | null | undefined;
445
317
  startDate?: Date | null | undefined;
446
318
  endDate?: Date | null | undefined;
447
319
  updatedAt?: Date | null | undefined;
448
- matches?: {
449
- _id: string | import("mongoose").Types.ObjectId;
450
- team1: {
451
- name: string;
452
- teamId: string | import("mongoose").Types.ObjectId;
453
- };
454
- team2: {
455
- name: string;
456
- teamId: string | import("mongoose").Types.ObjectId;
457
- };
458
- score: {
459
- team1: number | null;
460
- team2: number | null;
461
- };
462
- stage: string;
463
- endDate?: Date | null | undefined;
464
- startingDate?: Date | null | undefined;
465
- additionalTag?: string | undefined;
466
- winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
467
- }[] | undefined;
468
- teams?: {
469
- name: string;
470
- _id: string | import("mongoose").Types.ObjectId;
471
- picture?: string | null | undefined;
472
- }[] | undefined;
320
+ tag?: import("./tournament.types").TournamentTag | undefined;
321
+ reward?: {
322
+ type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.FREE_DELIVERY;
323
+ } | {
324
+ type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.COUPON;
325
+ maxDiscountPerOrder?: number | null | undefined;
326
+ couponNamePrefix?: string | undefined;
327
+ percentage?: number | undefined;
328
+ } | undefined;
473
329
  }[];
474
330
  metadata?: {
475
331
  page: number;
@@ -524,8 +380,8 @@ export declare const tournamentRouter: import("@trpc/server").TRPCBuiltRouter<{
524
380
  }>;
525
381
  getMatches: import("@trpc/server").TRPCQueryProcedure<{
526
382
  input: {
527
- filter: "completed" | "upcoming";
528
383
  tournamentId: string | import("mongoose").Types.ObjectId;
384
+ filter?: import("./tournament.types").MatchStatus | undefined;
529
385
  };
530
386
  output: {
531
387
  message: string;
@@ -539,10 +395,12 @@ export declare const tournamentRouter: import("@trpc/server").TRPCBuiltRouter<{
539
395
  team1: {
540
396
  name: string;
541
397
  teamId: string | import("mongoose").Types.ObjectId;
398
+ picture?: string | undefined;
542
399
  };
543
400
  team2: {
544
401
  name: string;
545
402
  teamId: string | import("mongoose").Types.ObjectId;
403
+ picture?: string | undefined;
546
404
  };
547
405
  score: {
548
406
  team1: number | null;
@@ -557,10 +415,11 @@ export declare const tournamentRouter: import("@trpc/server").TRPCBuiltRouter<{
557
415
  succeeded: boolean | null;
558
416
  } | null;
559
417
  canPredict: boolean;
418
+ matchStatus: import("./tournament.types").MatchStatus;
560
419
  endDate?: Date | null | undefined;
561
- startingDate?: Date | null | undefined;
562
420
  additionalTag?: string | undefined;
563
421
  winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
422
+ startingDate?: Date | null | undefined;
564
423
  }[];
565
424
  startDate?: Date | null | undefined;
566
425
  endDate?: Date | null | undefined;
@@ -574,10 +433,12 @@ export declare const tournamentRouter: import("@trpc/server").TRPCBuiltRouter<{
574
433
  team1: {
575
434
  name: string;
576
435
  teamId: string | import("mongoose").Types.ObjectId;
436
+ picture?: string | undefined;
577
437
  };
578
438
  team2: {
579
439
  name: string;
580
440
  teamId: string | import("mongoose").Types.ObjectId;
441
+ picture?: string | undefined;
581
442
  };
582
443
  score: {
583
444
  team1: number | null;
@@ -592,10 +453,11 @@ export declare const tournamentRouter: import("@trpc/server").TRPCBuiltRouter<{
592
453
  succeeded: boolean | null;
593
454
  } | null;
594
455
  canPredict: boolean;
456
+ matchStatus: import("./tournament.types").MatchStatus;
595
457
  endDate?: Date | null | undefined;
596
- startingDate?: Date | null | undefined;
597
458
  additionalTag?: string | undefined;
598
459
  winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
460
+ startingDate?: Date | null | undefined;
599
461
  }[];
600
462
  startDate?: Date | null | undefined;
601
463
  endDate?: Date | null | undefined;
@@ -632,9 +494,9 @@ export declare const tournamentRouter: import("@trpc/server").TRPCBuiltRouter<{
632
494
  tournamentId: string | import("mongoose").Types.ObjectId;
633
495
  matches: {
634
496
  stage: string;
497
+ startingDate: string | Date;
635
498
  team1Id: string | import("mongoose").Types.ObjectId;
636
499
  team2Id: string | import("mongoose").Types.ObjectId;
637
- startingDate: string | Date;
638
500
  endDate?: string | Date | undefined;
639
501
  additionalTag?: string | undefined;
640
502
  }[];
@@ -644,71 +506,39 @@ export declare const tournamentRouter: import("@trpc/server").TRPCBuiltRouter<{
644
506
  success: boolean;
645
507
  data?: {
646
508
  status: import("@lyxa.ai/core/dist/utilities/enum").Status;
647
- _id: string | import("mongoose").Types.ObjectId;
648
- tag: string;
509
+ name: string;
510
+ _id?: string | import("mongoose").Types.ObjectId | undefined;
649
511
  createdAt?: Date | null | undefined;
650
512
  startDate?: Date | null | undefined;
651
513
  endDate?: Date | null | undefined;
652
514
  updatedAt?: Date | null | undefined;
653
- matches?: {
654
- _id: string | import("mongoose").Types.ObjectId;
655
- team1: {
656
- name: string;
657
- teamId: string | import("mongoose").Types.ObjectId;
658
- };
659
- team2: {
660
- name: string;
661
- teamId: string | import("mongoose").Types.ObjectId;
662
- };
663
- score: {
664
- team1: number | null;
665
- team2: number | null;
666
- };
667
- stage: string;
668
- endDate?: Date | null | undefined;
669
- startingDate?: Date | null | undefined;
670
- additionalTag?: string | undefined;
671
- winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
672
- }[] | undefined;
673
- teams?: {
674
- name: string;
675
- _id: string | import("mongoose").Types.ObjectId;
676
- picture?: string | null | undefined;
677
- }[] | undefined;
515
+ tag?: import("./tournament.types").TournamentTag | undefined;
516
+ reward?: {
517
+ type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.FREE_DELIVERY;
518
+ } | {
519
+ type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.COUPON;
520
+ maxDiscountPerOrder?: number | null | undefined;
521
+ couponNamePrefix?: string | undefined;
522
+ percentage?: number | undefined;
523
+ } | undefined;
678
524
  } | {
679
525
  documents: {
680
526
  status: import("@lyxa.ai/core/dist/utilities/enum").Status;
681
- _id: string | import("mongoose").Types.ObjectId;
682
- tag: string;
527
+ name: string;
528
+ _id?: string | import("mongoose").Types.ObjectId | undefined;
683
529
  createdAt?: Date | null | undefined;
684
530
  startDate?: Date | null | undefined;
685
531
  endDate?: Date | null | undefined;
686
532
  updatedAt?: Date | null | undefined;
687
- matches?: {
688
- _id: string | import("mongoose").Types.ObjectId;
689
- team1: {
690
- name: string;
691
- teamId: string | import("mongoose").Types.ObjectId;
692
- };
693
- team2: {
694
- name: string;
695
- teamId: string | import("mongoose").Types.ObjectId;
696
- };
697
- score: {
698
- team1: number | null;
699
- team2: number | null;
700
- };
701
- stage: string;
702
- endDate?: Date | null | undefined;
703
- startingDate?: Date | null | undefined;
704
- additionalTag?: string | undefined;
705
- winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
706
- }[] | undefined;
707
- teams?: {
708
- name: string;
709
- _id: string | import("mongoose").Types.ObjectId;
710
- picture?: string | null | undefined;
711
- }[] | undefined;
533
+ tag?: import("./tournament.types").TournamentTag | undefined;
534
+ reward?: {
535
+ type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.FREE_DELIVERY;
536
+ } | {
537
+ type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.COUPON;
538
+ maxDiscountPerOrder?: number | null | undefined;
539
+ couponNamePrefix?: string | undefined;
540
+ percentage?: number | undefined;
541
+ } | undefined;
712
542
  }[];
713
543
  metadata?: {
714
544
  page: number;
@@ -732,10 +562,12 @@ export declare const tournamentRouter: import("@trpc/server").TRPCBuiltRouter<{
732
562
  team1: {
733
563
  name: string;
734
564
  teamId: string | import("mongoose").Types.ObjectId;
565
+ picture?: string | undefined;
735
566
  };
736
567
  team2: {
737
568
  name: string;
738
569
  teamId: string | import("mongoose").Types.ObjectId;
570
+ picture?: string | undefined;
739
571
  };
740
572
  score: {
741
573
  team1: number | null;
@@ -743,9 +575,9 @@ export declare const tournamentRouter: import("@trpc/server").TRPCBuiltRouter<{
743
575
  };
744
576
  stage: string;
745
577
  endDate?: Date | null | undefined;
746
- startingDate?: Date | null | undefined;
747
578
  additionalTag?: string | undefined;
748
579
  winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
580
+ startingDate?: Date | null | undefined;
749
581
  prediction?: {
750
582
  score: {
751
583
  team1: number | null;
@@ -759,10 +591,12 @@ export declare const tournamentRouter: import("@trpc/server").TRPCBuiltRouter<{
759
591
  team1: {
760
592
  name: string;
761
593
  teamId: string | import("mongoose").Types.ObjectId;
594
+ picture?: string | undefined;
762
595
  };
763
596
  team2: {
764
597
  name: string;
765
598
  teamId: string | import("mongoose").Types.ObjectId;
599
+ picture?: string | undefined;
766
600
  };
767
601
  score: {
768
602
  team1: number | null;
@@ -770,9 +604,9 @@ export declare const tournamentRouter: import("@trpc/server").TRPCBuiltRouter<{
770
604
  };
771
605
  stage: string;
772
606
  endDate?: Date | null | undefined;
773
- startingDate?: Date | null | undefined;
774
607
  additionalTag?: string | undefined;
775
608
  winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
609
+ startingDate?: Date | null | undefined;
776
610
  prediction?: {
777
611
  score: {
778
612
  team1: number | null;
@@ -804,10 +638,12 @@ export declare const tournamentRouter: import("@trpc/server").TRPCBuiltRouter<{
804
638
  team1: {
805
639
  name: string;
806
640
  teamId: string | import("mongoose").Types.ObjectId;
641
+ picture?: string | undefined;
807
642
  };
808
643
  team2: {
809
644
  name: string;
810
645
  teamId: string | import("mongoose").Types.ObjectId;
646
+ picture?: string | undefined;
811
647
  };
812
648
  score: {
813
649
  team1: number | null;
@@ -815,84 +651,9 @@ export declare const tournamentRouter: import("@trpc/server").TRPCBuiltRouter<{
815
651
  };
816
652
  stage: string;
817
653
  endDate?: Date | null | undefined;
818
- startingDate?: Date | null | undefined;
819
654
  additionalTag?: string | undefined;
820
655
  winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
821
- prediction?: {
822
- score: {
823
- team1: number | null;
824
- team2: number | null;
825
- };
826
- succeeded?: boolean | null | undefined;
827
- } | null | undefined;
828
- } | {
829
- documents: {
830
- _id: string | import("mongoose").Types.ObjectId;
831
- team1: {
832
- name: string;
833
- teamId: string | import("mongoose").Types.ObjectId;
834
- };
835
- team2: {
836
- name: string;
837
- teamId: string | import("mongoose").Types.ObjectId;
838
- };
839
- score: {
840
- team1: number | null;
841
- team2: number | null;
842
- };
843
- stage: string;
844
- endDate?: Date | null | undefined;
845
- startingDate?: Date | null | undefined;
846
- additionalTag?: string | undefined;
847
- winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
848
- prediction?: {
849
- score: {
850
- team1: number | null;
851
- team2: number | null;
852
- };
853
- succeeded?: boolean | null | undefined;
854
- } | null | undefined;
855
- }[];
856
- metadata?: {
857
- page: number;
858
- size: number;
859
- totalElements: number;
860
- totalPages: number;
861
- } | undefined;
862
- } | undefined;
863
- };
864
- meta: object;
865
- }>;
866
- updateScore: import("@trpc/server").TRPCMutationProcedure<{
867
- input: {
868
- tournamentId: string | import("mongoose").Types.ObjectId;
869
- matchId: string | import("mongoose").Types.ObjectId;
870
- team1Score: number;
871
- team2Score: number;
872
- winnerId?: string | import("mongoose").Types.ObjectId | undefined;
873
- };
874
- output: {
875
- message: string;
876
- success: boolean;
877
- data?: {
878
- _id: string | import("mongoose").Types.ObjectId;
879
- team1: {
880
- name: string;
881
- teamId: string | import("mongoose").Types.ObjectId;
882
- };
883
- team2: {
884
- name: string;
885
- teamId: string | import("mongoose").Types.ObjectId;
886
- };
887
- score: {
888
- team1: number | null;
889
- team2: number | null;
890
- };
891
- stage: string;
892
- endDate?: Date | null | undefined;
893
656
  startingDate?: Date | null | undefined;
894
- additionalTag?: string | undefined;
895
- winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
896
657
  prediction?: {
897
658
  score: {
898
659
  team1: number | null;
@@ -906,10 +667,12 @@ export declare const tournamentRouter: import("@trpc/server").TRPCBuiltRouter<{
906
667
  team1: {
907
668
  name: string;
908
669
  teamId: string | import("mongoose").Types.ObjectId;
670
+ picture?: string | undefined;
909
671
  };
910
672
  team2: {
911
673
  name: string;
912
674
  teamId: string | import("mongoose").Types.ObjectId;
675
+ picture?: string | undefined;
913
676
  };
914
677
  score: {
915
678
  team1: number | null;
@@ -917,9 +680,9 @@ export declare const tournamentRouter: import("@trpc/server").TRPCBuiltRouter<{
917
680
  };
918
681
  stage: string;
919
682
  endDate?: Date | null | undefined;
920
- startingDate?: Date | null | undefined;
921
683
  additionalTag?: string | undefined;
922
684
  winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
685
+ startingDate?: Date | null | undefined;
923
686
  prediction?: {
924
687
  score: {
925
688
  team1: number | null;
@@ -942,8 +705,10 @@ export declare const tournamentRouter: import("@trpc/server").TRPCBuiltRouter<{
942
705
  input: {
943
706
  tournamentId: string | import("mongoose").Types.ObjectId;
944
707
  matchId: string | import("mongoose").Types.ObjectId;
945
- endDate?: string | Date | undefined;
946
- winnerId?: string | import("mongoose").Types.ObjectId | undefined;
708
+ finalScore?: {
709
+ team1: number;
710
+ team2: number;
711
+ } | undefined;
947
712
  };
948
713
  output: {
949
714
  message: string;
@@ -953,10 +718,12 @@ export declare const tournamentRouter: import("@trpc/server").TRPCBuiltRouter<{
953
718
  team1: {
954
719
  name: string;
955
720
  teamId: string | import("mongoose").Types.ObjectId;
721
+ picture?: string | undefined;
956
722
  };
957
723
  team2: {
958
724
  name: string;
959
725
  teamId: string | import("mongoose").Types.ObjectId;
726
+ picture?: string | undefined;
960
727
  };
961
728
  score: {
962
729
  team1: number | null;
@@ -964,9 +731,9 @@ export declare const tournamentRouter: import("@trpc/server").TRPCBuiltRouter<{
964
731
  };
965
732
  stage: string;
966
733
  endDate?: Date | null | undefined;
967
- startingDate?: Date | null | undefined;
968
734
  additionalTag?: string | undefined;
969
735
  winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
736
+ startingDate?: Date | null | undefined;
970
737
  prediction?: {
971
738
  score: {
972
739
  team1: number | null;
@@ -980,10 +747,12 @@ export declare const tournamentRouter: import("@trpc/server").TRPCBuiltRouter<{
980
747
  team1: {
981
748
  name: string;
982
749
  teamId: string | import("mongoose").Types.ObjectId;
750
+ picture?: string | undefined;
983
751
  };
984
752
  team2: {
985
753
  name: string;
986
754
  teamId: string | import("mongoose").Types.ObjectId;
755
+ picture?: string | undefined;
987
756
  };
988
757
  score: {
989
758
  team1: number | null;
@@ -991,9 +760,9 @@ export declare const tournamentRouter: import("@trpc/server").TRPCBuiltRouter<{
991
760
  };
992
761
  stage: string;
993
762
  endDate?: Date | null | undefined;
994
- startingDate?: Date | null | undefined;
995
763
  additionalTag?: string | undefined;
996
764
  winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
765
+ startingDate?: Date | null | undefined;
997
766
  prediction?: {
998
767
  score: {
999
768
  team1: number | null;
@@ -1012,81 +781,49 @@ export declare const tournamentRouter: import("@trpc/server").TRPCBuiltRouter<{
1012
781
  };
1013
782
  meta: object;
1014
783
  }>;
1015
- delete: import("@trpc/server").TRPCMutationProcedure<{
1016
- input: {
1017
- tournamentId: string | import("mongoose").Types.ObjectId;
1018
- matchId: string | import("mongoose").Types.ObjectId;
1019
- };
1020
- output: {
1021
- message: string;
1022
- success: boolean;
1023
- data?: {
1024
- status: import("@lyxa.ai/core/dist/utilities/enum").Status;
1025
- _id: string | import("mongoose").Types.ObjectId;
1026
- tag: string;
1027
- createdAt?: Date | null | undefined;
1028
- startDate?: Date | null | undefined;
1029
- endDate?: Date | null | undefined;
1030
- updatedAt?: Date | null | undefined;
1031
- matches?: {
1032
- _id: string | import("mongoose").Types.ObjectId;
1033
- team1: {
1034
- name: string;
1035
- teamId: string | import("mongoose").Types.ObjectId;
1036
- };
1037
- team2: {
1038
- name: string;
1039
- teamId: string | import("mongoose").Types.ObjectId;
1040
- };
1041
- score: {
1042
- team1: number | null;
1043
- team2: number | null;
1044
- };
1045
- stage: string;
1046
- endDate?: Date | null | undefined;
1047
- startingDate?: Date | null | undefined;
1048
- additionalTag?: string | undefined;
1049
- winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
1050
- }[] | undefined;
1051
- teams?: {
1052
- name: string;
1053
- _id: string | import("mongoose").Types.ObjectId;
1054
- picture?: string | null | undefined;
1055
- }[] | undefined;
784
+ delete: import("@trpc/server").TRPCMutationProcedure<{
785
+ input: {
786
+ tournamentId: string | import("mongoose").Types.ObjectId;
787
+ matchId: string | import("mongoose").Types.ObjectId;
788
+ };
789
+ output: {
790
+ message: string;
791
+ success: boolean;
792
+ data?: {
793
+ status: import("@lyxa.ai/core/dist/utilities/enum").Status;
794
+ name: string;
795
+ _id?: string | import("mongoose").Types.ObjectId | undefined;
796
+ createdAt?: Date | null | undefined;
797
+ startDate?: Date | null | undefined;
798
+ endDate?: Date | null | undefined;
799
+ updatedAt?: Date | null | undefined;
800
+ tag?: import("./tournament.types").TournamentTag | undefined;
801
+ reward?: {
802
+ type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.FREE_DELIVERY;
803
+ } | {
804
+ type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.COUPON;
805
+ maxDiscountPerOrder?: number | null | undefined;
806
+ couponNamePrefix?: string | undefined;
807
+ percentage?: number | undefined;
808
+ } | undefined;
1056
809
  } | {
1057
810
  documents: {
1058
811
  status: import("@lyxa.ai/core/dist/utilities/enum").Status;
1059
- _id: string | import("mongoose").Types.ObjectId;
1060
- tag: string;
812
+ name: string;
813
+ _id?: string | import("mongoose").Types.ObjectId | undefined;
1061
814
  createdAt?: Date | null | undefined;
1062
815
  startDate?: Date | null | undefined;
1063
816
  endDate?: Date | null | undefined;
1064
817
  updatedAt?: Date | null | undefined;
1065
- matches?: {
1066
- _id: string | import("mongoose").Types.ObjectId;
1067
- team1: {
1068
- name: string;
1069
- teamId: string | import("mongoose").Types.ObjectId;
1070
- };
1071
- team2: {
1072
- name: string;
1073
- teamId: string | import("mongoose").Types.ObjectId;
1074
- };
1075
- score: {
1076
- team1: number | null;
1077
- team2: number | null;
1078
- };
1079
- stage: string;
1080
- endDate?: Date | null | undefined;
1081
- startingDate?: Date | null | undefined;
1082
- additionalTag?: string | undefined;
1083
- winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
1084
- }[] | undefined;
1085
- teams?: {
1086
- name: string;
1087
- _id: string | import("mongoose").Types.ObjectId;
1088
- picture?: string | null | undefined;
1089
- }[] | undefined;
818
+ tag?: import("./tournament.types").TournamentTag | undefined;
819
+ reward?: {
820
+ type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.FREE_DELIVERY;
821
+ } | {
822
+ type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.COUPON;
823
+ maxDiscountPerOrder?: number | null | undefined;
824
+ couponNamePrefix?: string | undefined;
825
+ percentage?: number | undefined;
826
+ } | undefined;
1090
827
  }[];
1091
828
  metadata?: {
1092
829
  page: number;
@@ -1117,22 +854,22 @@ export declare const tournamentRouter: import("@trpc/server").TRPCBuiltRouter<{
1117
854
  }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
1118
855
  join: import("@trpc/server").TRPCMutationProcedure<{
1119
856
  input: {
1120
- teamId: string | import("mongoose").Types.ObjectId;
1121
857
  tournamentId: string | import("mongoose").Types.ObjectId;
858
+ teamId: string | import("mongoose").Types.ObjectId;
1122
859
  };
1123
860
  output: {
1124
861
  message: string;
1125
862
  success: boolean;
1126
863
  data?: {
1127
864
  _id: string | import("mongoose").Types.ObjectId;
1128
- teamId: string | import("mongoose").Types.ObjectId;
1129
865
  tournamentId: string | import("mongoose").Types.ObjectId;
866
+ teamId: string | import("mongoose").Types.ObjectId;
1130
867
  createdAt?: Date | null | undefined;
1131
868
  } | {
1132
869
  documents: {
1133
870
  _id: string | import("mongoose").Types.ObjectId;
1134
- teamId: string | import("mongoose").Types.ObjectId;
1135
871
  tournamentId: string | import("mongoose").Types.ObjectId;
872
+ teamId: string | import("mongoose").Types.ObjectId;
1136
873
  createdAt?: Date | null | undefined;
1137
874
  }[];
1138
875
  metadata?: {
@@ -1155,39 +892,39 @@ export declare const tournamentRouter: import("@trpc/server").TRPCBuiltRouter<{
1155
892
  data?: {
1156
893
  _id: string | import("mongoose").Types.ObjectId;
1157
894
  userId: string | import("mongoose").Types.ObjectId;
1158
- teamId: string | import("mongoose").Types.ObjectId;
1159
895
  tournamentId: string | import("mongoose").Types.ObjectId;
896
+ teamId: string | import("mongoose").Types.ObjectId;
1160
897
  createdAt?: Date | null | undefined;
1161
898
  updatedAt?: Date | null | undefined;
1162
899
  predictions?: {
1163
900
  _id: string | import("mongoose").Types.ObjectId;
901
+ matchId: string | import("mongoose").Types.ObjectId;
1164
902
  score: {
1165
903
  team1: number | null;
1166
904
  team2: number | null;
1167
905
  };
1168
- matchId: string | import("mongoose").Types.ObjectId;
1169
906
  coupon?: string | import("mongoose").Types.ObjectId | undefined;
1170
- succeeded?: boolean | null | undefined;
1171
907
  predictionTime?: Date | null | undefined;
908
+ succeeded?: boolean | null | undefined;
1172
909
  }[] | undefined;
1173
910
  }[] | {
1174
911
  documents: {
1175
912
  _id: string | import("mongoose").Types.ObjectId;
1176
913
  userId: string | import("mongoose").Types.ObjectId;
1177
- teamId: string | import("mongoose").Types.ObjectId;
1178
914
  tournamentId: string | import("mongoose").Types.ObjectId;
915
+ teamId: string | import("mongoose").Types.ObjectId;
1179
916
  createdAt?: Date | null | undefined;
1180
917
  updatedAt?: Date | null | undefined;
1181
918
  predictions?: {
1182
919
  _id: string | import("mongoose").Types.ObjectId;
920
+ matchId: string | import("mongoose").Types.ObjectId;
1183
921
  score: {
1184
922
  team1: number | null;
1185
923
  team2: number | null;
1186
924
  };
1187
- matchId: string | import("mongoose").Types.ObjectId;
1188
925
  coupon?: string | import("mongoose").Types.ObjectId | undefined;
1189
- succeeded?: boolean | null | undefined;
1190
926
  predictionTime?: Date | null | undefined;
927
+ succeeded?: boolean | null | undefined;
1191
928
  }[] | undefined;
1192
929
  }[][];
1193
930
  metadata?: {
@@ -1219,31 +956,31 @@ export declare const tournamentRouter: import("@trpc/server").TRPCBuiltRouter<{
1219
956
  }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
1220
957
  create: import("@trpc/server").TRPCMutationProcedure<{
1221
958
  input: {
959
+ tournamentId: string | import("mongoose").Types.ObjectId;
960
+ matchId: string | import("mongoose").Types.ObjectId;
1222
961
  score: {
1223
962
  team1: number;
1224
963
  team2: number;
1225
964
  };
1226
- tournamentId: string | import("mongoose").Types.ObjectId;
1227
- matchId: string | import("mongoose").Types.ObjectId;
1228
965
  };
1229
966
  output: {
1230
967
  message: string;
1231
968
  success: boolean;
1232
969
  data?: {
1233
970
  _id: string | import("mongoose").Types.ObjectId;
971
+ matchId: string | import("mongoose").Types.ObjectId;
1234
972
  score: {
1235
973
  team1: number | null;
1236
974
  team2: number | null;
1237
975
  };
1238
- matchId: string | import("mongoose").Types.ObjectId;
1239
976
  } | {
1240
977
  documents: {
1241
978
  _id: string | import("mongoose").Types.ObjectId;
979
+ matchId: string | import("mongoose").Types.ObjectId;
1242
980
  score: {
1243
981
  team1: number | null;
1244
982
  team2: number | null;
1245
983
  };
1246
- matchId: string | import("mongoose").Types.ObjectId;
1247
984
  }[];
1248
985
  metadata?: {
1249
986
  page: number;
@@ -1257,31 +994,31 @@ export declare const tournamentRouter: import("@trpc/server").TRPCBuiltRouter<{
1257
994
  }>;
1258
995
  edit: import("@trpc/server").TRPCMutationProcedure<{
1259
996
  input: {
997
+ tournamentId: string | import("mongoose").Types.ObjectId;
998
+ matchId: string | import("mongoose").Types.ObjectId;
1260
999
  score: {
1261
1000
  team1: number;
1262
1001
  team2: number;
1263
1002
  };
1264
- tournamentId: string | import("mongoose").Types.ObjectId;
1265
- matchId: string | import("mongoose").Types.ObjectId;
1266
1003
  };
1267
1004
  output: {
1268
1005
  message: string;
1269
1006
  success: boolean;
1270
1007
  data?: {
1271
1008
  _id: string | import("mongoose").Types.ObjectId;
1009
+ matchId: string | import("mongoose").Types.ObjectId;
1272
1010
  score: {
1273
1011
  team1: number | null;
1274
1012
  team2: number | null;
1275
1013
  };
1276
- matchId: string | import("mongoose").Types.ObjectId;
1277
1014
  } | {
1278
1015
  documents: {
1279
1016
  _id: string | import("mongoose").Types.ObjectId;
1017
+ matchId: string | import("mongoose").Types.ObjectId;
1280
1018
  score: {
1281
1019
  team1: number | null;
1282
1020
  team2: number | null;
1283
1021
  };
1284
- matchId: string | import("mongoose").Types.ObjectId;
1285
1022
  }[];
1286
1023
  metadata?: {
1287
1024
  page: number;
@@ -1303,23 +1040,101 @@ export declare const tournamentRouter: import("@trpc/server").TRPCBuiltRouter<{
1303
1040
  success: boolean;
1304
1041
  data?: {
1305
1042
  _id: string | import("mongoose").Types.ObjectId;
1043
+ matchId: string | import("mongoose").Types.ObjectId;
1306
1044
  score: {
1307
1045
  team1: number | null;
1308
1046
  team2: number | null;
1309
1047
  };
1310
- matchId: string | import("mongoose").Types.ObjectId;
1311
- succeeded?: boolean | null | undefined;
1312
1048
  predictionTime?: Date | null | undefined;
1049
+ succeeded?: boolean | null | undefined;
1313
1050
  } | {
1314
1051
  documents: ({
1315
1052
  _id: string | import("mongoose").Types.ObjectId;
1053
+ matchId: string | import("mongoose").Types.ObjectId;
1316
1054
  score: {
1317
1055
  team1: number | null;
1318
1056
  team2: number | null;
1319
1057
  };
1320
- matchId: string | import("mongoose").Types.ObjectId;
1321
- succeeded?: boolean | null | undefined;
1322
1058
  predictionTime?: Date | null | undefined;
1059
+ succeeded?: boolean | null | undefined;
1060
+ } | null)[];
1061
+ metadata?: {
1062
+ page: number;
1063
+ size: number;
1064
+ totalElements: number;
1065
+ totalPages: number;
1066
+ } | undefined;
1067
+ } | null | undefined;
1068
+ };
1069
+ meta: object;
1070
+ }>;
1071
+ }>>;
1072
+ statistics: import("@trpc/server").TRPCBuiltRouter<{
1073
+ ctx: import("@lyxa.ai/core/dist/libraries/trpc/context").LyxaHTTPContext;
1074
+ meta: object;
1075
+ errorShape: {
1076
+ message: string;
1077
+ data: {
1078
+ stack: undefined;
1079
+ path: undefined;
1080
+ code: import("@trpc/server").TRPC_ERROR_CODE_KEY;
1081
+ httpStatus: number;
1082
+ };
1083
+ stack: undefined;
1084
+ code: import("@trpc/server").TRPC_ERROR_CODE_NUMBER;
1085
+ };
1086
+ transformer: false;
1087
+ }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
1088
+ getActiveByUser: import("@trpc/server").TRPCQueryProcedure<{
1089
+ input: {
1090
+ userId: string | import("mongoose").Types.ObjectId;
1091
+ };
1092
+ output: {
1093
+ message: string;
1094
+ success: boolean;
1095
+ data?: {
1096
+ name: string;
1097
+ joinedAt: Date | null;
1098
+ stats: {
1099
+ predictionsMade: number;
1100
+ correctPredictions: number;
1101
+ couponsWon: number;
1102
+ };
1103
+ matches: {
1104
+ date: string | null;
1105
+ coupon: string | null;
1106
+ id: string;
1107
+ result: "won" | "lost" | "pending" | null;
1108
+ teams: string;
1109
+ prediction: string | null;
1110
+ realScore: string | null;
1111
+ }[];
1112
+ selectedTeam: {
1113
+ name: string;
1114
+ flag: string | null;
1115
+ };
1116
+ } | {
1117
+ documents: ({
1118
+ name: string;
1119
+ joinedAt: Date | null;
1120
+ stats: {
1121
+ predictionsMade: number;
1122
+ correctPredictions: number;
1123
+ couponsWon: number;
1124
+ };
1125
+ matches: {
1126
+ date: string | null;
1127
+ coupon: string | null;
1128
+ id: string;
1129
+ result: "won" | "lost" | "pending" | null;
1130
+ teams: string;
1131
+ prediction: string | null;
1132
+ realScore: string | null;
1133
+ }[];
1134
+ selectedTeam: {
1135
+ name: string;
1136
+ flag: string | null;
1137
+ };
1323
1138
  } | null)[];
1324
1139
  metadata?: {
1325
1140
  page: number;
@@ -1332,5 +1147,155 @@ export declare const tournamentRouter: import("@trpc/server").TRPCBuiltRouter<{
1332
1147
  meta: object;
1333
1148
  }>;
1334
1149
  }>>;
1150
+ schedule: import("@trpc/server").TRPCBuiltRouter<{
1151
+ ctx: import("@lyxa.ai/core/dist/libraries/trpc/context").LyxaHTTPContext;
1152
+ meta: object;
1153
+ errorShape: {
1154
+ message: string;
1155
+ data: {
1156
+ stack: undefined;
1157
+ path: undefined;
1158
+ code: import("@trpc/server").TRPC_ERROR_CODE_KEY;
1159
+ httpStatus: number;
1160
+ };
1161
+ stack: undefined;
1162
+ code: import("@trpc/server").TRPC_ERROR_CODE_NUMBER;
1163
+ };
1164
+ transformer: false;
1165
+ }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
1166
+ dispatch: import("@trpc/server").TRPCMutationProcedure<{
1167
+ input: void;
1168
+ output: {
1169
+ success: boolean;
1170
+ message: string;
1171
+ data: null | undefined;
1172
+ };
1173
+ meta: object;
1174
+ }>;
1175
+ }>>;
1176
+ score: import("@trpc/server").TRPCBuiltRouter<{
1177
+ ctx: import("@lyxa.ai/core/dist/libraries/trpc/context").LyxaHTTPContext;
1178
+ meta: object;
1179
+ errorShape: {
1180
+ message: string;
1181
+ data: {
1182
+ stack: undefined;
1183
+ path: undefined;
1184
+ code: import("@trpc/server").TRPC_ERROR_CODE_KEY;
1185
+ httpStatus: number;
1186
+ };
1187
+ stack: undefined;
1188
+ code: import("@trpc/server").TRPC_ERROR_CODE_NUMBER;
1189
+ };
1190
+ transformer: false;
1191
+ }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
1192
+ updateMatchScore: import("@trpc/server").TRPCMutationProcedure<{
1193
+ input: {
1194
+ tournamentId: string | import("mongoose").Types.ObjectId;
1195
+ matchId: string | import("mongoose").Types.ObjectId;
1196
+ teams: {
1197
+ score: number;
1198
+ teamId: string | import("mongoose").Types.ObjectId;
1199
+ }[];
1200
+ };
1201
+ output: {
1202
+ message: string;
1203
+ success: boolean;
1204
+ data?: {
1205
+ _id: string | import("mongoose").Types.ObjectId;
1206
+ team1: {
1207
+ name: string;
1208
+ teamId: string | import("mongoose").Types.ObjectId;
1209
+ picture?: string | undefined;
1210
+ };
1211
+ team2: {
1212
+ name: string;
1213
+ teamId: string | import("mongoose").Types.ObjectId;
1214
+ picture?: string | undefined;
1215
+ };
1216
+ score: {
1217
+ team1: number | null;
1218
+ team2: number | null;
1219
+ };
1220
+ stage: string;
1221
+ endDate?: Date | null | undefined;
1222
+ additionalTag?: string | undefined;
1223
+ winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
1224
+ startingDate?: Date | null | undefined;
1225
+ prediction?: {
1226
+ score: {
1227
+ team1: number | null;
1228
+ team2: number | null;
1229
+ };
1230
+ succeeded?: boolean | null | undefined;
1231
+ } | null | undefined;
1232
+ } | {
1233
+ documents: {
1234
+ _id: string | import("mongoose").Types.ObjectId;
1235
+ team1: {
1236
+ name: string;
1237
+ teamId: string | import("mongoose").Types.ObjectId;
1238
+ picture?: string | undefined;
1239
+ };
1240
+ team2: {
1241
+ name: string;
1242
+ teamId: string | import("mongoose").Types.ObjectId;
1243
+ picture?: string | undefined;
1244
+ };
1245
+ score: {
1246
+ team1: number | null;
1247
+ team2: number | null;
1248
+ };
1249
+ stage: string;
1250
+ endDate?: Date | null | undefined;
1251
+ additionalTag?: string | undefined;
1252
+ winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
1253
+ startingDate?: Date | null | undefined;
1254
+ prediction?: {
1255
+ score: {
1256
+ team1: number | null;
1257
+ team2: number | null;
1258
+ };
1259
+ succeeded?: boolean | null | undefined;
1260
+ } | null | undefined;
1261
+ }[];
1262
+ metadata?: {
1263
+ page: number;
1264
+ size: number;
1265
+ totalElements: number;
1266
+ totalPages: number;
1267
+ } | undefined;
1268
+ } | undefined;
1269
+ };
1270
+ meta: object;
1271
+ }>;
1272
+ }>>;
1273
+ getActive: import("@trpc/server").TRPCQueryProcedure<{
1274
+ input: void;
1275
+ output: {
1276
+ message: string;
1277
+ success: boolean;
1278
+ data?: {
1279
+ name: string;
1280
+ tag: string;
1281
+ startDate?: Date | null | undefined;
1282
+ endDate?: Date | null | undefined;
1283
+ } | {
1284
+ documents: ({
1285
+ name: string;
1286
+ tag: string;
1287
+ startDate?: Date | null | undefined;
1288
+ endDate?: Date | null | undefined;
1289
+ } | null)[];
1290
+ metadata?: {
1291
+ page: number;
1292
+ size: number;
1293
+ totalElements: number;
1294
+ totalPages: number;
1295
+ } | undefined;
1296
+ } | null | undefined;
1297
+ };
1298
+ meta: object;
1299
+ }>;
1335
1300
  }>>;
1336
1301
  //# sourceMappingURL=tournament.router.d.ts.map