@lyxa.ai/marketing 1.0.51 → 1.0.53

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 (481) hide show
  1. package/dist/lib/index.d.ts +323 -77
  2. package/dist/lib/index.d.ts.map +1 -1
  3. package/dist/lib/index.js +1 -1
  4. package/dist/lib/index.js.map +1 -1
  5. package/dist/lib/modules/coupon/routers/coupon.router.d.ts.map +1 -1
  6. package/dist/lib/modules/coupon/routers/coupon.router.js +1 -1
  7. package/dist/lib/modules/coupon/routers/coupon.router.js.map +1 -1
  8. package/dist/lib/modules/coupon/services/patterns/repository/CouponMetricsRepository.d.ts.map +1 -1
  9. package/dist/lib/modules/coupon/services/patterns/repository/CouponMetricsRepository.js +16 -3
  10. package/dist/lib/modules/coupon/services/patterns/repository/CouponMetricsRepository.js.map +1 -1
  11. package/dist/lib/modules/coupon/validations/all-coupons.validation.d.ts +1117 -285
  12. package/dist/lib/modules/coupon/validations/all-coupons.validation.d.ts.map +1 -1
  13. package/dist/lib/modules/coupon/validations/all-coupons.validation.js +16 -2
  14. package/dist/lib/modules/coupon/validations/all-coupons.validation.js.map +1 -1
  15. package/dist/lib/modules/coupon/validations/index.d.ts +0 -1
  16. package/dist/lib/modules/coupon/validations/index.d.ts.map +1 -1
  17. package/dist/lib/modules/coupon/validations/index.js +0 -1
  18. package/dist/lib/modules/coupon/validations/index.js.map +1 -1
  19. package/dist/lib/modules/limited-time-offer/campaign/campaign.router.d.ts +32 -32
  20. package/dist/lib/modules/limited-time-offer/campaign/campaign.router.js +9 -9
  21. package/dist/lib/modules/limited-time-offer/campaign/campaign.router.js.map +1 -1
  22. package/dist/lib/modules/limited-time-offer/campaign/jobs/limited-time-offer-campaign.worker.d.ts +0 -1
  23. package/dist/lib/modules/limited-time-offer/campaign/jobs/limited-time-offer-campaign.worker.d.ts.map +1 -1
  24. package/dist/lib/modules/limited-time-offer/campaign/jobs/limited-time-offer-campaign.worker.js +2 -5
  25. package/dist/lib/modules/limited-time-offer/campaign/jobs/limited-time-offer-campaign.worker.js.map +1 -1
  26. package/dist/lib/modules/limited-time-offer/campaign/limited-time-offer-campaign.builder.d.ts +1 -0
  27. package/dist/lib/modules/limited-time-offer/campaign/limited-time-offer-campaign.builder.d.ts.map +1 -1
  28. package/dist/lib/modules/limited-time-offer/campaign/limited-time-offer-campaign.builder.js +2 -0
  29. package/dist/lib/modules/limited-time-offer/campaign/limited-time-offer-campaign.builder.js.map +1 -1
  30. package/dist/lib/modules/limited-time-offer/campaign/limited-time-offer-campaign.validation.d.ts +19 -6
  31. package/dist/lib/modules/limited-time-offer/campaign/limited-time-offer-campaign.validation.d.ts.map +1 -1
  32. package/dist/lib/modules/limited-time-offer/campaign/limited-time-offer-campaign.validation.js +3 -2
  33. package/dist/lib/modules/limited-time-offer/campaign/limited-time-offer-campaign.validation.js.map +1 -1
  34. package/dist/lib/modules/limited-time-offer/campaign/services/limited-time-offer-campaign.service.d.ts +3 -9
  35. package/dist/lib/modules/limited-time-offer/campaign/services/limited-time-offer-campaign.service.d.ts.map +1 -1
  36. package/dist/lib/modules/limited-time-offer/campaign/services/limited-time-offer-campaign.service.js +4 -7
  37. package/dist/lib/modules/limited-time-offer/campaign/services/limited-time-offer-campaign.service.js.map +1 -1
  38. package/dist/lib/modules/limited-time-offer/config/limited-time-offer-config.service.d.ts +1 -0
  39. package/dist/lib/modules/limited-time-offer/config/limited-time-offer-config.service.d.ts.map +1 -1
  40. package/dist/lib/modules/limited-time-offer/config/limited-time-offer-config.service.js +15 -0
  41. package/dist/lib/modules/limited-time-offer/config/limited-time-offer-config.service.js.map +1 -1
  42. package/dist/lib/modules/limited-time-offer/limited-time-offer.router.d.ts +96 -50
  43. package/dist/lib/modules/limited-time-offer/limited-time-offer.router.d.ts.map +1 -1
  44. package/dist/lib/modules/limited-time-offer/limited-time-offer.router.js +23 -0
  45. package/dist/lib/modules/limited-time-offer/limited-time-offer.router.js.map +1 -1
  46. package/dist/lib/modules/limited-time-offer/limited-time-offer.service.d.ts +18 -0
  47. package/dist/lib/modules/limited-time-offer/limited-time-offer.service.d.ts.map +1 -0
  48. package/dist/lib/modules/limited-time-offer/limited-time-offer.service.js +78 -0
  49. package/dist/lib/modules/limited-time-offer/limited-time-offer.service.js.map +1 -0
  50. package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.repository.d.ts +12 -0
  51. package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.repository.d.ts.map +1 -1
  52. package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.repository.js +68 -0
  53. package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.repository.js.map +1 -1
  54. package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.router.d.ts +22 -18
  55. package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.router.d.ts.map +1 -1
  56. package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.service.d.ts +1 -0
  57. package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.service.d.ts.map +1 -0
  58. package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.service.js +2 -0
  59. package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.service.js.map +1 -0
  60. package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.validation.d.ts +88 -83
  61. package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.validation.d.ts.map +1 -1
  62. package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.validation.js +3 -2
  63. package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.validation.js.map +1 -1
  64. package/dist/lib/modules/limited-time-offer/participant/services/limited-time-offer-participant.service.d.ts +10 -1
  65. package/dist/lib/modules/limited-time-offer/participant/services/limited-time-offer-participant.service.d.ts.map +1 -1
  66. package/dist/lib/modules/limited-time-offer/participant/services/limited-time-offer-participant.service.js +68 -22
  67. package/dist/lib/modules/limited-time-offer/participant/services/limited-time-offer-participant.service.js.map +1 -1
  68. package/dist/lib/modules/marketing/validations/product-marketing.validation.d.ts +2 -2
  69. package/dist/lib/modules/punch-marketing-history/routers/punch-marketing-history.router.d.ts +1 -1
  70. package/dist/lib/modules/punch-marketing-history/validations/punch-marketing-history.validation.d.ts +2 -2
  71. package/dist/lib/modules/tournament/config/config.builder.d.ts.map +1 -1
  72. package/dist/lib/modules/tournament/config/config.builder.js +4 -0
  73. package/dist/lib/modules/tournament/config/config.builder.js.map +1 -1
  74. package/dist/lib/modules/tournament/config/config.repository.d.ts +8 -2
  75. package/dist/lib/modules/tournament/config/config.repository.d.ts.map +1 -1
  76. package/dist/lib/modules/tournament/config/config.repository.js +30 -1
  77. package/dist/lib/modules/tournament/config/config.repository.js.map +1 -1
  78. package/dist/lib/modules/tournament/config/config.router.d.ts +102 -12
  79. package/dist/lib/modules/tournament/config/config.router.d.ts.map +1 -1
  80. package/dist/lib/modules/tournament/config/config.types.d.ts +15 -0
  81. package/dist/lib/modules/tournament/config/config.types.d.ts.map +1 -0
  82. package/dist/lib/modules/tournament/config/config.types.js +3 -0
  83. package/dist/lib/modules/tournament/config/config.types.js.map +1 -0
  84. package/dist/lib/modules/tournament/config/config.validation.d.ts +431 -52
  85. package/dist/lib/modules/tournament/config/config.validation.d.ts.map +1 -1
  86. package/dist/lib/modules/tournament/config/config.validation.js +20 -6
  87. package/dist/lib/modules/tournament/config/config.validation.js.map +1 -1
  88. package/dist/lib/modules/tournament/integration/integration.factory.d.ts +4 -0
  89. package/dist/lib/modules/tournament/integration/integration.factory.d.ts.map +1 -0
  90. package/dist/lib/modules/tournament/integration/integration.factory.js +18 -0
  91. package/dist/lib/modules/tournament/integration/integration.factory.js.map +1 -0
  92. package/dist/lib/modules/tournament/integration/interfaces/ITournamentService.d.ts +36 -0
  93. package/dist/lib/modules/tournament/integration/interfaces/ITournamentService.d.ts.map +1 -0
  94. package/dist/lib/modules/tournament/integration/interfaces/ITournamentService.js +3 -0
  95. package/dist/lib/modules/tournament/integration/interfaces/ITournamentService.js.map +1 -0
  96. package/dist/lib/modules/tournament/integration/providers/api-football/api-football.provider.d.ts +14 -0
  97. package/dist/lib/modules/tournament/integration/providers/api-football/api-football.provider.d.ts.map +1 -0
  98. package/dist/lib/modules/tournament/integration/providers/api-football/api-football.provider.js +92 -0
  99. package/dist/lib/modules/tournament/integration/providers/api-football/api-football.provider.js.map +1 -0
  100. package/dist/lib/modules/tournament/integration/providers/api-football/api-football.types.d.ts +51 -0
  101. package/dist/lib/modules/tournament/integration/providers/api-football/api-football.types.d.ts.map +1 -0
  102. package/dist/lib/modules/tournament/integration/providers/api-football/api-football.types.js +3 -0
  103. package/dist/lib/modules/tournament/integration/providers/api-football/api-football.types.js.map +1 -0
  104. package/dist/lib/modules/tournament/integration/providers/api-football/index.d.ts +3 -0
  105. package/dist/lib/modules/tournament/integration/providers/api-football/index.d.ts.map +1 -0
  106. package/dist/lib/modules/tournament/integration/providers/api-football/index.js +19 -0
  107. package/dist/lib/modules/tournament/integration/providers/api-football/index.js.map +1 -0
  108. package/dist/lib/modules/tournament/integration/providers/index.d.ts +3 -0
  109. package/dist/lib/modules/tournament/integration/providers/index.d.ts.map +1 -0
  110. package/dist/lib/modules/tournament/integration/providers/index.js +19 -0
  111. package/dist/lib/modules/tournament/integration/providers/index.js.map +1 -0
  112. package/dist/lib/modules/tournament/integration/providers/mock.provider.d.ts +7 -0
  113. package/dist/lib/modules/tournament/integration/providers/mock.provider.d.ts.map +1 -0
  114. package/dist/lib/modules/tournament/integration/providers/mock.provider.js +22 -0
  115. package/dist/lib/modules/tournament/integration/providers/mock.provider.js.map +1 -0
  116. package/dist/lib/modules/tournament/integration/tournamentService.d.ts +9 -0
  117. package/dist/lib/modules/tournament/integration/tournamentService.d.ts.map +1 -0
  118. package/dist/lib/modules/tournament/integration/tournamentService.js +20 -0
  119. package/dist/lib/modules/tournament/integration/tournamentService.js.map +1 -0
  120. package/dist/lib/modules/tournament/match/events/evaluate-predictions.consumer.d.ts.map +1 -1
  121. package/dist/lib/modules/tournament/match/events/evaluate-predictions.consumer.js +50 -11
  122. package/dist/lib/modules/tournament/match/events/evaluate-predictions.consumer.js.map +1 -1
  123. package/dist/lib/modules/tournament/match/events/evaluate-predictions.event.d.ts +7 -3
  124. package/dist/lib/modules/tournament/match/events/evaluate-predictions.event.d.ts.map +1 -1
  125. package/dist/lib/modules/tournament/match/events/evaluate-predictions.event.js +1 -1
  126. package/dist/lib/modules/tournament/match/events/evaluate-predictions.event.js.map +1 -1
  127. package/dist/lib/modules/tournament/match/events/match-evaluation.orchestrator.d.ts +14 -0
  128. package/dist/lib/modules/tournament/match/events/match-evaluation.orchestrator.d.ts.map +1 -0
  129. package/dist/lib/modules/tournament/{notification/jobs/notification.worker.js → match/events/match-evaluation.orchestrator.js} +31 -27
  130. package/dist/lib/modules/tournament/match/events/match-evaluation.orchestrator.js.map +1 -0
  131. package/dist/lib/modules/tournament/match/match.builder.d.ts +13 -34
  132. package/dist/lib/modules/tournament/match/match.builder.d.ts.map +1 -1
  133. package/dist/lib/modules/tournament/match/match.builder.js +31 -10
  134. package/dist/lib/modules/tournament/match/match.builder.js.map +1 -1
  135. package/dist/lib/modules/tournament/match/match.repository.d.ts +1 -1
  136. package/dist/lib/modules/tournament/match/match.repository.d.ts.map +1 -1
  137. package/dist/lib/modules/tournament/match/match.repository.js.map +1 -1
  138. package/dist/lib/modules/tournament/match/match.router.d.ts +40 -4
  139. package/dist/lib/modules/tournament/match/match.router.d.ts.map +1 -1
  140. package/dist/lib/modules/tournament/match/match.service.d.ts +3 -0
  141. package/dist/lib/modules/tournament/match/match.service.d.ts.map +1 -1
  142. package/dist/lib/modules/tournament/match/match.service.js +15 -12
  143. package/dist/lib/modules/tournament/match/match.service.js.map +1 -1
  144. package/dist/lib/modules/tournament/match/match.types.d.ts +51 -0
  145. package/dist/lib/modules/tournament/match/match.types.d.ts.map +1 -0
  146. package/dist/lib/modules/tournament/match/match.types.js +3 -0
  147. package/dist/lib/modules/tournament/match/match.types.js.map +1 -0
  148. package/dist/lib/modules/tournament/notification/notification-template.repository.d.ts +2 -1
  149. package/dist/lib/modules/tournament/notification/notification-template.repository.d.ts.map +1 -1
  150. package/dist/lib/modules/tournament/notification/notification-template.repository.js +2 -1
  151. package/dist/lib/modules/tournament/notification/notification-template.repository.js.map +1 -1
  152. package/dist/lib/modules/tournament/notification/notification.builder.d.ts +30 -0
  153. package/dist/lib/modules/tournament/notification/notification.builder.d.ts.map +1 -0
  154. package/dist/lib/modules/tournament/notification/notification.builder.js +35 -0
  155. package/dist/lib/modules/tournament/notification/notification.builder.js.map +1 -0
  156. package/dist/lib/modules/tournament/notification/notification.config.d.ts +10 -9
  157. package/dist/lib/modules/tournament/notification/notification.config.d.ts.map +1 -1
  158. package/dist/lib/modules/tournament/notification/notification.config.js +0 -12
  159. package/dist/lib/modules/tournament/notification/notification.config.js.map +1 -1
  160. package/dist/lib/modules/tournament/notification/notification.service.d.ts +5 -3
  161. package/dist/lib/modules/tournament/notification/notification.service.d.ts.map +1 -1
  162. package/dist/lib/modules/tournament/notification/notification.service.js +23 -15
  163. package/dist/lib/modules/tournament/notification/notification.service.js.map +1 -1
  164. package/dist/lib/modules/tournament/participant/participant.builder.d.ts +12 -0
  165. package/dist/lib/modules/tournament/participant/participant.builder.d.ts.map +1 -0
  166. package/dist/lib/modules/tournament/participant/participant.builder.js +17 -0
  167. package/dist/lib/modules/tournament/participant/participant.builder.js.map +1 -0
  168. package/dist/lib/modules/tournament/participant/participant.repository.d.ts +8 -7
  169. package/dist/lib/modules/tournament/participant/participant.repository.d.ts.map +1 -1
  170. package/dist/lib/modules/tournament/participant/participant.repository.js +12 -2
  171. package/dist/lib/modules/tournament/participant/participant.repository.js.map +1 -1
  172. package/dist/lib/modules/tournament/participant/participant.service.d.ts +1 -0
  173. package/dist/lib/modules/tournament/participant/participant.service.d.ts.map +1 -1
  174. package/dist/lib/modules/tournament/participant/participant.service.js +15 -17
  175. package/dist/lib/modules/tournament/participant/participant.service.js.map +1 -1
  176. package/dist/lib/modules/tournament/prediction/prediction.builder.d.ts +3 -9
  177. package/dist/lib/modules/tournament/prediction/prediction.builder.d.ts.map +1 -1
  178. package/dist/lib/modules/tournament/prediction/prediction.builder.js.map +1 -1
  179. package/dist/lib/modules/tournament/prediction/prediction.repository.d.ts +11 -3
  180. package/dist/lib/modules/tournament/prediction/prediction.repository.d.ts.map +1 -1
  181. package/dist/lib/modules/tournament/prediction/prediction.repository.js +47 -0
  182. package/dist/lib/modules/tournament/prediction/prediction.repository.js.map +1 -1
  183. package/dist/lib/modules/tournament/prediction/prediction.service.d.ts +1 -1
  184. package/dist/lib/modules/tournament/prediction/prediction.service.d.ts.map +1 -1
  185. package/dist/lib/modules/tournament/prediction/prediction.service.js +16 -26
  186. package/dist/lib/modules/tournament/prediction/prediction.service.js.map +1 -1
  187. package/dist/lib/modules/tournament/prediction/prediction.types.d.ts +17 -0
  188. package/dist/lib/modules/tournament/prediction/prediction.types.d.ts.map +1 -0
  189. package/dist/lib/modules/tournament/prediction/prediction.types.js +3 -0
  190. package/dist/lib/modules/tournament/prediction/prediction.types.js.map +1 -0
  191. package/dist/lib/modules/tournament/reward/handlers/coupon-reward.handler.d.ts +8 -5
  192. package/dist/lib/modules/tournament/reward/handlers/coupon-reward.handler.d.ts.map +1 -1
  193. package/dist/lib/modules/tournament/reward/handlers/coupon-reward.handler.js +58 -16
  194. package/dist/lib/modules/tournament/reward/handlers/coupon-reward.handler.js.map +1 -1
  195. package/dist/lib/modules/tournament/reward/reward.builder.d.ts +5 -2
  196. package/dist/lib/modules/tournament/reward/reward.builder.d.ts.map +1 -1
  197. package/dist/lib/modules/tournament/reward/reward.builder.js +44 -28
  198. package/dist/lib/modules/tournament/reward/reward.builder.js.map +1 -1
  199. package/dist/lib/modules/tournament/reward/reward.factory.d.ts +1 -1
  200. package/dist/lib/modules/tournament/reward/reward.factory.d.ts.map +1 -1
  201. package/dist/lib/modules/tournament/reward/reward.factory.js.map +1 -1
  202. package/dist/lib/modules/tournament/reward/reward.interface.d.ts +2 -2
  203. package/dist/lib/modules/tournament/reward/reward.interface.d.ts.map +1 -1
  204. package/dist/lib/modules/tournament/reward/reward.interface.js.map +1 -1
  205. package/dist/lib/modules/tournament/reward/reward.service.d.ts +1 -1
  206. package/dist/lib/modules/tournament/reward/reward.service.d.ts.map +1 -1
  207. package/dist/lib/modules/tournament/reward/reward.service.js +1 -1
  208. package/dist/lib/modules/tournament/reward/reward.service.js.map +1 -1
  209. package/dist/lib/modules/tournament/reward/reward.types.d.ts +35 -2
  210. package/dist/lib/modules/tournament/reward/reward.types.d.ts.map +1 -1
  211. package/dist/lib/modules/tournament/reward/reward.types.js.map +1 -1
  212. package/dist/lib/modules/tournament/schedule/schedule.router.d.ts.map +1 -1
  213. package/dist/lib/modules/tournament/schedule/schedule.router.js +1 -3
  214. package/dist/lib/modules/tournament/schedule/schedule.router.js.map +1 -1
  215. package/dist/lib/modules/tournament/schedule/schedule.service.d.ts +3 -0
  216. package/dist/lib/modules/tournament/schedule/schedule.service.d.ts.map +1 -1
  217. package/dist/lib/modules/tournament/schedule/schedule.service.js +30 -1
  218. package/dist/lib/modules/tournament/schedule/schedule.service.js.map +1 -1
  219. package/dist/lib/modules/tournament/score/score.repository.d.ts +13 -0
  220. package/dist/lib/modules/tournament/score/score.repository.d.ts.map +1 -1
  221. package/dist/lib/modules/tournament/score/score.repository.js +20 -0
  222. package/dist/lib/modules/tournament/score/score.repository.js.map +1 -1
  223. package/dist/lib/modules/tournament/score/score.service.d.ts +3 -0
  224. package/dist/lib/modules/tournament/score/score.service.d.ts.map +1 -1
  225. package/dist/lib/modules/tournament/score/score.service.js +3 -0
  226. package/dist/lib/modules/tournament/score/score.service.js.map +1 -1
  227. package/dist/lib/modules/tournament/statistics/statistics.builder.d.ts +5 -0
  228. package/dist/lib/modules/tournament/statistics/statistics.builder.d.ts.map +1 -1
  229. package/dist/lib/modules/tournament/statistics/statistics.builder.js +47 -28
  230. package/dist/lib/modules/tournament/statistics/statistics.builder.js.map +1 -1
  231. package/dist/lib/modules/tournament/statistics/statistics.router.d.ts +4 -2
  232. package/dist/lib/modules/tournament/statistics/statistics.router.d.ts.map +1 -1
  233. package/dist/lib/modules/tournament/statistics/statistics.service.js +4 -4
  234. package/dist/lib/modules/tournament/statistics/statistics.service.js.map +1 -1
  235. package/dist/lib/modules/tournament/statistics/statistics.validation.d.ts +32 -14
  236. package/dist/lib/modules/tournament/statistics/statistics.validation.d.ts.map +1 -1
  237. package/dist/lib/modules/tournament/statistics/statistics.validation.js +2 -1
  238. package/dist/lib/modules/tournament/statistics/statistics.validation.js.map +1 -1
  239. package/dist/lib/modules/tournament/sync/sync.repository.d.ts +11 -0
  240. package/dist/lib/modules/tournament/sync/sync.repository.d.ts.map +1 -0
  241. package/dist/lib/modules/tournament/{notification/notification.scheduler.service.js → sync/sync.repository.js} +22 -28
  242. package/dist/lib/modules/tournament/sync/sync.repository.js.map +1 -0
  243. package/dist/lib/modules/tournament/sync/sync.router.d.ts +27 -0
  244. package/dist/lib/modules/tournament/sync/sync.router.d.ts.map +1 -0
  245. package/dist/lib/modules/tournament/sync/sync.router.js +15 -0
  246. package/dist/lib/modules/tournament/sync/sync.router.js.map +1 -0
  247. package/dist/lib/modules/tournament/sync/sync.service.d.ts +9 -0
  248. package/dist/lib/modules/tournament/sync/sync.service.d.ts.map +1 -0
  249. package/dist/lib/modules/tournament/sync/sync.service.js +117 -0
  250. package/dist/lib/modules/tournament/sync/sync.service.js.map +1 -0
  251. package/dist/lib/modules/tournament/team/team.builder.d.ts +4 -0
  252. package/dist/lib/modules/tournament/team/team.builder.d.ts.map +1 -1
  253. package/dist/lib/modules/tournament/team/team.builder.js +6 -0
  254. package/dist/lib/modules/tournament/team/team.builder.js.map +1 -1
  255. package/dist/lib/modules/tournament/team/team.repository.d.ts +3 -0
  256. package/dist/lib/modules/tournament/team/team.repository.d.ts.map +1 -1
  257. package/dist/lib/modules/tournament/team/team.repository.js +6 -0
  258. package/dist/lib/modules/tournament/team/team.repository.js.map +1 -1
  259. package/dist/lib/modules/tournament/team/team.router.d.ts +24 -6
  260. package/dist/lib/modules/tournament/team/team.router.d.ts.map +1 -1
  261. package/dist/lib/modules/tournament/team/team.router.js +1 -1
  262. package/dist/lib/modules/tournament/team/team.router.js.map +1 -1
  263. package/dist/lib/modules/tournament/team/team.service.d.ts +2 -1
  264. package/dist/lib/modules/tournament/team/team.service.d.ts.map +1 -1
  265. package/dist/lib/modules/tournament/team/team.service.js +26 -23
  266. package/dist/lib/modules/tournament/team/team.service.js.map +1 -1
  267. package/dist/lib/modules/tournament/team/team.validation.d.ts +23 -24
  268. package/dist/lib/modules/tournament/team/team.validation.d.ts.map +1 -1
  269. package/dist/lib/modules/tournament/team/team.validation.js +3 -4
  270. package/dist/lib/modules/tournament/team/team.validation.js.map +1 -1
  271. package/dist/lib/modules/tournament/tournament.builder.d.ts +11 -0
  272. package/dist/lib/modules/tournament/tournament.builder.d.ts.map +1 -0
  273. package/dist/lib/modules/tournament/tournament.builder.js +34 -0
  274. package/dist/lib/modules/tournament/tournament.builder.js.map +1 -0
  275. package/dist/lib/modules/tournament/tournament.router.d.ts +226 -26
  276. package/dist/lib/modules/tournament/tournament.router.d.ts.map +1 -1
  277. package/dist/lib/modules/tournament/tournament.router.js +2 -0
  278. package/dist/lib/modules/tournament/tournament.router.js.map +1 -1
  279. package/dist/lib/modules/tournament/tournament.service.d.ts.map +1 -1
  280. package/dist/lib/modules/tournament/tournament.service.js +3 -10
  281. package/dist/lib/modules/tournament/tournament.service.js.map +1 -1
  282. package/dist/lib/modules/tournament/tournament.types.d.ts +0 -3
  283. package/dist/lib/modules/tournament/tournament.types.d.ts.map +1 -1
  284. package/dist/lib/modules/tournament/tournament.types.js +1 -5
  285. package/dist/lib/modules/tournament/tournament.types.js.map +1 -1
  286. package/dist/lib/modules/tournament/tournament.utils.d.ts +4 -0
  287. package/dist/lib/modules/tournament/tournament.utils.d.ts.map +1 -1
  288. package/dist/lib/modules/tournament/tournament.utils.js +8 -1
  289. package/dist/lib/modules/tournament/tournament.utils.js.map +1 -1
  290. package/dist/lib/modules/tournament/tournament.validation.d.ts +205 -1
  291. package/dist/lib/modules/tournament/tournament.validation.d.ts.map +1 -1
  292. package/dist/lib/modules/tournament/tournament.validation.js +23 -2
  293. package/dist/lib/modules/tournament/tournament.validation.js.map +1 -1
  294. package/dist/types/index.d.ts +323 -77
  295. package/dist/types/index.d.ts.map +1 -1
  296. package/dist/types/modules/coupon/routers/coupon.router.d.ts.map +1 -1
  297. package/dist/types/modules/coupon/services/patterns/repository/CouponMetricsRepository.d.ts.map +1 -1
  298. package/dist/types/modules/coupon/validations/all-coupons.validation.d.ts +1117 -285
  299. package/dist/types/modules/coupon/validations/all-coupons.validation.d.ts.map +1 -1
  300. package/dist/types/modules/coupon/validations/index.d.ts +0 -1
  301. package/dist/types/modules/coupon/validations/index.d.ts.map +1 -1
  302. package/dist/types/modules/limited-time-offer/campaign/campaign.router.d.ts +34 -32
  303. package/dist/types/modules/limited-time-offer/campaign/campaign.router.d.ts.map +1 -1
  304. package/dist/types/modules/limited-time-offer/campaign/jobs/limited-time-offer-campaign.worker.d.ts +0 -1
  305. package/dist/types/modules/limited-time-offer/campaign/jobs/limited-time-offer-campaign.worker.d.ts.map +1 -1
  306. package/dist/types/modules/limited-time-offer/campaign/limited-time-offer-campaign.builder.d.ts +1 -0
  307. package/dist/types/modules/limited-time-offer/campaign/limited-time-offer-campaign.builder.d.ts.map +1 -1
  308. package/dist/types/modules/limited-time-offer/campaign/limited-time-offer-campaign.validation.d.ts +19 -6
  309. package/dist/types/modules/limited-time-offer/campaign/limited-time-offer-campaign.validation.d.ts.map +1 -1
  310. package/dist/types/modules/limited-time-offer/campaign/services/limited-time-offer-campaign.service.d.ts +3 -9
  311. package/dist/types/modules/limited-time-offer/campaign/services/limited-time-offer-campaign.service.d.ts.map +1 -1
  312. package/dist/types/modules/limited-time-offer/config/limited-time-offer-config.service.d.ts +1 -0
  313. package/dist/types/modules/limited-time-offer/config/limited-time-offer-config.service.d.ts.map +1 -1
  314. package/dist/types/modules/limited-time-offer/limited-time-offer.router.d.ts +96 -50
  315. package/dist/types/modules/limited-time-offer/limited-time-offer.router.d.ts.map +1 -1
  316. package/dist/types/modules/limited-time-offer/limited-time-offer.service.d.ts +23 -0
  317. package/dist/types/modules/limited-time-offer/limited-time-offer.service.d.ts.map +1 -0
  318. package/dist/types/modules/limited-time-offer/participant/limited-time-offer-participant.repository.d.ts +12 -0
  319. package/dist/types/modules/limited-time-offer/participant/limited-time-offer-participant.repository.d.ts.map +1 -1
  320. package/dist/types/modules/limited-time-offer/participant/limited-time-offer-participant.router.d.ts +22 -18
  321. package/dist/types/modules/limited-time-offer/participant/limited-time-offer-participant.router.d.ts.map +1 -1
  322. package/dist/types/modules/limited-time-offer/participant/limited-time-offer-participant.validation.d.ts +88 -83
  323. package/dist/types/modules/limited-time-offer/participant/limited-time-offer-participant.validation.d.ts.map +1 -1
  324. package/dist/types/modules/limited-time-offer/participant/services/limited-time-offer-participant.service.d.ts +20 -1
  325. package/dist/types/modules/limited-time-offer/participant/services/limited-time-offer-participant.service.d.ts.map +1 -1
  326. package/dist/types/modules/marketing/validations/product-marketing.validation.d.ts +2 -2
  327. package/dist/types/modules/punch-marketing-history/routers/punch-marketing-history.router.d.ts +1 -1
  328. package/dist/types/modules/punch-marketing-history/validations/punch-marketing-history.validation.d.ts +2 -2
  329. package/dist/types/modules/tournament/config/config.builder.d.ts.map +1 -1
  330. package/dist/types/modules/tournament/config/config.repository.d.ts +8 -2
  331. package/dist/types/modules/tournament/config/config.repository.d.ts.map +1 -1
  332. package/dist/types/modules/tournament/config/config.router.d.ts +102 -12
  333. package/dist/types/modules/tournament/config/config.router.d.ts.map +1 -1
  334. package/dist/types/modules/tournament/config/config.types.d.ts +15 -0
  335. package/dist/types/modules/tournament/config/config.types.d.ts.map +1 -0
  336. package/dist/types/modules/tournament/config/config.validation.d.ts +431 -52
  337. package/dist/types/modules/tournament/config/config.validation.d.ts.map +1 -1
  338. package/dist/types/modules/tournament/integration/integration.factory.d.ts +4 -0
  339. package/dist/types/modules/tournament/integration/integration.factory.d.ts.map +1 -0
  340. package/dist/types/modules/tournament/integration/interfaces/ITournamentService.d.ts +36 -0
  341. package/dist/types/modules/tournament/integration/interfaces/ITournamentService.d.ts.map +1 -0
  342. package/dist/types/modules/tournament/integration/providers/api-football/api-football.provider.d.ts +14 -0
  343. package/dist/types/modules/tournament/integration/providers/api-football/api-football.provider.d.ts.map +1 -0
  344. package/dist/types/modules/tournament/integration/providers/api-football/api-football.types.d.ts +51 -0
  345. package/dist/types/modules/tournament/integration/providers/api-football/api-football.types.d.ts.map +1 -0
  346. package/dist/types/modules/tournament/integration/providers/api-football/index.d.ts +3 -0
  347. package/dist/types/modules/tournament/integration/providers/api-football/index.d.ts.map +1 -0
  348. package/dist/types/modules/tournament/integration/providers/index.d.ts +3 -0
  349. package/dist/types/modules/tournament/integration/providers/index.d.ts.map +1 -0
  350. package/dist/types/modules/tournament/integration/providers/mock.provider.d.ts +7 -0
  351. package/dist/types/modules/tournament/integration/providers/mock.provider.d.ts.map +1 -0
  352. package/dist/types/modules/tournament/integration/tournamentService.d.ts +9 -0
  353. package/dist/types/modules/tournament/integration/tournamentService.d.ts.map +1 -0
  354. package/dist/types/modules/tournament/match/events/evaluate-predictions.consumer.d.ts.map +1 -1
  355. package/dist/types/modules/tournament/match/events/evaluate-predictions.event.d.ts +7 -3
  356. package/dist/types/modules/tournament/match/events/evaluate-predictions.event.d.ts.map +1 -1
  357. package/dist/types/modules/tournament/match/events/match-evaluation.orchestrator.d.ts +14 -0
  358. package/dist/types/modules/tournament/match/events/match-evaluation.orchestrator.d.ts.map +1 -0
  359. package/dist/types/modules/tournament/match/match.builder.d.ts +13 -34
  360. package/dist/types/modules/tournament/match/match.builder.d.ts.map +1 -1
  361. package/dist/types/modules/tournament/match/match.repository.d.ts +1 -1
  362. package/dist/types/modules/tournament/match/match.repository.d.ts.map +1 -1
  363. package/dist/types/modules/tournament/match/match.router.d.ts +40 -4
  364. package/dist/types/modules/tournament/match/match.router.d.ts.map +1 -1
  365. package/dist/types/modules/tournament/match/match.service.d.ts +3 -0
  366. package/dist/types/modules/tournament/match/match.service.d.ts.map +1 -1
  367. package/dist/types/modules/tournament/match/match.types.d.ts +51 -0
  368. package/dist/types/modules/tournament/match/match.types.d.ts.map +1 -0
  369. package/dist/types/modules/tournament/notification/notification-template.repository.d.ts +2 -1
  370. package/dist/types/modules/tournament/notification/notification-template.repository.d.ts.map +1 -1
  371. package/dist/types/modules/tournament/notification/notification.builder.d.ts +30 -0
  372. package/dist/types/modules/tournament/notification/notification.builder.d.ts.map +1 -0
  373. package/dist/types/modules/tournament/notification/notification.config.d.ts +10 -9
  374. package/dist/types/modules/tournament/notification/notification.config.d.ts.map +1 -1
  375. package/dist/types/modules/tournament/notification/notification.service.d.ts +5 -3
  376. package/dist/types/modules/tournament/notification/notification.service.d.ts.map +1 -1
  377. package/dist/types/modules/tournament/participant/participant.builder.d.ts +12 -0
  378. package/dist/types/modules/tournament/participant/participant.builder.d.ts.map +1 -0
  379. package/dist/types/modules/tournament/participant/participant.repository.d.ts +8 -7
  380. package/dist/types/modules/tournament/participant/participant.repository.d.ts.map +1 -1
  381. package/dist/types/modules/tournament/participant/participant.service.d.ts +1 -0
  382. package/dist/types/modules/tournament/participant/participant.service.d.ts.map +1 -1
  383. package/dist/types/modules/tournament/prediction/prediction.builder.d.ts +3 -9
  384. package/dist/types/modules/tournament/prediction/prediction.builder.d.ts.map +1 -1
  385. package/dist/types/modules/tournament/prediction/prediction.repository.d.ts +11 -3
  386. package/dist/types/modules/tournament/prediction/prediction.repository.d.ts.map +1 -1
  387. package/dist/types/modules/tournament/prediction/prediction.service.d.ts +1 -1
  388. package/dist/types/modules/tournament/prediction/prediction.service.d.ts.map +1 -1
  389. package/dist/types/modules/tournament/prediction/prediction.types.d.ts +17 -0
  390. package/dist/types/modules/tournament/prediction/prediction.types.d.ts.map +1 -0
  391. package/dist/types/modules/tournament/reward/handlers/coupon-reward.handler.d.ts +8 -5
  392. package/dist/types/modules/tournament/reward/handlers/coupon-reward.handler.d.ts.map +1 -1
  393. package/dist/types/modules/tournament/reward/reward.builder.d.ts +5 -2
  394. package/dist/types/modules/tournament/reward/reward.builder.d.ts.map +1 -1
  395. package/dist/types/modules/tournament/reward/reward.factory.d.ts +1 -1
  396. package/dist/types/modules/tournament/reward/reward.factory.d.ts.map +1 -1
  397. package/dist/types/modules/tournament/reward/reward.interface.d.ts +2 -2
  398. package/dist/types/modules/tournament/reward/reward.interface.d.ts.map +1 -1
  399. package/dist/types/modules/tournament/reward/reward.service.d.ts +1 -1
  400. package/dist/types/modules/tournament/reward/reward.service.d.ts.map +1 -1
  401. package/dist/types/modules/tournament/reward/reward.types.d.ts +35 -2
  402. package/dist/types/modules/tournament/reward/reward.types.d.ts.map +1 -1
  403. package/dist/types/modules/tournament/schedule/schedule.router.d.ts.map +1 -1
  404. package/dist/types/modules/tournament/schedule/schedule.service.d.ts +3 -0
  405. package/dist/types/modules/tournament/schedule/schedule.service.d.ts.map +1 -1
  406. package/dist/types/modules/tournament/score/score.repository.d.ts +13 -0
  407. package/dist/types/modules/tournament/score/score.repository.d.ts.map +1 -1
  408. package/dist/types/modules/tournament/score/score.service.d.ts +3 -0
  409. package/dist/types/modules/tournament/score/score.service.d.ts.map +1 -1
  410. package/dist/types/modules/tournament/statistics/statistics.builder.d.ts +5 -0
  411. package/dist/types/modules/tournament/statistics/statistics.builder.d.ts.map +1 -1
  412. package/dist/types/modules/tournament/statistics/statistics.router.d.ts +4 -2
  413. package/dist/types/modules/tournament/statistics/statistics.router.d.ts.map +1 -1
  414. package/dist/types/modules/tournament/statistics/statistics.validation.d.ts +32 -14
  415. package/dist/types/modules/tournament/statistics/statistics.validation.d.ts.map +1 -1
  416. package/dist/types/modules/tournament/sync/sync.repository.d.ts +11 -0
  417. package/dist/types/modules/tournament/sync/sync.repository.d.ts.map +1 -0
  418. package/dist/types/modules/tournament/sync/sync.router.d.ts +27 -0
  419. package/dist/types/modules/tournament/sync/sync.router.d.ts.map +1 -0
  420. package/dist/types/modules/tournament/sync/sync.service.d.ts +9 -0
  421. package/dist/types/modules/tournament/sync/sync.service.d.ts.map +1 -0
  422. package/dist/types/modules/tournament/team/team.builder.d.ts +4 -0
  423. package/dist/types/modules/tournament/team/team.builder.d.ts.map +1 -1
  424. package/dist/types/modules/tournament/team/team.repository.d.ts +3 -0
  425. package/dist/types/modules/tournament/team/team.repository.d.ts.map +1 -1
  426. package/dist/types/modules/tournament/team/team.router.d.ts +24 -6
  427. package/dist/types/modules/tournament/team/team.router.d.ts.map +1 -1
  428. package/dist/types/modules/tournament/team/team.service.d.ts +2 -1
  429. package/dist/types/modules/tournament/team/team.service.d.ts.map +1 -1
  430. package/dist/types/modules/tournament/team/team.validation.d.ts +23 -24
  431. package/dist/types/modules/tournament/team/team.validation.d.ts.map +1 -1
  432. package/dist/types/modules/tournament/tournament.builder.d.ts +11 -0
  433. package/dist/types/modules/tournament/tournament.builder.d.ts.map +1 -0
  434. package/dist/types/modules/tournament/tournament.router.d.ts +226 -26
  435. package/dist/types/modules/tournament/tournament.router.d.ts.map +1 -1
  436. package/dist/types/modules/tournament/tournament.service.d.ts.map +1 -1
  437. package/dist/types/modules/tournament/tournament.types.d.ts +0 -3
  438. package/dist/types/modules/tournament/tournament.types.d.ts.map +1 -1
  439. package/dist/types/modules/tournament/tournament.utils.d.ts +4 -0
  440. package/dist/types/modules/tournament/tournament.utils.d.ts.map +1 -1
  441. package/dist/types/modules/tournament/tournament.validation.d.ts +205 -1
  442. package/dist/types/modules/tournament/tournament.validation.d.ts.map +1 -1
  443. package/package.json +3 -3
  444. package/dist/lib/modules/tournament/match/events/match-ended.consumer.d.ts +0 -2
  445. package/dist/lib/modules/tournament/match/events/match-ended.consumer.d.ts.map +0 -1
  446. package/dist/lib/modules/tournament/match/events/match-ended.consumer.js +0 -15
  447. package/dist/lib/modules/tournament/match/events/match-ended.consumer.js.map +0 -1
  448. package/dist/lib/modules/tournament/match/events/match-ended.event.d.ts +0 -14
  449. package/dist/lib/modules/tournament/match/events/match-ended.event.d.ts.map +0 -1
  450. package/dist/lib/modules/tournament/match/events/match-ended.event.js +0 -12
  451. package/dist/lib/modules/tournament/match/events/match-ended.event.js.map +0 -1
  452. package/dist/lib/modules/tournament/notification/jobs/notification.producer.d.ts +0 -10
  453. package/dist/lib/modules/tournament/notification/jobs/notification.producer.d.ts.map +0 -1
  454. package/dist/lib/modules/tournament/notification/jobs/notification.producer.js +0 -23
  455. package/dist/lib/modules/tournament/notification/jobs/notification.producer.js.map +0 -1
  456. package/dist/lib/modules/tournament/notification/jobs/notification.worker.d.ts +0 -9
  457. package/dist/lib/modules/tournament/notification/jobs/notification.worker.d.ts.map +0 -1
  458. package/dist/lib/modules/tournament/notification/jobs/notification.worker.js.map +0 -1
  459. package/dist/lib/modules/tournament/notification/notification.schedule.config.d.ts +0 -10
  460. package/dist/lib/modules/tournament/notification/notification.schedule.config.d.ts.map +0 -1
  461. package/dist/lib/modules/tournament/notification/notification.schedule.config.js +0 -15
  462. package/dist/lib/modules/tournament/notification/notification.schedule.config.js.map +0 -1
  463. package/dist/lib/modules/tournament/notification/notification.scheduler.service.d.ts +0 -10
  464. package/dist/lib/modules/tournament/notification/notification.scheduler.service.d.ts.map +0 -1
  465. package/dist/lib/modules/tournament/notification/notification.scheduler.service.js.map +0 -1
  466. package/dist/types/events/event-initializations.d.ts +0 -2
  467. package/dist/types/events/event-initializations.d.ts.map +0 -1
  468. package/dist/types/modules/tournament/config/tournament-config.validation.d.ts +0 -201
  469. package/dist/types/modules/tournament/config/tournament-config.validation.d.ts.map +0 -1
  470. package/dist/types/modules/tournament/match/events/match-ended.consumer.d.ts +0 -2
  471. package/dist/types/modules/tournament/match/events/match-ended.consumer.d.ts.map +0 -1
  472. package/dist/types/modules/tournament/match/events/match-ended.event.d.ts +0 -14
  473. package/dist/types/modules/tournament/match/events/match-ended.event.d.ts.map +0 -1
  474. package/dist/types/modules/tournament/notification/jobs/notification.producer.d.ts +0 -10
  475. package/dist/types/modules/tournament/notification/jobs/notification.producer.d.ts.map +0 -1
  476. package/dist/types/modules/tournament/notification/jobs/notification.worker.d.ts +0 -9
  477. package/dist/types/modules/tournament/notification/jobs/notification.worker.d.ts.map +0 -1
  478. package/dist/types/modules/tournament/notification/notification.schedule.config.d.ts +0 -10
  479. package/dist/types/modules/tournament/notification/notification.schedule.config.d.ts.map +0 -1
  480. package/dist/types/modules/tournament/notification/notification.scheduler.service.d.ts +0 -10
  481. package/dist/types/modules/tournament/notification/notification.scheduler.service.d.ts.map +0 -1
