@lyxa.ai/marketing 1.0.47 → 1.0.48

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (329) 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 +1346 -7
  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.js +1 -1
  11. package/dist/lib/modules/coupon/services/coupon.service.js.map +1 -1
  12. package/dist/lib/modules/coupon/services/custom-coupon.service.d.ts +2 -0
  13. package/dist/lib/modules/coupon/services/custom-coupon.service.d.ts.map +1 -1
  14. package/dist/lib/modules/coupon/services/custom-coupon.service.js +1 -1
  15. package/dist/lib/modules/coupon/services/custom-coupon.service.js.map +1 -1
  16. package/dist/lib/modules/coupon/services/global-coupon.service.d.ts +1 -1
  17. package/dist/lib/modules/coupon/services/global-coupon.service.d.ts.map +1 -1
  18. package/dist/lib/modules/coupon/services/global-coupon.service.js +16 -10
  19. package/dist/lib/modules/coupon/services/global-coupon.service.js.map +1 -1
  20. package/dist/lib/modules/coupon/services/helper.service.d.ts +2 -1
  21. package/dist/lib/modules/coupon/services/helper.service.d.ts.map +1 -1
  22. package/dist/lib/modules/coupon/services/helper.service.js +7 -1
  23. package/dist/lib/modules/coupon/services/helper.service.js.map +1 -1
  24. package/dist/lib/modules/coupon/services/individual-store-coupon.service.d.ts +2 -0
  25. package/dist/lib/modules/coupon/services/individual-store-coupon.service.d.ts.map +1 -1
  26. package/dist/lib/modules/coupon/services/individual-store-coupon.service.js +2 -2
  27. package/dist/lib/modules/coupon/services/individual-store-coupon.service.js.map +1 -1
  28. package/dist/lib/modules/coupon/services/individual-user-coupon.service.d.ts.map +1 -1
  29. package/dist/lib/modules/coupon/services/individual-user-coupon.service.js +6 -0
  30. package/dist/lib/modules/coupon/services/individual-user-coupon.service.js.map +1 -1
  31. package/dist/lib/modules/coupon/services/patterns/repository/CouponRepository.d.ts.map +1 -1
  32. package/dist/lib/modules/coupon/services/patterns/repository/CouponRepository.js +20 -1
  33. package/dist/lib/modules/coupon/services/patterns/repository/CouponRepository.js.map +1 -1
  34. package/dist/lib/modules/coupon/services/referral-code-coupon.service.d.ts.map +1 -1
  35. package/dist/lib/modules/coupon/services/referral-code-coupon.service.js +1 -1
  36. package/dist/lib/modules/coupon/services/referral-code-coupon.service.js.map +1 -1
  37. package/dist/lib/modules/coupon/services/referral-reward-coupon.service.d.ts +1 -1
  38. package/dist/lib/modules/coupon/services/referral-reward-coupon.service.d.ts.map +1 -1
  39. package/dist/lib/modules/coupon/services/referral-reward-coupon.service.js +21 -15
  40. package/dist/lib/modules/coupon/services/referral-reward-coupon.service.js.map +1 -1
  41. package/dist/lib/modules/coupon/services/shops-categories-coupon.service.d.ts +2 -0
  42. package/dist/lib/modules/coupon/services/shops-categories-coupon.service.d.ts.map +1 -1
  43. package/dist/lib/modules/coupon/services/shops-categories-coupon.service.js +2 -2
  44. package/dist/lib/modules/coupon/services/shops-categories-coupon.service.js.map +1 -1
  45. package/dist/lib/modules/coupon/validations/coupon.validation.d.ts +13 -0
  46. package/dist/lib/modules/coupon/validations/coupon.validation.d.ts.map +1 -1
  47. package/dist/lib/modules/coupon/validations/coupon.validation.js +1 -0
  48. package/dist/lib/modules/coupon/validations/coupon.validation.js.map +1 -1
  49. package/dist/lib/modules/limited-time-offer/limited-time-offer.router.d.ts +6 -6
  50. package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.router.d.ts +6 -6
  51. package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.validation.d.ts +30 -30
  52. package/dist/lib/modules/marketing/services/marketing.service.d.ts.map +1 -1
  53. package/dist/lib/modules/marketing/services/marketing.service.js +8 -2
  54. package/dist/lib/modules/marketing/services/marketing.service.js.map +1 -1
  55. package/dist/lib/modules/marketing/services/synchronize-product-marketing.service.d.ts +2 -0
  56. package/dist/lib/modules/marketing/services/synchronize-product-marketing.service.d.ts.map +1 -1
  57. package/dist/lib/modules/marketing/services/synchronize-product-marketing.service.js +14 -0
  58. package/dist/lib/modules/marketing/services/synchronize-product-marketing.service.js.map +1 -1
  59. package/dist/lib/modules/marketing/validations/buy1-get1-marketing.validation.d.ts +18 -18
  60. package/dist/lib/modules/marketing/validations/discount-marketing.validation.d.ts +30 -30
  61. package/dist/lib/modules/marketing/validations/featured-marketing.validation.d.ts +6 -6
  62. package/dist/lib/modules/marketing/validations/free-delivery-marketing.validation.d.ts +4 -4
  63. package/dist/lib/modules/marketing/validations/marketing.validation.d.ts +2 -2
  64. package/dist/lib/modules/marketing/validations/product-marketing.validation.d.ts +5 -5
  65. package/dist/lib/modules/marketing/validations/punch-marketing.validation.d.ts +4 -4
  66. package/dist/lib/modules/punch-marketing-history/routers/punch-marketing-history.router.d.ts +1 -1
  67. package/dist/lib/modules/punch-marketing-history/validations/punch-marketing-history.validation.d.ts +2 -2
  68. package/dist/lib/modules/tournament/config/config.builder.d.ts +5 -0
  69. package/dist/lib/modules/tournament/config/config.builder.d.ts.map +1 -0
  70. package/dist/lib/modules/tournament/config/config.builder.js +19 -0
  71. package/dist/lib/modules/tournament/config/config.builder.js.map +1 -0
  72. package/dist/lib/modules/tournament/config/config.repository.d.ts +13 -0
  73. package/dist/lib/modules/tournament/config/config.repository.d.ts.map +1 -0
  74. package/dist/lib/modules/tournament/config/config.repository.js +77 -0
  75. package/dist/lib/modules/tournament/config/config.repository.js.map +1 -0
  76. package/dist/lib/modules/tournament/config/config.router.d.ts +363 -0
  77. package/dist/lib/modules/tournament/config/config.router.d.ts.map +1 -0
  78. package/dist/lib/modules/tournament/config/config.router.js +40 -0
  79. package/dist/lib/modules/tournament/config/config.router.js.map +1 -0
  80. package/dist/lib/modules/tournament/config/config.service.d.ts +14 -0
  81. package/dist/lib/modules/tournament/config/config.service.d.ts.map +1 -0
  82. package/dist/lib/modules/tournament/config/config.service.js +101 -0
  83. package/dist/lib/modules/tournament/config/config.service.js.map +1 -0
  84. package/dist/lib/modules/tournament/config/config.validation.d.ts +1014 -0
  85. package/dist/lib/modules/tournament/config/config.validation.d.ts.map +1 -0
  86. package/dist/lib/modules/tournament/config/config.validation.js +70 -0
  87. package/dist/lib/modules/tournament/config/config.validation.js.map +1 -0
  88. package/dist/lib/modules/tournament/match/events/match-ended.consumer.d.ts +2 -0
  89. package/dist/lib/modules/tournament/match/events/match-ended.consumer.d.ts.map +1 -0
  90. package/dist/lib/modules/tournament/match/events/match-ended.consumer.js +15 -0
  91. package/dist/lib/modules/tournament/match/events/match-ended.consumer.js.map +1 -0
  92. package/dist/lib/modules/tournament/match/events/match-ended.event.d.ts +14 -0
  93. package/dist/lib/modules/tournament/match/events/match-ended.event.d.ts.map +1 -0
  94. package/dist/lib/modules/tournament/match/events/match-ended.event.js +12 -0
  95. package/dist/lib/modules/tournament/match/events/match-ended.event.js.map +1 -0
  96. package/dist/lib/modules/tournament/match/match.builder.d.ts +38 -0
  97. package/dist/lib/modules/tournament/match/match.builder.d.ts.map +1 -0
  98. package/dist/lib/modules/tournament/match/match.builder.js +37 -0
  99. package/dist/lib/modules/tournament/match/match.builder.js.map +1 -0
  100. package/dist/lib/modules/tournament/match/match.repository.d.ts +13 -0
  101. package/dist/lib/modules/tournament/match/match.repository.d.ts.map +1 -0
  102. package/dist/lib/modules/tournament/match/match.repository.js +84 -0
  103. package/dist/lib/modules/tournament/match/match.repository.js.map +1 -0
  104. package/dist/lib/modules/tournament/match/match.router.d.ts +489 -0
  105. package/dist/lib/modules/tournament/match/match.router.d.ts.map +1 -0
  106. package/dist/lib/modules/tournament/match/match.router.js +56 -0
  107. package/dist/lib/modules/tournament/match/match.router.js.map +1 -0
  108. package/dist/lib/modules/tournament/match/match.service.d.ts +29 -0
  109. package/dist/lib/modules/tournament/match/match.service.d.ts.map +1 -0
  110. package/dist/lib/modules/tournament/match/match.service.js +193 -0
  111. package/dist/lib/modules/tournament/match/match.service.js.map +1 -0
  112. package/dist/lib/modules/tournament/match/match.validation.d.ts +880 -0
  113. package/dist/lib/modules/tournament/match/match.validation.d.ts.map +1 -0
  114. package/dist/lib/modules/tournament/match/match.validation.js +74 -0
  115. package/dist/lib/modules/tournament/match/match.validation.js.map +1 -0
  116. package/dist/lib/modules/tournament/notification/jobs/notification.producer.d.ts +13 -0
  117. package/dist/lib/modules/tournament/notification/jobs/notification.producer.d.ts.map +1 -0
  118. package/dist/lib/modules/tournament/notification/jobs/notification.producer.js +28 -0
  119. package/dist/lib/modules/tournament/notification/jobs/notification.producer.js.map +1 -0
  120. package/dist/lib/modules/tournament/notification/jobs/notification.worker.d.ts +7 -0
  121. package/dist/lib/modules/tournament/notification/jobs/notification.worker.d.ts.map +1 -0
  122. package/dist/lib/modules/tournament/notification/jobs/notification.worker.js +76 -0
  123. package/dist/lib/modules/tournament/notification/jobs/notification.worker.js.map +1 -0
  124. package/dist/lib/modules/tournament/notification/notification.scheduler.service.d.ts +10 -0
  125. package/dist/lib/modules/tournament/notification/notification.scheduler.service.d.ts.map +1 -0
  126. package/dist/lib/modules/tournament/notification/notification.scheduler.service.js +86 -0
  127. package/dist/lib/modules/tournament/notification/notification.scheduler.service.js.map +1 -0
  128. package/dist/lib/modules/tournament/notification/notification.service.d.ts +11 -0
  129. package/dist/lib/modules/tournament/notification/notification.service.d.ts.map +1 -0
  130. package/dist/lib/modules/tournament/notification/notification.service.js +101 -0
  131. package/dist/lib/modules/tournament/notification/notification.service.js.map +1 -0
  132. package/dist/lib/modules/tournament/participant/participant.repository.d.ts +12 -0
  133. package/dist/lib/modules/tournament/participant/participant.repository.d.ts.map +1 -0
  134. package/dist/lib/modules/tournament/participant/participant.repository.js +73 -0
  135. package/dist/lib/modules/tournament/participant/participant.repository.js.map +1 -0
  136. package/dist/lib/modules/tournament/participant/participant.router.d.ts +104 -0
  137. package/dist/lib/modules/tournament/participant/participant.router.d.ts.map +1 -0
  138. package/dist/lib/modules/tournament/participant/participant.router.js +28 -0
  139. package/dist/lib/modules/tournament/participant/participant.router.js.map +1 -0
  140. package/dist/lib/modules/tournament/participant/participant.service.d.ts +14 -0
  141. package/dist/lib/modules/tournament/participant/participant.service.d.ts.map +1 -0
  142. package/dist/lib/modules/tournament/participant/participant.service.js +103 -0
  143. package/dist/lib/modules/tournament/participant/participant.service.js.map +1 -0
  144. package/dist/lib/modules/tournament/participant/participant.validation.d.ts +719 -0
  145. package/dist/lib/modules/tournament/participant/participant.validation.d.ts.map +1 -0
  146. package/dist/lib/modules/tournament/participant/participant.validation.js +44 -0
  147. package/dist/lib/modules/tournament/participant/participant.validation.js.map +1 -0
  148. package/dist/lib/modules/tournament/prediction/prediction.builder.d.ts +14 -0
  149. package/dist/lib/modules/tournament/prediction/prediction.builder.d.ts.map +1 -0
  150. package/dist/lib/modules/tournament/prediction/prediction.builder.js +23 -0
  151. package/dist/lib/modules/tournament/prediction/prediction.builder.js.map +1 -0
  152. package/dist/lib/modules/tournament/prediction/prediction.repository.d.ts +11 -0
  153. package/dist/lib/modules/tournament/prediction/prediction.repository.d.ts.map +1 -0
  154. package/dist/lib/modules/tournament/prediction/prediction.repository.js +73 -0
  155. package/dist/lib/modules/tournament/prediction/prediction.repository.js.map +1 -0
  156. package/dist/lib/modules/tournament/prediction/prediction.router.d.ts +133 -0
  157. package/dist/lib/modules/tournament/prediction/prediction.router.d.ts.map +1 -0
  158. package/dist/lib/modules/tournament/prediction/prediction.router.js +36 -0
  159. package/dist/lib/modules/tournament/prediction/prediction.router.js.map +1 -0
  160. package/dist/lib/modules/tournament/prediction/prediction.service.d.ts +17 -0
  161. package/dist/lib/modules/tournament/prediction/prediction.service.d.ts.map +1 -0
  162. package/dist/lib/modules/tournament/prediction/prediction.service.js +125 -0
  163. package/dist/lib/modules/tournament/prediction/prediction.service.js.map +1 -0
  164. package/dist/lib/modules/tournament/prediction/prediction.validation.d.ts +575 -0
  165. package/dist/lib/modules/tournament/prediction/prediction.validation.d.ts.map +1 -0
  166. package/dist/lib/modules/tournament/prediction/prediction.validation.js +46 -0
  167. package/dist/lib/modules/tournament/prediction/prediction.validation.js.map +1 -0
  168. package/dist/lib/modules/tournament/reward/handlers/coupon-reward.handler.d.ts +8 -0
  169. package/dist/lib/modules/tournament/reward/handlers/coupon-reward.handler.d.ts.map +1 -0
  170. package/dist/lib/modules/tournament/reward/handlers/coupon-reward.handler.js +65 -0
  171. package/dist/lib/modules/tournament/reward/handlers/coupon-reward.handler.js.map +1 -0
  172. package/dist/lib/modules/tournament/reward/reward.factory.d.ts +6 -0
  173. package/dist/lib/modules/tournament/reward/reward.factory.d.ts.map +1 -0
  174. package/dist/lib/modules/tournament/reward/reward.factory.js +21 -0
  175. package/dist/lib/modules/tournament/reward/reward.factory.js.map +1 -0
  176. package/dist/lib/modules/tournament/reward/reward.interface.d.ts +5 -0
  177. package/dist/lib/modules/tournament/reward/reward.interface.d.ts.map +1 -0
  178. package/dist/lib/modules/tournament/reward/reward.interface.js +3 -0
  179. package/dist/lib/modules/tournament/reward/reward.interface.js.map +1 -0
  180. package/dist/lib/modules/tournament/reward/reward.service.d.ts +6 -0
  181. package/dist/lib/modules/tournament/reward/reward.service.d.ts.map +1 -0
  182. package/dist/lib/modules/tournament/reward/reward.service.js +56 -0
  183. package/dist/lib/modules/tournament/reward/reward.service.js.map +1 -0
  184. package/dist/lib/modules/tournament/reward/reward.types.d.ts +11 -0
  185. package/dist/lib/modules/tournament/reward/reward.types.d.ts.map +1 -0
  186. package/dist/lib/modules/tournament/reward/reward.types.js +8 -0
  187. package/dist/lib/modules/tournament/reward/reward.types.js.map +1 -0
  188. package/dist/lib/modules/tournament/team/team.builder.d.ts +19 -0
  189. package/dist/lib/modules/tournament/team/team.builder.d.ts.map +1 -0
  190. package/dist/lib/modules/tournament/team/team.builder.js +18 -0
  191. package/dist/lib/modules/tournament/team/team.builder.js.map +1 -0
  192. package/dist/lib/modules/tournament/team/team.repository.d.ts +11 -0
  193. package/dist/lib/modules/tournament/team/team.repository.d.ts.map +1 -0
  194. package/dist/lib/modules/tournament/team/team.repository.js +71 -0
  195. package/dist/lib/modules/tournament/team/team.repository.js.map +1 -0
  196. package/dist/lib/modules/tournament/team/team.router.d.ts +237 -0
  197. package/dist/lib/modules/tournament/team/team.router.d.ts.map +1 -0
  198. package/dist/lib/modules/tournament/team/team.router.js +36 -0
  199. package/dist/lib/modules/tournament/team/team.router.js.map +1 -0
  200. package/dist/lib/modules/tournament/team/team.service.d.ts +15 -0
  201. package/dist/lib/modules/tournament/team/team.service.d.ts.map +1 -0
  202. package/dist/lib/modules/tournament/team/team.service.js +137 -0
  203. package/dist/lib/modules/tournament/team/team.service.js.map +1 -0
  204. package/dist/lib/modules/tournament/team/team.validation.d.ts +986 -0
  205. package/dist/lib/modules/tournament/team/team.validation.d.ts.map +1 -0
  206. package/dist/lib/modules/tournament/team/team.validation.js +55 -0
  207. package/dist/lib/modules/tournament/team/team.validation.js.map +1 -0
  208. package/dist/lib/modules/tournament/tournament.router.d.ts +1336 -0
  209. package/dist/lib/modules/tournament/tournament.router.d.ts.map +1 -0
  210. package/dist/lib/modules/tournament/tournament.router.js +17 -0
  211. package/dist/lib/modules/tournament/tournament.router.js.map +1 -0
  212. package/dist/types/event/event-initializations.d.ts.map +1 -1
  213. package/dist/types/events/event-initializations.d.ts +2 -0
  214. package/dist/types/events/event-initializations.d.ts.map +1 -0
  215. package/dist/types/index.d.ts +1346 -7
  216. package/dist/types/index.d.ts.map +1 -1
  217. package/dist/types/modules/coupon/routers/coupon.router.d.ts +4 -0
  218. package/dist/types/modules/coupon/routers/coupon.router.d.ts.map +1 -1
  219. package/dist/types/modules/coupon/services/custom-coupon.service.d.ts +2 -0
  220. package/dist/types/modules/coupon/services/custom-coupon.service.d.ts.map +1 -1
  221. package/dist/types/modules/coupon/services/global-coupon.service.d.ts +1 -1
  222. package/dist/types/modules/coupon/services/global-coupon.service.d.ts.map +1 -1
  223. package/dist/types/modules/coupon/services/helper.service.d.ts +2 -1
  224. package/dist/types/modules/coupon/services/helper.service.d.ts.map +1 -1
  225. package/dist/types/modules/coupon/services/individual-store-coupon.service.d.ts +2 -0
  226. package/dist/types/modules/coupon/services/individual-store-coupon.service.d.ts.map +1 -1
  227. package/dist/types/modules/coupon/services/individual-user-coupon.service.d.ts.map +1 -1
  228. package/dist/types/modules/coupon/services/patterns/repository/CouponRepository.d.ts.map +1 -1
  229. package/dist/types/modules/coupon/services/referral-code-coupon.service.d.ts.map +1 -1
  230. package/dist/types/modules/coupon/services/referral-reward-coupon.service.d.ts +1 -1
  231. package/dist/types/modules/coupon/services/referral-reward-coupon.service.d.ts.map +1 -1
  232. package/dist/types/modules/coupon/services/shops-categories-coupon.service.d.ts +2 -0
  233. package/dist/types/modules/coupon/services/shops-categories-coupon.service.d.ts.map +1 -1
  234. package/dist/types/modules/coupon/validations/coupon.validation.d.ts +13 -0
  235. package/dist/types/modules/coupon/validations/coupon.validation.d.ts.map +1 -1
  236. package/dist/types/modules/limited-time-offer/limited-time-offer.router.d.ts +6 -6
  237. package/dist/types/modules/limited-time-offer/participant/limited-time-offer-participant.router.d.ts +6 -6
  238. package/dist/types/modules/limited-time-offer/participant/limited-time-offer-participant.validation.d.ts +30 -30
  239. package/dist/types/modules/marketing/services/marketing.service.d.ts.map +1 -1
  240. package/dist/types/modules/marketing/services/synchronize-product-marketing.service.d.ts +2 -0
  241. package/dist/types/modules/marketing/services/synchronize-product-marketing.service.d.ts.map +1 -1
  242. package/dist/types/modules/marketing/validations/buy1-get1-marketing.validation.d.ts +18 -18
  243. package/dist/types/modules/marketing/validations/discount-marketing.validation.d.ts +30 -30
  244. package/dist/types/modules/marketing/validations/featured-marketing.validation.d.ts +6 -6
  245. package/dist/types/modules/marketing/validations/free-delivery-marketing.validation.d.ts +4 -4
  246. package/dist/types/modules/marketing/validations/marketing.validation.d.ts +2 -2
  247. package/dist/types/modules/marketing/validations/product-marketing.validation.d.ts +5 -5
  248. package/dist/types/modules/marketing/validations/punch-marketing.validation.d.ts +4 -4
  249. package/dist/types/modules/punch-marketing-history/routers/punch-marketing-history.router.d.ts +1 -1
  250. package/dist/types/modules/punch-marketing-history/validations/punch-marketing-history.validation.d.ts +2 -2
  251. package/dist/types/modules/tournament/config/config.builder.d.ts +5 -0
  252. package/dist/types/modules/tournament/config/config.builder.d.ts.map +1 -0
  253. package/dist/types/modules/tournament/config/config.repository.d.ts +13 -0
  254. package/dist/types/modules/tournament/config/config.repository.d.ts.map +1 -0
  255. package/dist/types/modules/tournament/config/config.router.d.ts +363 -0
  256. package/dist/types/modules/tournament/config/config.router.d.ts.map +1 -0
  257. package/dist/types/modules/tournament/config/config.service.d.ts +14 -0
  258. package/dist/types/modules/tournament/config/config.service.d.ts.map +1 -0
  259. package/dist/types/modules/tournament/config/config.validation.d.ts +1014 -0
  260. package/dist/types/modules/tournament/config/config.validation.d.ts.map +1 -0
  261. package/dist/types/modules/tournament/config/tournament-config.validation.d.ts +201 -0
  262. package/dist/types/modules/tournament/config/tournament-config.validation.d.ts.map +1 -0
  263. package/dist/types/modules/tournament/match/events/match-ended.consumer.d.ts +2 -0
  264. package/dist/types/modules/tournament/match/events/match-ended.consumer.d.ts.map +1 -0
  265. package/dist/types/modules/tournament/match/events/match-ended.event.d.ts +14 -0
  266. package/dist/types/modules/tournament/match/events/match-ended.event.d.ts.map +1 -0
  267. package/dist/types/modules/tournament/match/match.builder.d.ts +38 -0
  268. package/dist/types/modules/tournament/match/match.builder.d.ts.map +1 -0
  269. package/dist/types/modules/tournament/match/match.repository.d.ts +13 -0
  270. package/dist/types/modules/tournament/match/match.repository.d.ts.map +1 -0
  271. package/dist/types/modules/tournament/match/match.router.d.ts +489 -0
  272. package/dist/types/modules/tournament/match/match.router.d.ts.map +1 -0
  273. package/dist/types/modules/tournament/match/match.service.d.ts +29 -0
  274. package/dist/types/modules/tournament/match/match.service.d.ts.map +1 -0
  275. package/dist/types/modules/tournament/match/match.validation.d.ts +880 -0
  276. package/dist/types/modules/tournament/match/match.validation.d.ts.map +1 -0
  277. package/dist/types/modules/tournament/notification/jobs/notification.producer.d.ts +13 -0
  278. package/dist/types/modules/tournament/notification/jobs/notification.producer.d.ts.map +1 -0
  279. package/dist/types/modules/tournament/notification/jobs/notification.worker.d.ts +7 -0
  280. package/dist/types/modules/tournament/notification/jobs/notification.worker.d.ts.map +1 -0
  281. package/dist/types/modules/tournament/notification/notification.scheduler.service.d.ts +10 -0
  282. package/dist/types/modules/tournament/notification/notification.scheduler.service.d.ts.map +1 -0
  283. package/dist/types/modules/tournament/notification/notification.service.d.ts +11 -0
  284. package/dist/types/modules/tournament/notification/notification.service.d.ts.map +1 -0
  285. package/dist/types/modules/tournament/participant/participant.repository.d.ts +12 -0
  286. package/dist/types/modules/tournament/participant/participant.repository.d.ts.map +1 -0
  287. package/dist/types/modules/tournament/participant/participant.router.d.ts +104 -0
  288. package/dist/types/modules/tournament/participant/participant.router.d.ts.map +1 -0
  289. package/dist/types/modules/tournament/participant/participant.service.d.ts +14 -0
  290. package/dist/types/modules/tournament/participant/participant.service.d.ts.map +1 -0
  291. package/dist/types/modules/tournament/participant/participant.validation.d.ts +719 -0
  292. package/dist/types/modules/tournament/participant/participant.validation.d.ts.map +1 -0
  293. package/dist/types/modules/tournament/prediction/prediction.builder.d.ts +14 -0
  294. package/dist/types/modules/tournament/prediction/prediction.builder.d.ts.map +1 -0
  295. package/dist/types/modules/tournament/prediction/prediction.repository.d.ts +11 -0
  296. package/dist/types/modules/tournament/prediction/prediction.repository.d.ts.map +1 -0
  297. package/dist/types/modules/tournament/prediction/prediction.router.d.ts +133 -0
  298. package/dist/types/modules/tournament/prediction/prediction.router.d.ts.map +1 -0
  299. package/dist/types/modules/tournament/prediction/prediction.service.d.ts +17 -0
  300. package/dist/types/modules/tournament/prediction/prediction.service.d.ts.map +1 -0
  301. package/dist/types/modules/tournament/prediction/prediction.validation.d.ts +575 -0
  302. package/dist/types/modules/tournament/prediction/prediction.validation.d.ts.map +1 -0
  303. package/dist/types/modules/tournament/reward/handlers/coupon-reward.handler.d.ts +8 -0
  304. package/dist/types/modules/tournament/reward/handlers/coupon-reward.handler.d.ts.map +1 -0
  305. package/dist/types/modules/tournament/reward/reward.factory.d.ts +6 -0
  306. package/dist/types/modules/tournament/reward/reward.factory.d.ts.map +1 -0
  307. package/dist/types/modules/tournament/reward/reward.interface.d.ts +5 -0
  308. package/dist/types/modules/tournament/reward/reward.interface.d.ts.map +1 -0
  309. package/dist/types/modules/tournament/reward/reward.service.d.ts +6 -0
  310. package/dist/types/modules/tournament/reward/reward.service.d.ts.map +1 -0
  311. package/dist/types/modules/tournament/reward/reward.types.d.ts +11 -0
  312. package/dist/types/modules/tournament/reward/reward.types.d.ts.map +1 -0
  313. package/dist/types/modules/tournament/team/team.builder.d.ts +19 -0
  314. package/dist/types/modules/tournament/team/team.builder.d.ts.map +1 -0
  315. package/dist/types/modules/tournament/team/team.repository.d.ts +11 -0
  316. package/dist/types/modules/tournament/team/team.repository.d.ts.map +1 -0
  317. package/dist/types/modules/tournament/team/team.router.d.ts +237 -0
  318. package/dist/types/modules/tournament/team/team.router.d.ts.map +1 -0
  319. package/dist/types/modules/tournament/team/team.service.d.ts +15 -0
  320. package/dist/types/modules/tournament/team/team.service.d.ts.map +1 -0
  321. package/dist/types/modules/tournament/team/team.validation.d.ts +986 -0
  322. package/dist/types/modules/tournament/team/team.validation.d.ts.map +1 -0
  323. package/dist/types/modules/tournament/tournament.router.d.ts +1336 -0
  324. package/dist/types/modules/tournament/tournament.router.d.ts.map +1 -0
  325. package/package.json +3 -3
  326. package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.service.d.ts +0 -1
  327. package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.service.d.ts.map +0 -1
  328. package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.service.js +0 -2
  329. package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.service.js.map +0 -1
