@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
@@ -6485,8 +6485,8 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
6485
6485
  input: {
6486
6486
  user: string | import("mongoose").Types.ObjectId;
6487
6487
  shop: string | import("mongoose").Types.ObjectId;
6488
- marketing: string | import("mongoose").Types.ObjectId;
6489
6488
  minimumOrderValue: number;
6489
+ marketing: string | import("mongoose").Types.ObjectId;
6490
6490
  targetOrder: number;
6491
6491
  couponValueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
6492
6492
  couponValue: number;
@@ -7299,6 +7299,48 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
7299
7299
  };
7300
7300
  transformer: false;
7301
7301
  }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
7302
+ getActive: import("@trpc/server").TRPCQueryProcedure<{
7303
+ input: {
7304
+ latitude: number;
7305
+ longitude: number;
7306
+ };
7307
+ output: {
7308
+ message: string;
7309
+ success: boolean;
7310
+ data?: {
7311
+ _id: string | import("mongoose").Types.ObjectId;
7312
+ title?: string | undefined;
7313
+ subtitle?: string | undefined;
7314
+ startTime?: Date | null | undefined;
7315
+ endTime?: Date | null | undefined;
7316
+ } | {
7317
+ documents: ({
7318
+ _id: string | import("mongoose").Types.ObjectId;
7319
+ title?: string | undefined;
7320
+ subtitle?: string | undefined;
7321
+ startTime?: Date | null | undefined;
7322
+ endTime?: Date | null | undefined;
7323
+ } | null)[];
7324
+ metadata?: {
7325
+ page: number;
7326
+ size: number;
7327
+ totalElements: number;
7328
+ totalPages: number;
7329
+ } | undefined;
7330
+ } | null | undefined;
7331
+ };
7332
+ meta: object;
7333
+ }>;
7334
+ cancel: import("@trpc/server").TRPCMutationProcedure<{
7335
+ input: {
7336
+ campaignId: string | import("mongoose").Types.ObjectId;
7337
+ };
7338
+ output: {
7339
+ message: string;
7340
+ success: boolean;
7341
+ };
7342
+ meta: object;
7343
+ }>;
7302
7344
  config: import("@trpc/server").TRPCBuiltRouter<{
7303
7345
  ctx: import("@lyxa.ai/core/dist/libraries/trpc/context").LyxaHTTPContext;
7304
7346
  meta: object;
@@ -7526,38 +7568,6 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
7526
7568
  };
7527
7569
  meta: object;
7528
7570
  }>;
7529
- getActive: import("@trpc/server").TRPCQueryProcedure<{
7530
- input: {
7531
- latitude?: number | undefined;
7532
- longitude?: number | undefined;
7533
- };
7534
- output: {
7535
- message: string;
7536
- success: boolean;
7537
- data?: {
7538
- _id: string | import("mongoose").Types.ObjectId;
7539
- title?: string | undefined;
7540
- subtitle?: string | undefined;
7541
- startTime?: Date | null | undefined;
7542
- endTime?: Date | null | undefined;
7543
- } | {
7544
- documents: ({
7545
- _id: string | import("mongoose").Types.ObjectId;
7546
- title?: string | undefined;
7547
- subtitle?: string | undefined;
7548
- startTime?: Date | null | undefined;
7549
- endTime?: Date | null | undefined;
7550
- } | null)[];
7551
- metadata?: {
7552
- page: number;
7553
- size: number;
7554
- totalElements: number;
7555
- totalPages: number;
7556
- } | undefined;
7557
- } | null | undefined;
7558
- };
7559
- meta: object;
7560
- }>;
7561
7571
  getById: import("@trpc/server").TRPCQueryProcedure<{
7562
7572
  input: {
7563
7573
  campaignId: string | import("mongoose").Types.ObjectId;
@@ -7692,6 +7702,38 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
7692
7702
  };
7693
7703
  meta: object;
7694
7704
  }>;