@@ -1,10 +1,9 @@
1
1
  import { z } from 'zod';
2
2
  import { DTO } from '@lyxa.ai/core/dist/utilities/validation/global-validation';
3
- import { Status, TournamentRewardType } from '@lyxa.ai/core/dist/utilities/enum';
4
- import { TournamentTag } from '../tournament.types';
3
+ import { Status, TournamentNotificationTag, TournamentRewardType, TournamentScheduledNotificationTarget } from '@lyxa.ai/core/dist/utilities/enum';
5
4
  export declare const CreateTournamentConfigSchema: z.ZodEffects<z.ZodObject<{
6
5
  name: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
7
- tag: z.ZodNativeEnum<typeof TournamentTag>;
6
+ tag: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
8
7
  startDate: z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Date, string>, z.ZodDate]>, Date, string | Date>, Date, string | Date>;
9
8
  endDate: z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Date, string>, z.ZodDate]>, Date, string | Date>, Date, string | Date>;
10
9
  status: z.ZodOptional<z.ZodNativeEnum<typeof Status>>;
@@ -12,17 +11,17 @@ export declare const CreateTournamentConfigSchema: z.ZodEffects<z.ZodObject<{
12
11
  type: z.ZodLiteral<TournamentRewardType.COUPON>;
13
12
  couponNamePrefix: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
14
13
  percentage: z.ZodNumber;
15
- maxDiscountPerOrder: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
14
+ maxDiscountPerOrder: z.ZodNumber;
16
15
  }, "strip", z.ZodTypeAny, {
17
16
  type: TournamentRewardType.COUPON;
17
+ maxDiscountPerOrder: number;
18
18
  couponNamePrefix: string;
19
19
  percentage: number;
20
- maxDiscountPerOrder?: number | null | undefined;
21
20
  }, {
22
21
  type: TournamentRewardType.COUPON;
22
+ maxDiscountPerOrder: number;
23
23
  couponNamePrefix: string;
24
24
  percentage: number;
25
- maxDiscountPerOrder?: number | null | undefined;
26
25
  }>, z.ZodObject<{
27
26
  type: z.ZodLiteral<TournamentRewardType.FREE_DELIVERY>;
28
27
  }, "strip", z.ZodTypeAny, {
@@ -30,67 +29,126 @@ export declare const CreateTournamentConfigSchema: z.ZodEffects<z.ZodObject<{
30
29
  }, {
31
30
  type: TournamentRewardType.FREE_DELIVERY;
32
31
  }>]>>;