@@ -29,9 +29,9 @@ declare const FeaturedMarketingValidationSchema: z.ZodObject<{
29
29
  end?: Date | undefined;
30
30
  };
31
31
  shop: import("mongoose").Types.ObjectId;
32
- marketingType: MarketingType.FEATURED;
33
32
  isAppliedByCompany: boolean;
34
33
  pausedAt: Date | null;
34
+ marketingType: MarketingType.FEATURED;
35
35
  amount: number;
36
36
  admin?: import("mongoose").Types.ObjectId | null | undefined;
37
37
  }, {
@@ -40,8 +40,8 @@ declare const FeaturedMarketingValidationSchema: z.ZodObject<{
40
40
  end?: string | Date | undefined;
41
41
  };
42
42
  shop: string | import("mongoose").Types.ObjectId;
43
- marketingType: MarketingType.FEATURED;
44
43
  isAppliedByCompany: boolean;
44
+ marketingType: MarketingType.FEATURED;
45
45
  amount: number;
46
46
  status?: import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus | undefined;
47
47
  admin?: string | import("mongoose").Types.ObjectId | null | undefined;
@@ -192,9 +192,9 @@ declare const FeaturedMarketingValidationSchemaRefined: z.ZodEffects<z.ZodObject
192
192
  end?: Date | undefined;
193
193
  };
