@lyxa.ai/marketing 1.0.48 → 1.0.50

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (324) hide show
  1. package/dist/lib/event/event-initializations.js +2 -2
  2. package/dist/lib/event/event-initializations.js.map +1 -1
  3. package/dist/lib/index.d.ts +462 -508
  4. package/dist/lib/index.d.ts.map +1 -1
  5. package/dist/lib/modules/coupon/services/coupon.service.d.ts +2 -2
  6. package/dist/lib/modules/coupon/services/coupon.service.d.ts.map +1 -1
  7. package/dist/lib/modules/coupon/services/coupon.service.js.map +1 -1
  8. package/dist/lib/modules/coupon/services/global-coupon.service.d.ts.map +1 -1
  9. package/dist/lib/modules/coupon/services/global-coupon.service.js +2 -0
  10. package/dist/lib/modules/coupon/services/global-coupon.service.js.map +1 -1
  11. package/dist/lib/modules/coupon/services/helper.service.d.ts.map +1 -1
  12. package/dist/lib/modules/coupon/services/helper.service.js +2 -0
  13. package/dist/lib/modules/coupon/services/helper.service.js.map +1 -1
  14. package/dist/lib/modules/coupon/services/individual-user-coupon.service.d.ts.map +1 -1
  15. package/dist/lib/modules/coupon/services/individual-user-coupon.service.js +2 -0
  16. package/dist/lib/modules/coupon/services/individual-user-coupon.service.js.map +1 -1
  17. package/dist/lib/modules/coupon/services/referral-reward-coupon.service.d.ts.map +1 -1
  18. package/dist/lib/modules/coupon/services/referral-reward-coupon.service.js +2 -0
  19. package/dist/lib/modules/coupon/services/referral-reward-coupon.service.js.map +1 -1
  20. package/dist/lib/modules/limited-time-offer/campaign/campaign.router.d.ts +10 -21
  21. package/dist/lib/modules/limited-time-offer/campaign/campaign.router.d.ts.map +1 -1
  22. package/dist/lib/modules/limited-time-offer/campaign/campaign.router.js +5 -4
  23. package/dist/lib/modules/limited-time-offer/campaign/campaign.router.js.map +1 -1
  24. package/dist/lib/modules/limited-time-offer/campaign/limited-time-offer-campaign.validation.d.ts +154 -0
  25. package/dist/lib/modules/limited-time-offer/campaign/limited-time-offer-campaign.validation.d.ts.map +1 -1
  26. package/dist/lib/modules/limited-time-offer/campaign/limited-time-offer-campaign.validation.js +13 -1
  27. package/dist/lib/modules/limited-time-offer/campaign/limited-time-offer-campaign.validation.js.map +1 -1
  28. package/dist/lib/modules/limited-time-offer/campaign/services/limited-time-offer-campaign.service.d.ts +8 -2
  29. package/dist/lib/modules/limited-time-offer/campaign/services/limited-time-offer-campaign.service.d.ts.map +1 -1
  30. package/dist/lib/modules/limited-time-offer/campaign/services/limited-time-offer-campaign.service.js +11 -2
  31. package/dist/lib/modules/limited-time-offer/campaign/services/limited-time-offer-campaign.service.js.map +1 -1
  32. package/dist/lib/modules/limited-time-offer/limited-time-offer.router.d.ts +10 -21
  33. package/dist/lib/modules/limited-time-offer/limited-time-offer.router.d.ts.map +1 -1
  34. package/dist/lib/modules/tournament/config/config.builder.d.ts.map +1 -1
  35. package/dist/lib/modules/tournament/config/config.builder.js +4 -0
  36. package/dist/lib/modules/tournament/config/config.builder.js.map +1 -1
  37. package/dist/lib/modules/tournament/config/config.repository.d.ts +4 -0
  38. package/dist/lib/modules/tournament/config/config.repository.d.ts.map +1 -1
  39. package/dist/lib/modules/tournament/config/config.repository.js +10 -1
  40. package/dist/lib/modules/tournament/config/config.repository.js.map +1 -1
  41. package/dist/lib/modules/tournament/config/config.router.d.ts +106 -218
  42. package/dist/lib/modules/tournament/config/config.router.d.ts.map +1 -1
  43. package/dist/lib/modules/tournament/config/config.service.d.ts +2 -2
  44. package/dist/lib/modules/tournament/config/config.service.d.ts.map +1 -1
  45. package/dist/lib/modules/tournament/config/config.service.js.map +1 -1
  46. package/dist/lib/modules/tournament/config/config.validation.d.ts +446 -692
  47. package/dist/lib/modules/tournament/config/config.validation.d.ts.map +1 -1
  48. package/dist/lib/modules/tournament/config/config.validation.js +44 -28
  49. package/dist/lib/modules/tournament/config/config.validation.js.map +1 -1
  50. package/dist/lib/modules/tournament/match/events/evaluate-predictions.consumer.d.ts +2 -0
  51. package/dist/lib/modules/tournament/match/events/evaluate-predictions.consumer.d.ts.map +1 -0
  52. package/dist/lib/modules/tournament/match/events/evaluate-predictions.consumer.js +28 -0
  53. package/dist/lib/modules/tournament/match/events/evaluate-predictions.consumer.js.map +1 -0
  54. package/dist/lib/modules/tournament/match/events/evaluate-predictions.event.d.ts +15 -0
  55. package/dist/lib/modules/tournament/match/events/evaluate-predictions.event.d.ts.map +1 -0
  56. package/dist/lib/modules/tournament/match/events/evaluate-predictions.event.js +12 -0
  57. package/dist/lib/modules/tournament/match/events/evaluate-predictions.event.js.map +1 -0
  58. package/dist/lib/modules/tournament/match/match.builder.d.ts +5 -2
  59. package/dist/lib/modules/tournament/match/match.builder.d.ts.map +1 -1
  60. package/dist/lib/modules/tournament/match/match.builder.js +13 -7
  61. package/dist/lib/modules/tournament/match/match.builder.js.map +1 -1
  62. package/dist/lib/modules/tournament/match/match.repository.d.ts +2 -0
  63. package/dist/lib/modules/tournament/match/match.repository.d.ts.map +1 -1
  64. package/dist/lib/modules/tournament/match/match.repository.js +10 -0
  65. package/dist/lib/modules/tournament/match/match.repository.js.map +1 -1
  66. package/dist/lib/modules/tournament/match/match.router.d.ts +66 -191
  67. package/dist/lib/modules/tournament/match/match.router.d.ts.map +1 -1
  68. package/dist/lib/modules/tournament/match/match.router.js +0 -7
  69. package/dist/lib/modules/tournament/match/match.router.js.map +1 -1
  70. package/dist/lib/modules/tournament/match/match.service.d.ts +1 -12
  71. package/dist/lib/modules/tournament/match/match.service.d.ts.map +1 -1
  72. package/dist/lib/modules/tournament/match/match.service.js +18 -68
  73. package/dist/lib/modules/tournament/match/match.service.js.map +1 -1
  74. package/dist/lib/modules/tournament/match/match.validation.d.ts +96 -34
  75. package/dist/lib/modules/tournament/match/match.validation.d.ts.map +1 -1
  76. package/dist/lib/modules/tournament/match/match.validation.js +5 -2
  77. package/dist/lib/modules/tournament/match/match.validation.js.map +1 -1
  78. package/dist/lib/modules/tournament/notification/jobs/notification.producer.d.ts +2 -5
  79. package/dist/lib/modules/tournament/notification/jobs/notification.producer.d.ts.map +1 -1
  80. package/dist/lib/modules/tournament/notification/jobs/notification.producer.js +1 -6
  81. package/dist/lib/modules/tournament/notification/jobs/notification.producer.js.map +1 -1
  82. package/dist/lib/modules/tournament/notification/jobs/notification.worker.d.ts +2 -0
  83. package/dist/lib/modules/tournament/notification/jobs/notification.worker.d.ts.map +1 -1
  84. package/dist/lib/modules/tournament/notification/jobs/notification.worker.js +15 -9
  85. package/dist/lib/modules/tournament/notification/jobs/notification.worker.js.map +1 -1
  86. package/dist/lib/modules/tournament/notification/notification-template.repository.d.ts +8 -0
  87. package/dist/lib/modules/tournament/notification/notification-template.repository.d.ts.map +1 -0
  88. package/dist/lib/modules/tournament/notification/notification-template.repository.js +60 -0
  89. package/dist/lib/modules/tournament/notification/notification-template.repository.js.map +1 -0
  90. package/dist/lib/modules/tournament/notification/notification.config.d.ts +10 -0
  91. package/dist/lib/modules/tournament/notification/notification.config.d.ts.map +1 -0
  92. package/dist/lib/modules/tournament/notification/notification.config.js +15 -0
  93. package/dist/lib/modules/tournament/notification/notification.config.js.map +1 -0
  94. package/dist/lib/modules/tournament/notification/notification.schedule.config.d.ts +10 -0
  95. package/dist/lib/modules/tournament/notification/notification.schedule.config.d.ts.map +1 -0
  96. package/dist/lib/modules/tournament/notification/notification.schedule.config.js +15 -0
  97. package/dist/lib/modules/tournament/notification/notification.schedule.config.js.map +1 -0
  98. package/dist/lib/modules/tournament/notification/notification.scheduler.service.d.ts +4 -4
  99. package/dist/lib/modules/tournament/notification/notification.scheduler.service.d.ts.map +1 -1
  100. package/dist/lib/modules/tournament/notification/notification.scheduler.service.js +15 -28
  101. package/dist/lib/modules/tournament/notification/notification.scheduler.service.js.map +1 -1
  102. package/dist/lib/modules/tournament/notification/notification.service.d.ts +5 -3
  103. package/dist/lib/modules/tournament/notification/notification.service.d.ts.map +1 -1
  104. package/dist/lib/modules/tournament/notification/notification.service.js +33 -23
  105. package/dist/lib/modules/tournament/notification/notification.service.js.map +1 -1
  106. package/dist/lib/modules/tournament/participant/participant.repository.d.ts +1 -0
  107. package/dist/lib/modules/tournament/participant/participant.repository.d.ts.map +1 -1
  108. package/dist/lib/modules/tournament/participant/participant.repository.js +6 -0
  109. package/dist/lib/modules/tournament/participant/participant.repository.js.map +1 -1
  110. package/dist/lib/modules/tournament/participant/participant.router.d.ts +9 -9
  111. package/dist/lib/modules/tournament/participant/participant.validation.d.ts +84 -84
  112. package/dist/lib/modules/tournament/prediction/prediction.builder.d.ts.map +1 -1
  113. package/dist/lib/modules/tournament/prediction/prediction.builder.js +3 -2
  114. package/dist/lib/modules/tournament/prediction/prediction.builder.js.map +1 -1
  115. package/dist/lib/modules/tournament/prediction/prediction.repository.d.ts +4 -1
  116. package/dist/lib/modules/tournament/prediction/prediction.repository.d.ts.map +1 -1
  117. package/dist/lib/modules/tournament/prediction/prediction.repository.js +20 -2
  118. package/dist/lib/modules/tournament/prediction/prediction.repository.js.map +1 -1
  119. package/dist/lib/modules/tournament/prediction/prediction.router.d.ts +12 -12
  120. package/dist/lib/modules/tournament/prediction/prediction.service.d.ts +9 -0
  121. package/dist/lib/modules/tournament/prediction/prediction.service.d.ts.map +1 -1
  122. package/dist/lib/modules/tournament/prediction/prediction.service.js +30 -4
  123. package/dist/lib/modules/tournament/prediction/prediction.service.js.map +1 -1
  124. package/dist/lib/modules/tournament/prediction/prediction.validation.d.ts +64 -64
  125. package/dist/lib/modules/tournament/reward/handlers/coupon-reward.handler.d.ts +3 -0
  126. package/dist/lib/modules/tournament/reward/handlers/coupon-reward.handler.d.ts.map +1 -1
  127. package/dist/lib/modules/tournament/reward/handlers/coupon-reward.handler.js +21 -5
  128. package/dist/lib/modules/tournament/reward/handlers/coupon-reward.handler.js.map +1 -1
  129. package/dist/lib/modules/tournament/reward/reward.builder.d.ts +6 -0
  130. package/dist/lib/modules/tournament/reward/reward.builder.d.ts.map +1 -0
  131. package/dist/lib/modules/tournament/reward/reward.builder.js +44 -0
  132. package/dist/lib/modules/tournament/reward/reward.builder.js.map +1 -0
  133. package/dist/lib/modules/tournament/reward/reward.interface.d.ts.map +1 -1
  134. package/dist/lib/modules/tournament/reward/reward.interface.js.map +1 -1
  135. package/dist/lib/modules/tournament/reward/reward.repository.d.ts +8 -0
  136. package/dist/lib/modules/tournament/reward/reward.repository.d.ts.map +1 -0
  137. package/dist/lib/modules/tournament/reward/reward.repository.js +66 -0
  138. package/dist/lib/modules/tournament/reward/reward.repository.js.map +1 -0
  139. package/dist/lib/modules/tournament/reward/reward.service.d.ts.map +1 -1
  140. package/dist/lib/modules/tournament/reward/reward.service.js.map +1 -1
  141. package/dist/lib/modules/tournament/reward/reward.types.d.ts +1 -1
  142. package/dist/lib/modules/tournament/reward/reward.types.d.ts.map +1 -1
  143. package/dist/lib/modules/tournament/reward/reward.types.js.map +1 -1
  144. package/dist/lib/modules/tournament/schedule/schedule.router.d.ts +27 -0
  145. package/dist/lib/modules/tournament/schedule/schedule.router.d.ts.map +1 -0
  146. package/dist/lib/modules/tournament/schedule/schedule.router.js +17 -0
  147. package/dist/lib/modules/tournament/schedule/schedule.router.js.map +1 -0
  148. package/dist/lib/modules/tournament/schedule/schedule.service.d.ts +10 -0
  149. package/dist/lib/modules/tournament/schedule/schedule.service.d.ts.map +1 -0
  150. package/dist/lib/modules/tournament/schedule/schedule.service.js +87 -0
  151. package/dist/lib/modules/tournament/schedule/schedule.service.js.map +1 -0
  152. package/dist/lib/modules/tournament/score/score.repository.d.ts +13 -0
  153. package/dist/lib/modules/tournament/score/score.repository.d.ts.map +1 -0
  154. package/dist/lib/modules/tournament/score/score.repository.js +70 -0
  155. package/dist/lib/modules/tournament/score/score.repository.js.map +1 -0
  156. package/dist/lib/modules/tournament/score/score.router.d.ts +98 -0
  157. package/dist/lib/modules/tournament/score/score.router.d.ts.map +1 -0
  158. package/dist/lib/modules/tournament/score/score.router.js +20 -0
  159. package/dist/lib/modules/tournament/score/score.router.js.map +1 -0
  160. package/dist/lib/modules/tournament/score/score.service.d.ts +13 -0
  161. package/dist/lib/modules/tournament/score/score.service.d.ts.map +1 -0
  162. package/dist/lib/modules/tournament/score/score.service.js +109 -0
  163. package/dist/lib/modules/tournament/score/score.service.js.map +1 -0
  164. package/dist/lib/modules/tournament/score/score.validation.d.ts +375 -0
  165. package/dist/lib/modules/tournament/score/score.validation.d.ts.map +1 -0
  166. package/dist/lib/modules/tournament/score/score.validation.js +19 -0
  167. package/dist/lib/modules/tournament/score/score.validation.js.map +1 -0
  168. package/dist/lib/modules/tournament/statistics/statistics.builder.d.ts +10 -0
  169. package/dist/lib/modules/tournament/statistics/statistics.builder.d.ts.map +1 -0
  170. package/dist/lib/modules/tournament/statistics/statistics.builder.js +53 -0
  171. package/dist/lib/modules/tournament/statistics/statistics.builder.js.map +1 -0
  172. package/dist/lib/modules/tournament/statistics/statistics.router.d.ts +80 -0
  173. package/dist/lib/modules/tournament/statistics/statistics.router.d.ts.map +1 -0
  174. package/dist/lib/modules/tournament/statistics/statistics.router.js +21 -0
  175. package/dist/lib/modules/tournament/statistics/statistics.router.js.map +1 -0
  176. package/dist/lib/modules/tournament/statistics/statistics.service.d.ts +11 -0
  177. package/dist/lib/modules/tournament/statistics/statistics.service.d.ts.map +1 -0
  178. package/dist/lib/modules/tournament/statistics/statistics.service.js +80 -0
  179. package/dist/lib/modules/tournament/statistics/statistics.service.js.map +1 -0
  180. package/dist/lib/modules/tournament/statistics/statistics.validation.d.ts +404 -0
  181. package/dist/lib/modules/tournament/statistics/statistics.validation.d.ts.map +1 -0
  182. package/dist/lib/modules/tournament/statistics/statistics.validation.js +36 -0
  183. package/dist/lib/modules/tournament/statistics/statistics.validation.js.map +1 -0
  184. package/dist/lib/modules/tournament/team/team.router.d.ts +31 -57
  185. package/dist/lib/modules/tournament/team/team.router.d.ts.map +1 -1
  186. package/dist/lib/modules/tournament/team/team.service.d.ts +1 -0
  187. package/dist/lib/modules/tournament/team/team.service.d.ts.map +1 -1
  188. package/dist/lib/modules/tournament/team/team.service.js +21 -16
  189. package/dist/lib/modules/tournament/team/team.service.js.map +1 -1
  190. package/dist/lib/modules/tournament/team/team.validation.d.ts +68 -18
  191. package/dist/lib/modules/tournament/team/team.validation.d.ts.map +1 -1
  192. package/dist/lib/modules/tournament/team/team.validation.js +4 -2
  193. package/dist/lib/modules/tournament/team/team.validation.js.map +1 -1
  194. package/dist/lib/modules/tournament/tournament.router.d.ts +466 -501
  195. package/dist/lib/modules/tournament/tournament.router.d.ts.map +1 -1
  196. package/dist/lib/modules/tournament/tournament.router.js +14 -0
  197. package/dist/lib/modules/tournament/tournament.router.js.map +1 -1
  198. package/dist/lib/modules/tournament/tournament.service.d.ts +8 -0
  199. package/dist/lib/modules/tournament/tournament.service.d.ts.map +1 -0
  200. package/dist/lib/modules/tournament/tournament.service.js +63 -0
  201. package/dist/lib/modules/tournament/tournament.service.js.map +1 -0
  202. package/dist/lib/modules/tournament/tournament.types.d.ts +9 -0
  203. package/dist/lib/modules/tournament/tournament.types.d.ts.map +1 -0
  204. package/dist/lib/modules/tournament/tournament.types.js +14 -0
  205. package/dist/lib/modules/tournament/tournament.types.js.map +1 -0
  206. package/dist/lib/modules/tournament/tournament.utils.d.ts +2 -0
  207. package/dist/lib/modules/tournament/tournament.utils.d.ts.map +1 -0
  208. package/dist/lib/modules/tournament/tournament.utils.js +6 -0
  209. package/dist/lib/modules/tournament/tournament.utils.js.map +1 -0
  210. package/dist/lib/modules/tournament/tournament.validation.d.ts +133 -0
  211. package/dist/lib/modules/tournament/tournament.validation.d.ts.map +1 -0
  212. package/dist/lib/modules/tournament/tournament.validation.js +14 -0
  213. package/dist/lib/modules/tournament/tournament.validation.js.map +1 -0
  214. package/dist/types/index.d.ts +462 -508
  215. package/dist/types/index.d.ts.map +1 -1
  216. package/dist/types/modules/coupon/services/coupon.service.d.ts +2 -2
  217. package/dist/types/modules/coupon/services/coupon.service.d.ts.map +1 -1
  218. package/dist/types/modules/coupon/services/global-coupon.service.d.ts.map +1 -1
  219. package/dist/types/modules/coupon/services/helper.service.d.ts.map +1 -1
  220. package/dist/types/modules/coupon/services/individual-user-coupon.service.d.ts.map +1 -1
  221. package/dist/types/modules/coupon/services/referral-reward-coupon.service.d.ts.map +1 -1
  222. package/dist/types/modules/limited-time-offer/campaign/campaign.router.d.ts +10 -21
  223. package/dist/types/modules/limited-time-offer/campaign/campaign.router.d.ts.map +1 -1
  224. package/dist/types/modules/limited-time-offer/campaign/limited-time-offer-campaign.validation.d.ts +154 -0
  225. package/dist/types/modules/limited-time-offer/campaign/limited-time-offer-campaign.validation.d.ts.map +1 -1
  226. package/dist/types/modules/limited-time-offer/campaign/services/limited-time-offer-campaign.service.d.ts +8 -2
  227. package/dist/types/modules/limited-time-offer/campaign/services/limited-time-offer-campaign.service.d.ts.map +1 -1
  228. package/dist/types/modules/limited-time-offer/limited-time-offer.router.d.ts +10 -21
  229. package/dist/types/modules/limited-time-offer/limited-time-offer.router.d.ts.map +1 -1
  230. package/dist/types/modules/tournament/config/config.builder.d.ts.map +1 -1
  231. package/dist/types/modules/tournament/config/config.repository.d.ts +4 -0
  232. package/dist/types/modules/tournament/config/config.repository.d.ts.map +1 -1
  233. package/dist/types/modules/tournament/config/config.router.d.ts +106 -218
  234. package/dist/types/modules/tournament/config/config.router.d.ts.map +1 -1
  235. package/dist/types/modules/tournament/config/config.service.d.ts +2 -2
  236. package/dist/types/modules/tournament/config/config.service.d.ts.map +1 -1
  237. package/dist/types/modules/tournament/config/config.validation.d.ts +446 -692
  238. package/dist/types/modules/tournament/config/config.validation.d.ts.map +1 -1
  239. package/dist/types/modules/tournament/match/events/evaluate-predictions.consumer.d.ts +2 -0
  240. package/dist/types/modules/tournament/match/events/evaluate-predictions.consumer.d.ts.map +1 -0
  241. package/dist/types/modules/tournament/match/events/evaluate-predictions.event.d.ts +15 -0
  242. package/dist/types/modules/tournament/match/events/evaluate-predictions.event.d.ts.map +1 -0
  243. package/dist/types/modules/tournament/match/match.builder.d.ts +5 -2
  244. package/dist/types/modules/tournament/match/match.builder.d.ts.map +1 -1
  245. package/dist/types/modules/tournament/match/match.repository.d.ts +2 -0
  246. package/dist/types/modules/tournament/match/match.repository.d.ts.map +1 -1
  247. package/dist/types/modules/tournament/match/match.router.d.ts +66 -191
  248. package/dist/types/modules/tournament/match/match.router.d.ts.map +1 -1
  249. package/dist/types/modules/tournament/match/match.service.d.ts +1 -12
  250. package/dist/types/modules/tournament/match/match.service.d.ts.map +1 -1
  251. package/dist/types/modules/tournament/match/match.validation.d.ts +96 -34
  252. package/dist/types/modules/tournament/match/match.validation.d.ts.map +1 -1
  253. package/dist/types/modules/tournament/notification/jobs/notification.producer.d.ts +2 -5
  254. package/dist/types/modules/tournament/notification/jobs/notification.producer.d.ts.map +1 -1
  255. package/dist/types/modules/tournament/notification/jobs/notification.worker.d.ts +2 -0
  256. package/dist/types/modules/tournament/notification/jobs/notification.worker.d.ts.map +1 -1
  257. package/dist/types/modules/tournament/notification/notification-template.repository.d.ts +8 -0
  258. package/dist/types/modules/tournament/notification/notification-template.repository.d.ts.map +1 -0
  259. package/dist/types/modules/tournament/notification/notification.config.d.ts +10 -0
  260. package/dist/types/modules/tournament/notification/notification.config.d.ts.map +1 -0
  261. package/dist/types/modules/tournament/notification/notification.schedule.config.d.ts +10 -0
  262. package/dist/types/modules/tournament/notification/notification.schedule.config.d.ts.map +1 -0
  263. package/dist/types/modules/tournament/notification/notification.scheduler.service.d.ts +4 -4
  264. package/dist/types/modules/tournament/notification/notification.scheduler.service.d.ts.map +1 -1
  265. package/dist/types/modules/tournament/notification/notification.service.d.ts +5 -3
  266. package/dist/types/modules/tournament/notification/notification.service.d.ts.map +1 -1
  267. package/dist/types/modules/tournament/participant/participant.repository.d.ts +1 -0
  268. package/dist/types/modules/tournament/participant/participant.repository.d.ts.map +1 -1
  269. package/dist/types/modules/tournament/participant/participant.router.d.ts +9 -9
  270. package/dist/types/modules/tournament/participant/participant.validation.d.ts +84 -84
  271. package/dist/types/modules/tournament/prediction/prediction.builder.d.ts.map +1 -1
  272. package/dist/types/modules/tournament/prediction/prediction.repository.d.ts +4 -1
  273. package/dist/types/modules/tournament/prediction/prediction.repository.d.ts.map +1 -1
  274. package/dist/types/modules/tournament/prediction/prediction.router.d.ts +12 -12
  275. package/dist/types/modules/tournament/prediction/prediction.service.d.ts +9 -0
  276. package/dist/types/modules/tournament/prediction/prediction.service.d.ts.map +1 -1
  277. package/dist/types/modules/tournament/prediction/prediction.validation.d.ts +64 -64
  278. package/dist/types/modules/tournament/reward/handlers/coupon-reward.handler.d.ts +3 -0
  279. package/dist/types/modules/tournament/reward/handlers/coupon-reward.handler.d.ts.map +1 -1
  280. package/dist/types/modules/tournament/reward/reward.builder.d.ts +6 -0
  281. package/dist/types/modules/tournament/reward/reward.builder.d.ts.map +1 -0
  282. package/dist/types/modules/tournament/reward/reward.interface.d.ts.map +1 -1
  283. package/dist/types/modules/tournament/reward/reward.repository.d.ts +8 -0
  284. package/dist/types/modules/tournament/reward/reward.repository.d.ts.map +1 -0
  285. package/dist/types/modules/tournament/reward/reward.service.d.ts.map +1 -1
  286. package/dist/types/modules/tournament/reward/reward.types.d.ts +1 -1
  287. package/dist/types/modules/tournament/reward/reward.types.d.ts.map +1 -1
  288. package/dist/types/modules/tournament/schedule/schedule.router.d.ts +27 -0
  289. package/dist/types/modules/tournament/schedule/schedule.router.d.ts.map +1 -0
  290. package/dist/types/modules/tournament/schedule/schedule.service.d.ts +10 -0
  291. package/dist/types/modules/tournament/schedule/schedule.service.d.ts.map +1 -0
  292. package/dist/types/modules/tournament/score/score.repository.d.ts +13 -0
  293. package/dist/types/modules/tournament/score/score.repository.d.ts.map +1 -0
  294. package/dist/types/modules/tournament/score/score.router.d.ts +98 -0
  295. package/dist/types/modules/tournament/score/score.router.d.ts.map +1 -0
  296. package/dist/types/modules/tournament/score/score.service.d.ts +13 -0
  297. package/dist/types/modules/tournament/score/score.service.d.ts.map +1 -0
  298. package/dist/types/modules/tournament/score/score.validation.d.ts +375 -0
  299. package/dist/types/modules/tournament/score/score.validation.d.ts.map +1 -0
  300. package/dist/types/modules/tournament/statistics/statistics.builder.d.ts +10 -0
  301. package/dist/types/modules/tournament/statistics/statistics.builder.d.ts.map +1 -0
  302. package/dist/types/modules/tournament/statistics/statistics.router.d.ts +80 -0
  303. package/dist/types/modules/tournament/statistics/statistics.router.d.ts.map +1 -0
  304. package/dist/types/modules/tournament/statistics/statistics.service.d.ts +11 -0
  305. package/dist/types/modules/tournament/statistics/statistics.service.d.ts.map +1 -0
  306. package/dist/types/modules/tournament/statistics/statistics.validation.d.ts +404 -0
  307. package/dist/types/modules/tournament/statistics/statistics.validation.d.ts.map +1 -0
  308. package/dist/types/modules/tournament/team/team.router.d.ts +31 -57
  309. package/dist/types/modules/tournament/team/team.router.d.ts.map +1 -1
  310. package/dist/types/modules/tournament/team/team.service.d.ts +1 -0
  311. package/dist/types/modules/tournament/team/team.service.d.ts.map +1 -1
  312. package/dist/types/modules/tournament/team/team.validation.d.ts +68 -18
  313. package/dist/types/modules/tournament/team/team.validation.d.ts.map +1 -1
  314. package/dist/types/modules/tournament/tournament.router.d.ts +466 -501
  315. package/dist/types/modules/tournament/tournament.router.d.ts.map +1 -1
  316. package/dist/types/modules/tournament/tournament.service.d.ts +8 -0
  317. package/dist/types/modules/tournament/tournament.service.d.ts.map +1 -0
  318. package/dist/types/modules/tournament/tournament.types.d.ts +9 -0
  319. package/dist/types/modules/tournament/tournament.types.d.ts.map +1 -0
  320. package/dist/types/modules/tournament/tournament.utils.d.ts +2 -0
  321. package/dist/types/modules/tournament/tournament.utils.d.ts.map +1 -0
  322. package/dist/types/modules/tournament/tournament.validation.d.ts +133 -0
  323. package/dist/types/modules/tournament/tournament.validation.d.ts.map +1 -0
  324. package/package.json +2 -2
