@lyxa.ai/marketing 1.0.52 → 1.0.54

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 (509) hide show
  1. package/dist/lib/index.d.ts +946 -53
  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 +647 -0
  6. package/dist/lib/modules/coupon/routers/coupon.router.d.ts.map +1 -1
  7. package/dist/lib/modules/coupon/routers/coupon.router.js +7 -0
  8. package/dist/lib/modules/coupon/routers/coupon.router.js.map +1 -1
  9. package/dist/lib/modules/coupon/services/coupon.service.d.ts +8 -1
  10. package/dist/lib/modules/coupon/services/coupon.service.d.ts.map +1 -1
  11. package/dist/lib/modules/coupon/services/coupon.service.js +231 -27
  12. package/dist/lib/modules/coupon/services/coupon.service.js.map +1 -1
  13. package/dist/lib/modules/coupon/services/patterns/repository/CouponMetricsRepository.d.ts.map +1 -1
  14. package/dist/lib/modules/coupon/services/patterns/repository/CouponMetricsRepository.js +17 -4
  15. package/dist/lib/modules/coupon/services/patterns/repository/CouponMetricsRepository.js.map +1 -1
  16. package/dist/lib/modules/coupon/validations/coupon.validation.d.ts +26 -0
  17. package/dist/lib/modules/coupon/validations/coupon.validation.d.ts.map +1 -1
  18. package/dist/lib/modules/coupon/validations/coupon.validation.js +10 -1
  19. package/dist/lib/modules/coupon/validations/coupon.validation.js.map +1 -1
  20. package/dist/lib/modules/limited-time-offer/campaign/campaign.router.d.ts +40 -40
  21. package/dist/lib/modules/limited-time-offer/campaign/campaign.router.js +9 -9
  22. package/dist/lib/modules/limited-time-offer/campaign/campaign.router.js.map +1 -1
  23. package/dist/lib/modules/limited-time-offer/campaign/jobs/limited-time-offer-campaign.worker.d.ts +0 -1
  24. package/dist/lib/modules/limited-time-offer/campaign/jobs/limited-time-offer-campaign.worker.d.ts.map +1 -1
  25. package/dist/lib/modules/limited-time-offer/campaign/jobs/limited-time-offer-campaign.worker.js +2 -5
  26. package/dist/lib/modules/limited-time-offer/campaign/jobs/limited-time-offer-campaign.worker.js.map +1 -1
  27. package/dist/lib/modules/limited-time-offer/campaign/limited-time-offer-campaign.builder.d.ts +1 -0
  28. package/dist/lib/modules/limited-time-offer/campaign/limited-time-offer-campaign.builder.d.ts.map +1 -1
  29. package/dist/lib/modules/limited-time-offer/campaign/limited-time-offer-campaign.builder.js +2 -0
  30. package/dist/lib/modules/limited-time-offer/campaign/limited-time-offer-campaign.builder.js.map +1 -1
  31. package/dist/lib/modules/limited-time-offer/campaign/limited-time-offer-campaign.validation.d.ts +53 -40
  32. package/dist/lib/modules/limited-time-offer/campaign/limited-time-offer-campaign.validation.d.ts.map +1 -1
  33. package/dist/lib/modules/limited-time-offer/campaign/limited-time-offer-campaign.validation.js +3 -2
  34. package/dist/lib/modules/limited-time-offer/campaign/limited-time-offer-campaign.validation.js.map +1 -1
  35. package/dist/lib/modules/limited-time-offer/campaign/services/limited-time-offer-campaign.service.d.ts +3 -9
  36. package/dist/lib/modules/limited-time-offer/campaign/services/limited-time-offer-campaign.service.d.ts.map +1 -1
  37. package/dist/lib/modules/limited-time-offer/campaign/services/limited-time-offer-campaign.service.js +4 -7
  38. package/dist/lib/modules/limited-time-offer/campaign/services/limited-time-offer-campaign.service.js.map +1 -1
  39. package/dist/lib/modules/limited-time-offer/config/limited-time-offer-config.service.d.ts +1 -0
  40. package/dist/lib/modules/limited-time-offer/config/limited-time-offer-config.service.d.ts.map +1 -1
  41. package/dist/lib/modules/limited-time-offer/config/limited-time-offer-config.service.js +15 -0
  42. package/dist/lib/modules/limited-time-offer/config/limited-time-offer-config.service.js.map +1 -1
  43. package/dist/lib/modules/limited-time-offer/limited-time-offer.router.d.ts +88 -42
  44. package/dist/lib/modules/limited-time-offer/limited-time-offer.router.d.ts.map +1 -1
  45. package/dist/lib/modules/limited-time-offer/limited-time-offer.router.js +23 -0
  46. package/dist/lib/modules/limited-time-offer/limited-time-offer.router.js.map +1 -1
  47. package/dist/lib/modules/limited-time-offer/limited-time-offer.service.d.ts +19 -0
  48. package/dist/lib/modules/limited-time-offer/limited-time-offer.service.d.ts.map +1 -0
  49. package/dist/lib/modules/limited-time-offer/limited-time-offer.service.js +84 -0
  50. package/dist/lib/modules/limited-time-offer/limited-time-offer.service.js.map +1 -0
  51. package/dist/lib/modules/limited-time-offer/notification/limited-time-offer-notification.builder.d.ts +13 -0
  52. package/dist/lib/modules/limited-time-offer/notification/limited-time-offer-notification.builder.d.ts.map +1 -0
  53. package/dist/lib/modules/limited-time-offer/notification/limited-time-offer-notification.builder.js +22 -0
  54. package/dist/lib/modules/limited-time-offer/notification/limited-time-offer-notification.builder.js.map +1 -0
  55. package/dist/lib/modules/limited-time-offer/notification/limited-time-offer-notification.constants.d.ts +20 -0
  56. package/dist/lib/modules/limited-time-offer/notification/limited-time-offer-notification.constants.d.ts.map +1 -0
  57. package/dist/lib/modules/limited-time-offer/notification/limited-time-offer-notification.constants.js +26 -0
  58. package/dist/lib/modules/limited-time-offer/notification/limited-time-offer-notification.constants.js.map +1 -0
  59. package/dist/lib/modules/limited-time-offer/notification/limited-time-offer-notification.service.d.ts +8 -0
  60. package/dist/lib/modules/limited-time-offer/notification/limited-time-offer-notification.service.d.ts.map +1 -0
  61. package/dist/lib/modules/{tournament/notification/notification.scheduler.service.js → limited-time-offer/notification/limited-time-offer-notification.service.js} +15 -28
  62. package/dist/lib/modules/limited-time-offer/notification/limited-time-offer-notification.service.js.map +1 -0
  63. package/dist/lib/modules/limited-time-offer/notification/limited-time-offer-notification.type.d.ts +5 -0
  64. package/dist/lib/modules/limited-time-offer/notification/limited-time-offer-notification.type.d.ts.map +1 -0
  65. package/dist/lib/modules/limited-time-offer/notification/limited-time-offer-notification.type.js +3 -0
  66. package/dist/lib/modules/limited-time-offer/notification/limited-time-offer-notification.type.js.map +1 -0
  67. package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.builder.js +1 -1
  68. package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.builder.js.map +1 -1
  69. package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.repository.d.ts +13 -0
  70. package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.repository.d.ts.map +1 -1
  71. package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.repository.js +75 -0
  72. package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.repository.js.map +1 -1
  73. package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.router.d.ts +6 -2
  74. package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.router.d.ts.map +1 -1
  75. package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.service.d.ts +1 -0
  76. package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.service.d.ts.map +1 -0
  77. package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.service.js +2 -0
  78. package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.service.js.map +1 -0
  79. package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.validation.d.ts +6 -1
  80. package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.validation.d.ts.map +1 -1
  81. package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.validation.js +3 -2
  82. package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.validation.js.map +1 -1
  83. package/dist/lib/modules/limited-time-offer/participant/services/limited-time-offer-participant.service.d.ts +12 -2
  84. package/dist/lib/modules/limited-time-offer/participant/services/limited-time-offer-participant.service.d.ts.map +1 -1
  85. package/dist/lib/modules/limited-time-offer/participant/services/limited-time-offer-participant.service.js +80 -27
  86. package/dist/lib/modules/limited-time-offer/participant/services/limited-time-offer-participant.service.js.map +1 -1
  87. package/dist/lib/modules/marketing/services/marketing.service.d.ts +1 -0
  88. package/dist/lib/modules/marketing/services/marketing.service.d.ts.map +1 -1
  89. package/dist/lib/modules/marketing/services/marketing.service.js +9 -0
  90. package/dist/lib/modules/marketing/services/marketing.service.js.map +1 -1
  91. package/dist/lib/modules/marketing/validations/product-marketing.validation.d.ts +2 -2
  92. package/dist/lib/modules/punch-marketing-history/routers/punch-marketing-history.router.d.ts +1 -1
  93. package/dist/lib/modules/punch-marketing-history/validations/punch-marketing-history.validation.d.ts +2 -2
  94. package/dist/lib/modules/tournament/config/config.builder.d.ts.map +1 -1
  95. package/dist/lib/modules/tournament/config/config.builder.js +4 -0
  96. package/dist/lib/modules/tournament/config/config.builder.js.map +1 -1
  97. package/dist/lib/modules/tournament/config/config.repository.d.ts +8 -2
  98. package/dist/lib/modules/tournament/config/config.repository.d.ts.map +1 -1
  99. package/dist/lib/modules/tournament/config/config.repository.js +30 -1
  100. package/dist/lib/modules/tournament/config/config.repository.js.map +1 -1
  101. package/dist/lib/modules/tournament/config/config.router.d.ts +92 -2
  102. package/dist/lib/modules/tournament/config/config.router.d.ts.map +1 -1
  103. package/dist/lib/modules/tournament/config/config.types.d.ts +15 -0
  104. package/dist/lib/modules/tournament/config/config.types.d.ts.map +1 -0
  105. package/dist/lib/modules/tournament/config/config.types.js +3 -0
  106. package/dist/lib/modules/tournament/config/config.types.js.map +1 -0
  107. package/dist/lib/modules/tournament/config/config.validation.d.ts +395 -15
  108. package/dist/lib/modules/tournament/config/config.validation.d.ts.map +1 -1
  109. package/dist/lib/modules/tournament/config/config.validation.js +17 -2
  110. package/dist/lib/modules/tournament/config/config.validation.js.map +1 -1
  111. package/dist/lib/modules/tournament/integration/integration.factory.d.ts +4 -0
  112. package/dist/lib/modules/tournament/integration/integration.factory.d.ts.map +1 -0
  113. package/dist/lib/modules/tournament/integration/integration.factory.js +18 -0
  114. package/dist/lib/modules/tournament/integration/integration.factory.js.map +1 -0
  115. package/dist/lib/modules/tournament/integration/interfaces/ITournamentService.d.ts +36 -0
  116. package/dist/lib/modules/tournament/integration/interfaces/ITournamentService.d.ts.map +1 -0
  117. package/dist/lib/modules/tournament/integration/interfaces/ITournamentService.js +3 -0
  118. package/dist/lib/modules/tournament/integration/interfaces/ITournamentService.js.map +1 -0
  119. package/dist/lib/modules/tournament/integration/providers/api-football/api-football.provider.d.ts +14 -0
  120. package/dist/lib/modules/tournament/integration/providers/api-football/api-football.provider.d.ts.map +1 -0
  121. package/dist/lib/modules/tournament/integration/providers/api-football/api-football.provider.js +92 -0
  122. package/dist/lib/modules/tournament/integration/providers/api-football/api-football.provider.js.map +1 -0
  123. package/dist/lib/modules/tournament/integration/providers/api-football/api-football.types.d.ts +51 -0
  124. package/dist/lib/modules/tournament/integration/providers/api-football/api-football.types.d.ts.map +1 -0
  125. package/dist/lib/modules/tournament/integration/providers/api-football/api-football.types.js +3 -0
  126. package/dist/lib/modules/tournament/integration/providers/api-football/api-football.types.js.map +1 -0
  127. package/dist/lib/modules/tournament/integration/providers/api-football/index.d.ts +3 -0
  128. package/dist/lib/modules/tournament/integration/providers/api-football/index.d.ts.map +1 -0
  129. package/dist/lib/modules/tournament/integration/providers/api-football/index.js +19 -0
  130. package/dist/lib/modules/tournament/integration/providers/api-football/index.js.map +1 -0
  131. package/dist/lib/modules/tournament/integration/providers/index.d.ts +3 -0
  132. package/dist/lib/modules/tournament/integration/providers/index.d.ts.map +1 -0
  133. package/dist/lib/modules/tournament/integration/providers/index.js +19 -0
  134. package/dist/lib/modules/tournament/integration/providers/index.js.map +1 -0
  135. package/dist/lib/modules/tournament/integration/providers/mock.provider.d.ts +7 -0
  136. package/dist/lib/modules/tournament/integration/providers/mock.provider.d.ts.map +1 -0
  137. package/dist/lib/modules/tournament/integration/providers/mock.provider.js +22 -0
  138. package/dist/lib/modules/tournament/integration/providers/mock.provider.js.map +1 -0
  139. package/dist/lib/modules/tournament/integration/tournamentService.d.ts +9 -0
  140. package/dist/lib/modules/tournament/integration/tournamentService.d.ts.map +1 -0
  141. package/dist/lib/modules/tournament/integration/tournamentService.js +20 -0
  142. package/dist/lib/modules/tournament/integration/tournamentService.js.map +1 -0
  143. package/dist/lib/modules/tournament/match/events/evaluate-predictions.consumer.d.ts.map +1 -1
  144. package/dist/lib/modules/tournament/match/events/evaluate-predictions.consumer.js +47 -11
  145. package/dist/lib/modules/tournament/match/events/evaluate-predictions.consumer.js.map +1 -1
  146. package/dist/lib/modules/tournament/match/events/evaluate-predictions.event.d.ts +7 -3
  147. package/dist/lib/modules/tournament/match/events/evaluate-predictions.event.d.ts.map +1 -1
  148. package/dist/lib/modules/tournament/match/events/evaluate-predictions.event.js +1 -1
  149. package/dist/lib/modules/tournament/match/events/evaluate-predictions.event.js.map +1 -1
  150. package/dist/lib/modules/tournament/match/events/match-evaluation.orchestrator.d.ts +14 -0
  151. package/dist/lib/modules/tournament/match/events/match-evaluation.orchestrator.d.ts.map +1 -0
  152. package/dist/lib/modules/tournament/{notification/jobs/notification.worker.js → match/events/match-evaluation.orchestrator.js} +31 -27
  153. package/dist/lib/modules/tournament/match/events/match-evaluation.orchestrator.js.map +1 -0
  154. package/dist/lib/modules/tournament/match/match.builder.d.ts +13 -34
  155. package/dist/lib/modules/tournament/match/match.builder.d.ts.map +1 -1
  156. package/dist/lib/modules/tournament/match/match.builder.js +31 -10
  157. package/dist/lib/modules/tournament/match/match.builder.js.map +1 -1
  158. package/dist/lib/modules/tournament/match/match.repository.d.ts +1 -1
  159. package/dist/lib/modules/tournament/match/match.repository.d.ts.map +1 -1
  160. package/dist/lib/modules/tournament/match/match.repository.js.map +1 -1
  161. package/dist/lib/modules/tournament/match/match.router.d.ts +36 -0
  162. package/dist/lib/modules/tournament/match/match.router.d.ts.map +1 -1
  163. package/dist/lib/modules/tournament/match/match.service.d.ts +3 -0
  164. package/dist/lib/modules/tournament/match/match.service.d.ts.map +1 -1
  165. package/dist/lib/modules/tournament/match/match.service.js +15 -12
  166. package/dist/lib/modules/tournament/match/match.service.js.map +1 -1
  167. package/dist/lib/modules/tournament/match/match.types.d.ts +51 -0
  168. package/dist/lib/modules/tournament/match/match.types.d.ts.map +1 -0
  169. package/dist/lib/modules/tournament/match/match.types.js +3 -0
  170. package/dist/lib/modules/tournament/match/match.types.js.map +1 -0
  171. package/dist/lib/modules/tournament/notification/notification-template.repository.d.ts +2 -1
  172. package/dist/lib/modules/tournament/notification/notification-template.repository.d.ts.map +1 -1
  173. package/dist/lib/modules/tournament/notification/notification-template.repository.js +2 -1
  174. package/dist/lib/modules/tournament/notification/notification-template.repository.js.map +1 -1
  175. package/dist/lib/modules/tournament/notification/notification.builder.d.ts +30 -0
  176. package/dist/lib/modules/tournament/notification/notification.builder.d.ts.map +1 -0
  177. package/dist/lib/modules/tournament/notification/notification.builder.js +35 -0
  178. package/dist/lib/modules/tournament/notification/notification.builder.js.map +1 -0
  179. package/dist/lib/modules/tournament/notification/notification.config.d.ts +10 -9
  180. package/dist/lib/modules/tournament/notification/notification.config.d.ts.map +1 -1
  181. package/dist/lib/modules/tournament/notification/notification.config.js +0 -12
  182. package/dist/lib/modules/tournament/notification/notification.config.js.map +1 -1
  183. package/dist/lib/modules/tournament/notification/notification.service.d.ts +5 -3
  184. package/dist/lib/modules/tournament/notification/notification.service.d.ts.map +1 -1
  185. package/dist/lib/modules/tournament/notification/notification.service.js +23 -15
  186. package/dist/lib/modules/tournament/notification/notification.service.js.map +1 -1
  187. package/dist/lib/modules/tournament/participant/participant.builder.d.ts +12 -0
  188. package/dist/lib/modules/tournament/participant/participant.builder.d.ts.map +1 -0
  189. package/dist/lib/modules/tournament/participant/participant.builder.js +17 -0
  190. package/dist/lib/modules/tournament/participant/participant.builder.js.map +1 -0
  191. package/dist/lib/modules/tournament/participant/participant.repository.d.ts +8 -7
  192. package/dist/lib/modules/tournament/participant/participant.repository.d.ts.map +1 -1
  193. package/dist/lib/modules/tournament/participant/participant.repository.js +12 -2
  194. package/dist/lib/modules/tournament/participant/participant.repository.js.map +1 -1
  195. package/dist/lib/modules/tournament/participant/participant.service.d.ts +1 -0
  196. package/dist/lib/modules/tournament/participant/participant.service.d.ts.map +1 -1
  197. package/dist/lib/modules/tournament/participant/participant.service.js +15 -17
  198. package/dist/lib/modules/tournament/participant/participant.service.js.map +1 -1
  199. package/dist/lib/modules/tournament/prediction/prediction.builder.d.ts +3 -9
  200. package/dist/lib/modules/tournament/prediction/prediction.builder.d.ts.map +1 -1
  201. package/dist/lib/modules/tournament/prediction/prediction.builder.js.map +1 -1
  202. package/dist/lib/modules/tournament/prediction/prediction.repository.d.ts +11 -3
  203. package/dist/lib/modules/tournament/prediction/prediction.repository.d.ts.map +1 -1
  204. package/dist/lib/modules/tournament/prediction/prediction.repository.js +47 -0
  205. package/dist/lib/modules/tournament/prediction/prediction.repository.js.map +1 -1
  206. package/dist/lib/modules/tournament/prediction/prediction.service.d.ts +1 -1
  207. package/dist/lib/modules/tournament/prediction/prediction.service.d.ts.map +1 -1
  208. package/dist/lib/modules/tournament/prediction/prediction.service.js +16 -26
  209. package/dist/lib/modules/tournament/prediction/prediction.service.js.map +1 -1
  210. package/dist/lib/modules/tournament/prediction/prediction.types.d.ts +17 -0
  211. package/dist/lib/modules/tournament/prediction/prediction.types.d.ts.map +1 -0
  212. package/dist/lib/modules/tournament/prediction/prediction.types.js +3 -0
  213. package/dist/lib/modules/tournament/prediction/prediction.types.js.map +1 -0
  214. package/dist/lib/modules/tournament/reward/handlers/coupon-reward.handler.d.ts +8 -5
  215. package/dist/lib/modules/tournament/reward/handlers/coupon-reward.handler.d.ts.map +1 -1
  216. package/dist/lib/modules/tournament/reward/handlers/coupon-reward.handler.js +58 -16
  217. package/dist/lib/modules/tournament/reward/handlers/coupon-reward.handler.js.map +1 -1
  218. package/dist/lib/modules/tournament/reward/reward.builder.d.ts +5 -2
  219. package/dist/lib/modules/tournament/reward/reward.builder.d.ts.map +1 -1
  220. package/dist/lib/modules/tournament/reward/reward.builder.js +44 -28
  221. package/dist/lib/modules/tournament/reward/reward.builder.js.map +1 -1
  222. package/dist/lib/modules/tournament/reward/reward.factory.d.ts +1 -1
  223. package/dist/lib/modules/tournament/reward/reward.factory.d.ts.map +1 -1
  224. package/dist/lib/modules/tournament/reward/reward.factory.js.map +1 -1
  225. package/dist/lib/modules/tournament/reward/reward.interface.d.ts +2 -2
  226. package/dist/lib/modules/tournament/reward/reward.interface.d.ts.map +1 -1
  227. package/dist/lib/modules/tournament/reward/reward.interface.js.map +1 -1
  228. package/dist/lib/modules/tournament/reward/reward.service.d.ts +1 -1
  229. package/dist/lib/modules/tournament/reward/reward.service.d.ts.map +1 -1
  230. package/dist/lib/modules/tournament/reward/reward.service.js +1 -1
  231. package/dist/lib/modules/tournament/reward/reward.service.js.map +1 -1
  232. package/dist/lib/modules/tournament/reward/reward.types.d.ts +35 -2
  233. package/dist/lib/modules/tournament/reward/reward.types.d.ts.map +1 -1
  234. package/dist/lib/modules/tournament/reward/reward.types.js.map +1 -1
  235. package/dist/lib/modules/tournament/schedule/schedule.router.d.ts.map +1 -1
  236. package/dist/lib/modules/tournament/schedule/schedule.router.js +1 -3
  237. package/dist/lib/modules/tournament/schedule/schedule.router.js.map +1 -1
  238. package/dist/lib/modules/tournament/schedule/schedule.service.d.ts +3 -0
  239. package/dist/lib/modules/tournament/schedule/schedule.service.d.ts.map +1 -1
  240. package/dist/lib/modules/tournament/schedule/schedule.service.js +30 -1
  241. package/dist/lib/modules/tournament/schedule/schedule.service.js.map +1 -1
  242. package/dist/lib/modules/tournament/score/score.repository.d.ts +13 -0
  243. package/dist/lib/modules/tournament/score/score.repository.d.ts.map +1 -1
  244. package/dist/lib/modules/tournament/score/score.repository.js +20 -0
  245. package/dist/lib/modules/tournament/score/score.repository.js.map +1 -1
  246. package/dist/lib/modules/tournament/score/score.service.d.ts +3 -0
  247. package/dist/lib/modules/tournament/score/score.service.d.ts.map +1 -1
  248. package/dist/lib/modules/tournament/score/score.service.js +3 -0
  249. package/dist/lib/modules/tournament/score/score.service.js.map +1 -1
  250. package/dist/lib/modules/tournament/statistics/statistics.builder.d.ts +5 -0
  251. package/dist/lib/modules/tournament/statistics/statistics.builder.d.ts.map +1 -1
  252. package/dist/lib/modules/tournament/statistics/statistics.builder.js +47 -28
  253. package/dist/lib/modules/tournament/statistics/statistics.builder.js.map +1 -1
  254. package/dist/lib/modules/tournament/statistics/statistics.router.d.ts +4 -2
  255. package/dist/lib/modules/tournament/statistics/statistics.router.d.ts.map +1 -1
  256. package/dist/lib/modules/tournament/statistics/statistics.service.js +4 -4
  257. package/dist/lib/modules/tournament/statistics/statistics.service.js.map +1 -1
  258. package/dist/lib/modules/tournament/statistics/statistics.validation.d.ts +32 -14
  259. package/dist/lib/modules/tournament/statistics/statistics.validation.d.ts.map +1 -1
  260. package/dist/lib/modules/tournament/statistics/statistics.validation.js +2 -1
  261. package/dist/lib/modules/tournament/statistics/statistics.validation.js.map +1 -1
  262. package/dist/lib/modules/tournament/sync/sync.repository.d.ts +11 -0
  263. package/dist/lib/modules/tournament/sync/sync.repository.d.ts.map +1 -0
  264. package/dist/lib/modules/tournament/sync/sync.repository.js +67 -0
  265. package/dist/lib/modules/tournament/sync/sync.repository.js.map +1 -0
  266. package/dist/lib/modules/tournament/sync/sync.router.d.ts +27 -0
  267. package/dist/lib/modules/tournament/sync/sync.router.d.ts.map +1 -0
  268. package/dist/lib/modules/tournament/sync/sync.router.js +15 -0
  269. package/dist/lib/modules/tournament/sync/sync.router.js.map +1 -0
  270. package/dist/lib/modules/tournament/sync/sync.service.d.ts +9 -0
  271. package/dist/lib/modules/tournament/sync/sync.service.d.ts.map +1 -0
  272. package/dist/lib/modules/tournament/sync/sync.service.js +117 -0
  273. package/dist/lib/modules/tournament/sync/sync.service.js.map +1 -0
  274. package/dist/lib/modules/tournament/team/team.builder.d.ts +4 -0
  275. package/dist/lib/modules/tournament/team/team.builder.d.ts.map +1 -1
  276. package/dist/lib/modules/tournament/team/team.builder.js +6 -0
  277. package/dist/lib/modules/tournament/team/team.builder.js.map +1 -1
  278. package/dist/lib/modules/tournament/team/team.repository.d.ts +3 -0
  279. package/dist/lib/modules/tournament/team/team.repository.d.ts.map +1 -1
  280. package/dist/lib/modules/tournament/team/team.repository.js +6 -0
  281. package/dist/lib/modules/tournament/team/team.repository.js.map +1 -1
  282. package/dist/lib/modules/tournament/team/team.router.d.ts +22 -4
  283. package/dist/lib/modules/tournament/team/team.router.d.ts.map +1 -1
  284. package/dist/lib/modules/tournament/team/team.router.js +1 -1
  285. package/dist/lib/modules/tournament/team/team.router.js.map +1 -1
  286. package/dist/lib/modules/tournament/team/team.service.d.ts +2 -1
  287. package/dist/lib/modules/tournament/team/team.service.d.ts.map +1 -1
  288. package/dist/lib/modules/tournament/team/team.service.js +26 -23
  289. package/dist/lib/modules/tournament/team/team.service.js.map +1 -1
  290. package/dist/lib/modules/tournament/team/team.validation.d.ts +23 -24
  291. package/dist/lib/modules/tournament/team/team.validation.d.ts.map +1 -1
  292. package/dist/lib/modules/tournament/team/team.validation.js +3 -4
  293. package/dist/lib/modules/tournament/team/team.validation.js.map +1 -1
  294. package/dist/lib/modules/tournament/tournament.builder.d.ts +11 -0
  295. package/dist/lib/modules/tournament/tournament.builder.d.ts.map +1 -0
  296. package/dist/lib/modules/tournament/tournament.builder.js +34 -0
  297. package/dist/lib/modules/tournament/tournament.builder.js.map +1 -0
  298. package/dist/lib/modules/tournament/tournament.router.d.ts +210 -10
  299. package/dist/lib/modules/tournament/tournament.router.d.ts.map +1 -1
  300. package/dist/lib/modules/tournament/tournament.router.js +2 -0
  301. package/dist/lib/modules/tournament/tournament.router.js.map +1 -1
  302. package/dist/lib/modules/tournament/tournament.service.d.ts.map +1 -1
  303. package/dist/lib/modules/tournament/tournament.service.js +3 -10
  304. package/dist/lib/modules/tournament/tournament.service.js.map +1 -1
  305. package/dist/lib/modules/tournament/tournament.utils.d.ts +4 -0
  306. package/dist/lib/modules/tournament/tournament.utils.d.ts.map +1 -1
  307. package/dist/lib/modules/tournament/tournament.utils.js +8 -1
  308. package/dist/lib/modules/tournament/tournament.utils.js.map +1 -1
  309. package/dist/lib/modules/tournament/tournament.validation.d.ts +205 -1
  310. package/dist/lib/modules/tournament/tournament.validation.d.ts.map +1 -1
  311. package/dist/lib/modules/tournament/tournament.validation.js +23 -2
  312. package/dist/lib/modules/tournament/tournament.validation.js.map +1 -1
  313. package/dist/types/index.d.ts +946 -53
  314. package/dist/types/index.d.ts.map +1 -1
  315. package/dist/types/modules/coupon/routers/coupon.router.d.ts +647 -0
  316. package/dist/types/modules/coupon/routers/coupon.router.d.ts.map +1 -1
  317. package/dist/types/modules/coupon/services/coupon.service.d.ts +8 -1
  318. package/dist/types/modules/coupon/services/coupon.service.d.ts.map +1 -1
  319. package/dist/types/modules/coupon/services/patterns/repository/CouponMetricsRepository.d.ts.map +1 -1
  320. package/dist/types/modules/coupon/validations/coupon.validation.d.ts +26 -0
  321. package/dist/types/modules/coupon/validations/coupon.validation.d.ts.map +1 -1
  322. package/dist/types/modules/limited-time-offer/campaign/campaign.router.d.ts +42 -40
  323. package/dist/types/modules/limited-time-offer/campaign/campaign.router.d.ts.map +1 -1
  324. package/dist/types/modules/limited-time-offer/campaign/jobs/limited-time-offer-campaign.worker.d.ts +0 -1
  325. package/dist/types/modules/limited-time-offer/campaign/jobs/limited-time-offer-campaign.worker.d.ts.map +1 -1
  326. package/dist/types/modules/limited-time-offer/campaign/limited-time-offer-campaign.builder.d.ts +1 -0
  327. package/dist/types/modules/limited-time-offer/campaign/limited-time-offer-campaign.builder.d.ts.map +1 -1
  328. package/dist/types/modules/limited-time-offer/campaign/limited-time-offer-campaign.validation.d.ts +53 -40
  329. package/dist/types/modules/limited-time-offer/campaign/limited-time-offer-campaign.validation.d.ts.map +1 -1
  330. package/dist/types/modules/limited-time-offer/campaign/services/limited-time-offer-campaign.service.d.ts +3 -9
  331. package/dist/types/modules/limited-time-offer/campaign/services/limited-time-offer-campaign.service.d.ts.map +1 -1
  332. package/dist/types/modules/limited-time-offer/config/limited-time-offer-config.service.d.ts +1 -0
  333. package/dist/types/modules/limited-time-offer/config/limited-time-offer-config.service.d.ts.map +1 -1
  334. package/dist/types/modules/limited-time-offer/limited-time-offer.router.d.ts +88 -42
  335. package/dist/types/modules/limited-time-offer/limited-time-offer.router.d.ts.map +1 -1
  336. package/dist/types/modules/limited-time-offer/limited-time-offer.service.d.ts +24 -0
  337. package/dist/types/modules/limited-time-offer/limited-time-offer.service.d.ts.map +1 -0
  338. package/dist/types/modules/limited-time-offer/notification/limited-time-offer-notification.builder.d.ts +13 -0
  339. package/dist/types/modules/limited-time-offer/notification/limited-time-offer-notification.builder.d.ts.map +1 -0
  340. package/dist/types/modules/limited-time-offer/notification/limited-time-offer-notification.constants.d.ts +20 -0
  341. package/dist/types/modules/limited-time-offer/notification/limited-time-offer-notification.constants.d.ts.map +1 -0
  342. package/dist/types/modules/limited-time-offer/notification/limited-time-offer-notification.service.d.ts +8 -0
  343. package/dist/types/modules/limited-time-offer/notification/limited-time-offer-notification.service.d.ts.map +1 -0
  344. package/dist/types/modules/limited-time-offer/notification/limited-time-offer-notification.type.d.ts +5 -0
  345. package/dist/types/modules/limited-time-offer/notification/limited-time-offer-notification.type.d.ts.map +1 -0
  346. package/dist/types/modules/limited-time-offer/participant/limited-time-offer-participant.repository.d.ts +13 -0
  347. package/dist/types/modules/limited-time-offer/participant/limited-time-offer-participant.repository.d.ts.map +1 -1
  348. package/dist/types/modules/limited-time-offer/participant/limited-time-offer-participant.router.d.ts +6 -2
  349. package/dist/types/modules/limited-time-offer/participant/limited-time-offer-participant.router.d.ts.map +1 -1
  350. package/dist/types/modules/limited-time-offer/participant/limited-time-offer-participant.validation.d.ts +6 -1
  351. package/dist/types/modules/limited-time-offer/participant/limited-time-offer-participant.validation.d.ts.map +1 -1
  352. package/dist/types/modules/limited-time-offer/participant/services/limited-time-offer-participant.service.d.ts +22 -2
  353. package/dist/types/modules/limited-time-offer/participant/services/limited-time-offer-participant.service.d.ts.map +1 -1
  354. package/dist/types/modules/marketing/services/marketing.service.d.ts +1 -0
  355. package/dist/types/modules/marketing/services/marketing.service.d.ts.map +1 -1
  356. package/dist/types/modules/marketing/validations/product-marketing.validation.d.ts +2 -2
  357. package/dist/types/modules/punch-marketing-history/routers/punch-marketing-history.router.d.ts +1 -1
  358. package/dist/types/modules/punch-marketing-history/validations/punch-marketing-history.validation.d.ts +2 -2
  359. package/dist/types/modules/tournament/config/config.builder.d.ts.map +1 -1
  360. package/dist/types/modules/tournament/config/config.repository.d.ts +8 -2
  361. package/dist/types/modules/tournament/config/config.repository.d.ts.map +1 -1
  362. package/dist/types/modules/tournament/config/config.router.d.ts +92 -2
  363. package/dist/types/modules/tournament/config/config.router.d.ts.map +1 -1
  364. package/dist/types/modules/tournament/config/config.types.d.ts +15 -0
  365. package/dist/types/modules/tournament/config/config.types.d.ts.map +1 -0
  366. package/dist/types/modules/tournament/config/config.validation.d.ts +395 -15
  367. package/dist/types/modules/tournament/config/config.validation.d.ts.map +1 -1
  368. package/dist/types/modules/tournament/integration/integration.factory.d.ts +4 -0
  369. package/dist/types/modules/tournament/integration/integration.factory.d.ts.map +1 -0
  370. package/dist/types/modules/tournament/integration/interfaces/ITournamentService.d.ts +36 -0
  371. package/dist/types/modules/tournament/integration/interfaces/ITournamentService.d.ts.map +1 -0
  372. package/dist/types/modules/tournament/integration/providers/api-football/api-football.provider.d.ts +14 -0
  373. package/dist/types/modules/tournament/integration/providers/api-football/api-football.provider.d.ts.map +1 -0
  374. package/dist/types/modules/tournament/integration/providers/api-football/api-football.types.d.ts +51 -0
  375. package/dist/types/modules/tournament/integration/providers/api-football/api-football.types.d.ts.map +1 -0
  376. package/dist/types/modules/tournament/integration/providers/api-football/index.d.ts +3 -0
  377. package/dist/types/modules/tournament/integration/providers/api-football/index.d.ts.map +1 -0
  378. package/dist/types/modules/tournament/integration/providers/index.d.ts +3 -0
  379. package/dist/types/modules/tournament/integration/providers/index.d.ts.map +1 -0
  380. package/dist/types/modules/tournament/integration/providers/mock.provider.d.ts +7 -0
  381. package/dist/types/modules/tournament/integration/providers/mock.provider.d.ts.map +1 -0
  382. package/dist/types/modules/tournament/integration/tournamentService.d.ts +9 -0
  383. package/dist/types/modules/tournament/integration/tournamentService.d.ts.map +1 -0
  384. package/dist/types/modules/tournament/match/events/evaluate-predictions.consumer.d.ts.map +1 -1
  385. package/dist/types/modules/tournament/match/events/evaluate-predictions.event.d.ts +7 -3
  386. package/dist/types/modules/tournament/match/events/evaluate-predictions.event.d.ts.map +1 -1
  387. package/dist/types/modules/tournament/match/events/match-evaluation.orchestrator.d.ts +14 -0
  388. package/dist/types/modules/tournament/match/events/match-evaluation.orchestrator.d.ts.map +1 -0
  389. package/dist/types/modules/tournament/match/match.builder.d.ts +13 -34
  390. package/dist/types/modules/tournament/match/match.builder.d.ts.map +1 -1
  391. package/dist/types/modules/tournament/match/match.repository.d.ts +1 -1
  392. package/dist/types/modules/tournament/match/match.repository.d.ts.map +1 -1
  393. package/dist/types/modules/tournament/match/match.router.d.ts +36 -0
  394. package/dist/types/modules/tournament/match/match.router.d.ts.map +1 -1
  395. package/dist/types/modules/tournament/match/match.service.d.ts +3 -0
  396. package/dist/types/modules/tournament/match/match.service.d.ts.map +1 -1
  397. package/dist/types/modules/tournament/match/match.types.d.ts +51 -0
  398. package/dist/types/modules/tournament/match/match.types.d.ts.map +1 -0
  399. package/dist/types/modules/tournament/notification/notification-template.repository.d.ts +2 -1
  400. package/dist/types/modules/tournament/notification/notification-template.repository.d.ts.map +1 -1
  401. package/dist/types/modules/tournament/notification/notification.builder.d.ts +30 -0
  402. package/dist/types/modules/tournament/notification/notification.builder.d.ts.map +1 -0
  403. package/dist/types/modules/tournament/notification/notification.config.d.ts +10 -9
  404. package/dist/types/modules/tournament/notification/notification.config.d.ts.map +1 -1
  405. package/dist/types/modules/tournament/notification/notification.service.d.ts +5 -3
  406. package/dist/types/modules/tournament/notification/notification.service.d.ts.map +1 -1
  407. package/dist/types/modules/tournament/participant/participant.builder.d.ts +12 -0
  408. package/dist/types/modules/tournament/participant/participant.builder.d.ts.map +1 -0
  409. package/dist/types/modules/tournament/participant/participant.repository.d.ts +8 -7
  410. package/dist/types/modules/tournament/participant/participant.repository.d.ts.map +1 -1
  411. package/dist/types/modules/tournament/participant/participant.service.d.ts +1 -0
  412. package/dist/types/modules/tournament/participant/participant.service.d.ts.map +1 -1
  413. package/dist/types/modules/tournament/prediction/prediction.builder.d.ts +3 -9
  414. package/dist/types/modules/tournament/prediction/prediction.builder.d.ts.map +1 -1
  415. package/dist/types/modules/tournament/prediction/prediction.repository.d.ts +11 -3
  416. package/dist/types/modules/tournament/prediction/prediction.repository.d.ts.map +1 -1
  417. package/dist/types/modules/tournament/prediction/prediction.service.d.ts +1 -1
  418. package/dist/types/modules/tournament/prediction/prediction.service.d.ts.map +1 -1
  419. package/dist/types/modules/tournament/prediction/prediction.types.d.ts +17 -0
  420. package/dist/types/modules/tournament/prediction/prediction.types.d.ts.map +1 -0
  421. package/dist/types/modules/tournament/reward/handlers/coupon-reward.handler.d.ts +8 -5
  422. package/dist/types/modules/tournament/reward/handlers/coupon-reward.handler.d.ts.map +1 -1
  423. package/dist/types/modules/tournament/reward/reward.builder.d.ts +5 -2
  424. package/dist/types/modules/tournament/reward/reward.builder.d.ts.map +1 -1
  425. package/dist/types/modules/tournament/reward/reward.factory.d.ts +1 -1
  426. package/dist/types/modules/tournament/reward/reward.factory.d.ts.map +1 -1
  427. package/dist/types/modules/tournament/reward/reward.interface.d.ts +2 -2
  428. package/dist/types/modules/tournament/reward/reward.interface.d.ts.map +1 -1
  429. package/dist/types/modules/tournament/reward/reward.service.d.ts +1 -1
  430. package/dist/types/modules/tournament/reward/reward.service.d.ts.map +1 -1
  431. package/dist/types/modules/tournament/reward/reward.types.d.ts +35 -2
  432. package/dist/types/modules/tournament/reward/reward.types.d.ts.map +1 -1
  433. package/dist/types/modules/tournament/schedule/schedule.router.d.ts.map +1 -1
  434. package/dist/types/modules/tournament/schedule/schedule.service.d.ts +3 -0
  435. package/dist/types/modules/tournament/schedule/schedule.service.d.ts.map +1 -1
  436. package/dist/types/modules/tournament/score/score.repository.d.ts +13 -0
  437. package/dist/types/modules/tournament/score/score.repository.d.ts.map +1 -1
  438. package/dist/types/modules/tournament/score/score.service.d.ts +3 -0
  439. package/dist/types/modules/tournament/score/score.service.d.ts.map +1 -1
  440. package/dist/types/modules/tournament/statistics/statistics.builder.d.ts +5 -0
  441. package/dist/types/modules/tournament/statistics/statistics.builder.d.ts.map +1 -1
  442. package/dist/types/modules/tournament/statistics/statistics.router.d.ts +4 -2
  443. package/dist/types/modules/tournament/statistics/statistics.router.d.ts.map +1 -1
  444. package/dist/types/modules/tournament/statistics/statistics.validation.d.ts +32 -14
  445. package/dist/types/modules/tournament/statistics/statistics.validation.d.ts.map +1 -1
  446. package/dist/types/modules/tournament/sync/sync.repository.d.ts +11 -0
  447. package/dist/types/modules/tournament/sync/sync.repository.d.ts.map +1 -0
  448. package/dist/types/modules/tournament/sync/sync.router.d.ts +27 -0
  449. package/dist/types/modules/tournament/sync/sync.router.d.ts.map +1 -0
  450. package/dist/types/modules/tournament/sync/sync.service.d.ts +9 -0
  451. package/dist/types/modules/tournament/sync/sync.service.d.ts.map +1 -0
  452. package/dist/types/modules/tournament/team/team.builder.d.ts +4 -0
  453. package/dist/types/modules/tournament/team/team.builder.d.ts.map +1 -1
  454. package/dist/types/modules/tournament/team/team.repository.d.ts +3 -0
  455. package/dist/types/modules/tournament/team/team.repository.d.ts.map +1 -1
  456. package/dist/types/modules/tournament/team/team.router.d.ts +22 -4
  457. package/dist/types/modules/tournament/team/team.router.d.ts.map +1 -1
  458. package/dist/types/modules/tournament/team/team.service.d.ts +2 -1
  459. package/dist/types/modules/tournament/team/team.service.d.ts.map +1 -1
  460. package/dist/types/modules/tournament/team/team.validation.d.ts +23 -24
  461. package/dist/types/modules/tournament/team/team.validation.d.ts.map +1 -1
  462. package/dist/types/modules/tournament/tournament.builder.d.ts +11 -0
  463. package/dist/types/modules/tournament/tournament.builder.d.ts.map +1 -0
  464. package/dist/types/modules/tournament/tournament.router.d.ts +210 -10
  465. package/dist/types/modules/tournament/tournament.router.d.ts.map +1 -1
  466. package/dist/types/modules/tournament/tournament.service.d.ts.map +1 -1
  467. package/dist/types/modules/tournament/tournament.utils.d.ts +4 -0
  468. package/dist/types/modules/tournament/tournament.utils.d.ts.map +1 -1
  469. package/dist/types/modules/tournament/tournament.validation.d.ts +205 -1
  470. package/dist/types/modules/tournament/tournament.validation.d.ts.map +1 -1
  471. package/package.json +2 -2
  472. package/dist/lib/modules/tournament/match/events/match-ended.consumer.d.ts +0 -2
  473. package/dist/lib/modules/tournament/match/events/match-ended.consumer.d.ts.map +0 -1
  474. package/dist/lib/modules/tournament/match/events/match-ended.consumer.js +0 -15
  475. package/dist/lib/modules/tournament/match/events/match-ended.consumer.js.map +0 -1
  476. package/dist/lib/modules/tournament/match/events/match-ended.event.d.ts +0 -14
  477. package/dist/lib/modules/tournament/match/events/match-ended.event.d.ts.map +0 -1
  478. package/dist/lib/modules/tournament/match/events/match-ended.event.js +0 -12
  479. package/dist/lib/modules/tournament/match/events/match-ended.event.js.map +0 -1
  480. package/dist/lib/modules/tournament/notification/jobs/notification.producer.d.ts +0 -10
  481. package/dist/lib/modules/tournament/notification/jobs/notification.producer.d.ts.map +0 -1
  482. package/dist/lib/modules/tournament/notification/jobs/notification.producer.js +0 -23
  483. package/dist/lib/modules/tournament/notification/jobs/notification.producer.js.map +0 -1
  484. package/dist/lib/modules/tournament/notification/jobs/notification.worker.d.ts +0 -9
  485. package/dist/lib/modules/tournament/notification/jobs/notification.worker.d.ts.map +0 -1
  486. package/dist/lib/modules/tournament/notification/jobs/notification.worker.js.map +0 -1
  487. package/dist/lib/modules/tournament/notification/notification.schedule.config.d.ts +0 -10
  488. package/dist/lib/modules/tournament/notification/notification.schedule.config.d.ts.map +0 -1
  489. package/dist/lib/modules/tournament/notification/notification.schedule.config.js +0 -15
  490. package/dist/lib/modules/tournament/notification/notification.schedule.config.js.map +0 -1
  491. package/dist/lib/modules/tournament/notification/notification.scheduler.service.d.ts +0 -10
  492. package/dist/lib/modules/tournament/notification/notification.scheduler.service.d.ts.map +0 -1
  493. package/dist/lib/modules/tournament/notification/notification.scheduler.service.js.map +0 -1
  494. package/dist/types/events/event-initializations.d.ts +0 -2
  495. package/dist/types/events/event-initializations.d.ts.map +0 -1
  496. package/dist/types/modules/tournament/config/tournament-config.validation.d.ts +0 -201
  497. package/dist/types/modules/tournament/config/tournament-config.validation.d.ts.map +0 -1
  498. package/dist/types/modules/tournament/match/events/match-ended.consumer.d.ts +0 -2
  499. package/dist/types/modules/tournament/match/events/match-ended.consumer.d.ts.map +0 -1
  500. package/dist/types/modules/tournament/match/events/match-ended.event.d.ts +0 -14
  501. package/dist/types/modules/tournament/match/events/match-ended.event.d.ts.map +0 -1
  502. package/dist/types/modules/tournament/notification/jobs/notification.producer.d.ts +0 -10
  503. package/dist/types/modules/tournament/notification/jobs/notification.producer.d.ts.map +0 -1
  504. package/dist/types/modules/tournament/notification/jobs/notification.worker.d.ts +0 -9
  505. package/dist/types/modules/tournament/notification/jobs/notification.worker.d.ts.map +0 -1
  506. package/dist/types/modules/tournament/notification/notification.schedule.config.d.ts +0 -10
  507. package/dist/types/modules/tournament/notification/notification.schedule.config.d.ts.map +0 -1
  508. package/dist/types/modules/tournament/notification/notification.scheduler.service.d.ts +0 -10
  509. package/dist/types/modules/tournament/notification/notification.scheduler.service.d.ts.map +0 -1