194
194
  shop: import("mongoose").Types.ObjectId;
195
- marketingType: MarketingType.FEATURED;
196
195
  isAppliedByCompany: boolean;
197
196
  pausedAt: Date | null;
197
+ marketingType: MarketingType.FEATURED;
198
198
  amount: number;
199
199
  admin?: import("mongoose").Types.ObjectId | null | undefined;
200
200
  }, {
@@ -203,8 +203,8 @@ declare const FeaturedMarketingValidationSchemaRefined: z.ZodEffects<z.ZodObject
203
203
  end?: string | Date | undefined;
204
204
  };
205
205
  shop: string | import("mongoose").Types.ObjectId;
206
- marketingType: MarketingType.FEATURED;
207
206
  isAppliedByCompany: boolean;
207
+ marketingType: MarketingType.FEATURED;
208
208
  amount: number;
209
209
  status?: import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus | undefined;
210
210
  admin?: string | import("mongoose").Types.ObjectId | null | undefined;
@@ -216,9 +216,9 @@ declare const FeaturedMarketingValidationSchemaRefined: z.ZodEffects<z.ZodObject
216
216
  end?: Date | undefined;
217
217
  };
218
218
  shop: import("mongoose").Types.ObjectId;
219
- marketingType: MarketingType.FEATURED;
220
219
  isAppliedByCompany: boolean;