@@ -1,226 +1,309 @@
1
1
  import { z } from 'zod';
2
2
  import { DTO } from '@lyxa.ai/core/dist/utilities/validation/global-validation';
3
- import { Status } from '@lyxa.ai/core/dist/utilities/enum';
3
+ import { Status, TournamentRewardType } from '@lyxa.ai/core/dist/utilities/enum';
4
+ import { TournamentTag } from '../tournament.types';
4
5
  export declare const CreateTournamentConfigSchema: z.ZodEffects<z.ZodObject<{
5
- tag: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
6
+ name: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
7
+ tag: z.ZodNativeEnum<typeof TournamentTag>;
6
8
  startDate: z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Date, string>, z.ZodDate]>, Date, string | Date>, Date, string | Date>;
7
9
  endDate: z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Date, string>, z.ZodDate]>, Date, string | Date>, Date, string | Date>;
8
10
  status: z.ZodOptional<z.ZodNativeEnum<typeof Status>>;
11
+ reward: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
12
+ type: z.ZodLiteral<TournamentRewardType.COUPON>;
13
+ couponNamePrefix: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
14
+ percentage: z.ZodNumber;
15
+ maxDiscountPerOrder: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
16
+ }, "strip", z.ZodTypeAny, {
17
+ type: TournamentRewardType.COUPON;
18
+ couponNamePrefix: string;
19
+ percentage: number;
20
+ maxDiscountPerOrder?: number | null | undefined;
21
+ }, {
22
+ type: TournamentRewardType.COUPON;
23
+ couponNamePrefix: string;
24
+ percentage: number;
25
+ maxDiscountPerOrder?: number | null | undefined;
26
+ }>, z.ZodObject<{
27
+ type: z.ZodLiteral<TournamentRewardType.FREE_DELIVERY>;
28
+ }, "strip", z.ZodTypeAny, {
29
+ type: TournamentRewardType.FREE_DELIVERY;
30
+ }, {
31
+ type: TournamentRewardType.FREE_DELIVERY;
32
+ }>]>>;
9
33
  }, "strip", z.ZodTypeAny, {
34
+ name: string;
10
35
  startDate: Date;
11
36
  endDate: Date;
12
- tag: string;
37
+ tag: TournamentTag;
13
38
  status?: Status | undefined;
39
+ reward?: {
40
+ type: TournamentRewardType.FREE_DELIVERY;
41
+ } | {
42
+ type: TournamentRewardType.COUPON;
43
+ couponNamePrefix: string;
44
+ percentage: number;
45
+ maxDiscountPerOrder?: number | null | undefined;
46
+ } | undefined;
14
47
  }, {
48
+ name: string;
15
49
  startDate: string | Date;
16
50
  endDate: string | Date;
17
- tag: string;
51
+ tag: TournamentTag;
18
52
  status?: Status | undefined;
53
+ reward?: {
54
+ type: TournamentRewardType.FREE_DELIVERY;
55
+ } | {
56
+ type: TournamentRewardType.COUPON;
57
+ couponNamePrefix: string;
58
+ percentage: number;
59
+ maxDiscountPerOrder?: number | null | undefined;
60
+ } | undefined;
19
61
  }>, {
62
+ name: string;
20
63
  startDate: Date;
21
64
  endDate: Date;
22
- tag: string;
65
+ tag: TournamentTag;
23
66
  status?: Status | undefined;
67
+ reward?: {
68
+ type: TournamentRewardType.FREE_DELIVERY;
69
+ } | {
70
+ type: TournamentRewardType.COUPON;
71
+ couponNamePrefix: string;
72
+ percentage: number;
73
+ maxDiscountPerOrder?: number | null | undefined;
74
+ } | undefined;
24
75
  }, {
76
+ name: string;
25
77
  startDate: string | Date;
26
78
  endDate: string | Date;
27
- tag: string;
79
+ tag: TournamentTag;
28
80
  status?: Status | undefined;
81
+ reward?: {
82
+ type: TournamentRewardType.FREE_DELIVERY;
83
+ } | {
84
+ type: TournamentRewardType.COUPON;
85
+ couponNamePrefix: string;
86
+ percentage: number;
87
+ maxDiscountPerOrder?: number | null | undefined;
88
+ } | undefined;
29
89
  }>;