@@ -1,6 +1,6 @@
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';
3
+ import { Status, TournamentNotificationTag, TournamentRewardType, TournamentScheduledNotificationTarget } from '@lyxa.ai/core/dist/utilities/enum';
4
4
  export declare const CreateTournamentConfigSchema: z.ZodEffects<z.ZodObject<{
5
5
  name: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
6
6
  tag: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
@@ -11,17 +11,17 @@ export declare const CreateTournamentConfigSchema: z.ZodEffects<z.ZodObject<{
11
11
  type: z.ZodLiteral<TournamentRewardType.COUPON>;
12
12
  couponNamePrefix: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
13
13
  percentage: z.ZodNumber;
14
- maxDiscountPerOrder: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
14
+ maxDiscountPerOrder: z.ZodNumber;
15
15
  }, "strip", z.ZodTypeAny, {
16
16
  type: TournamentRewardType.COUPON;
17
+ maxDiscountPerOrder: number;
17
18
  couponNamePrefix: string;
18
19
  percentage: number;
19
- maxDiscountPerOrder?: number | null | undefined;
20
20
  }, {
21
21
  type: TournamentRewardType.COUPON;
22
+ maxDiscountPerOrder: number;
22
23
  couponNamePrefix: string;
23
24
  percentage: number;
24
- maxDiscountPerOrder?: number | null | undefined;
25
25
  }>, z.ZodObject<{
26
26
  type: z.ZodLiteral<TournamentRewardType.FREE_DELIVERY>;
27
27
  }, "strip", z.ZodTypeAny, {
@@ -29,6 +29,29 @@ export declare const CreateTournamentConfigSchema: z.ZodEffects<z.ZodObject<{
29
29
  }, {
30
30
  type: TournamentRewardType.FREE_DELIVERY;
31
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">>;
32
55
  }, "strip", z.ZodTypeAny, {
33
56
  name: string;
34
57
  startDate: Date;
@@ -39,10 +62,19 @@ export declare const CreateTournamentConfigSchema: z.ZodEffects<z.ZodObject<{
39
62
  type: TournamentRewardType.FREE_DELIVERY;
40
63
  } | {
41
64
  type: TournamentRewardType.COUPON;
65
+ maxDiscountPerOrder: number;
42
66
  couponNamePrefix: string;
43
67
  percentage: number;
44
- maxDiscountPerOrder?: number | null | undefined;
45
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;
46
78
  }, {
47
79
  name: string;
48
80
  startDate: string | Date;
@@ -53,10 +85,19 @@ export declare const CreateTournamentConfigSchema: z.ZodEffects<z.ZodObject<{
53
85
  type: TournamentRewardType.FREE_DELIVERY;
54
86
  } | {
55
87
  type: TournamentRewardType.COUPON;
88
+ maxDiscountPerOrder: number;
56
89
  couponNamePrefix: string;
57
90
  percentage: number;
58
- maxDiscountPerOrder?: number | null | undefined;
59
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;
60
101
  }>, {
61
102
  name: string;
62
103
  startDate: Date;
@@ -67,10 +108,19 @@ export declare const CreateTournamentConfigSchema: z.ZodEffects<z.ZodObject<{
67
108
  type: TournamentRewardType.FREE_DELIVERY;
68
109
  } | {
69
110
  type: TournamentRewardType.COUPON;
111
+ maxDiscountPerOrder: number;
70
112
  couponNamePrefix: string;
71
113
  percentage: number;
72
- maxDiscountPerOrder?: number | null | undefined;
73
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;
74
124
  }, {
75
125
  name: string;
76
126
  startDate: string | Date;
@@ -81,10 +131,19 @@ export declare const CreateTournamentConfigSchema: z.ZodEffects<z.ZodObject<{
81
131
  type: TournamentRewardType.FREE_DELIVERY;
82
132
  } | {
83
133
  type: TournamentRewardType.COUPON;
134
+ maxDiscountPerOrder: number;
84
135
  couponNamePrefix: string;
85
136
  percentage: number;
86
- maxDiscountPerOrder?: number | null | undefined;
87
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;
88
147
  }>;
89
148
  export declare const UpdateTournamentConfigSchema: z.ZodEffects<z.ZodObject<{
90
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>]>;
@@ -97,17 +156,17 @@ export declare const UpdateTournamentConfigSchema: z.ZodEffects<z.ZodObject<{
97
156
  type: z.ZodLiteral<TournamentRewardType.COUPON>;
98
157
  couponNamePrefix: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
99
158
  percentage: z.ZodNumber;
100
- maxDiscountPerOrder: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
159
+ maxDiscountPerOrder: z.ZodNumber;
101
160
  }, "strip", z.ZodTypeAny, {
102
161
  type: TournamentRewardType.COUPON;
162
+ maxDiscountPerOrder: number;
103
163
  couponNamePrefix: string;
104
164
  percentage: number;
105
- maxDiscountPerOrder?: number | null | undefined;
106
165
  }, {
107
166
  type: TournamentRewardType.COUPON;
167
+ maxDiscountPerOrder: number;
108
168
  couponNamePrefix: string;
109
169
  percentage: number;
110
- maxDiscountPerOrder?: number | null | undefined;
111
170
  }>, z.ZodObject<{
112
171
  type: z.ZodLiteral<TournamentRewardType.FREE_DELIVERY>;
113
172
  }, "strip", z.ZodTypeAny, {
@@ -115,6 +174,29 @@ export declare const UpdateTournamentConfigSchema: z.ZodEffects<z.ZodObject<{
115
174
  }, {
116
175
  type: TournamentRewardType.FREE_DELIVERY;
117
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">>;
118
200
  }, "strip", z.ZodTypeAny, {
119
201
  _id: import("mongoose").Types.ObjectId;
120
202
  status?: Status | undefined;
@@ -126,10 +208,19 @@ export declare const UpdateTournamentConfigSchema: z.ZodEffects<z.ZodObject<{
126
208
  type: TournamentRewardType.FREE_DELIVERY;
127
209
  } | {
128
210
  type: TournamentRewardType.COUPON;
211
+ maxDiscountPerOrder: number;
129
212
  couponNamePrefix: string;
130
213
  percentage: number;
131
- maxDiscountPerOrder?: number | null | undefined;
132
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;
133
224
  }, {
134
225
  _id: string | import("mongoose").Types.ObjectId;
135
226
  status?: Status | undefined;
@@ -141,10 +232,19 @@ export declare const UpdateTournamentConfigSchema: z.ZodEffects<z.ZodObject<{
141
232
  type: TournamentRewardType.FREE_DELIVERY;
142
233
  } | {
143
234
  type: TournamentRewardType.COUPON;
235
+ maxDiscountPerOrder: number;
144
236
  couponNamePrefix: string;
145
237
  percentage: number;
146
- maxDiscountPerOrder?: number | null | undefined;
147
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;
148
248
  }>, {
149
249
  _id: import("mongoose").Types.ObjectId;
150
250
  status?: Status | undefined;
@@ -156,10 +256,19 @@ export declare const UpdateTournamentConfigSchema: z.ZodEffects<z.ZodObject<{
156
256
  type: TournamentRewardType.FREE_DELIVERY;
157
257
  } | {
158
258
  type: TournamentRewardType.COUPON;
259
+ maxDiscountPerOrder: number;
159
260
  couponNamePrefix: string;
160
261
  percentage: number;
161
- maxDiscountPerOrder?: number | null | undefined;
162
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;
163
272
  }, {
164
273
  _id: string | import("mongoose").Types.ObjectId;
165
274
  status?: Status | undefined;
@@ -171,10 +280,19 @@ export declare const UpdateTournamentConfigSchema: z.ZodEffects<z.ZodObject<{
171
280
  type: TournamentRewardType.FREE_DELIVERY;
172
281
  } | {
173
282
  type: TournamentRewardType.COUPON;
283
+ maxDiscountPerOrder: number;
174
284
  couponNamePrefix: string;
175
285
  percentage: number;
176
- maxDiscountPerOrder?: number | null | undefined;
177
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;
178
296
  }>;
179
297
  export declare const TournamentConfigSchema: z.ZodObject<{
180
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>]>>;
@@ -207,6 +325,29 @@ export declare const TournamentConfigSchema: z.ZodObject<{
207
325
  }>]>>;
208
326
  createdAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
209
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">>;
210
351
  }, "strip", z.ZodTypeAny, {
211
352
  status: Status;
212
353
  name: string;
@@ -224,6 +365,15 @@ export declare const TournamentConfigSchema: z.ZodObject<{
224
365
  couponNamePrefix?: string | undefined;
225
366
  percentage?: number | undefined;
226
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;
227
377
  }, {
228
378
  status: Status;
229
379
  name: string;
@@ -241,6 +391,15 @@ export declare const TournamentConfigSchema: z.ZodObject<{
241
391
  couponNamePrefix?: string | undefined;
242
392
  percentage?: number | undefined;
243
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;
244
403
  }>;
245
404
  export declare const TournamentConfigListItemSchema: z.ZodObject<{
246
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>]>>;
@@ -251,6 +410,29 @@ export declare const TournamentConfigListItemSchema: z.ZodObject<{
251
410
  status: z.ZodNativeEnum<typeof Status>;
252
411
  createdAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
253
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">>;
254
436
  } & {
255
437
  reward: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
256
438
  type: z.ZodLiteral<TournamentRewardType.COUPON>;
@@ -287,6 +469,15 @@ export declare const TournamentConfigListItemSchema: z.ZodObject<{
287
469
  maxDiscountPerOrder?: number | null | undefined;
288
470
  percentage?: number | undefined;
289
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;
290
481
  }, {
291
482
  status: Status;
292
483
  name: string;
@@ -303,6 +494,15 @@ export declare const TournamentConfigListItemSchema: z.ZodObject<{
303
494
  maxDiscountPerOrder?: number | null | undefined;
304
495
  percentage?: number | undefined;
305
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;
306
506
  }>;
307
507
  export declare const TournamentConfigResponseSchema: z.ZodObject<{
308
508
  success: z.ZodBoolean;
@@ -341,6 +541,15 @@ export declare const TournamentConfigResponseSchema: z.ZodObject<{
341
541
  couponNamePrefix?: string | undefined;
342
542
  percentage?: number | undefined;
343
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;
344
553
  }, z.ZodTypeDef, {
345
554
  status: Status;
346
555
  name: string;
@@ -358,6 +567,15 @@ export declare const TournamentConfigResponseSchema: z.ZodObject<{
358
567
  couponNamePrefix?: string | undefined;
359
568
  percentage?: number | undefined;
360
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;
361
579
  }>, "many">;
362
580
  }, "strip", z.ZodTypeAny, {
363
581
  documents: {
@@ -377,6 +595,15 @@ export declare const TournamentConfigResponseSchema: z.ZodObject<{
377
595
  couponNamePrefix?: string | undefined;
378
596
  percentage?: number | undefined;
379
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;
380
607
  }[];
381
608
  metadata?: {
382
609
  page: number;
@@ -402,6 +629,15 @@ export declare const TournamentConfigResponseSchema: z.ZodObject<{
402
629
  couponNamePrefix?: string | undefined;
403
630
  percentage?: number | undefined;
404
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;
405
641
  }[];
406
642
  metadata?: {
407
643
  page: number;
@@ -426,6 +662,15 @@ export declare const TournamentConfigResponseSchema: z.ZodObject<{
426
662
  couponNamePrefix?: string | undefined;
427
663
  percentage?: number | undefined;
428
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;
429
674
  }, z.ZodTypeDef, {
430
675
  status: Status;
431
676
  name: string;
@@ -443,6 +688,15 @@ export declare const TournamentConfigResponseSchema: z.ZodObject<{
443
688
  couponNamePrefix?: string | undefined;
444
689
  percentage?: number | undefined;
445
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;
446
700
  }>]>>;
447
701
  }, "strip", z.ZodTypeAny, {
448
702
  message: string;
@@ -464,6 +718,15 @@ export declare const TournamentConfigResponseSchema: z.ZodObject<{
464
718
  couponNamePrefix?: string | undefined;
465
719
  percentage?: number | undefined;
466
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;
467
730
  } | {
468
731
  documents: {
469
732
  status: Status;
@@ -482,6 +745,15 @@ export declare const TournamentConfigResponseSchema: z.ZodObject<{
482
745
  couponNamePrefix?: string | undefined;
483
746
  percentage?: number | undefined;
484
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;
485
757
  }[];
486
758
  metadata?: {
487
759
  page: number;
@@ -510,6 +782,15 @@ export declare const TournamentConfigResponseSchema: z.ZodObject<{
510
782
  couponNamePrefix?: string | undefined;
511
783
  percentage?: number | undefined;
512
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;
513
794
  } | {
514
795
  documents: {
515
796
  status: Status;
@@ -528,6 +809,15 @@ export declare const TournamentConfigResponseSchema: z.ZodObject<{
528
809
  couponNamePrefix?: string | undefined;
529
810
  percentage?: number | undefined;
530
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;
531
821
  }[];
532
822
  metadata?: {
533
823
  page: number;
@@ -573,6 +863,15 @@ export declare const TournamentConfigListResponseSchema: z.ZodObject<{
573
863
  maxDiscountPerOrder?: number | null | undefined;
574
864
  percentage?: number | undefined;
575
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;
576
875
  }[], z.ZodTypeDef, {
577
876
  status: Status;
578
877
  name: string;
@@ -589,6 +888,15 @@ export declare const TournamentConfigListResponseSchema: z.ZodObject<{
589
888
  maxDiscountPerOrder?: number | null | undefined;
590
889
  percentage?: number | undefined;
591
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;
592
900
  }[]>, "many">;
593
901
  }, "strip", z.ZodTypeAny, {
594
902
  documents: {
@@ -607,6 +915,15 @@ export declare const TournamentConfigListResponseSchema: z.ZodObject<{
607
915
  maxDiscountPerOrder?: number | null | undefined;
608
916
  percentage?: number | undefined;
609
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;
610
927
  }[][];
611
928
  metadata?: {
612
929
  page: number;
@@ -631,6 +948,15 @@ export declare const TournamentConfigListResponseSchema: z.ZodObject<{
631
948
  maxDiscountPerOrder?: number | null | undefined;
632
949
  percentage?: number | undefined;
633
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;
634
960
  }[][];
635
961
  metadata?: {
636
962
  page: number;
@@ -654,6 +980,15 @@ export declare const TournamentConfigListResponseSchema: z.ZodObject<{
654
980
  maxDiscountPerOrder?: number | null | undefined;
655
981
  percentage?: number | undefined;
656
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;
657
992
  }[], z.ZodTypeDef, {
658
993
  status: Status;
659
994
  name: string;
@@ -670,6 +1005,15 @@ export declare const TournamentConfigListResponseSchema: z.ZodObject<{
670
1005
  maxDiscountPerOrder?: number | null | undefined;
671
1006
  percentage?: number | undefined;
672
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;
673
1017
  }[]>]>>;
674
1018
  }, "strip", z.ZodTypeAny, {
675
1019
  message: string;
@@ -690,6 +1034,15 @@ export declare const TournamentConfigListResponseSchema: z.ZodObject<{
690
1034
  maxDiscountPerOrder?: number | null | undefined;
691
1035
  percentage?: number | undefined;
692
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;
693
1046
  }[] | {
694
1047
  documents: {
695
1048
  status: Status;
@@ -707,6 +1060,15 @@ export declare const TournamentConfigListResponseSchema: z.ZodObject<{
707
1060
  maxDiscountPerOrder?: number | null | undefined;
708
1061
  percentage?: number | undefined;
709
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;
710
1072
  }[][];
711
1073
  metadata?: {
712
1074
  page: number;
@@ -734,6 +1096,15 @@ export declare const TournamentConfigListResponseSchema: z.ZodObject<{
734
1096
  maxDiscountPerOrder?: number | null | undefined;
735
1097
  percentage?: number | undefined;
736
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;
737
1108
  }[] | {
738
1109
  documents: {
739
1110
  status: Status;
@@ -751,6 +1122,15 @@ export declare const TournamentConfigListResponseSchema: z.ZodObject<{
751
1122
  maxDiscountPerOrder?: number | null | undefined;
752
1123
  percentage?: number | undefined;
753
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;
754
1134
  }[][];
755
1135
  metadata?: {
756
1136
  page: number;