@lyxa.ai/marketing 1.0.47 → 1.0.49

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 (395) 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 +1102 -28
  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 +4 -0
  9. package/dist/lib/modules/coupon/routers/coupon.router.d.ts.map +1 -1
  10. package/dist/lib/modules/coupon/services/coupon.service.d.ts +2 -2
  11. package/dist/lib/modules/coupon/services/coupon.service.d.ts.map +1 -1
  12. package/dist/lib/modules/coupon/services/coupon.service.js +1 -1
  13. package/dist/lib/modules/coupon/services/coupon.service.js.map +1 -1
  14. package/dist/lib/modules/coupon/services/custom-coupon.service.d.ts +2 -0
  15. package/dist/lib/modules/coupon/services/custom-coupon.service.d.ts.map +1 -1
  16. package/dist/lib/modules/coupon/services/custom-coupon.service.js +1 -1
  17. package/dist/lib/modules/coupon/services/custom-coupon.service.js.map +1 -1
  18. package/dist/lib/modules/coupon/services/global-coupon.service.d.ts +1 -1
  19. package/dist/lib/modules/coupon/services/global-coupon.service.d.ts.map +1 -1
  20. package/dist/lib/modules/coupon/services/global-coupon.service.js +18 -10
  21. package/dist/lib/modules/coupon/services/global-coupon.service.js.map +1 -1
  22. package/dist/lib/modules/coupon/services/helper.service.d.ts +2 -1
  23. package/dist/lib/modules/coupon/services/helper.service.d.ts.map +1 -1
  24. package/dist/lib/modules/coupon/services/helper.service.js +9 -1
  25. package/dist/lib/modules/coupon/services/helper.service.js.map +1 -1
  26. package/dist/lib/modules/coupon/services/individual-store-coupon.service.d.ts +2 -0
  27. package/dist/lib/modules/coupon/services/individual-store-coupon.service.d.ts.map +1 -1
  28. package/dist/lib/modules/coupon/services/individual-store-coupon.service.js +2 -2
  29. package/dist/lib/modules/coupon/services/individual-store-coupon.service.js.map +1 -1
  30. package/dist/lib/modules/coupon/services/individual-user-coupon.service.d.ts.map +1 -1
  31. package/dist/lib/modules/coupon/services/individual-user-coupon.service.js +8 -0
  32. package/dist/lib/modules/coupon/services/individual-user-coupon.service.js.map +1 -1
  33. package/dist/lib/modules/coupon/services/patterns/repository/CouponRepository.d.ts.map +1 -1
  34. package/dist/lib/modules/coupon/services/patterns/repository/CouponRepository.js +20 -1
  35. package/dist/lib/modules/coupon/services/patterns/repository/CouponRepository.js.map +1 -1
  36. package/dist/lib/modules/coupon/services/referral-code-coupon.service.d.ts.map +1 -1
  37. package/dist/lib/modules/coupon/services/referral-code-coupon.service.js +1 -1
  38. package/dist/lib/modules/coupon/services/referral-code-coupon.service.js.map +1 -1
  39. package/dist/lib/modules/coupon/services/referral-reward-coupon.service.d.ts +1 -1
  40. package/dist/lib/modules/coupon/services/referral-reward-coupon.service.d.ts.map +1 -1
  41. package/dist/lib/modules/coupon/services/referral-reward-coupon.service.js +23 -15
  42. package/dist/lib/modules/coupon/services/referral-reward-coupon.service.js.map +1 -1
  43. package/dist/lib/modules/coupon/services/shops-categories-coupon.service.d.ts +2 -0
  44. package/dist/lib/modules/coupon/services/shops-categories-coupon.service.d.ts.map +1 -1
  45. package/dist/lib/modules/coupon/services/shops-categories-coupon.service.js +2 -2
  46. package/dist/lib/modules/coupon/services/shops-categories-coupon.service.js.map +1 -1
  47. package/dist/lib/modules/coupon/validations/coupon.validation.d.ts +13 -0
  48. package/dist/lib/modules/coupon/validations/coupon.validation.d.ts.map +1 -1
  49. package/dist/lib/modules/coupon/validations/coupon.validation.js +1 -0
  50. package/dist/lib/modules/coupon/validations/coupon.validation.js.map +1 -1
  51. package/dist/lib/modules/limited-time-offer/campaign/campaign.router.d.ts +10 -21
  52. package/dist/lib/modules/limited-time-offer/campaign/campaign.router.d.ts.map +1 -1
  53. package/dist/lib/modules/limited-time-offer/campaign/campaign.router.js +5 -4
  54. package/dist/lib/modules/limited-time-offer/campaign/campaign.router.js.map +1 -1
  55. package/dist/lib/modules/limited-time-offer/campaign/limited-time-offer-campaign.validation.d.ts +154 -0
  56. package/dist/lib/modules/limited-time-offer/campaign/limited-time-offer-campaign.validation.d.ts.map +1 -1
  57. package/dist/lib/modules/limited-time-offer/campaign/limited-time-offer-campaign.validation.js +13 -1
  58. package/dist/lib/modules/limited-time-offer/campaign/limited-time-offer-campaign.validation.js.map +1 -1
  59. package/dist/lib/modules/limited-time-offer/campaign/services/limited-time-offer-campaign.service.d.ts +8 -2
  60. package/dist/lib/modules/limited-time-offer/campaign/services/limited-time-offer-campaign.service.d.ts.map +1 -1
  61. package/dist/lib/modules/limited-time-offer/campaign/services/limited-time-offer-campaign.service.js +11 -2
  62. package/dist/lib/modules/limited-time-offer/campaign/services/limited-time-offer-campaign.service.js.map +1 -1
  63. package/dist/lib/modules/limited-time-offer/limited-time-offer.router.d.ts +16 -27
  64. package/dist/lib/modules/limited-time-offer/limited-time-offer.router.d.ts.map +1 -1
  65. package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.router.d.ts +6 -6
  66. package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.validation.d.ts +30 -30
  67. package/dist/lib/modules/marketing/services/marketing.service.d.ts.map +1 -1
  68. package/dist/lib/modules/marketing/services/marketing.service.js +8 -2
  69. package/dist/lib/modules/marketing/services/marketing.service.js.map +1 -1
  70. package/dist/lib/modules/marketing/services/synchronize-product-marketing.service.d.ts +2 -0
  71. package/dist/lib/modules/marketing/services/synchronize-product-marketing.service.d.ts.map +1 -1
  72. package/dist/lib/modules/marketing/services/synchronize-product-marketing.service.js +14 -0
  73. package/dist/lib/modules/marketing/services/synchronize-product-marketing.service.js.map +1 -1
  74. package/dist/lib/modules/marketing/validations/buy1-get1-marketing.validation.d.ts +18 -18
  75. package/dist/lib/modules/marketing/validations/discount-marketing.validation.d.ts +30 -30
  76. package/dist/lib/modules/marketing/validations/featured-marketing.validation.d.ts +6 -6
  77. package/dist/lib/modules/marketing/validations/free-delivery-marketing.validation.d.ts +4 -4
  78. package/dist/lib/modules/marketing/validations/marketing.validation.d.ts +2 -2
  79. package/dist/lib/modules/marketing/validations/product-marketing.validation.d.ts +5 -5
  80. package/dist/lib/modules/marketing/validations/punch-marketing.validation.d.ts +4 -4
  81. package/dist/lib/modules/punch-marketing-history/routers/punch-marketing-history.router.d.ts +1 -1
  82. package/dist/lib/modules/punch-marketing-history/validations/punch-marketing-history.validation.d.ts +2 -2
  83. package/dist/lib/modules/tournament/config/config.builder.d.ts +5 -0
  84. package/dist/lib/modules/tournament/config/config.builder.d.ts.map +1 -0
  85. package/dist/lib/modules/tournament/config/config.builder.js +23 -0
  86. package/dist/lib/modules/tournament/config/config.builder.js.map +1 -0
  87. package/dist/lib/modules/tournament/config/config.repository.d.ts +14 -0
  88. package/dist/lib/modules/tournament/config/config.repository.d.ts.map +1 -0
  89. package/dist/lib/modules/tournament/config/config.repository.js +83 -0
  90. package/dist/lib/modules/tournament/config/config.repository.js.map +1 -0
  91. package/dist/lib/modules/tournament/config/config.router.d.ts +251 -0
  92. package/dist/lib/modules/tournament/config/config.router.d.ts.map +1 -0
  93. package/dist/lib/modules/tournament/config/config.router.js +40 -0
  94. package/dist/lib/modules/tournament/config/config.router.js.map +1 -0
  95. package/dist/lib/modules/tournament/config/config.service.d.ts +14 -0
  96. package/dist/lib/modules/tournament/config/config.service.d.ts.map +1 -0
  97. package/dist/lib/modules/tournament/config/config.service.js +101 -0
  98. package/dist/lib/modules/tournament/config/config.service.js.map +1 -0
  99. package/dist/lib/modules/tournament/config/config.validation.d.ts +767 -0
  100. package/dist/lib/modules/tournament/config/config.validation.d.ts.map +1 -0
  101. package/dist/lib/modules/tournament/config/config.validation.js +85 -0
  102. package/dist/lib/modules/tournament/config/config.validation.js.map +1 -0
  103. package/dist/lib/modules/tournament/match/events/evaluate-predictions.consumer.d.ts +2 -0
  104. package/dist/lib/modules/tournament/match/events/evaluate-predictions.consumer.d.ts.map +1 -0
  105. package/dist/lib/modules/tournament/match/events/evaluate-predictions.consumer.js +20 -0
  106. package/dist/lib/modules/tournament/match/events/evaluate-predictions.consumer.js.map +1 -0
  107. package/dist/lib/modules/tournament/match/events/evaluate-predictions.event.d.ts +15 -0
  108. package/dist/lib/modules/tournament/match/events/evaluate-predictions.event.d.ts.map +1 -0
  109. package/dist/lib/modules/tournament/match/events/evaluate-predictions.event.js +12 -0
  110. package/dist/lib/modules/tournament/match/events/evaluate-predictions.event.js.map +1 -0
  111. package/dist/lib/modules/tournament/match/events/match-ended.consumer.d.ts +2 -0
  112. package/dist/lib/modules/tournament/match/events/match-ended.consumer.d.ts.map +1 -0
  113. package/dist/lib/modules/tournament/match/events/match-ended.consumer.js +15 -0
  114. package/dist/lib/modules/tournament/match/events/match-ended.consumer.js.map +1 -0
  115. package/dist/lib/modules/tournament/match/events/match-ended.event.d.ts +14 -0
  116. package/dist/lib/modules/tournament/match/events/match-ended.event.d.ts.map +1 -0
  117. package/dist/lib/modules/tournament/match/events/match-ended.event.js +12 -0
  118. package/dist/lib/modules/tournament/match/events/match-ended.event.js.map +1 -0
  119. package/dist/lib/modules/tournament/match/match.builder.d.ts +41 -0
  120. package/dist/lib/modules/tournament/match/match.builder.d.ts.map +1 -0
  121. package/dist/lib/modules/tournament/match/match.builder.js +42 -0
  122. package/dist/lib/modules/tournament/match/match.builder.js.map +1 -0
  123. package/dist/lib/modules/tournament/match/match.repository.d.ts +13 -0
  124. package/dist/lib/modules/tournament/match/match.repository.d.ts.map +1 -0
  125. package/dist/lib/modules/tournament/match/match.repository.js +84 -0
  126. package/dist/lib/modules/tournament/match/match.repository.js.map +1 -0
  127. package/dist/lib/modules/tournament/match/match.router.d.ts +352 -0
  128. package/dist/lib/modules/tournament/match/match.router.d.ts.map +1 -0
  129. package/dist/lib/modules/tournament/match/match.router.js +49 -0
  130. package/dist/lib/modules/tournament/match/match.router.js.map +1 -0
  131. package/dist/lib/modules/tournament/match/match.service.d.ts +19 -0
  132. package/dist/lib/modules/tournament/match/match.service.d.ts.map +1 -0
  133. package/dist/lib/modules/tournament/match/match.service.js +149 -0
  134. package/dist/lib/modules/tournament/match/match.service.js.map +1 -0
  135. package/dist/lib/modules/tournament/match/match.validation.d.ts +892 -0
  136. package/dist/lib/modules/tournament/match/match.validation.d.ts.map +1 -0
  137. package/dist/lib/modules/tournament/match/match.validation.js +76 -0
  138. package/dist/lib/modules/tournament/match/match.validation.js.map +1 -0
  139. package/dist/lib/modules/tournament/notification/jobs/notification.producer.d.ts +13 -0
  140. package/dist/lib/modules/tournament/notification/jobs/notification.producer.d.ts.map +1 -0
  141. package/dist/lib/modules/tournament/notification/jobs/notification.producer.js +28 -0
  142. package/dist/lib/modules/tournament/notification/jobs/notification.producer.js.map +1 -0
  143. package/dist/lib/modules/tournament/notification/jobs/notification.worker.d.ts +7 -0
  144. package/dist/lib/modules/tournament/notification/jobs/notification.worker.d.ts.map +1 -0
  145. package/dist/lib/modules/tournament/notification/jobs/notification.worker.js +76 -0
  146. package/dist/lib/modules/tournament/notification/jobs/notification.worker.js.map +1 -0
  147. package/dist/lib/modules/tournament/notification/notification.scheduler.service.d.ts +10 -0
  148. package/dist/lib/modules/tournament/notification/notification.scheduler.service.d.ts.map +1 -0
  149. package/dist/lib/modules/tournament/notification/notification.scheduler.service.js +86 -0
  150. package/dist/lib/modules/tournament/notification/notification.scheduler.service.js.map +1 -0
  151. package/dist/lib/modules/tournament/notification/notification.service.d.ts +12 -0
  152. package/dist/lib/modules/tournament/notification/notification.service.d.ts.map +1 -0
  153. package/dist/lib/modules/tournament/notification/notification.service.js +106 -0
  154. package/dist/lib/modules/tournament/notification/notification.service.js.map +1 -0
  155. package/dist/lib/modules/tournament/participant/participant.repository.d.ts +12 -0
  156. package/dist/lib/modules/tournament/participant/participant.repository.d.ts.map +1 -0
  157. package/dist/lib/modules/tournament/participant/participant.repository.js +73 -0
  158. package/dist/lib/modules/tournament/participant/participant.repository.js.map +1 -0
  159. package/dist/lib/modules/tournament/participant/participant.router.d.ts +104 -0
  160. package/dist/lib/modules/tournament/participant/participant.router.d.ts.map +1 -0
  161. package/dist/lib/modules/tournament/participant/participant.router.js +28 -0
  162. package/dist/lib/modules/tournament/participant/participant.router.js.map +1 -0
  163. package/dist/lib/modules/tournament/participant/participant.service.d.ts +14 -0
  164. package/dist/lib/modules/tournament/participant/participant.service.d.ts.map +1 -0
  165. package/dist/lib/modules/tournament/participant/participant.service.js +103 -0
  166. package/dist/lib/modules/tournament/participant/participant.service.js.map +1 -0
  167. package/dist/lib/modules/tournament/participant/participant.validation.d.ts +719 -0
  168. package/dist/lib/modules/tournament/participant/participant.validation.d.ts.map +1 -0
  169. package/dist/lib/modules/tournament/participant/participant.validation.js +44 -0
  170. package/dist/lib/modules/tournament/participant/participant.validation.js.map +1 -0
  171. package/dist/lib/modules/tournament/prediction/prediction.builder.d.ts +14 -0
  172. package/dist/lib/modules/tournament/prediction/prediction.builder.d.ts.map +1 -0
  173. package/dist/lib/modules/tournament/prediction/prediction.builder.js +23 -0
  174. package/dist/lib/modules/tournament/prediction/prediction.builder.js.map +1 -0
  175. package/dist/lib/modules/tournament/prediction/prediction.repository.d.ts +14 -0
  176. package/dist/lib/modules/tournament/prediction/prediction.repository.d.ts.map +1 -0
  177. package/dist/lib/modules/tournament/prediction/prediction.repository.js +91 -0
  178. package/dist/lib/modules/tournament/prediction/prediction.repository.js.map +1 -0
  179. package/dist/lib/modules/tournament/prediction/prediction.router.d.ts +133 -0
  180. package/dist/lib/modules/tournament/prediction/prediction.router.d.ts.map +1 -0
  181. package/dist/lib/modules/tournament/prediction/prediction.router.js +36 -0
  182. package/dist/lib/modules/tournament/prediction/prediction.router.js.map +1 -0
  183. package/dist/lib/modules/tournament/prediction/prediction.service.d.ts +25 -0
  184. package/dist/lib/modules/tournament/prediction/prediction.service.d.ts.map +1 -0
  185. package/dist/lib/modules/tournament/prediction/prediction.service.js +142 -0
  186. package/dist/lib/modules/tournament/prediction/prediction.service.js.map +1 -0
  187. package/dist/lib/modules/tournament/prediction/prediction.validation.d.ts +575 -0
  188. package/dist/lib/modules/tournament/prediction/prediction.validation.d.ts.map +1 -0
  189. package/dist/lib/modules/tournament/prediction/prediction.validation.js +46 -0
  190. package/dist/lib/modules/tournament/prediction/prediction.validation.js.map +1 -0
  191. package/dist/lib/modules/tournament/reward/handlers/coupon-reward.handler.d.ts +11 -0
  192. package/dist/lib/modules/tournament/reward/handlers/coupon-reward.handler.d.ts.map +1 -0
  193. package/dist/lib/modules/tournament/reward/handlers/coupon-reward.handler.js +81 -0
  194. package/dist/lib/modules/tournament/reward/handlers/coupon-reward.handler.js.map +1 -0
  195. package/dist/lib/modules/tournament/reward/reward.builder.d.ts +6 -0
  196. package/dist/lib/modules/tournament/reward/reward.builder.d.ts.map +1 -0
  197. package/dist/lib/modules/tournament/reward/reward.builder.js +43 -0
  198. package/dist/lib/modules/tournament/reward/reward.builder.js.map +1 -0
  199. package/dist/lib/modules/tournament/reward/reward.factory.d.ts +6 -0
  200. package/dist/lib/modules/tournament/reward/reward.factory.d.ts.map +1 -0
  201. package/dist/lib/modules/tournament/reward/reward.factory.js +21 -0
  202. package/dist/lib/modules/tournament/reward/reward.factory.js.map +1 -0
  203. package/dist/lib/modules/tournament/reward/reward.interface.d.ts +5 -0
  204. package/dist/lib/modules/tournament/reward/reward.interface.d.ts.map +1 -0
  205. package/dist/lib/modules/tournament/reward/reward.interface.js +3 -0
  206. package/dist/lib/modules/tournament/reward/reward.interface.js.map +1 -0
  207. package/dist/lib/modules/tournament/reward/reward.service.d.ts +6 -0
  208. package/dist/lib/modules/tournament/reward/reward.service.d.ts.map +1 -0
  209. package/dist/lib/modules/tournament/reward/reward.service.js +56 -0
  210. package/dist/lib/modules/tournament/reward/reward.service.js.map +1 -0
  211. package/dist/lib/modules/tournament/reward/reward.types.d.ts +11 -0
  212. package/dist/lib/modules/tournament/reward/reward.types.d.ts.map +1 -0
  213. package/dist/lib/modules/tournament/reward/reward.types.js +8 -0
  214. package/dist/lib/modules/tournament/reward/reward.types.js.map +1 -0
  215. package/dist/lib/modules/tournament/score/score.repository.d.ts +6 -0
  216. package/dist/lib/modules/tournament/score/score.repository.d.ts.map +1 -0
  217. package/dist/lib/modules/tournament/score/score.repository.js +60 -0
  218. package/dist/lib/modules/tournament/score/score.repository.js.map +1 -0
  219. package/dist/lib/modules/tournament/score/score.service.d.ts +6 -0
  220. package/dist/lib/modules/tournament/score/score.service.d.ts.map +1 -0
  221. package/dist/lib/modules/tournament/score/score.service.js +60 -0
  222. package/dist/lib/modules/tournament/score/score.service.js.map +1 -0
  223. package/dist/lib/modules/tournament/team/team.builder.d.ts +19 -0
  224. package/dist/lib/modules/tournament/team/team.builder.d.ts.map +1 -0
  225. package/dist/lib/modules/tournament/team/team.builder.js +18 -0
  226. package/dist/lib/modules/tournament/team/team.builder.js.map +1 -0
  227. package/dist/lib/modules/tournament/team/team.repository.d.ts +11 -0
  228. package/dist/lib/modules/tournament/team/team.repository.d.ts.map +1 -0
  229. package/dist/lib/modules/tournament/team/team.repository.js +71 -0
  230. package/dist/lib/modules/tournament/team/team.repository.js.map +1 -0
  231. package/dist/lib/modules/tournament/team/team.router.d.ts +205 -0
  232. package/dist/lib/modules/tournament/team/team.router.d.ts.map +1 -0
  233. package/dist/lib/modules/tournament/team/team.router.js +36 -0
  234. package/dist/lib/modules/tournament/team/team.router.js.map +1 -0
  235. package/dist/lib/modules/tournament/team/team.service.d.ts +15 -0
  236. package/dist/lib/modules/tournament/team/team.service.d.ts.map +1 -0
  237. package/dist/lib/modules/tournament/team/team.service.js +137 -0
  238. package/dist/lib/modules/tournament/team/team.service.js.map +1 -0
  239. package/dist/lib/modules/tournament/team/team.validation.d.ts +986 -0
  240. package/dist/lib/modules/tournament/team/team.validation.d.ts.map +1 -0
  241. package/dist/lib/modules/tournament/team/team.validation.js +55 -0
  242. package/dist/lib/modules/tournament/team/team.validation.js.map +1 -0
  243. package/dist/lib/modules/tournament/tournament.router.d.ts +1082 -0
  244. package/dist/lib/modules/tournament/tournament.router.d.ts.map +1 -0
  245. package/dist/lib/modules/tournament/tournament.router.js +25 -0
  246. package/dist/lib/modules/tournament/tournament.router.js.map +1 -0
  247. package/dist/lib/modules/tournament/tournament.service.d.ts +8 -0
  248. package/dist/lib/modules/tournament/tournament.service.d.ts.map +1 -0
  249. package/dist/lib/modules/tournament/tournament.service.js +63 -0
  250. package/dist/lib/modules/tournament/tournament.service.js.map +1 -0
  251. package/dist/lib/modules/tournament/tournament.validation.d.ts +133 -0
  252. package/dist/lib/modules/tournament/tournament.validation.d.ts.map +1 -0
  253. package/dist/lib/modules/tournament/tournament.validation.js +14 -0
  254. package/dist/lib/modules/tournament/tournament.validation.js.map +1 -0
  255. package/dist/types/event/event-initializations.d.ts.map +1 -1
  256. package/dist/types/events/event-initializations.d.ts +2 -0
  257. package/dist/types/events/event-initializations.d.ts.map +1 -0
  258. package/dist/types/index.d.ts +1102 -28
  259. package/dist/types/index.d.ts.map +1 -1
  260. package/dist/types/modules/coupon/routers/coupon.router.d.ts +4 -0
  261. package/dist/types/modules/coupon/routers/coupon.router.d.ts.map +1 -1
  262. package/dist/types/modules/coupon/services/coupon.service.d.ts +2 -2
  263. package/dist/types/modules/coupon/services/coupon.service.d.ts.map +1 -1
  264. package/dist/types/modules/coupon/services/custom-coupon.service.d.ts +2 -0
  265. package/dist/types/modules/coupon/services/custom-coupon.service.d.ts.map +1 -1
  266. package/dist/types/modules/coupon/services/global-coupon.service.d.ts +1 -1
  267. package/dist/types/modules/coupon/services/global-coupon.service.d.ts.map +1 -1
  268. package/dist/types/modules/coupon/services/helper.service.d.ts +2 -1
  269. package/dist/types/modules/coupon/services/helper.service.d.ts.map +1 -1
  270. package/dist/types/modules/coupon/services/individual-store-coupon.service.d.ts +2 -0
  271. package/dist/types/modules/coupon/services/individual-store-coupon.service.d.ts.map +1 -1
  272. package/dist/types/modules/coupon/services/individual-user-coupon.service.d.ts.map +1 -1
  273. package/dist/types/modules/coupon/services/patterns/repository/CouponRepository.d.ts.map +1 -1
  274. package/dist/types/modules/coupon/services/referral-code-coupon.service.d.ts.map +1 -1
  275. package/dist/types/modules/coupon/services/referral-reward-coupon.service.d.ts +1 -1
  276. package/dist/types/modules/coupon/services/referral-reward-coupon.service.d.ts.map +1 -1
  277. package/dist/types/modules/coupon/services/shops-categories-coupon.service.d.ts +2 -0
  278. package/dist/types/modules/coupon/services/shops-categories-coupon.service.d.ts.map +1 -1
  279. package/dist/types/modules/coupon/validations/coupon.validation.d.ts +13 -0
  280. package/dist/types/modules/coupon/validations/coupon.validation.d.ts.map +1 -1
  281. package/dist/types/modules/limited-time-offer/campaign/campaign.router.d.ts +10 -21
  282. package/dist/types/modules/limited-time-offer/campaign/campaign.router.d.ts.map +1 -1
  283. package/dist/types/modules/limited-time-offer/campaign/limited-time-offer-campaign.validation.d.ts +154 -0
  284. package/dist/types/modules/limited-time-offer/campaign/limited-time-offer-campaign.validation.d.ts.map +1 -1
  285. package/dist/types/modules/limited-time-offer/campaign/services/limited-time-offer-campaign.service.d.ts +8 -2
  286. package/dist/types/modules/limited-time-offer/campaign/services/limited-time-offer-campaign.service.d.ts.map +1 -1
  287. package/dist/types/modules/limited-time-offer/limited-time-offer.router.d.ts +16 -27
  288. package/dist/types/modules/limited-time-offer/limited-time-offer.router.d.ts.map +1 -1
  289. package/dist/types/modules/limited-time-offer/participant/limited-time-offer-participant.router.d.ts +6 -6
  290. package/dist/types/modules/limited-time-offer/participant/limited-time-offer-participant.validation.d.ts +30 -30
  291. package/dist/types/modules/marketing/services/marketing.service.d.ts.map +1 -1
  292. package/dist/types/modules/marketing/services/synchronize-product-marketing.service.d.ts +2 -0
  293. package/dist/types/modules/marketing/services/synchronize-product-marketing.service.d.ts.map +1 -1
  294. package/dist/types/modules/marketing/validations/buy1-get1-marketing.validation.d.ts +18 -18
  295. package/dist/types/modules/marketing/validations/discount-marketing.validation.d.ts +30 -30
  296. package/dist/types/modules/marketing/validations/featured-marketing.validation.d.ts +6 -6
  297. package/dist/types/modules/marketing/validations/free-delivery-marketing.validation.d.ts +4 -4
  298. package/dist/types/modules/marketing/validations/marketing.validation.d.ts +2 -2
  299. package/dist/types/modules/marketing/validations/product-marketing.validation.d.ts +5 -5
  300. package/dist/types/modules/marketing/validations/punch-marketing.validation.d.ts +4 -4
  301. package/dist/types/modules/punch-marketing-history/routers/punch-marketing-history.router.d.ts +1 -1
  302. package/dist/types/modules/punch-marketing-history/validations/punch-marketing-history.validation.d.ts +2 -2
  303. package/dist/types/modules/tournament/config/config.builder.d.ts +5 -0
  304. package/dist/types/modules/tournament/config/config.builder.d.ts.map +1 -0
  305. package/dist/types/modules/tournament/config/config.repository.d.ts +14 -0
  306. package/dist/types/modules/tournament/config/config.repository.d.ts.map +1 -0
  307. package/dist/types/modules/tournament/config/config.router.d.ts +251 -0
  308. package/dist/types/modules/tournament/config/config.router.d.ts.map +1 -0
  309. package/dist/types/modules/tournament/config/config.service.d.ts +14 -0
  310. package/dist/types/modules/tournament/config/config.service.d.ts.map +1 -0
  311. package/dist/types/modules/tournament/config/config.validation.d.ts +767 -0
  312. package/dist/types/modules/tournament/config/config.validation.d.ts.map +1 -0
  313. package/dist/types/modules/tournament/config/tournament-config.validation.d.ts +201 -0
  314. package/dist/types/modules/tournament/config/tournament-config.validation.d.ts.map +1 -0
  315. package/dist/types/modules/tournament/match/events/evaluate-predictions.consumer.d.ts +2 -0
  316. package/dist/types/modules/tournament/match/events/evaluate-predictions.consumer.d.ts.map +1 -0
  317. package/dist/types/modules/tournament/match/events/evaluate-predictions.event.d.ts +15 -0
  318. package/dist/types/modules/tournament/match/events/evaluate-predictions.event.d.ts.map +1 -0
  319. package/dist/types/modules/tournament/match/events/match-ended.consumer.d.ts +2 -0
  320. package/dist/types/modules/tournament/match/events/match-ended.consumer.d.ts.map +1 -0
  321. package/dist/types/modules/tournament/match/events/match-ended.event.d.ts +14 -0
  322. package/dist/types/modules/tournament/match/events/match-ended.event.d.ts.map +1 -0
  323. package/dist/types/modules/tournament/match/match.builder.d.ts +41 -0
  324. package/dist/types/modules/tournament/match/match.builder.d.ts.map +1 -0
  325. package/dist/types/modules/tournament/match/match.repository.d.ts +13 -0
  326. package/dist/types/modules/tournament/match/match.repository.d.ts.map +1 -0
  327. package/dist/types/modules/tournament/match/match.router.d.ts +352 -0
  328. package/dist/types/modules/tournament/match/match.router.d.ts.map +1 -0
  329. package/dist/types/modules/tournament/match/match.service.d.ts +19 -0
  330. package/dist/types/modules/tournament/match/match.service.d.ts.map +1 -0
  331. package/dist/types/modules/tournament/match/match.validation.d.ts +892 -0
  332. package/dist/types/modules/tournament/match/match.validation.d.ts.map +1 -0
  333. package/dist/types/modules/tournament/notification/jobs/notification.producer.d.ts +13 -0
  334. package/dist/types/modules/tournament/notification/jobs/notification.producer.d.ts.map +1 -0
  335. package/dist/types/modules/tournament/notification/jobs/notification.worker.d.ts +7 -0
  336. package/dist/types/modules/tournament/notification/jobs/notification.worker.d.ts.map +1 -0
  337. package/dist/types/modules/tournament/notification/notification.scheduler.service.d.ts +10 -0
  338. package/dist/types/modules/tournament/notification/notification.scheduler.service.d.ts.map +1 -0
  339. package/dist/types/modules/tournament/notification/notification.service.d.ts +12 -0
  340. package/dist/types/modules/tournament/notification/notification.service.d.ts.map +1 -0
  341. package/dist/types/modules/tournament/participant/participant.repository.d.ts +12 -0
  342. package/dist/types/modules/tournament/participant/participant.repository.d.ts.map +1 -0
  343. package/dist/types/modules/tournament/participant/participant.router.d.ts +104 -0
  344. package/dist/types/modules/tournament/participant/participant.router.d.ts.map +1 -0
  345. package/dist/types/modules/tournament/participant/participant.service.d.ts +14 -0
  346. package/dist/types/modules/tournament/participant/participant.service.d.ts.map +1 -0
  347. package/dist/types/modules/tournament/participant/participant.validation.d.ts +719 -0
  348. package/dist/types/modules/tournament/participant/participant.validation.d.ts.map +1 -0
  349. package/dist/types/modules/tournament/prediction/prediction.builder.d.ts +14 -0
  350. package/dist/types/modules/tournament/prediction/prediction.builder.d.ts.map +1 -0
  351. package/dist/types/modules/tournament/prediction/prediction.repository.d.ts +14 -0
  352. package/dist/types/modules/tournament/prediction/prediction.repository.d.ts.map +1 -0
  353. package/dist/types/modules/tournament/prediction/prediction.router.d.ts +133 -0
  354. package/dist/types/modules/tournament/prediction/prediction.router.d.ts.map +1 -0
  355. package/dist/types/modules/tournament/prediction/prediction.service.d.ts +25 -0
  356. package/dist/types/modules/tournament/prediction/prediction.service.d.ts.map +1 -0
  357. package/dist/types/modules/tournament/prediction/prediction.validation.d.ts +575 -0
  358. package/dist/types/modules/tournament/prediction/prediction.validation.d.ts.map +1 -0
  359. package/dist/types/modules/tournament/reward/handlers/coupon-reward.handler.d.ts +11 -0
  360. package/dist/types/modules/tournament/reward/handlers/coupon-reward.handler.d.ts.map +1 -0
  361. package/dist/types/modules/tournament/reward/reward.builder.d.ts +6 -0
  362. package/dist/types/modules/tournament/reward/reward.builder.d.ts.map +1 -0
  363. package/dist/types/modules/tournament/reward/reward.factory.d.ts +6 -0
  364. package/dist/types/modules/tournament/reward/reward.factory.d.ts.map +1 -0
  365. package/dist/types/modules/tournament/reward/reward.interface.d.ts +5 -0
  366. package/dist/types/modules/tournament/reward/reward.interface.d.ts.map +1 -0
  367. package/dist/types/modules/tournament/reward/reward.service.d.ts +6 -0
  368. package/dist/types/modules/tournament/reward/reward.service.d.ts.map +1 -0
  369. package/dist/types/modules/tournament/reward/reward.types.d.ts +11 -0
  370. package/dist/types/modules/tournament/reward/reward.types.d.ts.map +1 -0
  371. package/dist/types/modules/tournament/score/score.repository.d.ts +6 -0
  372. package/dist/types/modules/tournament/score/score.repository.d.ts.map +1 -0
  373. package/dist/types/modules/tournament/score/score.service.d.ts +6 -0
  374. package/dist/types/modules/tournament/score/score.service.d.ts.map +1 -0
  375. package/dist/types/modules/tournament/team/team.builder.d.ts +19 -0
  376. package/dist/types/modules/tournament/team/team.builder.d.ts.map +1 -0
  377. package/dist/types/modules/tournament/team/team.repository.d.ts +11 -0
  378. package/dist/types/modules/tournament/team/team.repository.d.ts.map +1 -0
  379. package/dist/types/modules/tournament/team/team.router.d.ts +205 -0
  380. package/dist/types/modules/tournament/team/team.router.d.ts.map +1 -0
  381. package/dist/types/modules/tournament/team/team.service.d.ts +15 -0
  382. package/dist/types/modules/tournament/team/team.service.d.ts.map +1 -0
  383. package/dist/types/modules/tournament/team/team.validation.d.ts +986 -0
  384. package/dist/types/modules/tournament/team/team.validation.d.ts.map +1 -0
  385. package/dist/types/modules/tournament/tournament.router.d.ts +1082 -0
  386. package/dist/types/modules/tournament/tournament.router.d.ts.map +1 -0
  387. package/dist/types/modules/tournament/tournament.service.d.ts +8 -0
  388. package/dist/types/modules/tournament/tournament.service.d.ts.map +1 -0
  389. package/dist/types/modules/tournament/tournament.validation.d.ts +133 -0
  390. package/dist/types/modules/tournament/tournament.validation.d.ts.map +1 -0
  391. package/package.json +3 -3
  392. package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.service.d.ts +0 -1
  393. package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.service.d.ts.map +0 -1
  394. package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.service.js +0 -2
  395. package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.service.js.map +0 -1