30
90
  export declare const UpdateTournamentConfigSchema: z.ZodEffects<z.ZodObject<{
31
91
  _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>]>;
32
- tag: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
92
+ name: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
93
+ tag: z.ZodOptional<z.ZodNativeEnum<typeof TournamentTag>>;
33
94
  startDate: 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>>;
34
95
  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>>;
35
96
  status: z.ZodOptional<z.ZodNativeEnum<typeof Status>>;
97
+ reward: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
98
+ type: z.ZodLiteral<TournamentRewardType.COUPON>;
99
+ couponNamePrefix: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
100
+ percentage: z.ZodNumber;
101
+ maxDiscountPerOrder: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
102
+ }, "strip", z.ZodTypeAny, {
103
+ type: TournamentRewardType.COUPON;
104
+ couponNamePrefix: string;
105
+ percentage: number;
106
+ maxDiscountPerOrder?: number | null | undefined;
107
+ }, {
108
+ type: TournamentRewardType.COUPON;
109
+ couponNamePrefix: string;
110
+ percentage: number;
111
+ maxDiscountPerOrder?: number | null | undefined;
112
+ }>, z.ZodObject<{
113
+ type: z.ZodLiteral<TournamentRewardType.FREE_DELIVERY>;
114
+ }, "strip", z.ZodTypeAny, {
115
+ type: TournamentRewardType.FREE_DELIVERY;
116
+ }, {
117
+ type: TournamentRewardType.FREE_DELIVERY;
118
+ }>]>>;
36
119
  }, "strip", z.ZodTypeAny, {
37
120
  _id: import("mongoose").Types.ObjectId;
38
121
  status?: Status | undefined;
122
+ name?: string | undefined;
39
123
  startDate?: Date | undefined;
40
124
  endDate?: Date | undefined;
41
- tag?: string | undefined;
125
+ tag?: TournamentTag | undefined;
126
+ reward?: {
127
+ type: TournamentRewardType.FREE_DELIVERY;
128
+ } | {
129
+ type: TournamentRewardType.COUPON;
130
+ couponNamePrefix: string;
131
+ percentage: number;
132
+ maxDiscountPerOrder?: number | null | undefined;
133
+ } | undefined;
42
134
  }, {
43
135
  _id: string | import("mongoose").Types.ObjectId;
44
136
  status?: Status | undefined;
137
+ name?: string | undefined;
45
138
  startDate?: string | Date | undefined;
46
139
  endDate?: string | Date | undefined;
47
- tag?: string | undefined;
140
+ tag?: TournamentTag | undefined;
141
+ reward?: {
142
+ type: TournamentRewardType.FREE_DELIVERY;
143
+ } | {
144
+ type: TournamentRewardType.COUPON;
145
+ couponNamePrefix: string;
146
+ percentage: number;
147
+ maxDiscountPerOrder?: number | null | undefined;
148
+ } | undefined;
48
149
  }>, {
49
150
  _id: import("mongoose").Types.ObjectId;
50
151
  status?: Status | undefined;
152
+ name?: string | undefined;
51
153
  startDate?: Date | undefined;
52
154
  endDate?: Date | undefined;
53
- tag?: string | undefined;
155
+ tag?: TournamentTag | undefined;
156
+ reward?: {
157
+ type: TournamentRewardType.FREE_DELIVERY;
158
+ } | {
159
+ type: TournamentRewardType.COUPON;
160
+ couponNamePrefix: string;
161
+ percentage: number;
162
+ maxDiscountPerOrder?: number | null | undefined;
163
+ } | undefined;
54
164
  }, {
55
165
  _id: string | import("mongoose").Types.ObjectId;
56
166
  status?: Status | undefined;
167
+ name?: string | undefined;
57
168
  startDate?: string | Date | undefined;
58
169
  endDate?: string | Date | undefined;
59
- tag?: string | undefined;
170
+ tag?: TournamentTag | undefined;
171
+ reward?: {
172
+ type: TournamentRewardType.FREE_DELIVERY;
173
+ } | {
174
+ type: TournamentRewardType.COUPON;
175
+ couponNamePrefix: string;
176
+ percentage: number;
177
+ maxDiscountPerOrder?: number | null | undefined;
178
+ } | undefined;
60
179
  }>;