32
+ notificationTemplates: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof TournamentNotificationTag>, z.ZodObject<{
33
+ title: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
34
+ body: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
35
+ }, "strip", z.ZodTypeAny, {
36
+ title: string;
37
+ body: string;
38
+ }, {
39
+ title: string;
40
+ body: string;
41
+ }>>>;
42
+ scheduledNotifications: z.ZodOptional<z.ZodArray<z.ZodObject<{
43
+ type: z.ZodNativeEnum<typeof TournamentNotificationTag>;
44
+ durationMins: z.ZodNumber;
45
+ target: z.ZodNativeEnum<typeof TournamentScheduledNotificationTarget>;
46
+ }, "strip", z.ZodTypeAny, {
47
+ type: TournamentNotificationTag;
48
+ durationMins: number;
49
+ target: TournamentScheduledNotificationTarget;
50
+ }, {
51
+ type: TournamentNotificationTag;
52
+ durationMins: number;
53
+ target: TournamentScheduledNotificationTarget;
54
+ }>, "many">>;
33
55
  }, "strip", z.ZodTypeAny, {
34
56
  name: string;
35
57
  startDate: Date;
36
58
  endDate: Date;
37
- tag: TournamentTag;
59
+ tag: string;
38
60
  status?: Status | undefined;
39
61
  reward?: {
40
62
  type: TournamentRewardType.FREE_DELIVERY;
41
63
  } | {
42
64
  type: TournamentRewardType.COUPON;
65
+ maxDiscountPerOrder: number;
43
66
  couponNamePrefix: string;
44
67
  percentage: number;
45
- maxDiscountPerOrder?: number | null | undefined;
46
68
  } | undefined;
69
+ notificationTemplates?: Partial<Record<TournamentNotificationTag, {
70
+ title: string;
71
+ body: string;
72
+ }>> | undefined;
73
+ scheduledNotifications?: {
74
+ type: TournamentNotificationTag;
75
+ durationMins: number;
76
+ target: TournamentScheduledNotificationTarget;
77
+ }[] | undefined;
47
78
  }, {
48
79
  name: string;
49
80
  startDate: string | Date;
50
81
  endDate: string | Date;
51
- tag: TournamentTag;
82
+ tag: string;
52
83
  status?: Status | undefined;
53
84
  reward?: {
54
85
  type: TournamentRewardType.FREE_DELIVERY;
55
86
  } | {
56
87
  type: TournamentRewardType.COUPON;
88
+ maxDiscountPerOrder: number;
57
89
  couponNamePrefix: string;
58
90
  percentage: number;
59
- maxDiscountPerOrder?: number | null | undefined;
60
91
  } | undefined;
92
+ notificationTemplates?: Partial<Record<TournamentNotificationTag, {
93
+ title: string;
94
+ body: string;
95
+ }>> | undefined;
96
+ scheduledNotifications?: {
97
+ type: TournamentNotificationTag;
98
+ durationMins: number;
99
+ target: TournamentScheduledNotificationTarget;
100
+ }[] | undefined;
61
101
  }>, {
62
102
  name: string;
63
103
  startDate: Date;
64
104
  endDate: Date;
65
- tag: TournamentTag;
105
+ tag: string;
66
106
  status?: Status | undefined;
67
107
  reward?: {
68
108
  type: TournamentRewardType.FREE_DELIVERY;
69
109
  } | {
70
110
  type: TournamentRewardType.COUPON;
111
+ maxDiscountPerOrder: number;
71
112
  couponNamePrefix: string;
72
113
  percentage: number;
73
- maxDiscountPerOrder?: number | null | undefined;
74
114
  } | undefined;
115
+ notificationTemplates?: Partial<Record<TournamentNotificationTag, {
116
+ title: string;
117
+ body: string;
118
+ }>> | undefined;
119
+ scheduledNotifications?: {
120
+ type: TournamentNotificationTag;
121
+ durationMins: number;
122
+ target: TournamentScheduledNotificationTarget;
123
+ }[] | undefined;
75
124
  }, {
76
125
  name: string;
77
126
  startDate: string | Date;
78
127
  endDate: string | Date;
79
- tag: TournamentTag;
128
+ tag: string;
80
129
  status?: Status | undefined;
81
130
  reward?: {
82
131
  type: TournamentRewardType.FREE_DELIVERY;
83
132
  } | {
84
133
  type: TournamentRewardType.COUPON;
134
+ maxDiscountPerOrder: number;
85
135
  couponNamePrefix: string;
86
136
  percentage: number;
87
- maxDiscountPerOrder?: number | null | undefined;
88
137
  } | undefined;
138
+ notificationTemplates?: Partial<Record<TournamentNotificationTag, {
139
+ title: string;
140
+ body: string;
141
+ }>> | undefined;
142
+ scheduledNotifications?: {
143
+ type: TournamentNotificationTag;
144
+ durationMins: number;
145
+ target: TournamentScheduledNotificationTarget;
146
+ }[] | undefined;
89
147
  }>;
