@lyxa.ai/marketing 1.0.46 → 1.0.48

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (341) hide show
  1. package/dist/lib/event/event-initializations.d.ts.map +1 -1
  2. package/dist/lib/event/event-initializations.js +2 -0
  3. package/dist/lib/event/event-initializations.js.map +1 -1
  4. package/dist/lib/index.d.ts +1414 -13
  5. package/dist/lib/index.d.ts.map +1 -1
  6. package/dist/lib/index.js +3 -1
  7. package/dist/lib/index.js.map +1 -1
  8. package/dist/lib/modules/coupon/routers/coupon.router.d.ts +72 -6
  9. package/dist/lib/modules/coupon/routers/coupon.router.d.ts.map +1 -1
  10. package/dist/lib/modules/coupon/routers/coupon.router.js +12 -3
  11. package/dist/lib/modules/coupon/routers/coupon.router.js.map +1 -1
  12. package/dist/lib/modules/coupon/services/coupon.service.d.ts +1 -0
  13. package/dist/lib/modules/coupon/services/coupon.service.d.ts.map +1 -1
  14. package/dist/lib/modules/coupon/services/coupon.service.js +102 -4
  15. package/dist/lib/modules/coupon/services/coupon.service.js.map +1 -1
  16. package/dist/lib/modules/coupon/services/custom-coupon.service.d.ts +2 -0
  17. package/dist/lib/modules/coupon/services/custom-coupon.service.d.ts.map +1 -1
  18. package/dist/lib/modules/coupon/services/custom-coupon.service.js +1 -1
  19. package/dist/lib/modules/coupon/services/custom-coupon.service.js.map +1 -1
  20. package/dist/lib/modules/coupon/services/global-coupon.service.d.ts +1 -1
  21. package/dist/lib/modules/coupon/services/global-coupon.service.d.ts.map +1 -1
  22. package/dist/lib/modules/coupon/services/global-coupon.service.js +16 -10
  23. package/dist/lib/modules/coupon/services/global-coupon.service.js.map +1 -1
  24. package/dist/lib/modules/coupon/services/helper.service.d.ts +2 -1
  25. package/dist/lib/modules/coupon/services/helper.service.d.ts.map +1 -1
  26. package/dist/lib/modules/coupon/services/helper.service.js +7 -1
  27. package/dist/lib/modules/coupon/services/helper.service.js.map +1 -1
  28. package/dist/lib/modules/coupon/services/individual-store-coupon.service.d.ts +2 -0
  29. package/dist/lib/modules/coupon/services/individual-store-coupon.service.d.ts.map +1 -1
  30. package/dist/lib/modules/coupon/services/individual-store-coupon.service.js +2 -2
  31. package/dist/lib/modules/coupon/services/individual-store-coupon.service.js.map +1 -1
  32. package/dist/lib/modules/coupon/services/individual-user-coupon.service.d.ts.map +1 -1
  33. package/dist/lib/modules/coupon/services/individual-user-coupon.service.js +6 -0
  34. package/dist/lib/modules/coupon/services/individual-user-coupon.service.js.map +1 -1
  35. package/dist/lib/modules/coupon/services/patterns/repository/CouponMetricsRepository.d.ts +10 -4
  36. package/dist/lib/modules/coupon/services/patterns/repository/CouponMetricsRepository.d.ts.map +1 -1
  37. package/dist/lib/modules/coupon/services/patterns/repository/CouponMetricsRepository.js +88 -9
  38. package/dist/lib/modules/coupon/services/patterns/repository/CouponMetricsRepository.js.map +1 -1
  39. package/dist/lib/modules/coupon/services/patterns/repository/CouponRepository.d.ts.map +1 -1
  40. package/dist/lib/modules/coupon/services/patterns/repository/CouponRepository.js +20 -1
  41. package/dist/lib/modules/coupon/services/patterns/repository/CouponRepository.js.map +1 -1
  42. package/dist/lib/modules/coupon/services/referral-code-coupon.service.d.ts.map +1 -1
  43. package/dist/lib/modules/coupon/services/referral-code-coupon.service.js +1 -1
  44. package/dist/lib/modules/coupon/services/referral-code-coupon.service.js.map +1 -1
  45. package/dist/lib/modules/coupon/services/referral-reward-coupon.service.d.ts +1 -1
  46. package/dist/lib/modules/coupon/services/referral-reward-coupon.service.d.ts.map +1 -1
  47. package/dist/lib/modules/coupon/services/referral-reward-coupon.service.js +36 -19
  48. package/dist/lib/modules/coupon/services/referral-reward-coupon.service.js.map +1 -1
  49. package/dist/lib/modules/coupon/services/shops-categories-coupon.service.d.ts +2 -0
  50. package/dist/lib/modules/coupon/services/shops-categories-coupon.service.d.ts.map +1 -1
  51. package/dist/lib/modules/coupon/services/shops-categories-coupon.service.js +2 -2
  52. package/dist/lib/modules/coupon/services/shops-categories-coupon.service.js.map +1 -1
  53. package/dist/lib/modules/coupon/validations/coupon.validation.d.ts +359 -34
  54. package/dist/lib/modules/coupon/validations/coupon.validation.d.ts.map +1 -1
  55. package/dist/lib/modules/coupon/validations/coupon.validation.js +16 -3
  56. package/dist/lib/modules/coupon/validations/coupon.validation.js.map +1 -1
  57. package/dist/lib/modules/limited-time-offer/limited-time-offer.router.d.ts +6 -6
  58. package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.router.d.ts +6 -6
  59. package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.validation.d.ts +30 -30
  60. package/dist/lib/modules/marketing/services/marketing.service.d.ts.map +1 -1
  61. package/dist/lib/modules/marketing/services/marketing.service.js +8 -2
  62. package/dist/lib/modules/marketing/services/marketing.service.js.map +1 -1
  63. package/dist/lib/modules/marketing/services/synchronize-product-marketing.service.d.ts +2 -0
  64. package/dist/lib/modules/marketing/services/synchronize-product-marketing.service.d.ts.map +1 -1
  65. package/dist/lib/modules/marketing/services/synchronize-product-marketing.service.js +14 -0
  66. package/dist/lib/modules/marketing/services/synchronize-product-marketing.service.js.map +1 -1
  67. package/dist/lib/modules/marketing/validations/buy1-get1-marketing.validation.d.ts +24 -24
  68. package/dist/lib/modules/marketing/validations/discount-marketing.validation.d.ts +36 -36
  69. package/dist/lib/modules/marketing/validations/featured-marketing.validation.d.ts +6 -6
  70. package/dist/lib/modules/marketing/validations/free-delivery-marketing.validation.d.ts +4 -4
  71. package/dist/lib/modules/marketing/validations/marketing.validation.d.ts +2 -2
  72. package/dist/lib/modules/marketing/validations/product-marketing.validation.d.ts +7 -7
  73. package/dist/lib/modules/marketing/validations/punch-marketing.validation.d.ts +4 -4
  74. package/dist/lib/modules/punch-marketing-history/routers/punch-marketing-history.router.d.ts +1 -1
  75. package/dist/lib/modules/punch-marketing-history/validations/punch-marketing-history.validation.d.ts +2 -2
  76. package/dist/lib/modules/tournament/config/config.builder.d.ts +5 -0
  77. package/dist/lib/modules/tournament/config/config.builder.d.ts.map +1 -0
  78. package/dist/lib/modules/tournament/config/config.builder.js +19 -0
  79. package/dist/lib/modules/tournament/config/config.builder.js.map +1 -0
  80. package/dist/lib/modules/tournament/config/config.repository.d.ts +13 -0
  81. package/dist/lib/modules/tournament/config/config.repository.d.ts.map +1 -0
  82. package/dist/lib/modules/tournament/config/config.repository.js +77 -0
  83. package/dist/lib/modules/tournament/config/config.repository.js.map +1 -0
  84. package/dist/lib/modules/tournament/config/config.router.d.ts +363 -0
  85. package/dist/lib/modules/tournament/config/config.router.d.ts.map +1 -0
  86. package/dist/lib/modules/tournament/config/config.router.js +40 -0
  87. package/dist/lib/modules/tournament/config/config.router.js.map +1 -0
  88. package/dist/lib/modules/tournament/config/config.service.d.ts +14 -0
  89. package/dist/lib/modules/tournament/config/config.service.d.ts.map +1 -0
  90. package/dist/lib/modules/tournament/config/config.service.js +101 -0
  91. package/dist/lib/modules/tournament/config/config.service.js.map +1 -0
  92. package/dist/lib/modules/tournament/config/config.validation.d.ts +1014 -0
  93. package/dist/lib/modules/tournament/config/config.validation.d.ts.map +1 -0
  94. package/dist/lib/modules/tournament/config/config.validation.js +70 -0
  95. package/dist/lib/modules/tournament/config/config.validation.js.map +1 -0
  96. package/dist/lib/modules/tournament/match/events/match-ended.consumer.d.ts +2 -0
  97. package/dist/lib/modules/tournament/match/events/match-ended.consumer.d.ts.map +1 -0
  98. package/dist/lib/modules/tournament/match/events/match-ended.consumer.js +15 -0
  99. package/dist/lib/modules/tournament/match/events/match-ended.consumer.js.map +1 -0
  100. package/dist/lib/modules/tournament/match/events/match-ended.event.d.ts +14 -0
  101. package/dist/lib/modules/tournament/match/events/match-ended.event.d.ts.map +1 -0
  102. package/dist/lib/modules/tournament/match/events/match-ended.event.js +12 -0
  103. package/dist/lib/modules/tournament/match/events/match-ended.event.js.map +1 -0
  104. package/dist/lib/modules/tournament/match/match.builder.d.ts +38 -0
  105. package/dist/lib/modules/tournament/match/match.builder.d.ts.map +1 -0
  106. package/dist/lib/modules/tournament/match/match.builder.js +37 -0
  107. package/dist/lib/modules/tournament/match/match.builder.js.map +1 -0
  108. package/dist/lib/modules/tournament/match/match.repository.d.ts +13 -0
  109. package/dist/lib/modules/tournament/match/match.repository.d.ts.map +1 -0
  110. package/dist/lib/modules/tournament/match/match.repository.js +84 -0
  111. package/dist/lib/modules/tournament/match/match.repository.js.map +1 -0
  112. package/dist/lib/modules/tournament/match/match.router.d.ts +489 -0
  113. package/dist/lib/modules/tournament/match/match.router.d.ts.map +1 -0
  114. package/dist/lib/modules/tournament/match/match.router.js +56 -0
  115. package/dist/lib/modules/tournament/match/match.router.js.map +1 -0
  116. package/dist/lib/modules/tournament/match/match.service.d.ts +29 -0
  117. package/dist/lib/modules/tournament/match/match.service.d.ts.map +1 -0
  118. package/dist/lib/modules/tournament/match/match.service.js +193 -0
  119. package/dist/lib/modules/tournament/match/match.service.js.map +1 -0
  120. package/dist/lib/modules/tournament/match/match.validation.d.ts +880 -0
  121. package/dist/lib/modules/tournament/match/match.validation.d.ts.map +1 -0
  122. package/dist/lib/modules/tournament/match/match.validation.js +74 -0
  123. package/dist/lib/modules/tournament/match/match.validation.js.map +1 -0
  124. package/dist/lib/modules/tournament/notification/jobs/notification.producer.d.ts +13 -0
  125. package/dist/lib/modules/tournament/notification/jobs/notification.producer.d.ts.map +1 -0
  126. package/dist/lib/modules/tournament/notification/jobs/notification.producer.js +28 -0
  127. package/dist/lib/modules/tournament/notification/jobs/notification.producer.js.map +1 -0
  128. package/dist/lib/modules/tournament/notification/jobs/notification.worker.d.ts +7 -0
  129. package/dist/lib/modules/tournament/notification/jobs/notification.worker.d.ts.map +1 -0
  130. package/dist/lib/modules/tournament/notification/jobs/notification.worker.js +76 -0
  131. package/dist/lib/modules/tournament/notification/jobs/notification.worker.js.map +1 -0
  132. package/dist/lib/modules/tournament/notification/notification.scheduler.service.d.ts +10 -0
  133. package/dist/lib/modules/tournament/notification/notification.scheduler.service.d.ts.map +1 -0
  134. package/dist/lib/modules/tournament/notification/notification.scheduler.service.js +86 -0
  135. package/dist/lib/modules/tournament/notification/notification.scheduler.service.js.map +1 -0
  136. package/dist/lib/modules/tournament/notification/notification.service.d.ts +11 -0
  137. package/dist/lib/modules/tournament/notification/notification.service.d.ts.map +1 -0
  138. package/dist/lib/modules/tournament/notification/notification.service.js +101 -0
  139. package/dist/lib/modules/tournament/notification/notification.service.js.map +1 -0
  140. package/dist/lib/modules/tournament/participant/participant.repository.d.ts +12 -0
  141. package/dist/lib/modules/tournament/participant/participant.repository.d.ts.map +1 -0
  142. package/dist/lib/modules/tournament/participant/participant.repository.js +73 -0
  143. package/dist/lib/modules/tournament/participant/participant.repository.js.map +1 -0
  144. package/dist/lib/modules/tournament/participant/participant.router.d.ts +104 -0
  145. package/dist/lib/modules/tournament/participant/participant.router.d.ts.map +1 -0
  146. package/dist/lib/modules/tournament/participant/participant.router.js +28 -0
  147. package/dist/lib/modules/tournament/participant/participant.router.js.map +1 -0
  148. package/dist/lib/modules/tournament/participant/participant.service.d.ts +14 -0
  149. package/dist/lib/modules/tournament/participant/participant.service.d.ts.map +1 -0
  150. package/dist/lib/modules/tournament/participant/participant.service.js +103 -0
  151. package/dist/lib/modules/tournament/participant/participant.service.js.map +1 -0
  152. package/dist/lib/modules/tournament/participant/participant.validation.d.ts +719 -0
  153. package/dist/lib/modules/tournament/participant/participant.validation.d.ts.map +1 -0
  154. package/dist/lib/modules/tournament/participant/participant.validation.js +44 -0
  155. package/dist/lib/modules/tournament/participant/participant.validation.js.map +1 -0
  156. package/dist/lib/modules/tournament/prediction/prediction.builder.d.ts +14 -0
  157. package/dist/lib/modules/tournament/prediction/prediction.builder.d.ts.map +1 -0
  158. package/dist/lib/modules/tournament/prediction/prediction.builder.js +23 -0
  159. package/dist/lib/modules/tournament/prediction/prediction.builder.js.map +1 -0
  160. package/dist/lib/modules/tournament/prediction/prediction.repository.d.ts +11 -0
  161. package/dist/lib/modules/tournament/prediction/prediction.repository.d.ts.map +1 -0
  162. package/dist/lib/modules/tournament/prediction/prediction.repository.js +73 -0
  163. package/dist/lib/modules/tournament/prediction/prediction.repository.js.map +1 -0
  164. package/dist/lib/modules/tournament/prediction/prediction.router.d.ts +133 -0
  165. package/dist/lib/modules/tournament/prediction/prediction.router.d.ts.map +1 -0
  166. package/dist/lib/modules/tournament/prediction/prediction.router.js +36 -0
  167. package/dist/lib/modules/tournament/prediction/prediction.router.js.map +1 -0
  168. package/dist/lib/modules/tournament/prediction/prediction.service.d.ts +17 -0
  169. package/dist/lib/modules/tournament/prediction/prediction.service.d.ts.map +1 -0
  170. package/dist/lib/modules/tournament/prediction/prediction.service.js +125 -0
  171. package/dist/lib/modules/tournament/prediction/prediction.service.js.map +1 -0
  172. package/dist/lib/modules/tournament/prediction/prediction.validation.d.ts +575 -0
  173. package/dist/lib/modules/tournament/prediction/prediction.validation.d.ts.map +1 -0
  174. package/dist/lib/modules/tournament/prediction/prediction.validation.js +46 -0
  175. package/dist/lib/modules/tournament/prediction/prediction.validation.js.map +1 -0
  176. package/dist/lib/modules/tournament/reward/handlers/coupon-reward.handler.d.ts +8 -0
  177. package/dist/lib/modules/tournament/reward/handlers/coupon-reward.handler.d.ts.map +1 -0
  178. package/dist/lib/modules/tournament/reward/handlers/coupon-reward.handler.js +65 -0
  179. package/dist/lib/modules/tournament/reward/handlers/coupon-reward.handler.js.map +1 -0
  180. package/dist/lib/modules/tournament/reward/reward.factory.d.ts +6 -0
  181. package/dist/lib/modules/tournament/reward/reward.factory.d.ts.map +1 -0
  182. package/dist/lib/modules/tournament/reward/reward.factory.js +21 -0
  183. package/dist/lib/modules/tournament/reward/reward.factory.js.map +1 -0
  184. package/dist/lib/modules/tournament/reward/reward.interface.d.ts +5 -0
  185. package/dist/lib/modules/tournament/reward/reward.interface.d.ts.map +1 -0
  186. package/dist/lib/modules/tournament/reward/reward.interface.js +3 -0
  187. package/dist/lib/modules/tournament/reward/reward.interface.js.map +1 -0
  188. package/dist/lib/modules/tournament/reward/reward.service.d.ts +6 -0
  189. package/dist/lib/modules/tournament/reward/reward.service.d.ts.map +1 -0
  190. package/dist/lib/modules/tournament/reward/reward.service.js +56 -0
  191. package/dist/lib/modules/tournament/reward/reward.service.js.map +1 -0
  192. package/dist/lib/modules/tournament/reward/reward.types.d.ts +11 -0
  193. package/dist/lib/modules/tournament/reward/reward.types.d.ts.map +1 -0
  194. package/dist/lib/modules/tournament/reward/reward.types.js +8 -0
  195. package/dist/lib/modules/tournament/reward/reward.types.js.map +1 -0
  196. package/dist/lib/modules/tournament/team/team.builder.d.ts +19 -0
  197. package/dist/lib/modules/tournament/team/team.builder.d.ts.map +1 -0
  198. package/dist/lib/modules/tournament/team/team.builder.js +18 -0
  199. package/dist/lib/modules/tournament/team/team.builder.js.map +1 -0
  200. package/dist/lib/modules/tournament/team/team.repository.d.ts +11 -0
  201. package/dist/lib/modules/tournament/team/team.repository.d.ts.map +1 -0
  202. package/dist/lib/modules/tournament/team/team.repository.js +71 -0
  203. package/dist/lib/modules/tournament/team/team.repository.js.map +1 -0
  204. package/dist/lib/modules/tournament/team/team.router.d.ts +237 -0
  205. package/dist/lib/modules/tournament/team/team.router.d.ts.map +1 -0
  206. package/dist/lib/modules/tournament/team/team.router.js +36 -0
  207. package/dist/lib/modules/tournament/team/team.router.js.map +1 -0
  208. package/dist/lib/modules/tournament/team/team.service.d.ts +15 -0
  209. package/dist/lib/modules/tournament/team/team.service.d.ts.map +1 -0
  210. package/dist/lib/modules/tournament/team/team.service.js +137 -0
  211. package/dist/lib/modules/tournament/team/team.service.js.map +1 -0
  212. package/dist/lib/modules/tournament/team/team.validation.d.ts +986 -0
  213. package/dist/lib/modules/tournament/team/team.validation.d.ts.map +1 -0
  214. package/dist/lib/modules/tournament/team/team.validation.js +55 -0
  215. package/dist/lib/modules/tournament/team/team.validation.js.map +1 -0
  216. package/dist/lib/modules/tournament/tournament.router.d.ts +1336 -0
  217. package/dist/lib/modules/tournament/tournament.router.d.ts.map +1 -0
  218. package/dist/lib/modules/tournament/tournament.router.js +17 -0
  219. package/dist/lib/modules/tournament/tournament.router.js.map +1 -0
  220. package/dist/types/event/event-initializations.d.ts.map +1 -1
  221. package/dist/types/events/event-initializations.d.ts +2 -0
  222. package/dist/types/events/event-initializations.d.ts.map +1 -0
  223. package/dist/types/index.d.ts +1414 -13
  224. package/dist/types/index.d.ts.map +1 -1
  225. package/dist/types/modules/coupon/routers/coupon.router.d.ts +72 -6
  226. package/dist/types/modules/coupon/routers/coupon.router.d.ts.map +1 -1
  227. package/dist/types/modules/coupon/services/coupon.service.d.ts +1 -0
  228. package/dist/types/modules/coupon/services/coupon.service.d.ts.map +1 -1
  229. package/dist/types/modules/coupon/services/custom-coupon.service.d.ts +2 -0
  230. package/dist/types/modules/coupon/services/custom-coupon.service.d.ts.map +1 -1
  231. package/dist/types/modules/coupon/services/global-coupon.service.d.ts +1 -1
  232. package/dist/types/modules/coupon/services/global-coupon.service.d.ts.map +1 -1
  233. package/dist/types/modules/coupon/services/helper.service.d.ts +2 -1
  234. package/dist/types/modules/coupon/services/helper.service.d.ts.map +1 -1
  235. package/dist/types/modules/coupon/services/individual-store-coupon.service.d.ts +2 -0
  236. package/dist/types/modules/coupon/services/individual-store-coupon.service.d.ts.map +1 -1
  237. package/dist/types/modules/coupon/services/individual-user-coupon.service.d.ts.map +1 -1
  238. package/dist/types/modules/coupon/services/patterns/repository/CouponMetricsRepository.d.ts +10 -4
  239. package/dist/types/modules/coupon/services/patterns/repository/CouponMetricsRepository.d.ts.map +1 -1
  240. package/dist/types/modules/coupon/services/patterns/repository/CouponRepository.d.ts.map +1 -1
  241. package/dist/types/modules/coupon/services/referral-code-coupon.service.d.ts.map +1 -1
  242. package/dist/types/modules/coupon/services/referral-reward-coupon.service.d.ts +1 -1
  243. package/dist/types/modules/coupon/services/referral-reward-coupon.service.d.ts.map +1 -1
  244. package/dist/types/modules/coupon/services/shops-categories-coupon.service.d.ts +2 -0
  245. package/dist/types/modules/coupon/services/shops-categories-coupon.service.d.ts.map +1 -1
  246. package/dist/types/modules/coupon/validations/coupon.validation.d.ts +359 -34
  247. package/dist/types/modules/coupon/validations/coupon.validation.d.ts.map +1 -1
  248. package/dist/types/modules/limited-time-offer/limited-time-offer.router.d.ts +6 -6
  249. package/dist/types/modules/limited-time-offer/participant/limited-time-offer-participant.router.d.ts +6 -6
  250. package/dist/types/modules/limited-time-offer/participant/limited-time-offer-participant.validation.d.ts +30 -30
  251. package/dist/types/modules/marketing/services/marketing.service.d.ts.map +1 -1
  252. package/dist/types/modules/marketing/services/synchronize-product-marketing.service.d.ts +2 -0
  253. package/dist/types/modules/marketing/services/synchronize-product-marketing.service.d.ts.map +1 -1
  254. package/dist/types/modules/marketing/validations/buy1-get1-marketing.validation.d.ts +24 -24
  255. package/dist/types/modules/marketing/validations/discount-marketing.validation.d.ts +36 -36
  256. package/dist/types/modules/marketing/validations/featured-marketing.validation.d.ts +6 -6
  257. package/dist/types/modules/marketing/validations/free-delivery-marketing.validation.d.ts +4 -4
  258. package/dist/types/modules/marketing/validations/marketing.validation.d.ts +2 -2
  259. package/dist/types/modules/marketing/validations/product-marketing.validation.d.ts +7 -7
  260. package/dist/types/modules/marketing/validations/punch-marketing.validation.d.ts +4 -4
  261. package/dist/types/modules/punch-marketing-history/routers/punch-marketing-history.router.d.ts +1 -1
  262. package/dist/types/modules/punch-marketing-history/validations/punch-marketing-history.validation.d.ts +2 -2
  263. package/dist/types/modules/tournament/config/config.builder.d.ts +5 -0
  264. package/dist/types/modules/tournament/config/config.builder.d.ts.map +1 -0
  265. package/dist/types/modules/tournament/config/config.repository.d.ts +13 -0
  266. package/dist/types/modules/tournament/config/config.repository.d.ts.map +1 -0
  267. package/dist/types/modules/tournament/config/config.router.d.ts +363 -0
  268. package/dist/types/modules/tournament/config/config.router.d.ts.map +1 -0
  269. package/dist/types/modules/tournament/config/config.service.d.ts +14 -0
  270. package/dist/types/modules/tournament/config/config.service.d.ts.map +1 -0
  271. package/dist/types/modules/tournament/config/config.validation.d.ts +1014 -0
  272. package/dist/types/modules/tournament/config/config.validation.d.ts.map +1 -0
  273. package/dist/types/modules/tournament/config/tournament-config.validation.d.ts +201 -0
  274. package/dist/types/modules/tournament/config/tournament-config.validation.d.ts.map +1 -0
  275. package/dist/types/modules/tournament/match/events/match-ended.consumer.d.ts +2 -0
  276. package/dist/types/modules/tournament/match/events/match-ended.consumer.d.ts.map +1 -0
  277. package/dist/types/modules/tournament/match/events/match-ended.event.d.ts +14 -0
  278. package/dist/types/modules/tournament/match/events/match-ended.event.d.ts.map +1 -0
  279. package/dist/types/modules/tournament/match/match.builder.d.ts +38 -0
  280. package/dist/types/modules/tournament/match/match.builder.d.ts.map +1 -0
  281. package/dist/types/modules/tournament/match/match.repository.d.ts +13 -0
  282. package/dist/types/modules/tournament/match/match.repository.d.ts.map +1 -0
  283. package/dist/types/modules/tournament/match/match.router.d.ts +489 -0
  284. package/dist/types/modules/tournament/match/match.router.d.ts.map +1 -0
  285. package/dist/types/modules/tournament/match/match.service.d.ts +29 -0
  286. package/dist/types/modules/tournament/match/match.service.d.ts.map +1 -0
  287. package/dist/types/modules/tournament/match/match.validation.d.ts +880 -0
  288. package/dist/types/modules/tournament/match/match.validation.d.ts.map +1 -0
  289. package/dist/types/modules/tournament/notification/jobs/notification.producer.d.ts +13 -0
  290. package/dist/types/modules/tournament/notification/jobs/notification.producer.d.ts.map +1 -0
  291. package/dist/types/modules/tournament/notification/jobs/notification.worker.d.ts +7 -0
  292. package/dist/types/modules/tournament/notification/jobs/notification.worker.d.ts.map +1 -0
  293. package/dist/types/modules/tournament/notification/notification.scheduler.service.d.ts +10 -0
  294. package/dist/types/modules/tournament/notification/notification.scheduler.service.d.ts.map +1 -0
  295. package/dist/types/modules/tournament/notification/notification.service.d.ts +11 -0
  296. package/dist/types/modules/tournament/notification/notification.service.d.ts.map +1 -0
  297. package/dist/types/modules/tournament/participant/participant.repository.d.ts +12 -0
  298. package/dist/types/modules/tournament/participant/participant.repository.d.ts.map +1 -0
  299. package/dist/types/modules/tournament/participant/participant.router.d.ts +104 -0
  300. package/dist/types/modules/tournament/participant/participant.router.d.ts.map +1 -0
  301. package/dist/types/modules/tournament/participant/participant.service.d.ts +14 -0
  302. package/dist/types/modules/tournament/participant/participant.service.d.ts.map +1 -0
  303. package/dist/types/modules/tournament/participant/participant.validation.d.ts +719 -0
  304. package/dist/types/modules/tournament/participant/participant.validation.d.ts.map +1 -0
  305. package/dist/types/modules/tournament/prediction/prediction.builder.d.ts +14 -0
  306. package/dist/types/modules/tournament/prediction/prediction.builder.d.ts.map +1 -0
  307. package/dist/types/modules/tournament/prediction/prediction.repository.d.ts +11 -0
  308. package/dist/types/modules/tournament/prediction/prediction.repository.d.ts.map +1 -0
  309. package/dist/types/modules/tournament/prediction/prediction.router.d.ts +133 -0
  310. package/dist/types/modules/tournament/prediction/prediction.router.d.ts.map +1 -0
  311. package/dist/types/modules/tournament/prediction/prediction.service.d.ts +17 -0
  312. package/dist/types/modules/tournament/prediction/prediction.service.d.ts.map +1 -0
  313. package/dist/types/modules/tournament/prediction/prediction.validation.d.ts +575 -0
  314. package/dist/types/modules/tournament/prediction/prediction.validation.d.ts.map +1 -0
  315. package/dist/types/modules/tournament/reward/handlers/coupon-reward.handler.d.ts +8 -0
  316. package/dist/types/modules/tournament/reward/handlers/coupon-reward.handler.d.ts.map +1 -0
  317. package/dist/types/modules/tournament/reward/reward.factory.d.ts +6 -0
  318. package/dist/types/modules/tournament/reward/reward.factory.d.ts.map +1 -0
  319. package/dist/types/modules/tournament/reward/reward.interface.d.ts +5 -0
  320. package/dist/types/modules/tournament/reward/reward.interface.d.ts.map +1 -0
  321. package/dist/types/modules/tournament/reward/reward.service.d.ts +6 -0
  322. package/dist/types/modules/tournament/reward/reward.service.d.ts.map +1 -0
  323. package/dist/types/modules/tournament/reward/reward.types.d.ts +11 -0
  324. package/dist/types/modules/tournament/reward/reward.types.d.ts.map +1 -0
  325. package/dist/types/modules/tournament/team/team.builder.d.ts +19 -0
  326. package/dist/types/modules/tournament/team/team.builder.d.ts.map +1 -0
  327. package/dist/types/modules/tournament/team/team.repository.d.ts +11 -0
  328. package/dist/types/modules/tournament/team/team.repository.d.ts.map +1 -0
  329. package/dist/types/modules/tournament/team/team.router.d.ts +237 -0
  330. package/dist/types/modules/tournament/team/team.router.d.ts.map +1 -0
  331. package/dist/types/modules/tournament/team/team.service.d.ts +15 -0
  332. package/dist/types/modules/tournament/team/team.service.d.ts.map +1 -0
  333. package/dist/types/modules/tournament/team/team.validation.d.ts +986 -0
  334. package/dist/types/modules/tournament/team/team.validation.d.ts.map +1 -0
  335. package/dist/types/modules/tournament/tournament.router.d.ts +1336 -0
  336. package/dist/types/modules/tournament/tournament.router.d.ts.map +1 -0
  337. package/package.json +3 -3
  338. package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.service.d.ts +0 -1
  339. package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.service.d.ts.map +0 -1
  340. package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.service.js +0 -2
  341. package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.service.js.map +0 -1