61
180
  export declare const TournamentConfigSchema: z.ZodObject<{
62
- _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>]>;
63
- tag: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
181
+ _id: 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>]>>;
182
+ name: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
183
+ tag: z.ZodDefault<z.ZodNativeEnum<typeof TournamentTag>>;
64
184
  startDate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
65
185
  endDate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
66
186
  status: z.ZodNativeEnum<typeof Status>;
67
- teams: z.ZodDefault<z.ZodArray<z.ZodObject<{
68
- _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>]>;
69
- name: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
70
- picture: z.ZodNullable<z.ZodOptional<z.ZodString>> | z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>>;
187
+ reward: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
188
+ type: z.ZodLiteral<TournamentRewardType.COUPON>;
189
+ couponNamePrefix: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
190
+ percentage: z.ZodOptional<z.ZodNumber>;
191
+ maxDiscountPerOrder: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
71
192
  }, "strip", z.ZodTypeAny, {
72
- name: string;
73
- _id: import("mongoose").Types.ObjectId;
74
- picture?: string | null | undefined;
193
+ type: TournamentRewardType.COUPON;
194
+ maxDiscountPerOrder?: number | null | undefined;
195
+ couponNamePrefix?: string | undefined;
196
+ percentage?: number | undefined;
75
197
  }, {
76
- name: string;
77
- _id: string | import("mongoose").Types.ObjectId;
78
- picture?: string | null | undefined;
79
- }>, "many">>;
80
- matches: z.ZodDefault<z.ZodArray<z.ZodObject<{
81
- _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>]>;
82
- additionalTag: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
83
- stage: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
84
- team1: z.ZodObject<{
85
- 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>]>;
86
- name: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
87
- }, "strip", z.ZodTypeAny, {
88
- name: string;
89
- teamId: import("mongoose").Types.ObjectId;
90
- }, {
91
- name: string;
92
- teamId: string | import("mongoose").Types.ObjectId;
93
- }>;
94
- team2: z.ZodObject<{
95
- 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>]>;
96
- name: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
97
- }, "strip", z.ZodTypeAny, {
98
- name: string;
99
- teamId: import("mongoose").Types.ObjectId;
100
- }, {
101
- name: string;
102
- teamId: string | import("mongoose").Types.ObjectId;
103
- }>;
104
- score: z.ZodObject<{
105
- team1: z.ZodNullable<z.ZodNumber>;
106
- team2: z.ZodNullable<z.ZodNumber>;
107
- }, "strip", z.ZodTypeAny, {
108
- team1: number | null;
109
- team2: number | null;
110
- }, {
111
- team1: number | null;
112
- team2: number | null;
113
- }>;
114
- 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>]>>>;
115
- startingDate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
116
- endDate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
198
+ type: TournamentRewardType.COUPON;
199
+ maxDiscountPerOrder?: number | null | undefined;
200
+ couponNamePrefix?: string | undefined;
201
+ percentage?: number | undefined;
202
+ }>, z.ZodObject<{
203
+ type: z.ZodLiteral<TournamentRewardType.FREE_DELIVERY>;
117
204
  }, "strip", z.ZodTypeAny, {
118
- _id: import("mongoose").Types.ObjectId;
119
- team1: {
120
- name: string;
121
- teamId: import("mongoose").Types.ObjectId;
122
- };
123
- team2: {
124
- name: string;
125
- teamId: import("mongoose").Types.ObjectId;
126
- };
127
- score: {
128
- team1: number | null;
129
- team2: number | null;
130
- };
131
- stage: string;
132
- endDate?: Date | null | undefined;
133
- startingDate?: Date | null | undefined;
134
- additionalTag?: string | undefined;
135
- winnerId?: import("mongoose").Types.ObjectId | null | undefined;
205
+ type: TournamentRewardType.FREE_DELIVERY;
136
206
  }, {
137
- _id: string | import("mongoose").Types.ObjectId;
138
- team1: {
139
- name: string;
140
- teamId: string | import("mongoose").Types.ObjectId;
141
- };
142
- team2: {
143
- name: string;
144
- teamId: string | import("mongoose").Types.ObjectId;
145
- };
146
- score: {
147
- team1: number | null;
148
- team2: number | null;
149
- };
150
- stage: string;
151
- endDate?: Date | null | undefined;
152
- startingDate?: Date | null | undefined;
153
- additionalTag?: string | undefined;
154
- winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
155
- }>, "many">>;
207
+ type: TournamentRewardType.FREE_DELIVERY;
208
+ }>]>>;
156
209
  createdAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