90
148
  export declare const UpdateTournamentConfigSchema: z.ZodEffects<z.ZodObject<{
91
149
  _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>]>;
92
150
  name: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
93
- tag: z.ZodOptional<z.ZodNativeEnum<typeof TournamentTag>>;
151
+ tag: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
94
152
  startDate: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Date, string>, z.ZodDate]>, Date, string | Date>, Date, string | Date>>;
95
153
  endDate: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Date, string>, z.ZodDate]>, Date, string | Date>, Date, string | Date>>;
96
154
  status: z.ZodOptional<z.ZodNativeEnum<typeof Status>>;
@@ -98,17 +156,17 @@ export declare const UpdateTournamentConfigSchema: z.ZodEffects<z.ZodObject<{
98
156
  type: z.ZodLiteral<TournamentRewardType.COUPON>;
99
157
  couponNamePrefix: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
100
158
  percentage: z.ZodNumber;
101
- maxDiscountPerOrder: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
159
+ maxDiscountPerOrder: z.ZodNumber;
102
160
  }, "strip", z.ZodTypeAny, {
103
161
  type: TournamentRewardType.COUPON;
162
+ maxDiscountPerOrder: number;
104
163
  couponNamePrefix: string;
105
164
  percentage: number;
106
- maxDiscountPerOrder?: number | null | undefined;
107
165
  }, {
108
166
  type: TournamentRewardType.COUPON;
167
+ maxDiscountPerOrder: number;
109
168
  couponNamePrefix: string;
110
169
  percentage: number;
111
- maxDiscountPerOrder?: number | null | undefined;
112
170
  }>, z.ZodObject<{
113
171
  type: z.ZodLiteral<TournamentRewardType.FREE_DELIVERY>;
114
172
  }, "strip", z.ZodTypeAny, {
@@ -116,71 +174,130 @@ export declare const UpdateTournamentConfigSchema: z.ZodEffects<z.ZodObject<{
116
174
  }, {
117
175
  type: TournamentRewardType.FREE_DELIVERY;
118
176
  }>]>>;