7705
+ getActive: import("@trpc/server").TRPCQueryProcedure<{
7706
+ input: {
7707
+ latitude: number;
7708
+ longitude: number;
7709
+ };
7710
+ output: {
7711
+ message: string;
7712
+ success: boolean;
7713
+ data?: {
7714
+ _id: string | import("mongoose").Types.ObjectId;
7715
+ title?: string | undefined;
7716
+ subtitle?: string | undefined;
7717
+ startTime?: Date | null | undefined;
7718
+ endTime?: Date | null | undefined;
7719
+ } | {
7720
+ documents: ({
7721
+ _id: string | import("mongoose").Types.ObjectId;
7722
+ title?: string | undefined;
7723
+ subtitle?: string | undefined;
7724
+ startTime?: Date | null | undefined;
7725
+ endTime?: Date | null | undefined;
7726
+ } | null)[];
7727
+ metadata?: {
7728
+ page: number;
7729
+ size: number;
7730
+ totalElements: number;
7731
+ totalPages: number;
7732
+ } | undefined;
7733
+ } | null | undefined;
7734
+ };
7735
+ meta: object;
7736
+ }>;
7695
7737
  cancel: import("@trpc/server").TRPCMutationProcedure<{
7696
7738
  input: {
7697
7739
  campaignId: string | import("mongoose").Types.ObjectId;
@@ -7727,6 +7769,7 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
7727
7769
  isOrderCapacityEnabled: boolean;
7728
7770
  products?: (string | import("mongoose").Types.ObjectId)[] | undefined;
7729
7771
  maxOrderCapacity?: number | undefined;
7772
+ shopCategories?: (string | import("mongoose").Types.ObjectId)[] | undefined;
7730
7773
  };
7731
7774
  output: {
7732
7775
  message: string;
@@ -7781,6 +7824,7 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
7781
7824
  isOrderCapacityEnabled: boolean;
7782
7825
  products?: (string | import("mongoose").Types.ObjectId)[] | undefined;
7783
7826
  maxOrderCapacity?: number | undefined;
7827
+ shopCategories?: (string | import("mongoose").Types.ObjectId)[] | undefined;
7784
7828
  };
7785
7829
  output: {
7786
7830
  message: string;
@@ -7842,15 +7886,6 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
7842
7886
  success: boolean;
7843
7887
  data?: {
7844
7888
  campaignState: import("./modules/limited-time-offer/participant/limited-time-offer-participant.validation").LtoCardState;
7845
- campaign?: {
7846
- _id: string | import("mongoose").Types.ObjectId;
7847
- startDate?: Date | null | undefined;
7848
- endDate?: Date | null | undefined;
7849
- title?: string | undefined;
7850
- subTitle?: string | undefined;
7851
- discountOptions?: number[] | undefined;
7852
- maxDiscountCaps?: number[] | undefined;
7853
- } | undefined;
7854
7889
  participant?: {
7855
7890
  isEntireMenu: boolean;
7856
7891
  joinedAt: Date;
@@ -7861,18 +7896,18 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
7861
7896
  maxDiscountCap?: number | undefined;
7862
7897
  maxOrderCapacity?: number | undefined;
7863
7898
  } | undefined;
7899
+ campaign?: {
7900
+ _id: string | import("mongoose").Types.ObjectId;
7901
+ startDate?: Date | null | undefined;
7902
+ endDate?: Date | null | undefined;
7903
+ title?: string | undefined;
7904
+ subTitle?: string | undefined;
7905
+ discountOptions?: number[] | undefined;
7906
+ maxDiscountCaps?: number[] | undefined;
7907
+ } | undefined;
7864
7908
  } | {
7865
7909
  documents: {
7866
7910
  campaignState: import("./modules/limited-time-offer/participant/limited-time-offer-participant.validation").LtoCardState;
7867
- campaign?: {
7868
- _id: string | import("mongoose").Types.ObjectId;
7869
- startDate?: Date | null | undefined;
7870
- endDate?: Date | null | undefined;
7871
- title?: string | undefined;
7872
- subTitle?: string | undefined;
7873
- discountOptions?: number[] | undefined;
7874
- maxDiscountCaps?: number[] | undefined;
7875
- } | undefined;
7876
7911
  participant?: {
7877
7912
  isEntireMenu: boolean;
7878
7913
  joinedAt: Date;
@@ -7883,6 +7918,15 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
7883
7918
  maxDiscountCap?: number | undefined;
7884
7919
  maxOrderCapacity?: number | undefined;
7885
7920
  } | undefined;
7921
+ campaign?: {
7922
+ _id: string | import("mongoose").Types.ObjectId;
7923
+ startDate?: Date | null | undefined;
7924
+ endDate?: Date | null | undefined;
7925
+ title?: string | undefined;
7926
+ subTitle?: string | undefined;
7927
+ discountOptions?: number[] | undefined;
7928
+ maxDiscountCaps?: number[] | undefined;
7929
+ } | undefined;
7886
7930
  }[];
7887
7931
  metadata?: {
7888
7932
  page: number;
@@ -7905,6 +7949,7 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
7905
7949
  message: string;
7906
7950
  success: boolean;
7907
7951
  data?: {
7952
+ shopId: string | import("mongoose").Types.ObjectId;
7908
7953
  joinedAt: Date;
7909
7954
  shopName: string | null;
7910
7955
  shopPhoto?: string | null | undefined;
@@ -7912,6 +7957,7 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
7912
7957
  maxDiscountCap?: number | undefined;
7913
7958
  } | {
7914
7959
  documents: {
7960
+ shopId: string | import("mongoose").Types.ObjectId;
7915
7961
  joinedAt: Date;
7916
7962
  shopName: string | null;
7917
7963
  shopPhoto?: string | null | undefined;
@@ -7967,16 +8013,25 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
7967
8013
  name: string;
7968
8014
  startDate: string | Date;
7969
8015
  endDate: string | Date;
7970
- tag: import("./modules/tournament/tournament.types").TournamentTag;
8016
+ tag: string;
7971
8017
  status?: import("@lyxa.ai/core/dist/utilities/enum").Status | undefined;
7972
8018
  reward?: {
7973
8019
  type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.FREE_DELIVERY;
7974
8020
  } | {
7975
8021
  type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.COUPON;
8022
+ maxDiscountPerOrder: number;
7976
8023
  couponNamePrefix: string;
7977
8024
  percentage: number;
7978
- maxDiscountPerOrder?: number | null | undefined;
7979
8025
  } | undefined;
8026
+ notificationTemplates?: Partial<Record<import("@lyxa.ai/core/dist/utilities/enum").TournamentNotificationTag, {
8027
+ title: string;
8028
+ body: string;
8029
+ }>> | undefined;
8030
+ scheduledNotifications?: {
8031
+ type: import("@lyxa.ai/core/dist/utilities/enum").TournamentNotificationTag;
8032
+ durationMins: number;
8033
+ target: import("@lyxa.ai/core/dist/utilities/enum").TournamentScheduledNotificationTarget;
8034
+ }[] | undefined;
7980
8035
  };
7981
8036
  output: {
7982
8037
  message: string;
@@ -7984,12 +8039,12 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
7984
8039
  data?: {
7985
8040
  status: import("@lyxa.ai/core/dist/utilities/enum").Status;
7986
8041
  name: string;
8042
+ tag: string;
7987
8043
  _id?: string | import("mongoose").Types.ObjectId | undefined;
7988
8044
  createdAt?: Date | null | undefined;
7989
8045
  startDate?: Date | null | undefined;
7990
8046
  endDate?: Date | null | undefined;
7991
8047
  updatedAt?: Date | null | undefined;
7992
- tag?: import("./modules/tournament/tournament.types").TournamentTag | undefined;
7993
8048
  reward?: {
7994
8049
  type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.FREE_DELIVERY;
7995
8050
  } | {
@@ -7998,16 +8053,25 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
7998
8053
  couponNamePrefix?: string | undefined;
7999
8054
  percentage?: number | undefined;
8000
8055
  } | undefined;
8056
+ notificationTemplates?: Partial<Record<import("@lyxa.ai/core/dist/utilities/enum").TournamentNotificationTag, {
8057
+ title: string;
8058
+ body: string;
8059
+ }>> | undefined;
8060
+ scheduledNotifications?: {
8061
+ type: import("@lyxa.ai/core/dist/utilities/enum").TournamentNotificationTag;
8062
+ durationMins: number;
8063
+ target: import("@lyxa.ai/core/dist/utilities/enum").TournamentScheduledNotificationTarget;
8064
+ }[] | undefined;
8001
8065
  } | {
8002
8066
  documents: {
8003
8067
  status: import("@lyxa.ai/core/dist/utilities/enum").Status;
8004
8068
  name: string;
8069
+ tag: string;
8005
8070
  _id?: string | import("mongoose").Types.ObjectId | undefined;
8006
8071
  createdAt?: Date | null | undefined;
8007
8072
  startDate?: Date | null | undefined;
8008
8073
  endDate?: Date | null | undefined;
8009
8074
  updatedAt?: Date | null | undefined;
8010
- tag?: import("./modules/tournament/tournament.types").TournamentTag | undefined;
8011
8075
  reward?: {
8012
8076
  type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.FREE_DELIVERY;
8013
8077
  } | {
@@ -8016,6 +8080,15 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
8016
8080
  couponNamePrefix?: string | undefined;
8017
8081
  percentage?: number | undefined;
8018
8082
  } | undefined;
8083
+ notificationTemplates?: Partial<Record<import("@lyxa.ai/core/dist/utilities/enum").TournamentNotificationTag, {
8084
+ title: string;
8085
+ body: string;
8086
+ }>> | undefined;
8087
+ scheduledNotifications?: {
8088
+ type: import("@lyxa.ai/core/dist/utilities/enum").TournamentNotificationTag;
8089
+ durationMins: number;
8090
+ target: import("@lyxa.ai/core/dist/utilities/enum").TournamentScheduledNotificationTarget;
8091
+ }[] | undefined;
8019
8092
  }[];
8020
8093
  metadata?: {
8021
8094
  page: number;
@@ -8035,12 +8108,12 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
8035
8108
  data?: {
8036
8109
  status: import("@lyxa.ai/core/dist/utilities/enum").Status;
8037
8110
  name: string;
8111
+ tag: string;
8038
8112
  _id?: string | import("mongoose").Types.ObjectId | undefined;
8039
8113
  createdAt?: Date | null | undefined;
8040
8114
  startDate?: Date | null | undefined;
8041
8115
  endDate?: Date | null | undefined;
8042
8116
  updatedAt?: Date | null | undefined;
8043
- tag?: import("./modules/tournament/tournament.types").TournamentTag | undefined;
8044
8117
  reward?: {
8045
8118
  type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.FREE_DELIVERY;
8046
8119
  } | {
@@ -8048,16 +8121,25 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
8048
8121
  maxDiscountPerOrder?: number | null | undefined;
8049
8122
  percentage?: number | undefined;
8050
8123
  } | undefined;
8124
+ notificationTemplates?: Partial<Record<import("@lyxa.ai/core/dist/utilities/enum").TournamentNotificationTag, {
8125
+ title: string;
8126
+ body: string;
8127
+ }>> | undefined;
8128
+ scheduledNotifications?: {
8129
+ type: import("@lyxa.ai/core/dist/utilities/enum").TournamentNotificationTag;
8130
+ durationMins: number;
8131
+ target: import("@lyxa.ai/core/dist/utilities/enum").TournamentScheduledNotificationTarget;
8132
+ }[] | undefined;
8051
8133
  }[] | {
8052
8134
  documents: {
8053
8135
  status: import("@lyxa.ai/core/dist/utilities/enum").Status;
8054
8136
  name: string;
8137
+ tag: string;
8055
8138
  _id?: string | import("mongoose").Types.ObjectId | undefined;
8056
8139
  createdAt?: Date | null | undefined;
8057
8140
  startDate?: Date | null | undefined;
8058
8141
  endDate?: Date | null | undefined;
8059
8142
  updatedAt?: Date | null | undefined;
8060
- tag?: import("./modules/tournament/tournament.types").TournamentTag | undefined;
8061
8143
  reward?: {
8062
8144
  type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.FREE_DELIVERY;
8063
8145
  } | {
@@ -8065,6 +8147,15 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
8065
8147
  maxDiscountPerOrder?: number | null | undefined;
8066
8148
  percentage?: number | undefined;
8067
8149
  } | undefined;
8150
+ notificationTemplates?: Partial<Record<import("@lyxa.ai/core/dist/utilities/enum").TournamentNotificationTag, {
8151
+ title: string;
8152
+ body: string;
8153
+ }>> | undefined;
8154
+ scheduledNotifications?: {
8155
+ type: import("@lyxa.ai/core/dist/utilities/enum").TournamentNotificationTag;
8156
+ durationMins: number;
8157
+ target: import("@lyxa.ai/core/dist/utilities/enum").TournamentScheduledNotificationTarget;
8158
+ }[] | undefined;
8068
8159
  }[][];
8069
8160
  metadata?: {
8070
8161
  page: number;
@@ -8086,12 +8177,12 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
8086
8177
  data?: {
8087
8178
  status: import("@lyxa.ai/core/dist/utilities/enum").Status;
8088
8179
  name: string;
8180
+ tag: string;
8089
8181
  _id?: string | import("mongoose").Types.ObjectId | undefined;
8090
8182
  createdAt?: Date | null | undefined;
8091
8183
  startDate?: Date | null | undefined;
8092
8184
  endDate?: Date | null | undefined;
8093
8185
  updatedAt?: Date | null | undefined;
8094
- tag?: import("./modules/tournament/tournament.types").TournamentTag | undefined;
8095
8186
  reward?: {
8096
8187
  type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.FREE_DELIVERY;
8097
8188
  } | {
@@ -8100,16 +8191,25 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
8100
8191
  couponNamePrefix?: string | undefined;
8101
8192
  percentage?: number | undefined;
8102
8193
  } | undefined;
8194
+ notificationTemplates?: Partial<Record<import("@lyxa.ai/core/dist/utilities/enum").TournamentNotificationTag, {
8195
+ title: string;
8196
+ body: string;
8197
+ }>> | undefined;
8198
+ scheduledNotifications?: {
8199
+ type: import("@lyxa.ai/core/dist/utilities/enum").TournamentNotificationTag;
8200
+ durationMins: number;
8201
+ target: import("@lyxa.ai/core/dist/utilities/enum").TournamentScheduledNotificationTarget;
8202
+ }[] | undefined;
8103
8203
  } | {
8104
8204
  documents: {
8105
8205
  status: import("@lyxa.ai/core/dist/utilities/enum").Status;
8106
8206
  name: string;
8207
+ tag: string;
8107
8208
  _id?: string | import("mongoose").Types.ObjectId | undefined;
8108
8209
  createdAt?: Date | null | undefined;
8109
8210
  startDate?: Date | null | undefined;
8110
8211
  endDate?: Date | null | undefined;
8111
8212
  updatedAt?: Date | null | undefined;
8112
- tag?: import("./modules/tournament/tournament.types").TournamentTag | undefined;
8113
8213
  reward?: {
8114
8214
  type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.FREE_DELIVERY;
8115
8215
  } | {
@@ -8118,6 +8218,15 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
8118
8218
  couponNamePrefix?: string | undefined;
8119
8219
  percentage?: number | undefined;
8120
8220
  } | undefined;
8221
+ notificationTemplates?: Partial<Record<import("@lyxa.ai/core/dist/utilities/enum").TournamentNotificationTag, {
8222
+ title: string;
8223
+ body: string;
8224
+ }>> | undefined;
8225
+ scheduledNotifications?: {
8226
+ type: import("@lyxa.ai/core/dist/utilities/enum").TournamentNotificationTag;
8227
+ durationMins: number;
8228
+ target: import("@lyxa.ai/core/dist/utilities/enum").TournamentScheduledNotificationTarget;
8229
+ }[] | undefined;
8121
8230
  }[];
8122
8231
  metadata?: {
8123
8232
  page: number;
@@ -8136,15 +8245,24 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
8136
8245
  name?: string | undefined;
8137
8246
  startDate?: string | Date | undefined;
8138
8247
  endDate?: string | Date | undefined;
8139
- tag?: import("./modules/tournament/tournament.types").TournamentTag | undefined;
8248
+ tag?: string | undefined;
8140
8249
  reward?: {
8141
8250
  type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.FREE_DELIVERY;
8142
8251
  } | {
8143
8252
  type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.COUPON;
8253
+ maxDiscountPerOrder: number;
8144
8254
  couponNamePrefix: string;
8145
8255
  percentage: number;
8146
- maxDiscountPerOrder?: number | null | undefined;
8147
8256
  } | undefined;
8257
+ notificationTemplates?: Partial<Record<import("@lyxa.ai/core/dist/utilities/enum").TournamentNotificationTag, {
8258
+ title: string;
8259
+ body: string;
8260
+ }>> | undefined;
8261
+ scheduledNotifications?: {
8262
+ type: import("@lyxa.ai/core/dist/utilities/enum").TournamentNotificationTag;
8263
+ durationMins: number;
8264
+ target: import("@lyxa.ai/core/dist/utilities/enum").TournamentScheduledNotificationTarget;
8265
+ }[] | undefined;
8148
8266
  };
8149
8267
  output: {
8150
8268
  message: string;
@@ -8152,12 +8270,12 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
8152
8270
  data?: {
8153
8271
  status: import("@lyxa.ai/core/dist/utilities/enum").Status;
8154
8272
  name: string;
8273
+ tag: string;
8155
8274
  _id?: string | import("mongoose").Types.ObjectId | undefined;
8156
8275
  createdAt?: Date | null | undefined;
8157
8276
  startDate?: Date | null | undefined;
8158
8277
  endDate?: Date | null | undefined;
8159
8278
  updatedAt?: Date | null | undefined;
8160
- tag?: import("./modules/tournament/tournament.types").TournamentTag | undefined;
8161
8279
  reward?: {
8162
8280
  type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.FREE_DELIVERY;
8163
8281
  } | {
@@ -8166,16 +8284,25 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
8166
8284
  couponNamePrefix?: string | undefined;
8167
8285
  percentage?: number | undefined;
8168
8286
  } | undefined;
8287
+ notificationTemplates?: Partial<Record<import("@lyxa.ai/core/dist/utilities/enum").TournamentNotificationTag, {
8288
+ title: string;
8289
+ body: string;
8290
+ }>> | undefined;
8291
+ scheduledNotifications?: {
8292
+ type: import("@lyxa.ai/core/dist/utilities/enum").TournamentNotificationTag;
8293
+ durationMins: number;
8294
+ target: import("@lyxa.ai/core/dist/utilities/enum").TournamentScheduledNotificationTarget;
8295
+ }[] | undefined;
8169
8296
  } | {
8170
8297
  documents: {
8171
8298
  status: import("@lyxa.ai/core/dist/utilities/enum").Status;
8172
8299
  name: string;
8300
+ tag: string;
8173
8301
  _id?: string | import("mongoose").Types.ObjectId | undefined;
8174
8302
  createdAt?: Date | null | undefined;
8175
8303
  startDate?: Date | null | undefined;
8176
8304
  endDate?: Date | null | undefined;
8177
8305
  updatedAt?: Date | null | undefined;
8178
- tag?: import("./modules/tournament/tournament.types").TournamentTag | undefined;
8179
8306
  reward?: {
8180
8307
  type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.FREE_DELIVERY;
8181
8308
  } | {
@@ -8184,6 +8311,15 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
8184
8311
  couponNamePrefix?: string | undefined;
8185
8312
  percentage?: number | undefined;
8186
8313
  } | undefined;
8314
+ notificationTemplates?: Partial<Record<import("@lyxa.ai/core/dist/utilities/enum").TournamentNotificationTag, {
8315
+ title: string;
8316
+ body: string;
8317
+ }>> | undefined;
8318
+ scheduledNotifications?: {
8319
+ type: import("@lyxa.ai/core/dist/utilities/enum").TournamentNotificationTag;
8320
+ durationMins: number;
8321
+ target: import("@lyxa.ai/core/dist/utilities/enum").TournamentScheduledNotificationTarget;
8322
+ }[] | undefined;
8187
8323
  }[];
8188
8324
  metadata?: {
8189
8325
  page: number;
@@ -8226,12 +8362,12 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
8226
8362
  data?: {
8227
8363
  status: import("@lyxa.ai/core/dist/utilities/enum").Status;
8228
8364
  name: string;
8365
+ tag: string;
8229
8366
  _id?: string | import("mongoose").Types.ObjectId | undefined;
8230
8367
  createdAt?: Date | null | undefined;
8231
8368
  startDate?: Date | null | undefined;
8232
8369
  endDate?: Date | null | undefined;
8233
8370
  updatedAt?: Date | null | undefined;
8234
- tag?: import("./modules/tournament/tournament.types").TournamentTag | undefined;
8235
8371
  reward?: {
8236
8372
  type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.FREE_DELIVERY;
8237
8373
  } | {
@@ -8240,16 +8376,25 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
8240
8376
  couponNamePrefix?: string | undefined;
8241
8377
  percentage?: number | undefined;
8242
8378
  } | undefined;
8379
+ notificationTemplates?: Partial<Record<import("@lyxa.ai/core/dist/utilities/enum").TournamentNotificationTag, {
8380
+ title: string;
8381
+ body: string;
8382
+ }>> | undefined;
8383
+ scheduledNotifications?: {
8384
+ type: import("@lyxa.ai/core/dist/utilities/enum").TournamentNotificationTag;
8385
+ durationMins: number;
8386
+ target: import("@lyxa.ai/core/dist/utilities/enum").TournamentScheduledNotificationTarget;
8387
+ }[] | undefined;
8243
8388
  } | {
8244
8389
  documents: {
8245
8390
  status: import("@lyxa.ai/core/dist/utilities/enum").Status;
8246
8391
  name: string;
8392
+ tag: string;
8247
8393
  _id?: string | import("mongoose").Types.ObjectId | undefined;
8248
8394
  createdAt?: Date | null | undefined;
8249
8395
  startDate?: Date | null | undefined;
8250
8396
  endDate?: Date | null | undefined;
8251
8397
  updatedAt?: Date | null | undefined;
8252
- tag?: import("./modules/tournament/tournament.types").TournamentTag | undefined;
8253
8398
  reward?: {
8254
8399
  type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.FREE_DELIVERY;
8255
8400
  } | {
@@ -8258,6 +8403,15 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
8258
8403
  couponNamePrefix?: string | undefined;
8259
8404
  percentage?: number | undefined;
8260
8405
  } | undefined;
8406
+ notificationTemplates?: Partial<Record<import("@lyxa.ai/core/dist/utilities/enum").TournamentNotificationTag, {
8407
+ title: string;
8408
+ body: string;
8409
+ }>> | undefined;
8410
+ scheduledNotifications?: {
8411
+ type: import("@lyxa.ai/core/dist/utilities/enum").TournamentNotificationTag;
8412
+ durationMins: number;
8413
+ target: import("@lyxa.ai/core/dist/utilities/enum").TournamentScheduledNotificationTarget;
8414
+ }[] | undefined;
8261
8415
  }[];
8262
8416
  metadata?: {
8263
8417
  page: number;
@@ -8271,7 +8425,7 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
8271
8425
  }>;
8272
8426
  getAll: import("@trpc/server").TRPCQueryProcedure<{
8273
8427
  input: {
8274
- tournamentId: string | import("mongoose").Types.ObjectId;
8428
+ tournamentId?: string | import("mongoose").Types.ObjectId | undefined;
8275
8429
  };
8276
8430
  output: {
8277
8431
  message: string;
@@ -8313,7 +8467,7 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
8313
8467
  getMatches: import("@trpc/server").TRPCQueryProcedure<{
8314
8468
  input: {
8315
8469
  tournamentId: string | import("mongoose").Types.ObjectId;
8316
- filter?: import("./modules/tournament/tournament.types").MatchStatus | undefined;
8470
+ filter?: import("@lyxa.ai/core/dist/utilities/enum").TournamentMatchStatus | undefined;
8317
8471
  };
8318
8472
  output: {
8319
8473
  message: string;
@@ -8339,7 +8493,7 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
8339
8493
  team2: number | null;
8340
8494
  };
8341
8495
  stage: string;
8342
- matchStatus: import("./modules/tournament/tournament.types").MatchStatus;
8496
+ matchStatus: import("@lyxa.ai/core/dist/utilities/enum").TournamentMatchStatus;
8343
8497
  prediction: {
8344
8498
  score: {
8345
8499
  team1: number | null;
@@ -8377,7 +8531,7 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
8377
8531
  team2: number | null;
8378
8532
  };
8379
8533
  stage: string;
8380
- matchStatus: import("./modules/tournament/tournament.types").MatchStatus;
8534
+ matchStatus: import("@lyxa.ai/core/dist/utilities/enum").TournamentMatchStatus;
8381
8535
  prediction: {
8382
8536
  score: {
8383
8537
  team1: number | null;
@@ -8439,12 +8593,12 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
8439
8593
  data?: {
8440
8594
  status: import("@lyxa.ai/core/dist/utilities/enum").Status;
8441
8595
  name: string;
8596
+ tag: string;
8442
8597
  _id?: string | import("mongoose").Types.ObjectId | undefined;
8443
8598
  createdAt?: Date | null | undefined;
8444
8599
  startDate?: Date | null | undefined;
8445
8600
  endDate?: Date | null | undefined;
8446
8601
  updatedAt?: Date | null | undefined;
8447
- tag?: import("./modules/tournament/tournament.types").TournamentTag | undefined;
8448
8602
  reward?: {
8449
8603
  type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.FREE_DELIVERY;
8450
8604
  } | {
@@ -8453,16 +8607,25 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
8453
8607
  couponNamePrefix?: string | undefined;
8454
8608
  percentage?: number | undefined;
8455
8609
  } | undefined;
8610
+ notificationTemplates?: Partial<Record<import("@lyxa.ai/core/dist/utilities/enum").TournamentNotificationTag, {
8611
+ title: string;
8612
+ body: string;
8613
+ }>> | undefined;
8614
+ scheduledNotifications?: {
8615
+ type: import("@lyxa.ai/core/dist/utilities/enum").TournamentNotificationTag;
8616
+ durationMins: number;
8617
+ target: import("@lyxa.ai/core/dist/utilities/enum").TournamentScheduledNotificationTarget;
8618
+ }[] | undefined;
8456
8619
  } | {
8457
8620
  documents: {
8458
8621
  status: import("@lyxa.ai/core/dist/utilities/enum").Status;
8459
8622
  name: string;
8623
+ tag: string;
8460
8624
  _id?: string | import("mongoose").Types.ObjectId | undefined;
8461
8625
  createdAt?: Date | null | undefined;
8462
8626
  startDate?: Date | null | undefined;
8463
8627
  endDate?: Date | null | undefined;
8464
8628
  updatedAt?: Date | null | undefined;
8465
- tag?: import("./modules/tournament/tournament.types").TournamentTag | undefined;
8466
8629
  reward?: {
8467
8630
  type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.FREE_DELIVERY;
8468
8631
  } | {
@@ -8471,6 +8634,15 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
8471
8634
  couponNamePrefix?: string | undefined;
8472
8635
  percentage?: number | undefined;
8473
8636
  } | undefined;
8637
+ notificationTemplates?: Partial<Record<import("@lyxa.ai/core/dist/utilities/enum").TournamentNotificationTag, {
8638
+ title: string;
8639
+ body: string;
8640
+ }>> | undefined;
8641
+ scheduledNotifications?: {
8642
+ type: import("@lyxa.ai/core/dist/utilities/enum").TournamentNotificationTag;
8643
+ durationMins: number;
8644
+ target: import("@lyxa.ai/core/dist/utilities/enum").TournamentScheduledNotificationTarget;
8645
+ }[] | undefined;
8474
8646
  }[];
8475
8647
  metadata?: {
8476
8648
  page: number;
@@ -8724,12 +8896,12 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
8724
8896
  data?: {
8725
8897
  status: import("@lyxa.ai/core/dist/utilities/enum").Status;
8726
8898
  name: string;
8899
+ tag: string;
8727
8900
  _id?: string | import("mongoose").Types.ObjectId | undefined;
8728
8901
  createdAt?: Date | null | undefined;
8729
8902
  startDate?: Date | null | undefined;
8730
8903
  endDate?: Date | null | undefined;
8731
8904
  updatedAt?: Date | null | undefined;
8732
- tag?: import("./modules/tournament/tournament.types").TournamentTag | undefined;
8733
8905
  reward?: {
8734
8906
  type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.FREE_DELIVERY;
8735
8907
  } | {
@@ -8738,16 +8910,25 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
8738
8910
  couponNamePrefix?: string | undefined;
8739
8911
  percentage?: number | undefined;
8740
8912
  } | undefined;
8913
+ notificationTemplates?: Partial<Record<import("@lyxa.ai/core/dist/utilities/enum").TournamentNotificationTag, {
8914
+ title: string;
8915
+ body: string;
8916
+ }>> | undefined;
8917
+ scheduledNotifications?: {
8918
+ type: import("@lyxa.ai/core/dist/utilities/enum").TournamentNotificationTag;
8919
+ durationMins: number;
8920
+ target: import("@lyxa.ai/core/dist/utilities/enum").TournamentScheduledNotificationTarget;
8921
+ }[] | undefined;
8741
8922
  } | {
8742
8923
  documents: {
8743
8924
  status: import("@lyxa.ai/core/dist/utilities/enum").Status;
8744
8925
  name: string;
8926
+ tag: string;
8745
8927
  _id?: string | import("mongoose").Types.ObjectId | undefined;
8746
8928
  createdAt?: Date | null | undefined;
8747
8929
  startDate?: Date | null | undefined;
8748
8930
  endDate?: Date | null | undefined;
8749
8931
  updatedAt?: Date | null | undefined;
8750
- tag?: import("./modules/tournament/tournament.types").TournamentTag | undefined;
8751
8932
  reward?: {
8752
8933
  type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.FREE_DELIVERY;
8753
8934
  } | {
@@ -8756,6 +8937,15 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
8756
8937
  couponNamePrefix?: string | undefined;
8757
8938
  percentage?: number | undefined;
8758
8939
  } | undefined;
8940
+ notificationTemplates?: Partial<Record<import("@lyxa.ai/core/dist/utilities/enum").TournamentNotificationTag, {
8941
+ title: string;
8942
+ body: string;
8943
+ }>> | undefined;
8944
+ scheduledNotifications?: {
8945
+ type: import("@lyxa.ai/core/dist/utilities/enum").TournamentNotificationTag;
8946
+ durationMins: number;
8947
+ target: import("@lyxa.ai/core/dist/utilities/enum").TournamentScheduledNotificationTarget;
8948
+ }[] | undefined;
8759
8949
  }[];
8760
8950
  metadata?: {
8761
8951
  page: number;
@@ -9061,13 +9251,14 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
9061
9251
  id: string;
9062
9252
  result: "won" | "lost" | "pending" | null;
9063
9253
  teams: string;
9254
+ stage: string;
9064
9255
  prediction: string | null;
9065
9256
  realScore: string | null;
9066
9257
  }[];
9067
9258
  selectedTeam: {
9068
9259
  name: string;
9069
9260
  flag: string | null;
9070
- };
9261
+ } | null;
9071
9262
  } | {
9072
9263
  documents: ({
9073
9264
  name: string;
@@ -9083,13 +9274,14 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
9083
9274
  id: string;
9084
9275
  result: "won" | "lost" | "pending" | null;
9085
9276
  teams: string;
9277
+ stage: string;
9086
9278
  prediction: string | null;
9087
9279
  realScore: string | null;
9088
9280
  }[];
9089
9281
  selectedTeam: {
9090
9282
  name: string;
9091
9283
  flag: string | null;
9092
- };
9284
+ } | null;
9093
9285
  } | null)[];
9094
9286
  metadata?: {
9095
9287
  page: number;
@@ -9225,6 +9417,32 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
9225
9417
  meta: object;
9226
9418
  }>;
9227
9419
  }>>;
9420
+ sync: import("@trpc/server").TRPCBuiltRouter<{
9421
+ ctx: import("@lyxa.ai/core/dist/libraries/trpc/context").LyxaHTTPContext;
9422
+ meta: object;
9423
+ errorShape: {
9424
+ message: string;
9425
+ data: {
9426
+ stack: undefined;
9427
+ path: undefined;
9428
+ code: import("@trpc/server").TRPC_ERROR_CODE_KEY;
9429
+ httpStatus: number;
9430
+ };
9431
+ stack: undefined;
9432
+ code: import("@trpc/server").TRPC_ERROR_CODE_NUMBER;
9433
+ };
9434
+ transformer: false;
9435
+ }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
9436
+ syncLiveScores: import("@trpc/server").TRPCMutationProcedure<{
9437
+ input: void;
9438
+ output: {
9439
+ success: boolean;
9440
+ message: string;
9441
+ data: null | undefined;
9442
+ };
9443
+ meta: object;
9444
+ }>;
9445
+ }>>;
9228
9446
  getActive: import("@trpc/server").TRPCQueryProcedure<{
9229
9447
  input: void;
9230
9448
  output: {
@@ -9232,17 +9450,45 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
9232
9450
  success: boolean;
9233
9451
  data?: {
9234
9452
  name: string;
9453
+ _id: string | import("mongoose").Types.ObjectId;
9235
9454
  tag: string;
9236
- userStatus: import("./modules/tournament/tournament.types").TournamentParticipantStatus;
9455
+ selectedTeam: {
9456
+ name: string;
9457
+ _id: string | import("mongoose").Types.ObjectId;
9458
+ picture?: string | undefined;
9459
+ } | null;
9460
+ userStatus: import("@lyxa.ai/core/dist/utilities/enum").TournamentParticipantStatus;
9237
9461
  startDate?: Date | null | undefined;
9238
9462
  endDate?: Date | null | undefined;
9463
+ reward?: {
9464
+ type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.COUPON;
9465
+ maxDiscountPerOrder?: number | null | undefined;
9466
+ couponNamePrefix?: string | undefined;
9467
+ percentage?: number | undefined;
9468
+ } | {
9469
+ type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.FREE_DELIVERY;
9470
+ } | undefined;
9239
9471
  } | {
9240
9472
  documents: ({
9241
9473
  name: string;
9474
+ _id: string | import("mongoose").Types.ObjectId;
9242
9475
  tag: string;
9243
- userStatus: import("./modules/tournament/tournament.types").TournamentParticipantStatus;
9476
+ selectedTeam: {
9477
+ name: string;
9478
+ _id: string | import("mongoose").Types.ObjectId;
9479
+ picture?: string | undefined;
9480
+ } | null;
9481
+ userStatus: import("@lyxa.ai/core/dist/utilities/enum").TournamentParticipantStatus;
9244
9482
  startDate?: Date | null | undefined;
9245
9483
  endDate?: Date | null | undefined;
9484
+ reward?: {
9485
+ type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.COUPON;
9486
+ maxDiscountPerOrder?: number | null | undefined;
9487
+ couponNamePrefix?: string | undefined;
9488
+ percentage?: number | undefined;
9489
+ } | {
9490
+ type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.FREE_DELIVERY;
9491
+ } | undefined;
9246
9492
  } | null)[];
9247
9493
  metadata?: {
9248
9494
  page: number;