@@ -0,0 +1,1336 @@
1
+ export declare const tournamentRouter: 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
+ config: import("@trpc/server").TRPCBuiltRouter<{
18
+ ctx: import("@lyxa.ai/core/dist/libraries/trpc/context").LyxaHTTPContext;
19
+ meta: object;
20
+ errorShape: {
21
+ message: string;
22
+ data: {
23
+ stack: undefined;
24
+ path: undefined;
25
+ code: import("@trpc/server").TRPC_ERROR_CODE_KEY;
26
+ httpStatus: number;
27
+ };
28
+ stack: undefined;
29
+ code: import("@trpc/server").TRPC_ERROR_CODE_NUMBER;
30
+ };
31
+ transformer: false;
32
+ }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
33
+ create: import("@trpc/server").TRPCMutationProcedure<{
34
+ input: {
35
+ startDate: string | Date;
36
+ endDate: string | Date;
37
+ tag: string;
38
+ status?: import("@lyxa.ai/core/dist/utilities/enum").Status | undefined;
39
+ };
40
+ output: {
41
+ message: string;
42
+ success: boolean;
43
+ data?: {
44
+ status: import("@lyxa.ai/core/dist/utilities/enum").Status;
45
+ _id: string | import("mongoose").Types.ObjectId;
46
+ tag: string;
47
+ createdAt?: Date | null | undefined;
48
+ startDate?: Date | null | undefined;
49
+ endDate?: Date | null | undefined;
50
+ 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;
76
+ } | {
77
+ documents: {
78
+ status: import("@lyxa.ai/core/dist/utilities/enum").Status;
79
+ _id: string | import("mongoose").Types.ObjectId;
80
+ tag: string;
81
+ createdAt?: Date | null | undefined;
82
+ startDate?: Date | null | undefined;
83
+ endDate?: Date | null | undefined;
84
+ 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;
110
+ }[];
111
+ metadata?: {
112
+ page: number;
113
+ size: number;
114
+ totalElements: number;
115
+ totalPages: number;
116
+ } | undefined;
117
+ } | undefined;
118
+ };
119
+ meta: object;
120
+ }>;
121
+ getAll: import("@trpc/server").TRPCQueryProcedure<{
122
+ input: void;
123
+ output: {
124
+ message: string;
125
+ success: boolean;
126
+ data?: {
127
+ status: import("@lyxa.ai/core/dist/utilities/enum").Status;
128
+ _id: string | import("mongoose").Types.ObjectId;
129
+ tag: string;
130
+ createdAt?: Date | null | undefined;
131
+ startDate?: Date | null | undefined;
132
+ endDate?: Date | null | undefined;
133
+ 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;
159
+ }[] | {
160
+ documents: {
161
+ status: import("@lyxa.ai/core/dist/utilities/enum").Status;
162
+ _id: string | import("mongoose").Types.ObjectId;
163
+ tag: string;
164
+ createdAt?: Date | null | undefined;
165
+ startDate?: Date | null | undefined;
166
+ endDate?: Date | null | undefined;
167
+ 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;
193
+ }[][];
194
+ metadata?: {
195
+ page: number;
196
+ size: number;
197
+ totalElements: number;
198
+ totalPages: number;
199
+ } | undefined;
200
+ } | undefined;
201
+ };
202
+ meta: object;
203
+ }>;
204
+ getById: import("@trpc/server").TRPCQueryProcedure<{
205
+ input: {
206
+ tournamentId: string | import("mongoose").Types.ObjectId;
207
+ };
208
+ output: {
209
+ message: string;
210
+ success: boolean;
211
+ data?: {
212
+ status: import("@lyxa.ai/core/dist/utilities/enum").Status;
213
+ _id: string | import("mongoose").Types.ObjectId;
214
+ tag: string;
215
+ createdAt?: Date | null | undefined;
216
+ startDate?: Date | null | undefined;
217
+ endDate?: Date | null | undefined;
218
+ 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;
244
+ } | {
245
+ documents: {
246
+ status: import("@lyxa.ai/core/dist/utilities/enum").Status;
247
+ _id: string | import("mongoose").Types.ObjectId;
248
+ tag: string;
249
+ createdAt?: Date | null | undefined;
250
+ startDate?: Date | null | undefined;
251
+ endDate?: Date | null | undefined;
252
+ 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;
278
+ }[];
279
+ metadata?: {
280
+ page: number;
281
+ size: number;
282
+ totalElements: number;
283
+ totalPages: number;
284
+ } | undefined;
285
+ } | undefined;
286
+ };
287
+ meta: object;
288
+ }>;
289
+ update: import("@trpc/server").TRPCMutationProcedure<{
290
+ input: {
291
+ _id: string | import("mongoose").Types.ObjectId;
292
+ status?: import("@lyxa.ai/core/dist/utilities/enum").Status | undefined;
293
+ startDate?: string | Date | undefined;
294
+ endDate?: string | Date | undefined;
295
+ tag?: string | undefined;
296
+ };
297
+ output: {
298
+ message: string;
299
+ success: boolean;
300
+ data?: {
301
+ status: import("@lyxa.ai/core/dist/utilities/enum").Status;
302
+ _id: string | import("mongoose").Types.ObjectId;
303
+ tag: string;
304
+ createdAt?: Date | null | undefined;
305
+ startDate?: Date | null | undefined;
306
+ endDate?: Date | null | undefined;
307
+ 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;
333
+ } | {
334
+ documents: {
335
+ status: import("@lyxa.ai/core/dist/utilities/enum").Status;
336
+ _id: string | import("mongoose").Types.ObjectId;
337
+ tag: string;
338
+ createdAt?: Date | null | undefined;
339
+ startDate?: Date | null | undefined;
340
+ endDate?: Date | null | undefined;
341
+ 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;
367
+ }[];
368
+ metadata?: {
369
+ page: number;
370
+ size: number;
371
+ totalElements: number;
372
+ totalPages: number;
373
+ } | undefined;
374
+ } | undefined;
375
+ };
376
+ meta: object;
377
+ }>;
378
+ }>>;
379
+ team: import("@trpc/server").TRPCBuiltRouter<{
380
+ ctx: import("@lyxa.ai/core/dist/libraries/trpc/context").LyxaHTTPContext;
381
+ meta: object;
382
+ errorShape: {
383
+ message: string;
384
+ data: {
385
+ stack: undefined;
386
+ path: undefined;
387
+ code: import("@trpc/server").TRPC_ERROR_CODE_KEY;
388
+ httpStatus: number;
389
+ };
390
+ stack: undefined;
391
+ code: import("@trpc/server").TRPC_ERROR_CODE_NUMBER;
392
+ };
393
+ transformer: false;
394
+ }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
395
+ add: import("@trpc/server").TRPCMutationProcedure<{
396
+ input: {
397
+ tournamentId: string | import("mongoose").Types.ObjectId;
398
+ teams: {
399
+ name: string;
400
+ picture?: string | undefined;
401
+ }[];
402
+ };
403
+ output: {
404
+ message: string;
405
+ success: boolean;
406
+ data?: {
407
+ status: import("@lyxa.ai/core/dist/utilities/enum").Status;
408
+ _id: string | import("mongoose").Types.ObjectId;
409
+ tag: string;
410
+ createdAt?: Date | null | undefined;
411
+ startDate?: Date | null | undefined;
412
+ endDate?: Date | null | undefined;
413
+ 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;
439
+ } | {
440
+ documents: {
441
+ status: import("@lyxa.ai/core/dist/utilities/enum").Status;
442
+ _id: string | import("mongoose").Types.ObjectId;
443
+ tag: string;
444
+ createdAt?: Date | null | undefined;
445
+ startDate?: Date | null | undefined;
446
+ endDate?: Date | null | undefined;
447
+ 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;
473
+ }[];
474
+ metadata?: {
475
+ page: number;
476
+ size: number;
477
+ totalElements: number;
478
+ totalPages: number;
479
+ } | undefined;
480
+ } | undefined;
481
+ };
482
+ meta: object;
483
+ }>;
484
+ getAll: import("@trpc/server").TRPCQueryProcedure<{
485
+ input: {
486
+ tournamentId: string | import("mongoose").Types.ObjectId;
487
+ };
488
+ output: {
489
+ message: string;
490
+ success: boolean;
491
+ data?: {
492
+ status: import("@lyxa.ai/core/dist/utilities/enum").Status;
493
+ tag: string;
494
+ tournamentId: string | import("mongoose").Types.ObjectId;
495
+ teams: {
496
+ name: string;
497
+ _id: string | import("mongoose").Types.ObjectId;
498
+ picture?: string | undefined;
499
+ }[];
500
+ startDate?: Date | null | undefined;
501
+ endDate?: Date | null | undefined;
502
+ } | {
503
+ documents: {
504
+ status: import("@lyxa.ai/core/dist/utilities/enum").Status;
505
+ tag: string;
506
+ tournamentId: string | import("mongoose").Types.ObjectId;
507
+ teams: {
508
+ name: string;
509
+ _id: string | import("mongoose").Types.ObjectId;
510
+ picture?: string | undefined;
511
+ }[];
512
+ startDate?: Date | null | undefined;
513
+ endDate?: Date | null | undefined;
514
+ }[];
515
+ metadata?: {
516
+ page: number;
517
+ size: number;
518
+ totalElements: number;
519
+ totalPages: number;
520
+ } | undefined;
521
+ } | undefined;
522
+ };
523
+ meta: object;
524
+ }>;
525
+ getMatches: import("@trpc/server").TRPCQueryProcedure<{
526
+ input: {
527
+ filter: "completed" | "upcoming";
528
+ tournamentId: string | import("mongoose").Types.ObjectId;
529
+ };
530
+ output: {
531
+ message: string;
532
+ success: boolean;
533
+ data?: {
534
+ status: import("@lyxa.ai/core/dist/utilities/enum").Status;
535
+ tag: string;
536
+ tournamentId: string | import("mongoose").Types.ObjectId;
537
+ matches: {
538
+ _id: string | import("mongoose").Types.ObjectId;
539
+ team1: {
540
+ name: string;
541
+ teamId: string | import("mongoose").Types.ObjectId;
542
+ };
543
+ team2: {
544
+ name: string;
545
+ teamId: string | import("mongoose").Types.ObjectId;
546
+ };
547
+ score: {
548
+ team1: number | null;
549
+ team2: number | null;
550
+ };
551
+ stage: string;
552
+ prediction: {
553
+ score: {
554
+ team1: number | null;
555
+ team2: number | null;
556
+ };
557
+ succeeded: boolean | null;
558
+ } | null;
559
+ canPredict: boolean;
560
+ endDate?: Date | null | undefined;
561
+ startingDate?: Date | null | undefined;
562
+ additionalTag?: string | undefined;
563
+ winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
564
+ }[];
565
+ startDate?: Date | null | undefined;
566
+ endDate?: Date | null | undefined;
567
+ } | {
568
+ documents: {
569
+ status: import("@lyxa.ai/core/dist/utilities/enum").Status;
570
+ tag: string;
571
+ tournamentId: string | import("mongoose").Types.ObjectId;
572
+ matches: {
573
+ _id: string | import("mongoose").Types.ObjectId;
574
+ team1: {
575
+ name: string;
576
+ teamId: string | import("mongoose").Types.ObjectId;
577
+ };
578
+ team2: {
579
+ name: string;
580
+ teamId: string | import("mongoose").Types.ObjectId;
581
+ };
582
+ score: {
583
+ team1: number | null;
584
+ team2: number | null;
585
+ };
586
+ stage: string;
587
+ prediction: {
588
+ score: {
589
+ team1: number | null;
590
+ team2: number | null;
591
+ };
592
+ succeeded: boolean | null;
593
+ } | null;
594
+ canPredict: boolean;
595
+ endDate?: Date | null | undefined;
596
+ startingDate?: Date | null | undefined;
597
+ additionalTag?: string | undefined;
598
+ winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
599
+ }[];
600
+ startDate?: Date | null | undefined;
601
+ endDate?: Date | null | undefined;
602
+ }[];
603
+ metadata?: {
604
+ page: number;
605
+ size: number;
606
+ totalElements: number;
607
+ totalPages: number;
608
+ } | undefined;
609
+ } | undefined;
610
+ };
611
+ meta: object;
612
+ }>;
613
+ }>>;
614
+ match: import("@trpc/server").TRPCBuiltRouter<{
615
+ ctx: import("@lyxa.ai/core/dist/libraries/trpc/context").LyxaHTTPContext;
616
+ meta: object;
617
+ errorShape: {
618
+ message: string;
619
+ data: {
620
+ stack: undefined;
621
+ path: undefined;
622
+ code: import("@trpc/server").TRPC_ERROR_CODE_KEY;
623
+ httpStatus: number;
624
+ };
625
+ stack: undefined;
626
+ code: import("@trpc/server").TRPC_ERROR_CODE_NUMBER;
627
+ };
628
+ transformer: false;
629
+ }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
630
+ add: import("@trpc/server").TRPCMutationProcedure<{
631
+ input: {
632
+ tournamentId: string | import("mongoose").Types.ObjectId;
633
+ matches: {
634
+ stage: string;
635
+ team1Id: string | import("mongoose").Types.ObjectId;
636
+ team2Id: string | import("mongoose").Types.ObjectId;
637
+ startingDate: string | Date;
638
+ endDate?: string | Date | undefined;
639
+ additionalTag?: string | undefined;
640
+ }[];
641
+ };
642
+ output: {
643
+ message: string;
644
+ success: boolean;
645
+ data?: {
646
+ status: import("@lyxa.ai/core/dist/utilities/enum").Status;
647
+ _id: string | import("mongoose").Types.ObjectId;
648
+ tag: string;
649
+ createdAt?: Date | null | undefined;
650
+ startDate?: Date | null | undefined;
651
+ endDate?: Date | null | undefined;
652
+ 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;
678
+ } | {
679
+ documents: {
680
+ status: import("@lyxa.ai/core/dist/utilities/enum").Status;
681
+ _id: string | import("mongoose").Types.ObjectId;
682
+ tag: string;
683
+ createdAt?: Date | null | undefined;
684
+ startDate?: Date | null | undefined;
685
+ endDate?: Date | null | undefined;
686
+ 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;
712
+ }[];
713
+ metadata?: {
714
+ page: number;
715
+ size: number;
716
+ totalElements: number;
717
+ totalPages: number;
718
+ } | undefined;
719
+ } | undefined;
720
+ };
721
+ meta: object;
722
+ }>;
723
+ getAll: import("@trpc/server").TRPCQueryProcedure<{
724
+ input: {
725
+ tournamentId: string | import("mongoose").Types.ObjectId;
726
+ };
727
+ output: {
728
+ message: string;
729
+ success: boolean;
730
+ data?: {
731
+ _id: string | import("mongoose").Types.ObjectId;
732
+ team1: {
733
+ name: string;
734
+ teamId: string | import("mongoose").Types.ObjectId;
735
+ };
736
+ team2: {
737
+ name: string;
738
+ teamId: string | import("mongoose").Types.ObjectId;
739
+ };
740
+ score: {
741
+ team1: number | null;
742
+ team2: number | null;
743
+ };
744
+ stage: string;
745
+ endDate?: Date | null | undefined;
746
+ startingDate?: Date | null | undefined;
747
+ additionalTag?: string | undefined;
748
+ winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
749
+ prediction?: {
750
+ score: {
751
+ team1: number | null;
752
+ team2: number | null;
753
+ };
754
+ succeeded?: boolean | null | undefined;
755
+ } | null | undefined;
756
+ }[] | {
757
+ documents: {
758
+ _id: string | import("mongoose").Types.ObjectId;
759
+ team1: {
760
+ name: string;
761
+ teamId: string | import("mongoose").Types.ObjectId;
762
+ };
763
+ team2: {
764
+ name: string;
765
+ teamId: string | import("mongoose").Types.ObjectId;
766
+ };
767
+ score: {
768
+ team1: number | null;
769
+ team2: number | null;
770
+ };
771
+ stage: string;
772
+ endDate?: Date | null | undefined;
773
+ startingDate?: Date | null | undefined;
774
+ additionalTag?: string | undefined;
775
+ winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
776
+ prediction?: {
777
+ score: {
778
+ team1: number | null;
779
+ team2: number | null;
780
+ };
781
+ succeeded?: boolean | null | undefined;
782
+ } | null | undefined;
783
+ }[][];
784
+ metadata?: {
785
+ page: number;
786
+ size: number;
787
+ totalElements: number;
788
+ totalPages: number;
789
+ } | undefined;
790
+ } | undefined;
791
+ };
792
+ meta: object;
793
+ }>;
794
+ start: import("@trpc/server").TRPCMutationProcedure<{
795
+ input: {
796
+ tournamentId: string | import("mongoose").Types.ObjectId;
797
+ matchId: string | import("mongoose").Types.ObjectId;
798
+ };
799
+ output: {
800
+ message: string;
801
+ success: boolean;
802
+ data?: {
803
+ _id: string | import("mongoose").Types.ObjectId;
804
+ team1: {
805
+ name: string;
806
+ teamId: string | import("mongoose").Types.ObjectId;
807
+ };
808
+ team2: {
809
+ name: string;
810
+ teamId: string | import("mongoose").Types.ObjectId;
811
+ };
812
+ score: {
813
+ team1: number | null;
814
+ team2: number | null;
815
+ };
816
+ stage: string;
817
+ endDate?: Date | null | undefined;
818
+ startingDate?: Date | null | undefined;
819
+ additionalTag?: string | undefined;
820
+ 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
+ startingDate?: Date | null | undefined;
894
+ additionalTag?: string | undefined;
895
+ winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
896
+ prediction?: {
897
+ score: {
898
+ team1: number | null;
899
+ team2: number | null;
900
+ };
901
+ succeeded?: boolean | null | undefined;
902
+ } | null | undefined;
903
+ } | {
904
+ documents: {
905
+ _id: string | import("mongoose").Types.ObjectId;
906
+ team1: {
907
+ name: string;
908
+ teamId: string | import("mongoose").Types.ObjectId;
909
+ };
910
+ team2: {
911
+ name: string;
912
+ teamId: string | import("mongoose").Types.ObjectId;
913
+ };
914
+ score: {
915
+ team1: number | null;
916
+ team2: number | null;
917
+ };
918
+ stage: string;
919
+ endDate?: Date | null | undefined;
920
+ startingDate?: Date | null | undefined;
921
+ additionalTag?: string | undefined;
922
+ winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
923
+ prediction?: {
924
+ score: {
925
+ team1: number | null;
926
+ team2: number | null;
927
+ };
928
+ succeeded?: boolean | null | undefined;
929
+ } | null | undefined;
930
+ }[];
931
+ metadata?: {
932
+ page: number;
933
+ size: number;
934
+ totalElements: number;
935
+ totalPages: number;
936
+ } | undefined;
937
+ } | undefined;
938
+ };
939
+ meta: object;
940
+ }>;
941
+ end: import("@trpc/server").TRPCMutationProcedure<{
942
+ input: {
943
+ tournamentId: string | import("mongoose").Types.ObjectId;
944
+ matchId: string | import("mongoose").Types.ObjectId;
945
+ endDate?: string | Date | undefined;
946
+ winnerId?: string | import("mongoose").Types.ObjectId | undefined;
947
+ };
948
+ output: {
949
+ message: string;
950
+ success: boolean;
951
+ data?: {
952
+ _id: string | import("mongoose").Types.ObjectId;
953
+ team1: {
954
+ name: string;
955
+ teamId: string | import("mongoose").Types.ObjectId;
956
+ };
957
+ team2: {
958
+ name: string;
959
+ teamId: string | import("mongoose").Types.ObjectId;
960
+ };
961
+ score: {
962
+ team1: number | null;
963
+ team2: number | null;
964
+ };
965
+ stage: string;
966
+ endDate?: Date | null | undefined;
967
+ startingDate?: Date | null | undefined;
968
+ additionalTag?: string | undefined;
969
+ winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
970
+ prediction?: {
971
+ score: {
972
+ team1: number | null;
973
+ team2: number | null;
974
+ };
975
+ succeeded?: boolean | null | undefined;
976
+ } | null | undefined;
977
+ } | {
978
+ documents: {
979
+ _id: string | import("mongoose").Types.ObjectId;
980
+ team1: {
981
+ name: string;
982
+ teamId: string | import("mongoose").Types.ObjectId;
983
+ };
984
+ team2: {
985
+ name: string;
986
+ teamId: string | import("mongoose").Types.ObjectId;
987
+ };
988
+ score: {
989
+ team1: number | null;
990
+ team2: number | null;
991
+ };
992
+ stage: string;
993
+ endDate?: Date | null | undefined;
994
+ startingDate?: Date | null | undefined;
995
+ additionalTag?: string | undefined;
996
+ winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
997
+ prediction?: {
998
+ score: {
999
+ team1: number | null;
1000
+ team2: number | null;
1001
+ };
1002
+ succeeded?: boolean | null | undefined;
1003
+ } | null | undefined;
1004
+ }[];
1005
+ metadata?: {
1006
+ page: number;
1007
+ size: number;
1008
+ totalElements: number;
1009
+ totalPages: number;
1010
+ } | undefined;
1011
+ } | undefined;
1012
+ };
1013
+ meta: object;
1014
+ }>;
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;
1056
+ } | {
1057
+ documents: {
1058
+ status: import("@lyxa.ai/core/dist/utilities/enum").Status;
1059
+ _id: string | import("mongoose").Types.ObjectId;
1060
+ tag: string;
1061
+ createdAt?: Date | null | undefined;
1062
+ startDate?: Date | null | undefined;
1063
+ endDate?: Date | null | undefined;
1064
+ 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;
1090
+ }[];
1091
+ metadata?: {
1092
+ page: number;
1093
+ size: number;
1094
+ totalElements: number;
1095
+ totalPages: number;
1096
+ } | undefined;
1097
+ } | undefined;
1098
+ };
1099
+ meta: object;
1100
+ }>;
1101
+ }>>;
1102
+ participant: import("@trpc/server").TRPCBuiltRouter<{
1103
+ ctx: import("@lyxa.ai/core/dist/libraries/trpc/context").LyxaHTTPContext;
1104
+ meta: object;
1105
+ errorShape: {
1106
+ message: string;
1107
+ data: {
1108
+ stack: undefined;
1109
+ path: undefined;
1110
+ code: import("@trpc/server").TRPC_ERROR_CODE_KEY;
1111
+ httpStatus: number;
1112
+ };
1113
+ stack: undefined;
1114
+ code: import("@trpc/server").TRPC_ERROR_CODE_NUMBER;
1115
+ };
1116
+ transformer: false;
1117
+ }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
1118
+ join: import("@trpc/server").TRPCMutationProcedure<{
1119
+ input: {
1120
+ teamId: string | import("mongoose").Types.ObjectId;
1121
+ tournamentId: string | import("mongoose").Types.ObjectId;
1122
+ };
1123
+ output: {
1124
+ message: string;
1125
+ success: boolean;
1126
+ data?: {
1127
+ _id: string | import("mongoose").Types.ObjectId;
1128
+ teamId: string | import("mongoose").Types.ObjectId;
1129
+ tournamentId: string | import("mongoose").Types.ObjectId;
1130
+ createdAt?: Date | null | undefined;
1131
+ } | {
1132
+ documents: {
1133
+ _id: string | import("mongoose").Types.ObjectId;
1134
+ teamId: string | import("mongoose").Types.ObjectId;
1135
+ tournamentId: string | import("mongoose").Types.ObjectId;
1136
+ createdAt?: Date | null | undefined;
1137
+ }[];
1138
+ metadata?: {
1139
+ page: number;
1140
+ size: number;
1141
+ totalElements: number;
1142
+ totalPages: number;
1143
+ } | undefined;
1144
+ } | undefined;
1145
+ };
1146
+ meta: object;
1147
+ }>;
1148
+ getAll: import("@trpc/server").TRPCQueryProcedure<{
1149
+ input: {
1150
+ tournamentId: string | import("mongoose").Types.ObjectId;
1151
+ };
1152
+ output: {
1153
+ message: string;
1154
+ success: boolean;
1155
+ data?: {
1156
+ _id: string | import("mongoose").Types.ObjectId;
1157
+ userId: string | import("mongoose").Types.ObjectId;
1158
+ teamId: string | import("mongoose").Types.ObjectId;
1159
+ tournamentId: string | import("mongoose").Types.ObjectId;
1160
+ createdAt?: Date | null | undefined;
1161
+ updatedAt?: Date | null | undefined;
1162
+ predictions?: {
1163
+ _id: string | import("mongoose").Types.ObjectId;
1164
+ score: {
1165
+ team1: number | null;
1166
+ team2: number | null;
1167
+ };
1168
+ matchId: string | import("mongoose").Types.ObjectId;
1169
+ coupon?: string | import("mongoose").Types.ObjectId | undefined;
1170
+ succeeded?: boolean | null | undefined;
1171
+ predictionTime?: Date | null | undefined;
1172
+ }[] | undefined;
1173
+ }[] | {
1174
+ documents: {
1175
+ _id: string | import("mongoose").Types.ObjectId;
1176
+ userId: string | import("mongoose").Types.ObjectId;
1177
+ teamId: string | import("mongoose").Types.ObjectId;
1178
+ tournamentId: string | import("mongoose").Types.ObjectId;
1179
+ createdAt?: Date | null | undefined;
1180
+ updatedAt?: Date | null | undefined;
1181
+ predictions?: {
1182
+ _id: string | import("mongoose").Types.ObjectId;
1183
+ score: {
1184
+ team1: number | null;
1185
+ team2: number | null;
1186
+ };
1187
+ matchId: string | import("mongoose").Types.ObjectId;
1188
+ coupon?: string | import("mongoose").Types.ObjectId | undefined;
1189
+ succeeded?: boolean | null | undefined;
1190
+ predictionTime?: Date | null | undefined;
1191
+ }[] | undefined;
1192
+ }[][];
1193
+ metadata?: {
1194
+ page: number;
1195
+ size: number;
1196
+ totalElements: number;
1197
+ totalPages: number;
1198
+ } | undefined;
1199
+ } | undefined;
1200
+ };
1201
+ meta: object;
1202
+ }>;
1203
+ }>>;
1204
+ prediction: import("@trpc/server").TRPCBuiltRouter<{
1205
+ ctx: import("@lyxa.ai/core/dist/libraries/trpc/context").LyxaHTTPContext;
1206
+ meta: object;
1207
+ errorShape: {
1208
+ message: string;
1209
+ data: {
1210
+ stack: undefined;
1211
+ path: undefined;
1212
+ code: import("@trpc/server").TRPC_ERROR_CODE_KEY;
1213
+ httpStatus: number;
1214
+ };
1215
+ stack: undefined;
1216
+ code: import("@trpc/server").TRPC_ERROR_CODE_NUMBER;
1217
+ };
1218
+ transformer: false;
1219
+ }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
1220
+ create: import("@trpc/server").TRPCMutationProcedure<{
1221
+ input: {
1222
+ score: {
1223
+ team1: number;
1224
+ team2: number;
1225
+ };
1226
+ tournamentId: string | import("mongoose").Types.ObjectId;
1227
+ matchId: string | import("mongoose").Types.ObjectId;
1228
+ };
1229
+ output: {
1230
+ message: string;
1231
+ success: boolean;
1232
+ data?: {
1233
+ _id: string | import("mongoose").Types.ObjectId;
1234
+ score: {
1235
+ team1: number | null;
1236
+ team2: number | null;
1237
+ };
1238
+ matchId: string | import("mongoose").Types.ObjectId;
1239
+ } | {
1240
+ documents: {
1241
+ _id: string | import("mongoose").Types.ObjectId;
1242
+ score: {
1243
+ team1: number | null;
1244
+ team2: number | null;
1245
+ };
1246
+ matchId: string | import("mongoose").Types.ObjectId;
1247
+ }[];
1248
+ metadata?: {
1249
+ page: number;
1250
+ size: number;
1251
+ totalElements: number;
1252
+ totalPages: number;
1253
+ } | undefined;
1254
+ } | undefined;
1255
+ };
1256
+ meta: object;
1257
+ }>;
1258
+ edit: import("@trpc/server").TRPCMutationProcedure<{
1259
+ input: {
1260
+ score: {
1261
+ team1: number;
1262
+ team2: number;
1263
+ };
1264
+ tournamentId: string | import("mongoose").Types.ObjectId;
1265
+ matchId: string | import("mongoose").Types.ObjectId;
1266
+ };
1267
+ output: {
1268
+ message: string;
1269
+ success: boolean;
1270
+ data?: {
1271
+ _id: string | import("mongoose").Types.ObjectId;
1272
+ score: {
1273
+ team1: number | null;
1274
+ team2: number | null;
1275
+ };
1276
+ matchId: string | import("mongoose").Types.ObjectId;
1277
+ } | {
1278
+ documents: {
1279
+ _id: string | import("mongoose").Types.ObjectId;
1280
+ score: {
1281
+ team1: number | null;
1282
+ team2: number | null;
1283
+ };
1284
+ matchId: string | import("mongoose").Types.ObjectId;
1285
+ }[];
1286
+ metadata?: {
1287
+ page: number;
1288
+ size: number;
1289
+ totalElements: number;
1290
+ totalPages: number;
1291
+ } | undefined;
1292
+ } | undefined;
1293
+ };
1294
+ meta: object;
1295
+ }>;
1296
+ get: import("@trpc/server").TRPCQueryProcedure<{
1297
+ input: {
1298
+ tournamentId: string | import("mongoose").Types.ObjectId;
1299
+ matchId: string | import("mongoose").Types.ObjectId;
1300
+ };
1301
+ output: {
1302
+ message: string;
1303
+ success: boolean;
1304
+ data?: {
1305
+ _id: string | import("mongoose").Types.ObjectId;
1306
+ score: {
1307
+ team1: number | null;
1308
+ team2: number | null;
1309
+ };
1310
+ matchId: string | import("mongoose").Types.ObjectId;
1311
+ succeeded?: boolean | null | undefined;
1312
+ predictionTime?: Date | null | undefined;
1313
+ } | {
1314
+ documents: ({
1315
+ _id: string | import("mongoose").Types.ObjectId;
1316
+ score: {
1317
+ team1: number | null;
1318
+ team2: number | null;
1319
+ };
1320
+ matchId: string | import("mongoose").Types.ObjectId;
1321
+ succeeded?: boolean | null | undefined;
1322
+ predictionTime?: Date | null | undefined;
1323
+ } | null)[];
1324
+ metadata?: {
1325
+ page: number;
1326
+ size: number;
1327
+ totalElements: number;
1328
+ totalPages: number;
1329
+ } | undefined;
1330
+ } | null | undefined;
1331
+ };
1332
+ meta: object;
1333
+ }>;
1334
+ }>>;
1335
+ }>>;
1336
+ //# sourceMappingURL=tournament.router.d.ts.map