177
+ notificationTemplates: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof TournamentNotificationTag>, z.ZodObject<{
178
+ title: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
179
+ body: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
180
+ }, "strip", z.ZodTypeAny, {
181
+ title: string;
182
+ body: string;
183
+ }, {
184
+ title: string;
185
+ body: string;
186
+ }>>>;
187
+ scheduledNotifications: z.ZodOptional<z.ZodArray<z.ZodObject<{
188
+ type: z.ZodNativeEnum<typeof TournamentNotificationTag>;
189
+ durationMins: z.ZodNumber;
190
+ target: z.ZodNativeEnum<typeof TournamentScheduledNotificationTarget>;
191
+ }, "strip", z.ZodTypeAny, {
192
+ type: TournamentNotificationTag;
193
+ durationMins: number;
194
+ target: TournamentScheduledNotificationTarget;
195
+ }, {
196
+ type: TournamentNotificationTag;
197
+ durationMins: number;
198
+ target: TournamentScheduledNotificationTarget;
199
+ }>, "many">>;
119
200
  }, "strip", z.ZodTypeAny, {
120
201
  _id: import("mongoose").Types.ObjectId;
121
202
  status?: Status | undefined;
122
203
  name?: string | undefined;
123
204
  startDate?: Date | undefined;
124
205
  endDate?: Date | undefined;
125
- tag?: TournamentTag | undefined;
206
+ tag?: string | undefined;
126
207
  reward?: {
127
208
  type: TournamentRewardType.FREE_DELIVERY;
128
209
  } | {
129
210
  type: TournamentRewardType.COUPON;
211
+ maxDiscountPerOrder: number;
130
212
  couponNamePrefix: string;
131
213
  percentage: number;
132
- maxDiscountPerOrder?: number | null | undefined;
133
214
  } | undefined;
215
+ notificationTemplates?: Partial<Record<TournamentNotificationTag, {
216
+ title: string;
217
+ body: string;
218
+ }>> | undefined;
219
+ scheduledNotifications?: {
220
+ type: TournamentNotificationTag;
221
+ durationMins: number;
222
+ target: TournamentScheduledNotificationTarget;
223
+ }[] | undefined;
134
224
  }, {
135
225
  _id: string | import("mongoose").Types.ObjectId;
136
226
  status?: Status | undefined;
137
227
  name?: string | undefined;
138
228
  startDate?: string | Date | undefined;
139
229
  endDate?: string | Date | undefined;
140
- tag?: TournamentTag | undefined;
230
+ tag?: string | undefined;
141
231
  reward?: {
142
232
  type: TournamentRewardType.FREE_DELIVERY;
143
233
  } | {
144
234
  type: TournamentRewardType.COUPON;
235
+ maxDiscountPerOrder: number;
145
236
  couponNamePrefix: string;
146
237
  percentage: number;
147
- maxDiscountPerOrder?: number | null | undefined;
148
238
  } | undefined;
239
+ notificationTemplates?: Partial<Record<TournamentNotificationTag, {
240
+ title: string;
241
+ body: string;
242
+ }>> | undefined;
243
+ scheduledNotifications?: {
244
+ type: TournamentNotificationTag;
245
+ durationMins: number;
246
+ target: TournamentScheduledNotificationTarget;
247
+ }[] | undefined;
149
248
  }>, {
150
249
  _id: import("mongoose").Types.ObjectId;
151
250
  status?: Status | undefined;
152
251
  name?: string | undefined;
153
252
  startDate?: Date | undefined;
154
253
  endDate?: Date | undefined;
155
- tag?: TournamentTag | undefined;
254
+ tag?: string | undefined;
156
255
  reward?: {
157
256
  type: TournamentRewardType.FREE_DELIVERY;
158
257
  } | {
159
258
  type: TournamentRewardType.COUPON;
259
+ maxDiscountPerOrder: number;
160
260
  couponNamePrefix: string;
161
261
  percentage: number;
162
- maxDiscountPerOrder?: number | null | undefined;
163
262
  } | undefined;
263
+ notificationTemplates?: Partial<Record<TournamentNotificationTag, {
264
+ title: string;
265
+ body: string;
266
+ }>> | undefined;
267
+ scheduledNotifications?: {
268
+ type: TournamentNotificationTag;
269
+ durationMins: number;
270
+ target: TournamentScheduledNotificationTarget;
271
+ }[] | undefined;
164
272
  }, {
165
273
  _id: string | import("mongoose").Types.ObjectId;
166
274
  status?: Status | undefined;
167
275
  name?: string | undefined;
168
276
  startDate?: string | Date | undefined;
169
277
  endDate?: string | Date | undefined;
170
- tag?: TournamentTag | undefined;
278
+ tag?: string | undefined;
171
279
  reward?: {
172
280
  type: TournamentRewardType.FREE_DELIVERY;
173
281
  } | {
174
282
  type: TournamentRewardType.COUPON;
283
+ maxDiscountPerOrder: number;
175
284
  couponNamePrefix: string;
176
285
  percentage: number;
177
- maxDiscountPerOrder?: number | null | undefined;
178
286
  } | undefined;
287
+ notificationTemplates?: Partial<Record<TournamentNotificationTag, {
288
+ title: string;
289
+ body: string;
290
+ }>> | undefined;
291
+ scheduledNotifications?: {
292
+ type: TournamentNotificationTag;
293
+ durationMins: number;
294
+ target: TournamentScheduledNotificationTarget;
295
+ }[] | undefined;
179
296
  }>;