@@ -0,0 +1,575 @@
1
+ import { z } from 'zod';
2
+ import { DTO } from '@lyxa.ai/core/dist/utilities/validation/global-validation';
3
+ export declare const CreatePredictionSchema: z.ZodObject<{
4
+ tournamentId: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>;
5
+ matchId: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>;
6
+ score: z.ZodObject<{
7
+ team1: z.ZodNumber;
8
+ team2: z.ZodNumber;
9
+ }, "strip", z.ZodTypeAny, {
10
+ team1: number;
11
+ team2: number;
12
+ }, {
13
+ team1: number;
14
+ team2: number;
15
+ }>;
16
+ }, "strip", z.ZodTypeAny, {
17
+ tournamentId: import("mongoose").Types.ObjectId;
18
+ matchId: import("mongoose").Types.ObjectId;
19
+ score: {
20
+ team1: number;
21
+ team2: number;
22
+ };
23
+ }, {
24
+ tournamentId: string | import("mongoose").Types.ObjectId;
25
+ matchId: string | import("mongoose").Types.ObjectId;
26
+ score: {
27
+ team1: number;
28
+ team2: number;
29
+ };
30
+ }>;
31
+ export declare const EditPredictionSchema: z.ZodObject<{
32
+ 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>]>;
33
+ 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>]>;
34
+ score: z.ZodObject<{
35
+ team1: z.ZodNumber;
36
+ team2: z.ZodNumber;
37
+ }, "strip", z.ZodTypeAny, {
38
+ team1: number;
39
+ team2: number;
40
+ }, {
41
+ team1: number;
42
+ team2: number;
43
+ }>;
44
+ }, "strip", z.ZodTypeAny, {
45
+ tournamentId: import("mongoose").Types.ObjectId;
46
+ matchId: import("mongoose").Types.ObjectId;
47
+ score: {
48
+ team1: number;
49
+ team2: number;
50
+ };
51
+ }, {
52
+ tournamentId: string | import("mongoose").Types.ObjectId;
53
+ matchId: string | import("mongoose").Types.ObjectId;
54
+ score: {
55
+ team1: number;
56
+ team2: number;
57
+ };
58
+ }>;
59
+ export declare const GetPredictionSchema: z.ZodObject<{
60
+ 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>]>;
61
+ 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>]>;
62
+ }, "strip", z.ZodTypeAny, {
63
+ tournamentId: import("mongoose").Types.ObjectId;
64
+ matchId: import("mongoose").Types.ObjectId;
65
+ }, {
66
+ tournamentId: string | import("mongoose").Types.ObjectId;
67
+ matchId: string | import("mongoose").Types.ObjectId;
68
+ }>;
69
+ export declare const PredictionSchema: z.ZodObject<{
70
+ _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>]>;
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
+ score: z.ZodObject<{
73
+ team1: z.ZodNullable<z.ZodNumber>;
74
+ team2: z.ZodNullable<z.ZodNumber>;
75
+ }, "strip", z.ZodTypeAny, {
76
+ team1: number | null;
77
+ team2: number | null;
78
+ }, {
79
+ team1: number | null;
80
+ team2: number | null;
81
+ }>;
82
+ predictionTime: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
83
+ succeeded: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
84
+ }, "strip", z.ZodTypeAny, {
85
+ _id: import("mongoose").Types.ObjectId;
86
+ matchId: import("mongoose").Types.ObjectId;
87
+ score: {
88
+ team1: number | null;
89
+ team2: number | null;
90
+ };
91
+ predictionTime?: Date | null | undefined;
92
+ succeeded?: boolean | null | undefined;
93
+ }, {
94
+ _id: string | import("mongoose").Types.ObjectId;
95
+ matchId: string | import("mongoose").Types.ObjectId;
96
+ score: {
97
+ team1: number | null;
98
+ team2: number | null;
99
+ };
100
+ predictionTime?: Date | null | undefined;
101
+ succeeded?: boolean | null | undefined;
102
+ }>;
103
+ export declare const MutatePredictionSchema: z.ZodObject<{
104
+ _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>]>;
105
+ 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>]>;
106
+ score: z.ZodObject<{
107
+ team1: z.ZodNullable<z.ZodNumber>;
108
+ team2: z.ZodNullable<z.ZodNumber>;
109
+ }, "strip", z.ZodTypeAny, {
110
+ team1: number | null;
111
+ team2: number | null;
112
+ }, {
113
+ team1: number | null;
114
+ team2: number | null;
115
+ }>;
116
+ }, "strip", z.ZodTypeAny, {
117
+ _id: import("mongoose").Types.ObjectId;
118
+ matchId: import("mongoose").Types.ObjectId;
119
+ score: {
120
+ team1: number | null;
121
+ team2: number | null;
122
+ };
123
+ }, {
124
+ _id: string | import("mongoose").Types.ObjectId;
125
+ matchId: string | import("mongoose").Types.ObjectId;
126
+ score: {
127
+ team1: number | null;
128
+ team2: number | null;
129
+ };
130
+ }>;
131
+ export declare const MutatePredictionResponseSchema: z.ZodObject<{
132
+ success: z.ZodBoolean;
133
+ message: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
134
+ data: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
135
+ metadata: z.ZodOptional<z.ZodObject<{
136
+ page: z.ZodNumber;
137
+ size: z.ZodNumber;
138
+ totalElements: z.ZodNumber;
139
+ totalPages: z.ZodNumber;
140
+ }, "strip", z.ZodTypeAny, {
141
+ page: number;
142
+ size: number;
143
+ totalElements: number;
144
+ totalPages: number;
145
+ }, {
146
+ page: number;
147
+ size: number;
148
+ totalElements: number;
149
+ totalPages: number;
150
+ }>>;
151
+ documents: z.ZodArray<z.ZodType<{
152
+ _id: string | import("mongoose").Types.ObjectId;
153
+ matchId: string | import("mongoose").Types.ObjectId;
154
+ score: {
155
+ team1: number | null;
156
+ team2: number | null;
157
+ };
158
+ }, z.ZodTypeDef, {
159
+ _id: string | import("mongoose").Types.ObjectId;
160
+ matchId: string | import("mongoose").Types.ObjectId;
161
+ score: {
162
+ team1: number | null;
163
+ team2: number | null;
164
+ };
165
+ }>, "many">;
166
+ }, "strip", z.ZodTypeAny, {
167
+ documents: {
168
+ _id: string | import("mongoose").Types.ObjectId;
169
+ matchId: string | import("mongoose").Types.ObjectId;
170
+ score: {
171
+ team1: number | null;
172
+ team2: number | null;
173
+ };
174
+ }[];
175
+ metadata?: {
176
+ page: number;
177
+ size: number;
178
+ totalElements: number;
179
+ totalPages: number;
180
+ } | undefined;
181
+ }, {
182
+ documents: {
183
+ _id: string | import("mongoose").Types.ObjectId;
184
+ matchId: string | import("mongoose").Types.ObjectId;
185
+ score: {
186
+ team1: number | null;
187
+ team2: number | null;
188
+ };
189
+ }[];
190
+ metadata?: {
191
+ page: number;
192
+ size: number;
193
+ totalElements: number;
194
+ totalPages: number;
195
+ } | undefined;
196
+ }>, z.ZodType<{
197
+ _id: string | import("mongoose").Types.ObjectId;
198
+ matchId: string | import("mongoose").Types.ObjectId;
199
+ score: {
200
+ team1: number | null;
201
+ team2: number | null;
202
+ };
203
+ }, z.ZodTypeDef, {
204
+ _id: string | import("mongoose").Types.ObjectId;
205
+ matchId: string | import("mongoose").Types.ObjectId;
206
+ score: {
207
+ team1: number | null;
208
+ team2: number | null;
209
+ };
210
+ }>]>>;
211
+ }, "strip", z.ZodTypeAny, {
212
+ message: string;
213
+ success: boolean;
214
+ data?: {
215
+ _id: string | import("mongoose").Types.ObjectId;
216
+ matchId: string | import("mongoose").Types.ObjectId;
217
+ score: {
218
+ team1: number | null;
219
+ team2: number | null;
220
+ };
221
+ } | {
222
+ documents: {
223
+ _id: string | import("mongoose").Types.ObjectId;
224
+ matchId: string | import("mongoose").Types.ObjectId;
225
+ score: {
226
+ team1: number | null;
227
+ team2: number | null;
228
+ };
229
+ }[];
230
+ metadata?: {
231
+ page: number;
232
+ size: number;
233
+ totalElements: number;
234
+ totalPages: number;
235
+ } | undefined;
236
+ } | undefined;
237
+ }, {
238
+ message: string;
239
+ success: boolean;
240
+ data?: {
241
+ _id: string | import("mongoose").Types.ObjectId;
242
+ matchId: string | import("mongoose").Types.ObjectId;
243
+ score: {
244
+ team1: number | null;
245
+ team2: number | null;
246
+ };
247
+ } | {
248
+ documents: {
249
+ _id: string | import("mongoose").Types.ObjectId;
250
+ matchId: string | import("mongoose").Types.ObjectId;
251
+ score: {
252
+ team1: number | null;
253
+ team2: number | null;
254
+ };
255
+ }[];
256
+ metadata?: {
257
+ page: number;
258
+ size: number;
259
+ totalElements: number;
260
+ totalPages: number;
261
+ } | undefined;
262
+ } | undefined;
263
+ }>;
264
+ export declare const PredictionResponseSchema: z.ZodObject<{
265
+ success: z.ZodBoolean;
266
+ message: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
267
+ data: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
268
+ metadata: z.ZodOptional<z.ZodObject<{
269
+ page: z.ZodNumber;
270
+ size: z.ZodNumber;
271
+ totalElements: z.ZodNumber;
272
+ totalPages: z.ZodNumber;
273
+ }, "strip", z.ZodTypeAny, {
274
+ page: number;
275
+ size: number;
276
+ totalElements: number;
277
+ totalPages: number;
278
+ }, {
279
+ page: number;
280
+ size: number;
281
+ totalElements: number;
282
+ totalPages: number;
283
+ }>>;
284
+ documents: z.ZodArray<z.ZodType<{
285
+ _id: string | import("mongoose").Types.ObjectId;
286
+ matchId: string | import("mongoose").Types.ObjectId;
287
+ score: {
288
+ team1: number | null;
289
+ team2: number | null;
290
+ };
291
+ predictionTime?: Date | null | undefined;
292
+ succeeded?: boolean | null | undefined;
293
+ }, z.ZodTypeDef, {
294
+ _id: string | import("mongoose").Types.ObjectId;
295
+ matchId: string | import("mongoose").Types.ObjectId;
296
+ score: {
297
+ team1: number | null;
298
+ team2: number | null;
299
+ };
300
+ predictionTime?: Date | null | undefined;
301
+ succeeded?: boolean | null | undefined;
302
+ }>, "many">;
303
+ }, "strip", z.ZodTypeAny, {
304
+ documents: {
305
+ _id: string | import("mongoose").Types.ObjectId;
306
+ matchId: string | import("mongoose").Types.ObjectId;
307
+ score: {
308
+ team1: number | null;
309
+ team2: number | null;
310
+ };
311
+ predictionTime?: Date | null | undefined;
312
+ succeeded?: boolean | null | undefined;
313
+ }[];
314
+ metadata?: {
315
+ page: number;
316
+ size: number;
317
+ totalElements: number;
318
+ totalPages: number;
319
+ } | undefined;
320
+ }, {
321
+ documents: {
322
+ _id: string | import("mongoose").Types.ObjectId;
323
+ matchId: string | import("mongoose").Types.ObjectId;
324
+ score: {
325
+ team1: number | null;
326
+ team2: number | null;
327
+ };
328
+ predictionTime?: Date | null | undefined;
329
+ succeeded?: boolean | null | undefined;
330
+ }[];
331
+ metadata?: {
332
+ page: number;
333
+ size: number;
334
+ totalElements: number;
335
+ totalPages: number;
336
+ } | undefined;
337
+ }>, z.ZodType<{
338
+ _id: string | import("mongoose").Types.ObjectId;
339
+ matchId: string | import("mongoose").Types.ObjectId;
340
+ score: {
341
+ team1: number | null;
342
+ team2: number | null;
343
+ };
344
+ predictionTime?: Date | null | undefined;
345
+ succeeded?: boolean | null | undefined;
346
+ }, z.ZodTypeDef, {
347
+ _id: string | import("mongoose").Types.ObjectId;
348
+ matchId: string | import("mongoose").Types.ObjectId;
349
+ score: {
350
+ team1: number | null;
351
+ team2: number | null;
352
+ };
353
+ predictionTime?: Date | null | undefined;
354
+ succeeded?: boolean | null | undefined;
355
+ }>]>>;
356
+ }, "strip", z.ZodTypeAny, {
357
+ message: string;
358
+ success: boolean;
359
+ data?: {
360
+ _id: string | import("mongoose").Types.ObjectId;
361
+ matchId: string | import("mongoose").Types.ObjectId;
362
+ score: {
363
+ team1: number | null;
364
+ team2: number | null;
365
+ };
366
+ predictionTime?: Date | null | undefined;
367
+ succeeded?: boolean | null | undefined;
368
+ } | {
369
+ documents: {
370
+ _id: string | import("mongoose").Types.ObjectId;
371
+ matchId: string | import("mongoose").Types.ObjectId;
372
+ score: {
373
+ team1: number | null;
374
+ team2: number | null;
375
+ };
376
+ predictionTime?: Date | null | undefined;
377
+ succeeded?: boolean | null | undefined;
378
+ }[];
379
+ metadata?: {
380
+ page: number;
381
+ size: number;
382
+ totalElements: number;
383
+ totalPages: number;
384
+ } | undefined;
385
+ } | undefined;
386
+ }, {
387
+ message: string;
388
+ success: boolean;
389
+ data?: {
390
+ _id: string | import("mongoose").Types.ObjectId;
391
+ matchId: string | import("mongoose").Types.ObjectId;
392
+ score: {
393
+ team1: number | null;
394
+ team2: number | null;
395
+ };
396
+ predictionTime?: Date | null | undefined;
397
+ succeeded?: boolean | null | undefined;
398
+ } | {
399
+ documents: {
400
+ _id: string | import("mongoose").Types.ObjectId;
401
+ matchId: string | import("mongoose").Types.ObjectId;
402
+ score: {
403
+ team1: number | null;
404
+ team2: number | null;
405
+ };
406
+ predictionTime?: Date | null | undefined;
407
+ succeeded?: boolean | null | undefined;
408
+ }[];
409
+ metadata?: {
410
+ page: number;
411
+ size: number;
412
+ totalElements: number;
413
+ totalPages: number;
414
+ } | undefined;
415
+ } | undefined;
416
+ }>;
417
+ export declare const PredictionNullableResponseSchema: z.ZodObject<{
418
+ success: z.ZodBoolean;
419
+ message: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
420
+ data: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
421
+ metadata: z.ZodOptional<z.ZodObject<{
422
+ page: z.ZodNumber;
423
+ size: z.ZodNumber;
424
+ totalElements: z.ZodNumber;
425
+ totalPages: z.ZodNumber;
426
+ }, "strip", z.ZodTypeAny, {
427
+ page: number;
428
+ size: number;
429
+ totalElements: number;
430
+ totalPages: number;
431
+ }, {
432
+ page: number;
433
+ size: number;
434
+ totalElements: number;
435
+ totalPages: number;
436
+ }>>;
437
+ documents: z.ZodArray<z.ZodType<{
438
+ _id: string | import("mongoose").Types.ObjectId;
439
+ matchId: string | import("mongoose").Types.ObjectId;
440
+ score: {
441
+ team1: number | null;
442
+ team2: number | null;
443
+ };
444
+ predictionTime?: Date | null | undefined;
445
+ succeeded?: boolean | null | undefined;
446
+ } | null, z.ZodTypeDef, {
447
+ _id: string | import("mongoose").Types.ObjectId;
448
+ matchId: string | import("mongoose").Types.ObjectId;
449
+ score: {
450
+ team1: number | null;
451
+ team2: number | null;
452
+ };
453
+ predictionTime?: Date | null | undefined;
454
+ succeeded?: boolean | null | undefined;
455
+ } | null>, "many">;
456
+ }, "strip", z.ZodTypeAny, {
457
+ documents: ({
458
+ _id: string | import("mongoose").Types.ObjectId;
459
+ matchId: string | import("mongoose").Types.ObjectId;
460
+ score: {
461
+ team1: number | null;
462
+ team2: number | null;
463
+ };
464
+ predictionTime?: Date | null | undefined;
465
+ succeeded?: boolean | null | undefined;
466
+ } | null)[];
467
+ metadata?: {
468
+ page: number;
469
+ size: number;
470
+ totalElements: number;
471
+ totalPages: number;
472
+ } | undefined;
473
+ }, {
474
+ documents: ({
475
+ _id: string | import("mongoose").Types.ObjectId;
476
+ matchId: string | import("mongoose").Types.ObjectId;
477
+ score: {
478
+ team1: number | null;
479
+ team2: number | null;
480
+ };
481
+ predictionTime?: Date | null | undefined;
482
+ succeeded?: boolean | null | undefined;
483
+ } | null)[];
484
+ metadata?: {
485
+ page: number;
486
+ size: number;
487
+ totalElements: number;
488
+ totalPages: number;
489
+ } | undefined;
490
+ }>, z.ZodType<{
491
+ _id: string | import("mongoose").Types.ObjectId;
492
+ matchId: string | import("mongoose").Types.ObjectId;
493
+ score: {
494
+ team1: number | null;
495
+ team2: number | null;
496
+ };
497
+ predictionTime?: Date | null | undefined;
498
+ succeeded?: boolean | null | undefined;
499
+ } | null, z.ZodTypeDef, {
500
+ _id: string | import("mongoose").Types.ObjectId;
501
+ matchId: string | import("mongoose").Types.ObjectId;
502
+ score: {
503
+ team1: number | null;
504
+ team2: number | null;
505
+ };
506
+ predictionTime?: Date | null | undefined;
507
+ succeeded?: boolean | null | undefined;
508
+ } | null>]>>;
509
+ }, "strip", z.ZodTypeAny, {
510
+ message: string;
511
+ success: boolean;
512
+ data?: {
513
+ _id: string | import("mongoose").Types.ObjectId;
514
+ matchId: string | import("mongoose").Types.ObjectId;
515
+ score: {
516
+ team1: number | null;
517
+ team2: number | null;
518
+ };
519
+ predictionTime?: Date | null | undefined;
520
+ succeeded?: boolean | null | undefined;
521
+ } | {
522
+ documents: ({
523
+ _id: string | import("mongoose").Types.ObjectId;
524
+ matchId: string | import("mongoose").Types.ObjectId;
525
+ score: {
526
+ team1: number | null;
527
+ team2: number | null;
528
+ };
529
+ predictionTime?: Date | null | undefined;
530
+ succeeded?: boolean | null | undefined;
531
+ } | null)[];
532
+ metadata?: {
533
+ page: number;
534
+ size: number;
535
+ totalElements: number;
536
+ totalPages: number;
537
+ } | undefined;
538
+ } | null | undefined;
539
+ }, {
540
+ message: string;
541
+ success: boolean;
542
+ data?: {
543
+ _id: string | import("mongoose").Types.ObjectId;
544
+ matchId: string | import("mongoose").Types.ObjectId;
545
+ score: {
546
+ team1: number | null;
547
+ team2: number | null;
548
+ };
549
+ predictionTime?: Date | null | undefined;
550
+ succeeded?: boolean | null | undefined;
551
+ } | {
552
+ documents: ({
553
+ _id: string | import("mongoose").Types.ObjectId;
554
+ matchId: string | import("mongoose").Types.ObjectId;
555
+ score: {
556
+ team1: number | null;
557
+ team2: number | null;
558
+ };
559
+ predictionTime?: Date | null | undefined;
560
+ succeeded?: boolean | null | undefined;
561
+ } | null)[];
562
+ metadata?: {
563
+ page: number;
564
+ size: number;
565
+ totalElements: number;
566
+ totalPages: number;
567
+ } | undefined;
568
+ } | null | undefined;
569
+ }>;
570
+ export type CreatePredictionInputDTO = DTO<typeof CreatePredictionSchema>;
571
+ export type EditPredictionInputDTO = DTO<typeof EditPredictionSchema>;
572
+ export type GetPredictionInputDTO = DTO<typeof GetPredictionSchema>;
573
+ export type MutatePredictionOutputDTO = DTO<typeof MutatePredictionSchema>;
574
+ export type PredictionOutputDTO = DTO<typeof PredictionSchema>;
575
+ //# sourceMappingURL=prediction.validation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"prediction.validation.d.ts","sourceRoot":"/","sources":["modules/tournament/prediction/prediction.validation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,GAAG,EAAiB,MAAM,2DAA2D,CAAC;AAQ/F,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;EAIjC,CAAC;AAEH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;EAI/B,CAAC;AAEH,eAAO,MAAM,mBAAmB;;;;;;;;;EAG9B,CAAC;AAEH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAS3B,CAAC;AAEH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;EAOjC,CAAC;AAEH,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAA+C,CAAC;AAC3F,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAyC,CAAC;AAC/E,eAAO,MAAM,gCAAgC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAoD,CAAC;AAElG,MAAM,MAAM,wBAAwB,GAAG,GAAG,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAC1E,MAAM,MAAM,sBAAsB,GAAG,GAAG,CAAC,OAAO,oBAAoB,CAAC,CAAC;AACtE,MAAM,MAAM,qBAAqB,GAAG,GAAG,CAAC,OAAO,mBAAmB,CAAC,CAAC;AACpE,MAAM,MAAM,yBAAyB,GAAG,GAAG,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAC3E,MAAM,MAAM,mBAAmB,GAAG,GAAG,CAAC,OAAO,gBAAgB,CAAC,CAAC"}
@@ -0,0 +1,11 @@
1
+ import { IRewardHandler } from '../reward.interface';
2
+ import { RewardContext } from '../reward.types';
3
+ export declare class CouponRewardHandler implements IRewardHandler {
4
+ private individualUserCouponService;
5
+ private couponService;
6
+ private baseCouponModel;
7
+ constructor();
8
+ private nextFwcCode;
9
+ grant(context: RewardContext): Promise<void>;
10
+ }
11
+ //# sourceMappingURL=coupon-reward.handler.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"coupon-reward.handler.d.ts","sourceRoot":"/","sources":["modules/tournament/reward/handlers/coupon-reward.handler.ts"],"names":[],"mappings":"AAIA,OAAO,EAAC,cAAc,EAAC,MAAM,qBAAqB,CAAC;AACnD,OAAO,EAAC,aAAa,EAAC,MAAM,iBAAiB,CAAC;AAM9C,qBACa,mBAAoB,YAAW,cAAc;IACtD,OAAO,CAAC,2BAA2B,CAA8B;IACjE,OAAO,CAAC,aAAa,CAAgB;IACrC,OAAO,CAAC,eAAe,CAAuD;;YAQhE,WAAW;IAKnB,KAAK,CAAC,OAAO,EAAE,aAAa,GAAG,OAAO,CAAC,IAAI,CAAC;CAerD"}
@@ -0,0 +1,6 @@
1
+ import { mongoose } from '@typegoose/typegoose';
2
+ import { RewardContext } from './reward.types';
3
+ export declare class RewardBuilder {
4
+ static buildCouponRewardContext(matchId: mongoose.Types.ObjectId, tournamentId: mongoose.Types.ObjectId, winnerIds: mongoose.Types.ObjectId[]): RewardContext;
5
+ }
6
+ //# sourceMappingURL=reward.builder.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"reward.builder.d.ts","sourceRoot":"/","sources":["modules/tournament/reward/reward.builder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAC,MAAM,sBAAsB,CAAC;AAE9C,OAAO,EAAC,aAAa,EAAC,MAAM,gBAAgB,CAAC;AAO7C,qBAAa,aAAa;IACtB,MAAM,CAAC,wBAAwB,CAC3B,OAAO,EAAE,QAAQ,CAAC,KAAK,CAAC,QAAQ,EAChC,YAAY,EAAE,QAAQ,CAAC,KAAK,CAAC,QAAQ,EACrC,SAAS,EAAE,QAAQ,CAAC,KAAK,CAAC,QAAQ,EAAE,GACrC,aAAa;CAiCnB"}
@@ -0,0 +1,6 @@
1
+ import { RewardType } from './reward.types';
2
+ import { IRewardHandler } from './reward.interface';
3
+ export declare class RewardFactory {
4
+ static getHandler(type: RewardType): IRewardHandler;
5
+ }
6
+ //# sourceMappingURL=reward.factory.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"reward.factory.d.ts","sourceRoot":"/","sources":["modules/tournament/reward/reward.factory.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC5C,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAGpD,qBAAa,aAAa;IACtB,MAAM,CAAC,UAAU,CAAC,IAAI,EAAE,UAAU,GAAG,cAAc;CAQtD"}
@@ -0,0 +1,5 @@
1
+ import { RewardContext } from './reward.types';
2
+ export interface IRewardHandler {
3
+ grant(context: RewardContext): Promise<void>;
4
+ }
5
+ //# sourceMappingURL=reward.interface.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"reward.interface.d.ts","sourceRoot":"/","sources":["modules/tournament/reward/reward.interface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,aAAa,EAAC,MAAM,gBAAgB,CAAC;AAE7C,MAAM,WAAW,cAAc;IAC3B,KAAK,CAAC,OAAO,EAAE,aAAa,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CAChD"}
@@ -0,0 +1,6 @@
1
+ import { RewardContext, RewardType } from './reward.types';
2
+ export declare class RewardService {
3
+ grant(type: RewardType, context: RewardContext): Promise<void>;
4
+ }
5
+ export declare const rewardService: RewardService;
6
+ //# sourceMappingURL=reward.service.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"reward.service.d.ts","sourceRoot":"/","sources":["modules/tournament/reward/reward.service.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,aAAa,EAAE,UAAU,EAAC,MAAM,gBAAgB,CAAC;AAGzD,qBACa,aAAa;IAChB,KAAK,CAAC,IAAI,EAAE,UAAU,EAAE,OAAO,EAAE,aAAa,GAAG,OAAO,CAAC,IAAI,CAAC;CAIvE;AAED,eAAO,MAAM,aAAa,eAA+B,CAAC"}
@@ -0,0 +1,11 @@
1
+ import { mongoose } from '@typegoose/typegoose';
2
+ export declare enum RewardType {
3
+ COUPON = "coupon"
4
+ }
5
+ export interface RewardContext {
6
+ userIds: mongoose.Types.ObjectId[];
7
+ tournamentId: mongoose.Types.ObjectId;
8
+ matchId: mongoose.Types.ObjectId;
9
+ payload: Record<string, unknown>;
10
+ }
11
+ //# sourceMappingURL=reward.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"reward.types.d.ts","sourceRoot":"/","sources":["modules/tournament/reward/reward.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAC,MAAM,sBAAsB,CAAC;AAE9C,oBAAY,UAAU;IAClB,MAAM,WAAW;CACpB;AAED,MAAM,WAAW,aAAa;IAC1B,OAAO,EAAE,QAAQ,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnC,YAAY,EAAE,QAAQ,CAAC,KAAK,CAAC,QAAQ,CAAC;IACtC,OAAO,EAAE,QAAQ,CAAC,KAAK,CAAC,QAAQ,CAAC;IACjC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACpC"}
@@ -0,0 +1,6 @@
1
+ export declare class ScoreRepository {
2
+ private participantModel;
3
+ constructor();
4
+ }
5
+ export declare const scoreRepository: ScoreRepository;
6
+ //# sourceMappingURL=score.repository.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"score.repository.d.ts","sourceRoot":"/","sources":["modules/tournament/score/score.repository.ts"],"names":[],"mappings":"AAGA,qBACa,eAAe;IACxB,OAAO,CAAC,gBAAgB,CAAoC;;CAK/D;AAED,eAAO,MAAM,eAAe,iBAAiC,CAAC"}
@@ -0,0 +1,6 @@
1
+ export declare class ScoreService {
2
+ private repository;
3
+ constructor();
4
+ }
5
+ export declare const scoreService: ScoreService;
6
+ //# sourceMappingURL=score.service.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"score.service.d.ts","sourceRoot":"/","sources":["modules/tournament/score/score.service.ts"],"names":[],"mappings":"AAGA,qBACa,YAAY;IACrB,OAAO,CAAC,UAAU,CAAkB;;CAKvC;AAED,eAAO,MAAM,YAAY,cAA8B,CAAC"}