157
210
  updatedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
158
211
  }, "strip", z.ZodTypeAny, {
159
212
  status: Status;
160
- _id: import("mongoose").Types.ObjectId;
161
- tag: string;
162
- matches: {
163
- _id: import("mongoose").Types.ObjectId;
164
- team1: {
165
- name: string;
166
- teamId: import("mongoose").Types.ObjectId;
167
- };
168
- team2: {
169
- name: string;
170
- teamId: import("mongoose").Types.ObjectId;
171
- };
172
- score: {
173
- team1: number | null;
174
- team2: number | null;
175
- };
176
- stage: string;
177
- endDate?: Date | null | undefined;
178
- startingDate?: Date | null | undefined;
179
- additionalTag?: string | undefined;
180
- winnerId?: import("mongoose").Types.ObjectId | null | undefined;
181
- }[];
182
- teams: {
183
- name: string;
184
- _id: import("mongoose").Types.ObjectId;
185
- picture?: string | null | undefined;
186
- }[];
213
+ name: string;
214
+ tag: TournamentTag;
215
+ _id?: import("mongoose").Types.ObjectId | undefined;
187
216
  createdAt?: Date | null | undefined;
188
217
  startDate?: Date | null | undefined;
189
218
  endDate?: Date | null | undefined;
190
219
  updatedAt?: Date | null | undefined;
220
+ reward?: {
221
+ type: TournamentRewardType.FREE_DELIVERY;
222
+ } | {
223
+ type: TournamentRewardType.COUPON;
224
+ maxDiscountPerOrder?: number | null | undefined;
225
+ couponNamePrefix?: string | undefined;
226
+ percentage?: number | undefined;
227
+ } | undefined;
191
228
  }, {
192
229
  status: Status;
193
- _id: string | import("mongoose").Types.ObjectId;
194
- tag: string;
230
+ name: string;
231
+ _id?: string | import("mongoose").Types.ObjectId | undefined;
195
232
  createdAt?: Date | null | undefined;
196
233
  startDate?: Date | null | undefined;
197
234
  endDate?: Date | null | undefined;
198
235
  updatedAt?: Date | null | undefined;
199
- matches?: {
200
- _id: string | import("mongoose").Types.ObjectId;
201
- team1: {
202
- name: string;
203
- teamId: string | import("mongoose").Types.ObjectId;
204
- };
205
- team2: {
206
- name: string;
207
- teamId: string | import("mongoose").Types.ObjectId;
208
- };
209
- score: {
210
- team1: number | null;
211
- team2: number | null;
212
- };
213
- stage: string;
214
- endDate?: Date | null | undefined;
215
- startingDate?: Date | null | undefined;
216
- additionalTag?: string | undefined;
217
- winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
218
- }[] | undefined;
219
- teams?: {
220
- name: string;
221
- _id: string | import("mongoose").Types.ObjectId;
222
- picture?: string | null | undefined;
223
- }[] | undefined;
236
+ tag?: TournamentTag | undefined;
237
+ reward?: {
238
+ type: TournamentRewardType.FREE_DELIVERY;
239
+ } | {
240
+ type: TournamentRewardType.COUPON;
241
+ maxDiscountPerOrder?: number | null | undefined;
242
+ couponNamePrefix?: string | undefined;
243
+ percentage?: number | undefined;
244
+ } | undefined;
245
+ }>;
246
+ export declare const TournamentConfigListItemSchema: z.ZodObject<{
247
+ _id: 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>]>>;
248
+ name: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
249
+ tag: z.ZodDefault<z.ZodNativeEnum<typeof TournamentTag>>;
250
+ startDate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
251
+ endDate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
252
+ status: z.ZodNativeEnum<typeof Status>;
253
+ createdAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
254
+ updatedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
255
+ } & {
256
+ reward: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
257
+ type: z.ZodLiteral<TournamentRewardType.COUPON>;
258
+ percentage: z.ZodOptional<z.ZodNumber>;
259
+ maxDiscountPerOrder: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
260
+ }, "strip", z.ZodTypeAny, {
261
+ type: TournamentRewardType.COUPON;
262
+ maxDiscountPerOrder?: number | null | undefined;
263
+ percentage?: number | undefined;
264
+ }, {
265
+ type: TournamentRewardType.COUPON;
266
+ maxDiscountPerOrder?: number | null | undefined;
267
+ percentage?: number | undefined;
268
+ }>, z.ZodObject<{
269
+ type: z.ZodLiteral<TournamentRewardType.FREE_DELIVERY>;
270
+ }, "strip", z.ZodTypeAny, {
271
+ type: TournamentRewardType.FREE_DELIVERY;
272
+ }, {
273
+ type: TournamentRewardType.FREE_DELIVERY;
274
+ }>]>>;
275
+ }, "strip", z.ZodTypeAny, {
276
+ status: Status;
277
+ name: string;
278
+ tag: TournamentTag;
279
+ _id?: import("mongoose").Types.ObjectId | undefined;
280
+ createdAt?: Date | null | undefined;
281
+ startDate?: Date | null | undefined;
282
+ endDate?: Date | null | undefined;
283
+ updatedAt?: Date | null | undefined;
284
+ reward?: {
285
+ type: TournamentRewardType.FREE_DELIVERY;
286
+ } | {
287
+ type: TournamentRewardType.COUPON;
288
+ maxDiscountPerOrder?: number | null | undefined;
289
+ percentage?: number | undefined;
290
+ } | undefined;
291
+ }, {
292
+ status: Status;
293
+ name: string;
294
+ _id?: string | import("mongoose").Types.ObjectId | undefined;
295
+ createdAt?: Date | null | undefined;
296
+ startDate?: Date | null | undefined;
297
+ endDate?: Date | null | undefined;
298
+ updatedAt?: Date | null | undefined;
299
+ tag?: TournamentTag | undefined;
300
+ reward?: {
301
+ type: TournamentRewardType.FREE_DELIVERY;
302
+ } | {
303
+ type: TournamentRewardType.COUPON;
304
+ maxDiscountPerOrder?: number | null | undefined;
305
+ percentage?: number | undefined;
306
+ } | undefined;
224
307
  }>;