221
220
  pausedAt: Date | null;
221
+ marketingType: MarketingType.FEATURED;
222
222
  amount: number;
223
223
  admin?: import("mongoose").Types.ObjectId | null | undefined;
224
224
  }, {
@@ -227,8 +227,8 @@ declare const FeaturedMarketingValidationSchemaRefined: z.ZodEffects<z.ZodObject
227
227
  end?: string | Date | undefined;
228
228
  };
229
229
  shop: string | import("mongoose").Types.ObjectId;
230
- marketingType: MarketingType.FEATURED;
231
230
  isAppliedByCompany: boolean;
231
+ marketingType: MarketingType.FEATURED;
232
232
  amount: number;
233
233
  status?: import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus | undefined;
234
234
  admin?: string | import("mongoose").Types.ObjectId | null | undefined;
@@ -93,9 +93,9 @@ declare const FreeDeliveryMarketingValidationSchema: z.ZodEffects<z.ZodObject<{
93
93
  spendLimit: number;
94
94
  isSpendLimitEnabled: boolean;
95
95
  shop: import("mongoose").Types.ObjectId;
96
- marketingType: MarketingType.FREE_DELIVERY;
97
96
  isAppliedByCompany: boolean;
98
97
  pausedAt: Date | null;
98
+ marketingType: MarketingType.FREE_DELIVERY;
99
99
  admin?: import("mongoose").Types.ObjectId | null | undefined;
100
100
  }, {
101
101
  duration: {
@@ -103,8 +103,8 @@ declare const FreeDeliveryMarketingValidationSchema: z.ZodEffects<z.ZodObject<{
103
103
  end?: string | Date | undefined;
104
104
  };
105
105
  shop: string | import("mongoose").Types.ObjectId;
106
- marketingType: MarketingType.FREE_DELIVERY;
107
106
  isAppliedByCompany: boolean;
107
+ marketingType: MarketingType.FREE_DELIVERY;
108
108
  status?: import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus | undefined;
109
109
  spendLimit?: number | undefined;
110
110
  isSpendLimitEnabled?: boolean | undefined;
@@ -119,9 +119,9 @@ declare const FreeDeliveryMarketingValidationSchema: z.ZodEffects<z.ZodObject<{
119
119
  spendLimit: number;
120
120
  isSpendLimitEnabled: boolean;
121
121
  shop: import("mongoose").Types.ObjectId;
122
- marketingType: MarketingType.FREE_DELIVERY;
123
122
  isAppliedByCompany: boolean;
124
123
  pausedAt: Date | null;
124
+ marketingType: MarketingType.FREE_DELIVERY;
125
125
  admin?: import("mongoose").Types.ObjectId | null | undefined;
126
126
  }, {
127
127
  duration: {
@@ -129,8 +129,8 @@ declare const FreeDeliveryMarketingValidationSchema: z.ZodEffects<z.ZodObject<{
129
129
  end?: string | Date | undefined;
130
130
  };
131
131
  shop: string | import("mongoose").Types.ObjectId;
132
- marketingType: MarketingType.FREE_DELIVERY;
133
132
  isAppliedByCompany: boolean;
133
+ marketingType: MarketingType.FREE_DELIVERY;
134
134
  status?: import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus | undefined;
135
135
  spendLimit?: number | undefined;
136
136
  isSpendLimitEnabled?: boolean | undefined;
@@ -49,9 +49,9 @@ declare const MarketingValidationSchema: z.ZodObject<{
49
49
  end?: Date | undefined;
50
50
  };
51
51
  shop: import("mongoose").Types.ObjectId;
52
- marketingType: MarketingType;
53
52
  isAppliedByCompany: boolean;
54
53
  pausedAt: Date | null;
54
+ marketingType: MarketingType;
55
55
  admin?: import("mongoose").Types.ObjectId | null | undefined;
56
56
  }, {
57
57
  duration: {
@@ -59,8 +59,8 @@ declare const MarketingValidationSchema: z.ZodObject<{
59
59
  end?: string | Date | undefined;
60
60
  };
61
61
  shop: string | import("mongoose").Types.ObjectId;
62
- marketingType: MarketingType;
63
62
  isAppliedByCompany: boolean;
63
+ marketingType: MarketingType;
64
64
  status?: MarketingStatus | undefined;
65
65
  admin?: string | import("mongoose").Types.ObjectId | null | undefined;
66
66
  pausedAt?: string | Date | null | undefined;
@@ -192,14 +192,14 @@ export declare const BatchCreateProductMarketingsInputSchema: z.ZodObject<{
192
192
  }, "strip", z.ZodTypeAny, {
193
193
  shop: import("mongoose").Types.ObjectId;
194
194
  categories: import("mongoose").Types.ObjectId[];
195
+ isEntireMenu: boolean;
195
196
  products: {
196
197
  product: import("mongoose").Types.ObjectId;
197
198
  value?: number | undefined;
198
199
  valueType?: ValueType | null | undefined;
199
200
  }[];
200
- marketingId: import("mongoose").Types.ObjectId;
201
201
  isBuy1Get1: boolean;
202
- isEntireMenu: boolean;
202
+ marketingId: import("mongoose").Types.ObjectId;
203
203
  value?: number | undefined;
204
204
  valueType?: ValueType | undefined;
205
205
  isAppliedByCompany?: boolean | undefined;
@@ -207,18 +207,18 @@ export declare const BatchCreateProductMarketingsInputSchema: z.ZodObject<{
207
207
  categoryValueType?: ValueType | undefined;
208
208
  }, {
209
209
  shop: string | import("mongoose").Types.ObjectId;
210
- marketingId: string | import("mongoose").Types.ObjectId;
211
- isBuy1Get1: boolean;
212
210
  isEntireMenu: boolean;
211
+ isBuy1Get1: boolean;
212
+ marketingId: string | import("mongoose").Types.ObjectId;
213
213
  value?: number | undefined;
214
214
  valueType?: ValueType | undefined;
215
215
  categories?: (string | import("mongoose").Types.ObjectId)[] | undefined;
216
+ isAppliedByCompany?: boolean | undefined;
216
217
  products?: {
217
218
  product: string | import("mongoose").Types.ObjectId;
218
219
  value?: number | undefined;
219
220
  valueType?: ValueType | null | undefined;
220
221
  }[] | undefined;
221
- isAppliedByCompany?: boolean | undefined;
222
222
  categoryValue?: number | undefined;
223
223
  categoryValueType?: ValueType | undefined;
224
224
  }>;
@@ -107,9 +107,9 @@ declare const PunchMarketingValidationSchema: z.ZodEffects<z.ZodObject<{
107
107
  end?: Date | undefined;
108
108
  };
109
109
  shop: import("mongoose").Types.ObjectId;
110
- marketingType: MarketingType.PUNCH_MARKETING;
111
110
  isAppliedByCompany: boolean;
112
111
  pausedAt: Date | null;
112
+ marketingType: MarketingType.PUNCH_MARKETING;
113
113
  minimumOrderValue: number;
114
114
  couponValueType: ValueType;
115
115
  couponValue: number;
@@ -123,8 +123,8 @@ declare const PunchMarketingValidationSchema: z.ZodEffects<z.ZodObject<{
123
123
  end?: string | Date | undefined;
124
124
  };
125
125
  shop: string | import("mongoose").Types.ObjectId;
126
- marketingType: MarketingType.PUNCH_MARKETING;
127
126
  isAppliedByCompany: boolean;
127
+ marketingType: MarketingType.PUNCH_MARKETING;
128
128
  minimumOrderValue: number;
129
129
  couponValueType: ValueType;
130
130
  couponValue: number;
@@ -141,9 +141,9 @@ declare const PunchMarketingValidationSchema: z.ZodEffects<z.ZodObject<{
141
141
  end?: Date | undefined;
142
142
  };
143
143
  shop: import("mongoose").Types.ObjectId;
144
- marketingType: MarketingType.PUNCH_MARKETING;
145
144
  isAppliedByCompany: boolean;
146
145
  pausedAt: Date | null;
146
+ marketingType: MarketingType.PUNCH_MARKETING;
147
147
  minimumOrderValue: number;
148
148
  couponValueType: ValueType;
149
149
  couponValue: number;
@@ -157,8 +157,8 @@ declare const PunchMarketingValidationSchema: z.ZodEffects<z.ZodObject<{
157
157
  end?: string | Date | undefined;
158
158
  };
159
159
  shop: string | import("mongoose").Types.ObjectId;
160
- marketingType: MarketingType.PUNCH_MARKETING;
161
160
  isAppliedByCompany: boolean;
161
+ marketingType: MarketingType.PUNCH_MARKETING;
162
162
  minimumOrderValue: number;
163
163
  couponValueType: ValueType;
164
164
  couponValue: number;
@@ -18,8 +18,8 @@ export declare const punchMarketingHistoryRouter: import("@trpc/server").TRPCBui
18
18
  input: {
19
19
  user: string | import("mongoose").Types.ObjectId;
20
20
  shop: string | import("mongoose").Types.ObjectId;
21
- minimumOrderValue: number;
22
21
  marketing: string | import("mongoose").Types.ObjectId;
22
+ minimumOrderValue: number;
23
23
  targetOrder: number;
24
24
  couponValueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
25
25
  couponValue: number;
@@ -22,8 +22,8 @@ declare const PunchMarketingHistoryValidationSchema: z.ZodObject<{
22
22
  }, "strict", z.ZodTypeAny, {
23
23
  user: import("mongoose").Types.ObjectId;
24
24
  shop: import("mongoose").Types.ObjectId;
25
- minimumOrderValue: number;
26
25
  marketing: import("mongoose").Types.ObjectId;
26
+ minimumOrderValue: number;
27
27
  targetOrder: number;
28
28
  couponValueType: ValueType;
29
29
  couponValue: number;
@@ -37,8 +37,8 @@ declare const PunchMarketingHistoryValidationSchema: z.ZodObject<{
37
37
  }, {
38
38
  user: string | import("mongoose").Types.ObjectId;
39
39
  shop: string | import("mongoose").Types.ObjectId;
40
- minimumOrderValue: number;
41
40
  marketing: string | import("mongoose").Types.ObjectId;
41
+ minimumOrderValue: number;
42
42
  targetOrder: number;
43
43
  couponValueType: ValueType;
44
44
  couponValue: number;
@@ -0,0 +1,5 @@
1
+ import { UpdateTournamentConfigInputDTO } from './config.validation';
2
+ export declare class TournamentConfigBuilder {
3
+ static buildUpdate(input: UpdateTournamentConfigInputDTO): Record<string, unknown>;
4
+ }
5
+ //# sourceMappingURL=config.builder.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"config.builder.d.ts","sourceRoot":"/","sources":["modules/tournament/config/config.builder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,8BAA8B,EAAE,MAAM,qBAAqB,CAAC;AAErE,qBAAa,uBAAuB;IAChC,MAAM,CAAC,WAAW,CAAC,KAAK,EAAE,8BAA8B,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;CAQrF"}
@@ -0,0 +1,13 @@
1
+ import { mongoose } from '@typegoose/typegoose';
2
+ import { Tournament as Model } from '@lyxa.ai/core/dist/libraries/mongo/models';
3
+ export declare class TournamentConfigRepository {
4
+ private model;
5
+ constructor();
6
+ existsByTag(tag: string): Promise<boolean>;
7
+ create(input: object): Promise<Model>;
8
+ findById(id: mongoose.Types.ObjectId): Promise<Model | null>;
9
+ findAll(): Promise<Model[]>;
10
+ updateById(id: mongoose.Types.ObjectId, updates: object): Promise<Model | null>;
11
+ }
12
+ export declare const tournamentConfigRepository: TournamentConfigRepository;
13
+ //# sourceMappingURL=config.repository.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"config.repository.d.ts","sourceRoot":"/","sources":["modules/tournament/config/config.repository.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EAAE,UAAU,IAAI,KAAK,EAAmB,MAAM,2CAA2C,CAAC;AAEjG,qBACa,0BAA0B;IACtC,OAAO,CAAC,KAAK,CAAyB;;IAMhC,WAAW,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAI1C,MAAM,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,KAAK,CAAC;IAKrC,QAAQ,CAAC,EAAE,EAAE,QAAQ,CAAC,KAAK,CAAC,QAAQ,GAAG,OAAO,CAAC,KAAK,GAAG,IAAI,CAAC;IAI5D,OAAO,IAAI,OAAO,CAAC,KAAK,EAAE,CAAC;IAI3B,UAAU,CAAC,EAAE,EAAE,QAAQ,CAAC,KAAK,CAAC,QAAQ,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,KAAK,GAAG,IAAI,CAAC;CAIrF;AAED,eAAO,MAAM,0BAA0B,4BAA4C,CAAC"}
@@ -0,0 +1,363 @@
1
+ export declare const configRouter: import("@trpc/server").TRPCBuiltRouter<{
2
+ ctx: import("@lyxa.ai/core/dist/libraries/trpc/context").LyxaHTTPContext;
3
+ meta: object;
4
+ errorShape: {
5
+ message: string;
6
+ data: {
7
+ stack: undefined;
8
+ path: undefined;
9
+ code: import("@trpc/server").TRPC_ERROR_CODE_KEY;
10
+ httpStatus: number;
11
+ };
12
+ stack: undefined;
13
+ code: import("@trpc/server").TRPC_ERROR_CODE_NUMBER;
14
+ };
15
+ transformer: false;
16
+ }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
17
+ create: import("@trpc/server").TRPCMutationProcedure<{
18
+ input: {
19
+ startDate: string | Date;
20
+ endDate: string | Date;
21
+ tag: string;
22
+ status?: import("@lyxa.ai/core/dist/utilities/enum").Status | undefined;
23
+ };
24
+ output: {
25
+ message: string;
26
+ success: boolean;
27
+ data?: {
28
+ status: import("@lyxa.ai/core/dist/utilities/enum").Status;
29
+ _id: string | import("mongoose").Types.ObjectId;
30
+ tag: string;
31
+ createdAt?: Date | null | undefined;
32
+ startDate?: Date | null | undefined;
33
+ endDate?: Date | null | undefined;
34
+ updatedAt?: Date | null | undefined;
35
+ matches?: {
36
+ _id: string | import("mongoose").Types.ObjectId;
37
+ team1: {
38
+ name: string;
39
+ teamId: string | import("mongoose").Types.ObjectId;
40
+ };
41
+ team2: {
42
+ name: string;
43
+ teamId: string | import("mongoose").Types.ObjectId;
44
+ };
45
+ score: {
46
+ team1: number | null;
47
+ team2: number | null;
48
+ };
49
+ stage: string;
50
+ endDate?: Date | null | undefined;
51
+ startingDate?: Date | null | undefined;
52
+ additionalTag?: string | undefined;
53
+ winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
54
+ }[] | undefined;
55
+ teams?: {
56
+ name: string;
57
+ _id: string | import("mongoose").Types.ObjectId;
58
+ picture?: string | null | undefined;
59
+ }[] | undefined;
60
+ } | {
61
+ documents: {
62
+ status: import("@lyxa.ai/core/dist/utilities/enum").Status;
63
+ _id: string | import("mongoose").Types.ObjectId;
64
+ tag: string;
65
+ createdAt?: Date | null | undefined;
66
+ startDate?: Date | null | undefined;
67
+ endDate?: Date | null | undefined;
68
+ updatedAt?: Date | null | undefined;
69
+ matches?: {
70
+ _id: string | import("mongoose").Types.ObjectId;
71
+ team1: {
72
+ name: string;
73
+ teamId: string | import("mongoose").Types.ObjectId;
74
+ };
75
+ team2: {
76
+ name: string;
77
+ teamId: string | import("mongoose").Types.ObjectId;
78
+ };
79
+ score: {
80
+ team1: number | null;
81
+ team2: number | null;
82
+ };
83
+ stage: string;
84
+ endDate?: Date | null | undefined;
85
+ startingDate?: Date | null | undefined;
86
+ additionalTag?: string | undefined;
87
+ winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
88
+ }[] | undefined;
89
+ teams?: {
90
+ name: string;
91
+ _id: string | import("mongoose").Types.ObjectId;
92
+ picture?: string | null | undefined;
93
+ }[] | undefined;
94
+ }[];
95
+ metadata?: {
96
+ page: number;
97
+ size: number;
98
+ totalElements: number;
99
+ totalPages: number;
100
+ } | undefined;
101
+ } | undefined;
102
+ };
103
+ meta: object;
104
+ }>;
105
+ getAll: import("@trpc/server").TRPCQueryProcedure<{
106
+ input: void;
107
+ output: {
108
+ message: string;
109
+ success: boolean;
110
+ data?: {
111
+ status: import("@lyxa.ai/core/dist/utilities/enum").Status;
112
+ _id: string | import("mongoose").Types.ObjectId;
113
+ tag: string;
114
+ createdAt?: Date | null | undefined;
115
+ startDate?: Date | null | undefined;
116
+ endDate?: Date | null | undefined;
117
+ updatedAt?: Date | null | undefined;
118
+ matches?: {
119
+ _id: string | import("mongoose").Types.ObjectId;
120
+ team1: {
121
+ name: string;
122
+ teamId: string | import("mongoose").Types.ObjectId;
123
+ };
124
+ team2: {
125
+ name: string;
126
+ teamId: string | import("mongoose").Types.ObjectId;
127
+ };
128
+ score: {
129
+ team1: number | null;
130
+ team2: number | null;
131
+ };
132
+ stage: string;
133
+ endDate?: Date | null | undefined;
134
+ startingDate?: Date | null | undefined;
135
+ additionalTag?: string | undefined;
136
+ winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
137
+ }[] | undefined;
138
+ teams?: {
139
+ name: string;
140
+ _id: string | import("mongoose").Types.ObjectId;
141
+ picture?: string | null | undefined;
142
+ }[] | undefined;
143
+ }[] | {
144
+ documents: {
145
+ status: import("@lyxa.ai/core/dist/utilities/enum").Status;
146
+ _id: string | import("mongoose").Types.ObjectId;
147
+ tag: string;
148
+ createdAt?: Date | null | undefined;
149
+ startDate?: Date | null | undefined;
150
+ endDate?: Date | null | undefined;
151
+ updatedAt?: Date | null | undefined;
152
+ matches?: {
153
+ _id: string | import("mongoose").Types.ObjectId;
154
+ team1: {
155
+ name: string;
156
+ teamId: string | import("mongoose").Types.ObjectId;
157
+ };
158
+ team2: {
159
+ name: string;
160
+ teamId: string | import("mongoose").Types.ObjectId;
161
+ };
162
+ score: {
163
+ team1: number | null;
164
+ team2: number | null;
165
+ };
166
+ stage: string;
167
+ endDate?: Date | null | undefined;
168
+ startingDate?: Date | null | undefined;
169
+ additionalTag?: string | undefined;
170
+ winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
171
+ }[] | undefined;
172
+ teams?: {
173
+ name: string;
174
+ _id: string | import("mongoose").Types.ObjectId;
175
+ picture?: string | null | undefined;
176
+ }[] | undefined;
177
+ }[][];
178
+ metadata?: {
179
+ page: number;
180
+ size: number;
181
+ totalElements: number;
182
+ totalPages: number;
183
+ } | undefined;
184
+ } | undefined;
185
+ };
186
+ meta: object;
187
+ }>;
188
+ getById: import("@trpc/server").TRPCQueryProcedure<{
189
+ input: {
190
+ tournamentId: string | import("mongoose").Types.ObjectId;
191
+ };
192
+ output: {
193
+ message: string;
194
+ success: boolean;
195
+ data?: {
196
+ status: import("@lyxa.ai/core/dist/utilities/enum").Status;
197
+ _id: string | import("mongoose").Types.ObjectId;
198
+ tag: string;
199
+ createdAt?: Date | null | undefined;
200
+ startDate?: Date | null | undefined;
201
+ endDate?: Date | null | undefined;
202
+ updatedAt?: Date | null | undefined;
203
+ matches?: {
204
+ _id: string | import("mongoose").Types.ObjectId;
205
+ team1: {
206
+ name: string;
207
+ teamId: string | import("mongoose").Types.ObjectId;
208
+ };
209
+ team2: {
210
+ name: string;
211
+ teamId: string | import("mongoose").Types.ObjectId;
212
+ };
213
+ score: {
214
+ team1: number | null;
215
+ team2: number | null;
216
+ };
217
+ stage: string;
218
+ endDate?: Date | null | undefined;
219
+ startingDate?: Date | null | undefined;
220
+ additionalTag?: string | undefined;
221
+ winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
222
+ }[] | undefined;
223
+ teams?: {
224
+ name: string;
225
+ _id: string | import("mongoose").Types.ObjectId;
226
+ picture?: string | null | undefined;
227
+ }[] | undefined;
228
+ } | {
229
+ documents: {
230
+ status: import("@lyxa.ai/core/dist/utilities/enum").Status;
231
+ _id: string | import("mongoose").Types.ObjectId;
232
+ tag: string;
233
+ createdAt?: Date | null | undefined;
234
+ startDate?: Date | null | undefined;
235
+ endDate?: Date | null | undefined;
236
+ updatedAt?: Date | null | undefined;
237
+ matches?: {
238
+ _id: string | import("mongoose").Types.ObjectId;
239
+ team1: {
240
+ name: string;
241
+ teamId: string | import("mongoose").Types.ObjectId;
242
+ };
243
+ team2: {
244
+ name: string;
245
+ teamId: string | import("mongoose").Types.ObjectId;
246
+ };
247
+ score: {
248
+ team1: number | null;
249
+ team2: number | null;
250
+ };
251
+ stage: string;
252
+ endDate?: Date | null | undefined;
253
+ startingDate?: Date | null | undefined;
254
+ additionalTag?: string | undefined;
255
+ winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
256
+ }[] | undefined;
257
+ teams?: {
258
+ name: string;
259
+ _id: string | import("mongoose").Types.ObjectId;
260
+ picture?: string | null | undefined;
261
+ }[] | undefined;
262
+ }[];
263
+ metadata?: {
264
+ page: number;
265
+ size: number;
266
+ totalElements: number;
267
+ totalPages: number;
268
+ } | undefined;
269
+ } | undefined;
270
+ };
271
+ meta: object;
272
+ }>;
273
+ update: import("@trpc/server").TRPCMutationProcedure<{
274
+ input: {
275
+ _id: string | import("mongoose").Types.ObjectId;
276
+ status?: import("@lyxa.ai/core/dist/utilities/enum").Status | undefined;
277
+ startDate?: string | Date | undefined;
278
+ endDate?: string | Date | undefined;
279
+ tag?: string | undefined;
280
+ };
281
+ output: {
282
+ message: string;
283
+ success: boolean;
284
+ data?: {
285
+ status: import("@lyxa.ai/core/dist/utilities/enum").Status;
286
+ _id: string | import("mongoose").Types.ObjectId;
287
+ tag: string;
288
+ createdAt?: Date | null | undefined;
289
+ startDate?: Date | null | undefined;
290
+ endDate?: Date | null | undefined;
291
+ updatedAt?: Date | null | undefined;
292
+ matches?: {
293
+ _id: string | import("mongoose").Types.ObjectId;
294
+ team1: {
295
+ name: string;
296
+ teamId: string | import("mongoose").Types.ObjectId;
297
+ };
298
+ team2: {
299
+ name: string;
300
+ teamId: string | import("mongoose").Types.ObjectId;
301
+ };
302
+ score: {
303
+ team1: number | null;
304
+ team2: number | null;
305
+ };
306
+ stage: string;
307
+ endDate?: Date | null | undefined;
308
+ startingDate?: Date | null | undefined;
309
+ additionalTag?: string | undefined;
310
+ winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
311
+ }[] | undefined;
312
+ teams?: {
313
+ name: string;
314
+ _id: string | import("mongoose").Types.ObjectId;
315
+ picture?: string | null | undefined;
316
+ }[] | undefined;
317
+ } | {
318
+ documents: {
319
+ status: import("@lyxa.ai/core/dist/utilities/enum").Status;
320
+ _id: string | import("mongoose").Types.ObjectId;
321
+ tag: string;
322
+ createdAt?: Date | null | undefined;
323
+ startDate?: Date | null | undefined;
324
+ endDate?: Date | null | undefined;
325
+ updatedAt?: Date | null | undefined;
326
+ matches?: {
327
+ _id: string | import("mongoose").Types.ObjectId;
328
+ team1: {
329
+ name: string;
330
+ teamId: string | import("mongoose").Types.ObjectId;
331
+ };
332
+ team2: {
333
+ name: string;
334
+ teamId: string | import("mongoose").Types.ObjectId;
335
+ };
336
+ score: {
337
+ team1: number | null;
338
+ team2: number | null;
339
+ };
340
+ stage: string;
341
+ endDate?: Date | null | undefined;
342
+ startingDate?: Date | null | undefined;
343
+ additionalTag?: string | undefined;
344
+ winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
345
+ }[] | undefined;
346
+ teams?: {
347
+ name: string;
348
+ _id: string | import("mongoose").Types.ObjectId;
349
+ picture?: string | null | undefined;
350
+ }[] | undefined;
351
+ }[];
352
+ metadata?: {
353
+ page: number;
354
+ size: number;
355
+ totalElements: number;
356
+ totalPages: number;
357
+ } | undefined;
358
+ } | undefined;
359
+ };
360
+ meta: object;
361
+ }>;
362
+ }>>;
363
+ //# sourceMappingURL=config.router.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"config.router.d.ts","sourceRoot":"/","sources":["modules/tournament/config/config.router.ts"],"names":[],"mappings":"AAeA,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCvB,CAAC"}
@@ -0,0 +1,14 @@
1
+ import { mongoose } from '@typegoose/typegoose';
2
+ import { CreateTournamentConfigInputDTO, TournamentConfigOutputDTO, UpdateTournamentConfigInputDTO } from './config.validation';
3
+ export declare class TournamentConfigService {
4
+ private repository;
5
+ constructor();
6
+ private ensureTagUnique;
7
+ private validateDates;
8
+ create(input: CreateTournamentConfigInputDTO): Promise<TournamentConfigOutputDTO>;
9
+ getAll(): Promise<TournamentConfigOutputDTO[]>;
10
+ getById(id: mongoose.Types.ObjectId): Promise<TournamentConfigOutputDTO>;
11
+ update(input: UpdateTournamentConfigInputDTO): Promise<TournamentConfigOutputDTO>;
12
+ }
13
+ export declare const tournamentConfigService: TournamentConfigService;
14
+ //# sourceMappingURL=config.service.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"config.service.d.ts","sourceRoot":"/","sources":["modules/tournament/config/config.service.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAEhD,OAAO,EACH,8BAA8B,EAC9B,yBAAyB,EACzB,8BAA8B,EACjC,MAAM,qBAAqB,CAAC;AAI7B,qBACa,uBAAuB;IAChC,OAAO,CAAC,UAAU,CAA6B;;YAMjC,eAAe;IAO7B,OAAO,CAAC,aAAa;IAIR,MAAM,CAAC,KAAK,EAAE,8BAA8B,GAAG,OAAO,CAAC,yBAAyB,CAAC;IAKjF,MAAM,IAAI,OAAO,CAAC,yBAAyB,EAAE,CAAC;IAI9C,OAAO,CAAC,EAAE,EAAE,QAAQ,CAAC,KAAK,CAAC,QAAQ,GAAG,OAAO,CAAC,yBAAyB,CAAC;IAMxE,MAAM,CAAC,KAAK,EAAE,8BAA8B,GAAG,OAAO,CAAC,yBAAyB,CAAC;CAejG;AAED,eAAO,MAAM,uBAAuB,yBAAyC,CAAC"}