@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,880 @@
1
+ import { z } from 'zod';
2
+ import { DTO } from '@lyxa.ai/core/dist/utilities/validation/global-validation';
3
+ export declare const AddTournamentMatchesSchema: z.ZodObject<{
4
+ tournamentId: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>;
5
+ matches: z.ZodArray<z.ZodEffects<z.ZodObject<{
6
+ stage: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
7
+ team1Id: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>;
8
+ team2Id: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>;
9
+ startingDate: z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Date, string>, z.ZodDate]>, Date, string | Date>, Date, string | Date>;
10
+ endDate: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Date, string>, z.ZodDate]>, Date, string | Date>, Date, string | Date>>;
11
+ additionalTag: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
12
+ }, "strip", z.ZodTypeAny, {
13
+ stage: string;
14
+ team1Id: import("mongoose").Types.ObjectId;
15
+ team2Id: import("mongoose").Types.ObjectId;
16
+ startingDate: Date;
17
+ endDate?: Date | undefined;
18
+ additionalTag?: string | undefined;
19
+ }, {
20
+ stage: string;
21
+ team1Id: string | import("mongoose").Types.ObjectId;
22
+ team2Id: string | import("mongoose").Types.ObjectId;
23
+ startingDate: string | Date;
24
+ endDate?: string | Date | undefined;
25
+ additionalTag?: string | undefined;
26
+ }>, {
27
+ stage: string;
28
+ team1Id: import("mongoose").Types.ObjectId;
29
+ team2Id: import("mongoose").Types.ObjectId;
30
+ startingDate: Date;
31
+ endDate?: Date | undefined;
32
+ additionalTag?: string | undefined;
33
+ }, {
34
+ stage: string;
35
+ team1Id: string | import("mongoose").Types.ObjectId;
36
+ team2Id: string | import("mongoose").Types.ObjectId;
37
+ startingDate: string | Date;
38
+ endDate?: string | Date | undefined;
39
+ additionalTag?: string | undefined;
40
+ }>, "many">;
41
+ }, "strip", z.ZodTypeAny, {
42
+ tournamentId: import("mongoose").Types.ObjectId;
43
+ matches: {
44
+ stage: string;
45
+ team1Id: import("mongoose").Types.ObjectId;
46
+ team2Id: import("mongoose").Types.ObjectId;
47
+ startingDate: Date;
48
+ endDate?: Date | undefined;
49
+ additionalTag?: string | undefined;
50
+ }[];
51
+ }, {
52
+ tournamentId: string | import("mongoose").Types.ObjectId;
53
+ matches: {
54
+ stage: string;
55
+ team1Id: string | import("mongoose").Types.ObjectId;
56
+ team2Id: string | import("mongoose").Types.ObjectId;
57
+ startingDate: string | Date;
58
+ endDate?: string | Date | undefined;
59
+ additionalTag?: string | undefined;
60
+ }[];
61
+ }>;
62
+ export declare const GetTournamentMatchesSchema: z.ZodObject<{
63
+ tournamentId: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>;
64
+ }, "strip", z.ZodTypeAny, {
65
+ tournamentId: import("mongoose").Types.ObjectId;
66
+ }, {
67
+ tournamentId: string | import("mongoose").Types.ObjectId;
68
+ }>;
69
+ export declare const UpdateMatchScoreSchema: z.ZodObject<{
70
+ tournamentId: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>;
71
+ matchId: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>;
72
+ team1Score: z.ZodNumber;
73
+ team2Score: z.ZodNumber;
74
+ winnerId: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
75
+ }, "strip", z.ZodTypeAny, {
76
+ tournamentId: import("mongoose").Types.ObjectId;
77
+ matchId: import("mongoose").Types.ObjectId;
78
+ team1Score: number;
79
+ team2Score: number;
80
+ winnerId?: import("mongoose").Types.ObjectId | undefined;
81
+ }, {
82
+ tournamentId: string | import("mongoose").Types.ObjectId;
83
+ matchId: string | import("mongoose").Types.ObjectId;
84
+ team1Score: number;
85
+ team2Score: number;
86
+ winnerId?: string | import("mongoose").Types.ObjectId | undefined;
87
+ }>;
88
+ export declare const StartTournamentMatchSchema: z.ZodObject<{
89
+ tournamentId: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>;
90
+ matchId: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>;
91
+ }, "strip", z.ZodTypeAny, {
92
+ tournamentId: import("mongoose").Types.ObjectId;
93
+ matchId: import("mongoose").Types.ObjectId;
94
+ }, {
95
+ tournamentId: string | import("mongoose").Types.ObjectId;
96
+ matchId: string | import("mongoose").Types.ObjectId;
97
+ }>;
98
+ export declare const EndTournamentMatchSchema: z.ZodObject<{
99
+ tournamentId: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>;
100
+ matchId: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>;
101
+ endDate: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Date, string>, z.ZodDate]>, Date, string | Date>, Date, string | Date>>;
102
+ winnerId: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
103
+ }, "strip", z.ZodTypeAny, {
104
+ tournamentId: import("mongoose").Types.ObjectId;
105
+ matchId: import("mongoose").Types.ObjectId;
106
+ endDate?: Date | undefined;
107
+ winnerId?: import("mongoose").Types.ObjectId | undefined;
108
+ }, {
109
+ tournamentId: string | import("mongoose").Types.ObjectId;
110
+ matchId: string | import("mongoose").Types.ObjectId;
111
+ endDate?: string | Date | undefined;
112
+ winnerId?: string | import("mongoose").Types.ObjectId | undefined;
113
+ }>;
114
+ export declare const TournamentMatchSchema: z.ZodObject<{
115
+ _id: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>;
116
+ additionalTag: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
117
+ stage: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
118
+ team1: z.ZodObject<{
119
+ teamId: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>;
120
+ name: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
121
+ }, "strip", z.ZodTypeAny, {
122
+ name: string;
123
+ teamId: import("mongoose").Types.ObjectId;
124
+ }, {
125
+ name: string;
126
+ teamId: string | import("mongoose").Types.ObjectId;
127
+ }>;
128
+ team2: z.ZodObject<{
129
+ teamId: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>;
130
+ name: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
131
+ }, "strip", z.ZodTypeAny, {
132
+ name: string;
133
+ teamId: import("mongoose").Types.ObjectId;
134
+ }, {
135
+ name: string;
136
+ teamId: string | import("mongoose").Types.ObjectId;
137
+ }>;
138
+ score: z.ZodObject<{
139
+ team1: z.ZodNullable<z.ZodNumber>;
140
+ team2: z.ZodNullable<z.ZodNumber>;
141
+ }, "strip", z.ZodTypeAny, {
142
+ team1: number | null;
143
+ team2: number | null;
144
+ }, {
145
+ team1: number | null;
146
+ team2: number | null;
147
+ }>;
148
+ prediction: z.ZodNullable<z.ZodOptional<z.ZodObject<{
149
+ score: z.ZodObject<{
150
+ team1: z.ZodNullable<z.ZodNumber>;
151
+ team2: z.ZodNullable<z.ZodNumber>;
152
+ }, "strip", z.ZodTypeAny, {
153
+ team1: number | null;
154
+ team2: number | null;
155
+ }, {
156
+ team1: number | null;
157
+ team2: number | null;
158
+ }>;
159
+ succeeded: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
160
+ }, "strip", z.ZodTypeAny, {
161
+ score: {
162
+ team1: number | null;
163
+ team2: number | null;
164
+ };
165
+ succeeded?: boolean | null | undefined;
166
+ }, {
167
+ score: {
168
+ team1: number | null;
169
+ team2: number | null;
170
+ };
171
+ succeeded?: boolean | null | undefined;
172
+ }>>>;
173
+ winnerId: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>>;
174
+ startingDate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
175
+ endDate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
176
+ }, "strip", z.ZodTypeAny, {
177
+ _id: import("mongoose").Types.ObjectId;
178
+ team1: {
179
+ name: string;
180
+ teamId: import("mongoose").Types.ObjectId;
181
+ };
182
+ team2: {
183
+ name: string;
184
+ teamId: import("mongoose").Types.ObjectId;
185
+ };
186
+ score: {
187
+ team1: number | null;
188
+ team2: number | null;
189
+ };
190
+ stage: string;
191
+ endDate?: Date | null | undefined;
192
+ startingDate?: Date | null | undefined;
193
+ additionalTag?: string | undefined;
194
+ winnerId?: import("mongoose").Types.ObjectId | null | undefined;
195
+ prediction?: {
196
+ score: {
197
+ team1: number | null;
198
+ team2: number | null;
199
+ };
200
+ succeeded?: boolean | null | undefined;
201
+ } | null | undefined;
202
+ }, {
203
+ _id: string | import("mongoose").Types.ObjectId;
204
+ team1: {
205
+ name: string;
206
+ teamId: string | import("mongoose").Types.ObjectId;
207
+ };
208
+ team2: {
209
+ name: string;
210
+ teamId: string | import("mongoose").Types.ObjectId;
211
+ };
212
+ score: {
213
+ team1: number | null;
214
+ team2: number | null;
215
+ };
216
+ stage: string;
217
+ endDate?: Date | null | undefined;
218
+ startingDate?: Date | null | undefined;
219
+ additionalTag?: string | undefined;
220
+ winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
221
+ prediction?: {
222
+ score: {
223
+ team1: number | null;
224
+ team2: number | null;
225
+ };
226
+ succeeded?: boolean | null | undefined;
227
+ } | null | undefined;
228
+ }>;
229
+ export declare const TournamentMatchResponseSchema: z.ZodObject<{
230
+ success: z.ZodBoolean;
231
+ message: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
232
+ data: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
233
+ metadata: z.ZodOptional<z.ZodObject<{
234
+ page: z.ZodNumber;
235
+ size: z.ZodNumber;
236
+ totalElements: z.ZodNumber;
237
+ totalPages: z.ZodNumber;
238
+ }, "strip", z.ZodTypeAny, {
239
+ page: number;
240
+ size: number;
241
+ totalElements: number;
242
+ totalPages: number;
243
+ }, {
244
+ page: number;
245
+ size: number;
246
+ totalElements: number;
247
+ totalPages: number;
248
+ }>>;
249
+ documents: z.ZodArray<z.ZodType<{
250
+ _id: string | import("mongoose").Types.ObjectId;
251
+ team1: {
252
+ name: string;
253
+ teamId: string | import("mongoose").Types.ObjectId;
254
+ };
255
+ team2: {
256
+ name: string;
257
+ teamId: string | import("mongoose").Types.ObjectId;
258
+ };
259
+ score: {
260
+ team1: number | null;
261
+ team2: number | null;
262
+ };
263
+ stage: string;
264
+ endDate?: Date | null | undefined;
265
+ startingDate?: Date | null | undefined;
266
+ additionalTag?: string | undefined;
267
+ winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
268
+ prediction?: {
269
+ score: {
270
+ team1: number | null;
271
+ team2: number | null;
272
+ };
273
+ succeeded?: boolean | null | undefined;
274
+ } | null | undefined;
275
+ }, z.ZodTypeDef, {
276
+ _id: string | import("mongoose").Types.ObjectId;
277
+ team1: {
278
+ name: string;
279
+ teamId: string | import("mongoose").Types.ObjectId;
280
+ };
281
+ team2: {
282
+ name: string;
283
+ teamId: string | import("mongoose").Types.ObjectId;
284
+ };
285
+ score: {
286
+ team1: number | null;
287
+ team2: number | null;
288
+ };
289
+ stage: string;
290
+ endDate?: Date | null | undefined;
291
+ startingDate?: Date | null | undefined;
292
+ additionalTag?: string | undefined;
293
+ winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
294
+ prediction?: {
295
+ score: {
296
+ team1: number | null;
297
+ team2: number | null;
298
+ };
299
+ succeeded?: boolean | null | undefined;
300
+ } | null | undefined;
301
+ }>, "many">;
302
+ }, "strip", z.ZodTypeAny, {
303
+ documents: {
304
+ _id: string | import("mongoose").Types.ObjectId;
305
+ team1: {
306
+ name: string;
307
+ teamId: string | import("mongoose").Types.ObjectId;
308
+ };
309
+ team2: {
310
+ name: string;
311
+ teamId: string | import("mongoose").Types.ObjectId;
312
+ };
313
+ score: {
314
+ team1: number | null;
315
+ team2: number | null;
316
+ };
317
+ stage: string;
318
+ endDate?: Date | null | undefined;
319
+ startingDate?: Date | null | undefined;
320
+ additionalTag?: string | undefined;
321
+ winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
322
+ prediction?: {
323
+ score: {
324
+ team1: number | null;
325
+ team2: number | null;
326
+ };
327
+ succeeded?: boolean | null | undefined;
328
+ } | null | undefined;
329
+ }[];
330
+ metadata?: {
331
+ page: number;
332
+ size: number;
333
+ totalElements: number;
334
+ totalPages: number;
335
+ } | undefined;
336
+ }, {
337
+ documents: {
338
+ _id: string | import("mongoose").Types.ObjectId;
339
+ team1: {
340
+ name: string;
341
+ teamId: string | import("mongoose").Types.ObjectId;
342
+ };
343
+ team2: {
344
+ name: string;
345
+ teamId: string | import("mongoose").Types.ObjectId;
346
+ };
347
+ score: {
348
+ team1: number | null;
349
+ team2: number | null;
350
+ };
351
+ stage: string;
352
+ endDate?: Date | null | undefined;
353
+ startingDate?: Date | null | undefined;
354
+ additionalTag?: string | undefined;
355
+ winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
356
+ prediction?: {
357
+ score: {
358
+ team1: number | null;
359
+ team2: number | null;
360
+ };
361
+ succeeded?: boolean | null | undefined;
362
+ } | null | undefined;
363
+ }[];
364
+ metadata?: {
365
+ page: number;
366
+ size: number;
367
+ totalElements: number;
368
+ totalPages: number;
369
+ } | undefined;
370
+ }>, z.ZodType<{
371
+ _id: string | import("mongoose").Types.ObjectId;
372
+ team1: {
373
+ name: string;
374
+ teamId: string | import("mongoose").Types.ObjectId;
375
+ };
376
+ team2: {
377
+ name: string;
378
+ teamId: string | import("mongoose").Types.ObjectId;
379
+ };
380
+ score: {
381
+ team1: number | null;
382
+ team2: number | null;
383
+ };
384
+ stage: string;
385
+ endDate?: Date | null | undefined;
386
+ startingDate?: Date | null | undefined;
387
+ additionalTag?: string | undefined;
388
+ winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
389
+ prediction?: {
390
+ score: {
391
+ team1: number | null;
392
+ team2: number | null;
393
+ };
394
+ succeeded?: boolean | null | undefined;
395
+ } | null | undefined;
396
+ }, z.ZodTypeDef, {
397
+ _id: string | import("mongoose").Types.ObjectId;
398
+ team1: {
399
+ name: string;
400
+ teamId: string | import("mongoose").Types.ObjectId;
401
+ };
402
+ team2: {
403
+ name: string;
404
+ teamId: string | import("mongoose").Types.ObjectId;
405
+ };
406
+ score: {
407
+ team1: number | null;
408
+ team2: number | null;
409
+ };
410
+ stage: string;
411
+ endDate?: Date | null | undefined;
412
+ startingDate?: Date | null | undefined;
413
+ additionalTag?: string | undefined;
414
+ winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
415
+ prediction?: {
416
+ score: {
417
+ team1: number | null;
418
+ team2: number | null;
419
+ };
420
+ succeeded?: boolean | null | undefined;
421
+ } | null | undefined;
422
+ }>]>>;
423
+ }, "strip", z.ZodTypeAny, {
424
+ message: string;
425
+ success: boolean;
426
+ data?: {
427
+ _id: string | import("mongoose").Types.ObjectId;
428
+ team1: {
429
+ name: string;
430
+ teamId: string | import("mongoose").Types.ObjectId;
431
+ };
432
+ team2: {
433
+ name: string;
434
+ teamId: string | import("mongoose").Types.ObjectId;
435
+ };
436
+ score: {
437
+ team1: number | null;
438
+ team2: number | null;
439
+ };
440
+ stage: string;
441
+ endDate?: Date | null | undefined;
442
+ startingDate?: Date | null | undefined;
443
+ additionalTag?: string | undefined;
444
+ winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
445
+ prediction?: {
446
+ score: {
447
+ team1: number | null;
448
+ team2: number | null;
449
+ };
450
+ succeeded?: boolean | null | undefined;
451
+ } | null | undefined;
452
+ } | {
453
+ documents: {
454
+ _id: string | import("mongoose").Types.ObjectId;
455
+ team1: {
456
+ name: string;
457
+ teamId: string | import("mongoose").Types.ObjectId;
458
+ };
459
+ team2: {
460
+ name: string;
461
+ teamId: string | import("mongoose").Types.ObjectId;
462
+ };
463
+ score: {
464
+ team1: number | null;
465
+ team2: number | null;
466
+ };
467
+ stage: string;
468
+ endDate?: Date | null | undefined;
469
+ startingDate?: Date | null | undefined;
470
+ additionalTag?: string | undefined;
471
+ winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
472
+ prediction?: {
473
+ score: {
474
+ team1: number | null;
475
+ team2: number | null;
476
+ };
477
+ succeeded?: boolean | null | undefined;
478
+ } | null | undefined;
479
+ }[];
480
+ metadata?: {
481
+ page: number;
482
+ size: number;
483
+ totalElements: number;
484
+ totalPages: number;
485
+ } | undefined;
486
+ } | undefined;
487
+ }, {
488
+ message: string;
489
+ success: boolean;
490
+ data?: {
491
+ _id: string | import("mongoose").Types.ObjectId;
492
+ team1: {
493
+ name: string;
494
+ teamId: string | import("mongoose").Types.ObjectId;
495
+ };
496
+ team2: {
497
+ name: string;
498
+ teamId: string | import("mongoose").Types.ObjectId;
499
+ };
500
+ score: {
501
+ team1: number | null;
502
+ team2: number | null;
503
+ };
504
+ stage: string;
505
+ endDate?: Date | null | undefined;
506
+ startingDate?: Date | null | undefined;
507
+ additionalTag?: string | undefined;
508
+ winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
509
+ prediction?: {
510
+ score: {
511
+ team1: number | null;
512
+ team2: number | null;
513
+ };
514
+ succeeded?: boolean | null | undefined;
515
+ } | null | undefined;
516
+ } | {
517
+ documents: {
518
+ _id: string | import("mongoose").Types.ObjectId;
519
+ team1: {
520
+ name: string;
521
+ teamId: string | import("mongoose").Types.ObjectId;
522
+ };
523
+ team2: {
524
+ name: string;
525
+ teamId: string | import("mongoose").Types.ObjectId;
526
+ };
527
+ score: {
528
+ team1: number | null;
529
+ team2: number | null;
530
+ };
531
+ stage: string;
532
+ endDate?: Date | null | undefined;
533
+ startingDate?: Date | null | undefined;
534
+ additionalTag?: string | undefined;
535
+ winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
536
+ prediction?: {
537
+ score: {
538
+ team1: number | null;
539
+ team2: number | null;
540
+ };
541
+ succeeded?: boolean | null | undefined;
542
+ } | null | undefined;
543
+ }[];
544
+ metadata?: {
545
+ page: number;
546
+ size: number;
547
+ totalElements: number;
548
+ totalPages: number;
549
+ } | undefined;
550
+ } | undefined;
551
+ }>;
552
+ export declare const TournamentMatchListResponseSchema: z.ZodObject<{
553
+ success: z.ZodBoolean;
554
+ message: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
555
+ data: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
556
+ metadata: z.ZodOptional<z.ZodObject<{
557
+ page: z.ZodNumber;
558
+ size: z.ZodNumber;
559
+ totalElements: z.ZodNumber;
560
+ totalPages: z.ZodNumber;
561
+ }, "strip", z.ZodTypeAny, {
562
+ page: number;
563
+ size: number;
564
+ totalElements: number;
565
+ totalPages: number;
566
+ }, {
567
+ page: number;
568
+ size: number;
569
+ totalElements: number;
570
+ totalPages: number;
571
+ }>>;
572
+ documents: z.ZodArray<z.ZodType<{
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
+ endDate?: Date | null | undefined;
588
+ startingDate?: Date | null | undefined;
589
+ additionalTag?: string | undefined;
590
+ winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
591
+ prediction?: {
592
+ score: {
593
+ team1: number | null;
594
+ team2: number | null;
595
+ };
596
+ succeeded?: boolean | null | undefined;
597
+ } | null | undefined;
598
+ }[], z.ZodTypeDef, {
599
+ _id: string | import("mongoose").Types.ObjectId;
600
+ team1: {
601
+ name: string;
602
+ teamId: string | import("mongoose").Types.ObjectId;
603
+ };
604
+ team2: {
605
+ name: string;
606
+ teamId: string | import("mongoose").Types.ObjectId;
607
+ };
608
+ score: {
609
+ team1: number | null;
610
+ team2: number | null;
611
+ };
612
+ stage: string;
613
+ endDate?: Date | null | undefined;
614
+ startingDate?: Date | null | undefined;
615
+ additionalTag?: string | undefined;
616
+ winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
617
+ prediction?: {
618
+ score: {
619
+ team1: number | null;
620
+ team2: number | null;
621
+ };
622
+ succeeded?: boolean | null | undefined;
623
+ } | null | undefined;
624
+ }[]>, "many">;
625
+ }, "strip", z.ZodTypeAny, {
626
+ documents: {
627
+ _id: string | import("mongoose").Types.ObjectId;
628
+ team1: {
629
+ name: string;
630
+ teamId: string | import("mongoose").Types.ObjectId;
631
+ };
632
+ team2: {
633
+ name: string;
634
+ teamId: string | import("mongoose").Types.ObjectId;
635
+ };
636
+ score: {
637
+ team1: number | null;
638
+ team2: number | null;
639
+ };
640
+ stage: string;
641
+ endDate?: Date | null | undefined;
642
+ startingDate?: Date | null | undefined;
643
+ additionalTag?: string | undefined;
644
+ winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
645
+ prediction?: {
646
+ score: {
647
+ team1: number | null;
648
+ team2: number | null;
649
+ };
650
+ succeeded?: boolean | null | undefined;
651
+ } | null | undefined;
652
+ }[][];
653
+ metadata?: {
654
+ page: number;
655
+ size: number;
656
+ totalElements: number;
657
+ totalPages: number;
658
+ } | undefined;
659
+ }, {
660
+ documents: {
661
+ _id: string | import("mongoose").Types.ObjectId;
662
+ team1: {
663
+ name: string;
664
+ teamId: string | import("mongoose").Types.ObjectId;
665
+ };
666
+ team2: {
667
+ name: string;
668
+ teamId: string | import("mongoose").Types.ObjectId;
669
+ };
670
+ score: {
671
+ team1: number | null;
672
+ team2: number | null;
673
+ };
674
+ stage: string;
675
+ endDate?: Date | null | undefined;
676
+ startingDate?: Date | null | undefined;
677
+ additionalTag?: string | undefined;
678
+ winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
679
+ prediction?: {
680
+ score: {
681
+ team1: number | null;
682
+ team2: number | null;
683
+ };
684
+ succeeded?: boolean | null | undefined;
685
+ } | null | undefined;
686
+ }[][];
687
+ metadata?: {
688
+ page: number;
689
+ size: number;
690
+ totalElements: number;
691
+ totalPages: number;
692
+ } | undefined;
693
+ }>, z.ZodType<{
694
+ _id: string | import("mongoose").Types.ObjectId;
695
+ team1: {
696
+ name: string;
697
+ teamId: string | import("mongoose").Types.ObjectId;
698
+ };
699
+ team2: {
700
+ name: string;
701
+ teamId: string | import("mongoose").Types.ObjectId;
702
+ };
703
+ score: {
704
+ team1: number | null;
705
+ team2: number | null;
706
+ };
707
+ stage: string;
708
+ endDate?: Date | null | undefined;
709
+ startingDate?: Date | null | undefined;
710
+ additionalTag?: string | undefined;
711
+ winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
712
+ prediction?: {
713
+ score: {
714
+ team1: number | null;
715
+ team2: number | null;
716
+ };
717
+ succeeded?: boolean | null | undefined;
718
+ } | null | undefined;
719
+ }[], z.ZodTypeDef, {
720
+ _id: string | import("mongoose").Types.ObjectId;
721
+ team1: {
722
+ name: string;
723
+ teamId: string | import("mongoose").Types.ObjectId;
724
+ };
725
+ team2: {
726
+ name: string;
727
+ teamId: string | import("mongoose").Types.ObjectId;
728
+ };
729
+ score: {
730
+ team1: number | null;
731
+ team2: number | null;
732
+ };
733
+ stage: string;
734
+ endDate?: Date | null | undefined;
735
+ startingDate?: Date | null | undefined;
736
+ additionalTag?: string | undefined;
737
+ winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
738
+ prediction?: {
739
+ score: {
740
+ team1: number | null;
741
+ team2: number | null;
742
+ };
743
+ succeeded?: boolean | null | undefined;
744
+ } | null | undefined;
745
+ }[]>]>>;
746
+ }, "strip", z.ZodTypeAny, {
747
+ message: string;
748
+ success: boolean;
749
+ data?: {
750
+ _id: string | import("mongoose").Types.ObjectId;
751
+ team1: {
752
+ name: string;
753
+ teamId: string | import("mongoose").Types.ObjectId;
754
+ };
755
+ team2: {
756
+ name: string;
757
+ teamId: string | import("mongoose").Types.ObjectId;
758
+ };
759
+ score: {
760
+ team1: number | null;
761
+ team2: number | null;
762
+ };
763
+ stage: string;
764
+ endDate?: Date | null | undefined;
765
+ startingDate?: Date | null | undefined;
766
+ additionalTag?: string | undefined;
767
+ winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
768
+ prediction?: {
769
+ score: {
770
+ team1: number | null;
771
+ team2: number | null;
772
+ };
773
+ succeeded?: boolean | null | undefined;
774
+ } | null | undefined;
775
+ }[] | {
776
+ documents: {
777
+ _id: string | import("mongoose").Types.ObjectId;
778
+ team1: {
779
+ name: string;
780
+ teamId: string | import("mongoose").Types.ObjectId;
781
+ };
782
+ team2: {
783
+ name: string;
784
+ teamId: string | import("mongoose").Types.ObjectId;
785
+ };
786
+ score: {
787
+ team1: number | null;
788
+ team2: number | null;
789
+ };
790
+ stage: string;
791
+ endDate?: Date | null | undefined;
792
+ startingDate?: Date | null | undefined;
793
+ additionalTag?: string | undefined;
794
+ winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
795
+ prediction?: {
796
+ score: {
797
+ team1: number | null;
798
+ team2: number | null;
799
+ };
800
+ succeeded?: boolean | null | undefined;
801
+ } | null | undefined;
802
+ }[][];
803
+ metadata?: {
804
+ page: number;
805
+ size: number;
806
+ totalElements: number;
807
+ totalPages: number;
808
+ } | undefined;
809
+ } | undefined;
810
+ }, {
811
+ message: string;
812
+ success: boolean;
813
+ data?: {
814
+ _id: string | import("mongoose").Types.ObjectId;
815
+ team1: {
816
+ name: string;
817
+ teamId: string | import("mongoose").Types.ObjectId;
818
+ };
819
+ team2: {
820
+ name: string;
821
+ teamId: string | import("mongoose").Types.ObjectId;
822
+ };
823
+ score: {
824
+ team1: number | null;
825
+ team2: number | null;
826
+ };
827
+ stage: string;
828
+ endDate?: Date | null | undefined;
829
+ startingDate?: Date | null | undefined;
830
+ additionalTag?: string | undefined;
831
+ winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
832
+ prediction?: {
833
+ score: {
834
+ team1: number | null;
835
+ team2: number | null;
836
+ };
837
+ succeeded?: boolean | null | undefined;
838
+ } | null | undefined;
839
+ }[] | {
840
+ documents: {
841
+ _id: string | import("mongoose").Types.ObjectId;
842
+ team1: {
843
+ name: string;
844
+ teamId: string | import("mongoose").Types.ObjectId;
845
+ };
846
+ team2: {
847
+ name: string;
848
+ teamId: string | import("mongoose").Types.ObjectId;
849
+ };
850
+ score: {
851
+ team1: number | null;
852
+ team2: number | null;
853
+ };
854
+ stage: string;
855
+ endDate?: Date | null | undefined;
856
+ startingDate?: Date | null | undefined;
857
+ additionalTag?: string | undefined;
858
+ winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
859
+ prediction?: {
860
+ score: {
861
+ team1: number | null;
862
+ team2: number | null;
863
+ };
864
+ succeeded?: boolean | null | undefined;
865
+ } | null | undefined;
866
+ }[][];
867
+ metadata?: {
868
+ page: number;
869
+ size: number;
870
+ totalElements: number;
871
+ totalPages: number;
872
+ } | undefined;
873
+ } | undefined;
874
+ }>;
875
+ export type AddTournamentMatchesInputDTO = DTO<typeof AddTournamentMatchesSchema>;
876
+ export type StartTournamentMatchInputDTO = DTO<typeof StartTournamentMatchSchema>;
877
+ export type UpdateMatchScoreInputDTO = DTO<typeof UpdateMatchScoreSchema>;
878
+ export type EndTournamentMatchInputDTO = DTO<typeof EndTournamentMatchSchema>;
879
+ export type TournamentMatchOutputDTO = DTO<typeof TournamentMatchSchema>;
880
+ //# sourceMappingURL=match.validation.d.ts.map