225
308
  export declare const TournamentConfigResponseSchema: z.ZodObject<{
226
309
  success: z.ZodBoolean;
@@ -244,105 +327,57 @@ export declare const TournamentConfigResponseSchema: z.ZodObject<{
244
327
  }>>;
245
328
  documents: z.ZodArray<z.ZodType<{
246
329
  status: Status;
247
- _id: string | import("mongoose").Types.ObjectId;
248
- tag: string;
330
+ name: string;
331
+ _id?: string | import("mongoose").Types.ObjectId | undefined;
249
332
  createdAt?: Date | null | undefined;
250
333
  startDate?: Date | null | undefined;
251
334
  endDate?: Date | null | undefined;
252
335
  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;
336
+ tag?: TournamentTag | undefined;
337
+ reward?: {
338
+ type: TournamentRewardType.FREE_DELIVERY;
339
+ } | {
340
+ type: TournamentRewardType.COUPON;
341
+ maxDiscountPerOrder?: number | null | undefined;
342
+ couponNamePrefix?: string | undefined;
343
+ percentage?: number | undefined;
344
+ } | undefined;
278
345
  }, z.ZodTypeDef, {
279
346
  status: Status;
280
- _id: string | import("mongoose").Types.ObjectId;
281
- tag: string;
347
+ name: string;
348
+ _id?: string | import("mongoose").Types.ObjectId | undefined;
282
349
  createdAt?: Date | null | undefined;
283
350
  startDate?: Date | null | undefined;
284
351
  endDate?: Date | null | undefined;
285
352
  updatedAt?: Date | null | undefined;
286
- matches?: {
287
- _id: string | import("mongoose").Types.ObjectId;
288
- team1: {
289
- name: string;
290
- teamId: string | import("mongoose").Types.ObjectId;
291
- };
292
- team2: {
293
- name: string;
294
- teamId: string | import("mongoose").Types.ObjectId;
295
- };
296
- score: {
297
- team1: number | null;
298
- team2: number | null;
299
- };
300
- stage: string;
301
- endDate?: Date | null | undefined;
302
- startingDate?: Date | null | undefined;
303
- additionalTag?: string | undefined;
304
- winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
305
- }[] | undefined;
306
- teams?: {
307
- name: string;
308
- _id: string | import("mongoose").Types.ObjectId;
309
- picture?: string | null | undefined;
310
- }[] | undefined;
353
+ tag?: TournamentTag | undefined;
354
+ reward?: {
355
+ type: TournamentRewardType.FREE_DELIVERY;
356
+ } | {
357
+ type: TournamentRewardType.COUPON;
358
+ maxDiscountPerOrder?: number | null | undefined;
359
+ couponNamePrefix?: string | undefined;
360
+ percentage?: number | undefined;
361
+ } | undefined;
311
362
  }>, "many">;
312
363
  }, "strip", z.ZodTypeAny, {
313
364
  documents: {
314
365
  status: Status;
315
- _id: string | import("mongoose").Types.ObjectId;
316
- tag: string;
366
+ name: string;
367
+ _id?: string | import("mongoose").Types.ObjectId | undefined;
317
368
  createdAt?: Date | null | undefined;
318
369
  startDate?: Date | null | undefined;
319
370
  endDate?: Date | null | undefined;
320
371
  updatedAt?: Date | null | undefined;
321
- matches?: {
322
- _id: string | import("mongoose").Types.ObjectId;
323
- team1: {
324
- name: string;
325
- teamId: string | import("mongoose").Types.ObjectId;
326
- };
327
- team2: {
328
- name: string;
329
- teamId: string | import("mongoose").Types.ObjectId;
330
- };
331
- score: {
332
- team1: number | null;
333
- team2: number | null;
334
- };
335
- stage: string;
336
- endDate?: Date | null | undefined;
337
- startingDate?: Date | null | undefined;
338
- additionalTag?: string | undefined;
339
- winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
340
- }[] | undefined;
341
- teams?: {
342
- name: string;
343
- _id: string | import("mongoose").Types.ObjectId;
344
- picture?: string | null | undefined;
345
- }[] | undefined;
372
+ tag?: TournamentTag | undefined;
373
+ reward?: {
374
+ type: TournamentRewardType.FREE_DELIVERY;
375
+ } | {
376
+ type: TournamentRewardType.COUPON;
377
+ maxDiscountPerOrder?: number | null | undefined;
378
+ couponNamePrefix?: string | undefined;
379
+ percentage?: number | undefined;
380
+ } | undefined;
346
381
  }[];
347
382
  metadata?: {
348
383
  page: number;
@@ -353,37 +388,21 @@ export declare const TournamentConfigResponseSchema: z.ZodObject<{
353
388
  }, {
354
389
  documents: {
355
390
  status: Status;
356
- _id: string | import("mongoose").Types.ObjectId;
357
- tag: string;
391
+ name: string;
392
+ _id?: string | import("mongoose").Types.ObjectId | undefined;
358
393
  createdAt?: Date | null | undefined;
359
394
  startDate?: Date | null | undefined;
360
395
  endDate?: Date | null | undefined;
361
396
  updatedAt?: Date | null | undefined;
362
- matches?: {
363
- _id: string | import("mongoose").Types.ObjectId;
364
- team1: {
365
- name: string;
366
- teamId: string | import("mongoose").Types.ObjectId;
367
- };
368
- team2: {
369
- name: string;
370
- teamId: string | import("mongoose").Types.ObjectId;
371
- };
372
- score: {
373
- team1: number | null;
374
- team2: number | null;
375
- };
376
- stage: string;
377
- endDate?: Date | null | undefined;
378
- startingDate?: Date | null | undefined;
379
- additionalTag?: string | undefined;
380
- winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
381
- }[] | undefined;
382
- teams?: {
383
- name: string;
384
- _id: string | import("mongoose").Types.ObjectId;
385
- picture?: string | null | undefined;
386
- }[] | undefined;
397
+ tag?: TournamentTag | undefined;
398
+ reward?: {
399
+ type: TournamentRewardType.FREE_DELIVERY;
400
+ } | {
401
+ type: TournamentRewardType.COUPON;
402
+ maxDiscountPerOrder?: number | null | undefined;
403
+ couponNamePrefix?: string | undefined;
404
+ percentage?: number | undefined;
405
+ } | undefined;
387
406
  }[];
388
407
  metadata?: {
389
408
  page: number;
@@ -393,141 +412,77 @@ export declare const TournamentConfigResponseSchema: z.ZodObject<{
393
412
  } | undefined;
394
413
  }>, z.ZodType<{
395
414
  status: Status;
396
- _id: string | import("mongoose").Types.ObjectId;
397
- tag: string;
415
+ name: string;
416
+ _id?: string | import("mongoose").Types.ObjectId | undefined;
398
417
  createdAt?: Date | null | undefined;
399
418
  startDate?: Date | null | undefined;
400
419
  endDate?: Date | null | undefined;
401
420
  updatedAt?: Date | null | undefined;
402
- matches?: {
403
- _id: string | import("mongoose").Types.ObjectId;
404
- team1: {
405
- name: string;
406
- teamId: string | import("mongoose").Types.ObjectId;
407
- };
408
- team2: {
409
- name: string;
410
- teamId: string | import("mongoose").Types.ObjectId;
411
- };
412
- score: {
413
- team1: number | null;
414
- team2: number | null;
415
- };
416
- stage: string;
417
- endDate?: Date | null | undefined;
418
- startingDate?: Date | null | undefined;
419
- additionalTag?: string | undefined;
420
- winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
421
- }[] | undefined;
422
- teams?: {
423
- name: string;
424
- _id: string | import("mongoose").Types.ObjectId;
425
- picture?: string | null | undefined;
426
- }[] | undefined;
421
+ tag?: TournamentTag | undefined;
422
+ reward?: {
423
+ type: TournamentRewardType.FREE_DELIVERY;
424
+ } | {
425
+ type: TournamentRewardType.COUPON;
426
+ maxDiscountPerOrder?: number | null | undefined;
427
+ couponNamePrefix?: string | undefined;
428
+ percentage?: number | undefined;
429
+ } | undefined;
427
430
  }, z.ZodTypeDef, {
428
431
  status: Status;
429
- _id: string | import("mongoose").Types.ObjectId;
430
- tag: string;
432
+ name: string;
433
+ _id?: string | import("mongoose").Types.ObjectId | undefined;
431
434
  createdAt?: Date | null | undefined;
432
435
  startDate?: Date | null | undefined;
433
436
  endDate?: Date | null | undefined;
434
437
  updatedAt?: Date | null | undefined;
435
- matches?: {
436
- _id: string | import("mongoose").Types.ObjectId;
437
- team1: {
438
- name: string;
439
- teamId: string | import("mongoose").Types.ObjectId;
440
- };
441
- team2: {
442
- name: string;
443
- teamId: string | import("mongoose").Types.ObjectId;
444
- };
445
- score: {
446
- team1: number | null;
447
- team2: number | null;
448
- };
449
- stage: string;
450
- endDate?: Date | null | undefined;
451
- startingDate?: Date | null | undefined;
452
- additionalTag?: string | undefined;
453
- winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
454
- }[] | undefined;
455
- teams?: {
456
- name: string;
457
- _id: string | import("mongoose").Types.ObjectId;
458
- picture?: string | null | undefined;
459
- }[] | undefined;
438
+ tag?: TournamentTag | undefined;
439
+ reward?: {
440
+ type: TournamentRewardType.FREE_DELIVERY;
441
+ } | {
442
+ type: TournamentRewardType.COUPON;
443
+ maxDiscountPerOrder?: number | null | undefined;
444
+ couponNamePrefix?: string | undefined;
445
+ percentage?: number | undefined;
446
+ } | undefined;
460
447
  }>]>>;
461
448
  }, "strip", z.ZodTypeAny, {
462
449
  message: string;
463
450
  success: boolean;
464
451
  data?: {
465
452
  status: Status;
466
- _id: string | import("mongoose").Types.ObjectId;
467
- tag: string;
453
+ name: string;
454
+ _id?: string | import("mongoose").Types.ObjectId | undefined;
468
455
  createdAt?: Date | null | undefined;
469
456
  startDate?: Date | null | undefined;
470
457
  endDate?: Date | null | undefined;
471
458
  updatedAt?: Date | null | undefined;
472
- matches?: {
473
- _id: string | import("mongoose").Types.ObjectId;
474
- team1: {
475
- name: string;
476
- teamId: string | import("mongoose").Types.ObjectId;
477
- };
478
- team2: {
479
- name: string;
480
- teamId: string | import("mongoose").Types.ObjectId;
481
- };
482
- score: {
483
- team1: number | null;
484
- team2: number | null;
485
- };
486
- stage: string;
487
- endDate?: Date | null | undefined;
488
- startingDate?: Date | null | undefined;
489
- additionalTag?: string | undefined;
490
- winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
491
- }[] | undefined;
492
- teams?: {
493
- name: string;
494
- _id: string | import("mongoose").Types.ObjectId;
495
- picture?: string | null | undefined;
496
- }[] | undefined;
459
+ tag?: TournamentTag | undefined;
460
+ reward?: {
461
+ type: TournamentRewardType.FREE_DELIVERY;
462
+ } | {
463
+ type: TournamentRewardType.COUPON;
464
+ maxDiscountPerOrder?: number | null | undefined;
465
+ couponNamePrefix?: string | undefined;
466
+ percentage?: number | undefined;
467
+ } | undefined;
497
468
  } | {
498
469
  documents: {
499
470
  status: Status;
500
- _id: string | import("mongoose").Types.ObjectId;
501
- tag: string;
471
+ name: string;
472
+ _id?: string | import("mongoose").Types.ObjectId | undefined;
502
473
  createdAt?: Date | null | undefined;
503
474
  startDate?: Date | null | undefined;
504
475
  endDate?: Date | null | undefined;
505
476
  updatedAt?: Date | null | undefined;
506
- matches?: {
507
- _id: string | import("mongoose").Types.ObjectId;
508
- team1: {
509
- name: string;
510
- teamId: string | import("mongoose").Types.ObjectId;
511
- };
512
- team2: {
513
- name: string;
514
- teamId: string | import("mongoose").Types.ObjectId;
515
- };
516
- score: {
517
- team1: number | null;
518
- team2: number | null;
519
- };
520
- stage: string;
521
- endDate?: Date | null | undefined;
522
- startingDate?: Date | null | undefined;
523
- additionalTag?: string | undefined;
524
- winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
525
- }[] | undefined;
526
- teams?: {
527
- name: string;
528
- _id: string | import("mongoose").Types.ObjectId;
529
- picture?: string | null | undefined;
530
- }[] | undefined;
477
+ tag?: TournamentTag | undefined;
478
+ reward?: {
479
+ type: TournamentRewardType.FREE_DELIVERY;
480
+ } | {
481
+ type: TournamentRewardType.COUPON;
482
+ maxDiscountPerOrder?: number | null | undefined;
483
+ couponNamePrefix?: string | undefined;
484
+ percentage?: number | undefined;
485
+ } | undefined;
531
486
  }[];
532
487
  metadata?: {
533
488
  page: number;
@@ -541,71 +496,39 @@ export declare const TournamentConfigResponseSchema: z.ZodObject<{
541
496
  success: boolean;
542
497
  data?: {
543
498
  status: Status;
544
- _id: string | import("mongoose").Types.ObjectId;
545
- tag: string;
499
+ name: string;
500
+ _id?: string | import("mongoose").Types.ObjectId | undefined;
546
501
  createdAt?: Date | null | undefined;
547
502
  startDate?: Date | null | undefined;
548
503
  endDate?: Date | null | undefined;
549
504
  updatedAt?: Date | null | undefined;
550
- matches?: {
551
- _id: string | import("mongoose").Types.ObjectId;
552
- team1: {
553
- name: string;
554
- teamId: string | import("mongoose").Types.ObjectId;
555
- };
556
- team2: {
557
- name: string;
558
- teamId: string | import("mongoose").Types.ObjectId;
559
- };
560
- score: {
561
- team1: number | null;
562
- team2: number | null;
563
- };
564
- stage: string;
565
- endDate?: Date | null | undefined;
566
- startingDate?: Date | null | undefined;
567
- additionalTag?: string | undefined;
568
- winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
569
- }[] | undefined;
570
- teams?: {
571
- name: string;
572
- _id: string | import("mongoose").Types.ObjectId;
573
- picture?: string | null | undefined;
574
- }[] | undefined;
505
+ tag?: TournamentTag | undefined;
506
+ reward?: {
507
+ type: TournamentRewardType.FREE_DELIVERY;
508
+ } | {
509
+ type: TournamentRewardType.COUPON;
510
+ maxDiscountPerOrder?: number | null | undefined;
511
+ couponNamePrefix?: string | undefined;
512
+ percentage?: number | undefined;
513
+ } | undefined;
575
514
  } | {
576
515
  documents: {
577
516
  status: Status;
578
- _id: string | import("mongoose").Types.ObjectId;
579
- tag: string;
517
+ name: string;
518
+ _id?: string | import("mongoose").Types.ObjectId | undefined;
580
519
  createdAt?: Date | null | undefined;
581
520
  startDate?: Date | null | undefined;
582
521
  endDate?: Date | null | undefined;
583
522
  updatedAt?: Date | null | undefined;
584
- matches?: {
585
- _id: string | import("mongoose").Types.ObjectId;
586
- team1: {
587
- name: string;
588
- teamId: string | import("mongoose").Types.ObjectId;
589
- };
590
- team2: {
591
- name: string;
592
- teamId: string | import("mongoose").Types.ObjectId;
593
- };
594
- score: {
595
- team1: number | null;
596
- team2: number | null;
597
- };
598
- stage: string;
599
- endDate?: Date | null | undefined;
600
- startingDate?: Date | null | undefined;
601
- additionalTag?: string | undefined;
602
- winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
603
- }[] | undefined;
604
- teams?: {
605
- name: string;
606
- _id: string | import("mongoose").Types.ObjectId;
607
- picture?: string | null | undefined;
608
- }[] | undefined;
523
+ tag?: TournamentTag | undefined;
524
+ reward?: {
525
+ type: TournamentRewardType.FREE_DELIVERY;
526
+ } | {
527
+ type: TournamentRewardType.COUPON;
528
+ maxDiscountPerOrder?: number | null | undefined;
529
+ couponNamePrefix?: string | undefined;
530
+ percentage?: number | undefined;
531
+ } | undefined;
609
532
  }[];
610
533
  metadata?: {
611
534
  page: number;
@@ -637,105 +560,54 @@ export declare const TournamentConfigListResponseSchema: z.ZodObject<{
637
560
  }>>;
638
561
  documents: z.ZodArray<z.ZodType<{
639
562
  status: Status;
640
- _id: string | import("mongoose").Types.ObjectId;
641
- tag: string;
563
+ name: string;
564
+ _id?: string | import("mongoose").Types.ObjectId | undefined;
642
565
  createdAt?: Date | null | undefined;
643
566
  startDate?: Date | null | undefined;
644
567
  endDate?: Date | null | undefined;
645
568
  updatedAt?: Date | null | undefined;
646
- matches?: {
647
- _id: string | import("mongoose").Types.ObjectId;
648
- team1: {
649
- name: string;
650
- teamId: string | import("mongoose").Types.ObjectId;
651
- };
652
- team2: {
653
- name: string;
654
- teamId: string | import("mongoose").Types.ObjectId;
655
- };
656
- score: {
657
- team1: number | null;
658
- team2: number | null;
659
- };
660
- stage: string;
661
- endDate?: Date | null | undefined;
662
- startingDate?: Date | null | undefined;
663
- additionalTag?: string | undefined;
664
- winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
665
- }[] | undefined;
666
- teams?: {
667
- name: string;
668
- _id: string | import("mongoose").Types.ObjectId;
669
- picture?: string | null | undefined;
670
- }[] | undefined;
569
+ tag?: TournamentTag | undefined;
570
+ reward?: {
571
+ type: TournamentRewardType.FREE_DELIVERY;
572
+ } | {
573
+ type: TournamentRewardType.COUPON;
574
+ maxDiscountPerOrder?: number | null | undefined;
575
+ percentage?: number | undefined;
576
+ } | undefined;
671
577
  }[], z.ZodTypeDef, {
672
578
  status: Status;
673
- _id: string | import("mongoose").Types.ObjectId;
674
- tag: string;
579
+ name: string;
580
+ _id?: string | import("mongoose").Types.ObjectId | undefined;
675
581
  createdAt?: Date | null | undefined;
676
582
  startDate?: Date | null | undefined;
677
583
  endDate?: Date | null | undefined;
678
584
  updatedAt?: Date | null | undefined;
679
- matches?: {
680
- _id: string | import("mongoose").Types.ObjectId;
681
- team1: {
682
- name: string;
683
- teamId: string | import("mongoose").Types.ObjectId;
684
- };
685
- team2: {
686
- name: string;
687
- teamId: string | import("mongoose").Types.ObjectId;
688
- };
689
- score: {
690
- team1: number | null;
691
- team2: number | null;
692
- };
693
- stage: string;
694
- endDate?: Date | null | undefined;
695
- startingDate?: Date | null | undefined;
696
- additionalTag?: string | undefined;
697
- winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
698
- }[] | undefined;
699
- teams?: {
700
- name: string;
701
- _id: string | import("mongoose").Types.ObjectId;
702
- picture?: string | null | undefined;
703
- }[] | undefined;
585
+ tag?: TournamentTag | undefined;
586
+ reward?: {
587
+ type: TournamentRewardType.FREE_DELIVERY;
588
+ } | {
589
+ type: TournamentRewardType.COUPON;
590
+ maxDiscountPerOrder?: number | null | undefined;
591
+ percentage?: number | undefined;
592
+ } | undefined;
704
593
  }[]>, "many">;
705
594
  }, "strip", z.ZodTypeAny, {
706
595
  documents: {
707
596
  status: Status;
708
- _id: string | import("mongoose").Types.ObjectId;
709
- tag: string;
597
+ name: string;
598
+ _id?: string | import("mongoose").Types.ObjectId | undefined;
710
599
  createdAt?: Date | null | undefined;
711
600
  startDate?: Date | null | undefined;
712
601
  endDate?: Date | null | undefined;
713
602
  updatedAt?: Date | null | undefined;
714
- matches?: {
715
- _id: string | import("mongoose").Types.ObjectId;
716
- team1: {
717
- name: string;
718
- teamId: string | import("mongoose").Types.ObjectId;
719
- };
720
- team2: {
721
- name: string;
722
- teamId: string | import("mongoose").Types.ObjectId;
723
- };
724
- score: {
725
- team1: number | null;
726
- team2: number | null;
727
- };
728
- stage: string;
729
- endDate?: Date | null | undefined;
730
- startingDate?: Date | null | undefined;
731
- additionalTag?: string | undefined;
732
- winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
733
- }[] | undefined;
734
- teams?: {
735
- name: string;
736
- _id: string | import("mongoose").Types.ObjectId;
737
- picture?: string | null | undefined;
738
- }[] | undefined;
603
+ tag?: TournamentTag | undefined;
604
+ reward?: {
605
+ type: TournamentRewardType.FREE_DELIVERY;
606
+ } | {
607
+ type: TournamentRewardType.COUPON;
608
+ maxDiscountPerOrder?: number | null | undefined;
609
+ percentage?: number | undefined;
610
+ } | undefined;
739
611
  }[][];
740
612
  metadata?: {
741
613
  page: number;
@@ -746,37 +618,20 @@ export declare const TournamentConfigListResponseSchema: z.ZodObject<{
746
618
  }, {
747
619
  documents: {
748
620
  status: Status;
749
- _id: string | import("mongoose").Types.ObjectId;
750
- tag: string;
621
+ name: string;
622
+ _id?: string | import("mongoose").Types.ObjectId | undefined;
751
623
  createdAt?: Date | null | undefined;
752
624
  startDate?: Date | null | undefined;
753
625
  endDate?: Date | null | undefined;
754
626
  updatedAt?: Date | null | undefined;
755
- matches?: {
756
- _id: string | import("mongoose").Types.ObjectId;
757
- team1: {
758
- name: string;
759
- teamId: string | import("mongoose").Types.ObjectId;
760
- };
761
- team2: {
762
- name: string;
763
- teamId: string | import("mongoose").Types.ObjectId;
764
- };
765
- score: {
766
- team1: number | null;
767
- team2: number | null;
768
- };
769
- stage: string;
770
- endDate?: Date | null | undefined;
771
- startingDate?: Date | null | undefined;
772
- additionalTag?: string | undefined;
773
- winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
774
- }[] | undefined;
775
- teams?: {
776
- name: string;
777
- _id: string | import("mongoose").Types.ObjectId;
778
- picture?: string | null | undefined;
779
- }[] | undefined;
627
+ tag?: TournamentTag | undefined;
628
+ reward?: {
629
+ type: TournamentRewardType.FREE_DELIVERY;
630
+ } | {
631
+ type: TournamentRewardType.COUPON;
632
+ maxDiscountPerOrder?: number | null | undefined;
633
+ percentage?: number | undefined;
634
+ } | undefined;
780
635
  }[][];
781
636
  metadata?: {
782
637
  page: number;
@@ -786,141 +641,73 @@ export declare const TournamentConfigListResponseSchema: z.ZodObject<{
786
641
  } | undefined;
787
642
  }>, z.ZodType<{
788
643
  status: Status;
789
- _id: string | import("mongoose").Types.ObjectId;
790
- tag: string;
644
+ name: string;
645
+ _id?: string | import("mongoose").Types.ObjectId | undefined;
791
646
  createdAt?: Date | null | undefined;
792
647
  startDate?: Date | null | undefined;
793
648
  endDate?: Date | null | undefined;
794
649
  updatedAt?: Date | null | undefined;
795
- matches?: {
796
- _id: string | import("mongoose").Types.ObjectId;
797
- team1: {
798
- name: string;
799
- teamId: string | import("mongoose").Types.ObjectId;
800
- };
801
- team2: {
802
- name: string;
803
- teamId: string | import("mongoose").Types.ObjectId;
804
- };
805
- score: {
806
- team1: number | null;
807
- team2: number | null;
808
- };
809
- stage: string;
810
- endDate?: Date | null | undefined;
811
- startingDate?: Date | null | undefined;
812
- additionalTag?: string | undefined;
813
- winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
814
- }[] | undefined;
815
- teams?: {
816
- name: string;
817
- _id: string | import("mongoose").Types.ObjectId;
818
- picture?: string | null | undefined;
819
- }[] | undefined;
650
+ tag?: TournamentTag | undefined;
651
+ reward?: {
652
+ type: TournamentRewardType.FREE_DELIVERY;
653
+ } | {
654
+ type: TournamentRewardType.COUPON;
655
+ maxDiscountPerOrder?: number | null | undefined;
656
+ percentage?: number | undefined;
657
+ } | undefined;
820
658
  }[], z.ZodTypeDef, {
821
659
  status: Status;
822
- _id: string | import("mongoose").Types.ObjectId;
823
- tag: string;
660
+ name: string;
661
+ _id?: string | import("mongoose").Types.ObjectId | undefined;
824
662
  createdAt?: Date | null | undefined;
825
663
  startDate?: Date | null | undefined;
826
664
  endDate?: Date | null | undefined;
827
665
  updatedAt?: Date | null | undefined;
828
- matches?: {
829
- _id: string | import("mongoose").Types.ObjectId;
830
- team1: {
831
- name: string;
832
- teamId: string | import("mongoose").Types.ObjectId;
833
- };
834
- team2: {
835
- name: string;
836
- teamId: string | import("mongoose").Types.ObjectId;
837
- };
838
- score: {
839
- team1: number | null;
840
- team2: number | null;
841
- };
842
- stage: string;
843
- endDate?: Date | null | undefined;
844
- startingDate?: Date | null | undefined;
845
- additionalTag?: string | undefined;
846
- winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
847
- }[] | undefined;
848
- teams?: {
849
- name: string;
850
- _id: string | import("mongoose").Types.ObjectId;
851
- picture?: string | null | undefined;
852
- }[] | undefined;
666
+ tag?: TournamentTag | undefined;
667
+ reward?: {
668
+ type: TournamentRewardType.FREE_DELIVERY;
669
+ } | {
670
+ type: TournamentRewardType.COUPON;
671
+ maxDiscountPerOrder?: number | null | undefined;
672
+ percentage?: number | undefined;
673
+ } | undefined;
853
674
  }[]>]>>;
854
675
  }, "strip", z.ZodTypeAny, {
855
676
  message: string;
856
677
  success: boolean;
857
678
  data?: {
858
679
  status: Status;
859
- _id: string | import("mongoose").Types.ObjectId;
860
- tag: string;
680
+ name: string;
681
+ _id?: string | import("mongoose").Types.ObjectId | undefined;
861
682
  createdAt?: Date | null | undefined;
862
683
  startDate?: Date | null | undefined;
863
684
  endDate?: Date | null | undefined;
864
685
  updatedAt?: Date | null | undefined;
865
- matches?: {
866
- _id: string | import("mongoose").Types.ObjectId;
867
- team1: {
868
- name: string;
869
- teamId: string | import("mongoose").Types.ObjectId;
870
- };
871
- team2: {
872
- name: string;
873
- teamId: string | import("mongoose").Types.ObjectId;
874
- };
875
- score: {
876
- team1: number | null;
877
- team2: number | null;
878
- };
879
- stage: string;
880
- endDate?: Date | null | undefined;
881
- startingDate?: Date | null | undefined;
882
- additionalTag?: string | undefined;
883
- winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
884
- }[] | undefined;
885
- teams?: {
886
- name: string;
887
- _id: string | import("mongoose").Types.ObjectId;
888
- picture?: string | null | undefined;
889
- }[] | undefined;
686
+ tag?: TournamentTag | undefined;
687
+ reward?: {
688
+ type: TournamentRewardType.FREE_DELIVERY;
689
+ } | {
690
+ type: TournamentRewardType.COUPON;
691
+ maxDiscountPerOrder?: number | null | undefined;
692
+ percentage?: number | undefined;
693
+ } | undefined;
890
694
  }[] | {
891
695
  documents: {
892
696
  status: Status;
893
- _id: string | import("mongoose").Types.ObjectId;
894
- tag: string;
697
+ name: string;
698
+ _id?: string | import("mongoose").Types.ObjectId | undefined;
895
699
  createdAt?: Date | null | undefined;
896
700
  startDate?: Date | null | undefined;
897
701
  endDate?: Date | null | undefined;
898
702
  updatedAt?: Date | null | undefined;
899
- matches?: {
900
- _id: string | import("mongoose").Types.ObjectId;
901
- team1: {
902
- name: string;
903
- teamId: string | import("mongoose").Types.ObjectId;
904
- };
905
- team2: {
906
- name: string;
907
- teamId: string | import("mongoose").Types.ObjectId;
908
- };
909
- score: {
910
- team1: number | null;
911
- team2: number | null;
912
- };
913
- stage: string;
914
- endDate?: Date | null | undefined;
915
- startingDate?: Date | null | undefined;
916
- additionalTag?: string | undefined;
917
- winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
918
- }[] | undefined;
919
- teams?: {
920
- name: string;
921
- _id: string | import("mongoose").Types.ObjectId;
922
- picture?: string | null | undefined;
923
- }[] | undefined;
703
+ tag?: TournamentTag | undefined;
704
+ reward?: {
705
+ type: TournamentRewardType.FREE_DELIVERY;
706
+ } | {
707
+ type: TournamentRewardType.COUPON;
708
+ maxDiscountPerOrder?: number | null | undefined;
709
+ percentage?: number | undefined;
710
+ } | undefined;
924
711
  }[][];
925
712
  metadata?: {
926
713
  page: number;
@@ -934,71 +721,37 @@ export declare const TournamentConfigListResponseSchema: z.ZodObject<{
934
721
  success: boolean;
935
722
  data?: {
936
723
  status: Status;
937
- _id: string | import("mongoose").Types.ObjectId;
938
- tag: string;
724
+ name: string;
725
+ _id?: string | import("mongoose").Types.ObjectId | undefined;
939
726
  createdAt?: Date | null | undefined;
940
727
  startDate?: Date | null | undefined;
941
728
  endDate?: Date | null | undefined;
942
729
  updatedAt?: Date | null | undefined;
943
- matches?: {
944
- _id: string | import("mongoose").Types.ObjectId;
945
- team1: {
946
- name: string;
947
- teamId: string | import("mongoose").Types.ObjectId;
948
- };
949
- team2: {
950
- name: string;
951
- teamId: string | import("mongoose").Types.ObjectId;
952
- };
953
- score: {
954
- team1: number | null;
955
- team2: number | null;
956
- };
957
- stage: string;
958
- endDate?: Date | null | undefined;
959
- startingDate?: Date | null | undefined;
960
- additionalTag?: string | undefined;
961
- winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
962
- }[] | undefined;
963
- teams?: {
964
- name: string;
965
- _id: string | import("mongoose").Types.ObjectId;
966
- picture?: string | null | undefined;
967
- }[] | undefined;
730
+ tag?: TournamentTag | undefined;
731
+ reward?: {
732
+ type: TournamentRewardType.FREE_DELIVERY;
733
+ } | {
734
+ type: TournamentRewardType.COUPON;
735
+ maxDiscountPerOrder?: number | null | undefined;
736
+ percentage?: number | undefined;
737
+ } | undefined;
968
738
  }[] | {
969
739
  documents: {
970
740
  status: Status;
971
- _id: string | import("mongoose").Types.ObjectId;
972
- tag: string;
741
+ name: string;
742
+ _id?: string | import("mongoose").Types.ObjectId | undefined;
973
743
  createdAt?: Date | null | undefined;
974
744
  startDate?: Date | null | undefined;
975
745
  endDate?: Date | null | undefined;
976
746
  updatedAt?: Date | null | undefined;
977
- matches?: {
978
- _id: string | import("mongoose").Types.ObjectId;
979
- team1: {
980
- name: string;
981
- teamId: string | import("mongoose").Types.ObjectId;
982
- };
983
- team2: {
984
- name: string;
985
- teamId: string | import("mongoose").Types.ObjectId;
986
- };
987
- score: {
988
- team1: number | null;
989
- team2: number | null;
990
- };
991
- stage: string;
992
- endDate?: Date | null | undefined;
993
- startingDate?: Date | null | undefined;
994
- additionalTag?: string | undefined;
995
- winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
996
- }[] | undefined;
997
- teams?: {
998
- name: string;
999
- _id: string | import("mongoose").Types.ObjectId;
1000
- picture?: string | null | undefined;
1001
- }[] | undefined;
747
+ tag?: TournamentTag | undefined;
748
+ reward?: {
749
+ type: TournamentRewardType.FREE_DELIVERY;
750
+ } | {
751
+ type: TournamentRewardType.COUPON;
752
+ maxDiscountPerOrder?: number | null | undefined;
753
+ percentage?: number | undefined;
754
+ } | undefined;
1002
755
  }[][];
1003
756
  metadata?: {
1004
757
  page: number;
@@ -1011,4 +764,5 @@ export declare const TournamentConfigListResponseSchema: z.ZodObject<{
1011
764
  export type CreateTournamentConfigInputDTO = DTO<typeof CreateTournamentConfigSchema>;
1012
765
  export type UpdateTournamentConfigInputDTO = DTO<typeof UpdateTournamentConfigSchema>;
1013
766
  export type TournamentConfigOutputDTO = DTO<typeof TournamentConfigSchema>;
767
+ export type TournamentConfigListItemOutputDTO = DTO<typeof TournamentConfigListItemSchema>;
1014
768
  //# sourceMappingURL=config.validation.d.ts.map