180
297
  export declare const TournamentConfigSchema: z.ZodObject<{
181
298
  _id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
182
299
  name: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
183
- tag: z.ZodDefault<z.ZodNativeEnum<typeof TournamentTag>>;
300
+ tag: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
184
301
  startDate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
185
302
  endDate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
186
303
  status: z.ZodNativeEnum<typeof Status>;
@@ -208,10 +325,33 @@ export declare const TournamentConfigSchema: z.ZodObject<{
208
325
  }>]>>;
209
326
  createdAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
210
327
  updatedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
328
+ notificationTemplates: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof TournamentNotificationTag>, z.ZodObject<{
329
+ title: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
330
+ body: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
331
+ }, "strip", z.ZodTypeAny, {
332
+ title: string;
333
+ body: string;
334
+ }, {
335
+ title: string;
336
+ body: string;
337
+ }>>>;
338
+ scheduledNotifications: z.ZodOptional<z.ZodArray<z.ZodObject<{
339
+ type: z.ZodNativeEnum<typeof TournamentNotificationTag>;
340
+ durationMins: z.ZodNumber;
341
+ target: z.ZodNativeEnum<typeof TournamentScheduledNotificationTarget>;
342
+ }, "strip", z.ZodTypeAny, {
343
+ type: TournamentNotificationTag;
344
+ durationMins: number;
345
+ target: TournamentScheduledNotificationTarget;
346
+ }, {
347
+ type: TournamentNotificationTag;
348
+ durationMins: number;
349
+ target: TournamentScheduledNotificationTarget;
350
+ }>, "many">>;
211
351
  }, "strip", z.ZodTypeAny, {
212
352
  status: Status;
213
353
  name: string;
214
- tag: TournamentTag;
354
+ tag: string;
215
355
  _id?: import("mongoose").Types.ObjectId | undefined;
216
356
  createdAt?: Date | null | undefined;
217
357
  startDate?: Date | null | undefined;
@@ -225,15 +365,24 @@ export declare const TournamentConfigSchema: z.ZodObject<{
225
365
  couponNamePrefix?: string | undefined;
226
366
  percentage?: number | undefined;
227
367
  } | undefined;
368
+ notificationTemplates?: Partial<Record<TournamentNotificationTag, {
369
+ title: string;
370
+ body: string;
371
+ }>> | undefined;
372
+ scheduledNotifications?: {
373
+ type: TournamentNotificationTag;
374
+ durationMins: number;
375
+ target: TournamentScheduledNotificationTarget;
376
+ }[] | undefined;
228
377
  }, {
229
378
  status: Status;
230
379
  name: string;
380
+ tag: string;
231
381
  _id?: string | import("mongoose").Types.ObjectId | undefined;
232
382
  createdAt?: Date | null | undefined;
233
383
  startDate?: Date | null | undefined;
234
384
  endDate?: Date | null | undefined;
235
385
  updatedAt?: Date | null | undefined;
236
- tag?: TournamentTag | undefined;
237
386
  reward?: {
238
387
  type: TournamentRewardType.FREE_DELIVERY;
239
388
  } | {
@@ -242,16 +391,48 @@ export declare const TournamentConfigSchema: z.ZodObject<{
242
391
  couponNamePrefix?: string | undefined;
243
392
  percentage?: number | undefined;
244
393
  } | undefined;
394
+ notificationTemplates?: Partial<Record<TournamentNotificationTag, {
395
+ title: string;
396
+ body: string;
397
+ }>> | undefined;
398
+ scheduledNotifications?: {
399
+ type: TournamentNotificationTag;
400
+ durationMins: number;
401
+ target: TournamentScheduledNotificationTarget;
402
+ }[] | undefined;
245
403
  }>;
246
404
  export declare const TournamentConfigListItemSchema: z.ZodObject<{
247
405
  _id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
248
406
  name: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
249
- tag: z.ZodDefault<z.ZodNativeEnum<typeof TournamentTag>>;
407
+ tag: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
250
408
  startDate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
251
409
  endDate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
252
410
  status: z.ZodNativeEnum<typeof Status>;
253
411
  createdAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
254
412
  updatedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
413
+ notificationTemplates: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof TournamentNotificationTag>, z.ZodObject<{
414
+ title: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
415
+ body: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
416
+ }, "strip", z.ZodTypeAny, {
417
+ title: string;
418
+ body: string;
419
+ }, {
420
+ title: string;
421
+ body: string;
422
+ }>>>;
423
+ scheduledNotifications: z.ZodOptional<z.ZodArray<z.ZodObject<{
424
+ type: z.ZodNativeEnum<typeof TournamentNotificationTag>;
425
+ durationMins: z.ZodNumber;
426
+ target: z.ZodNativeEnum<typeof TournamentScheduledNotificationTarget>;
427
+ }, "strip", z.ZodTypeAny, {
428
+ type: TournamentNotificationTag;
429
+ durationMins: number;
430
+ target: TournamentScheduledNotificationTarget;
431
+ }, {
432
+ type: TournamentNotificationTag;
433
+ durationMins: number;
434
+ target: TournamentScheduledNotificationTarget;
435
+ }>, "many">>;
255
436
  } & {
256
437
  reward: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
257
438
  type: z.ZodLiteral<TournamentRewardType.COUPON>;
@@ -275,7 +456,7 @@ export declare const TournamentConfigListItemSchema: z.ZodObject<{
275
456
  }, "strip", z.ZodTypeAny, {
276
457
  status: Status;
277
458
  name: string;
278
- tag: TournamentTag;
459
+ tag: string;
279
460
  _id?: import("mongoose").Types.ObjectId | undefined;
280
461
  createdAt?: Date | null | undefined;
281
462
  startDate?: Date | null | undefined;
@@ -288,15 +469,24 @@ export declare const TournamentConfigListItemSchema: z.ZodObject<{
288
469
  maxDiscountPerOrder?: number | null | undefined;
289
470
  percentage?: number | undefined;
290
471
  } | undefined;
472
+ notificationTemplates?: Partial<Record<TournamentNotificationTag, {
473
+ title: string;
474
+ body: string;
475
+ }>> | undefined;
476
+ scheduledNotifications?: {
477
+ type: TournamentNotificationTag;
478
+ durationMins: number;
479
+ target: TournamentScheduledNotificationTarget;
480
+ }[] | undefined;
291
481
  }, {
292
482
  status: Status;
293
483
  name: string;
484
+ tag: string;
294
485
  _id?: string | import("mongoose").Types.ObjectId | undefined;
295
486
  createdAt?: Date | null | undefined;
296
487
  startDate?: Date | null | undefined;
297
488
  endDate?: Date | null | undefined;
298
489
  updatedAt?: Date | null | undefined;
299
- tag?: TournamentTag | undefined;
300
490
  reward?: {
301
491
  type: TournamentRewardType.FREE_DELIVERY;
302
492
  } | {
@@ -304,6 +494,15 @@ export declare const TournamentConfigListItemSchema: z.ZodObject<{
304
494
  maxDiscountPerOrder?: number | null | undefined;
305
495
  percentage?: number | undefined;
306
496
  } | undefined;
497
+ notificationTemplates?: Partial<Record<TournamentNotificationTag, {
498
+ title: string;
499
+ body: string;
500
+ }>> | undefined;
501
+ scheduledNotifications?: {
502
+ type: TournamentNotificationTag;
503
+ durationMins: number;
504
+ target: TournamentScheduledNotificationTarget;
505
+ }[] | undefined;
307
506
  }>;
308
507
  export declare const TournamentConfigResponseSchema: z.ZodObject<{
309
508
  success: z.ZodBoolean;
@@ -328,12 +527,12 @@ export declare const TournamentConfigResponseSchema: z.ZodObject<{
328
527
  documents: z.ZodArray<z.ZodType<{
329
528
  status: Status;
330
529
  name: string;
530
+ tag: string;
331
531
  _id?: string | import("mongoose").Types.ObjectId | undefined;
332
532
  createdAt?: Date | null | undefined;
333
533
  startDate?: Date | null | undefined;
334
534
  endDate?: Date | null | undefined;
335
535
  updatedAt?: Date | null | undefined;
336
- tag?: TournamentTag | undefined;
337
536
  reward?: {
338
537
  type: TournamentRewardType.FREE_DELIVERY;
339
538
  } | {
@@ -342,15 +541,24 @@ export declare const TournamentConfigResponseSchema: z.ZodObject<{
342
541
  couponNamePrefix?: string | undefined;
343
542
  percentage?: number | undefined;
344
543
  } | undefined;
544
+ notificationTemplates?: Partial<Record<TournamentNotificationTag, {
545
+ title: string;
546
+ body: string;
547
+ }>> | undefined;
548
+ scheduledNotifications?: {
549
+ type: TournamentNotificationTag;
550
+ durationMins: number;
551
+ target: TournamentScheduledNotificationTarget;
552
+ }[] | undefined;
345
553
  }, z.ZodTypeDef, {
346
554
  status: Status;
347
555
  name: string;
556
+ tag: string;
348
557
  _id?: string | import("mongoose").Types.ObjectId | undefined;
349
558
  createdAt?: Date | null | undefined;
350
559
  startDate?: Date | null | undefined;
351
560
  endDate?: Date | null | undefined;
352
561
  updatedAt?: Date | null | undefined;
353
- tag?: TournamentTag | undefined;
354
562
  reward?: {
355
563
  type: TournamentRewardType.FREE_DELIVERY;
356
564
  } | {
@@ -359,17 +567,26 @@ export declare const TournamentConfigResponseSchema: z.ZodObject<{
359
567
  couponNamePrefix?: string | undefined;
360
568
  percentage?: number | undefined;
361
569
  } | undefined;
570
+ notificationTemplates?: Partial<Record<TournamentNotificationTag, {
571
+ title: string;
572
+ body: string;
573
+ }>> | undefined;
574
+ scheduledNotifications?: {
575
+ type: TournamentNotificationTag;
576
+ durationMins: number;
577
+ target: TournamentScheduledNotificationTarget;
578
+ }[] | undefined;
362
579
  }>, "many">;
363
580
  }, "strip", z.ZodTypeAny, {
364
581
  documents: {
365
582
  status: Status;
366
583
  name: string;
584
+ tag: string;
367
585
  _id?: string | import("mongoose").Types.ObjectId | undefined;
368
586
  createdAt?: Date | null | undefined;
369
587
  startDate?: Date | null | undefined;
370
588
  endDate?: Date | null | undefined;
371
589
  updatedAt?: Date | null | undefined;
372
- tag?: TournamentTag | undefined;
373
590
  reward?: {
374
591
  type: TournamentRewardType.FREE_DELIVERY;
375
592
  } | {
@@ -378,6 +595,15 @@ export declare const TournamentConfigResponseSchema: z.ZodObject<{
378
595
  couponNamePrefix?: string | undefined;
379
596
  percentage?: number | undefined;
380
597
  } | undefined;
598
+ notificationTemplates?: Partial<Record<TournamentNotificationTag, {
599
+ title: string;
600
+ body: string;
601
+ }>> | undefined;
602
+ scheduledNotifications?: {
603
+ type: TournamentNotificationTag;
604
+ durationMins: number;
605
+ target: TournamentScheduledNotificationTarget;
606
+ }[] | undefined;
381
607
  }[];
382
608
  metadata?: {
383
609
  page: number;
@@ -389,12 +615,12 @@ export declare const TournamentConfigResponseSchema: z.ZodObject<{
389
615
  documents: {
390
616
  status: Status;
391
617
  name: string;
618
+ tag: string;
392
619
  _id?: string | import("mongoose").Types.ObjectId | undefined;
393
620
  createdAt?: Date | null | undefined;
394
621
  startDate?: Date | null | undefined;
395
622
  endDate?: Date | null | undefined;
396
623
  updatedAt?: Date | null | undefined;
397
- tag?: TournamentTag | undefined;
398
624
  reward?: {
399
625
  type: TournamentRewardType.FREE_DELIVERY;
400
626
  } | {
@@ -403,6 +629,15 @@ export declare const TournamentConfigResponseSchema: z.ZodObject<{
403
629
  couponNamePrefix?: string | undefined;
404
630
  percentage?: number | undefined;
405
631
  } | undefined;
632
+ notificationTemplates?: Partial<Record<TournamentNotificationTag, {
633
+ title: string;
634
+ body: string;
635
+ }>> | undefined;
636
+ scheduledNotifications?: {
637
+ type: TournamentNotificationTag;
638
+ durationMins: number;
639
+ target: TournamentScheduledNotificationTarget;
640
+ }[] | undefined;
406
641
  }[];
407
642
  metadata?: {
408
643
  page: number;
@@ -413,12 +648,12 @@ export declare const TournamentConfigResponseSchema: z.ZodObject<{
413
648
  }>, z.ZodType<{
414
649
  status: Status;
415
650
  name: string;
651
+ tag: string;
416
652
  _id?: string | import("mongoose").Types.ObjectId | undefined;
417
653
  createdAt?: Date | null | undefined;
418
654
  startDate?: Date | null | undefined;
419
655
  endDate?: Date | null | undefined;
420
656
  updatedAt?: Date | null | undefined;
421
- tag?: TournamentTag | undefined;
422
657
  reward?: {
423
658
  type: TournamentRewardType.FREE_DELIVERY;
424
659
  } | {
@@ -427,15 +662,24 @@ export declare const TournamentConfigResponseSchema: z.ZodObject<{
427
662
  couponNamePrefix?: string | undefined;
428
663
  percentage?: number | undefined;
429
664
  } | undefined;
665
+ notificationTemplates?: Partial<Record<TournamentNotificationTag, {
666
+ title: string;
667
+ body: string;
668
+ }>> | undefined;
669
+ scheduledNotifications?: {
670
+ type: TournamentNotificationTag;
671
+ durationMins: number;
672
+ target: TournamentScheduledNotificationTarget;
673
+ }[] | undefined;
430
674
  }, z.ZodTypeDef, {
431
675
  status: Status;
432
676
  name: string;
677
+ tag: string;
433
678
  _id?: string | import("mongoose").Types.ObjectId | undefined;
434
679
  createdAt?: Date | null | undefined;
435
680
  startDate?: Date | null | undefined;
436
681
  endDate?: Date | null | undefined;
437
682
  updatedAt?: Date | null | undefined;
438
- tag?: TournamentTag | undefined;
439
683
  reward?: {
440
684
  type: TournamentRewardType.FREE_DELIVERY;
441
685
  } | {
@@ -444,6 +688,15 @@ export declare const TournamentConfigResponseSchema: z.ZodObject<{
444
688
  couponNamePrefix?: string | undefined;
445
689
  percentage?: number | undefined;
446
690
  } | undefined;
691
+ notificationTemplates?: Partial<Record<TournamentNotificationTag, {
692
+ title: string;
693
+ body: string;
694
+ }>> | undefined;
695
+ scheduledNotifications?: {
696
+ type: TournamentNotificationTag;
697
+ durationMins: number;
698
+ target: TournamentScheduledNotificationTarget;
699
+ }[] | undefined;
447
700
  }>]>>;
448
701
  }, "strip", z.ZodTypeAny, {
449
702
  message: string;
@@ -451,12 +704,12 @@ export declare const TournamentConfigResponseSchema: z.ZodObject<{
451
704
  data?: {
452
705
  status: Status;
453
706
  name: string;
707
+ tag: string;
454
708
  _id?: string | import("mongoose").Types.ObjectId | undefined;
455
709
  createdAt?: Date | null | undefined;
456
710
  startDate?: Date | null | undefined;
457
711
  endDate?: Date | null | undefined;
458
712
  updatedAt?: Date | null | undefined;
459
- tag?: TournamentTag | undefined;
460
713
  reward?: {
461
714
  type: TournamentRewardType.FREE_DELIVERY;
462
715
  } | {
@@ -465,16 +718,25 @@ export declare const TournamentConfigResponseSchema: z.ZodObject<{
465
718
  couponNamePrefix?: string | undefined;
466
719
  percentage?: number | undefined;
467
720
  } | undefined;
721
+ notificationTemplates?: Partial<Record<TournamentNotificationTag, {
722
+ title: string;
723
+ body: string;
724
+ }>> | undefined;
725
+ scheduledNotifications?: {
726
+ type: TournamentNotificationTag;
727
+ durationMins: number;
728
+ target: TournamentScheduledNotificationTarget;
729
+ }[] | undefined;
468
730
  } | {
469
731
  documents: {
470
732
  status: Status;
471
733
  name: string;
734
+ tag: string;
472
735
  _id?: string | import("mongoose").Types.ObjectId | undefined;
473
736
  createdAt?: Date | null | undefined;
474
737
  startDate?: Date | null | undefined;
475
738
  endDate?: Date | null | undefined;
476
739
  updatedAt?: Date | null | undefined;
477
- tag?: TournamentTag | undefined;
478
740
  reward?: {
479
741
  type: TournamentRewardType.FREE_DELIVERY;
480
742
  } | {
@@ -483,6 +745,15 @@ export declare const TournamentConfigResponseSchema: z.ZodObject<{
483
745
  couponNamePrefix?: string | undefined;
484
746
  percentage?: number | undefined;
485
747
  } | undefined;
748
+ notificationTemplates?: Partial<Record<TournamentNotificationTag, {
749
+ title: string;
750
+ body: string;
751
+ }>> | undefined;
752
+ scheduledNotifications?: {
753
+ type: TournamentNotificationTag;
754
+ durationMins: number;
755
+ target: TournamentScheduledNotificationTarget;
756
+ }[] | undefined;
486
757
  }[];
487
758
  metadata?: {
488
759
  page: number;
@@ -497,12 +768,12 @@ export declare const TournamentConfigResponseSchema: z.ZodObject<{
497
768
  data?: {
498
769
  status: Status;
499
770
  name: string;
771
+ tag: string;
500
772
  _id?: string | import("mongoose").Types.ObjectId | undefined;
501
773
  createdAt?: Date | null | undefined;
502
774
  startDate?: Date | null | undefined;
503
775
  endDate?: Date | null | undefined;
504
776
  updatedAt?: Date | null | undefined;
505
- tag?: TournamentTag | undefined;
506
777
  reward?: {
507
778
  type: TournamentRewardType.FREE_DELIVERY;
508
779
  } | {
@@ -511,16 +782,25 @@ export declare const TournamentConfigResponseSchema: z.ZodObject<{
511
782
  couponNamePrefix?: string | undefined;
512
783
  percentage?: number | undefined;
513
784
  } | undefined;
785
+ notificationTemplates?: Partial<Record<TournamentNotificationTag, {
786
+ title: string;
787
+ body: string;
788
+ }>> | undefined;
789
+ scheduledNotifications?: {
790
+ type: TournamentNotificationTag;
791
+ durationMins: number;
792
+ target: TournamentScheduledNotificationTarget;
793
+ }[] | undefined;
514
794
  } | {
515
795
  documents: {
516
796
  status: Status;
517
797
  name: string;
798
+ tag: string;
518
799
  _id?: string | import("mongoose").Types.ObjectId | undefined;
519
800
  createdAt?: Date | null | undefined;
520
801
  startDate?: Date | null | undefined;
521
802
  endDate?: Date | null | undefined;
522
803
  updatedAt?: Date | null | undefined;
523
- tag?: TournamentTag | undefined;
524
804
  reward?: {
525
805
  type: TournamentRewardType.FREE_DELIVERY;
526
806
  } | {
@@ -529,6 +809,15 @@ export declare const TournamentConfigResponseSchema: z.ZodObject<{
529
809
  couponNamePrefix?: string | undefined;
530
810
  percentage?: number | undefined;
531
811
  } | undefined;
812
+ notificationTemplates?: Partial<Record<TournamentNotificationTag, {
813
+ title: string;
814
+ body: string;
815
+ }>> | undefined;
816
+ scheduledNotifications?: {
817
+ type: TournamentNotificationTag;
818
+ durationMins: number;
819
+ target: TournamentScheduledNotificationTarget;
820
+ }[] | undefined;
532
821
  }[];
533
822
  metadata?: {
534
823
  page: number;
@@ -561,12 +850,12 @@ export declare const TournamentConfigListResponseSchema: z.ZodObject<{
561
850
  documents: z.ZodArray<z.ZodType<{
562
851
  status: Status;
563
852
  name: string;
853
+ tag: string;
564
854
  _id?: string | import("mongoose").Types.ObjectId | undefined;
565
855
  createdAt?: Date | null | undefined;
566
856
  startDate?: Date | null | undefined;
567
857
  endDate?: Date | null | undefined;
568
858
  updatedAt?: Date | null | undefined;
569
- tag?: TournamentTag | undefined;
570
859
  reward?: {
571
860
  type: TournamentRewardType.FREE_DELIVERY;
572
861
  } | {
@@ -574,15 +863,24 @@ export declare const TournamentConfigListResponseSchema: z.ZodObject<{
574
863
  maxDiscountPerOrder?: number | null | undefined;
575
864
  percentage?: number | undefined;
576
865
  } | undefined;
866
+ notificationTemplates?: Partial<Record<TournamentNotificationTag, {
867
+ title: string;
868
+ body: string;
869
+ }>> | undefined;
870
+ scheduledNotifications?: {
871
+ type: TournamentNotificationTag;
872
+ durationMins: number;
873
+ target: TournamentScheduledNotificationTarget;
874
+ }[] | undefined;
577
875
  }[], z.ZodTypeDef, {
578
876
  status: Status;
579
877
  name: string;
878
+ tag: string;
580
879
  _id?: string | import("mongoose").Types.ObjectId | undefined;
581
880
  createdAt?: Date | null | undefined;
582
881
  startDate?: Date | null | undefined;
583
882
  endDate?: Date | null | undefined;
584
883
  updatedAt?: Date | null | undefined;
585
- tag?: TournamentTag | undefined;
586
884
  reward?: {
587
885
  type: TournamentRewardType.FREE_DELIVERY;
588
886
  } | {
@@ -590,17 +888,26 @@ export declare const TournamentConfigListResponseSchema: z.ZodObject<{
590
888
  maxDiscountPerOrder?: number | null | undefined;
591
889
  percentage?: number | undefined;
592
890
  } | undefined;
891
+ notificationTemplates?: Partial<Record<TournamentNotificationTag, {
892
+ title: string;
893
+ body: string;
894
+ }>> | undefined;
895
+ scheduledNotifications?: {
896
+ type: TournamentNotificationTag;
897
+ durationMins: number;
898
+ target: TournamentScheduledNotificationTarget;
899
+ }[] | undefined;
593
900
  }[]>, "many">;
594
901
  }, "strip", z.ZodTypeAny, {
595
902
  documents: {
596
903
  status: Status;
597
904
  name: string;
905
+ tag: string;
598
906
  _id?: string | import("mongoose").Types.ObjectId | undefined;
599
907
  createdAt?: Date | null | undefined;
600
908
  startDate?: Date | null | undefined;
601
909
  endDate?: Date | null | undefined;
602
910
  updatedAt?: Date | null | undefined;
603
- tag?: TournamentTag | undefined;
604
911
  reward?: {
605
912
  type: TournamentRewardType.FREE_DELIVERY;
606
913
  } | {
@@ -608,6 +915,15 @@ export declare const TournamentConfigListResponseSchema: z.ZodObject<{
608
915
  maxDiscountPerOrder?: number | null | undefined;
609
916
  percentage?: number | undefined;
610
917
  } | undefined;
918
+ notificationTemplates?: Partial<Record<TournamentNotificationTag, {
919
+ title: string;
920
+ body: string;
921
+ }>> | undefined;
922
+ scheduledNotifications?: {
923
+ type: TournamentNotificationTag;
924
+ durationMins: number;
925
+ target: TournamentScheduledNotificationTarget;
926
+ }[] | undefined;
611
927
  }[][];
612
928
  metadata?: {
613
929
  page: number;
@@ -619,12 +935,12 @@ export declare const TournamentConfigListResponseSchema: z.ZodObject<{
619
935
  documents: {
620
936
  status: Status;
621
937
  name: string;
938
+ tag: string;
622
939
  _id?: string | import("mongoose").Types.ObjectId | undefined;
623
940
  createdAt?: Date | null | undefined;
624
941
  startDate?: Date | null | undefined;
625
942
  endDate?: Date | null | undefined;
626
943
  updatedAt?: Date | null | undefined;
627
- tag?: TournamentTag | undefined;
628
944
  reward?: {
629
945
  type: TournamentRewardType.FREE_DELIVERY;
630
946
  } | {
@@ -632,6 +948,15 @@ export declare const TournamentConfigListResponseSchema: z.ZodObject<{
632
948
  maxDiscountPerOrder?: number | null | undefined;
633
949
  percentage?: number | undefined;
634
950
  } | undefined;
951
+ notificationTemplates?: Partial<Record<TournamentNotificationTag, {
952
+ title: string;
953
+ body: string;
954
+ }>> | undefined;
955
+ scheduledNotifications?: {
956
+ type: TournamentNotificationTag;
957
+ durationMins: number;
958
+ target: TournamentScheduledNotificationTarget;
959
+ }[] | undefined;
635
960
  }[][];
636
961
  metadata?: {
637
962
  page: number;
@@ -642,12 +967,12 @@ export declare const TournamentConfigListResponseSchema: z.ZodObject<{
642
967
  }>, z.ZodType<{
643
968
  status: Status;
644
969
  name: string;
970
+ tag: string;
645
971
  _id?: string | import("mongoose").Types.ObjectId | undefined;
646
972
  createdAt?: Date | null | undefined;
647
973
  startDate?: Date | null | undefined;
648
974
  endDate?: Date | null | undefined;
649
975
  updatedAt?: Date | null | undefined;
650
- tag?: TournamentTag | undefined;
651
976
  reward?: {
652
977
  type: TournamentRewardType.FREE_DELIVERY;
653
978
  } | {
@@ -655,15 +980,24 @@ export declare const TournamentConfigListResponseSchema: z.ZodObject<{
655
980
  maxDiscountPerOrder?: number | null | undefined;
656
981
  percentage?: number | undefined;
657
982
  } | undefined;
983
+ notificationTemplates?: Partial<Record<TournamentNotificationTag, {
984
+ title: string;
985
+ body: string;
986
+ }>> | undefined;
987
+ scheduledNotifications?: {
988
+ type: TournamentNotificationTag;
989
+ durationMins: number;
990
+ target: TournamentScheduledNotificationTarget;
991
+ }[] | undefined;
658
992
  }[], z.ZodTypeDef, {
659
993
  status: Status;
660
994
  name: string;
995
+ tag: string;
661
996
  _id?: string | import("mongoose").Types.ObjectId | undefined;
662
997
  createdAt?: Date | null | undefined;
663
998
  startDate?: Date | null | undefined;
664
999
  endDate?: Date | null | undefined;
665
1000
  updatedAt?: Date | null | undefined;
666
- tag?: TournamentTag | undefined;
667
1001
  reward?: {
668
1002
  type: TournamentRewardType.FREE_DELIVERY;
669
1003
  } | {
@@ -671,6 +1005,15 @@ export declare const TournamentConfigListResponseSchema: z.ZodObject<{
671
1005
  maxDiscountPerOrder?: number | null | undefined;
672
1006
  percentage?: number | undefined;
673
1007
  } | undefined;
1008
+ notificationTemplates?: Partial<Record<TournamentNotificationTag, {
1009
+ title: string;
1010
+ body: string;
1011
+ }>> | undefined;
1012
+ scheduledNotifications?: {
1013
+ type: TournamentNotificationTag;
1014
+ durationMins: number;
1015
+ target: TournamentScheduledNotificationTarget;
1016
+ }[] | undefined;
674
1017
  }[]>]>>;
675
1018
  }, "strip", z.ZodTypeAny, {
676
1019
  message: string;
@@ -678,12 +1021,12 @@ export declare const TournamentConfigListResponseSchema: z.ZodObject<{
678
1021
  data?: {
679
1022
  status: Status;
680
1023
  name: string;
1024
+ tag: string;
681
1025
  _id?: string | import("mongoose").Types.ObjectId | undefined;
682
1026
  createdAt?: Date | null | undefined;
683
1027
  startDate?: Date | null | undefined;
684
1028
  endDate?: Date | null | undefined;
685
1029
  updatedAt?: Date | null | undefined;
686
- tag?: TournamentTag | undefined;
687
1030
  reward?: {
688
1031
  type: TournamentRewardType.FREE_DELIVERY;
689
1032
  } | {
@@ -691,16 +1034,25 @@ export declare const TournamentConfigListResponseSchema: z.ZodObject<{
691
1034
  maxDiscountPerOrder?: number | null | undefined;
692
1035
  percentage?: number | undefined;
693
1036
  } | undefined;
1037
+ notificationTemplates?: Partial<Record<TournamentNotificationTag, {
1038
+ title: string;
1039
+ body: string;
1040
+ }>> | undefined;
1041
+ scheduledNotifications?: {
1042
+ type: TournamentNotificationTag;
1043
+ durationMins: number;
1044
+ target: TournamentScheduledNotificationTarget;
1045
+ }[] | undefined;
694
1046
  }[] | {
695
1047
  documents: {
696
1048
  status: Status;
697
1049
  name: string;
1050
+ tag: string;
698
1051
  _id?: string | import("mongoose").Types.ObjectId | undefined;
699
1052
  createdAt?: Date | null | undefined;
700
1053
  startDate?: Date | null | undefined;
701
1054
  endDate?: Date | null | undefined;
702
1055
  updatedAt?: Date | null | undefined;
703
- tag?: TournamentTag | undefined;
704
1056
  reward?: {
705
1057
  type: TournamentRewardType.FREE_DELIVERY;
706
1058
  } | {
@@ -708,6 +1060,15 @@ export declare const TournamentConfigListResponseSchema: z.ZodObject<{
708
1060
  maxDiscountPerOrder?: number | null | undefined;
709
1061
  percentage?: number | undefined;
710
1062
  } | undefined;
1063
+ notificationTemplates?: Partial<Record<TournamentNotificationTag, {
1064
+ title: string;
1065
+ body: string;
1066
+ }>> | undefined;
1067
+ scheduledNotifications?: {
1068
+ type: TournamentNotificationTag;
1069
+ durationMins: number;
1070
+ target: TournamentScheduledNotificationTarget;
1071
+ }[] | undefined;
711
1072
  }[][];
712
1073
  metadata?: {
713
1074
  page: number;
@@ -722,12 +1083,12 @@ export declare const TournamentConfigListResponseSchema: z.ZodObject<{
722
1083
  data?: {
723
1084
  status: Status;
724
1085
  name: string;
1086
+ tag: string;
725
1087
  _id?: string | import("mongoose").Types.ObjectId | undefined;
726
1088
  createdAt?: Date | null | undefined;
727
1089
  startDate?: Date | null | undefined;
728
1090
  endDate?: Date | null | undefined;
729
1091
  updatedAt?: Date | null | undefined;
730
- tag?: TournamentTag | undefined;
731
1092
  reward?: {
732
1093
  type: TournamentRewardType.FREE_DELIVERY;
733
1094
  } | {
@@ -735,16 +1096,25 @@ export declare const TournamentConfigListResponseSchema: z.ZodObject<{
735
1096
  maxDiscountPerOrder?: number | null | undefined;
736
1097
  percentage?: number | undefined;
737
1098
  } | undefined;
1099
+ notificationTemplates?: Partial<Record<TournamentNotificationTag, {
1100
+ title: string;
1101
+ body: string;
1102
+ }>> | undefined;
1103
+ scheduledNotifications?: {
1104
+ type: TournamentNotificationTag;
1105
+ durationMins: number;
1106
+ target: TournamentScheduledNotificationTarget;
1107
+ }[] | undefined;
738
1108
  }[] | {
739
1109
  documents: {
740
1110
  status: Status;
741
1111
  name: string;
1112
+ tag: string;
742
1113
  _id?: string | import("mongoose").Types.ObjectId | undefined;
743
1114
  createdAt?: Date | null | undefined;
744
1115
  startDate?: Date | null | undefined;
745
1116
  endDate?: Date | null | undefined;
746
1117
  updatedAt?: Date | null | undefined;
747
- tag?: TournamentTag | undefined;
748
1118
  reward?: {
749
1119
  type: TournamentRewardType.FREE_DELIVERY;
750
1120
  } | {
@@ -752,6 +1122,15 @@ export declare const TournamentConfigListResponseSchema: z.ZodObject<{
752
1122
  maxDiscountPerOrder?: number | null | undefined;
753
1123
  percentage?: number | undefined;
754
1124
  } | undefined;
1125
+ notificationTemplates?: Partial<Record<TournamentNotificationTag, {
1126
+ title: string;
1127
+ body: string;
1128
+ }>> | undefined;
1129
+ scheduledNotifications?: {
1130
+ type: TournamentNotificationTag;
1131
+ durationMins: number;
1132
+ target: TournamentScheduledNotificationTarget;
1133
+ }[] | undefined;
755
1134
  }[][];
756
1135
  metadata?: {
757
1136
  page: number;